git-merge-changelog: Enable --split-merged-entry by default.
[pspp] / ChangeLog
1 2010-05-23  Bruno Haible  <bruno@clisp.org>
2
3         git-merge-changelog: Enable --split-merged-entry by default.
4         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
5         (usage): Don't mention this option any more.
6         Reported by Ralf Wildenhues.
7
8 2010-05-23  Jim Meyering  <meyering@redhat.com>
9
10         test-pwrite: do not leave behind a test file named "out"
11         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
12         The trivial-looking use of init.sh is really necessary.
13         It ensures that the temporary file, "out", is created in
14         a temporary directory, and removed upon termination.
15         * tests/test-pwrite.sh: Re-add file.
16         * modules/pwrite-tests: Reference it.
17
18 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19
20         Fix output redirection buglet in init.sh.
21         * tests/init.sh: Fix redirection of stderr.
22
23 2010-05-20  Simon Josefsson  <simon@josefsson.org>
24
25         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
26
27 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28
29         * modules/valgrind-tests: New file.
30         * m4/valgrind-tests.m4: New file.
31         * doc/valgrind-tests.texi: New file.
32         * doc/gnulib.texi (Running self-tests under valgrind): New
33         section.
34
35 2010-05-19  Bruno Haible  <bruno@clisp.org>
36
37         Clean up dead code in recent commit.
38         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
39         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
40         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
41         Suggested by Paolo Bonzini.
42
43 2010-05-19  Bruno Haible  <bruno@clisp.org>
44
45         Avoid valgrind error reports from libunistring.
46         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
47         * modules/libunistring (Files): Add it.
48         * modules/libunistring-optional (Files): Likewise.
49
50 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
51             Bruno Haible  <bruno@clisp.org>
52
53         New module 'libunistring-optional'.
54         * modules/libunistring-optional: New file.
55         * m4/libunistring-base.m4: New file.
56         * m4/libunistring-optional.m4: New file.
57         * lib/unicase.in.h: Renamed from lib/unicase.h.
58         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
59         * lib/unictype.in.h: Renamed from lib/unictype.h.
60         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
61         * lib/uniname.in.h: Renamed from lib/uniname.h.
62         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
63         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
64         * lib/unistr.in.h: Renamed from lib/unistr.h.
65         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
66         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
67         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
68         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
69         gl_LIBUNISTRING. If the library was found, determine the installed
70         version and set LIBUNISTRING_VERSION.
71         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
72         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
73         handle a configuration option --with-included-libunistring.
74         * modules/libunistring (Files): Add m4/absolute-header.m4.
75         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
76         Add m4/libunistring-base.m4.
77         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
78         (Makefile.am): Build unicase.h from unicase.in.h.
79         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
80         Add m4/libunistring-base.m4.
81         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
82         (Makefile.am): Build uniconv.h from uniconv.in.h.
83         * modules/unictype/base (Files): Use unictype.in.h instead of
84         unictype.h. Add m4/libunistring-base.m4.
85         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
86         (Makefile.am): Build unictype.h from unictype.in.h.
87         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
88         Add m4/libunistring-base.m4.
89         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
90         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
91         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
92         Add m4/libunistring-base.m4.
93         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
94         (Makefile.am): Build uniname.h from uniname.in.h.
95         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
96         Add m4/libunistring-base.m4.
97         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
98         (Makefile.am): Build uninorm.h from uninorm.in.h.
99         * modules/unistdio/base (Files): Use unistdio.in.h instead of
100         unistdio.h. Add m4/libunistring-base.m4.
101         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
102         (Makefile.am): Build unistdio.h from unistdio.in.h.
103         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
104         Add m4/libunistring-base.m4.
105         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
106         (Makefile.am): Build unistr.h from unistr.in.h.
107         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
108         Add m4/libunistring-base.m4.
109         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
110         (Makefile.am): Build unitypes.h from unitypes.in.h.
111         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
112         Add m4/libunistring-base.m4.
113         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
114         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
115         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
116         uniwidth.h. Add m4/libunistring-base.m4.
117         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
118         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
119         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
120         instead of augmenting lib_SOURCES.
121         * modules/unicase/empty-suffix-context: Likewise.
122         * modules/unicase/locale-language: Likewise.
123         * modules/unicase/tolower: Likewise.
124         * modules/unicase/totitle: Likewise.
125         * modules/unicase/toupper: Likewise.
126         * modules/unicase/u8-casecmp: Likewise.
127         * modules/unicase/u8-casecoll: Likewise.
128         * modules/unicase/u8-casefold: Likewise.
129         * modules/unicase/u8-casexfrm: Likewise.
130         * modules/unicase/u8-ct-casefold: Likewise.
131         * modules/unicase/u8-ct-tolower: Likewise.
132         * modules/unicase/u8-ct-totitle: Likewise.
133         * modules/unicase/u8-ct-toupper: Likewise.
134         * modules/unicase/u8-is-cased: Likewise.
135         * modules/unicase/u8-is-casefolded: Likewise.
136         * modules/unicase/u8-is-lowercase: Likewise.
137         * modules/unicase/u8-is-titlecase: Likewise.
138         * modules/unicase/u8-is-uppercase: Likewise.
139         * modules/unicase/u8-prefix-context: Likewise.
140         * modules/unicase/u8-suffix-context: Likewise.
141         * modules/unicase/u8-tolower: Likewise.
142         * modules/unicase/u8-totitle: Likewise.
143         * modules/unicase/u8-toupper: Likewise.
144         * modules/unicase/u16-casecmp: Likewise.
145         * modules/unicase/u16-casecoll: Likewise.
146         * modules/unicase/u16-casefold: Likewise.
147         * modules/unicase/u16-casexfrm: Likewise.
148         * modules/unicase/u16-ct-casefold: Likewise.
149         * modules/unicase/u16-ct-tolower: Likewise.
150         * modules/unicase/u16-ct-totitle: Likewise.
151         * modules/unicase/u16-ct-toupper: Likewise.
152         * modules/unicase/u16-is-cased: Likewise.
153         * modules/unicase/u16-is-casefolded: Likewise.
154         * modules/unicase/u16-is-lowercase: Likewise.
155         * modules/unicase/u16-is-titlecase: Likewise.
156         * modules/unicase/u16-is-uppercase: Likewise.
157         * modules/unicase/u16-prefix-context: Likewise.
158         * modules/unicase/u16-suffix-context: Likewise.
159         * modules/unicase/u16-tolower: Likewise.
160         * modules/unicase/u16-totitle: Likewise.
161         * modules/unicase/u16-toupper: Likewise.
162         * modules/unicase/u32-casecmp: Likewise.
163         * modules/unicase/u32-casecoll: Likewise.
164         * modules/unicase/u32-casefold: Likewise.
165         * modules/unicase/u32-casexfrm: Likewise.
166         * modules/unicase/u32-ct-casefold: Likewise.
167         * modules/unicase/u32-ct-tolower: Likewise.
168         * modules/unicase/u32-ct-totitle: Likewise.
169         * modules/unicase/u32-ct-toupper: Likewise.
170         * modules/unicase/u32-is-cased: Likewise.
171         * modules/unicase/u32-is-casefolded: Likewise.
172         * modules/unicase/u32-is-lowercase: Likewise.
173         * modules/unicase/u32-is-titlecase: Likewise.
174         * modules/unicase/u32-is-uppercase: Likewise.
175         * modules/unicase/u32-prefix-context: Likewise.
176         * modules/unicase/u32-suffix-context: Likewise.
177         * modules/unicase/u32-tolower: Likewise.
178         * modules/unicase/u32-totitle: Likewise.
179         * modules/unicase/u32-toupper: Likewise.
180         * modules/unicase/ulc-casecmp: Likewise.
181         * modules/unicase/ulc-casecoll: Likewise.
182         * modules/unicase/ulc-casexfrm: Likewise.
183         * modules/uniconv/u8-conv-from-enc: Likewise.
184         * modules/uniconv/u8-conv-to-enc: Likewise.
185         * modules/uniconv/u8-strconv-from-enc: Likewise.
186         * modules/uniconv/u8-strconv-from-locale: Likewise.
187         * modules/uniconv/u8-strconv-to-enc: Likewise.
188         * modules/uniconv/u8-strconv-to-locale: Likewise.
189         * modules/uniconv/u16-conv-from-enc: Likewise.
190         * modules/uniconv/u16-conv-to-enc: Likewise.
191         * modules/uniconv/u16-strconv-from-enc: Likewise.
192         * modules/uniconv/u16-strconv-from-locale: Likewise.
193         * modules/uniconv/u16-strconv-to-enc: Likewise.
194         * modules/uniconv/u16-strconv-to-locale: Likewise.
195         * modules/uniconv/u32-conv-from-enc: Likewise.
196         * modules/uniconv/u32-conv-to-enc: Likewise.
197         * modules/uniconv/u32-strconv-from-enc: Likewise.
198         * modules/uniconv/u32-strconv-from-locale: Likewise.
199         * modules/uniconv/u32-strconv-to-enc: Likewise.
200         * modules/uniconv/u32-strconv-to-locale: Likewise.
201         * modules/unictype/bidicategory-byname: Likewise.
202         * modules/unictype/bidicategory-name: Likewise.
203         * modules/unictype/bidicategory-of: Likewise.
204         * modules/unictype/bidicategory-test: Likewise.
205         * modules/unictype/block-list: Likewise.
206         * modules/unictype/block-test: Likewise.
207         * modules/unictype/category-C: Likewise.
208         * modules/unictype/category-Cc: Likewise.
209         * modules/unictype/category-Cf: Likewise.
210         * modules/unictype/category-Cn: Likewise.
211         * modules/unictype/category-Co: Likewise.
212         * modules/unictype/category-Cs: Likewise.
213         * modules/unictype/category-L: Likewise.
214         * modules/unictype/category-Ll: Likewise.
215         * modules/unictype/category-Lm: Likewise.
216         * modules/unictype/category-Lo: Likewise.
217         * modules/unictype/category-Lt: Likewise.
218         * modules/unictype/category-Lu: Likewise.
219         * modules/unictype/category-M: Likewise.
220         * modules/unictype/category-Mc: Likewise.
221         * modules/unictype/category-Me: Likewise.
222         * modules/unictype/category-Mn: Likewise.
223         * modules/unictype/category-N: Likewise.
224         * modules/unictype/category-Nd: Likewise.
225         * modules/unictype/category-Nl: Likewise.
226         * modules/unictype/category-No: Likewise.
227         * modules/unictype/category-P: Likewise.
228         * modules/unictype/category-Pc: Likewise.
229         * modules/unictype/category-Pd: Likewise.
230         * modules/unictype/category-Pe: Likewise.
231         * modules/unictype/category-Pf: Likewise.
232         * modules/unictype/category-Pi: Likewise.
233         * modules/unictype/category-Po: Likewise.
234         * modules/unictype/category-Ps: Likewise.
235         * modules/unictype/category-S: Likewise.
236         * modules/unictype/category-Sc: Likewise.
237         * modules/unictype/category-Sk: Likewise.
238         * modules/unictype/category-Sm: Likewise.
239         * modules/unictype/category-So: Likewise.
240         * modules/unictype/category-Z: Likewise.
241         * modules/unictype/category-Zl: Likewise.
242         * modules/unictype/category-Zp: Likewise.
243         * modules/unictype/category-Zs: Likewise.
244         * modules/unictype/category-and: Likewise.
245         * modules/unictype/category-and-not: Likewise.
246         * modules/unictype/category-byname: Likewise.
247         * modules/unictype/category-name: Likewise.
248         * modules/unictype/category-none: Likewise.
249         * modules/unictype/category-of: Likewise.
250         * modules/unictype/category-or: Likewise.
251         * modules/unictype/category-test: Likewise.
252         * modules/unictype/combining-class: Likewise.
253         * modules/unictype/ctype-alnum: Likewise.
254         * modules/unictype/ctype-alpha: Likewise.
255         * modules/unictype/ctype-blank: Likewise.
256         * modules/unictype/ctype-cntrl: Likewise.
257         * modules/unictype/ctype-digit: Likewise.
258         * modules/unictype/ctype-graph: Likewise.
259         * modules/unictype/ctype-lower: Likewise.
260         * modules/unictype/ctype-print: Likewise.
261         * modules/unictype/ctype-punct: Likewise.
262         * modules/unictype/ctype-space: Likewise.
263         * modules/unictype/ctype-upper: Likewise.
264         * modules/unictype/ctype-xdigit: Likewise.
265         * modules/unictype/decimal-digit: Likewise.
266         * modules/unictype/digit: Likewise.
267         * modules/unictype/mirror: Likewise.
268         * modules/unictype/numeric: Likewise.
269         * modules/unictype/property-alphabetic: Likewise.
270         * modules/unictype/property-ascii-hex-digit: Likewise.
271         * modules/unictype/property-bidi-arabic-digit: Likewise.
272         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
273         * modules/unictype/property-bidi-block-separator: Likewise.
274         * modules/unictype/property-bidi-boundary-neutral: Likewise.
275         * modules/unictype/property-bidi-common-separator: Likewise.
276         * modules/unictype/property-bidi-control: Likewise.
277         * modules/unictype/property-bidi-embedding-or-override: Likewise.
278         * modules/unictype/property-bidi-eur-num-separator: Likewise.
279         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
280         * modules/unictype/property-bidi-european-digit: Likewise.
281         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
282         * modules/unictype/property-bidi-left-to-right: Likewise.
283         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
284         * modules/unictype/property-bidi-other-neutral: Likewise.
285         * modules/unictype/property-bidi-pdf: Likewise.
286         * modules/unictype/property-bidi-segment-separator: Likewise.
287         * modules/unictype/property-bidi-whitespace: Likewise.
288         * modules/unictype/property-byname: Likewise.
289         * modules/unictype/property-combining: Likewise.
290         * modules/unictype/property-composite: Likewise.
291         * modules/unictype/property-currency-symbol: Likewise.
292         * modules/unictype/property-dash: Likewise.
293         * modules/unictype/property-decimal-digit: Likewise.
294         * modules/unictype/property-default-ignorable-code-point: Likewise.
295         * modules/unictype/property-deprecated: Likewise.
296         * modules/unictype/property-diacritic: Likewise.
297         * modules/unictype/property-extender: Likewise.
298         * modules/unictype/property-format-control: Likewise.
299         * modules/unictype/property-grapheme-base: Likewise.
300         * modules/unictype/property-grapheme-extend: Likewise.
301         * modules/unictype/property-grapheme-link: Likewise.
302         * modules/unictype/property-hex-digit: Likewise.
303         * modules/unictype/property-hyphen: Likewise.
304         * modules/unictype/property-id-continue: Likewise.
305         * modules/unictype/property-id-start: Likewise.
306         * modules/unictype/property-ideographic: Likewise.
307         * modules/unictype/property-ids-binary-operator: Likewise.
308         * modules/unictype/property-ids-trinary-operator: Likewise.
309         * modules/unictype/property-ignorable-control: Likewise.
310         * modules/unictype/property-iso-control: Likewise.
311         * modules/unictype/property-join-control: Likewise.
312         * modules/unictype/property-left-of-pair: Likewise.
313         * modules/unictype/property-line-separator: Likewise.
314         * modules/unictype/property-logical-order-exception: Likewise.
315         * modules/unictype/property-lowercase: Likewise.
316         * modules/unictype/property-math: Likewise.
317         * modules/unictype/property-non-break: Likewise.
318         * modules/unictype/property-not-a-character: Likewise.
319         * modules/unictype/property-numeric: Likewise.
320         * modules/unictype/property-other-alphabetic: Likewise.
321         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
322         * modules/unictype/property-other-grapheme-extend: Likewise.
323         * modules/unictype/property-other-id-continue: Likewise.
324         * modules/unictype/property-other-id-start: Likewise.
325         * modules/unictype/property-other-lowercase: Likewise.
326         * modules/unictype/property-other-math: Likewise.
327         * modules/unictype/property-other-uppercase: Likewise.
328         * modules/unictype/property-paired-punctuation: Likewise.
329         * modules/unictype/property-paragraph-separator: Likewise.
330         * modules/unictype/property-pattern-syntax: Likewise.
331         * modules/unictype/property-pattern-white-space: Likewise.
332         * modules/unictype/property-private-use: Likewise.
333         * modules/unictype/property-punctuation: Likewise.
334         * modules/unictype/property-quotation-mark: Likewise.
335         * modules/unictype/property-radical: Likewise.
336         * modules/unictype/property-sentence-terminal: Likewise.
337         * modules/unictype/property-soft-dotted: Likewise.
338         * modules/unictype/property-space: Likewise.
339         * modules/unictype/property-terminal-punctuation: Likewise.
340         * modules/unictype/property-test: Likewise.
341         * modules/unictype/property-titlecase: Likewise.
342         * modules/unictype/property-unassigned-code-value: Likewise.
343         * modules/unictype/property-unified-ideograph: Likewise.
344         * modules/unictype/property-uppercase: Likewise.
345         * modules/unictype/property-variation-selector: Likewise.
346         * modules/unictype/property-white-space: Likewise.
347         * modules/unictype/property-xid-continue: Likewise.
348         * modules/unictype/property-xid-start: Likewise.
349         * modules/unictype/property-zero-width: Likewise.
350         * modules/unictype/scripts: Likewise.
351         * modules/unictype/syntax-c-ident: Likewise.
352         * modules/unictype/syntax-c-whitespace: Likewise.
353         * modules/unictype/syntax-java-ident: Likewise.
354         * modules/unictype/syntax-java-whitespace: Likewise.
355         * modules/unilbrk/u8-possible-linebreaks: Likewise.
356         * modules/unilbrk/u8-width-linebreaks: Likewise.
357         * modules/unilbrk/u16-possible-linebreaks: Likewise.
358         * modules/unilbrk/u16-width-linebreaks: Likewise.
359         * modules/unilbrk/u32-possible-linebreaks: Likewise.
360         * modules/unilbrk/u32-width-linebreaks: Likewise.
361         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
362         * modules/unilbrk/ulc-width-linebreaks: Likewise.
363         * modules/uniname/uniname: Likewise.
364         * modules/uninorm/canonical-decomposition: Likewise.
365         * modules/uninorm/composition: Likewise.
366         * modules/uninorm/decomposing-form: Likewise.
367         * modules/uninorm/decomposition: Likewise.
368         * modules/uninorm/filter: Likewise.
369         * modules/uninorm/nfc: Likewise.
370         * modules/uninorm/nfd: Likewise.
371         * modules/uninorm/nfkc: Likewise.
372         * modules/uninorm/nfkd: Likewise.
373         * modules/uninorm/u8-normalize: Likewise.
374         * modules/uninorm/u8-normcmp: Likewise.
375         * modules/uninorm/u8-normcoll: Likewise.
376         * modules/uninorm/u8-normxfrm: Likewise.
377         * modules/uninorm/u16-normalize: Likewise.
378         * modules/uninorm/u16-normcmp: Likewise.
379         * modules/uninorm/u16-normcoll: Likewise.
380         * modules/uninorm/u16-normxfrm: Likewise.
381         * modules/uninorm/u32-normalize: Likewise.
382         * modules/uninorm/u32-normcmp: Likewise.
383         * modules/uninorm/u32-normcoll: Likewise.
384         * modules/uninorm/u32-normxfrm: Likewise.
385         * modules/unistdio/u8-asnprintf: Likewise.
386         * modules/unistdio/u8-asprintf: Likewise.
387         * modules/unistdio/u8-snprintf: Likewise.
388         * modules/unistdio/u8-sprintf: Likewise.
389         * modules/unistdio/u8-u8-asnprintf: Likewise.
390         * modules/unistdio/u8-u8-asprintf: Likewise.
391         * modules/unistdio/u8-u8-snprintf: Likewise.
392         * modules/unistdio/u8-u8-sprintf: Likewise.
393         * modules/unistdio/u8-u8-vasnprintf: Likewise.
394         * modules/unistdio/u8-u8-vasprintf: Likewise.
395         * modules/unistdio/u8-u8-vsnprintf: Likewise.
396         * modules/unistdio/u8-u8-vsprintf: Likewise.
397         * modules/unistdio/u8-vasnprintf: Likewise.
398         * modules/unistdio/u8-vasprintf: Likewise.
399         * modules/unistdio/u8-vsnprintf: Likewise.
400         * modules/unistdio/u8-vsprintf: Likewise.
401         * modules/unistdio/u16-asnprintf: Likewise.
402         * modules/unistdio/u16-asprintf: Likewise.
403         * modules/unistdio/u16-snprintf: Likewise.
404         * modules/unistdio/u16-sprintf: Likewise.
405         * modules/unistdio/u16-u16-asnprintf: Likewise.
406         * modules/unistdio/u16-u16-asprintf: Likewise.
407         * modules/unistdio/u16-u16-snprintf: Likewise.
408         * modules/unistdio/u16-u16-sprintf: Likewise.
409         * modules/unistdio/u16-u16-vasnprintf: Likewise.
410         * modules/unistdio/u16-u16-vasprintf: Likewise.
411         * modules/unistdio/u16-u16-vsnprintf: Likewise.
412         * modules/unistdio/u16-u16-vsprintf: Likewise.
413         * modules/unistdio/u16-vasnprintf: Likewise.
414         * modules/unistdio/u16-vasprintf: Likewise.
415         * modules/unistdio/u16-vsnprintf: Likewise.
416         * modules/unistdio/u16-vsprintf: Likewise.
417         * modules/unistdio/u32-asnprintf: Likewise.
418         * modules/unistdio/u32-asprintf: Likewise.
419         * modules/unistdio/u32-snprintf: Likewise.
420         * modules/unistdio/u32-sprintf: Likewise.
421         * modules/unistdio/u32-u32-asnprintf: Likewise.
422         * modules/unistdio/u32-u32-asprintf: Likewise.
423         * modules/unistdio/u32-u32-snprintf: Likewise.
424         * modules/unistdio/u32-u32-sprintf: Likewise.
425         * modules/unistdio/u32-u32-vasnprintf: Likewise.
426         * modules/unistdio/u32-u32-vasprintf: Likewise.
427         * modules/unistdio/u32-u32-vsnprintf: Likewise.
428         * modules/unistdio/u32-u32-vsprintf: Likewise.
429         * modules/unistdio/u32-vasnprintf: Likewise.
430         * modules/unistdio/u32-vasprintf: Likewise.
431         * modules/unistdio/u32-vsnprintf: Likewise.
432         * modules/unistdio/u32-vsprintf: Likewise.
433         * modules/unistdio/ulc-asnprintf: Likewise.
434         * modules/unistdio/ulc-asprintf: Likewise.
435         * modules/unistdio/ulc-fprintf: Likewise.
436         * modules/unistdio/ulc-snprintf: Likewise.
437         * modules/unistdio/ulc-sprintf: Likewise.
438         * modules/unistdio/ulc-vasnprintf: Likewise.
439         * modules/unistdio/ulc-vasprintf: Likewise.
440         * modules/unistdio/ulc-vfprintf: Likewise.
441         * modules/unistdio/ulc-vsnprintf: Likewise.
442         * modules/unistdio/ulc-vsprintf: Likewise.
443         * modules/unistr/u8-check: Likewise.
444         * modules/unistr/u8-chr: Likewise.
445         * modules/unistr/u8-cmp: Likewise.
446         * modules/unistr/u8-cmp2: Likewise.
447         * modules/unistr/u8-cpy: Likewise.
448         * modules/unistr/u8-cpy-alloc: Likewise.
449         * modules/unistr/u8-endswith: Likewise.
450         * modules/unistr/u8-mblen: Likewise.
451         * modules/unistr/u8-mbsnlen: Likewise.
452         * modules/unistr/u8-mbtouc: Likewise.
453         * modules/unistr/u8-mbtouc-unsafe: Likewise.
454         * modules/unistr/u8-mbtoucr: Likewise.
455         * modules/unistr/u8-move: Likewise.
456         * modules/unistr/u8-next: Likewise.
457         * modules/unistr/u8-prev: Likewise.
458         * modules/unistr/u8-set: Likewise.
459         * modules/unistr/u8-startswith: Likewise.
460         * modules/unistr/u8-stpcpy: Likewise.
461         * modules/unistr/u8-stpncpy: Likewise.
462         * modules/unistr/u8-strcat: Likewise.
463         * modules/unistr/u8-strchr: Likewise.
464         * modules/unistr/u8-strcmp: Likewise.
465         * modules/unistr/u8-strcoll: Likewise.
466         * modules/unistr/u8-strcpy: Likewise.
467         * modules/unistr/u8-strcspn: Likewise.
468         * modules/unistr/u8-strdup: Likewise.
469         * modules/unistr/u8-strlen: Likewise.
470         * modules/unistr/u8-strmblen: Likewise.
471         * modules/unistr/u8-strmbtouc: Likewise.
472         * modules/unistr/u8-strncat: Likewise.
473         * modules/unistr/u8-strncmp: Likewise.
474         * modules/unistr/u8-strncpy: Likewise.
475         * modules/unistr/u8-strnlen: Likewise.
476         * modules/unistr/u8-strpbrk: Likewise.
477         * modules/unistr/u8-strrchr: Likewise.
478         * modules/unistr/u8-strspn: Likewise.
479         * modules/unistr/u8-strstr: Likewise.
480         * modules/unistr/u8-strtok: Likewise.
481         * modules/unistr/u8-to-u16: Likewise.
482         * modules/unistr/u8-to-u32: Likewise.
483         * modules/unistr/u8-uctomb: Likewise.
484         * modules/unistr/u16-check: Likewise.
485         * modules/unistr/u16-chr: Likewise.
486         * modules/unistr/u16-cmp: Likewise.
487         * modules/unistr/u16-cmp2: Likewise.
488         * modules/unistr/u16-cpy: Likewise.
489         * modules/unistr/u16-cpy-alloc: Likewise.
490         * modules/unistr/u16-endswith: Likewise.
491         * modules/unistr/u16-mblen: Likewise.
492         * modules/unistr/u16-mbsnlen: Likewise.
493         * modules/unistr/u16-mbtouc: Likewise.
494         * modules/unistr/u16-mbtouc-unsafe: Likewise.
495         * modules/unistr/u16-mbtoucr: Likewise.
496         * modules/unistr/u16-move: Likewise.
497         * modules/unistr/u16-next: Likewise.
498         * modules/unistr/u16-prev: Likewise.
499         * modules/unistr/u16-set: Likewise.
500         * modules/unistr/u16-startswith: Likewise.
501         * modules/unistr/u16-stpcpy: Likewise.
502         * modules/unistr/u16-stpncpy: Likewise.
503         * modules/unistr/u16-strcat: Likewise.
504         * modules/unistr/u16-strchr: Likewise.
505         * modules/unistr/u16-strcmp: Likewise.
506         * modules/unistr/u16-strcoll: Likewise.
507         * modules/unistr/u16-strcpy: Likewise.
508         * modules/unistr/u16-strcspn: Likewise.
509         * modules/unistr/u16-strdup: Likewise.
510         * modules/unistr/u16-strlen: Likewise.
511         * modules/unistr/u16-strmblen: Likewise.
512         * modules/unistr/u16-strmbtouc: Likewise.
513         * modules/unistr/u16-strncat: Likewise.
514         * modules/unistr/u16-strncmp: Likewise.
515         * modules/unistr/u16-strncpy: Likewise.
516         * modules/unistr/u16-strnlen: Likewise.
517         * modules/unistr/u16-strpbrk: Likewise.
518         * modules/unistr/u16-strrchr: Likewise.
519         * modules/unistr/u16-strspn: Likewise.
520         * modules/unistr/u16-strstr: Likewise.
521         * modules/unistr/u16-strtok: Likewise.
522         * modules/unistr/u16-to-u32: Likewise.
523         * modules/unistr/u16-to-u8: Likewise.
524         * modules/unistr/u16-uctomb: Likewise.
525         * modules/unistr/u32-check: Likewise.
526         * modules/unistr/u32-chr: Likewise.
527         * modules/unistr/u32-cmp: Likewise.
528         * modules/unistr/u32-cmp2: Likewise.
529         * modules/unistr/u32-cpy: Likewise.
530         * modules/unistr/u32-cpy-alloc: Likewise.
531         * modules/unistr/u32-endswith: Likewise.
532         * modules/unistr/u32-mblen: Likewise.
533         * modules/unistr/u32-mbsnlen: Likewise.
534         * modules/unistr/u32-mbtouc: Likewise.
535         * modules/unistr/u32-mbtouc-unsafe: Likewise.
536         * modules/unistr/u32-mbtoucr: Likewise.
537         * modules/unistr/u32-move: Likewise.
538         * modules/unistr/u32-next: Likewise.
539         * modules/unistr/u32-prev: Likewise.
540         * modules/unistr/u32-set: Likewise.
541         * modules/unistr/u32-startswith: Likewise.
542         * modules/unistr/u32-stpcpy: Likewise.
543         * modules/unistr/u32-stpncpy: Likewise.
544         * modules/unistr/u32-strcat: Likewise.
545         * modules/unistr/u32-strchr: Likewise.
546         * modules/unistr/u32-strcmp: Likewise.
547         * modules/unistr/u32-strcoll: Likewise.
548         * modules/unistr/u32-strcpy: Likewise.
549         * modules/unistr/u32-strcspn: Likewise.
550         * modules/unistr/u32-strdup: Likewise.
551         * modules/unistr/u32-strlen: Likewise.
552         * modules/unistr/u32-strmblen: Likewise.
553         * modules/unistr/u32-strmbtouc: Likewise.
554         * modules/unistr/u32-strncat: Likewise.
555         * modules/unistr/u32-strncmp: Likewise.
556         * modules/unistr/u32-strncpy: Likewise.
557         * modules/unistr/u32-strnlen: Likewise.
558         * modules/unistr/u32-strpbrk: Likewise.
559         * modules/unistr/u32-strrchr: Likewise.
560         * modules/unistr/u32-strspn: Likewise.
561         * modules/unistr/u32-strstr: Likewise.
562         * modules/unistr/u32-strtok: Likewise.
563         * modules/unistr/u32-to-u16: Likewise.
564         * modules/unistr/u32-to-u8: Likewise.
565         * modules/unistr/u32-uctomb: Likewise.
566         * modules/uniwbrk/u8-wordbreaks: Likewise.
567         * modules/uniwbrk/u16-wordbreaks: Likewise.
568         * modules/uniwbrk/u32-wordbreaks: Likewise.
569         * modules/uniwbrk/ulc-wordbreaks: Likewise.
570         * modules/uniwbrk/wordbreak-property: Likewise.
571         * modules/uniwidth/u8-strwidth: Likewise.
572         * modules/uniwidth/u8-width: Likewise.
573         * modules/uniwidth/u16-strwidth: Likewise.
574         * modules/uniwidth/u16-width: Likewise.
575         * modules/uniwidth/u32-strwidth: Likewise.
576         * modules/uniwidth/u32-width: Likewise.
577         * modules/uniwidth/width: Likewise.
578         * modules/unicase/cased-tests (Makefile.am): Link all test programs
579         with $(LIBUNISTRING).
580         * modules/unicase/ignorable-tests: Likewise.
581         * modules/unicase/locale-language-tests: Likewise.
582         * modules/unicase/tolower-tests: Likewise.
583         * modules/unicase/totitle-tests: Likewise.
584         * modules/unicase/toupper-tests: Likewise.
585         * modules/unicase/u8-casecmp-tests: Likewise.
586         * modules/unicase/u8-casecoll-tests: Likewise.
587         * modules/unicase/u8-casefold-tests: Likewise.
588         * modules/unicase/u8-is-cased-tests: Likewise.
589         * modules/unicase/u8-is-casefolded-tests: Likewise.
590         * modules/unicase/u8-is-lowercase-tests: Likewise.
591         * modules/unicase/u8-is-titlecase-tests: Likewise.
592         * modules/unicase/u8-is-uppercase-tests: Likewise.
593         * modules/unicase/u8-tolower-tests: Likewise.
594         * modules/unicase/u8-totitle-tests: Likewise.
595         * modules/unicase/u8-toupper-tests: Likewise.
596         * modules/unicase/u16-casecmp-tests: Likewise.
597         * modules/unicase/u16-casecoll-tests: Likewise.
598         * modules/unicase/u16-casefold-tests: Likewise.
599         * modules/unicase/u16-is-cased-tests: Likewise.
600         * modules/unicase/u16-is-casefolded-tests: Likewise.
601         * modules/unicase/u16-is-lowercase-tests: Likewise.
602         * modules/unicase/u16-is-titlecase-tests: Likewise.
603         * modules/unicase/u16-is-uppercase-tests: Likewise.
604         * modules/unicase/u16-tolower-tests: Likewise.
605         * modules/unicase/u16-totitle-tests: Likewise.
606         * modules/unicase/u16-toupper-tests: Likewise.
607         * modules/unicase/u32-casecmp-tests: Likewise.
608         * modules/unicase/u32-casecoll-tests: Likewise.
609         * modules/unicase/u32-casefold-tests: Likewise.
610         * modules/unicase/u32-is-cased-tests: Likewise.
611         * modules/unicase/u32-is-casefolded-tests: Likewise.
612         * modules/unicase/u32-is-lowercase-tests: Likewise.
613         * modules/unicase/u32-is-titlecase-tests: Likewise.
614         * modules/unicase/u32-is-uppercase-tests: Likewise.
615         * modules/unicase/u32-tolower-tests: Likewise.
616         * modules/unicase/u32-totitle-tests: Likewise.
617         * modules/unicase/u32-toupper-tests: Likewise.
618         * modules/unicase/ulc-casecmp-tests: Likewise.
619         * modules/unicase/ulc-casecoll-tests: Likewise.
620         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
621         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
622         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
623         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
624         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
625         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
626         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
627         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
628         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
629         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
630         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
631         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
632         * modules/unictype/bidicategory-byname-tests: Likewise.
633         * modules/unictype/bidicategory-name-tests: Likewise.
634         * modules/unictype/bidicategory-of-tests: Likewise.
635         * modules/unictype/bidicategory-test-tests: Likewise.
636         * modules/unictype/block-list-tests: Likewise.
637         * modules/unictype/block-of-tests: Likewise.
638         * modules/unictype/block-test-tests: Likewise.
639         * modules/unictype/category-C-tests: Likewise.
640         * modules/unictype/category-Cc-tests: Likewise.
641         * modules/unictype/category-Cf-tests: Likewise.
642         * modules/unictype/category-Cn-tests: Likewise.
643         * modules/unictype/category-Co-tests: Likewise.
644         * modules/unictype/category-Cs-tests: Likewise.
645         * modules/unictype/category-L-tests: Likewise.
646         * modules/unictype/category-Ll-tests: Likewise.
647         * modules/unictype/category-Lm-tests: Likewise.
648         * modules/unictype/category-Lo-tests: Likewise.
649         * modules/unictype/category-Lt-tests: Likewise.
650         * modules/unictype/category-Lu-tests: Likewise.
651         * modules/unictype/category-M-tests: Likewise.
652         * modules/unictype/category-Mc-tests: Likewise.
653         * modules/unictype/category-Me-tests: Likewise.
654         * modules/unictype/category-Mn-tests: Likewise.
655         * modules/unictype/category-N-tests: Likewise.
656         * modules/unictype/category-Nd-tests: Likewise.
657         * modules/unictype/category-Nl-tests: Likewise.
658         * modules/unictype/category-No-tests: Likewise.
659         * modules/unictype/category-P-tests: Likewise.
660         * modules/unictype/category-Pc-tests: Likewise.
661         * modules/unictype/category-Pd-tests: Likewise.
662         * modules/unictype/category-Pe-tests: Likewise.
663         * modules/unictype/category-Pf-tests: Likewise.
664         * modules/unictype/category-Pi-tests: Likewise.
665         * modules/unictype/category-Po-tests: Likewise.
666         * modules/unictype/category-Ps-tests: Likewise.
667         * modules/unictype/category-S-tests: Likewise.
668         * modules/unictype/category-Sc-tests: Likewise.
669         * modules/unictype/category-Sk-tests: Likewise.
670         * modules/unictype/category-Sm-tests: Likewise.
671         * modules/unictype/category-So-tests: Likewise.
672         * modules/unictype/category-Z-tests: Likewise.
673         * modules/unictype/category-Zl-tests: Likewise.
674         * modules/unictype/category-Zp-tests: Likewise.
675         * modules/unictype/category-Zs-tests: Likewise.
676         * modules/unictype/category-and-not-tests: Likewise.
677         * modules/unictype/category-and-tests: Likewise.
678         * modules/unictype/category-byname-tests: Likewise.
679         * modules/unictype/category-name-tests: Likewise.
680         * modules/unictype/category-none-tests: Likewise.
681         * modules/unictype/category-of-tests: Likewise.
682         * modules/unictype/category-or-tests: Likewise.
683         * modules/unictype/category-test-withtable-tests: Likewise.
684         * modules/unictype/combining-class-tests: Likewise.
685         * modules/unictype/ctype-alnum-tests: Likewise.
686         * modules/unictype/ctype-alpha-tests: Likewise.
687         * modules/unictype/ctype-blank-tests: Likewise.
688         * modules/unictype/ctype-cntrl-tests: Likewise.
689         * modules/unictype/ctype-digit-tests: Likewise.
690         * modules/unictype/ctype-graph-tests: Likewise.
691         * modules/unictype/ctype-lower-tests: Likewise.
692         * modules/unictype/ctype-print-tests: Likewise.
693         * modules/unictype/ctype-punct-tests: Likewise.
694         * modules/unictype/ctype-space-tests: Likewise.
695         * modules/unictype/ctype-upper-tests: Likewise.
696         * modules/unictype/ctype-xdigit-tests: Likewise.
697         * modules/unictype/decimal-digit-tests: Likewise.
698         * modules/unictype/digit-tests: Likewise.
699         * modules/unictype/mirror-tests: Likewise.
700         * modules/unictype/numeric-tests: Likewise.
701         * modules/unictype/property-alphabetic-tests: Likewise.
702         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
703         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
704         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
705         * modules/unictype/property-bidi-block-separator-tests: Likewise.
706         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
707         * modules/unictype/property-bidi-common-separator-tests: Likewise.
708         * modules/unictype/property-bidi-control-tests: Likewise.
709         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
710         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
711         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
712         * modules/unictype/property-bidi-european-digit-tests: Likewise.
713         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
714         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
715         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
716         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
717         * modules/unictype/property-bidi-pdf-tests: Likewise.
718         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
719         * modules/unictype/property-bidi-whitespace-tests: Likewise.
720         * modules/unictype/property-byname-tests: Likewise.
721         * modules/unictype/property-combining-tests: Likewise.
722         * modules/unictype/property-composite-tests: Likewise.
723         * modules/unictype/property-currency-symbol-tests: Likewise.
724         * modules/unictype/property-dash-tests: Likewise.
725         * modules/unictype/property-decimal-digit-tests: Likewise.
726         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
727         * modules/unictype/property-deprecated-tests: Likewise.
728         * modules/unictype/property-diacritic-tests: Likewise.
729         * modules/unictype/property-extender-tests: Likewise.
730         * modules/unictype/property-format-control-tests: Likewise.
731         * modules/unictype/property-grapheme-base-tests: Likewise.
732         * modules/unictype/property-grapheme-extend-tests: Likewise.
733         * modules/unictype/property-grapheme-link-tests: Likewise.
734         * modules/unictype/property-hex-digit-tests: Likewise.
735         * modules/unictype/property-hyphen-tests: Likewise.
736         * modules/unictype/property-id-continue-tests: Likewise.
737         * modules/unictype/property-id-start-tests: Likewise.
738         * modules/unictype/property-ideographic-tests: Likewise.
739         * modules/unictype/property-ids-binary-operator-tests: Likewise.
740         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
741         * modules/unictype/property-ignorable-control-tests: Likewise.
742         * modules/unictype/property-iso-control-tests: Likewise.
743         * modules/unictype/property-join-control-tests: Likewise.
744         * modules/unictype/property-left-of-pair-tests: Likewise.
745         * modules/unictype/property-line-separator-tests: Likewise.
746         * modules/unictype/property-logical-order-exception-tests: Likewise.
747         * modules/unictype/property-lowercase-tests: Likewise.
748         * modules/unictype/property-math-tests: Likewise.
749         * modules/unictype/property-non-break-tests: Likewise.
750         * modules/unictype/property-not-a-character-tests: Likewise.
751         * modules/unictype/property-numeric-tests: Likewise.
752         * modules/unictype/property-other-alphabetic-tests: Likewise.
753         * modules/unictype/property-other-default-ignorable-code-point-tests:
754         Likewise.
755         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
756         * modules/unictype/property-other-id-continue-tests: Likewise.
757         * modules/unictype/property-other-id-start-tests: Likewise.
758         * modules/unictype/property-other-lowercase-tests: Likewise.
759         * modules/unictype/property-other-math-tests: Likewise.
760         * modules/unictype/property-other-uppercase-tests: Likewise.
761         * modules/unictype/property-paired-punctuation-tests: Likewise.
762         * modules/unictype/property-paragraph-separator-tests: Likewise.
763         * modules/unictype/property-pattern-syntax-tests: Likewise.
764         * modules/unictype/property-pattern-white-space-tests: Likewise.
765         * modules/unictype/property-private-use-tests: Likewise.
766         * modules/unictype/property-punctuation-tests: Likewise.
767         * modules/unictype/property-quotation-mark-tests: Likewise.
768         * modules/unictype/property-radical-tests: Likewise.
769         * modules/unictype/property-sentence-terminal-tests: Likewise.
770         * modules/unictype/property-soft-dotted-tests: Likewise.
771         * modules/unictype/property-space-tests: Likewise.
772         * modules/unictype/property-terminal-punctuation-tests: Likewise.
773         * modules/unictype/property-test-tests: Likewise.
774         * modules/unictype/property-titlecase-tests: Likewise.
775         * modules/unictype/property-unassigned-code-value-tests: Likewise.
776         * modules/unictype/property-unified-ideograph-tests: Likewise.
777         * modules/unictype/property-uppercase-tests: Likewise.
778         * modules/unictype/property-variation-selector-tests: Likewise.
779         * modules/unictype/property-white-space-tests: Likewise.
780         * modules/unictype/property-xid-continue-tests: Likewise.
781         * modules/unictype/property-xid-start-tests: Likewise.
782         * modules/unictype/property-zero-width-tests: Likewise.
783         * modules/unictype/scripts-tests: Likewise.
784         * modules/unictype/syntax-c-ident-tests: Likewise.
785         * modules/unictype/syntax-c-whitespace-tests: Likewise.
786         * modules/unictype/syntax-java-ident-tests: Likewise.
787         * modules/unictype/syntax-java-whitespace-tests: Likewise.
788         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
789         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
790         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
791         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
792         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
793         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
794         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
795         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
796         * modules/uniname/uniname-tests: Likewise.
797         * modules/uninorm/canonical-decomposition-tests: Likewise.
798         * modules/uninorm/compat-decomposition-tests: Likewise.
799         * modules/uninorm/composition-tests: Likewise.
800         * modules/uninorm/decomposing-form-tests: Likewise.
801         * modules/uninorm/decomposition-tests: Likewise.
802         * modules/uninorm/filter-tests: Likewise.
803         * modules/uninorm/nfc-tests: Likewise.
804         * modules/uninorm/nfd-tests: Likewise.
805         * modules/uninorm/nfkc-tests: Likewise.
806         * modules/uninorm/nfkd-tests: Likewise.
807         * modules/uninorm/u8-normcmp-tests: Likewise.
808         * modules/uninorm/u8-normcoll-tests: Likewise.
809         * modules/uninorm/u16-normcmp-tests: Likewise.
810         * modules/uninorm/u16-normcoll-tests: Likewise.
811         * modules/uninorm/u32-normcmp-tests: Likewise.
812         * modules/uninorm/u32-normcoll-tests: Likewise.
813         * modules/unistdio/u8-asnprintf-tests: Likewise.
814         * modules/unistdio/u8-vasnprintf-tests: Likewise.
815         * modules/unistdio/u8-vasprintf-tests: Likewise.
816         * modules/unistdio/u8-vsnprintf-tests: Likewise.
817         * modules/unistdio/u8-vsprintf-tests: Likewise.
818         * modules/unistdio/u16-asnprintf-tests: Likewise.
819         * modules/unistdio/u16-vasnprintf-tests: Likewise.
820         * modules/unistdio/u16-vasprintf-tests: Likewise.
821         * modules/unistdio/u16-vsnprintf-tests: Likewise.
822         * modules/unistdio/u16-vsprintf-tests: Likewise.
823         * modules/unistdio/u32-asnprintf-tests: Likewise.
824         * modules/unistdio/u32-vasnprintf-tests: Likewise.
825         * modules/unistdio/u32-vasprintf-tests: Likewise.
826         * modules/unistdio/u32-vsnprintf-tests: Likewise.
827         * modules/unistdio/u32-vsprintf-tests: Likewise.
828         * modules/unistdio/ulc-asnprintf-tests: Likewise.
829         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
830         * modules/unistdio/ulc-vasprintf-tests: Likewise.
831         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
832         * modules/unistdio/ulc-vsprintf-tests: Likewise.
833         * modules/unistr/u8-check-tests: Likewise.
834         * modules/unistr/u8-chr-tests: Likewise.
835         * modules/unistr/u8-cmp-tests: Likewise.
836         * modules/unistr/u8-cmp2-tests: Likewise.
837         * modules/unistr/u8-cpy-alloc-tests: Likewise.
838         * modules/unistr/u8-cpy-tests: Likewise.
839         * modules/unistr/u8-mblen-tests: Likewise.
840         * modules/unistr/u8-mbsnlen-tests: Likewise.
841         * modules/unistr/u8-mbtouc-tests: Likewise.
842         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
843         * modules/unistr/u8-mbtoucr-tests: Likewise.
844         * modules/unistr/u8-move-tests: Likewise.
845         * modules/unistr/u8-next-tests: Likewise.
846         * modules/unistr/u8-prev-tests: Likewise.
847         * modules/unistr/u8-set-tests: Likewise.
848         * modules/unistr/u8-stpcpy-tests: Likewise.
849         * modules/unistr/u8-stpncpy-tests: Likewise.
850         * modules/unistr/u8-strcat-tests: Likewise.
851         * modules/unistr/u8-strcmp-tests: Likewise.
852         * modules/unistr/u8-strcoll-tests: Likewise.
853         * modules/unistr/u8-strcpy-tests: Likewise.
854         * modules/unistr/u8-strdup-tests: Likewise.
855         * modules/unistr/u8-strlen-tests: Likewise.
856         * modules/unistr/u8-strmblen-tests: Likewise.
857         * modules/unistr/u8-strmbtouc-tests: Likewise.
858         * modules/unistr/u8-strncat-tests: Likewise.
859         * modules/unistr/u8-strncmp-tests: Likewise.
860         * modules/unistr/u8-strncpy-tests: Likewise.
861         * modules/unistr/u8-strnlen-tests: Likewise.
862         * modules/unistr/u8-to-u16-tests: Likewise.
863         * modules/unistr/u8-to-u32-tests: Likewise.
864         * modules/unistr/u8-uctomb-tests: Likewise.
865         * modules/unistr/u16-check-tests: Likewise.
866         * modules/unistr/u16-chr-tests: Likewise.
867         * modules/unistr/u16-cmp-tests: Likewise.
868         * modules/unistr/u16-cmp2-tests: Likewise.
869         * modules/unistr/u16-cpy-alloc-tests: Likewise.
870         * modules/unistr/u16-cpy-tests: Likewise.
871         * modules/unistr/u16-mblen-tests: Likewise.
872         * modules/unistr/u16-mbsnlen-tests: Likewise.
873         * modules/unistr/u16-mbtouc-tests: Likewise.
874         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
875         * modules/unistr/u16-mbtoucr-tests: Likewise.
876         * modules/unistr/u16-move-tests: Likewise.
877         * modules/unistr/u16-next-tests: Likewise.
878         * modules/unistr/u16-prev-tests: Likewise.
879         * modules/unistr/u16-set-tests: Likewise.
880         * modules/unistr/u16-stpcpy-tests: Likewise.
881         * modules/unistr/u16-stpncpy-tests: Likewise.
882         * modules/unistr/u16-strcat-tests: Likewise.
883         * modules/unistr/u16-strcmp-tests: Likewise.
884         * modules/unistr/u16-strcoll-tests: Likewise.
885         * modules/unistr/u16-strcpy-tests: Likewise.
886         * modules/unistr/u16-strdup-tests: Likewise.
887         * modules/unistr/u16-strlen-tests: Likewise.
888         * modules/unistr/u16-strmblen-tests: Likewise.
889         * modules/unistr/u16-strmbtouc-tests: Likewise.
890         * modules/unistr/u16-strncat-tests: Likewise.
891         * modules/unistr/u16-strncmp-tests: Likewise.
892         * modules/unistr/u16-strncpy-tests: Likewise.
893         * modules/unistr/u16-strnlen-tests: Likewise.
894         * modules/unistr/u16-to-u32-tests: Likewise.
895         * modules/unistr/u16-to-u8-tests: Likewise.
896         * modules/unistr/u16-uctomb-tests: Likewise.
897         * modules/unistr/u32-check-tests: Likewise.
898         * modules/unistr/u32-chr-tests: Likewise.
899         * modules/unistr/u32-cmp-tests: Likewise.
900         * modules/unistr/u32-cmp2-tests: Likewise.
901         * modules/unistr/u32-cpy-alloc-tests: Likewise.
902         * modules/unistr/u32-cpy-tests: Likewise.
903         * modules/unistr/u32-mblen-tests: Likewise.
904         * modules/unistr/u32-mbsnlen-tests: Likewise.
905         * modules/unistr/u32-mbtouc-tests: Likewise.
906         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
907         * modules/unistr/u32-mbtoucr-tests: Likewise.
908         * modules/unistr/u32-move-tests: Likewise.
909         * modules/unistr/u32-next-tests: Likewise.
910         * modules/unistr/u32-prev-tests: Likewise.
911         * modules/unistr/u32-set-tests: Likewise.
912         * modules/unistr/u32-stpcpy-tests: Likewise.
913         * modules/unistr/u32-stpncpy-tests: Likewise.
914         * modules/unistr/u32-strcat-tests: Likewise.
915         * modules/unistr/u32-strcmp-tests: Likewise.
916         * modules/unistr/u32-strcoll-tests: Likewise.
917         * modules/unistr/u32-strcpy-tests: Likewise.
918         * modules/unistr/u32-strdup-tests: Likewise.
919         * modules/unistr/u32-strlen-tests: Likewise.
920         * modules/unistr/u32-strmblen-tests: Likewise.
921         * modules/unistr/u32-strmbtouc-tests: Likewise.
922         * modules/unistr/u32-strncat-tests: Likewise.
923         * modules/unistr/u32-strncmp-tests: Likewise.
924         * modules/unistr/u32-strncpy-tests: Likewise.
925         * modules/unistr/u32-strnlen-tests: Likewise.
926         * modules/unistr/u32-to-u16-tests: Likewise.
927         * modules/unistr/u32-to-u8-tests: Likewise.
928         * modules/unistr/u32-uctomb-tests: Likewise.
929         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
930         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
931         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
932         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
933         * modules/uniwidth/u8-strwidth-tests: Likewise.
934         * modules/uniwidth/u8-width-tests: Likewise.
935         * modules/uniwidth/u16-strwidth-tests: Likewise.
936         * modules/uniwidth/u16-width-tests: Likewise.
937         * modules/uniwidth/u32-strwidth-tests: Likewise.
938         * modules/uniwidth/u32-width-tests: Likewise.
939         * modules/uniwidth/width-tests: Likewise.
940
941 2010-05-18  Richard Jones  <rjones@redhat.com>
942
943         doc: users.txt: list hivex
944         * users.txt: Add hivex.
945
946 2010-05-18  Richard Jones  <rjones@redhat.com>
947
948         doc: users.txt: list febootstrap
949         * users.txt: Add febootstrap.
950
951 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
952
953         bootstrap: fix an error when gnulib is not used as a git submodule
954         * build-aux/bootstrap (gnulib_path): If its length is zero then
955         assign "gnulib" to it.
956         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
957
958 2010-05-16  Bruno Haible  <bruno@clisp.org>
959
960         Avoid autoconf warnings about AM_ICONV.
961         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
962         2.64.
963
964 2010-05-16  Bruno Haible  <bruno@clisp.org>
965
966         absolute-header: Make the macro usable in more situations.
967         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
968         from gl_ABSOLUTE_HEADER.
969         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
970
971 2010-05-16  James Youngman  <jay@gnu.org>
972
973         doc: update users.txt
974         * users.txt: Add CSSC.
975
976 2010-05-16  Jim Meyering  <meyering@redhat.com>
977
978         init.sh: fix an error in the previous change; add more comments
979         * tests/init.sh: Compare exit code in loop against 9, not 2.
980         Patch by Bruno Haible.
981         Make the two tests more similar by adding an empty "then" clause.
982         Add comments.
983
984         init.sh: avoid unnecessary shell re-exec
985         * tests/init.sh: Improve the re-exec-required check to first test the
986         current shell.  If it passes the test, do not search for a shell that
987         does pass, and do not re-exec.  This test is particularly contorted to
988         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
989         of $(...) evokes a syntax error and causes immediate shell exit with
990         status 2.  Bruno Haible reported that the re-exec made it impossible
991         to single-step through any init.sh-using script.
992
993 2010-05-16  Bruno Haible  <bruno@clisp.org>
994
995         Fix collision between gnulib's and libintl's printf replacements.
996         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
997         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
998         (printf): When using GNU C, map the __printf__ function to rpl_printf
999         via __asm__. When not using GNU C, define rpl_printf instead of
1000         __printf__.
1001         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
1002         commit.
1003         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
1004         commit.
1005         * m4/asm-underscore.m4: New file.
1006         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
1007         * modules/stdio (Files): Add m4/asm-underscore.m4.
1008         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
1009         Reported by Ben Pfaff.
1010
1011 2010-05-16  Bruno Haible  <bruno@clisp.org>
1012
1013         verify: Avoid skipping the test on openSUSE 11.0.
1014         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
1015
1016 2010-05-13  Bruno Haible  <bruno@clisp.org>
1017
1018         Avoid useless warnings from G++.
1019         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
1020         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
1021         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
1022
1023 2010-05-11  Jim Meyering  <meyering@redhat.com>
1024
1025         maint.mk: tweak preceding change
1026         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
1027         regexps tighter by anchoring at EOL, and make the new group "shy"
1028         for slightly decreased overhead.
1029
1030 2010-05-11  Eric Blake  <eblake@redhat.com>
1031
1032         maint.mk: gnulib doesn't guarantee NSIG
1033         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
1034
1035 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
1036
1037         test-pwrite.c: Remove unused variable declaration.
1038         * tests/test-pwrite.c (main): Remove read_buf declaration.
1039
1040         Remove useless test-pwrite.sh file.
1041         * tests/test-pwrite.sh: Delete file.
1042         * modules/pwrite-tests: Remove references.
1043         Reported by Bruno Haible.
1044
1045 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
1046
1047         init.sh: fix a typo
1048         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
1049
1050 2010-05-10  Jim Meyering  <meyering@redhat.com>
1051
1052         maint.mk: avoid using a temporary file in the always-defined-macros check
1053         * top/maint.mk (.re-defmac): Remove rule.
1054         (gl_trap_): Remove definition.
1055         (sc_prohibit_always-defined_macros): Rewrite not to create and
1056         depend on a temporary file.  Instead, depend on GNU grep's ability
1057         to read a list of regular expressions from stdin when given "-f -".
1058
1059 2010-05-09  Bruno Haible  <bruno@clisp.org>
1060
1061         Update to GNU gettext 0.18.
1062         * m4/gettext.m4: Update to GNU gettext 0.17.
1063         * m4/intl.m4: Likewise.
1064         * m4/po.m4: Likewise.
1065         * modules/gettext (Files): Add m4/fcntl-o.m4.
1066         (configure.ac): Require gettext infrastructure from version 0.18.
1067
1068 2010-05-09  Jim Meyering  <meyering@redhat.com>
1069
1070         init.sh: enable MALLOC_PERTURB_
1071         * tests/init.sh: Enable glibc's malloc-perturbing option.
1072
1073         maint.mk: improve sc_cross_check_PATH_usage_in_tests
1074         With my recent change in init.sh from the two-line form:
1075             -#   : ${srcdir=.}
1076             -#   . "$srcdir/init.sh"; path_prepend_ .
1077             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
1078         I noticed that using the one-line form would cause this test
1079         to fail with a false-positive, or to stop working altogether,
1080         depending on whether help-version changed or all the tests did.
1081         * top/maint.mk (_hv_regex): Remove this definition.
1082         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
1083         (_hv_regex_strong): Use a stronger regex to check for conformance.
1084         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
1085         Give a separate diagnostic for lack of conforming use.
1086
1087         maint.mk: prohibit definition of symbols defined by gnulib
1088         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
1089         definition of symbols defined by gnulib.
1090
1091 2010-05-09  Bruno Haible  <bruno@clisp.org>
1092
1093         acl: Avoid test failure on Cygwin-hosted mingw.
1094         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
1095
1096 2010-05-09  Bruno Haible  <bruno@clisp.org>
1097
1098         error: Use system's fcntl function.
1099         * lib/error.c (fcntl): Undefine.
1100
1101 2010-05-09  Jim Meyering  <meyering@redhat.com>
1102
1103         verify: adjust formatting to be more consistent
1104         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
1105         argument-list '('s, and after one comma.
1106
1107 2010-05-09  Bruno Haible  <bruno@clisp.org>
1108
1109         error: More reliable output on mingw.
1110         * lib/error.c: Include <windows.h>.
1111         (is_open): New function.
1112         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
1113         defined.
1114
1115 2010-05-09  Bruno Haible  <bruno@clisp.org>
1116
1117         vasnprintf: Fix syntax errors in libintl build on mingw.
1118         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
1119         pad_ourselves and prec_ourselves after use.
1120
1121 2010-05-08  Bruno Haible  <bruno@clisp.org>
1122
1123         * lib/config.charset: Update comments for Cygwin 1.7.
1124         * lib/localcharset.c: Likewise.
1125
1126 2010-05-07  Jim Meyering  <meyering@redhat.com>
1127
1128         init.sh: improve comments
1129         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
1130         . "${srcdir=.}/init.sh"; path_prepend_ .
1131         Add a note about path_prepend_ and the alternative of using
1132         TESTS_ENVIRONMENT.
1133
1134 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
1135
1136         exclude: Unescape hashed patterns in wildcard mode.
1137         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
1138         to the hash list.
1139         * tests/test-exclude8.sh: New test case.
1140         * modules/exclude-tests: Add new test.
1141
1142 2010-05-05  Eric Blake  <eblake@redhat.com>
1143
1144         verify: automate tests
1145         * modules/verify-tests: New module.
1146         * tests/test-verify.sh: New file.
1147         * tests/test-verify.c: Guard each negative test with a unique id.
1148         Also avoid warning about unused left hand of comma expressions.
1149
1150 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1151
1152         Further improvements to verify.h, suggested by Eric Blake.
1153         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
1154         the GL_* versions, to avoid collision with OpenGL.
1155         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
1156         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
1157         than testing merely whether it's defined.
1158
1159         Modify verify.h to pacify gcc -Wredundant_decls.
1160         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
1161         These use the prefix "GL_" since they're likely to be useful elsewhere.
1162         We may need to break them out into a different .h file.
1163         (__COUNTER__): Define to 0 if the compiler doesn't support it.
1164         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
1165         of verify_function__.
1166
1167 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
1168
1169         Tests for module pwrite.
1170         * modules/pwrite-tests: New file.
1171         * tests/test-pwrite.sh: New file.
1172         * tests/test-pwrite.c: New file.
1173
1174         New module pwrite.
1175         * lib/unistd.in.h (pwrite): New declaration.
1176         * lib/pwrite.c: New file, from glibc with modifications.
1177         * m4/pwrite.m4: New file.
1178         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
1179         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
1180         REPLACE_PWRITE.
1181         * modules/pwrite: New file.
1182         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
1183         REPLACE_PWRITE.
1184         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
1185         * doc/posix-functions/pwrite.texi: Mention the new module.
1186
1187 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
1188
1189         pread: Update documentation.
1190         * doc/posix-functions/pread.texi: Mention the 'pread' module.
1191
1192 2010-05-04  Eric Blake  <eblake@redhat.com>
1193
1194         docs: update cygwin progress
1195         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
1196         this bug.
1197         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
1198         Added in cygwin 1.7.2.
1199         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
1200         Likewise.
1201         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
1202         Likewise.
1203         * doc/glibc-functions/dup3.texi (dup3): Likewise.
1204         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
1205         * doc/glibc-functions/accept4.texi (accept4): Likewise.
1206         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
1207         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
1208         Mention nproc module.
1209         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
1210         bug in cygwin 1.7.5 addition.
1211         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
1212         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
1213         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
1214         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
1215         1.7.5.
1216         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
1217         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
1218         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
1219         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
1220         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
1221         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
1222         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
1223         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
1224         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
1225         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
1226         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
1227         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
1228         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
1229         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
1230         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
1231         Likewise.
1232         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
1233         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
1234         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
1235         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
1236         Likewise.
1237         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
1238         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
1239         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
1240         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
1241         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
1242         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
1243         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
1244         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
1245         Likewise.
1246         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
1247         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
1248         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
1249         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
1250         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
1251         Likewise.
1252         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
1253         Likewise.
1254         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
1255         Likewise.
1256         * doc/glibc-functions/xdrrec_endofrecord.texi
1257         (xdrrec_endofrecord): Likewise.
1258         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
1259         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
1260         Likewise.
1261         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
1262         Likewise.
1263
1264 2010-05-04  Jim Meyering  <meyering@redhat.com>
1265
1266         gendocs.sh: make its "-s FILE" option more useful
1267         * build-aux/gendocs.sh: When honoring the -s FILE option, update
1268         $PACKAGE to reflect the probably-different basename of "FILE".
1269
1270 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
1271
1272         bootstrap: don't ignore download_po_files failure
1273         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
1274         failure.
1275
1276 2010-05-03  Jim Meyering  <meyering@redhat.com>
1277
1278         maint.mk: allow to pass options to gendocs.sh
1279         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
1280         (gendocs_options_): New overridable variable.
1281
1282         gnu-web-doc-update: don't ignore configure or build failure
1283         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
1284
1285         announce-gen: backslash-escape '@'s in --help output
1286         * build-aux/announce-gen: Fix syntax errors.
1287
1288         maint.mk, announce-gen: allow project-specific announcement mail headers
1289         * top/maint.mk (translation_project_): Define default.
1290         (announcement_Cc_, announcement_mail_headers_): Likewise.
1291         (announcement): Invoke announce-gen with new --mail-headers option.
1292         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
1293
1294         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
1295         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
1296         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
1297         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
1298         line in the "err2" output file when running "make check" in verbose
1299         mode (i.e., with set -x enabled).
1300
1301 2010-05-03  Bruno Haible  <bruno@clisp.org>
1302
1303         wctob: Fix for weird platforms.
1304         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
1305         argument value.
1306
1307 2010-05-03  Jim Meyering  <meyering@redhat.com>
1308
1309         maint.mk: prohibit unwarranted use of <strings.h>
1310         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
1311         strings.h in a file that does not also use strcasecmp, strncasecmp,
1312         ffs or ffsll.
1313
1314         maint.mk: remove obsolete comments
1315         * top/maint.mk: Remove stale, commented-out rules.
1316
1317 2010-05-02  Bruno Haible  <bruno@clisp.org>
1318
1319         wcwidth: Declare also when it's aliased.
1320         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
1321         macro.
1322
1323 2010-05-02  Bruno Haible  <bruno@clisp.org>
1324
1325         Fix regression from 2010-04-25.
1326         * gnulib-tool (func_modules_transitive_closure): Check the status of
1327         all modules, not only of the tests that are of the form foo-tests where
1328         foo is a module.
1329
1330 2010-05-02  Bruno Haible  <bruno@clisp.org>
1331
1332         wctob: Work around nasty Cygwin 1.7.2 bug.
1333         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
1334         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
1335
1336 2010-05-01  Bruno Haible  <bruno@clisp.org>
1337
1338         fpurge: Sharper test.
1339         * tests/test-fpurge.c (main): Add one more ftell check.
1340         * modules/fpurge-tests (Depends-on): Add ftell.
1341         Suggested by Eric Blake.
1342
1343 2010-05-01  Bruno Haible  <bruno@clisp.org>
1344
1345         ftello: Another test.
1346         * tests/test-ftello3.c: New file.
1347         * modules/ftello-tests (Files): Add it.
1348         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
1349         MOSTLYCLEANFILES.
1350
1351         ftell: Another test.
1352         * tests/test-ftell3.c: New file.
1353         * modules/ftell-tests (Files): Add it.
1354         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
1355         MOSTLYCLEANFILES.
1356
1357 2010-05-01  Bruno Haible  <bruno@clisp.org>
1358
1359         ftell, ftello: Work around Solaris bug.
1360         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
1361         * lib/ftello.c: Include stdio-impl.h.
1362         (ftello): On Solaris, when _IOWRT is set, compute the result without
1363         looking at _IOREAD.
1364         * modules/ftello (Files): Add lib/stdio-impl.h.
1365         * doc/posix-functions/ftell.texi: Mention Solaris bug.
1366         * doc/posix-functions/ftello.texi: Likewise.
1367         Reported by Eric Blake.
1368
1369 2010-05-01  Bruno Haible  <bruno@clisp.org>
1370
1371         freading: Adapt to special meaning of _IOREAD flag on Solaris.
1372         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
1373         the _IOWRT flag is also set.
1374
1375 2010-05-01  Bruno Haible  <bruno@clisp.org>
1376
1377         Fix doc about a HP-UX stdio bug.
1378         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
1379         * doc/posix-functions/ftello.texi: Likewise.
1380
1381 2010-05-01  Bruno Haible  <bruno@clisp.org>
1382
1383         lseek test: Fix failure on Solaris.
1384         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
1385         output.
1386
1387 2010-04-30  Jim Meyering  <meyering@redhat.com>
1388
1389         bootstrap: don't ignore failure to generate po*/Makevars
1390         * build-aux/bootstrap (with_gettext): Don't ignore failure
1391         to create po/Makevars or runtime-po/Makevars.
1392
1393 2010-04-29  Eric Blake  <eblake@redhat.com>
1394
1395         headers: relax license to LGPLv2+
1396         * modules/fcntl-h (License): Relax license.
1397         * modules/getopt-posix (License): Likewise.
1398         * modules/locale (License): Likewise.
1399         * modules/math (License): Likewise.
1400         * modules/pty (License): Likewise.
1401         * modules/sched (License): Likewise.
1402         * modules/search (License): Likewise.
1403         * modules/spawn (License): Likewise.
1404         * modules/stdarg (License): Likewise.
1405         * modules/sysexits (License): Likewise.
1406
1407 2010-04-29  Jim Meyering  <meyering@redhat.com>
1408
1409         inttypes: relax license to LGPLv2+
1410         * modules/inttypes (License): Relax license.
1411
1412 2010-04-29  Simon Josefsson  <simon@josefsson.org>
1413
1414         * top/maint.mk (indent): Run twice to produce idempotent results.
1415
1416 2010-04-28  Bruno Haible  <bruno@clisp.org>
1417
1418         getdate: Generate getdate.c in the source directory.
1419         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
1420         MOSTLYCLEANFILES.
1421         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
1422
1423 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
1424
1425         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
1426         is not declared as a const *; avoid warnings in that case.
1427
1428 2010-04-28  Eric Blake  <eblake@redhat.com>
1429
1430         canonicalize-lgpl: avoid compiler warning
1431         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
1432         declaration' / 'extraneous semicolon' warning with some compilers.
1433         Reported by Andreas Gruenbacher.
1434
1435 2010-04-28  Jim Meyering  <meyering@redhat.com>
1436
1437         init.sh: ensure a more reliable exit status when exiting via trap
1438         * tests/init.sh (setup_): Don't rely on $? in signal handler.
1439         Inspired by patches from Dmitry V. Levin.
1440         Also trap on signal 3 (SIGQUIT).
1441
1442 2010-04-27  Bruno Haible  <bruno@clisp.org>
1443
1444         Update doc about utimes().
1445         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
1446         'utimens' module.
1447         Reported by Andreas Gruenbacher <agruen@suse.de>.
1448
1449 2010-04-27  Eric Blake  <eblake@redhat.com>
1450
1451         full-read, full-write: relax license
1452         * modules/full-read (License): Drop to LGPLv2+.
1453         * modules/full-write (License): Likewise.
1454         * modules/safe-read (License): Likewise.
1455         * modules/safe-write (License): Likewise.
1456
1457         pthread: mention library for linking
1458         * modules/pthread (Link): Mention $(LIB_PTHREAD).
1459
1460 2010-04-27  Jim Meyering  <meyering@redhat.com>
1461
1462         maint.mk: fix a bug introduced in last change
1463         * top/maint.mk (gl_assured_headers_): Now that all names are on
1464         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
1465         is not anchored to end of word, it should be adequate.
1466
1467         maint.mk: avoid side-effect in latest syntax-check
1468         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
1469         to run commands via $(shell...), and hence to incur cost only when
1470         the new rule is actually run.
1471
1472         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
1473         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
1474         and use that to create a regexp used to detect all #if HAVE_..._H uses.
1475         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
1476         (gl_assured_headers_, az_, AZ_): Define.
1477         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
1478
1479 2010-04-26  Jim Meyering  <jim@meyering.net>
1480             Bruno Haible  <bruno@clisp.org>
1481
1482         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
1483         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
1484         Prompted by an exchange with Gilles Espinasse.
1485
1486 2010-04-26  Jim Meyering  <meyering@redhat.com>
1487
1488         git-version-gen: aesthetic tweak
1489         * build-aux/git-version-gen: Use "$nl" rather than a literal,
1490         so that the command remains on a single line.
1491
1492 2010-04-26  Eric Blake  <eblake@redhat.com>
1493
1494         git-version-gen: allow use on EBCDIC hosts
1495         * build-aux/git-version-gen (dirty): Use literal rather than tying
1496         ourselves to ascii.
1497         Reported by Steve Goetze.
1498
1499 2010-04-25  Bruno Haible  <bruno@clisp.org>
1500
1501         netdb: Add support for GNULIB_POSIXCHECK.
1502         * lib/netdb.in.h: Include warn-on-use.h.
1503         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
1504         functions are used when GNULIB_POSIXCHECK is defined and the
1505         getaddrinfo module is not in use.
1506         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
1507         freeaddrinfo, gai_strerror, getnameinfo are declared.
1508         * modules/netdb (Depends-on): Add warn-on-use.
1509         (Makefile.am): Include warn-on-use.h in netdb.h.
1510
1511 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
1512
1513         build: avoid "make check" failure without .git/ directory
1514         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
1515         there is no .git/ directory.
1516
1517 2010-04-25  Bruno Haible  <bruno@clisp.org>
1518
1519         ptsname: Fix misuse of ttyname_r.
1520         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
1521         of errno.
1522
1523 2010-04-25  Bruno Haible  <bruno@clisp.org>
1524
1525         ttyname_r: Make it work on Solaris 10.
1526         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
1527         if the system function has the POSIX declaration. Test whether the
1528         function fails if the buffer is less than 128 bytes large.
1529         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
1530         system's ttyname_r function. Provide a reasonably large buffer.
1531         * modules/ttyname_r (Depends-on): Add extensions.
1532         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
1533
1534 2010-04-25  Bruno Haible  <bruno@clisp.org>
1535
1536         Use the 'extensions' module for some more functions on Solaris.
1537         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
1538         module.
1539         * doc/posix-functions/ctime_r.texi: Likewise.
1540         * doc/posix-functions/getgrgid_r.texi: Likewise.
1541         * doc/posix-functions/getgrnam_r.texi: Likewise.
1542         * doc/posix-functions/getpwnam_r.texi: Likewise.
1543         * doc/posix-functions/getpwuid_r.texi: Likewise.
1544         * doc/posix-functions/readdir_r.texi: Likewise.
1545         * doc/posix-functions/sigwait.texi: Likewise.
1546         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
1547         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
1548
1549 2010-04-25  Bruno Haible  <bruno@clisp.org>
1550
1551         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
1552         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
1553         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
1554         * lib/ttyname_r.c: Include <limits.h>.
1555         (ttyname_r): Define using the system's ttyname_r function, if it exists
1556         and not on Solaris.
1557         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
1558         set.
1559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
1560         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
1561         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
1562         Reported by Simon Josefsson.
1563
1564 2010-04-25  Bruno Haible  <bruno@clisp.org>
1565
1566         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
1567         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
1568         * doc/posix-functions/ctime_r.texi: Likewise.
1569         * doc/posix-functions/getgrgid_r.texi: Likewise.
1570         * doc/posix-functions/getgrnam_r.texi: Likewise.
1571         * doc/posix-functions/getlogin_r.texi: Likewise.
1572         * doc/posix-functions/getpwnam_r.texi: Likewise.
1573         * doc/posix-functions/getpwuid_r.texi: Likewise.
1574         * doc/posix-functions/readdir_r.texi: Likewise.
1575         * doc/posix-functions/sigwait.texi: Likewise.
1576         * doc/posix-functions/ttyname_r.texi: Likewise.
1577         Reported by Simon Josefsson.
1578
1579 2010-04-25  Bruno Haible  <bruno@clisp.org>
1580
1581         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
1582         * gnulib-tool (func_usage): Document that --with-*-tests options apply
1583         also to --create-testdir.
1584         (func_acceptable): Don't consider the status of *-tests modules here.
1585         (func_modules_transitive_closure): Consider it here, before including a
1586         test module.
1587         (func_import, func_create_testdir): Set inc_all_direct_tests,
1588         inc_all_indirect_tests.
1589         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
1590         --create-testdir and --create-megatestdir.
1591
1592 2010-04-25  Bruno Haible  <bruno@clisp.org>
1593
1594         gnulib-tool: Add --without-*-tests options.
1595         * gnulib-tool (func_usage): Document the --without-*-tests options.
1596         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
1597         excl_unportable_tests): New variables.
1598         Fail if they are specified with --import or --update.
1599         (func_acceptable): Respect the excl_*_tests variables.
1600         (func_import): Set the excl_*_tests variables to empty.
1601
1602 2010-04-25  Simon Josefsson  <simon@josefsson.org>
1603             Bruno Haible  <bruno@clisp.org>
1604
1605         Work around a MacOS X 10.4 bug with openpty.
1606         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
1607         * tests/test-openpty.c (main): Close the master side explicitly.
1608
1609 2010-04-25  Bruno Haible  <bruno@clisp.org>
1610
1611         strnlen: Fix a C++ test error on MacOS X and Solaris.
1612         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
1613         the function is not declared.
1614         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
1615         Simon Josefsson.
1616
1617 2010-04-24  Bruno Haible  <bruno@clisp.org>
1618
1619         Avoid a gcc warning.
1620         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
1621         of correct type for %08lx directive.
1622         Reported by Eric Blake.
1623
1624 2010-04-24  Bruno Haible  <bruno@clisp.org>
1625
1626         vasnprintf: Correct errno value in case of out-of-memory.
1627         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
1628         or sprintf. Use the errno value from SNPRINTF or sprintf.
1629         Reported by Ian Beckwith <ianb@erislabs.net>.
1630
1631 2010-04-24  Bruno Haible  <bruno@clisp.org>
1632
1633         ansi-c++-opt: Find correct compiler when cross-compiling.
1634         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
1635         AC_CHECK_PROGS.
1636         Reported by Simon Josefsson.
1637
1638 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
1639
1640         vc-list-files: Add support for subversion
1641         * build-aux/vc-list-files: Use "svn list" to generate the list of
1642         files controlled by subversion.
1643
1644 2010-04-23  Jim Meyering  <meyering@redhat.com>
1645
1646         vc-list-files tests: convert to use init.sh
1647         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
1648         path_prepend_.
1649         Use Exit, not exit.
1650         Use skip_ rather than open coding it.
1651         Remove trap set-up and compare definitions.
1652         * tests/test-vc-list-files-git.sh: Likewise.
1653         * modules/vc-list-files-tests (Files): Add tests/init.sh.
1654
1655 2010-04-22  Simon Josefsson  <simon@josefsson.org>
1656
1657         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
1658         backup files.
1659
1660 2010-04-21  Simon Josefsson  <simon@josefsson.org>
1661
1662         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
1663
1664 2010-04-20  Eric Blake  <eblake@redhat.com>
1665
1666         tests: be robust to ignored SIGPIPE
1667         * tests/test-select-in.sh: Consume all output.
1668         * tests/test-lseek.sh: Check correct exit status, while avoiding
1669         EPIPE.
1670
1671 2010-04-20  Simon Josefsson  <simon@josefsson.org>
1672             Bruno Haible  <bruno@clisp.org>
1673
1674         visibility: Don't use -fvisibility if it leads to a warning.
1675         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
1676         yes, don't pretend that visibility works if it leads to a warning.
1677         Reported by Mike Gran <spk121@yahoo.com>.
1678
1679 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
1680
1681         * build-aux/bootstrap: Use "git -h" for testing for supported options
1682         instead of "git --help".  The short-form option only shows a summary,
1683         and doesn't layout the full man page.  Grep for the full option name
1684         in the summary, too.
1685
1686 2010-04-19  Bruno Haible  <bruno@clisp.org>
1687
1688         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
1689         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
1690         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
1691         mention of RELOCATABLE_STRIP.
1692         Reported by Sylvain Beucler <beuc@beuc.net>.
1693
1694 2010-04-19  Bruno Haible  <bruno@clisp.org>
1695
1696         * lib/diffseq.h: Fix typo in comment.
1697         Reported by Eric Blake.
1698
1699 2010-04-19  Bruno Haible  <bruno@clisp.org>
1700
1701         ioctl: Move autoconf macro to a .m4 file.
1702         * m4/ioctl.m4: New file, extracted from modules/ioctl.
1703         * modules/ioctl (Files): Add it.
1704         (configure.ac): Simply invoke gl_FUNC_IOCTL.
1705         Reported by Ian Beckwith <ianb@erislabs.net>.
1706
1707 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
1708             Bruno Haible  <bruno@clisp.org>
1709
1710         diffseq: Accommodate use-case with abstract arrays.
1711         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
1712         is not defined.
1713         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
1714         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
1715
1716 2010-04-18  Bruno Haible  <bruno@clisp.org>
1717
1718         * doc/posix-headers/stdbool.texi: More precise wording.
1719
1720 2010-04-17  Jim Meyering  <meyering@redhat.com>
1721
1722         maint.mk: use gnu-style indentation in an embedded perl script
1723         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
1724         Rename variable: s/two/last_two_bytes/
1725
1726 2010-04-16  Eric Blake  <eblake@redhat.com>
1727
1728         test-stdbool: skip test that fails with Solaris CC
1729         * tests/test-stdbool.c (f): Skip test that causes compilation
1730         error under buggy C++ compiler.
1731         * lib/stdbool.in.h: Document the limitation.
1732         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
1733
1734         setenv: allow compilation with C++
1735         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
1736         register keyword.
1737
1738         stdint: allow test to pass with C++
1739         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
1740
1741         getopt: allow compilation with C++
1742         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
1743         struct.
1744         * lib/getopt.c (_getopt_internal_r): Use correct type.
1745         Reported by Dagobert Michelson, via Joel E. Denny.
1746
1747 2010-04-16  Bruno Haible  <bruno@clisp.org>
1748
1749         Override netdb.h always.
1750         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
1751         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
1752         Reported by Ludovic Courtès <ludo@gnu.org>.
1753
1754 2010-04-15  Bruno Haible  <bruno@clisp.org>
1755
1756         openpty: Fix mistake from 2010-03-21.
1757         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
1758         Reported by Simon Josefsson.
1759
1760 2010-04-15  Eric Blake  <eblake@redhat.com>
1761
1762         test-forkpty: fix expected signature
1763         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
1764         Reported by Simon Josefsson.
1765
1766 2010-04-15  Jim Meyering  <meyering@redhat.com>
1767
1768         maint.mk: texinfo_suffix_re_: correct the default regexp
1769         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
1770
1771         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
1772         make it configurable via texinfo_suffix_re_.
1773
1774 2010-04-14  Eric Blake  <eblake@redhat.com>
1775
1776         strtok_r: relax license to LGPLv2+
1777         * modules/strtok_r (License): Relax license.
1778         Reported by Matthias Bolte.
1779
1780 2010-04-14  Simon Josefsson  <simon@josefsson.org>
1781
1782         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
1783         version 1.4.4 by default instead of requiring the libgcrypt
1784         version used during build.  This makes it possible to use the
1785         application with older but still binary compatible libgcrypt
1786         versions.
1787
1788 2010-04-13  Eric Blake  <eblake@redhat.com>
1789
1790         getopt-gnu: match recent glibc fixes and posix ruling
1791         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
1792         '+' handling, when requesting extensions.
1793         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
1794         'W;' handling.
1795         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
1796         * doc/posix-functions/getopt.texi (getopt): Document this.
1797         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
1798         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
1799         Likewise.
1800
1801         getopt: merge bug fixes from glibc
1802         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
1803         diagnostics.  Honor '+:' correctly.  Reject ';'.
1804
1805         getopt-posix: detect MacOS bug
1806         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
1807         optind when missing a required argument.
1808         * doc/posix-functions/getopt.texi (getopt): Document the bug.
1809         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
1810         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
1811         Likewise.
1812
1813         getopt-posix: avoid spurious failure on Solaris
1814         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
1815         an indicator that setting optind=1 is sufficient for reset.
1816
1817         getopt-posix: avoid spurious failure on FreeBSD
1818         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
1819         in POSIX mode, since the m4 test uses it.
1820
1821         gnulib-tool: silence warning on BSD sh
1822         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
1823
1824 2010-04-13  Jim Meyering  <meyering@redhat.com>
1825
1826         doc: users.txt: GNU patch now uses gnulib
1827         * users.txt: Add patch.
1828
1829 2010-04-12  Jim Meyering  <meyering@redhat.com>
1830
1831         maint.mk: generate more concise timing data for syntax-check rules
1832         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
1833         " done" from each line that reports a syntax-check test duration.
1834
1835 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
1836
1837         git-version-gen: use "git update-index..." rather than "git status"
1838         * build-aux/git-version-gen: Use git update-index --refresh, not
1839         "git status".  With some versions of git, "git status" would fail
1840         to update the index and result in an unwarranted "-dirty" suffix.
1841
1842 2010-04-11  Jim Meyering  <meyering@redhat.com>
1843
1844         openat: correct formatting (no semantic change)
1845         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
1846         Suggested by Bruno Haible.
1847
1848 2010-04-11  Bruno Haible  <bruno@clisp.org>
1849
1850         Stricter declaration checking in testdirs.
1851         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1852         If for_tests is true, augment AM_CPPFLAGS to define
1853         GNULIB_STRICT_CHECKING.
1854         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
1855         GNULIB_STRICT_CHECKING is defined, verify that the function is
1856         declared.
1857
1858 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
1859             Bruno Haible  <bruno@clisp.org>
1860
1861         libunistring: Improve configure output.
1862         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
1863         Don't say "consider installing GNU libunistring" when checking again
1864         with libiconv.
1865
1866 2010-04-11  Bruno Haible  <bruno@clisp.org>
1867
1868         libunistring: Correct value of $LTLIBUNISTRING.
1869         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
1870         correct the value of $LTLIBUNISTRING.
1871
1872 2010-04-11  Bruno Haible  <bruno@clisp.org>
1873
1874         havelib: Add static libraries to LIBS in the right order.
1875         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
1876         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
1877
1878 2010-04-11  Bruno Haible  <bruno@clisp.org>
1879
1880         libunistring: Detect libunistring also when it depends on libiconv.
1881         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
1882         the second AC_LIB_HAVE_LINKFLAGS invocation.
1883
1884 2010-04-11  James Youngman  <jay@gnu.org>
1885
1886         close-stream: declare local scalars to be "const"
1887         * lib/close-stream.c (close_stream): Make boolean variables const
1888         to document the fact that we set but do not change them.
1889
1890 2010-04-11  Bruno Haible  <bruno@clisp.org>
1891
1892         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
1893
1894 2010-04-11  Jim Meyering  <meyering@redhat.com>
1895
1896         maint.mk: don't include dist-check.mk
1897         * top/maint.mk: Remove bogus include directive.
1898
1899         maint.mk: improve empty-line-at-EOF check
1900         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
1901         solution, rather than tail+Perl-based one.  The latter would read
1902         a few kilobytes from the end of each file, and did not handle empty
1903         files properly.
1904
1905         maint.mk: print the elapsed time for each syntax-check rule
1906         * top/maint.mk (sc_m_rules_): Save start time in a file.
1907         (sc_z_rules_): New rules: remove temp file and print elapsed time.
1908         (local-check): Interpose the .z rules
1909
1910 2010-04-11  Jim Meyering  <meyering@redhat.com>
1911
1912         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
1913         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
1914         empty file with one that ends in an empty line.
1915
1916 2010-04-10  Bruno Haible  <bruno@clisp.org>
1917
1918         mkdir: Make it work on mingw64.
1919         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
1920         * lib/mkdir.c: Update comment.
1921         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
1922
1923 2010-04-10  Bruno Haible  <bruno@clisp.org>
1924
1925         Don't override improved macro from newer autoconf.
1926         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
1927         autoconf >= 2.62.
1928         Reported by Joel E. Denny <jdenny@clemson.edu>.
1929
1930 2010-04-10  Jim Meyering  <meyering@redhat.com>
1931
1932         maint.mk: new syntax-check rule: prohibit empty lines at end of file
1933         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
1934
1935         maint.mk: correct a diagnostic
1936         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
1937         in diagnostic; now use $prohibit.
1938
1939 2010-04-10  Bruno Haible  <address@hidden>
1940
1941         fchownat: Fix a C++ test error on Solaris 8.
1942         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
1943         the function does not exist.
1944
1945 2010-04-10  Bruno Haible  <bruno@clisp.org>
1946
1947         vasnprintf: Add more tests.
1948         * tests/test-vasnprintf-posix.c: Include <errno.h>.
1949         (test_function): Test converting an invalid wide string.
1950
1951         vasnprintf: Correct handling of unconvertible wide string arguments.
1952         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
1953         VASNPRINTF.
1954         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
1955         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
1956         smaller than the expected maximum need for the directive. Set errno to
1957         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
1958         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
1959         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
1960         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
1961         * modules/vasnprintf (Files): Add m4/printf.m4.
1962         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
1963
1964 2010-04-10  Bruno Haible  <bruno@clisp.org>
1965
1966         vasnprintf: Fix crash in %ls directive.
1967         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
1968         string is passed as argument to %ls, with no precision and no width.
1969         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
1970
1971 2010-04-10  Bruno Haible  <bruno@clisp.org>
1972
1973         vasnprintf: Fix multiple test failures on mingw.
1974         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
1975         _snprintf, or snwprintf, not _snwprintf.
1976
1977 2010-04-10  Bruno Haible  <bruno@clisp.org>
1978
1979         write: Fix a C++ test error on mingw.
1980         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
1981
1982 2010-04-10  Bruno Haible  <bruno@clisp.org>
1983
1984         vasnprintf test: Reduce code duplication.
1985         * tests/test-vasnprintf.c (test_function): New function, extracted from
1986         test_vasnprintf.
1987         (test_vasnprintf, test_asnprintf): Invoke it.
1988
1989 2010-04-10  Bruno Haible  <bruno@clisp.org>
1990
1991         strnlen: Fix warning in C++ mode on MacOS X.
1992         * lib/string.in.h (strnlen): Use the modern idiom.
1993         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
1994         defining strnlen as a macro already in <config.h>.
1995         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1996         REPLACE_STRNLEN.
1997         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
1998         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
1999
2000 2010-04-08  James Youngman  <jay@gnu.org>
2001
2002         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
2003         the example.
2004
2005 2010-04-09  Jim Meyering  <meyering@redhat.com>
2006
2007         maint.mk: print better diagnostic when there is no $(_hv_file)
2008         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
2009         announce that when $(_hv_file) (aka help-version) does not exist.
2010
2011         init.sh: run tr in the "C" locale to avoid multibyte interpretation
2012         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
2013         not try to interpret its random input bytes.  Jarno Rajahalme reported
2014         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
2015         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
2016         (mktempd_): Likewise, just in case.
2017
2018         ftruncate: add two years to projected module removal date: 2012
2019         * m4/ftruncate.m4: Adjust comments.
2020
2021         ftruncate: mark module as obsolete; even MinGW provides it, now
2022         * modules/ftruncate (Status): Obsolete.
2023         (Notice): Say that.
2024         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
2025         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
2026
2027 2010-04-08  Bruno Haible  <bruno@clisp.org>
2028
2029         Fix side effects from tests-related modules.
2030         * modules/dprintf-posix (Comment): New section.
2031         * modules/fprintf-posix (Comment): Likewise.
2032         * modules/obstack-printf-posix (Comment): Likewise.
2033         * modules/printf-posix (Comment): Likewise.
2034         * modules/snprintf-posix (Comment): Likewise.
2035         * modules/sprintf-posix (Comment): Likewise.
2036         * modules/vasnprintf-posix (Comment): Likewise.
2037         * modules/vasprintf-posix (Comment): Likewise.
2038         * modules/vdprintf-posix (Comment): Likewise.
2039         * modules/vfprintf-posix (Comment): Likewise.
2040         * modules/vprintf-posix (Comment): Likewise.
2041         * modules/vsnprintf-posix (Comment): Likewise.
2042         * modules/vsprintf-posix (Comment): Likewise.
2043         * modules/xprintf-posix (Comment): Likewise.
2044         * modules/xvasprintf-posix (Comment): Likewise.
2045         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
2046         * modules/floorf-tests (Depends-on): Likewise.
2047         * modules/round-tests (Depends-on): Likewise.
2048         * modules/roundf-tests (Depends-on): Likewise.
2049         * modules/trunc-tests (Depends-on): Likewise.
2050         * modules/truncf-tests (Depends-on): Likewise.
2051         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
2052         'fprintf-posix' module is not present.
2053         * tests/test-floorf2.c (check): Likewise.
2054         * tests/test-trunc2.c (check): Likewise.
2055         * tests/test-truncf2.c (check): Likewise.
2056         * tests/test-round2.c (equal): Likewise.
2057         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2058
2059 2010-04-07  Karl Berry  <karl@gnu.org>
2060
2061         * config/srclist.txt,
2062         * config/srclistvars.sh,
2063         * config/srclist-update: doc fixes.
2064
2065 2010-04-07  Jim Meyering  <meyering@redhat.com>
2066
2067         maint.mk: add a PATH crosschecking syntax-check rule
2068         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
2069         Useful if you use a test like the one in help-version (coreutils,
2070         diffutils, grep, gzip) that ensures $(VERSION) matches what is
2071         printed by prog --version.
2072
2073 2010-04-06  Bruno Haible  <bruno@clisp.org>
2074
2075         Fix link error on mingw.
2076         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
2077         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
2078
2079 2010-04-06  Bruno Haible  <bruno@clisp.org>
2080
2081         Assume rmdir exists.
2082         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
2083
2084 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
2085
2086         doc: update users.txt
2087         * users.txt: Add gcal.
2088
2089 2010-04-06  Jim Meyering  <meyering@redhat.com>
2090
2091         init.sh: simply unset TMPDIR rather than risking env -i
2092         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
2093         although it probably works fine on all Unix-based systems, some
2094         systems (Cygwin?) cannot tolerate a totally cleared environment.
2095         Suggestion from Eric Blake.
2096
2097 2010-04-06  Jim Meyering  <meyering@redhat.com>
2098
2099         init.sh: portability fix: use env's POSIX-specified -i option not -u
2100         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
2101         than unportable env -u.  Solaris 5.11's env lacks support for -u.
2102
2103 2010-04-05  Bruno Haible  <bruno@clisp.org>
2104
2105         btowc: Work around Cygwin 1.7.2 bug.
2106         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
2107         does not map NUL to 0.
2108         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
2109
2110 2010-04-05  Bruno Haible  <bruno@clisp.org>
2111
2112         Make the multithread modules work on Cygwin 1.7.2.
2113         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
2114         imported symbols can be declared weak, so that it returns "no" on
2115         Cygwin 1.7.2.
2116
2117 2010-04-05  Bruno Haible  <bruno@clisp.org>
2118
2119         Use the module 'strncat'.
2120         * modules/unistr/u8-strncat (Depends-on): Add strncat.
2121
2122         Tests for module 'strncat'.
2123         * modules/strncat-tests: New file.
2124         * tests/test-strncat.c: New file.
2125
2126         New module 'strncat'.
2127         * lib/string.in.h (strncat): New declaration.
2128         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
2129         * m4/strncat.m4: New file, based on m4/memchr.m4.
2130         * modules/strncat: New file.
2131         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
2132         is declared.
2133         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
2134         REPLACE_STRNCAT.
2135         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
2136         REPLACE_STRNCAT.
2137         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
2138         module.
2139         * tests/test-string-c++.cc: Check signature of strncat.
2140
2141 2010-04-05  Jim Meyering  <meyering@redhat.com>
2142
2143         xstrtoumax-tests: convert to use init.sh
2144         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
2145         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
2146         Use Exit, not exit.
2147         Remove uses of $EXEEXT and "./" to run a program in the current dir.
2148
2149         xstrtoimax-tests: convert to use init.sh
2150         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
2151         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
2152         Use Exit, not exit.
2153         Remove uses of $EXEEXT and "./" to run a program in the current dir.
2154
2155 2010-04-05  Bruno Haible  <bruno@clisp.org>
2156
2157         sys_socket: Avoid #define replacements in C++ mode.
2158         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
2159         warning to the function if possible, rather than #defining the symbol
2160         to a dysfunctional alias.
2161
2162 2010-04-05  Bruno Haible  <bruno@clisp.org>
2163
2164         fseeko: Fix C++ test error on mingw.
2165         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
2166         gl_FUNC_FSEEKO.
2167         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
2168         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
2169         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
2170         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
2171
2172 2010-04-05  Bruno Haible  <bruno@clisp.org>
2173
2174         duplocale: Improve test output.
2175         * tests/test-duplocale.c (main): Print reason for skipped test.
2176
2177 2010-04-05  Bruno Haible  <bruno@clisp.org>
2178
2179         Assume rmdir exists.
2180         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
2181         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
2182
2183 2010-04-05  Bruno Haible  <bruno@clisp.org>
2184
2185         Fix link error on Solaris 8 with cc.
2186         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
2187
2188 2010-04-05  Bruno Haible  <bruno@clisp.org>
2189
2190         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
2191         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
2192
2193 2010-04-05  Bruno Haible  <bruno@clisp.org>
2194
2195         vasprintf: Update documentation.
2196         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
2197
2198 2010-04-05  Bruno Haible  <bruno@clisp.org>
2199
2200         ptsname: Improve test.
2201         * tests/test-ptsname.c (main): Also try the various master names of BSD
2202         systems.
2203
2204 2010-04-05  Bruno Haible  <bruno@clisp.org>
2205
2206         memchr: Avoid a possible C++ test error.
2207         * lib/string.in.h (memchr): Provide declaration if function is missing.
2208         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
2209         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
2210         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
2211         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
2212
2213 2010-04-05  Bruno Haible  <bruno@clisp.org>
2214
2215         strtok_r: Improve idiom.
2216         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
2217         AC_LIBOBJ is used.
2218
2219 2010-04-05  Bruno Haible  <bruno@clisp.org>
2220
2221         strdup: Improve idiom.
2222         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
2223         AC_LIBOBJ is used.
2224         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
2225         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
2226         when AC_LIBOBJ is used.
2227
2228 2010-04-05  Bruno Haible  <bruno@clisp.org>
2229
2230         mbsinit, mbrtowc, wcrtomb: Improve idioms.
2231         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
2232         don't set REPLACE_MBSINIT to 1.
2233         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
2234         don't set REPLACE_MBRTOWC to 1.
2235         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
2236         exist, don't set REPLACE_MBSRTOWCS to 1.
2237         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
2238         exist, don't set REPLACE_MBSNRTOWCS to 1.
2239         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
2240         don't set REPLACE_WCRTOMB to 1.
2241         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
2242         exist, don't set REPLACE_WCSRTOMBS to 1.
2243         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
2244         exist, don't set REPLACE_WCSNRTOMBS to 1.
2245
2246 2010-04-05  Bruno Haible  <bruno@clisp.org>
2247
2248         ldexpl: Improve idiom.
2249         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
2250         make sure to set HAVE_DECL_LDEXPL to 0.
2251
2252 2010-04-05  Jim Meyering  <meyering@redhat.com>
2253
2254         xstrtol-tests: convert to use init.sh
2255         * modules/xstrtol-tests (Files): Add tests/init.sh.
2256         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
2257         Use Exit, not exit.
2258         Remove uses of $EXEEXT and "./" to run a program in the current dir.
2259
2260         atexit-tests: convert to use init.sh
2261         * modules/atexit-tests (Files): Add tests/init.sh.
2262         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
2263         Use Exit, not exit.
2264         Remove uses of $EXEEXT and "./" to run a program in the current dir.
2265
2266         init.sh: fix typo
2267         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
2268
2269         init.sh: make it easier for a test script to write to the tty, ...
2270         when using automake's parallel-tests mode.
2271         * tests/init.sh (stderr_fileno_): Define overridable variable.
2272         (warn_): New function, to use it.
2273         (fail_, skip_, framework_failure_): Use warn_.
2274
2275 2010-04-04  Bruno Haible  <bruno@clisp.org>
2276
2277         btowc: Avoid warning.
2278         * lib/btowc.c: Include <stdlib.h>.
2279         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
2280
2281 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
2282             Bruno Haible  <bruno@clisp.org>
2283
2284         wchar: Port to NetBSD 1.5.
2285         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
2286         * lib/wctype.in.h (WEOF): Likewise.
2287
2288 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
2289             Bruno Haible  <bruno@clisp.org>
2290
2291         Port extended stdio to NetBSD 1.5.
2292         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
2293         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
2294         older.
2295
2296 2010-04-04  Bruno Haible  <bruno@clisp.org>
2297
2298         string: Remove unused substitution.
2299         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
2300         HAVE_DECL_STRERROR.
2301         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
2302
2303 2010-04-04  Bruno Haible  <bruno@clisp.org>
2304
2305         strtod: Avoid a possible C++ test error.
2306         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
2307         set REPLACE_STRTOD.
2308
2309 2010-04-04  Bruno Haible  <bruno@clisp.org>
2310
2311         strerror: Update documentation.
2312         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
2313
2314 2010-04-04  Bruno Haible  <bruno@clisp.org>
2315
2316         stdio: Fix some C++ test errors on Solaris 8 with GCC.
2317         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
2318         _GL_CXXALIAS_SYS_CAST.
2319
2320 2010-04-04  Bruno Haible  <bruno@clisp.org>
2321
2322         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
2323         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
2324         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
2325         REPLACE_FREXPL to 1.
2326         * doc/posix-functions/frexpl.texi: Update documentation.
2327
2328 2010-04-04  Bruno Haible  <bruno@clisp.org>
2329
2330         math: Fix some C++ test errors on Solaris 8 and Cygwin.
2331         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
2332
2333 2010-04-04  Bruno Haible  <bruno@clisp.org>
2334
2335         Implement nanosleep for native Windows.
2336         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
2337
2338 2010-04-04  Bruno Haible  <bruno@clisp.org>
2339
2340         math: Fix some C++ test errors on Solaris 8.
2341         * lib/math.in.h (truncf, trunc): Use simpler idiom.
2342
2343 2010-04-04  Bruno Haible  <bruno@clisp.org>
2344
2345         math: Fix some C++ test errors on Cygwin.
2346         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
2347         truncl): Provide declaration if the system does not have it.
2348         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
2349         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
2350         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
2351         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
2352         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
2353         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
2354         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
2355         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
2356         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
2357         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
2358         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
2359         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
2360         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
2361         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
2362         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
2363         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
2364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
2365         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
2366         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
2367         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
2368         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
2369         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
2370
2371 2010-04-04  Bruno Haible  <bruno@clisp.org>
2372
2373         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
2374         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2375         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
2376         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
2377         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
2378         * m4/isinf.m4 (gl_ISINF): Likewise.
2379         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2380
2381 2010-04-04  Bruno Haible  <bruno@clisp.org>
2382
2383         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
2384         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2385
2386 2010-04-04  Bruno Haible  <bruno@clisp.org>
2387
2388         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
2389         * modules/tmpfile (configure.ac): Update.
2390
2391         tmpfile: Fix C++ test error on mingw.
2392         * lib/stdio.in.h (tmpfile): New declaration.
2393         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
2394         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
2395         * modules/tmpfile (Depends-on): Add stdio.
2396         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
2397         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
2398         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
2399         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
2400         REPLACE_TMPFILE.
2401         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
2402
2403 2010-04-04  Bruno Haible  <bruno@clisp.org>
2404
2405         ioctl: Fix C++ test error on mingw.
2406         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
2407         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
2408         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
2409
2410 2010-04-03  Bruno Haible  <bruno@clisp.org>
2411
2412         wcwidth: Fix C++ test error on mingw.
2413         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
2414         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
2415         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
2416
2417 2010-04-03  Bruno Haible  <bruno@clisp.org>
2418
2419         nanosleep: Fix C++ test error on mingw.
2420         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
2421         * lib/time.in.h (nanosleep): Use modern idiom.
2422         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
2423         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
2424         REPLACE_NANOSLEEP to 1.
2425         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
2426         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
2427
2428 2010-04-03  Bruno Haible  <bruno@clisp.org>
2429
2430         strptime: Fix C++ test error on mingw.
2431         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
2432         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
2433         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
2434         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
2435         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
2436         not REPLACE_STRPTIME.
2437         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
2438         REPLACE_STRPTIME.
2439
2440 2010-04-03  Bruno Haible  <bruno@clisp.org>
2441
2442         timegm: Fix C++ test error on mingw.
2443         * lib/time.in.h (timegm): Use modern idiom.
2444         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
2445         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
2446         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
2447         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
2448
2449 2010-04-03  Bruno Haible  <bruno@clisp.org>
2450
2451         timegm: Assume declaration if function exists.
2452         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
2453         if it exists. Don't clobber ac_cv_func_timegm.
2454
2455 2010-04-03  Bruno Haible  <bruno@clisp.org>
2456
2457         time_r: Fix C++ test error on mingw.
2458         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
2459         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
2460         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
2461         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
2462         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
2463
2464 2010-04-03  Bruno Haible  <bruno@clisp.org>
2465
2466         time_r: Minor updates.
2467         * modules/time_r (Description): Mention the provided functions.
2468         * lib/time_r.c: Don't include <string.h>.
2469         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
2470         * doc/posix-functions/localtime_r.texi: Likewise.
2471
2472 2010-04-03  Bruno Haible  <bruno@clisp.org>
2473
2474         time: Fix regression introduced on 2010-03-08.
2475         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
2476         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
2477
2478 2010-04-03  Jim Meyering  <meyering@redhat.com>
2479
2480         maint.mk: don't silently disable project-specific syntax-check rules
2481         * top/maint.mk (_prohibit_regexp): Define, to help people realize
2482         that they need to convert their project-specific syntax-check rules
2483         to use the new _sc_search_regexp.
2484
2485 2010-04-03  Bruno Haible  <bruno@clisp.org>
2486
2487         fchdir: Fix regression introduced on 2010-03-08.
2488         * lib/unistd.in.h (fchdir): Fix declaration.
2489         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
2490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
2491         REPLACE_FCHDIR.
2492         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
2493         REPLACE_FCHDIR.
2494
2495 2010-04-03  Bruno Haible  <bruno@clisp.org>
2496
2497         getpagesize: Fix C++ test error on mingw.
2498         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
2499         system does not declare the function.
2500         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
2501         declared.
2502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2503         HAVE_DECL_GETPAGESIZE.
2504         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
2505
2506 2010-04-03  Bruno Haible  <bruno@clisp.org>
2507
2508         stdio: Make C++ tests work on mingw.
2509         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
2510         does not declare the function.
2511
2512 2010-04-03  Bruno Haible  <bruno@clisp.org>
2513
2514         ftello: Fix C++ test error on mingw.
2515         * lib/stdio.in.h (ftello): Use modern idiom.
2516         * lib/ftello.c (ftello): Renamed from rpl_ftello.
2517         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
2518         is missing and that it needs to be replaced.
2519         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
2520         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
2521         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
2522
2523 2010-04-03  Bruno Haible  <bruno@clisp.org>
2524
2525         fseeko: Fix C++ test error on mingw.
2526         * lib/stdio.in.h (fseeko): Use modern idiom.
2527         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
2528         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
2529         is missing and that it needs to be replaced.
2530         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
2531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
2532         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
2533
2534 2010-04-03  Bruno Haible  <bruno@clisp.org>
2535
2536         mkstemp: Fix C++ test error on mingw.
2537         * lib/stdlib.in.h (mkstemp): Use modern idiom.
2538         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
2539         function is missing and that it needs to be replaced.
2540         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
2541         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
2542
2543 2010-04-03  Bruno Haible  <bruno@clisp.org>
2544
2545         stpncpy: Fix C++ test error on mingw.
2546         * lib/string.in.h (stpncpy): Use modern idiom.
2547         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
2548         function is missing and that it needs to be replaced.
2549         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2550         REPLACE_STPNCPY.
2551         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
2552
2553 2010-04-03  Bruno Haible  <bruno@clisp.org>
2554
2555         sys_stat: Fix C++ test error on mingw.
2556         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
2557         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
2558
2559 2010-04-03  Bruno Haible  <bruno@clisp.org>
2560
2561         pty: Update doc.
2562         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
2563
2564 2010-04-03  Bruno Haible  <bruno@clisp.org>
2565
2566         unistd: Fix C++ test error on mingw.
2567         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
2568
2569 2010-04-03  Bruno Haible  <bruno@clisp.org>
2570
2571         Update doc regarding mingw.
2572         * doc/glibc-functions/openpty.texi: Update regarding mingw.
2573         * doc/glibc-functions/login_tty.texi: Likewise.
2574         * doc/glibc-functions/forkpty.texi: Likewise.
2575
2576 2010-04-03  Bruno Haible  <bruno@clisp.org>
2577
2578         stdlib: Avoid compilation failure of c-strtold on mingw.
2579         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
2580
2581 2010-04-03  Bruno Haible  <bruno@clisp.org>
2582
2583         locale: Make C++ tests work on Cygwin and mingw.
2584         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
2585         cannot provide the function.
2586         Reported by Simon Josefsson.
2587
2588 2010-04-03  Bruno Haible  <bruno@clisp.org>
2589
2590         localename: Port to MacOS X 10.6.
2591         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
2592         memory layout of the locales in MacOS X 10.6 as well.
2593         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
2594
2595 2010-04-02  Bruno Haible  <bruno@clisp.org>
2596
2597         gnulib-tool: Ensure that long-running tests are executed last.
2598         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
2599         running tests after the one for the other tests.
2600
2601 2010-04-02  Bruno Haible  <bruno@clisp.org>
2602
2603         gnulib-tool: Ensure the tests in the main directory are executed first.
2604         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
2605         start with the current directory.
2606
2607 2010-04-02  Bruno Haible  <bruno@clisp.org>
2608
2609         Tests for module 'havelib', moved here from GNU gettext.
2610         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
2611         modifications.
2612         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
2613         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
2614         with modifications.
2615         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
2616         modifications.
2617         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
2618         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
2619         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
2620         with modifications.
2621         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
2622         with modifications.
2623         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
2624         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
2625         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
2626         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
2627         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
2628         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
2629         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
2630         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
2631         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
2632         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
2633         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
2634         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
2635         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
2636         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
2637         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
2638         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
2639         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
2640         with modifications.
2641         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
2642         with modifications.
2643         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
2644         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
2645         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
2646         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
2647         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
2648         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
2649         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
2650         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
2651         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
2652         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
2653         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
2654         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
2655         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
2656         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
2657         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
2658         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
2659         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
2660         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
2661         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
2662         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
2663         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
2664         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
2665         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
2666         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
2667         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
2668         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
2669         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
2670         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
2671         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
2672         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
2673         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
2674         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
2675         * tests/havelib/rpathx/rpathx.c: New file, from
2676         gettext/autoconf-lib-link.
2677         * tests/havelib/rpathx/Makefile.am: New file, from
2678         gettext/autoconf-lib-link.
2679         * tests/havelib/rpathx/configure.ac: New file, from
2680         gettext/autoconf-lib-link with modifications.
2681         * tests/havelib/rpathy/rpathy.c: New file, from
2682         gettext/autoconf-lib-link.
2683         * tests/havelib/rpathy/Makefile.am: New file, from
2684         gettext/autoconf-lib-link.
2685         * tests/havelib/rpathy/configure.ac: New file, from
2686         gettext/autoconf-lib-link with modifications.
2687         * tests/havelib/rpathz/rpathz.c: New file, from
2688         gettext/autoconf-lib-link.
2689         * tests/havelib/rpathz/Makefile.am: New file, from
2690         gettext/autoconf-lib-link.
2691         * tests/havelib/rpathz/configure.ac: New file, from
2692         gettext/autoconf-lib-link with modifications.
2693         * tests/havelib/rpathlx/usex.c: New file, from
2694         gettext/autoconf-lib-link.
2695         * tests/havelib/rpathlx/Makefile.am: New file, from
2696         gettext/autoconf-lib-link.
2697         * tests/havelib/rpathlx/configure.ac: New file, from
2698         gettext/autoconf-lib-link with modifications.
2699         * tests/havelib/rpathly/usey.c: New file, from
2700         gettext/autoconf-lib-link.
2701         * tests/havelib/rpathly/Makefile.am: New file, from
2702         gettext/autoconf-lib-link.
2703         * tests/havelib/rpathly/configure.ac: New file, from
2704         gettext/autoconf-lib-link with modifications.
2705         * tests/havelib/rpathlz/usez.c: New file, from
2706         gettext/autoconf-lib-link.
2707         * tests/havelib/rpathlz/Makefile.am: New file, from
2708         gettext/autoconf-lib-link.
2709         * tests/havelib/rpathlz/configure.ac: New file, from
2710         gettext/autoconf-lib-link with modifications.
2711         * tests/havelib/rpathlyx/usey.c: New file, from
2712         gettext/autoconf-lib-link.
2713         * tests/havelib/rpathlyx/Makefile.am: New file, from
2714         gettext/autoconf-lib-link.
2715         * tests/havelib/rpathlyx/configure.ac: New file, from
2716         gettext/autoconf-lib-link with modifications.
2717         * tests/havelib/rpathlzyx/usez.c: New file, from
2718         gettext/autoconf-lib-link.
2719         * tests/havelib/rpathlzyx/Makefile.am: New file, from
2720         gettext/autoconf-lib-link.
2721         * tests/havelib/rpathlzyx/configure.ac: New file, from
2722         gettext/autoconf-lib-link with modifications.
2723         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
2724         with modifications.
2725
2726 2010-04-02  Bruno Haible  <bruno@clisp.org>
2727
2728         gnulib-tool: Create distributed built sources also for the tests.
2729         * gnulib-tool (func_create_testdir): Also generate distributed built
2730         sources in the tests directory.
2731
2732 2010-04-02  Bruno Haible  <bruno@clisp.org>
2733
2734         gnulib-tool: Obey user's environment variables.
2735         * gnulib-tool (func_create_testdir): When creating built sources,
2736         respect the environment variables for autoconf, automake, etc. given by
2737         the user.
2738
2739 2010-04-02  Bruno Haible  <bruno@clisp.org>
2740
2741         gnulib-tool: Provide the value of --m4-base to modules.
2742         * gnulib-tool (func_import, func_create_testdir): Emit a definition
2743         of gl_m4_base.
2744
2745 2010-04-02  Eric Blake  <eblake@redhat.com>
2746
2747         maint.mk: fix some fallout
2748         * NEWS: Document the incompatible change, and its effect on cfg.mk.
2749         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
2750
2751 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
2752
2753         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
2754         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
2755         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
2756         (sc_cast_of_x_alloc_return_value): Likewise.
2757         (sc_cast_of_alloca_return_value): Likewise.
2758         (sc_space_tab): Likewise.
2759         (sc_prohibit_atoi_atof): Likewise.
2760         (sc_prohibit_magic_number_exit): Likewise.
2761         (sc_error_exit_success): Likewise.
2762         (sc_file_system): Likewise.
2763         (sc_prohibit_have_config_h): Likewise.
2764         (sc_require_config_h): Likewise.
2765         (sc_prohibit_HAVE_MBRTOWC): Likewise.
2766         (sc_obsolete_symbols): Likewise.
2767         (sc_changelog): Likewise.
2768         (sc_program_name): Likewise.
2769         (sc_the_the): Likewise.
2770         (sc_trailing_blank): Likewise.
2771         (sc_two_space_separator_in_usage): Likewise.
2772         (sc_useless_cpp_parens): Likewise.
2773         (sc_GPL_version): Likewise.
2774         (sc_GFDL_version): Likewise.
2775         (sc_texinfo_acronym): Likewise.
2776         (sc_prohibit_cvs_keyword): Likewise.
2777         (sc_prohibit_stat_st_blocks): Likewise.
2778         (sc_prohibit_S_IS_definition): Likewise.
2779         (sc_redundant_const): Likewise.
2780         (sc_makefile_TAB_only_indentation): Likewise.
2781         (sc_m4_quote_check): Likewise.
2782         (sc_makefile_path_separator_check): Likewise.
2783         (sc_copyright_check): Likewise.
2784         (sc_Wundef_boolean): Likewise.
2785         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
2786
2787         maint.mk: match 0 or more whitespace-before-function-call '('
2788         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
2789         that have zero or two-and-more spaces between the function name
2790         and the open parenthesis.
2791         (sc_error_message_warn_fatal): Likewise.
2792         (sc_error_message_uppercase): Likewise.
2793         (sc_error_message_period): Likewise.
2794
2795 2010-03-31  Eric Blake  <eblake@redhat.com>
2796
2797         maint.mk: check for [ as well as test
2798         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
2799         Based on a libvirt report by Matthias Bolte.
2800
2801         gnumakefile: don't squelch _version output
2802         * top/GNUmakefile (_version): Create one-shot dependency rather
2803         than using $(shell) when version must be regenerated.
2804         (_autoreconf): Run verbosely, by default.
2805
2806         sys_time: avoid compiler warnings
2807         * lib/sys_time.in.h (includes): Ensure gcc pragma is
2808         unconditional, fixing regression from 2010-03-29.
2809         Reported by Simon Josefsson.
2810
2811 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
2812
2813         maint.mk: s/_header_without_use/_sc_header_without_use/
2814         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
2815         (sc_prohibit_assert_without_use): Use the new name.
2816         (sc_prohibit_close_stream_without_use): Likewise.
2817         (sc_prohibit_getopt_without_use): Likewise.
2818         (sc_prohibit_quotearg_without_use): Likewise.
2819         (sc_prohibit_quote_without_use): Likewise.
2820         (sc_prohibit_long_options_without_use): Likewise.
2821         (sc_prohibit_inttostr_without_use): Likewise.
2822         (sc_prohibit_ignore_value_without_use): Likewise.
2823         (sc_prohibit_error_without_use): Likewise.
2824         (sc_prohibit_xalloc_without_use): Likewise.
2825         (sc_prohibit_hash_without_use): Likewise.
2826         (sc_prohibit_hash_pjw_without_use): Likewise.
2827         (sc_prohibit_safe_read_without_use): Likewise.
2828         (sc_prohibit_argmatch_without_use): Likewise.
2829         (sc_prohibit_canonicalize_without_use): Likewise.
2830         (sc_prohibit_root_dev_ino_without_use): Likewise.
2831         (sc_prohibit_openat_without_use): Likewise.
2832         (sc_prohibit_c_ctype_without_use): Likewise.
2833         (sc_prohibit_signal_without_use): Likewise.
2834         (sc_prohibit_intprops_without_use): Likewise.
2835
2836 2010-03-30  Eric Blake  <eblake@redhat.com>
2837
2838         maint: improve module indicators
2839         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
2840         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
2841         columns, and avoid extra macro expansion.
2842
2843         fdopendir: work around FreeBSD bug
2844         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
2845         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
2846         * modules/dirent (Makefile.am): Substitute it.
2847         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
2848         declaration.
2849         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
2850         fix.
2851         Reported by Christian Weisgerber <naddy@mips.inka.de>.
2852
2853 2010-03-29  Bruno Haible  <bruno@clisp.org>
2854
2855         Emit #pragma system_header after the inclusion guard, not before.
2856         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
2857         guard that spans the entire file, not before. This enables an
2858         optimization in GCC's preprocessor.
2859         * lib/ctype.in.h: Likewise.
2860         * lib/dirent.in.h: Likewise.
2861         * lib/errno.in.h: Likewise.
2862         * lib/float.in.h: Likewise.
2863         * lib/getopt.in.h: Likewise.
2864         * lib/iconv.in.h: Likewise.
2865         * lib/langinfo.in.h: Likewise.
2866         * lib/locale.in.h: Likewise.
2867         * lib/math.in.h: Likewise.
2868         * lib/netdb.in.h: Likewise.
2869         * lib/netinet_in.in.h: Likewise.
2870         * lib/pty.in.h: Likewise.
2871         * lib/sched.in.h: Likewise.
2872         * lib/se-selinux.in.h: Likewise.
2873         * lib/search.in.h: Likewise.
2874         * lib/spawn.in.h: Likewise.
2875         * lib/stdarg.in.h: Likewise.
2876         * lib/stdint.in.h: Likewise.
2877         * lib/string.in.h: Likewise.
2878         * lib/strings.in.h: Likewise.
2879         * lib/sys_file.in.h: Likewise.
2880         * lib/sys_ioctl.in.h: Likewise.
2881         * lib/sys_time.in.h: Likewise.
2882         * lib/sys_times.in.h: Likewise.
2883         * lib/sys_utsname.in.h: Likewise.
2884         * lib/sys_wait.in.h: Likewise.
2885         * lib/sysexits.in.h: Likewise.
2886         * lib/wctype.in.h: Likewise.
2887
2888 2010-03-28  James Youngman  <jay@gnu.org>
2889
2890         save-cwd: don't leak a file descriptor when the caller execs.
2891         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
2892         saved file descriptor.
2893         * modules/save-cwd (Depends-on): Depend on cloexec.
2894
2895 2010-03-29  Bruno Haible  <bruno@clisp.org>
2896
2897         Remove vestiges of fts-lgpl module.
2898         * lib/fts_.h: Assume GNULIB_FTS is 1.
2899         * lib/fts.c: Likewise.
2900         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
2901
2902 2010-03-28  Bruno Haible  <bruno@clisp.org>
2903
2904         Fix definition of tests witness macro.
2905         * gnulib-tool (func_import): Fix definition of witness macro.
2906
2907 2010-03-28  Bruno Haible  <bruno@clisp.org>
2908
2909         Fix ioctl's protoype on glibc systems.
2910         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
2911         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
2912         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
2913         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
2914         signature. If not, arrange to replace the ioctl function.
2915         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
2916         REPLACE_IOCTL.
2917         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
2918         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
2919         Reported by Ludovic Courtès <ludo@gnu.org>.
2920
2921 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
2922
2923         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
2924         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
2925         made it so grep -r --include=GLOB* ... did not work.
2926
2927 2010-03-26  Jim Meyering  <meyering@redhat.com>
2928             Eric Blake  <eblake@redhat.com>
2929
2930         maint.mk: prohibit use of test's -o and -a operators
2931         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
2932
2933 2010-03-28  Bruno Haible  <bruno@clisp.org>
2934
2935         Remove unused GNULIB_XYZ macro definitions.
2936         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
2937         invocation.
2938
2939 2010-03-28  Bruno Haible  <bruno@clisp.org>
2940
2941         Mark privileged tests modules.
2942         * modules/idpriv-drop-tests (Status): New section.
2943         * modules/idpriv-droptemp-tests (Status): New section.
2944
2945 2010-03-28  Bruno Haible  <bruno@clisp.org>
2946
2947         Split C++ tests into separate tests modules.
2948         * modules/dirent-c++-tests: New file, extracted from
2949         modules/dirent-tests.
2950         * modules/dirent-tests: Depend on it.
2951         * modules/fcntl-h-c++-tests: New file, extracted from
2952         modules/fcntl-h-tests.
2953         * modules/fcntl-h-tests: Depend on it.
2954         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
2955         * modules/glob-tests: Depend on it.
2956         * modules/iconv-h-c++-tests: New file, extracted from
2957         modules/iconv-h-tests.
2958         * modules/iconv-h-tests: Depend on it.
2959         * modules/langinfo-c++-tests: New file, extracted from
2960         modules/langinfo-tests.
2961         * modules/langinfo-tests: Depend on it.
2962         * modules/locale-c++-tests: New file, extracted from
2963         modules/locale-tests.
2964         * modules/locale-tests: Depend on it.
2965         * modules/math-c++-tests: New file, extracted from modules/math-tests.
2966         * modules/math-tests: Depend on it.
2967         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
2968         * modules/pty-tests: Depend on it.
2969         * modules/search-c++-tests: New file, extracted from
2970         modules/search-tests.
2971         * modules/search-tests: Depend on it.
2972         * modules/signal-c++-tests: New file, extracted from
2973         modules/signal-tests.
2974         * modules/signal-tests: Depend on it.
2975         * modules/spawn-c++-tests: New file, extracted from
2976         modules/spawn-tests.
2977         * modules/spawn-tests: Depend on it.
2978         * modules/stdio-c++-tests: New file, extracted from
2979         modules/stdio-tests.
2980         * modules/stdio-tests: Depend on it.
2981         * modules/stdlib-c++-tests: New file, extracted from
2982         modules/stdlib-tests.
2983         * modules/stdlib-tests: Depend on it.
2984         * modules/string-c++-tests: New file, extracted from
2985         modules/string-tests.
2986         * modules/string-tests: Depend on it.
2987         * modules/sys_ioctl-c++-tests: New file, extracted from
2988         modules/sys_ioctl-tests.
2989         * modules/sys_ioctl-tests: Depend on it.
2990         * modules/sys_select-c++-tests: New file, extracted from
2991         modules/sys_select-tests.
2992         * modules/sys_select-tests: Depend on it.
2993         * modules/sys_socket-c++-tests: New file, extracted from
2994         modules/sys_socket-tests.
2995         * modules/sys_socket-tests: Depend on it.
2996         * modules/sys_stat-c++-tests: New file, extracted from
2997         modules/sys_stat-tests.
2998         * modules/sys_stat-tests: Depend on it.
2999         * modules/sys_time-c++-tests: New file, extracted from
3000         modules/sys_time-tests.
3001         * modules/sys_time-tests: Depend on it.
3002         * modules/time-c++-tests: New file, extracted from modules/time-tests.
3003         * modules/time-tests: Depend on it.
3004         * modules/unistd-c++-tests: New file, extracted from
3005         modules/unistd-tests.
3006         * modules/unistd-tests: Depend on it.
3007         * modules/wchar-c++-tests: New file, extracted from
3008         modules/wchar-tests.
3009         * modules/wchar-tests: Depend on it.
3010         * modules/wctype-c++-tests: New file, extracted from
3011         modules/wctype-tests.
3012         * modules/wctype-tests: Depend on it.
3013         Reported by Simon Josefsson.
3014
3015 2010-03-28  Bruno Haible  <bruno@clisp.org>
3016
3017         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
3018         * gnulib-tool (func_exists_module): New function, extracted from
3019         func_verify_module.
3020         (func_verify_module): Use it.
3021         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
3022         'foo' only if 'foo' exists.
3023         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
3024         module.
3025
3026 2010-03-28  Bruno Haible  <bruno@clisp.org>
3027
3028         gnulib-tool: Add support for special categories of tests.
3029         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
3030         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
3031         (func_usage): Document them.
3032         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
3033         inc_unportable_tests, inc_all_tests): New variables.
3034         (func_acceptable): Consider these variables.
3035         (func_modules_transitive_closure): Make it work when the 'Status' field
3036         consists of multiple words.
3037         (func_import): Store and restore the values of inc_cxx_tests,
3038         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
3039         inc_all_tests in gnulib-comp.m4.
3040         (func_create_testdir): Set inc_all_tests to true.
3041         * doc/gnulib.texi (Extra tests modules): New section.
3042         Suggested by Jim Meyering.
3043
3044 2010-03-28  Bruno Haible  <bruno@clisp.org>
3045
3046         ansi-c++-opt: Allow turning off the C++ build by default.
3047         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
3048         gl_CXX_CHOICE_DEFAULT_NO is defined.
3049         Requested by Eric Blake.
3050
3051 2010-03-28  Bruno Haible  <bruno@clisp.org>
3052
3053         unistd: Avoid #define replacements in C++ mode.
3054         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
3055         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
3056         setsockopt, shutdown, select): In C++, attach a warning to the function
3057         if possible, rather than #defining the symbol to a dysfunctional alias.
3058         Reported by John W. Eaton <jwe@gnu.org>.
3059
3060 2010-03-28  Bruno Haible  <bruno@clisp.org>
3061
3062         Fix link errors on mingw.
3063         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
3064         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
3065         $(LIBSOCKET).
3066         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
3067         $(LIBSOCKET).
3068
3069 2010-03-28  Bruno Haible  <bruno@clisp.org>
3070             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3071
3072         lib-ignore: Determine different options for different compilers.
3073         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
3074         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
3075         Add comments.
3076         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
3077         * NEWS: Mention the change.
3078
3079 2010-03-27  Bruno Haible  <bruno@clisp.org>
3080
3081         Remove unused GNULIB_XYZ macro definitions.
3082         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
3083         * modules/fseek (configure.ac): Likewise.
3084         * modules/ioctl (configure.ac): Likewise.
3085         * modules/open (configure.ac): Likewise.
3086         * modules/stdlib-safer (configure.ac): Likewise.
3087
3088 2010-03-27  Bruno Haible  <bruno@clisp.org>
3089
3090         Add a remark about certain modules.
3091         * modules/malloc (Comment): New section.
3092         * modules/realloc (Comment): Likewise.
3093         * modules/sigpipe (Comment): Likewise.
3094
3095 2010-03-27  Bruno Haible  <bruno@clisp.org>
3096
3097         Resolve conflict between the two kinds of module indicators.
3098         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
3099         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
3100         * modules/canonicalize (configure.ac): Invoke
3101         gl_MODULE_INDICATOR_FOR_TESTS.
3102         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
3103         GNULIB_XYZ.
3104         * tests/test-dirent-c++.cc: Likewise.
3105         * tests/test-dirent-safer.c: Likewise.
3106         * tests/test-dup2.c: Likewise.
3107         * tests/test-fchdir.c: Likewise.
3108         * tests/test-fcntl-h-c++.cc: Likewise.
3109         * tests/test-getopt.c: Likewise.
3110         * tests/test-getopt.h: Likewise.
3111         * tests/test-langinfo-c++.cc: Likewise.
3112         * tests/test-locale-c++.cc: Likewise.
3113         * tests/test-math-c++.cc: Likewise.
3114         * tests/test-pty-c++.cc: Likewise.
3115         * tests/test-search-c++.cc: Likewise.
3116         * tests/test-signal-c++.cc: Likewise.
3117         * tests/test-spawn-c++.cc: Likewise.
3118         * tests/test-stdio-c++.cc: Likewise.
3119         * tests/test-stdlib-c++.cc: Likewise.
3120         * tests/test-string-c++.cc: Likewise.
3121         * tests/test-sys_ioctl-c++.cc: Likewise.
3122         * tests/test-sys_select-c++.cc: Likewise.
3123         * tests/test-sys_socket-c++.cc: Likewise.
3124         * tests/test-sys_stat-c++.cc: Likewise.
3125         * tests/test-sys_time-c++.cc: Likewise.
3126         * tests/test-time-c++.cc: Likewise.
3127         * tests/test-unistd-c++.cc: Likewise.
3128         * tests/test-wchar-c++.cc: Likewise.
3129         * tests/uninorm/test-u8-nfc.c: Likewise.
3130         * tests/uninorm/test-u8-nfd.c: Likewise.
3131         * tests/uninorm/test-u8-nfkc.c: Likewise.
3132         * tests/uninorm/test-u8-nfkd.c: Likewise.
3133         * tests/uninorm/test-u16-nfc.c: Likewise.
3134         * tests/uninorm/test-u16-nfd.c: Likewise.
3135         * tests/uninorm/test-u16-nfkc.c: Likewise.
3136         * tests/uninorm/test-u16-nfkd.c: Likewise.
3137         * tests/uninorm/test-u32-nfc.c: Likewise.
3138         * tests/uninorm/test-u32-nfc-big.c: Likewise.
3139         * tests/uninorm/test-u32-nfd.c: Likewise.
3140         * tests/uninorm/test-u32-nfd-big.c: Likewise.
3141         * tests/uninorm/test-u32-nfkc.c: Likewise.
3142         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
3143         * tests/uninorm/test-u32-nfkd.c: Likewise.
3144         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
3145         * tests/uninorm/test-u32-normalize-big.c: Likewise.
3146
3147 2010-03-27  Bruno Haible  <bruno@clisp.org>
3148
3149         Distinguish two kinds of module indicators.
3150         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
3151         gl_MODULE_INDICATOR.
3152         (gl_MODULE_INDICATOR): New macro.
3153         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
3154         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
3155         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
3156         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
3157         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
3158         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
3159         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
3160         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
3161         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
3162         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
3163         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
3164         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
3165         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
3166         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
3167         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
3168         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
3169         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
3170         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
3171         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
3172         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
3173         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
3174         * modules/cloexec (configure.ac): Likewise.
3175         * modules/getopt-gnu (configure.ac): Likewise.
3176         * modules/uninorm/u8-normalize (configure.ac): Likewise.
3177         * modules/uninorm/u16-normalize (configure.ac): Likewise.
3178         * modules/uninorm/u32-normalize (configure.ac): Likewise.
3179         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
3180
3181 2010-03-27  Bruno Haible  <bruno@clisp.org>
3182
3183         New module description field 'Comment'.
3184         * gnulib-tool: New option --extract-comment.
3185         (func_usage): Document it.
3186         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
3187         (func_get_comment): New function.
3188         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
3189
3190 2010-03-27  Bruno Haible  <bruno@clisp.org>
3191
3192         Addendum to 2010-02-07 commit.
3193         * gnulib-tool (func_usage): Document --extract-applicability option.
3194
3195 2010-03-27  Bruno Haible  <bruno@clisp.org>
3196
3197         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
3198         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
3199         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
3200         rather than link errors.
3201
3202 2010-03-27  Bruno Haible  <bruno@clisp.org>
3203
3204         Avoid side effects from tests-related modules on the compilation of lib.
3205         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
3206         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
3207         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
3208         parameter. Emit into AM_CPPFLAGS a definition of the designated C
3209         macro.
3210         (func_import): Define a witness macro. Assign it a value that depends
3211         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
3212         tests-related modules.
3213         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
3214         Reported by Jim Meyering.
3215
3216 2010-03-27  Bruno Haible  <bruno@clisp.org>
3217
3218         Factorize common .m4 code.
3219         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
3220         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
3221         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
3222         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
3223         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
3224         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
3225         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
3226         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
3227         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
3228         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
3229         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
3230         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
3231         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
3232         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
3233         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
3234         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
3235         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
3236         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
3237         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
3238         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
3239         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
3240         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
3241         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
3242         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
3243         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
3244         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
3245         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
3246         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
3247         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
3248         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
3249         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
3250         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
3251
3252 2010-03-27  Bruno Haible  <bruno@clisp.org>
3253
3254         Fix a compilation error on Cygwin with g++ >= 4.3.
3255         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
3256         if it is undefined or if we alias it to chmod.
3257         (lstat): Don't warn about the use of this function if it is undefined
3258         or if we alias it to stat.
3259         Reported by Simon Josefsson.
3260
3261 2010-03-27  Bruno Haible  <bruno@clisp.org>
3262
3263         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
3264         * modules/getlogin (configure.ac): Update.
3265
3266         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
3267         * modules/getlogin_r (configure.ac): Update.
3268
3269         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
3270         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
3271         * modules/inet_ntop (configure.ac): Update.
3272
3273         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
3274         * modules/inet_pton (configure.ac): Update.
3275
3276         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
3277         * modules/mbslen (configure.ac): Update.
3278
3279         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
3280         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
3281         * modules/forkpty (configure.ac): Update.
3282         * modules/openpty (configure.ac): Update.
3283
3284 2010-03-26  Simon Josefsson  <simon@josefsson.org>
3285
3286         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
3287         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
3288
3289 2010-03-25  Eric Blake  <eblake@redhat.com>
3290
3291         maint: use pragma consistently across replacement headers
3292         * lib/ctype.in.h (system_header): Hoist for consistent placement.
3293         * lib/dirent.in.h (system_header): Likewise.
3294         * lib/errno.in.h (system_header): Likewise.
3295         * lib/float.in.h (system_header): Likewise.
3296         * lib/getopt.in.h (system_header): Likewise.
3297         * lib/iconv.in.h (system_header): Likewise.
3298         * lib/inttypes.in.h (system_header): Likewise.
3299         * lib/langinfo.in.h (system_header): Likewise.
3300         * lib/locale.in.h (system_header): Likewise.
3301         * lib/math.in.h (system_header): Likewise.
3302         * lib/netdb.in.h (system_header): Likewise.
3303         * lib/netinet_in.in.h (system_header): Likewise.
3304         * lib/pty.in.h (system_header): Likewise.
3305         * lib/sched.in.h (system_header): Likewise.
3306         * lib/se-selinux.in.h (system_header): Likewise.
3307         * lib/search.in.h (system_header): Likewise.
3308         * lib/spawn.in.h (system_header): Likewise.
3309         * lib/stdarg.in.h (system_header): Likewise.
3310         * lib/stdint.in.h (system_header): Likewise.
3311         * lib/string.in.h (system_header): Likewise.
3312         * lib/strings.in.h (system_header): Likewise.
3313         * lib/sys_file.in.h (system_header): Likewise.
3314         * lib/sys_ioctl.in.h (system_header): Likewise.
3315         * lib/sys_socket.in.h (system_header): Likewise.
3316         * lib/sys_times.in.h (system_header): Likewise.
3317         * lib/sys_utsname.in.h (system_header): Likewise.
3318         * lib/sys_wait.in.h (system_header): Likewise.
3319         * lib/sysexits.in.h (system_header): Likewise.
3320         * lib/unistd.in.h (system_header): Likewise.
3321         * lib/wctype.in.h (system_header): Likewise.
3322
3323         arpa/inet: fix mingw compilation warning
3324         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
3325         Reported by Matthew Bolte.
3326
3327 2010-03-25  Bruno Haible  <bruno@clisp.org>
3328
3329         Avoid collision between gnulib wrapper and libintl wrapper.
3330         * lib/printf.c (printf): Don't define if a printf wrapper is already
3331         defined in intl/printf.c.
3332         Reported by Michel Boaventura <michel@michelboaventura.com>.
3333
3334 2010-03-25  Bruno Haible  <bruno@clisp.org>
3335
3336         Use ANSI C.
3337         * lib/readutmp.h (getutent): Provide ANSI C prototype.
3338
3339 2010-03-25  Bruno Haible  <bruno@clisp.org>
3340
3341         Minor formatting changes.
3342         * lib/acosl.c: Insert space before function argument list.
3343         * lib/argz.c: Likewise.
3344         * lib/asinl.c: Likewise.
3345         * lib/expl.c: Likewise.
3346         * lib/gen-uni-tables.c: Likewise.
3347         * lib/gettext.h: Likewise.
3348         * lib/glthread/lock.h: Likewise.
3349         * lib/tanl.c: Likewise.
3350         * lib/uniname/uniname.c: Likewise.
3351         * tests/test-idpriv-drop.c: Likewise.
3352         * tests/test-idpriv-droptemp.c: Likewise.
3353         * tests/test-lock.c: Likewise.
3354         * tests/test-tls.c: Likewise.
3355         * lib/argp-help.c: Insert space before function-like macro argument
3356         list.
3357         * lib/memcmp.c: Likewise.
3358         * tests/test-base64.c: Likewise.
3359         * lib/localename.c: Insert space before sizeof's argument list.
3360         * lib/safe-alloc.h: Likewise.
3361         * lib/file-set.h: Insert space before macro argument list.
3362         * tests/test-argp.c: Likewise.
3363         * lib/argp-namefrob.h: Insert space before function parameter list.
3364         * lib/getaddrinfo.c: Likewise.
3365         * lib/netdb.in.h: Likewise.
3366         * lib/parse-duration.h: Likewise.
3367         * lib/parse-duration.c: Likewise.
3368         * lib/poll.c: Likewise.
3369         * lib/select.c: Likewise.
3370         * lib/trim.h: Likewise.
3371         * tests/test-usleep.c: Likewise.
3372         * lib/ldexpl.c: Insert space before function parameter list and before
3373         function argument list.
3374         * lib/logl.c: Likewise.
3375         * lib/sqrtl.c: Likewise.
3376         * lib/trim.c: Likewise.
3377         * lib/cosl.c: Use GNU style indentation. Insert space before function
3378         argument list.
3379         * lib/sinl.c: Likewise.
3380         * lib/tsearch.c: Insert space after 'for'.
3381         Reported by Jim Meyering.
3382
3383 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
3384
3385         * maint.mk (sc_Wundef_boolean): Check for the presence of the
3386         config header before grepping, as it's not present before
3387         autoreconf/configure are run.  Reported by Simon Josefsson.
3388
3389 2010-03-23  Bruno Haible  <bruno@clisp.org>
3390
3391         pt_chown: Make it work with automake < 1.11.
3392         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
3393         Reported by Simon Josefsson.
3394
3395 2010-03-23  Bruno Haible  <bruno@clisp.org>
3396
3397         pt_chown: Don't depend on GPLed modules.
3398         * lib/pt_chown.c: Don't include idpriv.h.
3399         (main): Don't drop privileges.
3400         * modules/pt_chown (Depends-on): Remove idpriv-drop.
3401         Reported by Simon Josefsson.
3402
3403 2010-03-24  Simon Josefsson  <simon@josefsson.org>
3404
3405         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
3406         suggestions from karl@freefriends.org (Karl Berry).
3407
3408 2010-03-22  Eric Blake  <eblake@redhat.com>
3409
3410         gethostname: further tweaks
3411         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
3412         are overriding gethostname.
3413         Suggested by Bruno Haible.
3414
3415 2010-03-21  Bruno Haible  <bruno@clisp.org>
3416
3417         Fix comments.
3418         * lib/forkpty.c (rpl_forkpty): Fix comment.
3419         * lib/openpty.c (rpl_openpty): Likewise.
3420         Reported by Eric Blake.
3421
3422 2010-03-22  Eric Blake  <eblake@redhat.com>
3423
3424         gethostname: fix build on mingw
3425         * lib/unistd.in.h (includes): Work around fact that mingw
3426         <winsock2.h> re-includes <unistd.h>, by avoiding any
3427         redeclarations if we are being included by <winsock2.h>.
3428         Reported by Matthias Bolte.
3429
3430 2010-03-21  Bruno Haible  <bruno@clisp.org>
3431
3432         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
3433         * lib/forkpty.c (forkpty): New replacement function, from glibc with
3434         modifications.
3435         * lib/pty.in.h (forkpty): Update declaration. Add comments.
3436         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
3437         provide the replacement.
3438         * modules/forkpty (Depends-on): Add openpty, login_tty.
3439         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
3440         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
3441         * doc/glibc-functions/forkpty.texi: More supported platforms.
3442         * config/srclist.txt: Add forkpty.c (commented).
3443
3444 2010-03-21  Bruno Haible  <bruno@clisp.org>
3445
3446         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
3447         (Makefile.am): Verify that PTY_LIB is defined.
3448
3449         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
3450
3451 2010-03-21  Bruno Haible  <bruno@clisp.org>
3452
3453         Tests for module 'login_tty'.
3454         * modules/login_tty-tests: New file.
3455         * tests/test-login_tty.c: New file.
3456
3457         New module 'login_tty'.
3458         * lib/login_tty.c: New file.
3459         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
3460         * modules/login_tty: New file.
3461         * doc/glibc-functions/login_tty.texi: Mention the new module.
3462
3463 2010-03-21  Bruno Haible  <bruno@clisp.org>
3464
3465         login_tty: Documentation.
3466         * doc/glibc-functions/login_tty.texi: New file.
3467         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
3468
3469 2010-03-21  Bruno Haible  <bruno@clisp.org>
3470
3471         pty: Consistent macro naming.
3472         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
3473         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
3474         * modules/pty (configure.ac): Update.
3475
3476 2010-03-21  Bruno Haible  <bruno@clisp.org>
3477
3478         Tests for openpty: Make stricter.
3479         * tests/test-openpty.c (main): Add test of canonical processing and
3480         erase.
3481         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
3482
3483         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
3484         * lib/openpty.c (openpty): New replacement function.
3485         * lib/pty.in.h: Include <termios.h>.
3486         (openpty): Update declaration. Add comments.
3487         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
3488         is not declared, arrange to provide the replacement. Check for _getpty
3489         and posix_openpt.
3490         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
3491         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
3492         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
3493         * modules/pty-tests (test_pty_c___LDADD): New variable.
3494         * doc/glibc-functions/openpty.texi: More supported platforms.
3495
3496 2010-03-21  Bruno Haible  <bruno@clisp.org>
3497
3498         setenv: Tweaks.
3499         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
3500         the test program.
3501         * doc/posix-functions/setenv.texi: Update platforms list.
3502
3503 2010-03-21  Bruno Haible  <bruno@clisp.org>
3504
3505         New module 'unlockpt'.
3506         * lib/unlockpt.c: New file, from glibc with modifications.
3507         * m4/unlockpt.m4: New file.
3508         * modules/unlockpt: New file.
3509         * lib/stdlib.in.h (unlockpt): New declaration.
3510         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
3511         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
3512         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
3513         HAVE_UNLOCKPT.
3514         * doc/posix-functions/unlockpt.texi: Mention the new module.
3515         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
3516         * config/srclist.txt: Add unlockpt.c (commented).
3517
3518 2010-03-21  Jim Meyering  <meyering@redhat.com>
3519
3520         maint.mk: prohibit inclusion of "intprops.h" without use
3521         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
3522
3523 2010-03-21  Bruno Haible  <bruno@clisp.org>
3524
3525         New module 'grantpt'.
3526         * lib/grantpt.c: New file, from glibc with modifications.
3527         * m4/grantpt.m4: New file.
3528         * modules/grantpt: New file.
3529         * lib/stdlib.in.h (grantpt): New declaration.
3530         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
3531         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
3532         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
3533         HAVE_GRANTPT.
3534         * doc/posix-functions/grantpt.texi: Mention the new module.
3535         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
3536         * config/srclist.txt: Add grantpt.c (commented).
3537
3538 2010-03-21  Bruno Haible  <bruno@clisp.org>
3539
3540         New module 'pt_chown'.
3541         * lib/pt_chown.c: New file, from glibc with modifications.
3542         * lib/pty-private.h: New file, from glibc with modifications.
3543         * modules/pt_chown: New file.
3544         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
3545
3546 2010-03-21  Bruno Haible  <bruno@clisp.org>
3547
3548         Tests for module 'ptsname'.
3549         * modules/ptsname-tests: New file.
3550         * tests/test-ptsname.c: New file.
3551
3552         New module 'ptsname'.
3553         * lib/ptsname.c: New file, from glibc with modifications.
3554         * m4/ptsname.m4: New file.
3555         * modules/ptsname: New file.
3556         * lib/stdlib.in.h (ptsname): New declaration.
3557         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
3558         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
3559         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
3560         HAVE_PTSNAME.
3561         * doc/posix-functions/ptsname.texi: Mention the new module.
3562         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
3563         * config/srclist.txt: Add ptsname.c (commented).
3564
3565 2010-03-21  Bruno Haible  <bruno@clisp.org>
3566
3567         Tests for module 'ttyname_r'.
3568         * modules/ttyname_r-tests: New file.
3569         * tests/test-ttyname_r.c: New file.
3570
3571         New module 'ttyname_r'.
3572         * lib/ttyname_r.c: New file.
3573         * m4/ttyname_r.m4: New file.
3574         * modules/ttyname_r: New file.
3575         * lib/unistd.in.h (ttyname_r): New declaration.
3576         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
3577         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
3578         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
3579         HAVE_TTYNAME_R.
3580         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
3581         * doc/posix-functions/ttyname_r.texi: Mention the new module.
3582
3583 2010-03-20  Bruno Haible  <bruno@clisp.org>
3584
3585         signal: Undefine macro definitions in C++ mode.
3586         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
3587         sigfillset): Undefine macro definitions from the system header in C++
3588         mode.
3589         Reported by John W. Eaton <jwe@gnu.org>.
3590
3591 2010-03-20  Bruno Haible  <bruno@clisp.org>
3592
3593         Ensure no #include statements inside extern "C" { ... }.
3594         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
3595         contain #include statements.
3596         * lib/time.in.h: Likewise.
3597
3598 2010-03-20  Bruno Haible  <bruno@clisp.org>
3599
3600         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
3601         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
3602         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
3603         Reported by John W. Eaton <jwe@gnu.org>.
3604
3605 2010-03-20  Bruno Haible  <bruno@clisp.org>
3606
3607         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
3608         Reported by Jim Meyering.
3609
3610 2010-03-20  Bruno Haible  <bruno@clisp.org>
3611
3612         pipe: Set errno upon failure.
3613         * lib/pipe.h: Specify that when -1 is returned, errno is set.
3614         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
3615         errno value in error message.
3616
3617 2010-03-20  Bruno Haible  <bruno@clisp.org>
3618             Jim Meyering  <meyering@redhat.com>
3619
3620         lchown: Avoid "unused variable" warning.
3621         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
3622
3623 2010-03-20  Bruno Haible  <bruno@clisp.org>
3624
3625         Work around unlink() bug on MacOS X 10.5.6.
3626         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
3627         attempting to unlink a parent directory.
3628         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
3629         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
3630         activate for the replacement function.
3631         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
3632
3633 2010-03-20  Bruno Haible  <bruno@clisp.org>
3634
3635         Fix link errors on Solaris 8.
3636         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
3637         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
3638
3639 2010-03-19  Jim Meyering  <meyering@redhat.com>
3640
3641         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
3642         The _LIBC implementation of build_range_exp correctly honors the
3643         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
3644         However, the non-_LIBC implementation would ignore that syntax-bit
3645         flag and return REG_ERANGE unconditionally.
3646         This change makes it honor that flag.
3647         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
3648         Make two pointer parameters "const".
3649         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
3650         (parse_bracket_exp): Update caller.
3651
3652         regex.m4: correct the reversed range endpoint ([b-a]) test
3653         * m4/regex.m4: When requiring that [b-a] evoke failure,
3654         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
3655         test pass once again for x86-based systems.
3656
3657 2010-03-19  Bruno Haible  <bruno@clisp.org>
3658
3659         scandir: Fix link error on Solaris 8.
3660         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
3661         macros.
3662
3663 2010-03-19  Bruno Haible  <bruno@clisp.org>
3664
3665         getusershell: Fix documentation.
3666         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
3667         module.
3668         * doc/glibc-functions/setusershell.texi: Likewise.
3669
3670         getusershell: Provide declaration, missing on Solaris 9.
3671         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
3672         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
3673         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
3674         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
3675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3676         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
3677         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
3678         HAVE_GETUSERSHELL.
3679         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
3680
3681 2010-03-19  Bruno Haible  <bruno@clisp.org>
3682
3683         wctype: Provide iswblank function.
3684         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
3685         exists and is fine.
3686         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
3687         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
3688         * tests/test-wctype.c (main): Re-enable the iswblank tests.
3689         * doc/posix-functions/iswblank.texi: Update.
3690
3691 2010-03-19  Bruno Haible  <bruno@clisp.org>
3692
3693         Tests of module 'pty' in C++ mode.
3694         * modules/pty-tests: New file.
3695         * tests/test-pty-c++.cc: New file.
3696         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
3697
3698 2010-03-19  Eric Blake  <eblake@redhat.com>
3699
3700         logb: fix documentation
3701         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
3702         1.5 declaration bug.
3703
3704         forkpty, openpty: prefer glibc's const-safe prototype
3705         * lib/forkpty.c (rpl_forkpty): New file.
3706         * lib/openpty.c (rpl_openpty): Likewise.
3707         * modules/forkpty (Files): Distribute it.
3708         * modules/openpty (Files): Likewise.
3709         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
3710         check...
3711         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
3712         replacement for for non-const BSD signature.
3713         * modules/pty (Makefile.am): Substitute witnesses.
3714         * lib/pty.in.h (forkpty, openpty): Declare replacements.
3715         * tests/test-forkpty.c: Update signature check.
3716         * tests/test-openpty.c: Likewise.
3717         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
3718         * doc/glibc-functions/openpty.texi (openpty): Likewise.
3719
3720         forkpty, openpty: split functions into new modules
3721         * modules/pty (Makefile.am): Substitute new witnesses.
3722         (Libraries): Move library detection...
3723         * modules/forkpty: ...into new module.
3724         * modules/openpty: Another new module.
3725         * modules/pty-tests: Rename and split...
3726         * modules/forkpty-tests: ...to this...
3727         * modules/openpty-tests: ...and this.
3728         * tests/test-pty.c: Rename and split...
3729         * tests/test-forkpty.c: ...to this...
3730         * tests/test-openpty.c: ...and this.
3731         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
3732         (gl_PTY): Split library searching...
3733         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
3734         (gl_FORKPTY, gl_OPENPTY): New macros.
3735         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
3736         * NEWS: Mention the split.
3737         * MODULES.html.sh (Misc): Document the modules.
3738         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
3739         * doc/glibc-functions/openpty.texi (openpty): Likewise.
3740
3741         pty: improve replacement header
3742         * lib/pty.in.h: New file.
3743         * modules/pty (Files): Ship it.
3744         (Makefile.am): Always build replacement.
3745         * m4/pty.m4: Rename...
3746         * m4/pty_h.m4: ...to this.
3747         (gl_PTY): Modernize setting of witness macros; update check of
3748         forkpty to take proper advantage of cache.
3749         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
3750
3751         getopt: avoid compiler warning
3752         * lib/getopt.c (attribute_hidden): Remove unused macro.
3753
3754 2010-03-18  Bruno Haible  <bruno@clisp.org>
3755
3756         Fix link errors on Solaris 8.
3757         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
3758         * modules/search-tests (test_search_c___LDADD): Likewise.
3759         * modules/signal-tests (test_signal_c___LDADD): Likewise.
3760         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
3761         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
3762         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
3763         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
3764         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
3765         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
3766
3767 2010-03-18  Bruno Haible  <bruno@clisp.org>
3768
3769         Fix bug introduced on 2010-03-14.
3770         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
3771         (gl_SPAWN_H): Require it.
3772         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
3773         Reported by Simon Josefsson.
3774
3775 2010-03-18  Bruno Haible  <bruno@clisp.org>
3776
3777         Fix typo introduced on 2009-12-31.
3778         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
3779         posix_spawn_file_actions_adddup2.
3780
3781 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
3782         and Eric Blake  <eblake@redhat.com>
3783
3784         test-vc-list-files-git: make more robust
3785         * tests/test-vc-list-files-git.sh: Unset problematic environment
3786         variables.  Chain commands together.
3787
3788 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
3789
3790         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
3791         `AC_CHECK_DECL' invocation.
3792
3793 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
3794
3795         * lib/inttostr.c (inttostr): Make sure the invocation of verify
3796         appears before executable statements. Suggested by Petr Sumbera
3797         <Petr.Sumbera@Sun.COM>.
3798
3799 2010-03-14  Bruno Haible  <bruno@clisp.org>
3800
3801         * tests/test-flock.c (test_exclusive): Comment out a test that causes
3802         portability problems. Instead use a simpler test.
3803         (main): Check that invalid arguments are rejected only on Linux.
3804
3805 2010-03-14  Bruno Haible  <bruno@clisp.org>
3806
3807         Fix bug introduced on 2009-12-31.
3808         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3809         gl_PREREQ_SYS_H_WINSOCK2 always.
3810         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
3811         SYS_SOCKET_H variable.
3812         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
3813         Update comments.
3814         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
3815         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3816         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3817         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3818         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
3819
3820 2010-03-14  Bruno Haible  <bruno@clisp.org>
3821
3822         Fix values returned by sinl, cosl.
3823         * lib/trigl.h: Add specification comments.
3824         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
3825         that combines the values from the precomputed table with the values of
3826         the Chebyshev polynomials.
3827
3828 2010-03-14  Bruno Haible  <bruno@clisp.org>
3829
3830         Fix compilation error when modules 'posix_spawn[p]' are not used.
3831         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
3832         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
3833
3834 2010-03-14  Bruno Haible  <bruno@clisp.org>
3835
3836         Fix compilation error on mingw when module 'time_r' is not used.
3837         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
3838         is 1.
3839         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
3840         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
3841         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
3842         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
3843
3844 2010-03-14  Bruno Haible  <bruno@clisp.org>
3845
3846         Fix compilation error with Sun C.
3847         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
3848         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
3849         instead of GCC specific ULONG_LONG_MAX.
3850         * lib/xstrtoll.c: Likewise.
3851         * lib/xstrtoull.c: Likewise.
3852
3853 2010-03-13  Bruno Haible  <bruno@clisp.org>
3854
3855         Allow the user to disable C++ code and tests.
3856         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
3857         (gl_PROG_ANSI_CXX): Require it.
3858
3859 2010-03-13  Bruno Haible  <bruno@clisp.org>
3860
3861         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
3862         cases.
3863
3864 2010-03-13  Bruno Haible  <bruno@clisp.org>
3865
3866         Test that gnulib does not break the standard C++ headers.
3867         * tests/test-locale-c++2.cc: New file.
3868         * modules/locale-tests (Files): Add it.
3869         (Makefile.am): Compile it for test-locale-c++.
3870         * tests/test-math-c++2.cc: New file.
3871         * modules/math-tests (Files): Add it.
3872         (Makefile.am): Compile it for test-math-c++.
3873         * tests/test-signal-c++2.cc: New file.
3874         * modules/signal-tests (Files): Add it.
3875         (Makefile.am): Compile it for test-signal-c++.
3876         * tests/test-stdio-c++2.cc: New file.
3877         * modules/stdio-tests (Files): Add it.
3878         (Makefile.am): Compile it for test-stdio-c++.
3879         * tests/test-stdlib-c++2.cc: New file.
3880         * modules/stdlib-tests (Files): Add it.
3881         (Makefile.am): Compile it for test-stdlib-c++.
3882         * tests/test-string-c++2.cc: New file.
3883         * modules/string-tests (Files): Add it.
3884         (Makefile.am): Compile it for test-string-c++.
3885         * tests/test-time-c++2.cc: New file.
3886         * modules/time-tests (Files): Add it.
3887         (Makefile.am): Compile it for test-time-c++.
3888         Reported by John W. Eaton <jwe@gnu.org>.
3889
3890 2010-03-13  Bruno Haible  <bruno@clisp.org>
3891
3892         * gnulib-tool (func_usage): Clarify which options are available for
3893         --create-testdir and --create-megatestdir.
3894
3895 2010-03-13  Bruno Haible  <bruno@clisp.org>
3896
3897         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
3898         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
3899         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
3900         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
3901         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
3902         when appropriate.
3903         Reported by Jim Meyering.
3904
3905 2010-03-12  Simon Josefsson  <simon@josefsson.org>
3906
3907         * gnulib-tool (func_import): Explain origin of code.
3908
3909 2010-03-12  Bruno Haible  <bruno@clisp.org>
3910
3911         Fix problem with automake's definition of CXXLINK.
3912         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
3913         Reported by Simon Josefsson and Ludovic Courtès.
3914
3915 2010-03-12  Bruno Haible  <bruno@clisp.org>
3916
3917         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
3918         stable releases.
3919
3920 2010-03-11  Bruno Haible  <bruno@clisp.org>
3921
3922         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
3923         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
3924         whether the system provides one variant or multiple variants of the
3925         function.
3926         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
3927         C++ compilers.
3928         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
3929         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
3930         Reported by Jim Meyering.
3931
3932 2010-03-09  Simon Josefsson  <simon@josefsson.org>
3933
3934         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
3935
3936 2010-03-08  Bruno Haible  <bruno@clisp.org>
3937
3938         gnulib-tool: Add support for --libtool in --create-testdir.
3939         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
3940         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
3941
3942 2010-03-08  Eric Blake  <eblake@redhat.com>
3943
3944         gnulib-tool.texi: mention possibility of git submodule
3945         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
3946         submodules.
3947         * doc/.gitignore: Ignore another generated file.
3948
3949 2010-03-08  Karl Berry  <karl@gnu.org>
3950
3951         * doc/gnulib-tool.texi (VCS Issues): Mention third option
3952         of committing gnulib files while skipping others.
3953
3954 2010-03-07  Bruno Haible  <bruno@clisp.org>
3955
3956         Tests of module 'wctype' in C++ mode.
3957         * tests/test-wctype-c++.cc: New file.
3958         * modules/wctype-tests (Files): Add it and tests/signature.h.
3959         (Depends-on): Add ansi-c++-opt.
3960         (Makefile.am): Arrange to compile and run test-wctype-c++.
3961
3962         Tests of module 'wchar' in C++ mode.
3963         * tests/test-wchar-c++.cc: New file.
3964         * modules/wchar-tests (Files): Add it and tests/signature.h.
3965         (Depends-on): Add ansi-c++-opt.
3966         (Makefile.am): Arrange to compile and run test-wchar-c++.
3967         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
3968         gl_MODULE_INDICATOR.
3969
3970         Tests of module 'unistd' in C++ mode.
3971         * tests/test-unistd-c++.cc: New file.
3972         * modules/unistd-tests (Files): Add it and tests/signature.h.
3973         (Depends-on): Add ansi-c++-opt.
3974         (Makefile.am): Arrange to compile and run test-unistd-c++.
3975         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
3976         gl_MODULE_INDICATOR.
3977
3978         Tests of module 'time' in C++ mode.
3979         * tests/test-time-c++.cc: New file.
3980         * modules/time-tests (Files): Add it and tests/signature.h.
3981         (Depends-on): Add ansi-c++-opt.
3982         (Makefile.am): Arrange to compile and run test-time-c++.
3983         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
3984
3985         Tests of module 'sys_time' in C++ mode.
3986         * tests/test-sys_time-c++.cc: New file.
3987         * modules/sys_time-tests (Files): Add it and tests/signature.h.
3988         (Depends-on): Add ansi-c++-opt.
3989         (Makefile.am): Arrange to compile and run test-sys_time-c++.
3990         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
3991         gl_MODULE_INDICATOR.
3992
3993         Tests of module 'sys_stat' in C++ mode.
3994         * tests/test-sys_stat-c++.cc: New file.
3995         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
3996         (Depends-on): Add ansi-c++-opt.
3997         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
3998         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
3999         gl_MODULE_INDICATOR.
4000
4001         Tests of module 'sys_socket' in C++ mode.
4002         * tests/test-sys_socket-c++.cc: New file.
4003         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
4004         (Depends-on): Add ansi-c++-opt.
4005         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
4006         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
4007         gl_MODULE_INDICATOR.
4008
4009         Tests of module 'sys_select' in C++ mode.
4010         * tests/test-sys_select-c++.cc: New file.
4011         * modules/sys_select-tests (Files): Add it and tests/signature.h.
4012         (Depends-on): Add ansi-c++-opt.
4013         (Makefile.am): Arrange to compile and run test-sys_select-c++.
4014         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
4015         gl_MODULE_INDICATOR.
4016
4017         Tests of module 'sys_ioctl' in C++ mode.
4018         * tests/test-sys_ioctl-c++.cc: New file.
4019         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
4020         (Depends-on): Add ansi-c++-opt.
4021         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
4022         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
4023         gl_MODULE_INDICATOR.
4024
4025         Tests of module 'string' in C++ mode.
4026         * tests/test-string-c++.cc: New file.
4027         * modules/string-tests (Files): Add it and tests/signature.h.
4028         (Depends-on): Add ansi-c++-opt.
4029         (Makefile.am): Arrange to compile and run test-string-c++.
4030         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
4031         gl_MODULE_INDICATOR.
4032
4033         Tests of module 'stdlib' in C++ mode.
4034         * tests/test-stdlib-c++.cc: New file.
4035         * modules/stdlib-tests (Files): Add it and tests/signature.h.
4036         (Depends-on): Add ansi-c++-opt.
4037         (Makefile.am): Arrange to compile and run test-stdlib-c++.
4038         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
4039         gl_MODULE_INDICATOR.
4040
4041         Tests of module 'stdio' in C++ mode.
4042         * tests/test-stdio-c++.cc: New file.
4043         * modules/stdio-tests (Files): Add it and tests/signature.h.
4044         (Depends-on): Add ansi-c++-opt.
4045         (Makefile.am): Arrange to compile and run test-stdio-c++.
4046         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
4047         gl_MODULE_INDICATOR.
4048
4049         Tests of module 'spawn' in C++ mode.
4050         * tests/test-spawn-c++.cc: New file.
4051         * modules/spawn-tests (Files): Add it and tests/signature.h.
4052         (Depends-on): Add ansi-c++-opt.
4053         (Makefile.am): Arrange to compile and run test-spawn-c++.
4054         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
4055         gl_MODULE_INDICATOR.
4056
4057         Tests of module 'signal' in C++ mode.
4058         * tests/test-signal-c++.cc: New file.
4059         * modules/signal-tests (Files): Add it and tests/signature.h.
4060         (Depends-on): Add ansi-c++-opt.
4061         (Makefile.am): Arrange to compile and run test-signal-c++.
4062         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
4063         gl_MODULE_INDICATOR.
4064
4065         Tests of module 'search' in C++ mode.
4066         * tests/test-search-c++.cc: New file.
4067         * modules/search-tests (Files): Add it and tests/signature.h.
4068         (Depends-on): Add ansi-c++-opt.
4069         (Makefile.am): Arrange to compile and run test-search-c++.
4070         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
4071         gl_MODULE_INDICATOR.
4072
4073         Tests of module 'math' in C++ mode.
4074         * tests/test-math-c++.cc: New file.
4075         * modules/math-tests (Files): Add it and tests/signature.h.
4076         (Depends-on): Add ansi-c++-opt.
4077         (Makefile.am): Arrange to compile and run test-math-c++.
4078         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
4079
4080         Tests of module 'locale' in C++ mode.
4081         * tests/test-locale-c++.cc: New file.
4082         * modules/locale-tests (Files): Add it and tests/signature.h.
4083         (Depends-on): Add ansi-c++-opt.
4084         (Makefile.am): Arrange to compile and run test-locale-c++.
4085         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
4086         gl_MODULE_INDICATOR.
4087
4088         Tests of module 'langinfo' in C++ mode.
4089         * tests/test-langinfo-c++.cc: New file.
4090         * modules/langinfo-tests (Files): Add it and tests/signature.h.
4091         (Depends-on): Add ansi-c++-opt.
4092         (Makefile.am): Arrange to compile and run test-langinfo-c++.
4093         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
4094         gl_MODULE_INDICATOR.
4095
4096         Tests of module 'iconv-h' in C++ mode.
4097         * tests/test-iconv-h-c++.cc: New file.
4098         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
4099         (Depends-on): Add ansi-c++-opt.
4100         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
4101
4102         Tests of module 'glob' in C++ mode.
4103         * tests/test-glob-c++.cc: New file.
4104         * modules/glob-tests (Files): Add it.
4105         (Depends-on): Add ansi-c++-opt.
4106         (Makefile.am): Arrange to compile and run test-glob-c++.
4107
4108         Tests of module 'fcntl-h' in C++ mode.
4109         * tests/test-fcntl-h-c++.cc: New file.
4110         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
4111         (Depends-on): Add ansi-c++-opt.
4112         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
4113         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
4114         gl_MODULE_INDICATOR.
4115
4116         Tests of module 'dirent' in C++ mode.
4117         * tests/test-dirent-c++.cc: New file.
4118         * modules/dirent-tests (Files): Add it and tests/signature.h.
4119         (Depends-on): Add ansi-c++-opt.
4120         (Makefile.am): Arrange to compile and run test-dirent-c++.
4121         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
4122         gl_MODULE_INDICATOR.
4123
4124         New module 'ansi-c++-opt'.
4125         * modules/ansi-c++-opt: New file.
4126         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
4127
4128         Document C++ namespace mode.
4129         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
4130
4131         wctype: Avoid #define replacements in C++ mode.
4132         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
4133         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
4134         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
4135         In C++, define a namespaced alias symbol.
4136         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
4137         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
4138         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
4139         rule.
4140
4141         wchar: Avoid #define replacements in C++ mode.
4142         * lib/wchar.in.h: Include c++defs.h.
4143         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
4144         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
4145         symbol.
4146         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
4147         * modules/wchar (Depends-on): Add c++defs.
4148         (Makefile.am): Update wchar.h rule.
4149
4150         unistd: Avoid #define replacements in C++ mode.
4151         * lib/unistd.in.h: Include c++defs.h.
4152         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
4153         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
4154         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
4155         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
4156         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
4157         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
4158         symbol.
4159         (environ): Update.
4160         * modules/unistd (Depends-on): Add c++defs.
4161         (Makefile.am): Update unistd.h rule.
4162
4163         time: Avoid #define replacements in C++ mode.
4164         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
4165         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
4166         define a namespaced alias symbol.
4167         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
4168         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
4169         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
4170         * modules/time (Depends-on): Add c++defs, warn-on-use.
4171         (Makefile.am): Update time.h rule.
4172         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
4173         * modules/nanosleep (configure.ac): Likewise.
4174         * modules/strptime (configure.ac): Likewise.
4175         * modules/timegm (configure.ac): Likewise.
4176
4177         sys_time: Avoid #define replacements in C++ mode.
4178         * lib/sys_time.in.h: Include c++defs.h.
4179         (gettimeofday): In C++, define a namespaced alias symbol.
4180         * modules/sys_time (Depends-on): Add c++defs.
4181         (Makefile.am): Update sys/time.h rule.
4182
4183         sys_stat: Avoid #define replacements in C++ mode.
4184         * lib/sys_stat.in.h: Include c++defs.h.
4185         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
4186         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
4187         namespaced alias symbol.
4188         In C++, define a namespaced alias symbol.
4189         * modules/sys_stat (Depends-on): Add c++defs.
4190         (Makefile.am): Update sys/stat.h rule.
4191
4192         sys_socket: Avoid #define replacements in C++ mode.
4193         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
4194         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
4195         definitions also when the system has a <sys/socket.h>.
4196         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
4197         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
4198         In C++, define a namespaced alias symbol.
4199         * modules/sys_socket (Depends-on): Add c++defs.
4200         (Makefile.am): Update sys/socket.h rule.
4201
4202         sys_select: Avoid #define replacements in C++ mode.
4203         * lib/sys_select.in.h: Include c++defs.h. Enable the function
4204         definitions also when the system has a <sys/select.h>.
4205         (select): In C++, define a namespaced alias symbol.
4206         * modules/sys_select (Depends-on): Add c++defs.
4207         (Makefile.am): Update sys/select.h rule.
4208
4209         sys_ioctl: Avoid #define replacements in C++ mode.
4210         * lib/sys_ioctl.in.h: Include c++defs.h.
4211         (ioctl): In C++, define a namespaced alias symbol.
4212         * modules/sys_ioctl (Depends-on): Add c++defs.
4213         (Makefile.am): Update sys/ioctl.h rule.
4214
4215         string: Avoid #define replacements in C++ mode.
4216         * lib/string.in.h: Include c++defs.h.
4217         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
4218         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
4219         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
4220         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
4221         strsignal, strverscmp): In C++, define a namespaced alias symbol.
4222         * modules/string (Depends-on): Add c++defs.
4223         (Makefile.am): Update string.h rule.
4224
4225         stdlib: Avoid #define replacements in C++ mode.
4226         * lib/stdlib.in.h: Include c++defs.h.
4227         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
4228         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
4229         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
4230         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
4231         symbol.
4232         * modules/stdlib (Depends-on): Add c++defs.
4233         (Makefile.am): Update stdlib.h rule.
4234
4235         stdio: Avoid #define replacements in C++ mode.
4236         * lib/stdio.in.h: Include c++defs.h.
4237         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
4238         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
4239         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
4240         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
4241         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
4242         namespaced alias symbol.
4243         * modules/stdio (Depends-on): Add c++defs.
4244         (Makefile.am): Update stdio.h rule.
4245
4246         spawn: Avoid #define replacements in C++ mode.
4247         * lib/spawn.in.h: Include c++defs.h.
4248         (posix_spawn, posix_spawnp, posix_spawnattr_init,
4249         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
4250         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
4251         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
4252         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
4253         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
4254         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
4255         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
4256         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
4257         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
4258         In C++, define a namespaced alias symbol.
4259         * modules/spawn (Depends-on): Add c++defs.
4260         (Makefile.am): Update spawn.h rule.
4261
4262         signal: Avoid #define replacements in C++ mode.
4263         * lib/signal.in.h: Include c++defs.h.
4264         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
4265         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
4266         namespaced alias symbol.
4267         * modules/signal (Depends-on): Add c++defs.
4268         (Makefile.am): Update signal.h rule.
4269
4270         search: Avoid #define replacements in C++ mode.
4271         * lib/search.in.h: Include c++defs.h.
4272         (_gl_search_compar_fn, _gl_search_action_fn): New types.
4273         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
4274         symbol.
4275         * modules/search (Depends-on): Add c++defs.
4276         (Makefile.am): Update search.h rule.
4277
4278         math: Avoid #define replacements in C++ mode.
4279         * lib/math.in.h: Include c++defs.h.
4280         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
4281         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
4282         trunc, truncl): In C++, define a namespaced alias symbol.
4283         * modules/math (Depends-on): Add c++defs.
4284         (Makefile.am): Update math.h rule.
4285
4286         locale: Avoid #define replacements in C++ mode.
4287         * lib/locale.in.h: Include c++defs.h.
4288         (duplocale): In C++, define a namespaced alias symbol.
4289         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
4290         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
4291         * modules/locale (Depends-on): Add c++defs.
4292         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
4293
4294         langinfo: Avoid #define replacements in C++ mode.
4295         * lib/langinfo.in.h: Include c++defs.h.
4296         (nl_langinfo): In C++, define a namespaced alias symbol.
4297         * modules/langinfo (Depends-on): Add c++defs.
4298         (Makefile.am): Update langinfo.h rule.
4299
4300         iconv-h: Avoid #define replacements in C++ mode.
4301         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
4302         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
4303         symbol.
4304         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
4305         whenever iconv is present.
4306         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
4307         (Makefile.am): Update iconv.h rule.
4308
4309         glob: Avoid #define replacements in C++ mode.
4310         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
4311         (_gl_glob_errfunc_fn): New type.
4312         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
4313         symbol.
4314         * modules/glob (Depends-on): Add c++defs, warn-on-use.
4315         (Makefile.am): Update glob.h rule.
4316
4317         fcntl-h: Avoid #define replacements in C++ mode.
4318         * lib/fcntl.in.h: Include c++defs.h.
4319         (fcntl, open, openat): In C++, define a namespaced alias symbol.
4320         * modules/fcntl-h (Depends-on): Add c++defs.
4321         (Makefile.am): Update fcntl.h rule.
4322
4323         dirent: Avoid #define replacements in C++ mode.
4324         * lib/dirent.in.h: Include c++defs.h.
4325         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
4326         namespaced alias symbol.
4327         (dirfd): Update declaration.
4328         * modules/dirent (Depends-on): Add c++defs.
4329         (Makefile.am): Update dirent.h rule.
4330
4331         ctype: Make it usable in C++ code.
4332         * lib/ctype.in.h: Include c++defs.h.
4333         (isblank): Declare as extern "C".
4334         * modules/ctype (Depends-on): Add c++defs.
4335         (Makefile.am): Update ctype.h rule.
4336
4337         New module 'c++defs'.
4338         * modules/c++defs: New file.
4339         * build-aux/c++defs.h: New file.
4340         Reported by John W. Eaton <jwe@gnu.org>.
4341
4342 2010-03-07  Bruno Haible  <bruno@clisp.org>
4343
4344         logb: Provide missing declaration for Cygwin.
4345         * lib/math.in.h (logb): New declaration.
4346         * m4/logb.m4: New file.
4347         * modules/logb (Files): Add m4/logb.m4.
4348         (Depends-on): Add math.
4349         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
4350         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
4351         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
4352         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
4353         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
4354
4355 2010-03-07  Bruno Haible  <bruno@clisp.org>
4356
4357         Fix test-cond link error.
4358         * tests/test-cond.c: Include <stdio.h>.
4359
4360 2010-03-07  Bruno Haible  <bruno@clisp.org>
4361
4362         Fix test-dirent-safer link error.
4363         * modules/dirent-safer-tests (Makefile.am): Define
4364         test_dirent_safer_LDADD.
4365
4366 2010-03-07  Bruno Haible  <bruno@clisp.org>
4367
4368         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
4369         among default module list.
4370
4371 2010-03-07  Bruno Haible  <bruno@clisp.org>
4372
4373         Fix link error on platforms with GNU libiconv.
4374         * modules/unistr/u8-strcoll-tests (Makefile): Define
4375         test_u8_strcoll_LDADD.
4376         * modules/unistr/u16-strcoll-tests (Makefile): Define
4377         test_u16_strcoll_LDADD.
4378         * modules/unistr/u32-strcoll-tests (Makefile): Define
4379         test_u32_strcoll_LDADD.
4380
4381 2010-03-07  Bruno Haible  <bruno@clisp.org>
4382
4383         Use POSIX declarations for socket functions.
4384         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
4385         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
4386         rpl_sendto): Change declaration to match POSIX.
4387         * lib/connect.c (rpl_connect): Likewise.
4388         * lib/accept.c (rpl_accept): Likewise.
4389         * lib/bind.c (rpl_bind): Likewise.
4390         * lib/getpeername.c (rpl_getpeername): Likewise.
4391         * lib/getsockname.c (rpl_getsockname): Likewise.
4392         * lib/recv.c (rpl_recv): Likewise.
4393         * lib/send.c (rpl_send): Likewise.
4394         * lib/recvfrom.c (rpl_recvfrom): Likewise.
4395         * lib/sendto.c (rpl_sendto): Likewise.
4396
4397 2010-03-06  Bruno Haible  <bruno@clisp.org>
4398
4399         Clarify access, euidaccess, faccessat.
4400         * doc/posix-functions/faccessat.texi: Mention security problem under
4401         "Other problems", not "Portability problems".
4402         * doc/posix-functions/access.texi: Likewise. Mention a related security
4403         problem.
4404         * doc/glibc-functions/euidaccess.texi: Mention security problems.
4405         * lib/euidaccess.c: Add comments about platforms.
4406         * lib/unistd.in.h (access, euidaccess): Add warnings.
4407
4408 2010-03-07  Bruno Haible  <bruno@clisp.org>
4409
4410         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
4411         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
4412         (POSIX_SPAWN_SETSCHEDULER): Likewise.
4413         (POSIX_SPAWN_USEVFORK): Define in a way that works when
4414         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
4415         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
4416         declare when POSIX_SPAWN_SETSCHEDULER is zero.
4417         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
4418         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
4419         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
4420         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
4421         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
4422         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
4423         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
4424         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
4425         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
4426         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
4427         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
4428         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
4429         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
4430         Likewise.
4431         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
4432         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
4433         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
4434         Likewise.
4435         * tests/test-spawn.c (main): Make it work when
4436         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
4437
4438 2010-03-07  Bruno Haible  <bruno@clisp.org>
4439
4440         Fix incorrect Makefile.am generation in German locale.
4441         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4442         Execute sed command with character range in C locale.
4443
4444 2010-03-06  Bruno Haible  <bruno@clisp.org>
4445
4446         Tests for module 'iconv-h'.
4447         * modules/iconv-h-tests: New file.
4448         * tests/test-iconv-h.c: New file.
4449
4450         New module 'iconv-h'.
4451         * modules/iconv-h: New file.
4452         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
4453         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
4454         (configure.ac): Remove gl_ICONV_H.
4455         (Makefile.am): Remove rule for iconv.h.
4456
4457 2010-03-06  Bruno Haible  <bruno@clisp.org>
4458
4459         More consistent naming of *.m4 files.
4460         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
4461         * modules/wctype (Files): Update.
4462
4463         More consistent naming of *.m4 files.
4464         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
4465         * modules/wchar (Files): Update.
4466
4467 2010-03-06  Jim Meyering  <meyering@redhat.com>
4468
4469         euidaccess: relax license to LGPLv2+
4470         * modules/euidaccess (License): Relax to LGPLv2+.
4471
4472 2010-03-06  Bruno Haible  <bruno@clisp.org>
4473
4474         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
4475         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
4476         (Makefile.am): Augment lib_SOURCES instead.
4477
4478 2010-03-04  Jim Meyering  <meyering@redhat.com>
4479
4480         utime: remove obsolete module
4481         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
4482         unnecessary for years, and has been marked as obsolete for 10 months.
4483         * modules/utime: Remove file.
4484         * lib/utime.c: Remove file.
4485         * m4/utime.m4: Remove file.
4486         * m4/utimes-null.m4: Remove file.
4487         * doc/posix-functions/utime.texi (utime): Remove reference to
4488         the module.  Move the sole "fixed by gnulib" item into the
4489         "problems not fixed by Gnulib" list.
4490         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
4491
4492 2010-03-05  Simon Josefsson  <simon@josefsson.org>
4493
4494         * modules/exit (License): Relax license to LGPLv2+.
4495         (Status): Mark as obsolete.
4496         * NEWS: Mention deprecated 'exit' module.
4497         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
4498         of now obsolete 'exit'.
4499
4500 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4501
4502         fts-lgpl: remove unused module
4503         * modules/fts-lgpl: Remove.
4504         * MODULES.html.sh (func_all_modules): Adjust.
4505         * check-module (find_included_lib_files): Adjust.
4506         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
4507
4508 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
4509
4510         copy-acl: enhance Solaris ACL error handling
4511         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
4512         * lib/set-mode-acl.c (qset_acl): Likewise.
4513
4514 2010-03-02  Bruno Haible  <bruno@clisp.org>
4515
4516         spawn: Don't override the system defined values on FreeBSD 8.
4517         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
4518         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
4519         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
4520         if HAVE_POSIX_SPAWN is 1.
4521         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
4522
4523 2010-03-01  Bruno Haible  <bruno@clisp.org>
4524
4525         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
4526         regarding Automake.
4527
4528 2010-02-25  Bruno Haible  <bruno@clisp.org>
4529
4530         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
4531         * gnulib-tool: Define 'echo' as a function only before the ksh alias
4532         setting, not afterwards.
4533         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
4534
4535 2010-02-24  Eric Blake  <eblake@redhat.com>
4536
4537         bootstrap, git-version-gen: use timestamp
4538         * build-aux/git-version-gen (scriptversion): Force UTC.
4539         * build-aux/bootstrap (scriptversion): New variable.
4540
4541         bootstrap: allow older git
4542         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
4543         older than 1.6.4.  Requested by the libvirt project.
4544
4545 2010-02-23  Eric Blake  <eblake@redhat.com>
4546
4547         warn-on-use: work with old autoconf
4548         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
4549         AS_VAR semantics of autoconf 2.60.
4550         Reported by Bruno Haible.
4551
4552         bootstrap: improve some comments
4553         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
4554         clarification comments.
4555
4556         gettimeofday: provide correct function
4557         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
4558         when replacement is declared, otherwise provide gettimeofday.
4559         Reported by Michael Goffioul.
4560
4561 2010-02-23  Jim Meyering  <meyering@redhat.com>
4562
4563         lib-ignore: relax license to "unlimited", not LGPLv2+
4564         * modules/lib-ignore (License): Relax to "unlimited".
4565
4566 2010-02-23  Jim Meyering  <meyering@redhat.com>
4567
4568         lib-ignore: relax license to LGPLv2+
4569         * modules/lib-ignore (License): Relax to LGPLv2+.
4570
4571 2010-02-22  Eric Blake  <eblake@redhat.com>
4572
4573         lseek: avoid bash 3.2 broken pipe bug
4574         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
4575         warning from bash 3.2.
4576         Reported by Ben Pfaff, with analysis from Bruno Haible.
4577
4578         bootstrap: support non-FSF copyright holder
4579         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
4580         bootstrap.conf override of COPYRIGHT_HOLDER.
4581         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
4582
4583         bootstrap: interoperate with gettext 0.14.1
4584         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
4585
4586         bootstrap: allow for alternate submodule location
4587         * build-aux/bootstrap (gnulib_path): New variable; use instead of
4588         hardcoding submodule location.
4589         (gnulib_mk): Allow direct use of Makefile.am.
4590
4591         bootstrap: use GNULIB_SRCDIR to reduce disk usage
4592         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
4593         rather than reconfiguring where the submodule points.
4594
4595         gettimeofday: restore support for platforms that lack function
4596         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
4597         replacement if function is missing.
4598         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
4599         * modules/sys_time (Makefile.am): Substitute it.
4600         * lib/sys_time.in.h (gettimeofday): Check it.
4601         Reported by Michael Goffioul.
4602
4603 2010-02-21  Bruno Haible  <bruno@clisp.org>
4604
4605         * lib/stdio.in.h (obstack_printf): Fix typo.
4606
4607 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
4608
4609         vc-list-files: use bzr ls's -R option
4610         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
4611         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
4612
4613 2010-02-21  Jim Meyering  <meyering@redhat.com>
4614
4615         init.sh: fix EXEEXT shims to work also for names like test-prog
4616         * tests/init.sh: Re-exec a better shell, when needed.
4617         If the current shell lacks support for posix $(...), an init.sh-using
4618         test will now try to find a shell that supports that.  If EXEEXT is
4619         nonempty, we also require support for hyphen-in-alias-name and shell
4620         substitutions like ${var#glob}.  Failure to find such a shell results
4621         in a skipped test.
4622
4623 2010-02-21  Bruno Haible  <bruno@clisp.org>
4624
4625         Really work around around "broken pipe" error message from bash 3.2.
4626         * gnulib-tool (func_reset_sigpipe): Remove function.
4627         (echo): In bash 3.2, define to a function that uses printf.
4628         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
4629
4630 2010-02-20  Bruno Haible  <bruno@clisp.org>
4631
4632         Restore support for automake 1.9.6 with autoconf 2.61.
4633         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
4634         Reported by James Youngman <jay@gnu.org>.
4635
4636 2010-02-20  Bruno Haible  <bruno@clisp.org>
4637
4638         Improve *printf warning condition.
4639         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
4640         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
4641         and the function is overridden due to SIGPIPE emulation.
4642
4643 2010-02-20  Bruno Haible  <bruno@clisp.org>
4644
4645         * lib/stdio.in.h: Tweak comments.
4646
4647 2010-02-19  Bruno Haible  <bruno@clisp.org>
4648
4649         Make it easier to find modules. New gnulib-tool option '--find'.
4650         * gnulib-tool: New option --find.
4651         (func_usage): Document it.
4652         (func_sanitize_modulelist): New function, extracted from
4653         func_all_modules.
4654         (func_all_modules): Invoke it.
4655         * doc/gnulib-tool.texi (Which modules?): New node.
4656
4657 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
4658
4659         * lib/sys_select.in.h: Provide select replacement even if
4660         sys/select.h exists on a system, for Interix.
4661
4662 2010-02-18  Jim Meyering  <meyering@redhat.com>
4663
4664         init.sh: don't use $(...) just yet
4665         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
4666         to accommodate e.g., Solaris' /bin/sh.
4667
4668 2010-02-17  Bruno Haible  <bruno@clisp.org>
4669
4670         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
4671         Reported by Ludovic Courtès <ludo@gnu.org>.
4672
4673 2010-02-16  Simon Josefsson  <simon@josefsson.org>
4674
4675         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
4676         linking with -lintl.
4677
4678 2010-02-17  Simon Josefsson  <simon@josefsson.org>
4679
4680         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
4681         if not provided by the system's netdb.h.  Reported by
4682         ludo@gnu.org (Ludovic Courtès).
4683
4684 2010-02-15  Jim Meyering  <meyering@redhat.com>
4685
4686         init.sh: improve portability and efficiency
4687         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
4688         "dummy" in a for loop.
4689         Use '!', not '^' to select the complement of a character set used
4690         in a "case" statement.
4691         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
4692         Suggestions from Eric Blake.
4693
4694         init.sh: automatically accommodate programs with the .exe suffix
4695         Automatically arrange for an invocation of "prog" to execute the
4696         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
4697         may use the simpler "prog", yet still work when built on a system
4698         that requires specifying the added suffix.
4699         Do this by constructing a function named "prog" that invokes
4700         "prog.exe" for each .exe file in selected directories.
4701         * tests/init.sh (find_exe_basenames_): New function.
4702         (create_exe_shim_functions_): New function.
4703         (path_prepend_): Use it.
4704
4705         maint.mk: mark syntax-check sc_*.m rules as .PHONY
4706         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
4707         "make -t syntax-check" doesn't create a ton of sc_*.m files.
4708
4709 2010-02-14  Jim Meyering  <meyering@redhat.com>
4710
4711         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
4712         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
4713         (sc_prohibit_hash_pjw_without_use): New rule.
4714
4715         maint.mk: allow the default upload destination dir to be overridden
4716         * top/maint.mk (upload_dest_dir_): Define with a default that
4717         preserves the status quo.
4718         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
4719         Reported by Peter Simons.
4720
4721         maint.mk: prohibit inclusion of "hash.h" without_use
4722         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
4723
4724 2010-02-10  Jim Meyering  <meyering@redhat.com>
4725
4726         maint.mk: prohibit inclusion of "ignore-value.h" without_use
4727         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
4728
4729 2010-02-09  Eric Blake  <ebb9@byu.net>
4730         and Bruno Haible  <bruno@clisp.org>
4731
4732         obstack-printf-posix: ensure declaration
4733         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
4734         extracted from gl_FUNC_OBSTACK_PRINTF.
4735         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
4736         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
4737         Likewise.
4738         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
4739         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
4740         0.
4741
4742 2010-02-08  Bruno Haible  <bruno@clisp.org>
4743
4744         gnulib-tool: Fix typo in 2010-02-07 commit.
4745         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
4746         Reported by Eric Blake.
4747
4748 2010-02-07  Bruno Haible  <bruno@clisp.org>
4749
4750         gnulib-tool: Fix up caching patches.
4751         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
4752         option --no-cache. Use associative arrays when supported by the shell.
4753         (sed_comments): New variable.
4754         (modcache): Renamed from do_cache.
4755         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
4756         abbreviate unnecessarily.
4757         (have_associative): New variable.
4758         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
4759         way also for ksh and zsh.
4760         (func_init_sed_convert_to_cache_statements): New function, extracted
4761         from func_cache_lookup_module. Add support for associative arrays.
4762         Don't set the c_MODULE_cached variable here. Ignore all lines before
4763         the first field header. Remove only the final newline, not all trailing
4764         newlines. Support empty fields correctly. Limit the use of 'eval' to
4765         assignments.
4766         (func_get_description, func_get_status, func_get_notice,
4767         func_get_applicability, func_get_filelist, func_get_dependencies,
4768         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
4769         func_get_automake_snippet, func_get_include_directive,
4770         func_get_link_directive, func_get_license, func_get_maintainer):
4771         Update documentation. List the unoptimized code first. Add support for
4772         associative arrays. Limit the use of 'eval' to assignments.
4773         (func_get_applicability): Undo stylistic pessimisations.
4774         (func_get_automake_snippet, func_get_include_directive): Reduce code
4775         duplication.
4776         (func_modules_transitive_closure, func_modules_add_dummy,
4777         func_modules_notice, func_modules_to_filelist, func_add_file,
4778         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
4779         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
4780         func_create_testdir, func_create_megatestdir): Update documentation.
4781
4782 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4783
4784         * gnulib-tool (func_cache_lookup_module): Store the module name
4785         belonging to the cache variable; error out if two different
4786         module names map to the same cache variable name.
4787
4788 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4789
4790         gnulib-tool: Make caching optional.
4791         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
4792         Update matching short versions of --no-changelog.
4793         (func_usage): Update.
4794         (sed_extract_cache_prog): Renamed from ...
4795         (sed_extract_prog): ... this; revert to old extraction script.
4796         (func_get_description, func_get_status)
4797         (func_get_notice, func_get_applicability, func_get_filelist)
4798         (func_get_dependencies, func_get_autoconf_early_snippet)
4799         (func_get_autoconf_snippet, func_get_automake_snippet)
4800         (func_get_include_directive, func_get_link_directive)
4801         (func_get_license, func_get_maintainer): If $do_cache is false,
4802         use old, non-caching extraction scripts.
4803         Suggestion by Bruno Haible.
4804
4805 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4806
4807         gnulib-tool: cache module metainformation.
4808         * gnulib-tool (sed_extract_prog): Match newline before each
4809         header, and rewrite header to a shell variable suffix.
4810         (func_cache_var, func_cache_lookup_module): New functions,
4811         to turn a module name into a cache variable prefix, and to
4812         look up and cache module metainformation.
4813         (func_get_description, func_get_status)
4814         (func_get_notice, func_get_applicability, func_get_filelist)
4815         (func_get_dependencies, func_get_autoconf_early_snippet)
4816         (func_get_autoconf_snippet, func_get_automake_snippet)
4817         (func_get_include_directive, func_get_link_directive)
4818         (func_get_license, func_get_maintainer): Use
4819         func_cache_lookup_module.
4820
4821 2010-02-07  Bruno Haible  <bruno@clisp.org>
4822
4823         fnctl: Fix missing dependency.
4824         * modules/fcntl (Depends-on): Add getdtablesize.
4825         Reported by John W. Eaton <jwe@gnu.org>.
4826
4827 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
4828
4829         Argp: fix recognition of short alias options.
4830
4831         * lib/argp-parse.c (convert_options): Fix improper use of
4832         `|' between character values.
4833         * tests/test-argp.c (group1_option): New alias option
4834         --read (-r).
4835         (group1_parser): Special handling for 'r'.
4836         (test15): New test case.
4837         (test_fun): Add test15.
4838         * tests/test-argp-2.sh: Update expected --help and --usage
4839         outputs.
4840
4841 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
4842
4843         * tests/test-argp.c: Fix indentation.
4844
4845 2010-02-04  Eric Blake  <ebb9@byu.net>
4846
4847         gettimeofday: expose type of second argument
4848         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
4849         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
4850         * tests/test-gettimeofday.c: Use it to silence warning.
4851         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
4852         the issue.
4853
4854 2010-02-03  Jim Meyering  <meyering@redhat.com>
4855
4856         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
4857         * lib/regcomp.c (TYPE_SIGNED): Define.
4858         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
4859
4860         regcomp.c: avoid a new -Wshadow warning
4861         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
4862
4863 2010-02-01  Jim Meyering  <meyering@redhat.com>
4864
4865         removing useless parentheses in cpp #define directives
4866         For motivation, see commit c0221df4, "define STREQ(a,b)
4867         consistently, removing useless parentheses"
4868         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
4869         * lib/mountlist.c (MNT_IGNORE): Likewise.
4870         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
4871
4872 2010-02-01  Eric Blake  <ebb9@byu.net>
4873
4874         sys_time: use link-warning
4875         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
4876         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
4877         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
4878         * modules/sys_time (Depends-on): Add warn-on-use.
4879         (Makefile.am): Always build replacement.
4880         (configure.ac): Update substitutions.
4881         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
4882         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
4883         bother with SYS_TIME_H.
4884         * modules/gettimeofday (configure.ac): Declare indicator.
4885         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
4886         in use.
4887
4888         closein-tests: silence compiler warning
4889         * tests/test-closein.c (main): Ignore fread result.
4890         * modules/closein-tests (Depends-on): Add ignore-value.
4891
4892         tests: silence warning about system return
4893         * tests/test-areadlink-with-size.c (main): Ignore system result.
4894         * tests/test-areadlink.c (main): Likewise.
4895         * tests/test-areadlinkat-with-size.c (main): Likewise.
4896         * tests/test-areadlinkat.c (main): Likewise.
4897         * tests/test-canonicalize-lgpl.c (main): Likewise.
4898         * tests/test-canonicalize.c (main): Likewise.
4899         * tests/test-chown.c (main): Likewise.
4900         * tests/test-fchownat.c (main): Likewise.
4901         * tests/test-fdutimensat.c (main): Likewise.
4902         * tests/test-fstatat.c (main): Likewise.
4903         * tests/test-futimens.c (main): Likewise.
4904         * tests/test-lchown.c (main): Likewise.
4905         * tests/test-link.c (main): Likewise.
4906         * tests/test-linkat.c (main): Likewise.
4907         * tests/test-lstat.c (main): Likewise.
4908         * tests/test-mkdir.c (main): Likewise.
4909         * tests/test-mkdirat.c (main): Likewise.
4910         * tests/test-mkfifo.c (main): Likewise.
4911         * tests/test-mkfifoat.c (main): Likewise.
4912         * tests/test-mknod.c (main): Likewise.
4913         * tests/test-readlink.c (main): Likewise.
4914         * tests/test-remove.c (main): Likewise.
4915         * tests/test-rename.c (main): Likewise.
4916         * tests/test-renameat.c (main): Likewise.
4917         * tests/test-rmdir.c (main): Likewise.
4918         * tests/test-symlink.c (main): Likewise.
4919         * tests/test-symlinkat.c (main): Likewise.
4920         * tests/test-unlink.c (main): Likewise.
4921         * tests/test-unlinkat.c (main): Likewise.
4922         * tests/test-utimens.c (main): Likewise.
4923         * tests/test-utimensat.c (main): Likewise.
4924         * modules/areadlink-tests (Depends-on): Add ignore-value.
4925         * modules/areadlink-with-size-tests (Depends-on): Likewise.
4926         * modules/areadlinkat-tests (Depends-on): Likewise.
4927         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
4928         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
4929         * modules/canonicalize-tests (Depends-on): Likewise.
4930         * modules/chown-tests (Depends-on): Likewise.
4931         * modules/fdutimensat-tests (Depends-on): Likewise.
4932         * modules/futimens-tests (Depends-on): Likewise.
4933         * modules/lchown-tests (Depends-on): Likewise.
4934         * modules/link-tests (Depends-on): Likewise.
4935         * modules/linkat-tests (Depends-on): Likewise.
4936         * modules/lstat-tests (Depends-on): Likewise.
4937         * modules/mkdir-tests (Depends-on): Likewise.
4938         * modules/mkfifo-tests (Depends-on): Likewise.
4939         * modules/mkfifoat-tests (Depends-on): Likewise.
4940         * modules/mknod-tests (Depends-on): Likewise.
4941         * modules/openat-tests (Depends-on): Likewise.
4942         * modules/readlink-tests (Depends-on): Likewise.
4943         * modules/remove-tests (Depends-on): Likewise.
4944         * modules/rename-tests (Depends-on): Likewise.
4945         * modules/renameat-tests (Depends-on): Likewise.
4946         * modules/rmdir-tests (Depends-on): Likewise.
4947         * modules/symlink-tests (Depends-on): Likewise.
4948         * modules/symlinkat-tests (Depends-on): Likewise.
4949         * modules/unlink-tests (Depends-on): Likewise.
4950         * modules/utimens-tests (Depends-on): Likewise.
4951         * modules/utimensat-tests (Depends-on): Likewise.
4952
4953 2010-01-31  Bruno Haible  <bruno@clisp.org>
4954
4955         Perform the same test for many <math.h> functions.
4956         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
4957         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
4958         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
4959         of gl_MATHFUNC.
4960         * modules/acos (configure.ac): Likewise.
4961         * modules/asin (configure.ac): Likewise.
4962         * modules/atan (configure.ac): Likewise.
4963         * modules/atan2 (configure.ac): Likewise.
4964         * modules/cbrt (configure.ac): Likewise.
4965         * modules/copysign (configure.ac): Likewise.
4966         * modules/cos (configure.ac): Likewise.
4967         * modules/cosh (configure.ac): Likewise.
4968         * modules/erf (configure.ac): Likewise.
4969         * modules/erfc (configure.ac): Likewise.
4970         * modules/exp (configure.ac): Likewise.
4971         * modules/fmod (configure.ac): Likewise.
4972         * modules/hypot (configure.ac): Likewise.
4973         * modules/j0 (configure.ac): Likewise.
4974         * modules/j1 (configure.ac): Likewise.
4975         * modules/jn (configure.ac): Likewise.
4976         * modules/lgamma (configure.ac): Likewise.
4977         * modules/log (configure.ac): Likewise.
4978         * modules/log10 (configure.ac): Likewise.
4979         * modules/log1p (configure.ac): Likewise.
4980         * modules/pow (configure.ac): Likewise.
4981         * modules/remainder (configure.ac): Likewise.
4982         * modules/sin (configure.ac): Likewise.
4983         * modules/sinh (configure.ac): Likewise.
4984         * modules/tan (configure.ac): Likewise.
4985         * modules/tanh (configure.ac): Likewise.
4986         * modules/y0 (configure.ac): Likewise.
4987         * modules/y1 (configure.ac): Likewise.
4988         * modules/yn (configure.ac): Likewise.
4989         Suggested by Paolo Bonzini.
4990
4991 2010-01-31  Bruno Haible  <bruno@clisp.org>
4992
4993         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
4994
4995 2010-01-31  Bruno Haible  <bruno@clisp.org>
4996
4997         Work around getdelim() bug on FreeBSD 8.0.
4998         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
4999         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
5000         not work.
5001         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
5002         is 1.
5003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
5004         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
5005         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
5006         a non-zero size.
5007         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
5008
5009 2010-01-31  Bruno Haible  <bruno@clisp.org>
5010
5011         Work around getline() bug on FreeBSD 8.0.
5012         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
5013         and a non-zero size.
5014         * tests/test-getline.c (main): Likewise.
5015         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
5016         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
5017
5018 2010-01-28  Eric Blake  <ebb9@byu.net>
5019
5020         regex: fix build failure
5021         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
5022         platforms.
5023
5024 2010-01-28  Jim Meyering  <meyering@redhat.com>
5025
5026         regex: do not ignore memory allocation failure
5027         * lib/regex_internal.c (create_cd_newstate): Detect
5028         re_node_set_init_copy failure.   Extracted from glibc commit
5029         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
5030
5031         regex: sync more white-space changes from libc
5032         * lib/regex_internal.c: White-space only changes.
5033         * lib/regexec.c: Likewise.
5034
5035         regex: add many uses of __attribute_warn_unused_result__
5036         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
5037         * lib/regexec.c: Likewise.
5038         Extracted from a messy glibc commit.
5039
5040         regcomp.c: spelling and merge-artifact from glibc
5041         * lib/regcomp.c: Merge remainder of glibc's
5042         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
5043
5044         regcomp.c: sync white-space changes from glibc
5045         * lib/regcomp.c: Merge to accommodate white space
5046         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
5047
5048         regcomp.c: do not ignore internal return values
5049         * lib/regcomp.c: Do not ignore internal return values.
5050         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
5051         but without its white-space changes and spelling fixes.
5052
5053         regex_internal.h: define __attribute_warn_unused_result__
5054         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
5055
5056         maint: add a syntax-check rule to check for vulnerable Makefile.in
5057         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
5058
5059 2010-01-27  Jim Meyering  <meyering@redhat.com>
5060
5061         ncftpput-ftp: clean up spaces
5062         * build-aux/ncftpput-ftp: Make Copyright line consistent.
5063         Remove trailing blanks.
5064
5065 2010-01-27  Simon Josefsson  <simon@josefsson.org>
5066
5067         * build-aux/git-version-gen: Fix copyright statement.
5068         * build-aux/gnupload: Likewise.
5069         * tests/test-arcfour.c: Likewise.
5070         * tests/test-arctwo.c: Likewise.
5071         * tests/test-count-one-bits.c: Likewise.
5072         * tests/test-crc.c: Likewise.
5073         * tests/test-des.c: Likewise.
5074         * tests/test-gc-arcfour.c: Likewise.
5075         * tests/test-gc-arctwo.c: Likewise.
5076         * tests/test-gc-des.c: Likewise.
5077         * tests/test-gc-hmac-md5.c: Likewise.
5078         * tests/test-gc-hmac-sha1.c: Likewise.
5079         * tests/test-gc-md2.c: Likewise.
5080         * tests/test-gc-md4.c: Likewise.
5081         * tests/test-gc-md5.c: Likewise.
5082         * tests/test-gc-pbkdf2-sha1.c: Likewise.
5083         * tests/test-gc-rijndael.c: Likewise.
5084         * tests/test-gc-sha1.c: Likewise.
5085         * tests/test-gc.c: Likewise.
5086         * tests/test-gethostname.c: Likewise.
5087         * tests/test-gettimeofday.c: Likewise.
5088         * tests/test-hash.c: Likewise.
5089         * tests/test-hmac-md5.c: Likewise.
5090         * tests/test-hmac-sha1.c: Likewise.
5091         * tests/test-md2.c: Likewise.
5092         * tests/test-md4.c: Likewise.
5093         * tests/test-md5.c: Likewise.
5094         * tests/test-memchr.c: Likewise.
5095         * tests/test-memchr2.c: Likewise.
5096         * tests/test-memcmp.c: Likewise.
5097         * tests/test-memmem.c: Likewise.
5098         * tests/test-memrchr.c: Likewise.
5099         * tests/test-rawmemchr.c: Likewise.
5100         * tests/test-read-file.c: Likewise.
5101         * tests/test-rijndael.c: Likewise.
5102         * tests/test-sockets.c: Likewise.
5103         * tests/test-strchrnul.c: Likewise.
5104         * tests/test-strstr.c: Likewise.
5105         * tests/test-strtod.c: Likewise.
5106         * build-aux/ncftpput-ftp: Likewise.
5107
5108 2010-01-26  Eric Blake  <ebb9@byu.net>
5109
5110         ignore-value: update recommended header name
5111         * modules/ignore-value (Include): Only use <> for headers that
5112         exist in glibc.
5113
5114 2010-01-26  Jim Meyering  <meyering@redhat.com>
5115
5116         test-userspec.c: avoid compiler warnings
5117         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
5118         and "initialization discards qualifiers..." warnings.
5119         Put the first "uid" in its own scope, and make char* members "const".
5120
5121 2010-01-25  Bruno Haible  <bruno@clisp.org>
5122
5123         gnulib-tool: Make warning diagnostics consistent.
5124         * gnulib-tool (func_warning): New function.
5125         Use it everywhere where gnulib-tool produces output to stderr and it is
5126         not a fatal error.
5127
5128 2010-01-25  Bruno Haible  <bruno@clisp.org>
5129
5130         Fix test dependencies.
5131         * modules/xstrtol-tests (Depends-on): Add inttypes.
5132         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
5133
5134 2010-01-25 Pádraig Brady <P@draigBrady.com>
5135
5136         syntax-check: detect incorrect boolean macro values in config.h
5137         * modules/maintainer-makefile (configure.ac): Parameterize the location
5138         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
5139         The logic is from Eric Blake and the location indicated by Jim Meyering.
5140         Note the more natural CONFIG_HEADER name is prohibited by automake
5141         for backwards compatibility reasons.
5142         * top/maint.mk (sc_Wundef_boolean): New rule.
5143
5144 2010-01-25  Jim Meyering  <meyering@redhat.com>
5145
5146         bootstrap: detect MacOS 10.6's shasum, too
5147         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
5148         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
5149
5150 2010-01-23  Jim Meyering  <meyering@redhat.com>
5151
5152         xstrtoll: new module
5153         * modules/xstrtoll: New file.
5154         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
5155         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
5156         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
5157         ./configure fails if you use this module and lack "long long".
5158         * modules/xstrtoll-tests: New module.
5159         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
5160         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
5161         new init.sh-based test framework.
5162
5163 2010-01-24  Bruno Haible  <bruno@clisp.org>
5164
5165         Tests for module 'yn'.
5166         * modules/yn-tests: New file.
5167         * tests/test-yn.c: New file.
5168
5169         Tests for module 'y1'.
5170         * modules/y1-tests: New file.
5171         * tests/test-y1.c: New file.
5172
5173         Tests for module 'y0'.
5174         * modules/y0-tests: New file.
5175         * tests/test-y0.c: New file.
5176
5177         Tests for module 'tanh'.
5178         * modules/tanh-tests: New file.
5179         * tests/test-tanh.c: New file.
5180
5181         Tests for module 'tan'.
5182         * modules/tan-tests: New file.
5183         * tests/test-tan.c: New file.
5184
5185         Tests for module 'sqrt'.
5186         * modules/sqrt-tests: New file.
5187         * tests/test-sqrt.c: New file.
5188
5189         Tests for module 'sinh'.
5190         * modules/sinh-tests: New file.
5191         * tests/test-sinh.c: New file.
5192
5193         Tests for module 'sin'.
5194         * modules/sin-tests: New file.
5195         * tests/test-sin.c: New file.
5196
5197         Tests for module 'rint'.
5198         * modules/rint-tests: New file.
5199         * tests/test-rint.c: New file.
5200
5201         Tests for module 'remainder'.
5202         * modules/remainder-tests: New file.
5203         * tests/test-remainder.c: New file.
5204
5205         Tests for module 'pow'.
5206         * modules/pow-tests: New file.
5207         * tests/test-pow.c: New file.
5208
5209         Tests for module 'nextafter'.
5210         * modules/nextafter-tests: New file.
5211         * tests/test-nextafter.c: New file.
5212
5213         Tests for module 'modf'.
5214         * modules/modf-tests: New file.
5215         * tests/test-modf.c: New file.
5216
5217         Tests for module 'logb'.
5218         * modules/logb-tests: New file.
5219         * tests/test-logb.c: New file.
5220
5221         Tests for module 'log1p'.
5222         * modules/log1p-tests: New file.
5223         * tests/test-log1p.c: New file.
5224
5225         Tests for module 'log10'.
5226         * modules/log10-tests: New file.
5227         * tests/test-log10.c: New file.
5228
5229         Tests for module 'log'.
5230         * modules/log-tests: New file.
5231         * tests/test-log.c: New file.
5232
5233         Tests for module 'lgamma'.
5234         * modules/lgamma-tests: New file.
5235         * tests/test-lgamma.c: New file.
5236
5237         Tests for module 'ldexp'.
5238         * modules/ldexp-tests: New file.
5239         * tests/test-ldexp.c: New file.
5240
5241         Tests for module 'jn'.
5242         * modules/jn-tests: New file.
5243         * tests/test-jn.c: New file.
5244
5245         Tests for module 'j1'.
5246         * modules/j1-tests: New file.
5247         * tests/test-j1.c: New file.
5248
5249         Tests for module 'j0'.
5250         * modules/j0-tests: New file.
5251         * tests/test-j0.c: New file.
5252
5253         Tests for module 'hypot'.
5254         * modules/hypot-tests: New file.
5255         * tests/test-hypot.c: New file.
5256
5257         Tests for module 'fmod'.
5258         * modules/fmod-tests: New file.
5259         * tests/test-fmod.c: New file.
5260
5261         Tests for module 'fabs'.
5262         * modules/fabs-tests: New file.
5263         * tests/test-fabs.c: New file.
5264
5265         Tests for module 'exp'.
5266         * modules/exp-tests: New file.
5267         * tests/test-exp.c: New file.
5268
5269         Tests for module 'erfc'.
5270         * modules/erfc-tests: New file.
5271         * tests/test-erfc.c: New file.
5272
5273         Tests for module 'erf'.
5274         * modules/erf-tests: New file.
5275         * tests/test-erf.c: New file.
5276
5277         Tests for module 'cosh'.
5278         * modules/cosh-tests: New file.
5279         * tests/test-cosh.c: New file.
5280
5281         Tests for module 'cos'.
5282         * modules/cos-tests: New file.
5283         * tests/test-cos.c: New file.
5284
5285         Tests for module 'copysign'.
5286         * modules/copysign-tests: New file.
5287         * tests/test-copysign.c: New file.
5288
5289         Tests for module 'cbrt'.
5290         * modules/cbrt-tests: New file.
5291         * tests/test-cbrt.c: New file.
5292
5293         Tests for module 'atan2'.
5294         * modules/atan2-tests: New file.
5295         * tests/test-atan2.c: New file.
5296
5297         Tests for module 'atan'.
5298         * modules/atan-tests: New file.
5299         * tests/test-atan.c: New file.
5300
5301         Tests for module 'asin'.
5302         * modules/asin-tests: New file.
5303         * tests/test-asin.c: New file.
5304
5305         Tests for module 'acos'.
5306         * modules/acos-tests: New file.
5307         * tests/test-acos.c: New file.
5308
5309 2010-01-24  Bruno Haible  <bruno@clisp.org>
5310
5311         Fix tests for common <math.h> functions.
5312         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
5313         code snippet that references the function pointer, rather than merely
5314         calling the function. Substitute the FUNC_LIBM variable.
5315         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
5316         * modules/acos (configure.ac): Likewise.
5317         * modules/asin (configure.ac): Likewise.
5318         * modules/atan (configure.ac): Likewise.
5319         * modules/atan2 (configure.ac): Likewise.
5320         * modules/cbrt (configure.ac): Likewise.
5321         * modules/copysign (configure.ac): Likewise.
5322         * modules/cos (configure.ac): Likewise.
5323         * modules/cosh (configure.ac): Likewise.
5324         * modules/erf (configure.ac): Likewise.
5325         * modules/erfc (configure.ac): Likewise.
5326         * modules/exp (configure.ac): Likewise.
5327         * modules/fabs (configure.ac): Likewise.
5328         * modules/fmod (configure.ac): Likewise.
5329         * modules/hypot (configure.ac): Likewise.
5330         * modules/j0 (configure.ac): Likewise.
5331         * modules/j1 (configure.ac): Likewise.
5332         * modules/jn (configure.ac): Likewise.
5333         * modules/ldexp (configure.ac): Likewise.
5334         * modules/lgamma (configure.ac): Likewise.
5335         * modules/log (configure.ac): Likewise.
5336         * modules/log10 (configure.ac): Likewise.
5337         * modules/log1p (configure.ac): Likewise.
5338         * modules/logb (configure.ac): Likewise.
5339         * modules/modf (configure.ac): Likewise.
5340         * modules/nextafter (configure.ac): Likewise.
5341         * modules/pow (configure.ac): Likewise.
5342         * modules/remainder (configure.ac): Likewise.
5343         * modules/rint (configure.ac): Likewise.
5344         * modules/sin (configure.ac): Likewise.
5345         * modules/sinh (configure.ac): Likewise.
5346         * modules/tan (configure.ac): Likewise.
5347         * modules/tanh (configure.ac): Likewise.
5348         * modules/y0 (configure.ac): Likewise.
5349         * modules/y1 (configure.ac): Likewise.
5350         * modules/yn (configure.ac): Likewise.
5351
5352 2010-01-24  Bruno Haible  <bruno@clisp.org>
5353
5354         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
5355         * tests/test-acosl.c (x): New variable.
5356         (main): Store argument in x and fetch it from x.
5357         * tests/test-asinl.c (x): New variable.
5358         (main): Store argument in x and fetch it from x.
5359         * tests/test-atanl.c (x): New variable.
5360         (main): Store argument in x and fetch it from x.
5361         * tests/test-cosl.c (x): New variable.
5362         (main): Store argument in x and fetch it from x.
5363         * tests/test-expl.c (x): New variable.
5364         (main): Store argument in x and fetch it from x.
5365         * tests/test-logl.c (x): New variable.
5366         (main): Store argument in x and fetch it from x.
5367         * tests/test-sinl.c (x): New variable.
5368         (main): Store argument in x and fetch it from x.
5369         * tests/test-sqrtl.c (x): New variable.
5370         (main): Store argument in x and fetch it from x.
5371         * tests/test-tanl.c (x): New variable.
5372         (main): Store argument in x and fetch it from x.
5373
5374 2010-01-24  Bruno Haible  <bruno@clisp.org>
5375
5376         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
5377         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
5378         assignments to the initial TESTS_ENVIRONMENT.
5379         * doc/gnulib.texi (Unit test modules): Document it.
5380         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
5381         TESTS_ENVIRONMENT.
5382         * modules/btowc-tests (Makefile.am): Likewise.
5383         * modules/c-stack-tests (Makefile.am): Likewise.
5384         * modules/c-strcase-tests (Makefile.am): Likewise.
5385         * modules/copy-file-tests (Makefile.am): Likewise.
5386         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
5387         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
5388         * modules/mbrtowc-tests (Makefile.am): Likewise.
5389         * modules/mbscasecmp-tests (Makefile.am): Likewise.
5390         * modules/mbscasestr-tests (Makefile.am): Likewise.
5391         * modules/mbschr-tests (Makefile.am): Likewise.
5392         * modules/mbscspn-tests (Makefile.am): Likewise.
5393         * modules/mbsinit-tests (Makefile.am): Likewise.
5394         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
5395         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
5396         * modules/mbspbrk-tests (Makefile.am): Likewise.
5397         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
5398         * modules/mbsrchr-tests (Makefile.am): Likewise.
5399         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
5400         * modules/mbsspn-tests (Makefile.am): Likewise.
5401         * modules/mbsstr-tests (Makefile.am): Likewise.
5402         * modules/nl_langinfo-tests (Makefile.am): Likewise.
5403         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
5404         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
5405         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
5406         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
5407         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
5408         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
5409         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
5410         * modules/wcrtomb-tests (Makefile.am): Likewise.
5411         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
5412         * modules/wcsrtombs-tests (Makefile.am): Likewise.
5413         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
5414         assignments from TESTS_ENVIRONMENT.
5415         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
5416         augmentation.
5417         * modules/argp-version-etc-tests (Makefile.am): Likewise.
5418         * modules/atexit-tests (Makefile.am): Likewise.
5419         * modules/binary-io-tests (Makefile.am): Likewise.
5420         * modules/closein-tests (Makefile.am): Likewise.
5421         * modules/dprintf-posix-tests (Makefile.am): Likewise.
5422         * modules/exclude-tests (Makefile.am): Likewise.
5423         * modules/fflush-tests (Makefile.am): Likewise.
5424         * modules/fpending-tests (Makefile.am): Likewise.
5425         * modules/fprintf-posix-tests (Makefile.am): Likewise.
5426         * modules/freadahead-tests (Makefile.am): Likewise.
5427         * modules/freadptr-tests (Makefile.am): Likewise.
5428         * modules/freadseek-tests (Makefile.am): Likewise.
5429         * modules/fseek-tests (Makefile.am): Likewise.
5430         * modules/fseeko-tests (Makefile.am): Likewise.
5431         * modules/ftell-tests (Makefile.am): Likewise.
5432         * modules/ftello-tests (Makefile.am): Likewise.
5433         * modules/idpriv-drop-tests (Makefile.am): Likewise.
5434         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
5435         * modules/lseek-tests (Makefile.am): Likewise.
5436         * modules/parse-duration-tests (Makefile.am): Likewise.
5437         * modules/perror-tests (Makefile.am): Likewise.
5438         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
5439         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
5440         * modules/pipe-tests (Makefile.am): Likewise.
5441         * modules/pread-tests (Makefile.am): Likewise.
5442         * modules/printf-posix-tests (Makefile.am): Likewise.
5443         * modules/select-tests (Makefile.am): Likewise.
5444         * modules/sigpipe-tests (Makefile.am): Likewise.
5445         * modules/tsearch-tests (Makefile.am): Likewise.
5446         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
5447         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
5448         * modules/uniname/uniname-tests (Makefile.am): Likewise.
5449         * modules/uniwidth/width-tests (Makefile.am): Likewise.
5450         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
5451         * modules/version-etc-tests (Makefile.am): Likewise.
5452         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
5453         * modules/vprintf-posix-tests (Makefile.am): Likewise.
5454         * modules/xalloc-die-tests (Makefile.am): Likewise.
5455         * modules/xprintf-posix-tests (Makefile.am): Likewise.
5456         * modules/xstrtoimax-tests (Makefile.am): Likewise.
5457         * modules/xstrtol-tests (Makefile.am): Likewise.
5458         * modules/xstrtoumax-tests (Makefile.am): Likewise.
5459         * modules/yesno-tests (Makefile.am): Likewise.
5460         Suggested by Jim Meyering.
5461
5462 2010-01-24  Bruno Haible  <bruno@clisp.org>
5463
5464         More documentation.
5465         * doc/gnulib.texi (Writing modules): New chapter.
5466         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
5467         the new chapter.
5468
5469 2010-01-24  Jim Meyering  <meyering@redhat.com>
5470
5471         maint.mk: do not prepend "./" after filtering
5472         * top/maint.mk (_prepend_srcdir_prefix): New variable
5473         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
5474         "./" when $(srcdir) is ".".
5475
5476         define STREQ(a,b) consistently, removing useless parentheses
5477         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
5478         since the only risk is that "a" or "b" contains an unparenthesized
5479         comma, but if either did that, STREQ would have 3 or more arguments.
5480         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
5481         * lib/fts.c (STREQ): Remove unnecessary parentheses.
5482         * lib/hash-triple.c (STREQ): Likewise.
5483         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
5484         * lib/getugroups.c (STREQ): Likewise.
5485
5486 2010-01-23  Jim Meyering  <meyering@redhat.com>
5487
5488         maint.mk: fix syntax-check in a non-srcdir build directory
5489         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
5490         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
5491
5492 2010-01-22  Jim Meyering  <meyering@redhat.com>
5493
5494         userspec: add unit tests
5495         * tests/test-userspec.c: New file.
5496         * modules/userspec-tests: Likewise.
5497
5498 2010-01-21  Jim Meyering  <meyering@redhat.com>
5499
5500         maint.mk: handle source file names containing "." robustly
5501         * top/maint.mk (_dot_escaped_srcdir): Define.
5502         (VC_LIST): Use it in LHS of sed substitution.
5503
5504 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
5505
5506         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
5507         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
5508         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
5509         from a non-srcdir build.
5510
5511 2010-01-20  Eric Blake  <ebb9@byu.net>
5512
5513         warn-on-use: use instead of link-warning
5514         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
5515         * modules/unistd (Depends-on, Makefile.am): Likewise.
5516         * modules/arpa_inet (Depends-on): Replace link-warning with
5517         warn-on-use.
5518         (Makefile.am): Update rules accordingly.
5519         * modules/ctype (Depends-on, Makefile.am): Likewise.
5520         * modules/dirent (Depends-on, Makefile.am): Likewise.
5521         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
5522         * modules/inttypes (Depends-on, Makefile.am): Likewise.
5523         * modules/langinfo (Depends-on, Makefile.am): Likewise.
5524         * modules/locale (Depends-on, Makefile.am): Likewise.
5525         * modules/math (Depends-on, Makefile.am): Likewise.
5526         * modules/search (Depends-on, Makefile.am): Likewise.
5527         * modules/signal (Depends-on, Makefile.am): Likewise.
5528         * modules/spawn (Depends-on, Makefile.am): Likewise.
5529         * modules/stdlib (Depends-on, Makefile.am): Likewise.
5530         * modules/string (Depends-on, Makefile.am): Likewise.
5531         * modules/strings (Depends-on, Makefile.am): Likewise.
5532         * modules/sys_file (Depends-on, Makefile.am): Likewise.
5533         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
5534         * modules/sys_select (Depends-on, Makefile.am): Likewise.
5535         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
5536         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
5537         * modules/sys_times (Depends-on, Makefile.am): Likewise.
5538         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
5539         * modules/wchar (Depends-on, Makefile.am): Likewise.
5540         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
5541         should be poisoned.
5542         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
5543         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
5544         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
5545         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
5546         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
5547         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
5548         * m4/math_h.m4 (gl_MATH_H): Likewise.
5549         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5550         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5551         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5552         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
5553         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
5554         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
5555         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5556         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
5557         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
5558         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5559         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
5560         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
5561         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5562         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5563         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5564         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
5565         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
5566         GL_LINK_WARNING.
5567         * lib/ctype.in.h: Likewise.
5568         * lib/dirent.in.h: Likewise.
5569         * lib/fcntl.in.h: Likewise.
5570         * lib/inttypes.in.h: Likewise.
5571         * lib/langinfo.in.h: Likewise.
5572         * lib/locale.in.h: Likewise.
5573         * lib/math.in.h: Likewise.
5574         * lib/search.in.h: Likewise.
5575         * lib/signal.in.h: Likewise.
5576         * lib/spawn.in.h: Likewise.
5577         * lib/stdio.in.h: Likewise.
5578         * lib/stdlib.in.h: Likewise.
5579         * lib/string.in.h: Likewise.
5580         * lib/strings.in.h: Likewise.
5581         * lib/sys_file.in.h: Likewise.
5582         * lib/sys_ioctl.in.h: Likewise.
5583         * lib/sys_select.in.h: Likewise.
5584         * lib/sys_socket.in.h: Likewise.
5585         * lib/sys_stat.in.h: Likewise.
5586         * lib/sys_times.in.h: Likewise.
5587         * lib/sys_utsname.in.h: Likewise.
5588         * lib/unistd.in.h: Likewise.
5589         * lib/wchar.in.h: Likewise.
5590
5591 2010-01-20  Bruno Haible  <bruno@clisp.org>
5592
5593         Avoid duplicate -lm.
5594         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
5595         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
5596         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
5597         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
5598         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
5599         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
5600         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
5601         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
5602         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
5603         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
5604         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
5605         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5606         Reported by Paolo Bonzini.
5607
5608 2010-01-19  Bruno Haible  <bruno@clisp.org>
5609
5610         langinfo, nl_langinfo: Relicense under LGPLv2+.
5611         * modules/langinfo (License): Change to LGPLv2+.
5612         * modules/nl_langinfo (License): Likewise.
5613         Patch by David Lutterkort <lutter@redhat.com>.
5614
5615 2010-01-19  Bruno Haible  <bruno@clisp.org>
5616
5617         Avoid compilation error with cc on OSF/1 5.1.
5618         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
5619         statement, not before.
5620         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5621
5622 2010-01-18  Bruno Haible  <bruno@clisp.org>
5623
5624         Avoid a link error due to the __printf__ symbol.
5625         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
5626         and 2.6.x.
5627         (__format__, __printf__): Remove definitions.
5628         * lib/argp-fmtstream.h: Likewise.
5629         * lib/argp.h: Likewise.
5630         * lib/error.h: Likewise.
5631         * lib/vasnprintf.h: Likewise.
5632         * lib/xprintf.h: Likewise.
5633         * lib/xvasprintf.h: Likewise.
5634         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5635
5636 2010-01-18  Bruno Haible  <bruno@clisp.org>
5637
5638         Tests for module 'tanl'.
5639         * modules/tanl-tests: New file.
5640         * tests/test-tanl.c: New file.
5641
5642         Tests for module 'sqrtl'.
5643         * modules/sqrtl-tests: New file.
5644         * tests/test-sqrtl.c: New file.
5645
5646         Tests for module 'sinl'.
5647         * modules/sinl-tests: New file.
5648         * tests/test-sinl.c: New file.
5649
5650         Tests for module 'logl'.
5651         * modules/logl-tests: New file.
5652         * tests/test-logl.c: New file.
5653
5654         Tests for module 'expl'.
5655         * modules/expl-tests: New file.
5656         * tests/test-expl.c: New file.
5657
5658         Tests for module 'cosl'.
5659         * modules/cosl-tests: New file.
5660         * tests/test-cosl.c: New file.
5661
5662         Tests for module 'atanl'.
5663         * modules/atanl-tests: New file.
5664         * tests/test-atanl.c: New file.
5665
5666         Tests for module 'asinl'.
5667         * modules/asinl-tests: New file.
5668         * tests/test-asinl.c: New file.
5669
5670         Tests for module 'acosl'.
5671         * modules/acosl-tests: New file.
5672         * tests/test-acosl.c: New file.
5673
5674         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
5675         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
5676         tanl): Use the standard gnulib idiom.
5677         * lib/cosl.c: Don't include trigl.c and sincosl.c.
5678         * lib/sinl.c: Likewise.
5679         * lib/tanl.c: Don't include trigl.c.
5680         (kernel_tanl): Make static.
5681         * lib/sincosl.c: Include trigl.h first.
5682         * lib/trigl.c: Likewise.
5683         * m4/acosl.m4: New file.
5684         * m4/asinl.m4: New file.
5685         * m4/atanl.m4: New file.
5686         * m4/cosl.m4: New file.
5687         * m4/expl.m4: New file.
5688         * m4/logl.m4: New file.
5689         * m4/sinl.m4: New file.
5690         * m4/sqrtl.m4: New file.
5691         * m4/tanl.m4: New file.
5692         * m4/mathl.m4: Remove file.
5693         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
5694         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
5695         Don't initialize GNULIB_MATHL.
5696         * modules/acosl: New file.
5697         * modules/asinl: New file.
5698         * modules/atanl: New file.
5699         * modules/cosl: New file.
5700         * modules/expl: New file.
5701         * modules/logl: New file.
5702         * modules/sinl: New file.
5703         * modules/sqrtl: New file.
5704         * modules/tanl: New file.
5705         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
5706         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
5707         substitute GNULIB_MATHL.
5708         * modules/mathl: Rewritten.
5709         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
5710         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
5711         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
5712         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
5713         * doc/posix-functions/expl.texi: Mention the 'expl' module.
5714         * doc/posix-functions/logl.texi: Mention the 'logl' module.
5715         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
5716         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
5717         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
5718
5719 2010-01-18  Bruno Haible  <bruno@clisp.org>
5720
5721         sqrt: Make gl_FUNC_SQRT requirable.
5722         * m4/sqrt.m4: New file.
5723         * modules/sqrt (Files): Add it.
5724         (configure.ac): Invoke gl_FUNC_SQRT.
5725
5726 2010-01-18  Bruno Haible  <bruno@clisp.org>
5727
5728         New modules for common <math.h> functions.
5729         * m4/mathfunc.m4: New file.
5730         * modules/acos: New file.
5731         * modules/asin: New file.
5732         * modules/atan: New file.
5733         * modules/atan2: New file.
5734         * modules/cbrt: New file.
5735         * modules/copysign: New file.
5736         * modules/cos: New file.
5737         * modules/cosh: New file.
5738         * modules/erf: New file.
5739         * modules/erfc: New file.
5740         * modules/exp: New file.
5741         * modules/fabs: New file.
5742         * modules/fmod: New file.
5743         * modules/hypot: New file.
5744         * modules/j0: New file.
5745         * modules/j1: New file.
5746         * modules/jn: New file.
5747         * modules/ldexp: New file.
5748         * modules/lgamma: New file.
5749         * modules/log: New file.
5750         * modules/log10: New file.
5751         * modules/log1p: New file.
5752         * modules/logb: New file.
5753         * modules/modf: New file.
5754         * modules/nextafter: New file.
5755         * modules/pow: New file.
5756         * modules/remainder: New file.
5757         * modules/rint: New file.
5758         * modules/sin: New file.
5759         * modules/sinh: New file.
5760         * modules/sqrt: New file.
5761         * modules/tan: New file.
5762         * modules/tanh: New file.
5763         * modules/y0: New file.
5764         * modules/y1: New file.
5765         * modules/yn: New file.
5766         * doc/posix-functions/acos.texi: Mention the 'acos' module.
5767         * doc/posix-functions/asin.texi: Mention the 'asin' module.
5768         * doc/posix-functions/atan.texi: Mention the 'atan' module.
5769         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
5770         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
5771         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
5772         * doc/posix-functions/cos.texi: Mention the 'cos' module.
5773         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
5774         * doc/posix-functions/erf.texi: Mention the 'erf' module.
5775         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
5776         * doc/posix-functions/exp.texi: Mention the 'exp' module.
5777         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
5778         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
5779         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
5780         * doc/posix-functions/j0.texi: Mention the 'j0' module.
5781         * doc/posix-functions/j1.texi: Mention the 'j1' module.
5782         * doc/posix-functions/jn.texi: Mention the 'jn' module.
5783         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
5784         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
5785         * doc/posix-functions/log.texi: Mention the 'log' module.
5786         * doc/posix-functions/log10.texi: Mention the 'log10' module.
5787         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
5788         * doc/posix-functions/logb.texi: Mention the 'logb' module.
5789         * doc/posix-functions/modf.texi: Mention the 'modf' module.
5790         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
5791         * doc/posix-functions/pow.texi: Mention the 'pow' module.
5792         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
5793         * doc/posix-functions/rint.texi: Mention the 'rint' module.
5794         * doc/posix-functions/sin.texi: Mention the 'sin' module.
5795         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
5796         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
5797         * doc/posix-functions/tan.texi: Mention the 'tan' module.
5798         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
5799         * doc/posix-functions/y0.texi: Mention the 'y0' module.
5800         * doc/posix-functions/y1.texi: Mention the 'y1' module.
5801         * doc/posix-functions/yn.texi: Mention the 'yn' module.
5802
5803 2010-01-18  Jim Meyering  <meyering@redhat.com>
5804
5805         ignore-value: relax license to LGPLv2+
5806         * modules/ignore-value (License): Relax to LGPLv2+.
5807
5808         getdate: don't leak when TZ contains two or more '"'s
5809         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
5810         double quote in TZ after the first one.
5811
5812         readtokens: do not leak internal token_lengths buffer
5813         * lib/readtokens.c (readtokens): Free the local, lengths,
5814         when the supplied "token_lengths" parameter is NULL.
5815
5816 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5817
5818         Fix a couple of missing LIBTHREAD link failures on AIX.
5819         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
5820         $(LIBTHREAD).
5821         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
5822
5823         Link test-poll against INET_PTON_LIB.
5824         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
5825         for inet_pton on Solaris 10.
5826
5827 2010-01-17  Bruno Haible  <bruno@clisp.org>
5828
5829         unistdio/*-sprintf: Fix typo in module description.
5830         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
5831         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
5832         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
5833         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
5834         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
5835         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
5836         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
5837         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5838
5839 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5840
5841         gnulib-tool: fix filelist for AIX, HP-UX ksh.
5842         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
5843         variables in shell case patterns, for AIX and HP-UX ksh.
5844
5845         Split large sed scripts, for HP-UX sed.
5846         * modules/stdio: Split sed scripts around 50 sed commands,
5847         to avoid HP-UX limit of 99 commands, in the near future.
5848         * modules/string: Likewise.
5849         * modules/unistd: Likewise.
5850
5851         gnulib-tool: avoid writing in the current directory.
5852         * gnulib-tool (func_emit_lib_Makefile_am)
5853         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
5854         not in the current directory, so concurrent gnulib-tool
5855         instances do not interfere.
5856
5857 2010-01-16  Jim Meyering  <meyering@redhat.com>
5858
5859         doc: update users.txt
5860         * users.txt: Add grep.
5861         (diffutils, gzip): Update URLs.
5862
5863 2010-01-12  Bruno Haible  <bruno@clisp.org>
5864
5865         posix_spawn: Avoid test failure on Cygwin.
5866         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
5867         characters.
5868         Reported by Simon Josefsson.
5869
5870 2010-01-12  Bruno Haible  <bruno@clisp.org>
5871
5872         * tests/test-cond.c (main): When skipping the test, show the reason.
5873
5874 2010-01-12  Simon Josefsson  <simon@josefsson.org>
5875
5876         * lib/striconv.c (str_cd_iconv): Avoid if before free.
5877
5878 2010-01-12  Simon Josefsson  <simon@josefsson.org>
5879
5880         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
5881         VC_LIST_ALWAYS_EXCLUDE_REGEX.
5882
5883 2010-01-12  Eric Blake  <ebb9@byu.net>
5884
5885         build: guarantee AS_VAR_IF
5886         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
5887         (gl_AS_VAR_IF): Move...
5888         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
5889         Reported by Simon Josefsson.
5890
5891 2010-01-12  Simon Josefsson  <simon@josefsson.org>
5892
5893         * lib/stdio.in.h: Fix typo.
5894
5895 2010-01-12  Simon Josefsson  <simon@josefsson.org>
5896
5897         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
5898         libgpg-error.
5899
5900 2010-01-12  Simon Josefsson  <simon@josefsson.org>
5901
5902         * tests/test-xalloc-die.sh: Use $EXEEXT.
5903
5904 2010-01-12  Simon Josefsson  <simon@josefsson.org>
5905             Bruno Haible  <bruno@clisp.org>
5906
5907         getlogin, getlogin_r: Avoid test failure.
5908         * tests/test-getlogin.c: Include <stdio.h>.
5909         (main): Skip the test when the function fails because stdin is not a
5910         tty.
5911         * tests/test-getlogin_r.c: Include <stdio.h>.
5912         (main): Skip the test when the function fails because stdin is not a
5913         tty.
5914
5915 2010-01-11  Eric Blake  <ebb9@byu.net>
5916
5917         tests: avoid more large file warnings
5918         * tests/test-fflush.c: Avoid warning about ftell use.
5919         * tests/test-fseek.c: Avoid warning about fseek use.
5920
5921 2010-01-10  Bruno Haible  <bruno@clisp.org>
5922
5923         nproc: Work better on Linux when /proc and /sys are not mounted.
5924         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
5925         as lower bound when, on glibc/Linux systems,
5926         sysconf (_SC_NPROCESSORS_CONF) returns 1.
5927         Suggested by Pádraig Brady <P@draigbrady.com>.
5928         Reported by Dmitry V. Levin <ldv@altlinux.org>.
5929
5930         nproc: Refactor.
5931         * lib/nproc.c (num_processors_via_affinity_mask): New function,
5932         extracted from num_processors.
5933         (num_processors): Call it.
5934
5935 2010-01-11  Jim Meyering  <meyering@redhat.com>
5936
5937         utimecmp: avoid new warning from upcoming gcc-4.5.0
5938         * lib/utimecmp.c (BILLION): Define using #define rather than an
5939         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
5940
5941 2010-01-11  Eric Blake  <ebb9@byu.net>
5942
5943         math: add portability warnings for classification macros
5944         * modules/math (Depends-on): Add warn-on-use.
5945         (Makefile.am): Provide new substitutions.
5946         * m4/math_h.m4 (gl_MATH_H): Require inline.
5947         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
5948         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
5949         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
5950         implement warnings.
5951
5952         unistd: warn on use of environ without module
5953         * modules/unistd (Depends-on): Add warn-on-use.
5954         (Makefile.am): Provide new substitutions.
5955         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
5956         * lib/unistd.in.h (environ): Wrap with a warning helper function.
5957
5958         stdio: warn on suspicious uses
5959         * modules/stdio (Depends-on): Add warn-on-use.
5960         (Makefile.am): Provide new substitutions.
5961         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
5962         fseeko.
5963         * lib/stdio.in.h (gets): Always warn on use.
5964         (fseek, ftell): Adjust when warnings are issued, and honor
5965         _GL_NO_LARGE_FILES as a way to silence the warning.
5966         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
5967         any warning about large file offsets.
5968         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
5969         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
5970         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
5971         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
5972         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
5973         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
5974         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
5975         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
5976
5977         warn-on-use: new module
5978         * modules/warn-on-use: New file.
5979         * build-aux/warn-on-use.h: Likewise.
5980         * m4/warn-on-use.m4: Likewise.
5981         * MODULES.html.sh (Support for building): Mention it.
5982
5983 2010-01-10  Bruno Haible  <bruno@clisp.org>
5984
5985         Tests for module 'unistr/u32-strdup'.
5986         * modules/unistr/u32-strdup-tests: New file.
5987         * tests/unistr/test-u32-strdup.c: New file.
5988
5989         Tests for module 'unistr/u16-strdup'.
5990         * modules/unistr/u16-strdup-tests: New file.
5991         * tests/unistr/test-u16-strdup.c: New file.
5992
5993         Tests for module 'unistr/u8-strdup'.
5994         * modules/unistr/u8-strdup-tests: New file.
5995         * tests/unistr/test-u8-strdup.c: New file.
5996         * tests/unistr/test-strdup.h: New file.
5997
5998         Tests for module 'unistr/u32-strncmp'.
5999         * modules/unistr/u32-strncmp-tests: New file.
6000         * tests/unistr/test-u32-strncmp.c: New file.
6001
6002         Tests for module 'unistr/u16-strncmp'.
6003         * modules/unistr/u16-strncmp-tests: New file.
6004         * tests/unistr/test-u16-strncmp.c: New file.
6005
6006         Tests for module 'unistr/u8-strncmp'.
6007         * modules/unistr/u8-strncmp-tests: New file.
6008         * tests/unistr/test-u8-strncmp.c: New file.
6009         * tests/unistr/test-strncmp.h: New file.
6010
6011         Tests for module 'unistr/u32-strcoll'.
6012         * modules/unistr/u32-strcoll-tests: New file.
6013         * tests/unistr/test-u32-strcoll.c: New file.
6014
6015         Tests for module 'unistr/u16-strcoll'.
6016         * modules/unistr/u16-strcoll-tests: New file.
6017         * tests/unistr/test-u16-strcoll.c: New file.
6018
6019         Tests for module 'unistr/u8-strcoll'.
6020         * modules/unistr/u8-strcoll-tests: New file.
6021         * tests/unistr/test-u8-strcoll.c: New file.
6022
6023         Tests for module 'unistr/u32-strcmp'.
6024         * modules/unistr/u32-strcmp-tests: New file.
6025         * tests/unistr/test-u32-strcmp.c: New file.
6026         * tests/unistr/test-u32-strcmp.h: New file.
6027
6028         Tests for module 'unistr/u16-strcmp'.
6029         * modules/unistr/u16-strcmp-tests: New file.
6030         * tests/unistr/test-u16-strcmp.c: New file.
6031         * tests/unistr/test-u16-strcmp.h: New file.
6032
6033         Tests for module 'unistr/u8-strcmp'.
6034         * modules/unistr/u8-strcmp-tests: New file.
6035         * tests/unistr/test-u8-strcmp.c: New file.
6036         * tests/unistr/test-u8-strcmp.h: New file.
6037         * tests/unistr/test-strcmp.h: New file.
6038
6039         Tests for module 'unistr/u32-strncat'.
6040         * modules/unistr/u32-strncat-tests: New file.
6041         * tests/unistr/test-u32-strncat.c: New file.
6042
6043         Tests for module 'unistr/u16-strncat'.
6044         * modules/unistr/u16-strncat-tests: New file.
6045         * tests/unistr/test-u16-strncat.c: New file.
6046
6047         Tests for module 'unistr/u8-strncat'.
6048         * modules/unistr/u8-strncat-tests: New file.
6049         * tests/unistr/test-u8-strncat.c: New file.
6050         * tests/unistr/test-strncat.h: New file.
6051
6052         Tests for module 'unistr/u32-strcat'.
6053         * modules/unistr/u32-strcat-tests: New file.
6054         * tests/unistr/test-u32-strcat.c: New file.
6055
6056         Tests for module 'unistr/u16-strcat'.
6057         * modules/unistr/u16-strcat-tests: New file.
6058         * tests/unistr/test-u16-strcat.c: New file.
6059
6060         Tests for module 'unistr/u8-strcat'.
6061         * modules/unistr/u8-strcat-tests: New file.
6062         * tests/unistr/test-u8-strcat.c: New file.
6063         * tests/unistr/test-strcat.h: New file.
6064
6065         Tests for module 'unistr/u32-stpncpy'.
6066         * modules/unistr/u32-stpncpy-tests: New file.
6067         * tests/unistr/test-u32-stpncpy.c: New file.
6068
6069         Tests for module 'unistr/u16-stpncpy'.
6070         * modules/unistr/u16-stpncpy-tests: New file.
6071         * tests/unistr/test-u16-stpncpy.c: New file.
6072
6073         Tests for module 'unistr/u8-stpncpy'.
6074         * modules/unistr/u8-stpncpy-tests: New file.
6075         * tests/unistr/test-u8-stpncpy.c: New file.
6076         * tests/unistr/test-stpncpy.h: New file.
6077
6078         Tests for module 'unistr/u32-strncpy'.
6079         * modules/unistr/u32-strncpy-tests: New file.
6080         * tests/unistr/test-u32-strncpy.c: New file.
6081
6082         Tests for module 'unistr/u16-strncpy'.
6083         * modules/unistr/u16-strncpy-tests: New file.
6084         * tests/unistr/test-u16-strncpy.c: New file.
6085
6086         Tests for module 'unistr/u8-strncpy'.
6087         * modules/unistr/u8-strncpy-tests: New file.
6088         * tests/unistr/test-u8-strncpy.c: New file.
6089         * tests/unistr/test-strncpy.h: New file.
6090
6091         Tests for module 'unistr/u32-stpcpy'.
6092         * modules/unistr/u32-stpcpy-tests: New file.
6093         * tests/unistr/test-u32-stpcpy.c: New file.
6094
6095         Tests for module 'unistr/u16-stpcpy'.
6096         * modules/unistr/u16-stpcpy-tests: New file.
6097         * tests/unistr/test-u16-stpcpy.c: New file.
6098
6099         Tests for module 'unistr/u8-stpcpy'.
6100         * modules/unistr/u8-stpcpy-tests: New file.
6101         * tests/unistr/test-u8-stpcpy.c: New file.
6102         * tests/unistr/test-stpcpy.h: New file.
6103
6104         Tests for module 'unistr/u32-strcpy'.
6105         * modules/unistr/u32-strcpy-tests: New file.
6106         * tests/unistr/test-u32-strcpy.c: New file.
6107
6108         Tests for module 'unistr/u16-strcpy'.
6109         * modules/unistr/u16-strcpy-tests: New file.
6110         * tests/unistr/test-u16-strcpy.c: New file.
6111
6112         Tests for module 'unistr/u8-strcpy'.
6113         * modules/unistr/u8-strcpy-tests: New file.
6114         * tests/unistr/test-u8-strcpy.c: New file.
6115         * tests/unistr/test-strcpy.h: New file.
6116
6117         Tests for module 'unistr/u32-strnlen'.
6118         * modules/unistr/u32-strnlen-tests: New file.
6119         * tests/unistr/test-u32-strnlen.c: New file.
6120
6121         Tests for module 'unistr/u16-strnlen'.
6122         * modules/unistr/u16-strnlen-tests: New file.
6123         * tests/unistr/test-u16-strnlen.c: New file.
6124
6125         Tests for module 'unistr/u8-strnlen'.
6126         * modules/unistr/u8-strnlen-tests: New file.
6127         * tests/unistr/test-u8-strnlen.c: New file.
6128         * tests/unistr/test-strnlen.h: New file.
6129
6130         Tests for module 'unistr/u32-strlen'.
6131         * modules/unistr/u32-strlen-tests: New file.
6132         * tests/unistr/test-u32-strlen.c: New file.
6133
6134         Tests for module 'unistr/u16-strlen'.
6135         * modules/unistr/u16-strlen-tests: New file.
6136         * tests/unistr/test-u16-strlen.c: New file.
6137
6138         Tests for module 'unistr/u8-strlen'.
6139         * modules/unistr/u8-strlen-tests: New file.
6140         * tests/unistr/test-u8-strlen.c: New file.
6141
6142         Tests for module 'unistr/u32-prev'.
6143         * modules/unistr/u32-prev-tests: New file.
6144         * tests/unistr/test-u32-prev.c: New file.
6145
6146         Tests for module 'unistr/u16-prev'.
6147         * modules/unistr/u16-prev-tests: New file.
6148         * tests/unistr/test-u16-prev.c: New file.
6149
6150         Tests for module 'unistr/u8-prev'.
6151         * modules/unistr/u8-prev-tests: New file.
6152         * tests/unistr/test-u8-prev.c: New file.
6153
6154         Tests for module 'unistr/u32-next'.
6155         * modules/unistr/u32-next-tests: New file.
6156         * tests/unistr/test-u32-next.c: New file.
6157
6158         Tests for module 'unistr/u16-next'.
6159         * modules/unistr/u16-next-tests: New file.
6160         * tests/unistr/test-u16-next.c: New file.
6161
6162         Tests for module 'unistr/u8-next'.
6163         * modules/unistr/u8-next-tests: New file.
6164         * tests/unistr/test-u8-next.c: New file.
6165
6166         Tests for module 'unistr/u32-strmbtouc'.
6167         * modules/unistr/u32-strmbtouc-tests: New file.
6168         * tests/unistr/test-u32-strmbtouc.c: New file.
6169
6170         Tests for module 'unistr/u16-strmbtouc'.
6171         * modules/unistr/u16-strmbtouc-tests: New file.
6172         * tests/unistr/test-u16-strmbtouc.c: New file.
6173
6174         Tests for module 'unistr/u8-strmbtouc'.
6175         * modules/unistr/u8-strmbtouc-tests: New file.
6176         * tests/unistr/test-u8-strmbtouc.c: New file.
6177
6178         Tests for module 'unistr/u32-strmblen'.
6179         * modules/unistr/u32-strmblen-tests: New file.
6180         * tests/unistr/test-u32-strmblen.c: New file.
6181
6182         Tests for module 'unistr/u16-strmblen'.
6183         * modules/unistr/u16-strmblen-tests: New file.
6184         * tests/unistr/test-u16-strmblen.c: New file.
6185
6186         Tests for module 'unistr/u8-strmblen'.
6187         * modules/unistr/u8-strmblen-tests: New file.
6188         * tests/unistr/test-u8-strmblen.c: New file.
6189
6190         Tests for module 'unistr/u32-cpy-alloc'.
6191         * modules/unistr/u32-cpy-alloc-tests: New file.
6192         * tests/unistr/test-u32-cpy-alloc.c: New file.
6193
6194         Tests for module 'unistr/u16-cpy-alloc'.
6195         * modules/unistr/u16-cpy-alloc-tests: New file.
6196         * tests/unistr/test-u16-cpy-alloc.c: New file.
6197
6198         Tests for module 'unistr/u8-cpy-alloc'.
6199         * modules/unistr/u8-cpy-alloc-tests: New file.
6200         * tests/unistr/test-u8-cpy-alloc.c: New file.
6201         * tests/unistr/test-cpy-alloc.h: New file.
6202
6203         Tests for module 'unistr/u32-mbsnlen'.
6204         * modules/unistr/u32-mbsnlen-tests: New file.
6205         * tests/unistr/test-u32-mbsnlen.c: New file.
6206
6207         Tests for module 'unistr/u16-mbsnlen'.
6208         * modules/unistr/u16-mbsnlen-tests: New file.
6209         * tests/unistr/test-u16-mbsnlen.c: New file.
6210
6211         Tests for module 'unistr/u8-mbsnlen'.
6212         * modules/unistr/u8-mbsnlen-tests: New file.
6213         * tests/unistr/test-u8-mbsnlen.c: New file.
6214
6215         Tests for module 'unistr/u32-chr'.
6216         * modules/unistr/u32-chr-tests: New file.
6217         * tests/unistr/test-u32-chr.c: New file.
6218
6219         Tests for module 'unistr/u16-chr'.
6220         * modules/unistr/u16-chr-tests: New file.
6221         * tests/unistr/test-u16-chr.c: New file.
6222
6223         Tests for module 'unistr/u8-chr'.
6224         * modules/unistr/u8-chr-tests: New file.
6225         * tests/unistr/test-u8-chr.c: New file.
6226         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
6227
6228         Tests for module 'unistr/u32-cmp2'.
6229         * modules/unistr/u32-cmp2-tests: New file.
6230         * tests/unistr/test-u32-cmp2.c: New file.
6231
6232         Tests for module 'unistr/u16-cmp2'.
6233         * modules/unistr/u16-cmp2-tests: New file.
6234         * tests/unistr/test-u16-cmp2.c: New file.
6235
6236         Tests for module 'unistr/u8-cmp2'.
6237         * modules/unistr/u8-cmp2-tests: New file.
6238         * tests/unistr/test-u8-cmp2.c: New file.
6239         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
6240
6241         Tests for module 'unistr/u32-cmp'.
6242         * modules/unistr/u32-cmp-tests: New file.
6243         * tests/unistr/test-u32-cmp.c: New file.
6244
6245         Tests for module 'unistr/u16-cmp'.
6246         * modules/unistr/u16-cmp-tests: New file.
6247         * tests/unistr/test-u16-cmp.c: New file.
6248
6249         Tests for module 'unistr/u8-cmp'.
6250         * modules/unistr/u8-cmp-tests: New file.
6251         * tests/unistr/test-u8-cmp.c: New file.
6252         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
6253
6254         Tests for module 'unistr/u32-set'.
6255         * modules/unistr/u32-set-tests: New file.
6256         * tests/unistr/test-u32-set.c: New file.
6257
6258         Tests for module 'unistr/u16-set'.
6259         * modules/unistr/u16-set-tests: New file.
6260         * tests/unistr/test-u16-set.c: New file.
6261
6262         Tests for module 'unistr/u8-set'.
6263         * modules/unistr/u8-set-tests: New file.
6264         * tests/unistr/test-u8-set.c: New file.
6265         * tests/unistr/test-set.h: New file.
6266
6267         Tests for module 'unistr/u32-move'.
6268         * modules/unistr/u32-move-tests: New file.
6269         * tests/unistr/test-u32-move.c: New file.
6270
6271         Tests for module 'unistr/u16-move'.
6272         * modules/unistr/u16-move-tests: New file.
6273         * tests/unistr/test-u16-move.c: New file.
6274
6275         Tests for module 'unistr/u8-move'.
6276         * modules/unistr/u8-move-tests: New file.
6277         * tests/unistr/test-u8-move.c: New file.
6278         * tests/unistr/test-move.h: New file.
6279
6280         Tests for module 'unistr/u32-cpy'.
6281         * modules/unistr/u32-cpy-tests: New file.
6282         * tests/unistr/test-u32-cpy.c: New file.
6283
6284         Tests for module 'unistr/u16-cpy'.
6285         * modules/unistr/u16-cpy-tests: New file.
6286         * tests/unistr/test-u16-cpy.c: New file.
6287
6288         Tests for module 'unistr/u8-cpy'.
6289         * modules/unistr/u8-cpy-tests: New file.
6290         * tests/unistr/test-u8-cpy.c: New file.
6291         * tests/unistr/test-cpy.h: New file.
6292
6293 2010-01-09  Bruno Haible  <bruno@clisp.org>
6294
6295         Tests for module 'unistr/u32-uctomb'.
6296         * modules/unistr/u32-uctomb-tests: New file.
6297         * tests/unistr/test-u32-uctomb.c: New file.
6298
6299         Tests for module 'unistr/u16-uctomb'.
6300         * modules/unistr/u16-uctomb-tests: New file.
6301         * tests/unistr/test-u16-uctomb.c: New file.
6302
6303         Tests for module 'unistr/u8-uctomb'.
6304         * modules/unistr/u8-uctomb-tests: New file.
6305         * tests/unistr/test-u8-uctomb.c: New file.
6306
6307         Tests for module 'unistr/u32-mbtoucr'.
6308         * modules/unistr/u32-mbtoucr-tests: New file.
6309         * tests/unistr/test-u32-mbtoucr.c: New file.
6310
6311         Tests for module 'unistr/u16-mbtoucr'.
6312         * modules/unistr/u16-mbtoucr-tests: New file.
6313         * tests/unistr/test-u16-mbtoucr.c: New file.
6314
6315         Tests for module 'unistr/u8-mbtoucr'.
6316         * modules/unistr/u8-mbtoucr-tests: New file.
6317         * tests/unistr/test-u8-mbtoucr.c: New file.
6318
6319         Tests for module 'unistr/u32-mbtouc'.
6320         * modules/unistr/u32-mbtouc-tests: New file.
6321         * tests/unistr/test-u32-mbtouc.c: New file.
6322
6323         Tests for module 'unistr/u16-mbtouc'.
6324         * modules/unistr/u16-mbtouc-tests: New file.
6325         * tests/unistr/test-u16-mbtouc.c: New file.
6326
6327         Tests for module 'unistr/u8-mbtouc'.
6328         * modules/unistr/u8-mbtouc-tests: New file.
6329         * tests/unistr/test-u8-mbtouc.c: New file.
6330
6331         Tests for module 'unistr/u32-mbtouc-unsafe'.
6332         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
6333         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
6334         * tests/unistr/test-u32-mbtouc.h: New file.
6335
6336         Tests for module 'unistr/u16-mbtouc-unsafe'.
6337         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
6338         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
6339         * tests/unistr/test-u16-mbtouc.h: New file.
6340
6341         Tests for module 'unistr/u8-mbtouc-unsafe'.
6342         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
6343         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
6344         * tests/unistr/test-u8-mbtouc.h: New file.
6345
6346         Tests for module 'unistr/u32-mblen'.
6347         * modules/unistr/u32-mblen-tests: New file.
6348         * tests/unistr/test-u32-mblen.c: New file.
6349
6350         Tests for module 'unistr/u16-mblen'.
6351         * modules/unistr/u16-mblen-tests: New file.
6352         * tests/unistr/test-u16-mblen.c: New file.
6353
6354         Tests for module 'unistr/u8-mblen'.
6355         * modules/unistr/u8-mblen-tests: New file.
6356         * tests/unistr/test-u8-mblen.c: New file.
6357
6358         Tests for module 'unistr/u32-to-u16'.
6359         * modules/unistr/u32-to-u16-tests: New file.
6360         * tests/unistr/test-u32-to-u16.c: New file.
6361
6362         Tests for module 'unistr/u32-to-u8'.
6363         * modules/unistr/u32-to-u8-tests: New file.
6364         * tests/unistr/test-u32-to-u8.c: New file.
6365
6366         Tests for module 'unistr/u16-to-u32'.
6367         * modules/unistr/u16-to-u32-tests: New file.
6368         * tests/unistr/test-u16-to-u32.c: New file.
6369
6370         Tests for module 'unistr/u16-to-u8'.
6371         * modules/unistr/u16-to-u8-tests: New file.
6372         * tests/unistr/test-u16-to-u8.c: New file.
6373
6374         Tests for module 'unistr/u8-to-u32'.
6375         * modules/unistr/u8-to-u32-tests: New file.
6376         * tests/unistr/test-u8-to-u32.c: New file.
6377
6378         Tests for module 'unistr/u8-to-u16'.
6379         * modules/unistr/u8-to-u16-tests: New file.
6380         * tests/unistr/test-u8-to-u16.c: New file.
6381
6382         Tests for module 'unistr/u32-check'.
6383         * modules/unistr/u32-check-tests: New file.
6384         * tests/unistr/test-u32-check.c: New file.
6385
6386         Tests for module 'unistr/u16-check'.
6387         * modules/unistr/u16-check-tests: New file.
6388         * tests/unistr/test-u16-check.c: New file.
6389
6390         Tests for module 'unistr/u8-check'.
6391         * modules/unistr/u8-check-tests: New file.
6392         * tests/unistr/test-u8-check.c: New file.
6393
6394         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
6395         (category_equals): New function.
6396         (main): Add more tests.
6397         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
6398
6399         * tests/unictype/test-bidi_byname.c (main): Add more tests.
6400
6401 2010-01-10  Bruno Haible  <bruno@clisp.org>
6402
6403         unistr/u*-strcoll: Try harder to distinguish different strings.
6404         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
6405         compare s1 and s2 to see if they are different.
6406
6407 2010-01-10  Bruno Haible  <bruno@clisp.org>
6408
6409         unistr/u*-stpncpy: Fix the return value.
6410         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
6411         description of the return value consistent with stpncpy in glibc.
6412         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
6413         written non-NUL unit.
6414
6415 2010-01-10  Bruno Haible  <bruno@clisp.org>
6416
6417         unistr/u*-next: Add missing dependencies.
6418         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
6419         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
6420         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
6421
6422 2010-01-10  Bruno Haible  <bruno@clisp.org>
6423
6424         unistr/u8-mbsnlen: Fix return value for incomplete character.
6425         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
6426         u8_mblen.
6427         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
6428         Remove unistr/u8-mblen.
6429         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
6430         u16_mblen.
6431         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
6432         Remove unistr/u16-mblen.
6433
6434 2010-01-10  Bruno Haible  <bruno@clisp.org>
6435
6436         wchar: Fix compilation error when <wchar.h> is used from coreutils.
6437         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
6438         Reported by Brian Gough <bjg@gnu.org> and
6439         Chris Clayton <chris2553@googlemail.com> via
6440         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
6441
6442 2010-01-09  Bruno Haible  <bruno@clisp.org>
6443
6444         unistr/u16-to-u32: Reject invalid input.
6445         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
6446         u16_mbtouc.
6447         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
6448         Remove unistr/u16-mbtouc.
6449
6450         unistr/u16-to-u8: Reject invalid input.
6451         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
6452         u16_mbtouc.
6453         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
6454         Remove unistr/u16-mbtouc.
6455
6456         unistr/u8-to-u32: Reject invalid input.
6457         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
6458         u8_mbtouc.
6459         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
6460         Remove unistr/u8-mbtouc.
6461
6462         unistr/u8-to-u16: Reject invalid input.
6463         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
6464         u8_mbtouc.
6465         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
6466         Remove unistr/u8-mbtouc.
6467
6468 2010-01-09  Bruno Haible  <bruno@clisp.org>
6469
6470         Tests for module 'getlogin'.
6471         * modules/getlogin-tests: New file.
6472         * tests/test-getlogin.c: New file.
6473
6474         New module 'getlogin'.
6475         * lib/unistd.in.h (getlogin): New declaration.
6476         * lib/getlogin.c: New file.
6477         * m4/getlogin.m4: New file.
6478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
6479         HAVE_GETLOGIN.
6480         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
6481         HAVE_GETLOGIN.
6482         * modules/getlogin: New file.
6483         * doc/posix-functions/getlogin.texi: Mention the new module.
6484         Reported by John W. Eaton <jwe@gnu.org>.
6485
6486 2010-01-09  Bruno Haible  <bruno@clisp.org>
6487
6488         getlogin_r: Support for native Windows.
6489         * lib/getlogin_r.c: Include <windows.h>
6490         (getlogin_r): Implement for native Windows.
6491         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
6492         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
6493         via John W. Eaton <jwe@gnu.org>.
6494
6495 2010-01-09  Bruno Haible  <bruno@clisp.org>
6496
6497         getlogin_r: Small fixes.
6498         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
6499         succeeds.
6500         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
6501         before testing whether getlogin_r is declared. No need to set
6502         HAVE_DECL_GETLOGIN_R to 1.
6503         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
6504
6505 2010-01-09  Bruno Haible  <bruno@clisp.org>
6506
6507         * lib/unistd.in.h (getlogin_r): Add comment.
6508
6509 2010-01-09  Bruno Haible  <bruno@clisp.org>
6510
6511         Tests for module 'getlogin_r'.
6512         * modules/getlogin_r-tests: New file.
6513         * tests/test-getlogin_r.c: New file.
6514
6515 2010-01-09  Jim Meyering  <meyering@redhat.com>
6516
6517         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
6518         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
6519         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
6520
6521 2010-01-08  Simon Josefsson  <simon@josefsson.org>
6522
6523         * lib/dup2.c (rpl_dup2): Improve comment.
6524
6525 2010-01-08  Eric Blake  <ebb9@byu.net>
6526
6527         maint.mk: allow packages to add makefile @@ exceptions
6528         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
6529         (sc_makefile_check): Rename...
6530         (sc_makefile_at_at_check): ...to this, and use hook.
6531
6532         dup2: work around mingw bug
6533         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
6534         Reported by Simon Josefsson.
6535
6536 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
6537
6538         glob: Fix C++ compilation.
6539         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
6540         C++.
6541
6542 2010-01-07  Bruno Haible  <bruno@clisp.org>
6543
6544         Fix indentation of wctype.in.h, broken since 2007-01-06.
6545         * lib/wctype.in.h: Fix indentation of preprocessor directives.
6546
6547 2010-01-07  Bruno Haible  <bruno@clisp.org>
6548
6549         mbslen: Avoid collision with system function.
6550         * lib/string.in.h [MirBSD]: Include <wchar.h>.
6551         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
6552         * m4/mbslen.m4: New file.
6553         * modules/mbslen (Files): Add it.
6554         (configure.ac): Invoke gl_MBSLEN.
6555         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
6556         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
6557         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
6558         via Ian Beckwith <ianb@erislabs.net>.
6559
6560 2010-01-07  Bruno Haible  <bruno@clisp.org>
6561
6562         dirent: Document the last fix.
6563         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
6564
6565 2010-01-07  Bruno Haible  <bruno@clisp.org>
6566
6567         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
6568         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
6569         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
6570         va_list are defined.
6571         * doc/posix-headers/stdio.texi: Document the bug of missing types.
6572         Reported by Eric Blake.
6573
6574 2010-01-07  Bruno Haible  <bruno@clisp.org>
6575
6576         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
6577         * modules/xlist (Depends-on): Add 'list',
6578         * modules/xoset (Depends-on): Add 'oset'.
6579         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6580
6581 2010-01-07  Bruno Haible  <bruno@clisp.org>
6582
6583         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
6584         * doc/posix-functions/strncasecmp.texi: Likewise.
6585
6586 2010-01-07  Bruno Haible  <bruno@clisp.org>
6587
6588         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
6589
6590 2010-01-07  John W. Eaton  <jwe@octave.org>
6591
6592         wctype: allow C++ use
6593         * lib/wctype.in.h: Add extern "C" block for C++.
6594
6595 2010-01-06  Eric Blake  <ebb9@byu.net>
6596
6597         maint.mk: detect incorrect GFDL usage
6598         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
6599
6600 2010-01-06  Jim Meyering  <meyering@redhat.com>
6601         and Eric Blake  <ebb9@byu.net>
6602
6603         maint.mk: ignore multi-line copyright in NEWS
6604         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
6605
6606 2010-01-06  Eric Blake  <ebb9@byu.net>
6607
6608         select: add missing dependency
6609         * modules/select-tests (Depends-on): Move sockets dependency...
6610         * modules/select (Depends-on): ...here.
6611         Reported by Ian Beckwith.
6612
6613         doc: regenerate INSTALL
6614         * doc/INSTALL: Reflect recent autoconf update.
6615         * doc/INSTALL.ISO: Likewise.
6616         * doc/INSTALL.UTF-8: Likewise.
6617
6618         pread: fix compilation on glibc
6619         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
6620         Reported by Ralf Wildenhues.
6621
6622         dirent: fix test failure
6623         * lib/dirent.in.h (includes): Guarantee ino_t.
6624         Reported by Ralf Wildenhues.
6625
6626 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
6627
6628         linkat, renameat: avoid bad free
6629         * lib/at-func2.c (at_func2): Fix typo.
6630         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
6631
6632 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6633
6634         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
6635         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
6636         to avoid failure of symlink test later.
6637
6638 2010-01-06  Eric Blake  <ebb9@byu.net>
6639
6640         stdio, unistd: guarantee ssize_t
6641         * lib/unistd.in.h (includes): Ensure that types required by POSIX
6642         2008 are exposed when needed.
6643         * lib/stdio.in.h (includes): Likewise.
6644         Reported by Ralf Wildenhues.
6645
6646 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
6647
6648         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
6649         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
6650         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
6651
6652 2010-01-06  Jim Meyering  <meyering@redhat.com>
6653
6654         readtokens: this module *does* require xalloc.h
6655         It uses only functions that were omitted by the old syntax-check rule.
6656         * lib/readtokens.c: Include "xalloc.h" once again.
6657         * modules/readtokens (Depends-on): Add xalloc.
6658         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
6659
6660 2010-01-05  Eric Blake  <ebb9@byu.net>
6661
6662         maint: support 'make announcement' from a VPATH build
6663         * top/maint.mk (announcement): Look for correct NEWS file.
6664
6665 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
6666
6667         utimens (fdutimens): ignore a negative FD, per contract
6668         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
6669         when we have a valid file descriptor.  Otherwise, using a brand
6670         new glibc (with just-patched futimens that now fails with EBADF)
6671         would cause this function to fail with ENOSYS.
6672         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
6673         See also http://bugzilla.redhat.com/552320.
6674
6675 2010-01-05  Eric Blake  <ebb9@byu.net>
6676
6677         strcase: document what it provides
6678         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
6679         gnulib module.
6680         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
6681         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
6682
6683 2010-01-05  Jim Meyering  <meyering@redhat.com>
6684
6685         maint: remove useless inclusions of "xalloc.h"
6686         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
6687         * lib/readtokens.c: Likewise.
6688         * lib/same.c: Likewise.
6689         * modules/getloadavg (Depends-on): Remove xalloc.
6690         * modules/readtokens: Likewise.
6691         * modules/same: Likewise.
6692
6693         maint.mk: include 4 more function names in alloca.h-checking regexp
6694         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
6695         regexp.  Before, we would give a false-positive (saying alloca.h
6696         is included unnecessarily) when the only uses involved omitted symbols.
6697
6698         xalloc.h: use consistent formatting
6699         * lib/xalloc.h: Move declarations to start in the first column.
6700
6701 2010-01-05  Eric Blake  <ebb9@byu.net>
6702
6703         mkdir: avoid xalloc
6704         * lib/mkdir.c (includes): Drop unused header.
6705         Reported by John W. Eaton.
6706
6707 2010-01-04  Jim Meyering  <meyering@redhat.com>
6708
6709         nl_langinfo: avoid configure-time syntax error
6710         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
6711         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
6712         the empty string.  Don't let that provoke a shell syntax error.
6713
6714         regcomp, regexec, fnmatch: avoid array bounds read error
6715         * lib/regcomp.c (build_equiv_class): From glibc:
6716         Use only the low 24 bits of a findidx return value as an index
6717         into the weights array.  Patch by Ulrich Drepper:
6718         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
6719         * lib/regexec.c (check_node_accept_bytes): Likewise.
6720         * lib/fnmatch_loop.c (FCT): Likewise.
6721
6722         regcomp: skip collseq lookup when there are no rules
6723         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
6724         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
6725
6726         regcomp: recognize ill-formed { } expressions
6727         * lib/regcomp.c (parse_dup_op): From glibc:
6728         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
6729
6730         regcomp: fix typo in comment
6731         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
6732         s/satisfy/satisfies/.
6733
6734         regcomp: sync from glibc: remove dead store
6735         * lib/regcomp.c (duplicate_node_closure): Remove useless
6736         search_duplicated_node call and dead store.
6737
6738         regcomp: sync from glibc; always use nl_langinfo
6739         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
6740         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
6741         * modules/regex (Depends-on): Add nl_langinfo.
6742
6743 2010-01-04  Eric Blake  <ebb9@byu.net>
6744
6745         fdopendir: fix configure test
6746         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
6747
6748 2010-01-01  Bruno Haible  <bruno@clisp.org>
6749
6750         wchar: Remove unused configure check.
6751         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
6752
6753 2010-01-01  Eric Blake  <ebb9@byu.net>
6754
6755         headers: make check of system header explicit
6756         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
6757         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
6758         ourselves.
6759         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6760         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6761         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
6762         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
6763         internals.
6764         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
6765         missing.
6766         Suggested by Bruno Haible.
6767
6768 2010-01-01  Jim Meyering  <meyering@redhat.com>
6769
6770         ChangeLog: tweak to eliminate unnecessary copyright line
6771         * ChangeLog: Remove a copyright line that was mistakenly updated
6772         by today's update-copyright run.  Reported by Eric Blake.
6773
6774         test-update-copyright: don't let envvar setting cause test failure
6775         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
6776
6777 2010-01-01  Bruno Haible  <bruno@clisp.org>
6778
6779         localename: Avoid gcc warning.
6780         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
6781         function if it is not used.
6782
6783 2010-01-01  Jim Meyering  <meyering@redhat.com>
6784
6785         update nearly all FSF copyright year lists to include 2010
6786         Use the same procedure as for 2009, outlined in
6787         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
6788
6789         version-etc: set COPYRIGHT_YEAR to 2010
6790         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
6791
6792 2009-12-31  Eric Blake  <ebb9@byu.net>
6793
6794         doc: correct availability of cygwin 1.5.x getopt
6795         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
6796         variables.
6797         * doc/posix-functions/opterr.texi (opterr): Likewise.
6798         * doc/posix-functions/optind.texi (optind): Likewise.
6799         * doc/posix-functions/optopt.texi (optopt): Likewise.
6800         * doc/posix-functions/tzname.texi (tzname): Likewise.
6801
6802         openat: update maintainer
6803         * modules/openat (Maintainer): Add myself.
6804
6805         utimens: avoid shadowing warning
6806         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
6807         buffers into one, to avoid shadowing, as well as avoiding a
6808         redundant stat.
6809         Reported by Jim Meyering.
6810
6811         test-dup2: avoid compiler warning
6812         * tests/test-dup2.c (is_inheritable): Only define if used.
6813
6814 2010-01-01  Bruno Haible  <bruno@clisp.org>
6815
6816         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
6817         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
6818         defined, use wctomb instead of wcrtomb.
6819
6820 2010-01-01  Bruno Haible  <bruno@clisp.org>
6821
6822         iconv: Reject native Solaris iconv.
6823         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
6824         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
6825
6826 2009-12-31  Bruno Haible  <bruno@clisp.org>
6827
6828         * tests/test-signal.c (main): Remove test of 'SIG'.
6829
6830 2009-12-31  Bruno Haible  <bruno@clisp.org>
6831
6832         spawn: Fix incomplete fix.
6833         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
6834         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
6835         warnings for GNULIB_POSIXCHECK again.
6836         Reported by Eric Blake.
6837
6838 2009-12-31  Bruno Haible  <bruno@clisp.org>
6839
6840         Avoid namespace pollution on glibc systems.
6841         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
6842         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
6843         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
6844         glibc systems.
6845
6846 2009-12-31  Bruno Haible  <bruno@clisp.org>
6847
6848         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
6849         (gl_REPLACE_WCHAR_H): Turn into a no-op.
6850         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
6851         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
6852         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
6853         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
6854         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
6855
6856 2009-12-31  Bruno Haible  <bruno@clisp.org>
6857
6858         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
6859         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
6860         afterwards.
6861
6862 2009-12-31  Bruno Haible  <bruno@clisp.org>
6863
6864         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
6865         SYS_UTSNAME_H.
6866
6867 2009-12-31  Bruno Haible  <bruno@clisp.org>
6868
6869         spawn: Fix misapplied patch.
6870         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
6871         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
6872         warnings for GNULIB_POSIXCHECK.
6873
6874 2009-12-31  Bruno Haible  <bruno@clisp.org>
6875
6876         times: Update after sys_times changed.
6877         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
6878         * modules/times (Files): Add it.
6879         (configure.ac): Invoke gl_FUNC_TIMES.
6880
6881 2009-12-31  Bruno Haible  <bruno@clisp.org>
6882
6883         Use AC_C_INLINE where necessary.
6884         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
6885         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
6886         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
6887         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
6888         * m4/mbfile.m4 (gl_MBFILE): Likewise.
6889         * m4/mbiter.m4 (gl_MBITER): Likewise.
6890         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6891         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6892         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
6893         * modules/u64 (configure.ac): Likewise.
6894
6895 2009-12-31  Bruno Haible  <bruno@clisp.org>
6896
6897         Use AC_C_INLINE instead of module 'inline' where possible.
6898         * modules/inline (Description): Clarify purpose.
6899         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
6900         * modules/count-one-bits (Depends-on): Remove inline.
6901         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
6902         * modules/openat (Depends-on): Remove inline.
6903         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
6904         instead of depending on module 'inline'.
6905         * modules/filevercmp (Depends-on, configure.ac): Likewise.
6906         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
6907         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
6908         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
6909         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
6910         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
6911         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
6912         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
6913         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
6914         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
6915         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
6916         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
6917         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
6918         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
6919         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
6920         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
6921         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
6922         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
6923         Likewise.
6924         * modules/unictype/property-ascii-hex-digit (Depends-on,
6925         configure.ac): Likewise.
6926         * modules/unictype/property-bidi-arabic-digit (Depends-on,
6927         configure.ac): Likewise.
6928         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
6929         configure.ac): Likewise.
6930         * modules/unictype/property-bidi-block-separator (Depends-on,
6931         configure.ac): Likewise.
6932         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
6933         configure.ac): Likewise.
6934         * modules/unictype/property-bidi-common-separator (Depends-on,
6935         configure.ac): Likewise.
6936         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
6937         Likewise.
6938         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
6939         configure.ac): Likewise.
6940         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
6941         configure.ac): Likewise.
6942         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
6943         configure.ac): Likewise.
6944         * modules/unictype/property-bidi-european-digit (Depends-on,
6945         configure.ac): Likewise.
6946         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
6947         configure.ac): Likewise.
6948         * modules/unictype/property-bidi-left-to-right (Depends-on,
6949         configure.ac): Likewise.
6950         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
6951         configure.ac): Likewise.
6952         * modules/unictype/property-bidi-other-neutral (Depends-on,
6953         configure.ac): Likewise.
6954         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
6955         Likewise.
6956         * modules/unictype/property-bidi-segment-separator (Depends-on,
6957         configure.ac): Likewise.
6958         * modules/unictype/property-bidi-whitespace (Depends-on,
6959         configure.ac): Likewise.
6960         * modules/unictype/property-combining (Depends-on, configure.ac):
6961         Likewise.
6962         * modules/unictype/property-composite (Depends-on, configure.ac):
6963         Likewise.
6964         * modules/unictype/property-currency-symbol (Depends-on,
6965         configure.ac): Likewise.
6966         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
6967         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
6968         Likewise.
6969         * modules/unictype/property-default-ignorable-code-point (Depends-on,
6970         configure.ac): Likewise.
6971         * modules/unictype/property-deprecated (Depends-on, configure.ac):
6972         Likewise.
6973         * modules/unictype/property-diacritic (Depends-on, configure.ac):
6974         Likewise.
6975         * modules/unictype/property-extender (Depends-on, configure.ac):
6976         Likewise.
6977         * modules/unictype/property-format-control (Depends-on, configure.ac):
6978         Likewise.
6979         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
6980         Likewise.
6981         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
6982         Likewise.
6983         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
6984         Likewise.
6985         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
6986         Likewise.
6987         * modules/unictype/property-hyphen (Depends-on, configure.ac):
6988         Likewise.
6989         * modules/unictype/property-id-continue (Depends-on, configure.ac):
6990         Likewise.
6991         * modules/unictype/property-id-start (Depends-on, configure.ac):
6992         Likewise.
6993         * modules/unictype/property-ideographic (Depends-on, configure.ac):
6994         Likewise.
6995         * modules/unictype/property-ids-binary-operator (Depends-on,
6996         configure.ac): Likewise.
6997         * modules/unictype/property-ids-trinary-operator (Depends-on,
6998         configure.ac): Likewise.
6999         * modules/unictype/property-ignorable-control (Depends-on,
7000         configure.ac): Likewise.
7001         * modules/unictype/property-iso-control (Depends-on, configure.ac):
7002         Likewise.
7003         * modules/unictype/property-join-control (Depends-on, configure.ac):
7004         Likewise.
7005         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
7006         Likewise.
7007         * modules/unictype/property-line-separator (Depends-on, configure.ac):
7008         Likewise.
7009         * modules/unictype/property-logical-order-exception (Depends-on,
7010         configure.ac): Likewise.
7011         * modules/unictype/property-lowercase (Depends-on, configure.ac):
7012         Likewise.
7013         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
7014         * modules/unictype/property-non-break (Depends-on, configure.ac):
7015         Likewise.
7016         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
7017         Likewise.
7018         * modules/unictype/property-numeric (Depends-on, configure.ac):
7019         Likewise.
7020         * modules/unictype/property-other-alphabetic (Depends-on,
7021         configure.ac): Likewise.
7022         * modules/unictype/property-other-default-ignorable-code-point
7023         (Depends-on, configure.ac): Likewise.
7024         * modules/unictype/property-other-grapheme-extend (Depends-on,
7025         configure.ac): Likewise.
7026         * modules/unictype/property-other-id-continue (Depends-on,
7027         configure.ac): Likewise.
7028         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
7029         Likewise.
7030         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
7031         Likewise.
7032         * modules/unictype/property-other-math (Depends-on, configure.ac):
7033         Likewise.
7034         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
7035         Likewise.
7036         * modules/unictype/property-paired-punctuation (Depends-on,
7037         configure.ac): Likewise.
7038         * modules/unictype/property-paragraph-separator (Depends-on,
7039         configure.ac): Likewise.
7040         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
7041         Likewise.
7042         * modules/unictype/property-pattern-white-space (Depends-on,
7043         configure.ac): Likewise.
7044         * modules/unictype/property-private-use (Depends-on, configure.ac):
7045         Likewise.
7046         * modules/unictype/property-punctuation (Depends-on, configure.ac):
7047         Likewise.
7048         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
7049         Likewise.
7050         * modules/unictype/property-radical (Depends-on, configure.ac):
7051         Likewise.
7052         * modules/unictype/property-sentence-terminal (Depends-on,
7053         configure.ac): Likewise.
7054         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
7055         Likewise.
7056         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
7057         * modules/unictype/property-terminal-punctuation (Depends-on,
7058         configure.ac): Likewise.
7059         * modules/unictype/property-titlecase (Depends-on, configure.ac):
7060         Likewise.
7061         * modules/unictype/property-unassigned-code-value (Depends-on,
7062         configure.ac): Likewise.
7063         * modules/unictype/property-unified-ideograph (Depends-on,
7064         configure.ac): Likewise.
7065         * modules/unictype/property-uppercase (Depends-on, configure.ac):
7066         Likewise.
7067         * modules/unictype/property-variation-selector (Depends-on,
7068         configure.ac): Likewise.
7069         * modules/unictype/property-white-space (Depends-on, configure.ac):
7070         Likewise.
7071         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
7072         Likewise.
7073         * modules/unictype/property-xid-start (Depends-on, configure.ac):
7074         Likewise.
7075         * modules/unictype/property-zero-width (Depends-on, configure.ac):
7076         Likewise.
7077         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
7078         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
7079         Likewise.
7080
7081 2009-12-31  Bruno Haible  <bruno@clisp.org>
7082
7083         Remove unnecessary AC_C_INLINE invocation.
7084         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
7085         since 2009-08-21.
7086
7087 2009-12-31  Jim Meyering  <meyering@redhat.com>
7088
7089         maint.mk: don't require explicit gpg_key_ID in cfg.mk
7090         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
7091         With this change, we can all remove the gpg_key_ID = ... definition
7092         from our respective cfg.mk files.
7093
7094         maint.mk: create announcement template in ~/, not in /tmp
7095         * top/maint.mk (emit_upload_commands): Adjust.
7096         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
7097         Remove temporary file, .ci-msg.
7098
7099 2009-12-31  Eric Blake  <ebb9@byu.net>
7100
7101         link-warning: always build headers with link warnings
7102         * modules/arpa_inet (Makefile.am): Always build replacement
7103         header.
7104         * modules/ctype (Makefile.am): Likewise.
7105         * modules/dirent (Makefile.am): Likewise.
7106         * modules/inttypes (Makefile.am): Likewise.
7107         * modules/langinfo (Makefile.am): Likewise.
7108         * modules/locale (Makefile.am): Likewise.
7109         * modules/spawn (Makefile.am): Likewise.
7110         * modules/sys_file (Makefile.am): Likewise.
7111         * modules/sys_ioctl (Makefile.am): Likewise.
7112         * modules/sys_select (Makefile.am): Likewise.
7113         * modules/sys_socket (Makefile.am): Likewise.
7114         * modules/sys_times (Makefile.am): Likewise.
7115         * modules/sys_utsname (Makefile.am): Likewise.
7116         * modules/sys_wait (Makefile.am): Likewise.
7117         * modules/wchar (Makefile.am): Likewise.
7118         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
7119         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
7120         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
7121         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
7122         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
7123         Likewise.
7124         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
7125         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7126         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
7127         Likewise.
7128         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
7129         Likewise.
7130         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
7131         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
7132         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
7133         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7134         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7135         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
7136         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
7137         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
7138         (gl_WCHAR_H_DEFAULTS): Likewise.
7139
7140 2009-12-31  Eric Blake  <ebb9@byu.net>
7141
7142         signal, spawn: use link warnings
7143         * lib/signal.in.h (sigset_t): Make unconditional.
7144         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
7145         (sigpending, sigprocmask, sigaction): Add link warnings.
7146         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
7147         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
7148         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
7149         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
7150         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
7151         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
7152         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
7153         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
7154         (posix_spawn_file_actions_destroy)
7155         (posix_spawn_file_actions_addopen)
7156         (posix_spawn_file_actions_addclose)
7157         (posix_spawn_file_actions_adddup2): Likewise.
7158         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
7159         * tests/test-signal.c (main): Enhance test.
7160
7161         spawn: improve wrapper support
7162         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
7163         (gl_SPAWN_H_DEFAULTS): New defaults.
7164         * modules/spawn (Makefile.am): Substitute them.
7165         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
7166         Only declare if missing or broken.
7167
7168         sys_times, sys_utsname: use include_next
7169         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
7170         header.
7171         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
7172         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
7173         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
7174         * modules/sys_times (Depends-on): Add include_next.
7175         (Makefile.am): Substitute additional values.
7176         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
7177         * lib/sys_times.in.h (includes): Include native header, if
7178         available.
7179         * lib/sys_utsname.in.h (includes): Likewise.
7180         * tests/test-sys_times.c (main): Enhance test.
7181
7182         fdutimensat: revert prior patch
7183         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
7184         utimens.h.
7185         Reported by Bruno Haible.
7186
7187 2009-12-30  Eric Blake  <ebb9@byu.net>
7188
7189         sys_wait: drop link-warning dependency
7190         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
7191         link-warning efforts.
7192         * lib/sys_wait.in.h: Likewise.
7193
7194         fdutimensat: remove bogus dependency
7195         * modules/fdutimensat (Depends-on): Drop inline.
7196
7197         unistd: fix typo
7198         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
7199
7200 2009-12-30  Bruno Haible  <bruno@clisp.org>
7201
7202         Fix compilation error with Solaris cc.
7203         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
7204         * lib/unicase/u16-is-invariant.c: Likewise.
7205         * lib/unicase/u32-is-invariant.c: Likewise.
7206         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
7207
7208 2009-12-30  Bruno Haible  <bruno@clisp.org>
7209
7210         Fix test crash.
7211         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
7212         locales.
7213         Reported by Simon Josefsson <simon@josefsson.org>.
7214
7215 2009-12-30  Bruno Haible  <bruno@clisp.org>
7216
7217         Fix compilation error on most platforms.
7218         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
7219         Reported by Simon Josefsson <simon@josefsson.org>
7220         and Nelson H. F. Beebe <beebe@math.utah.edu>.
7221
7222 2009-12-30  Eric Blake  <ebb9@byu.net>
7223
7224         futimens, utimensat: work around ntfs-3g bug
7225         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
7226         a ctime bug is present, and expand workaround to cover ntfs-3g.
7227         * lib/utimens.c (fdutimens, lutimens): Likewise.
7228         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
7229         (validate_timespec): Adjust return value.
7230         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
7231         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7232         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
7233
7234 2009-12-29  Eric Blake  <ebb9@byu.net>
7235
7236         link-warning: make usage consistent
7237         * modules/ctype (Depends-on): Add link-warning.
7238         (Makefile.am): Update rules accordingly.
7239         * modules/langinfo (Depends-on, Makefile.am): Likewise.
7240         * modules/locale (Depends-on, Makefile.am): Likewise.
7241         * modules/sys_file (Makefile.am): Likewise.
7242         * modules/getopt-posix (Makefile.am): Delete unused link warning
7243         efforts.
7244         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
7245         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
7246         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
7247         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
7248
7249         stdio: remove unused variables
7250         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
7251         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
7252         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
7253
7254         tests: test more substitute headers
7255         * modules/ctype-tests: New file.
7256         * modules/dirent-tests: Likewise.
7257         * modules/spawn-tests: Likewise.
7258         * modules/sys_file-tests: Likewise.
7259         * modules/sys_ioctl-tests: Likewise.
7260         * modules/sys_wait-tests: Likewise.
7261         * tests/test-ctype.c: Likewise.
7262         * tests/test-dirent.c: Likewise.
7263         * tests/test-spawn.c: Likewise.
7264         * tests/test-sys_file.c: Likewise.
7265         * tests/test-sys_ioctl.c: Likewise.
7266         * tests/test-sys_wait.c: Likewise.
7267         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
7268         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
7269         whether or not flock is in use.
7270
7271         tests: remove License section from module
7272         * modules/arpa_inet-tests: Remove unneeded section.
7273         * modules/byteswap-tests: Likewise.
7274         * modules/ceilf-tests: Likewise.
7275         * modules/ceill-tests: Likewise.
7276         * modules/crypto/des-tests: Likewise.
7277         * modules/crypto/gc-arcfour-tests: Likewise.
7278         * modules/crypto/gc-arctwo-tests: Likewise.
7279         * modules/crypto/gc-des-tests: Likewise.
7280         * modules/crypto/gc-hmac-md5-tests: Likewise.
7281         * modules/crypto/gc-hmac-sha1-tests: Likewise.
7282         * modules/crypto/gc-md2-tests: Likewise.
7283         * modules/crypto/gc-md4-tests: Likewise.
7284         * modules/crypto/gc-md5-tests: Likewise.
7285         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
7286         * modules/crypto/gc-rijndael-tests: Likewise.
7287         * modules/crypto/gc-sha1-tests: Likewise.
7288         * modules/crypto/gc-tests: Likewise.
7289         * modules/crypto/md2-tests: Likewise.
7290         * modules/crypto/md4-tests: Likewise.
7291         * modules/fcntl-h-tests: Likewise.
7292         * modules/floorf-tests: Likewise.
7293         * modules/floorl-tests: Likewise.
7294         * modules/frexp-nolibm-tests: Likewise.
7295         * modules/frexp-tests: Likewise.
7296         * modules/frexpl-nolibm-tests: Likewise.
7297         * modules/frexpl-tests: Likewise.
7298         * modules/getaddrinfo-tests: Likewise.
7299         * modules/inttypes-tests: Likewise.
7300         * modules/isfinite-tests: Likewise.
7301         * modules/isinf-tests: Likewise.
7302         * modules/ldexpl-tests: Likewise.
7303         * modules/locale-tests: Likewise.
7304         * modules/math-tests: Likewise.
7305         * modules/netdb-tests: Likewise.
7306         * modules/netinet_in-tests: Likewise.
7307         * modules/printf-frexp-tests: Likewise.
7308         * modules/printf-frexpl-tests: Likewise.
7309         * modules/priv-set-tests: Likewise.
7310         * modules/random_r-tests: Likewise.
7311         * modules/round-tests: Likewise.
7312         * modules/roundf-tests: Likewise.
7313         * modules/roundl-tests: Likewise.
7314         * modules/search-tests: Likewise.
7315         * modules/select-tests: Likewise.
7316         * modules/signal-tests: Likewise.
7317         * modules/stdbool-tests: Likewise.
7318         * modules/stddef-tests: Likewise.
7319         * modules/stdint-tests: Likewise.
7320         * modules/stdio-tests: Likewise.
7321         * modules/stdlib-tests: Likewise.
7322         * modules/string-tests: Likewise.
7323         * modules/strings-tests: Likewise.
7324         * modules/sys_select-tests: Likewise.
7325         * modules/sys_socket-tests: Likewise.
7326         * modules/sys_stat-tests: Likewise.
7327         * modules/sys_time-tests: Likewise.
7328         * modules/sys_utsname-tests: Likewise.
7329         * modules/sysexits-tests: Likewise.
7330         * modules/time-tests: Likewise.
7331         * modules/trunc-tests: Likewise.
7332         * modules/truncf-tests: Likewise.
7333         * modules/truncl-tests: Likewise.
7334         * modules/tsearch-tests: Likewise.
7335         * modules/unistd-tests: Likewise.
7336         * modules/wchar-tests: Likewise.
7337         * modules/wctype-tests: Likewise.
7338
7339         tests: fix license on several tests
7340         * tests/test-des.c: Update to GPLv3+.
7341         * tests/test-flock.c: Likewise.
7342         * tests/test-fsync.c: Likewise.
7343         * tests/test-futimens.h: Likewise.
7344         * tests/test-gc-arcfour.c: Likewise.
7345         * tests/test-gc-arctwo.c: Likewise.
7346         * tests/test-gc-des.c: Likewise.
7347         * tests/test-gc-hmac-md5.c: Likewise.
7348         * tests/test-gc-hmac-sha1.c: Likewise.
7349         * tests/test-gc-md2.c: Likewise.
7350         * tests/test-gc-md4.c: Likewise.
7351         * tests/test-gc-md5.c: Likewise.
7352         * tests/test-gc-pbkdf2-sha1.c: Likewise.
7353         * tests/test-gc-rijndael.c: Likewise.
7354         * tests/test-gc-sha1.c: Likewise.
7355         * tests/test-gc.c: Likewise.
7356         * tests/test-getcwd.c: Likewise.
7357         * tests/test-link.c: Likewise.
7358         * tests/test-link.h: Likewise.
7359         * tests/test-lutimens.h: Likewise.
7360         * tests/test-md2.c: Likewise.
7361         * tests/test-md4.c: Likewise.
7362         * tests/test-mkdir.h: Likewise.
7363         * tests/test-rename.c: Likewise.
7364         * tests/test-rename.h: Likewise.
7365         * tests/test-safe-alloc.c: Likewise.
7366         * tests/test-utimens-common.h: Likewise.
7367         * tests/test-utimens.h: Likewise.
7368
7369         maint: sync license texts
7370         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
7371         * doc/gpl-3.0.texi: Revert copyright year update.
7372         * doc/lgpl-3.0.texi: Likewise.
7373
7374 2009-12-29  Jim Meyering  <meyering@redhat.com>
7375
7376         update nearly all FSF copyright year lists to include 2009
7377         The files named by the following are exempted:
7378             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
7379               test -f "$dst" && { echo "$dst"; continue; }
7380               test -d "$dst" || continue
7381               echo "$dst"/$(basename "$src")
7382             done > exempt
7383             git ls-files tests/unictype >> exempt
7384         In the remaining files, convert to all-interval notation if
7385         - there is already at least one year interval like 2000-2003
7386         - the file is maintained by me
7387         - the file is in lib/uni*/, where that style already prevails
7388         Otherwise, use update-copyright's default.
7389
7390 2009-12-29  Simon Josefsson  <simon@josefsson.org>
7391         and Eric Blake  <ebb9@byu.net>
7392
7393         tests: don't require debug system() to pass
7394         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
7395         * tests/test-rmdir.h (test_rmdir_func): Likewise.
7396         * tests/test-unlink.h (test_unlink_func): Likewise.
7397         * tests/test-fstatat.c (main): ...into callers.
7398         * tests/test-lstat.c (main): Likewise.
7399         * tests/test-rmdir.c (main): Likewise.
7400         * tests/test-unlink.c (main): Likewise.
7401         * tests/test-unlinkat.c (main): Likewise.
7402         * tests/test-areadlink-with-size.c (main): Don't require a
7403         debug-only system call to pass, aiding cross-testing to mingw.
7404         * tests/test-areadlink.c (main): Likewise.
7405         * tests/test-areadlinkat-with-size.c (main): Likewise.
7406         * tests/test-areadlinkat.c (main): Likewise.
7407         * tests/test-canonicalize-lgpl.c (main): Likewise.
7408         * tests/test-canonicalize.c (main): Likewise.
7409         * tests/test-chown.c (main): Likewise.
7410         * tests/test-fchownat.c (main): Likewise.
7411         * tests/test-lchown.c (main): Likewise.
7412         * tests/test-fdutimensat.c (main): Likewise.
7413         * tests/test-futimens.c (main): Likewise.
7414         * tests/test-link.c (main): Likewise.
7415         * tests/test-linkat.c (main): Likewise.
7416         * tests/test-mkdir.c (main): Likewise.
7417         * tests/test-mkdirat.c (main): Likewise.
7418         * tests/test-mkfifo.c (main): Likewise.
7419         * tests/test-mkfifoat.c (main): Likewise.
7420         * tests/test-mknod.c (main): Likewise.
7421         * tests/test-readlink.c (main): Likewise.
7422         * tests/test-remove.c (main): Likewise.
7423         * tests/test-rename.c (main): Likewise.
7424         * tests/test-renameat.c (main): Likewise.
7425         * tests/test-symlink.c (main): Likewise.
7426         * tests/test-symlinkat.c (main): Likewise.
7427         * tests/test-utimens.c (main): Likewise.
7428         * tests/test-utimensat.c (main): Likewise.
7429
7430 2009-12-29  Simon Josefsson  <simon@josefsson.org>
7431
7432         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
7433         on $(UNUSED_PARAMETER_H) to avoid build failure.
7434
7435 2009-12-28  Jim Meyering  <meyering@redhat.com>
7436
7437         update-copyright: you may specify a max. line length other than 72
7438         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
7439
7440         maint: use consistent FSF copyright line syntax
7441         * lib/posixtm.c: Add missing comma in FSF copyright line.
7442         * lib/posixtm.h: Likewise.
7443         * lib/getugroups.c: Add missing ", Inc.".
7444
7445         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
7446         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
7447         FSF copyright line.  Remove trailing blanks.
7448
7449 2009-12-28  Eric Blake  <ebb9@byu.net>
7450
7451         test-dup2: reduce dependencies
7452         * modules/cloexec (Configure.ac): Set witness.
7453         * modules/dup2-tests (Depends-on): Drop cloexec.
7454         * tests/test-dup2.c (main): Skip portion of test if cloexec module
7455         not present.
7456         Suggested by Bruno Haible.
7457
7458 2009-12-26  Bruno Haible  <bruno@clisp.org>
7459
7460         Remove an unneeded dependency.
7461         * modules/fseterr (Depends-on): Remove dup2.
7462
7463 2009-12-26  Eric Blake  <ebb9@byu.net>
7464
7465         tests: use macros.h in more places
7466         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
7467         (ASSERT_STREAM): Provide default of stderr.
7468         * tests/test-dirent-safer.c: Include macros.h, using alternate
7469         stream for assertions.
7470         * tests/test-dup-safer.c: Likewise.
7471         * tests/test-freopen-safer.c: Likewise.
7472         * tests/test-getopt.c: Likewise.
7473         * tests/test-openat-safer.c: Likewise.
7474         * tests/test-pipe.c: Likewise.
7475         * tests/test-popen-safer.c: Likewise.
7476         * modules/dirent-safer-tests (Files): Include macros.h.
7477         * modules/unistd-safer-tests (Files): Likewise.
7478         * modules/freopen-safer-tests (Files): Likewise.
7479         * modules/getopt-posix-tests (Files): Likewise.
7480         * modules/openat-safer-tests (Files): Likewise.
7481         * modules/pipe-tests (Files): Likewise.
7482
7483 2009-12-26  Bruno Haible  <bruno@clisp.org>
7484
7485         javacomp: Portability fix.
7486         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
7487         that it also works on Solaris.
7488
7489 2009-12-26  Bruno Haible  <bruno@clisp.org>
7490
7491         localename: Fix storage allocation of gl_locale_name_thread's result.
7492         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
7493         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
7494         all platforms that have 'uselocale'.
7495         (gl_locale_name_thread_unsafe): New function, extracted from
7496         gl_locale_name_thread.
7497         (gl_locale_name_thread): Call struniq on all platforms that have
7498         'uselocale'.
7499         * tests/test-localename.c (test_locale_name_thread): Check that the
7500         resulting strings are permanently allocated.
7501         * modules/localename-tests (Depends-on): Add strdup.
7502
7503 2009-12-26  Bruno Haible  <bruno@clisp.org>
7504
7505         * tests/test-localename.c (categories): Fill in the strings.
7506
7507 2009-12-26  Jim Meyering  <meyering@redhat.com>
7508
7509         isdir: complete the removal of m4/isdir.m4
7510         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
7511
7512         isdir: clean up, since at least grep still uses it
7513         * lib/isdir.c: Include "isdir.h".
7514         (S_ISDIR): Remove now-unneeded definition.
7515         * modules/isdir (Files): Add lib/isdir.h.
7516         * lib/isdir.h: New file, with declaration.
7517         * m4/isdir.m4: Remove file -- unneeded.
7518
7519 2009-12-25  Bruno Haible  <bruno@clisp.org>
7520
7521         selinux-h: Make generated .h files standalone.
7522         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
7523         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
7524         * lib/se-selinux.in.h: Likewise.
7525         * modules/selinux-h (Depends-on): Add unused-parameter.
7526         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
7527         selinux/selinux.h and selinux/context.h.
7528         Suggested by Eric Blake.
7529
7530 2009-12-25  Bruno Haible  <bruno@clisp.org>
7531
7532         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
7533         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
7534         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
7535         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
7536         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
7537
7538 2009-12-24  Bruno Haible  <bruno@clisp.org>
7539
7540         openat: Fix warning.
7541         * lib/openat-proc.c: Include <unistd.h>.
7542
7543 2009-12-24  Bruno Haible  <bruno@clisp.org>
7544
7545         New module 'unused-parameter'.
7546         * build-aux/unused-parameter.h: New file, extracted from earlier
7547         gnulib-common.m4.
7548         * modules/unused-parameter: New file.
7549         * lib/unistr.h: Include unused-parameter.h.
7550         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
7551         _GL_UNUSED.
7552         * modules/unistr/base (Depends-on): Add unused-parameter.
7553
7554 2009-12-24  Bruno Haible  <bruno@clisp.org>
7555
7556         Add missing dependencies to 'extensions' module.
7557         * m4/extensions.m4: Add comment.
7558         * modules/accept4 (Depends-on): Add extensions.
7559         * modules/dup3 (Depends-on): Likewise.
7560         * modules/fcntl (Depends-on): Likewise.
7561         * modules/futimens (Depends-on): Likewise.
7562         * modules/mknod (Depends-on): Likewise.
7563         * modules/pipe2 (Depends-on): Likewise.
7564         * modules/stat-time (Depends-on): Likewise.
7565         * modules/strcasestr-simple (Depends-on): Likewise.
7566         * modules/strsignal (Depends-on): Likewise.
7567         * modules/utimensat (Depends-on): Likewise.
7568         * modules/localcharset (Depends-on): Likewise. Needed because of
7569         gl_FCNTL_O_FLAGS.
7570         * modules/wcrtomb (Depends-on): Likewise. Needed because of
7571         AC_TYPE_MBSTATE_T.
7572         * modules/wcsnrtombs (Depends-on): Likewise.
7573         * modules/wcsrtombs (Depends-on): Likewise.
7574
7575 2009-12-24  Bruno Haible  <bruno@clisp.org>
7576
7577         binary-io: Avoid gcc warning due to SET_BINARY.
7578         * lib/binary-io.h (SET_BINARY): Cast the result to void.
7579         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
7580
7581 2009-12-24  Bruno Haible  <bruno@clisp.org>
7582
7583         Avoid future namespace pollution on glibc systems.
7584         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
7585         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
7586         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
7587         glibc systems.
7588
7589 2009-12-24  Bruno Haible  <bruno@clisp.org>
7590
7591         Refactor common macros used in tests.
7592         * tests/macros.h: New file.
7593         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
7594         and/or <stdlib.h>, if appropriate.
7595         (ASSERT, SIZEOF): Remove macros.
7596         * tests/test-areadlink-with-size.c: Likewise.
7597         * tests/test-areadlinkat.c: Likewise.
7598         * tests/test-areadlinkat-with-size.c: Likewise.
7599         * tests/test-argmatch.c: Likewise.
7600         * tests/test-argv-iter.c: Likewise.
7601         * tests/test-array-mergesort.c: Likewise.
7602         * tests/test-array_list.c: Likewise.
7603         * tests/test-array_oset.c: Likewise.
7604         * tests/test-avltree_list.c: Likewise.
7605         * tests/test-avltree_oset.c: Likewise.
7606         * tests/test-avltreehash_list.c: Likewise.
7607         * tests/test-base64.c: Likewise.
7608         * tests/test-binary-io.c: Likewise.
7609         * tests/test-bitrotate.c: Likewise.
7610         * tests/test-btowc.c: Likewise.
7611         * tests/test-byteswap.c: Likewise.
7612         * tests/test-c-ctype.c: Likewise.
7613         * tests/test-c-stack.c: Likewise.
7614         * tests/test-c-strcasecmp.c: Likewise.
7615         * tests/test-c-strcasestr.c: Likewise.
7616         * tests/test-c-strncasecmp.c: Likewise.
7617         * tests/test-c-strstr.c: Likewise.
7618         * tests/test-canonicalize-lgpl.c: Likewise.
7619         * tests/test-canonicalize.c: Likewise.
7620         * tests/test-carray_list.c: Likewise.
7621         * tests/test-ceilf1.c: Likewise.
7622         * tests/test-ceilf2.c: Likewise.
7623         * tests/test-ceill.c: Likewise.
7624         * tests/test-chown.c: Likewise.
7625         * tests/test-cloexec.c: Likewise.
7626         * tests/test-copy-acl.c: Likewise.
7627         * tests/test-copy-file.c: Likewise.
7628         * tests/test-count-one-bits.c: Likewise.
7629         * tests/test-dprintf-posix.c: Likewise.
7630         * tests/test-dup2.c: Likewise.
7631         * tests/test-dup3.c: Likewise.
7632         * tests/test-duplocale.c: Likewise.
7633         * tests/test-fbufmode.c: Likewise.
7634         * tests/test-fchdir.c: Likewise.
7635         * tests/test-fchownat.c: Likewise.
7636         * tests/test-fcntl-safer.c: Likewise.
7637         * tests/test-fcntl.c: Likewise.
7638         * tests/test-fdopendir.c: Likewise.
7639         * tests/test-fdutimensat.c: Likewise.
7640         * tests/test-fflush2.c: Likewise.
7641         * tests/test-file-has-acl.c: Likewise.
7642         * tests/test-filevercmp.c: Likewise.
7643         * tests/test-flock.c: Likewise.
7644         * tests/test-floorf1.c: Likewise.
7645         * tests/test-floorf2.c: Likewise.
7646         * tests/test-floorl.c: Likewise.
7647         * tests/test-fnmatch.c: Likewise.
7648         * tests/test-fopen.h: Likewise.
7649         * tests/test-fpending.c: Likewise.
7650         * tests/test-fprintf-posix.c: Likewise.
7651         * tests/test-fpurge.c: Likewise.
7652         * tests/test-freadable.c: Likewise.
7653         * tests/test-freadahead.c: Likewise.
7654         * tests/test-freading.c: Likewise.
7655         * tests/test-freadptr.c: Likewise.
7656         * tests/test-freadptr2.c: Likewise.
7657         * tests/test-freadseek.c: Likewise.
7658         * tests/test-freopen.c: Likewise.
7659         * tests/test-frexp.c: Likewise.
7660         * tests/test-frexpl.c: Likewise.
7661         * tests/test-fseek.c: Likewise.
7662         * tests/test-fseeko.c: Likewise.
7663         * tests/test-fstatat.c: Likewise.
7664         * tests/test-fstrcmp.c: Likewise.
7665         * tests/test-fsync.c: Likewise.
7666         * tests/test-ftell.c: Likewise.
7667         * tests/test-ftello.c: Likewise.
7668         * tests/test-func.c: Likewise.
7669         * tests/test-futimens.c: Likewise.
7670         * tests/test-fwritable.c: Likewise.
7671         * tests/test-fwriting.c: Likewise.
7672         * tests/test-getcwd.c: Likewise.
7673         * tests/test-getdate.c: Likewise.
7674         * tests/test-getdelim.c: Likewise.
7675         * tests/test-getdtablesize.c: Likewise.
7676         * tests/test-getgroups.c: Likewise.
7677         * tests/test-getline.c: Likewise.
7678         * tests/test-getndelim2.c: Likewise.
7679         * tests/test-glob.c: Likewise.
7680         * tests/test-hash.c: Likewise.
7681         * tests/test-i-ring.c: Likewise.
7682         * tests/test-iconv-utf.c: Likewise.
7683         * tests/test-iconv.c: Likewise.
7684         * tests/test-idpriv-drop.c: Likewise.
7685         * tests/test-idpriv-droptemp.c: Likewise.
7686         * tests/test-inet_ntop.c: Likewise.
7687         * tests/test-inet_pton.c: Likewise.
7688         * tests/test-isblank.c: Likewise.
7689         * tests/test-isfinite.c: Likewise.
7690         * tests/test-isinf.c: Likewise.
7691         * tests/test-isnan.c: Likewise.
7692         * tests/test-isnand.h: Likewise.
7693         * tests/test-isnanf.h: Likewise.
7694         * tests/test-isnanl.h: Likewise.
7695         * tests/test-lchown.c: Likewise.
7696         * tests/test-ldexpl.c: Likewise.
7697         * tests/test-link.c: Likewise.
7698         * tests/test-linkat.c: Likewise.
7699         * tests/test-linked_list.c: Likewise.
7700         * tests/test-linkedhash_list.c: Likewise.
7701         * tests/test-localename.c: Likewise.
7702         * tests/test-lseek.c: Likewise.
7703         * tests/test-lstat.c: Likewise.
7704         * tests/test-mbmemcasecmp.c: Likewise.
7705         * tests/test-mbmemcasecoll.c: Likewise.
7706         * tests/test-mbrtowc.c: Likewise.
7707         * tests/test-mbscasecmp.c: Likewise.
7708         * tests/test-mbscasestr1.c: Likewise.
7709         * tests/test-mbscasestr2.c: Likewise.
7710         * tests/test-mbscasestr3.c: Likewise.
7711         * tests/test-mbscasestr4.c: Likewise.
7712         * tests/test-mbschr.c: Likewise.
7713         * tests/test-mbscspn.c: Likewise.
7714         * tests/test-mbsinit.c: Likewise.
7715         * tests/test-mbsncasecmp.c: Likewise.
7716         * tests/test-mbsnrtowcs.c: Likewise.
7717         * tests/test-mbspbrk.c: Likewise.
7718         * tests/test-mbspcasecmp.c: Likewise.
7719         * tests/test-mbsrchr.c: Likewise.
7720         * tests/test-mbsrtowcs.c: Likewise.
7721         * tests/test-mbsspn.c: Likewise.
7722         * tests/test-mbsstr1.c: Likewise.
7723         * tests/test-mbsstr2.c: Likewise.
7724         * tests/test-mbsstr3.c: Likewise.
7725         * tests/test-memchr.c: Likewise.
7726         * tests/test-memchr2.c: Likewise.
7727         * tests/test-memcmp.c: Likewise.
7728         * tests/test-memmem.c: Likewise.
7729         * tests/test-memrchr.c: Likewise.
7730         * tests/test-mkdir.c: Likewise.
7731         * tests/test-mkdirat.c: Likewise.
7732         * tests/test-mkfifo.c: Likewise.
7733         * tests/test-mkfifoat.c: Likewise.
7734         * tests/test-mknod.c: Likewise.
7735         * tests/test-nanosleep.c: Likewise.
7736         * tests/test-nl_langinfo.c: Likewise.
7737         * tests/test-obstack-printf.c: Likewise.
7738         * tests/test-open.c: Likewise.
7739         * tests/test-openat.c: Likewise.
7740         * tests/test-pipe-filter-gi1.c: Likewise.
7741         * tests/test-pipe-filter-gi2-main.c: Likewise.
7742         * tests/test-pipe-filter-ii1.c: Likewise.
7743         * tests/test-pipe-filter-ii2-main.c: Likewise.
7744         * tests/test-pipe2.c: Likewise.
7745         * tests/test-popen.h: Likewise.
7746         * tests/test-posixtm.c: Likewise.
7747         * tests/test-pread.c: Likewise.
7748         * tests/test-printf-frexp.c: Likewise.
7749         * tests/test-printf-frexpl.c: Likewise.
7750         * tests/test-printf-posix.c: Likewise.
7751         * tests/test-priv-set.c: Likewise.
7752         * tests/test-quotearg.c: Likewise.
7753         * tests/test-random_r.c: Likewise.
7754         * tests/test-rawmemchr.c: Likewise.
7755         * tests/test-rbtree_list.c: Likewise.
7756         * tests/test-rbtree_oset.c: Likewise.
7757         * tests/test-rbtreehash_list.c: Likewise.
7758         * tests/test-readlink.c: Likewise.
7759         * tests/test-remove.c: Likewise.
7760         * tests/test-rename.c: Likewise.
7761         * tests/test-renameat.c: Likewise.
7762         * tests/test-rmdir.c: Likewise.
7763         * tests/test-round1.c: Likewise.
7764         * tests/test-roundf1.c: Likewise.
7765         * tests/test-roundl.c: Likewise.
7766         * tests/test-safe-alloc.c: Likewise.
7767         * tests/test-sameacls.c: Likewise.
7768         * tests/test-set-mode-acl.c: Likewise.
7769         * tests/test-setenv.c: Likewise.
7770         * tests/test-sigaction.c: Likewise.
7771         * tests/test-signbit.c: Likewise.
7772         * tests/test-sleep.c: Likewise.
7773         * tests/test-snprintf-posix.c: Likewise.
7774         * tests/test-snprintf.c: Likewise.
7775         * tests/test-sprintf-posix.c: Likewise.
7776         * tests/test-stat-time.c: Likewise.
7777         * tests/test-stat.c: Likewise.
7778         * tests/test-strcasestr.c: Likewise.
7779         * tests/test-strchrnul.c: Likewise.
7780         * tests/test-strerror.c: Likewise.
7781         * tests/test-striconv.c: Likewise.
7782         * tests/test-striconveh.c: Likewise.
7783         * tests/test-striconveha.c: Likewise.
7784         * tests/test-strsignal.c: Likewise.
7785         * tests/test-strstr.c: Likewise.
7786         * tests/test-strtod.c: Likewise.
7787         * tests/test-strverscmp.c: Likewise.
7788         * tests/test-symlink.c: Likewise.
7789         * tests/test-symlinkat.c: Likewise.
7790         * tests/test-trunc1.c: Likewise.
7791         * tests/test-trunc2.c: Likewise.
7792         * tests/test-truncf1.c: Likewise.
7793         * tests/test-truncf2.c: Likewise.
7794         * tests/test-truncl.c: Likewise.
7795         * tests/test-uname.c: Likewise.
7796         * tests/test-unlink.c: Likewise.
7797         * tests/test-unlinkat.c: Likewise.
7798         * tests/test-unsetenv.c: Likewise.
7799         * tests/test-usleep.c: Likewise.
7800         * tests/test-utimens.c: Likewise.
7801         * tests/test-utimensat.c: Likewise.
7802         * tests/test-vasnprintf-posix.c: Likewise.
7803         * tests/test-vasnprintf-posix2.c: Likewise.
7804         * tests/test-vasnprintf.c: Likewise.
7805         * tests/test-vasprintf-posix.c: Likewise.
7806         * tests/test-vasprintf.c: Likewise.
7807         * tests/test-vdprintf-posix.c: Likewise.
7808         * tests/test-vfprintf-posix.c: Likewise.
7809         * tests/test-vprintf-posix.c: Likewise.
7810         * tests/test-vsnprintf-posix.c: Likewise.
7811         * tests/test-vsnprintf.c: Likewise.
7812         * tests/test-vsprintf-posix.c: Likewise.
7813         * tests/test-wcrtomb.c: Likewise.
7814         * tests/test-wcsnrtombs.c: Likewise.
7815         * tests/test-wcsrtombs.c: Likewise.
7816         * tests/test-wctype.c: Likewise.
7817         * tests/test-wcwidth.c: Likewise.
7818         * tests/test-xfprintf-posix.c: Likewise.
7819         * tests/test-xmemdup0.c: Likewise.
7820         * tests/test-xprintf-posix.c: Likewise.
7821         * tests/test-xvasprintf.c: Likewise.
7822         * tests/unicase/test-locale-language.c: Likewise.
7823         * tests/unicase/test-mapping-part1.h: Likewise.
7824         * tests/unicase/test-predicate-part1.h: Likewise.
7825         * tests/unicase/test-u8-casecmp.c: Likewise.
7826         * tests/unicase/test-u8-casecoll.c: Likewise.
7827         * tests/unicase/test-u8-casefold.c: Likewise.
7828         * tests/unicase/test-u8-is-cased.c: Likewise.
7829         * tests/unicase/test-u8-is-casefolded.c: Likewise.
7830         * tests/unicase/test-u8-is-lowercase.c: Likewise.
7831         * tests/unicase/test-u8-is-titlecase.c: Likewise.
7832         * tests/unicase/test-u8-is-uppercase.c: Likewise.
7833         * tests/unicase/test-u8-tolower.c: Likewise.
7834         * tests/unicase/test-u8-totitle.c: Likewise.
7835         * tests/unicase/test-u8-toupper.c: Likewise.
7836         * tests/unicase/test-u16-casecmp.c: Likewise.
7837         * tests/unicase/test-u16-casecoll.c: Likewise.
7838         * tests/unicase/test-u16-casefold.c: Likewise.
7839         * tests/unicase/test-u16-is-cased.c: Likewise.
7840         * tests/unicase/test-u16-is-casefolded.c: Likewise.
7841         * tests/unicase/test-u16-is-lowercase.c: Likewise.
7842         * tests/unicase/test-u16-is-titlecase.c: Likewise.
7843         * tests/unicase/test-u16-is-uppercase.c: Likewise.
7844         * tests/unicase/test-u16-tolower.c: Likewise.
7845         * tests/unicase/test-u16-totitle.c: Likewise.
7846         * tests/unicase/test-u16-toupper.c: Likewise.
7847         * tests/unicase/test-u32-casecmp.c: Likewise.
7848         * tests/unicase/test-u32-casecoll.c: Likewise.
7849         * tests/unicase/test-u32-casefold.c: Likewise.
7850         * tests/unicase/test-u32-is-cased.c: Likewise.
7851         * tests/unicase/test-u32-is-casefolded.c: Likewise.
7852         * tests/unicase/test-u32-is-lowercase.c: Likewise.
7853         * tests/unicase/test-u32-is-titlecase.c: Likewise.
7854         * tests/unicase/test-u32-is-uppercase.c: Likewise.
7855         * tests/unicase/test-u32-tolower.c: Likewise.
7856         * tests/unicase/test-u32-totitle.c: Likewise.
7857         * tests/unicase/test-u32-toupper.c: Likewise.
7858         * tests/unicase/test-ulc-casecmp.c: Likewise.
7859         * tests/unicase/test-ulc-casecoll.c: Likewise.
7860         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
7861         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
7862         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
7863         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
7864         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
7865         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
7866         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
7867         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
7868         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
7869         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
7870         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
7871         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
7872         * tests/unictype/test-bidi_byname.c: Likewise.
7873         * tests/unictype/test-bidi_name.c: Likewise.
7874         * tests/unictype/test-bidi_of.c: Likewise.
7875         * tests/unictype/test-bidi_test.c: Likewise.
7876         * tests/unictype/test-block_list.c: Likewise.
7877         * tests/unictype/test-block_of.c: Likewise.
7878         * tests/unictype/test-block_test.c: Likewise.
7879         * tests/unictype/test-categ_and.c: Likewise.
7880         * tests/unictype/test-categ_and_not.c: Likewise.
7881         * tests/unictype/test-categ_byname.c: Likewise.
7882         * tests/unictype/test-categ_name.c: Likewise.
7883         * tests/unictype/test-categ_none.c: Likewise.
7884         * tests/unictype/test-categ_of.c: Likewise.
7885         * tests/unictype/test-categ_or.c: Likewise.
7886         * tests/unictype/test-categ_test_withtable.c: Likewise.
7887         * tests/unictype/test-combining.c: Likewise.
7888         * tests/unictype/test-decdigit.c: Likewise.
7889         * tests/unictype/test-digit.c: Likewise.
7890         * tests/unictype/test-mirror.c: Likewise.
7891         * tests/unictype/test-numeric.c: Likewise.
7892         * tests/unictype/test-pr_byname.c: Likewise.
7893         * tests/unictype/test-pr_test.c: Likewise.
7894         * tests/unictype/test-predicate-part1.h: Likewise.
7895         * tests/unictype/test-scripts.c: Likewise.
7896         * tests/unictype/test-sy_c_ident.c: Likewise.
7897         * tests/unictype/test-sy_java_ident.c: Likewise.
7898         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
7899         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
7900         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
7901         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
7902         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
7903         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
7904         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
7905         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
7906         * tests/uninorm/test-canonical-decomposition.c: Likewise.
7907         * tests/uninorm/test-compat-decomposition.c: Likewise.
7908         * tests/uninorm/test-composition.c: Likewise.
7909         * tests/uninorm/test-decomposing-form.c: Likewise.
7910         * tests/uninorm/test-decomposition.c: Likewise.
7911         * tests/uninorm/test-u8-nfc.c: Likewise.
7912         * tests/uninorm/test-u8-nfd.c: Likewise.
7913         * tests/uninorm/test-u8-nfkc.c: Likewise.
7914         * tests/uninorm/test-u8-nfkd.c: Likewise.
7915         * tests/uninorm/test-u8-normcmp.c: Likewise.
7916         * tests/uninorm/test-u8-normcoll.c: Likewise.
7917         * tests/uninorm/test-u16-nfc.c: Likewise.
7918         * tests/uninorm/test-u16-nfd.c: Likewise.
7919         * tests/uninorm/test-u16-nfkc.c: Likewise.
7920         * tests/uninorm/test-u16-nfkd.c: Likewise.
7921         * tests/uninorm/test-u16-normcmp.c: Likewise.
7922         * tests/uninorm/test-u16-normcoll.c: Likewise.
7923         * tests/uninorm/test-u32-nfc.c: Likewise.
7924         * tests/uninorm/test-u32-nfd.c: Likewise.
7925         * tests/uninorm/test-u32-nfkc.c: Likewise.
7926         * tests/uninorm/test-u32-nfkd.c: Likewise.
7927         * tests/uninorm/test-u32-normalize-big.c: Likewise.
7928         * tests/uninorm/test-u32-normcmp.c: Likewise.
7929         * tests/uninorm/test-u32-normcoll.c: Likewise.
7930         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
7931         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
7932         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
7933         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
7934         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
7935         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
7936         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
7937         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
7938         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
7939         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
7940         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
7941         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
7942         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
7943         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
7944         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
7945         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
7946         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
7947         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
7948         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
7949         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
7950         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
7951         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
7952         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
7953         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
7954         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
7955         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
7956         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
7957         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
7958         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
7959         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
7960         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
7961         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
7962         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
7963         * tests/uniwidth/test-u8-strwidth.c: Likewise.
7964         * tests/uniwidth/test-u8-width.c: Likewise.
7965         * tests/uniwidth/test-u16-strwidth.c: Likewise.
7966         * tests/uniwidth/test-u16-width.c: Likewise.
7967         * tests/uniwidth/test-u32-strwidth.c: Likewise.
7968         * tests/uniwidth/test-u32-width.c: Likewise.
7969         * tests/uniwidth/test-uc_width.c: Likewise.
7970         * tests/uniwidth/test-uc_width2.c: Likewise.
7971         * modules/acl-tests (Files): Add tests/macros.h.
7972         * modules/areadlink-tests (Files): Likewise.
7973         * modules/areadlink-with-size-tests (Files): Likewise.
7974         * modules/areadlinkat-tests (Files): Likewise.
7975         * modules/areadlinkat-with-size-tests (Files): Likewise.
7976         * modules/argmatch-tests (Files): Likewise.
7977         * modules/argv-iter-tests (Files): Likewise.
7978         * modules/array-list-tests (Files): Likewise.
7979         * modules/array-mergesort-tests (Files): Likewise.
7980         * modules/array-oset-tests (Files): Likewise.
7981         * modules/avltree-list-tests (Files): Likewise.
7982         * modules/avltree-oset-tests (Files): Likewise.
7983         * modules/avltreehash-list-tests (Files): Likewise.
7984         * modules/base64-tests (Files): Likewise.
7985         * modules/binary-io-tests (Files): Likewise.
7986         * modules/bitrotate-tests (Files): Likewise.
7987         * modules/btowc-tests (Files): Likewise.
7988         * modules/byteswap-tests (Files): Likewise.
7989         * modules/c-ctype-tests (Files): Likewise.
7990         * modules/c-stack-tests (Files): Likewise.
7991         * modules/c-strcase-tests (Files): Likewise.
7992         * modules/c-strcasestr-tests (Files): Likewise.
7993         * modules/c-strstr-tests (Files): Likewise.
7994         * modules/canonicalize-lgpl-tests (Files): Likewise.
7995         * modules/canonicalize-tests (Files): Likewise.
7996         * modules/carray-list-tests (Files): Likewise.
7997         * modules/ceilf-tests (Files): Likewise.
7998         * modules/ceill-tests (Files): Likewise.
7999         * modules/chown-tests (Files): Likewise.
8000         * modules/cloexec-tests (Files): Likewise.
8001         * modules/copy-file-tests (Files): Likewise.
8002         * modules/count-one-bits-tests (Files): Likewise.
8003         * modules/dprintf-posix-tests (Files): Likewise.
8004         * modules/dup2-tests (Files): Likewise.
8005         * modules/dup3-tests (Files): Likewise.
8006         * modules/duplocale-tests (Files): Likewise.
8007         * modules/fbufmode-tests (Files): Likewise.
8008         * modules/fchdir-tests (Files): Likewise.
8009         * modules/fcntl-safer-tests (Files): Likewise.
8010         * modules/fcntl-tests (Files): Likewise.
8011         * modules/fdopendir-tests (Files): Likewise.
8012         * modules/fdutimensat-tests (Files): Likewise.
8013         * modules/fflush-tests (Files): Likewise.
8014         * modules/filevercmp-tests (Files): Likewise.
8015         * modules/flock-tests (Files): Likewise.
8016         * modules/floorf-tests (Files): Likewise.
8017         * modules/floorl-tests (Files): Likewise.
8018         * modules/fnmatch-tests (Files): Likewise.
8019         * modules/fopen-safer-tests (Files): Likewise.
8020         * modules/fopen-tests (Files): Likewise.
8021         * modules/fpending-tests (Files): Likewise.
8022         * modules/fprintf-posix-tests (Files): Likewise.
8023         * modules/fpurge-tests (Files): Likewise.
8024         * modules/freadable-tests (Files): Likewise.
8025         * modules/freadahead-tests (Files): Likewise.
8026         * modules/freading-tests (Files): Likewise.
8027         * modules/freadptr-tests (Files): Likewise.
8028         * modules/freadseek-tests (Files): Likewise.
8029         * modules/freopen-tests (Files): Likewise.
8030         * modules/frexp-nolibm-tests (Files): Likewise.
8031         * modules/frexp-tests (Files): Likewise.
8032         * modules/frexpl-nolibm-tests (Files): Likewise.
8033         * modules/frexpl-tests (Files): Likewise.
8034         * modules/fseek-tests (Files): Likewise.
8035         * modules/fseeko-tests (Files): Likewise.
8036         * modules/fstrcmp-tests (Files): Likewise.
8037         * modules/fsync-tests (Files): Likewise.
8038         * modules/ftell-tests (Files): Likewise.
8039         * modules/ftello-tests (Files): Likewise.
8040         * modules/func-tests (Files): Likewise.
8041         * modules/futimens-tests (Files): Likewise.
8042         * modules/fwritable-tests (Files): Likewise.
8043         * modules/fwriting-tests (Files): Likewise.
8044         * modules/getcwd-tests (Files): Likewise.
8045         * modules/getdate-tests (Files): Likewise.
8046         * modules/getdelim-tests (Files): Likewise.
8047         * modules/getdtablesize-tests (Files): Likewise.
8048         * modules/getgroups-tests (Files): Likewise.
8049         * modules/getline-tests (Files): Likewise.
8050         * modules/getndelim2-tests (Files): Likewise.
8051         * modules/glob-tests (Files): Likewise.
8052         * modules/hash-tests (Files): Likewise.
8053         * modules/i-ring-tests (Files): Likewise.
8054         * modules/iconv-tests (Files): Likewise.
8055         * modules/iconv_open-utf-tests (Files): Likewise.
8056         * modules/idpriv-drop-tests (Files): Likewise.
8057         * modules/idpriv-droptemp-tests (Files): Likewise.
8058         * modules/inet_ntop-tests (Files): Likewise.
8059         * modules/inet_pton-tests (Files): Likewise.
8060         * modules/isblank-tests (Files): Likewise.
8061         * modules/isfinite-tests (Files): Likewise.
8062         * modules/isinf-tests (Files): Likewise.
8063         * modules/isnan-tests (Files): Likewise.
8064         * modules/isnand-nolibm-tests (Files): Likewise.
8065         * modules/isnand-tests (Files): Likewise.
8066         * modules/isnanf-nolibm-tests (Files): Likewise.
8067         * modules/isnanf-tests (Files): Likewise.
8068         * modules/isnanl-nolibm-tests (Files): Likewise.
8069         * modules/isnanl-tests (Files): Likewise.
8070         * modules/lchown-tests (Files): Likewise.
8071         * modules/ldexpl-tests (Files): Likewise.
8072         * modules/link-tests (Files): Likewise.
8073         * modules/linkat-tests (Files): Likewise.
8074         * modules/linked-list-tests (Files): Likewise.
8075         * modules/linkedhash-list-tests (Files): Likewise.
8076         * modules/localename-tests (Files): Likewise.
8077         * modules/lseek-tests (Files): Likewise.
8078         * modules/lstat-tests (Files): Likewise.
8079         * modules/mbmemcasecmp-tests (Files): Likewise.
8080         * modules/mbmemcasecoll-tests (Files): Likewise.
8081         * modules/mbrtowc-tests (Files): Likewise.
8082         * modules/mbscasecmp-tests (Files): Likewise.
8083         * modules/mbscasestr-tests (Files): Likewise.
8084         * modules/mbschr-tests (Files): Likewise.
8085         * modules/mbscspn-tests (Files): Likewise.
8086         * modules/mbsinit-tests (Files): Likewise.
8087         * modules/mbsncasecmp-tests (Files): Likewise.
8088         * modules/mbsnrtowcs-tests (Files): Likewise.
8089         * modules/mbspbrk-tests (Files): Likewise.
8090         * modules/mbspcasecmp-tests (Files): Likewise.
8091         * modules/mbsrchr-tests (Files): Likewise.
8092         * modules/mbsrtowcs-tests (Files): Likewise.
8093         * modules/mbsspn-tests (Files): Likewise.
8094         * modules/mbsstr-tests (Files): Likewise.
8095         * modules/memchr-tests (Files): Likewise.
8096         * modules/memchr2-tests (Files): Likewise.
8097         * modules/memcmp-tests (Files): Likewise.
8098         * modules/memmem-tests (Files): Likewise.
8099         * modules/memrchr-tests (Files): Likewise.
8100         * modules/mkdir-tests (Files): Likewise.
8101         * modules/mkfifo-tests (Files): Likewise.
8102         * modules/mkfifoat-tests (Files): Likewise.
8103         * modules/mknod-tests (Files): Likewise.
8104         * modules/nanosleep-tests (Files): Likewise.
8105         * modules/nl_langinfo-tests (Files): Likewise.
8106         * modules/obstack-printf-tests (Files): Likewise.
8107         * modules/open-tests (Files): Likewise.
8108         * modules/openat-tests (Files): Likewise.
8109         * modules/pipe-filter-gi-tests (Files): Likewise.
8110         * modules/pipe-filter-ii-tests (Files): Likewise.
8111         * modules/pipe2-tests (Files): Likewise.
8112         * modules/popen-safer-tests (Files): Likewise.
8113         * modules/popen-tests (Files): Likewise.
8114         * modules/posixtm-tests (Files): Likewise.
8115         * modules/pread-tests (Files): Likewise.
8116         * modules/printf-frexp-tests (Files): Likewise.
8117         * modules/printf-frexpl-tests (Files): Likewise.
8118         * modules/printf-posix-tests (Files): Likewise.
8119         * modules/priv-set-tests (Files): Likewise.
8120         * modules/quotearg-tests (Files): Likewise.
8121         * modules/random_r-tests (Files): Likewise.
8122         * modules/rawmemchr-tests (Files): Likewise.
8123         * modules/rbtree-list-tests (Files): Likewise.
8124         * modules/rbtree-oset-tests (Files): Likewise.
8125         * modules/rbtreehash-list-tests (Files): Likewise.
8126         * modules/readlink-tests (Files): Likewise.
8127         * modules/remove-tests (Files): Likewise.
8128         * modules/rename-tests (Files): Likewise.
8129         * modules/renameat-tests (Files): Likewise.
8130         * modules/rmdir-tests (Files): Likewise.
8131         * modules/round-tests (Files): Likewise.
8132         * modules/roundf-tests (Files): Likewise.
8133         * modules/roundl-tests (Files): Likewise.
8134         * modules/safe-alloc-tests (Files): Likewise.
8135         * modules/setenv-tests (Files): Likewise.
8136         * modules/sigaction-tests (Files): Likewise.
8137         * modules/signbit-tests (Files): Likewise.
8138         * modules/sleep-tests (Files): Likewise.
8139         * modules/snprintf-posix-tests (Files): Likewise.
8140         * modules/snprintf-tests (Files): Likewise.
8141         * modules/sprintf-posix-tests (Files): Likewise.
8142         * modules/stat-tests (Files): Likewise.
8143         * modules/stat-time-tests (Files): Likewise.
8144         * modules/strcasestr-tests (Files): Likewise.
8145         * modules/strchrnul-tests (Files): Likewise.
8146         * modules/strerror-tests (Files): Likewise.
8147         * modules/striconv-tests (Files): Likewise.
8148         * modules/striconveh-tests (Files): Likewise.
8149         * modules/striconveha-tests (Files): Likewise.
8150         * modules/strsignal-tests (Files): Likewise.
8151         * modules/strstr-tests (Files): Likewise.
8152         * modules/strtod-tests (Files): Likewise.
8153         * modules/strverscmp-tests (Files): Likewise.
8154         * modules/symlink-tests (Files): Likewise.
8155         * modules/symlinkat-tests (Files): Likewise.
8156         * modules/trunc-tests (Files): Likewise.
8157         * modules/truncf-tests (Files): Likewise.
8158         * modules/truncl-tests (Files): Likewise.
8159         * modules/uname-tests (Files): Likewise.
8160         * modules/unicase/cased-tests (Files): Likewise.
8161         * modules/unicase/ignorable-tests (Files): Likewise.
8162         * modules/unicase/locale-language-tests (Files): Likewise.
8163         * modules/unicase/tolower-tests (Files): Likewise.
8164         * modules/unicase/totitle-tests (Files): Likewise.
8165         * modules/unicase/toupper-tests (Files): Likewise.
8166         * modules/unicase/u8-casecmp-tests (Files): Likewise.
8167         * modules/unicase/u8-casecoll-tests (Files): Likewise.
8168         * modules/unicase/u8-casefold-tests (Files): Likewise.
8169         * modules/unicase/u8-is-cased-tests (Files): Likewise.
8170         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
8171         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
8172         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
8173         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
8174         * modules/unicase/u8-tolower-tests (Files): Likewise.
8175         * modules/unicase/u8-totitle-tests (Files): Likewise.
8176         * modules/unicase/u8-toupper-tests (Files): Likewise.
8177         * modules/unicase/u16-casecmp-tests (Files): Likewise.
8178         * modules/unicase/u16-casecoll-tests (Files): Likewise.
8179         * modules/unicase/u16-casefold-tests (Files): Likewise.
8180         * modules/unicase/u16-is-cased-tests (Files): Likewise.
8181         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
8182         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
8183         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
8184         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
8185         * modules/unicase/u16-tolower-tests (Files): Likewise.
8186         * modules/unicase/u16-totitle-tests (Files): Likewise.
8187         * modules/unicase/u16-toupper-tests (Files): Likewise.
8188         * modules/unicase/u32-casecmp-tests (Files): Likewise.
8189         * modules/unicase/u32-casecoll-tests (Files): Likewise.
8190         * modules/unicase/u32-casefold-tests (Files): Likewise.
8191         * modules/unicase/u32-is-cased-tests (Files): Likewise.
8192         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
8193         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
8194         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
8195         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
8196         * modules/unicase/u32-tolower-tests (Files): Likewise.
8197         * modules/unicase/u32-totitle-tests (Files): Likewise.
8198         * modules/unicase/u32-toupper-tests (Files): Likewise.
8199         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
8200         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
8201         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
8202         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
8203         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
8204         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
8205         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
8206         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
8207         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
8208         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
8209         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
8210         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
8211         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
8212         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
8213         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
8214         * modules/unictype/bidicategory-name-tests (Files): Likewise.
8215         * modules/unictype/bidicategory-of-tests (Files): Likewise.
8216         * modules/unictype/bidicategory-test-tests (Files): Likewise.
8217         * modules/unictype/block-list-tests (Files): Likewise.
8218         * modules/unictype/block-of-tests (Files): Likewise.
8219         * modules/unictype/block-test-tests (Files): Likewise.
8220         * modules/unictype/category-C-tests (Files): Likewise.
8221         * modules/unictype/category-Cc-tests (Files): Likewise.
8222         * modules/unictype/category-Cf-tests (Files): Likewise.
8223         * modules/unictype/category-Cn-tests (Files): Likewise.
8224         * modules/unictype/category-Co-tests (Files): Likewise.
8225         * modules/unictype/category-Cs-tests (Files): Likewise.
8226         * modules/unictype/category-L-tests (Files): Likewise.
8227         * modules/unictype/category-Ll-tests (Files): Likewise.
8228         * modules/unictype/category-Lm-tests (Files): Likewise.
8229         * modules/unictype/category-Lo-tests (Files): Likewise.
8230         * modules/unictype/category-Lt-tests (Files): Likewise.
8231         * modules/unictype/category-Lu-tests (Files): Likewise.
8232         * modules/unictype/category-M-tests (Files): Likewise.
8233         * modules/unictype/category-Mc-tests (Files): Likewise.
8234         * modules/unictype/category-Me-tests (Files): Likewise.
8235         * modules/unictype/category-Mn-tests (Files): Likewise.
8236         * modules/unictype/category-N-tests (Files): Likewise.
8237         * modules/unictype/category-Nd-tests (Files): Likewise.
8238         * modules/unictype/category-Nl-tests (Files): Likewise.
8239         * modules/unictype/category-No-tests (Files): Likewise.
8240         * modules/unictype/category-P-tests (Files): Likewise.
8241         * modules/unictype/category-Pc-tests (Files): Likewise.
8242         * modules/unictype/category-Pd-tests (Files): Likewise.
8243         * modules/unictype/category-Pe-tests (Files): Likewise.
8244         * modules/unictype/category-Pf-tests (Files): Likewise.
8245         * modules/unictype/category-Pi-tests (Files): Likewise.
8246         * modules/unictype/category-Po-tests (Files): Likewise.
8247         * modules/unictype/category-Ps-tests (Files): Likewise.
8248         * modules/unictype/category-S-tests (Files): Likewise.
8249         * modules/unictype/category-Sc-tests (Files): Likewise.
8250         * modules/unictype/category-Sk-tests (Files): Likewise.
8251         * modules/unictype/category-Sm-tests (Files): Likewise.
8252         * modules/unictype/category-So-tests (Files): Likewise.
8253         * modules/unictype/category-Z-tests (Files): Likewise.
8254         * modules/unictype/category-Zl-tests (Files): Likewise.
8255         * modules/unictype/category-Zp-tests (Files): Likewise.
8256         * modules/unictype/category-Zs-tests (Files): Likewise.
8257         * modules/unictype/category-and-not-tests (Files): Likewise.
8258         * modules/unictype/category-and-tests (Files): Likewise.
8259         * modules/unictype/category-byname-tests (Files): Likewise.
8260         * modules/unictype/category-name-tests (Files): Likewise.
8261         * modules/unictype/category-none-tests (Files): Likewise.
8262         * modules/unictype/category-of-tests (Files): Likewise.
8263         * modules/unictype/category-or-tests (Files): Likewise.
8264         * modules/unictype/category-test-withtable-tests (Files): Likewise.
8265         * modules/unictype/combining-class-tests (Files): Likewise.
8266         * modules/unictype/ctype-alnum-tests (Files): Likewise.
8267         * modules/unictype/ctype-alpha-tests (Files): Likewise.
8268         * modules/unictype/ctype-blank-tests (Files): Likewise.
8269         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
8270         * modules/unictype/ctype-digit-tests (Files): Likewise.
8271         * modules/unictype/ctype-graph-tests (Files): Likewise.
8272         * modules/unictype/ctype-lower-tests (Files): Likewise.
8273         * modules/unictype/ctype-print-tests (Files): Likewise.
8274         * modules/unictype/ctype-punct-tests (Files): Likewise.
8275         * modules/unictype/ctype-space-tests (Files): Likewise.
8276         * modules/unictype/ctype-upper-tests (Files): Likewise.
8277         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
8278         * modules/unictype/decimal-digit-tests (Files): Likewise.
8279         * modules/unictype/digit-tests (Files): Likewise.
8280         * modules/unictype/mirror-tests (Files): Likewise.
8281         * modules/unictype/numeric-tests (Files): Likewise.
8282         * modules/unictype/property-alphabetic-tests (Files): Likewise.
8283         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
8284         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
8285         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
8286         Likewise.
8287         * modules/unictype/property-bidi-block-separator-tests (Files):
8288         Likewise.
8289         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
8290         Likewise.
8291         * modules/unictype/property-bidi-common-separator-tests (Files):
8292         Likewise.
8293         * modules/unictype/property-bidi-control-tests (Files): Likewise.
8294         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
8295         Likewise.
8296         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
8297         Likewise.
8298         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
8299         Likewise.
8300         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
8301         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
8302         Likewise.
8303         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
8304         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
8305         Likewise.
8306         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
8307         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
8308         * modules/unictype/property-bidi-segment-separator-tests (Files):
8309         Likewise.
8310         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
8311         * modules/unictype/property-byname-tests (Files): Likewise.
8312         * modules/unictype/property-combining-tests (Files): Likewise.
8313         * modules/unictype/property-composite-tests (Files): Likewise.
8314         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
8315         * modules/unictype/property-dash-tests (Files): Likewise.
8316         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
8317         * modules/unictype/property-default-ignorable-code-point-tests (Files):
8318         Likewise.
8319         * modules/unictype/property-deprecated-tests (Files): Likewise.
8320         * modules/unictype/property-diacritic-tests (Files): Likewise.
8321         * modules/unictype/property-extender-tests (Files): Likewise.
8322         * modules/unictype/property-format-control-tests (Files): Likewise.
8323         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
8324         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
8325         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
8326         * modules/unictype/property-hex-digit-tests (Files): Likewise.
8327         * modules/unictype/property-hyphen-tests (Files): Likewise.
8328         * modules/unictype/property-id-continue-tests (Files): Likewise.
8329         * modules/unictype/property-id-start-tests (Files): Likewise.
8330         * modules/unictype/property-ideographic-tests (Files): Likewise.
8331         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
8332         * modules/unictype/property-ids-trinary-operator-tests (Files):
8333         Likewise.
8334         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
8335         * modules/unictype/property-iso-control-tests (Files): Likewise.
8336         * modules/unictype/property-join-control-tests (Files): Likewise.
8337         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
8338         * modules/unictype/property-line-separator-tests (Files): Likewise.
8339         * modules/unictype/property-logical-order-exception-tests (Files):
8340         Likewise.
8341         * modules/unictype/property-lowercase-tests (Files): Likewise.
8342         * modules/unictype/property-math-tests (Files): Likewise.
8343         * modules/unictype/property-non-break-tests (Files): Likewise.
8344         * modules/unictype/property-not-a-character-tests (Files): Likewise.
8345         * modules/unictype/property-numeric-tests (Files): Likewise.
8346         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
8347         * modules/unictype/property-other-default-ignorable-code-point-tests
8348         (Files): Likewise.
8349         * modules/unictype/property-other-grapheme-extend-tests (Files):
8350         Likewise.
8351         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
8352         * modules/unictype/property-other-id-start-tests (Files): Likewise.
8353         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
8354         * modules/unictype/property-other-math-tests (Files): Likewise.
8355         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
8356         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
8357         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
8358         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
8359         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
8360         * modules/unictype/property-private-use-tests (Files): Likewise.
8361         * modules/unictype/property-punctuation-tests (Files): Likewise.
8362         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
8363         * modules/unictype/property-radical-tests (Files): Likewise.
8364         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
8365         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
8366         * modules/unictype/property-space-tests (Files): Likewise.
8367         * modules/unictype/property-terminal-punctuation-tests (Files):
8368         Likewise.
8369         * modules/unictype/property-test-tests (Files): Likewise.
8370         * modules/unictype/property-titlecase-tests (Files): Likewise.
8371         * modules/unictype/property-unassigned-code-value-tests (Files):
8372         Likewise.
8373         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
8374         * modules/unictype/property-uppercase-tests (Files): Likewise.
8375         * modules/unictype/property-variation-selector-tests (Files): Likewise.
8376         * modules/unictype/property-white-space-tests (Files): Likewise.
8377         * modules/unictype/property-xid-continue-tests (Files): Likewise.
8378         * modules/unictype/property-xid-start-tests (Files): Likewise.
8379         * modules/unictype/property-zero-width-tests (Files): Likewise.
8380         * modules/unictype/scripts-tests (Files): Likewise.
8381         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
8382         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
8383         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
8384         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
8385         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
8386         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
8387         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
8388         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
8389         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
8390         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
8391         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
8392         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
8393         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
8394         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
8395         * modules/uninorm/composition-tests (Files): Likewise.
8396         * modules/uninorm/decomposing-form-tests (Files): Likewise.
8397         * modules/uninorm/decomposition-tests (Files): Likewise.
8398         * modules/uninorm/filter-tests (Files): Likewise.
8399         * modules/uninorm/nfc-tests (Files): Likewise.
8400         * modules/uninorm/nfd-tests (Files): Likewise.
8401         * modules/uninorm/nfkc-tests (Files): Likewise.
8402         * modules/uninorm/nfkd-tests (Files): Likewise.
8403         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
8404         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
8405         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
8406         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
8407         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
8408         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
8409         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
8410         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
8411         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
8412         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
8413         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
8414         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
8415         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
8416         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
8417         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
8418         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
8419         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
8420         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
8421         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
8422         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
8423         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
8424         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
8425         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
8426         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
8427         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
8428         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
8429         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
8430         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
8431         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
8432         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
8433         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
8434         * modules/uniwidth/u8-width-tests (Files): Likewise.
8435         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
8436         * modules/uniwidth/u16-width-tests (Files): Likewise.
8437         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
8438         * modules/uniwidth/u32-width-tests (Files): Likewise.
8439         * modules/uniwidth/width-tests (Files): Likewise.
8440         * modules/unlink-tests (Files): Likewise.
8441         * modules/unsetenv-tests (Files): Likewise.
8442         * modules/usleep-tests (Files): Likewise.
8443         * modules/utimens-tests (Files): Likewise.
8444         * modules/utimensat-tests (Files): Likewise.
8445         * modules/vasnprintf-posix-tests (Files): Likewise.
8446         * modules/vasnprintf-tests (Files): Likewise.
8447         * modules/vasprintf-posix-tests (Files): Likewise.
8448         * modules/vasprintf-tests (Files): Likewise.
8449         * modules/vdprintf-posix-tests (Files): Likewise.
8450         * modules/vfprintf-posix-tests (Files): Likewise.
8451         * modules/vprintf-posix-tests (Files): Likewise.
8452         * modules/vsnprintf-posix-tests (Files): Likewise.
8453         * modules/vsnprintf-tests (Files): Likewise.
8454         * modules/vsprintf-posix-tests (Files): Likewise.
8455         * modules/wcrtomb-tests (Files): Likewise.
8456         * modules/wcsnrtombs-tests (Files): Likewise.
8457         * modules/wcsrtombs-tests (Files): Likewise.
8458         * modules/wctype-tests (Files): Likewise.
8459         * modules/wcwidth-tests (Files): Likewise.
8460         * modules/xmemdup0-tests (Files): Likewise.
8461         * modules/xprintf-posix-tests (Files): Likewise.
8462         * modules/xvasprintf-tests (Files): Likewise.
8463
8464 2009-12-24  Eric Blake  <ebb9@byu.net>
8465
8466         test-nanosleep: fix typo
8467         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
8468         patch.
8469         Reported by Bruno Haible.
8470
8471 2009-12-24  Bruno Haible  <bruno@clisp.org>
8472
8473         Reduce namespace pollution on glibc systems.
8474         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
8475         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
8476         systems.
8477         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
8478         <getopt.h> on glibc systems.
8479         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
8480         systems.
8481         * lib/fcntl.c: Include <unistd.h> here instead.
8482
8483 2009-12-24  Bruno Haible  <bruno@clisp.org>
8484
8485         * lib/stdlib.in.h (includes): Fix typo in today's commit.
8486
8487 2009-12-24  Eric Blake  <ebb9@byu.net>
8488
8489         tests: add signature checks
8490         * tests/signature.h (SIGNATURE_CHECK): New file.
8491         * modules/atexit-tests (Files): Use it.
8492         * modules/btowc-tests (Files): Likewise.
8493         * modules/canonicalize-lgpl-tests (Files): Likewise.
8494         * modules/ceilf-tests (Files): Likewise.
8495         * modules/ceill-tests (Files): Likewise.
8496         * modules/chown-tests (Files): Likewise.
8497         * modules/dprintf-posix-tests (Files): Likewise.
8498         * modules/dup2-tests (Files): Likewise.
8499         * modules/dup3-tests (Files): Likewise.
8500         * modules/duplocale-tests (Files): Likewise.
8501         * modules/fchdir-tests (Files): Likewise.
8502         * modules/fcntl-tests (Files): Likewise.
8503         * modules/fdopendir-tests (Files): Likewise.
8504         * modules/fflush-tests (Files): Likewise.
8505         * modules/flock-tests (Files): Likewise.
8506         * modules/floorf-tests (Files): Likewise.
8507         * modules/floorl-tests (Files): Likewise.
8508         * modules/fnmatch-tests (Files): Likewise.
8509         * modules/fopen-tests (Files): Likewise.
8510         * modules/fprintf-posix-tests (Files): Likewise.
8511         * modules/freopen-tests (Files): Likewise.
8512         * modules/frexp-nolibm-tests (Files): Likewise.
8513         * modules/frexp-tests (Files): Likewise.
8514         * modules/frexpl-nolibm-tests (Files): Likewise.
8515         * modules/frexpl-tests (Files): Likewise.
8516         * modules/fseek-tests (Files): Likewise.
8517         * modules/fseeko-tests (Files): Likewise.
8518         * modules/fsync-tests (Files): Likewise.
8519         * modules/ftell-tests (Files): Likewise.
8520         * modules/ftello-tests (Files): Likewise.
8521         * modules/futimens-tests (Files): Likewise.
8522         * modules/getaddrinfo-tests (Files): Likewise.
8523         * modules/getcwd-tests (Files): Likewise.
8524         * modules/getdelim-tests (Files): Likewise.
8525         * modules/getdtablesize-tests (Files): Likewise.
8526         * modules/getgroups-tests (Files): Likewise.
8527         * modules/gethostname-tests (Files): Likewise.
8528         * modules/getline-tests (Files): Likewise.
8529         * modules/getopt-posix-tests (Files): Likewise.
8530         * modules/gettimeofday-tests (Files): Likewise.
8531         * modules/glob-tests (Files): Likewise.
8532         * modules/iconv-tests (Files): Likewise.
8533         * modules/inet_ntop-tests (Files): Likewise.
8534         * modules/inet_pton-tests (Files): Likewise.
8535         * modules/isblank-tests (Files): Likewise.
8536         * modules/lchown-tests (Files): Likewise.
8537         * modules/ldexpl-tests (Files): Likewise.
8538         * modules/link-tests (Files): Likewise.
8539         * modules/linkat-tests (Files): Likewise.
8540         * modules/lseek-tests (Files): Likewise.
8541         * modules/lstat-tests (Files): Likewise.
8542         * modules/mbrtowc-tests (Files): Likewise.
8543         * modules/mbsinit-tests (Files): Likewise.
8544         * modules/mbsnrtowcs-tests (Files): Likewise.
8545         * modules/mbsrtowcs-tests (Files): Likewise.
8546         * modules/memchr-tests (Files): Likewise.
8547         * modules/memcmp-tests (Files): Likewise.
8548         * modules/memmem-tests (Files): Likewise.
8549         * modules/memrchr-tests (Files): Likewise.
8550         * modules/mkdir-tests (Files): Likewise.
8551         * modules/mkfifo-tests (Files): Likewise.
8552         * modules/mkfifoat-tests (Files): Likewise.
8553         * modules/mknod-tests (Files): Likewise.
8554         * modules/nanosleep-tests (Files): Likewise.
8555         * modules/nl_langinfo-tests (Files): Likewise.
8556         * modules/obstack-printf-tests (Files): Likewise.
8557         * modules/open-tests (Files): Likewise.
8558         * modules/openat-tests (Files): Likewise.
8559         * modules/perror-tests (Files): Likewise.
8560         * modules/pipe2-tests (Files): Likewise.
8561         * modules/poll-tests (Files): Likewise.
8562         * modules/popen-tests (Files): Likewise.
8563         * modules/posix_spawn-tests (Files): Likewise.
8564         * modules/posix_spawnp-tests (Files): Likewise.
8565         * modules/pread-tests (Files): Likewise.
8566         * modules/printf-posix-tests (Files): Likewise.
8567         * modules/pty-tests (Files): Likewise.
8568         * modules/random_r-tests (Files): Likewise.
8569         * modules/rawmemchr-tests (Files): Likewise.
8570         * modules/readlink-tests (Files): Likewise.
8571         * modules/remove-tests (Files): Likewise.
8572         * modules/rename-tests (Files): Likewise.
8573         * modules/renameat-tests (Files): Likewise.
8574         * modules/rmdir-tests (Files): Likewise.
8575         * modules/round-tests (Files): Likewise.
8576         * modules/roundf-tests (Files): Likewise.
8577         * modules/roundl-tests (Files): Likewise.
8578         * modules/select-tests (Files): Likewise.
8579         * modules/setenv-tests (Files): Likewise.
8580         * modules/sigaction-tests (Files): Likewise.
8581         * modules/sleep-tests (Files): Likewise.
8582         * modules/snprintf-posix-tests (Files): Likewise.
8583         * modules/snprintf-tests (Files): Likewise.
8584         * modules/sprintf-posix-tests (Files): Likewise.
8585         * modules/stat-tests (Files): Likewise.
8586         * modules/strcasestr-tests (Files): Likewise.
8587         * modules/strchrnul-tests (Files): Likewise.
8588         * modules/strerror-tests (Files): Likewise.
8589         * modules/strsignal-tests (Files): Likewise.
8590         * modules/strstr-tests (Files): Likewise.
8591         * modules/strtod-tests (Files): Likewise.
8592         * modules/strverscmp-tests (Files): Likewise.
8593         * modules/symlink-tests (Files): Likewise.
8594         * modules/symlinkat-tests (Files): Likewise.
8595         * modules/times-tests (Files): Likewise.
8596         * modules/trunc-tests (Files): Likewise.
8597         * modules/truncf-tests (Files): Likewise.
8598         * modules/truncl-tests (Files): Likewise.
8599         * modules/tsearch-tests (Files): Likewise.
8600         * modules/uname-tests (Files): Likewise.
8601         * modules/unlink-tests (Files): Likewise.
8602         * modules/unsetenv-tests (Files): Likewise.
8603         * modules/usleep-tests (Files): Likewise.
8604         * modules/utimensat-tests (Files): Likewise.
8605         * modules/vasprintf-tests (Files): Likewise.
8606         * modules/vdprintf-posix-tests (Files): Likewise.
8607         * modules/vfprintf-posix-tests (Files): Likewise.
8608         * modules/vprintf-posix-tests (Files): Likewise.
8609         * modules/vsnprintf-posix-tests (Files): Likewise.
8610         * modules/vsnprintf-tests (Files): Likewise.
8611         * modules/vsprintf-posix-tests (Files): Likewise.
8612         * modules/wcrtomb-tests (Files): Likewise.
8613         * modules/wcsnrtombs-tests (Files): Likewise.
8614         * modules/wcsrtombs-tests (Files): Likewise.
8615         * modules/wcwidth-tests (Files): Likewise.
8616         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
8617         * tests/test-isinf.c (isinf): Likewise.
8618         * tests/test-isnan.c (isnan): Likewise.
8619         * tests/test-signbit.c (signbit): Likewise.
8620         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
8621         declaration, either as macro or with correct signature.
8622         (select): Ensure function under test is declared with correct
8623         signature in correct header.
8624         * tests/test-atexit.c (atexit): Likewise.
8625         * tests/test-btowc.c (btowc): Likewise.
8626         * tests/test-canonicalize-lgpl.c (realpath)
8627         (canonicalize_file_name): Likewise.
8628         * tests/test-ceilf1.c (ceilf): Likewise.
8629         * tests/test-ceill.c (ceill): Likewise.
8630         * tests/test-chown.c (chown): Likewise.
8631         * tests/test-dprintf-posix.c (dprintf): Likewise.
8632         * tests/test-dup2.c (dup2): Likewise.
8633         * tests/test-dup3.c (dup3): Likewise.
8634         * tests/test-duplocale.c (duplocale): Likewise.
8635         * tests/test-fchdir.c (fchdir): Likewise.
8636         * tests/test-fchownat.c (fchownat): Likewise.
8637         * tests/test-fcntl.c (fcntl): Likewise.
8638         * tests/test-fdopendir.c (fdopendir): Likewise.
8639         * tests/test-fflush.c (fflush): Likewise.
8640         * tests/test-flock.c (flock): Likewise.
8641         * tests/test-floorf1.c (floorf): Likewise.
8642         * tests/test-floorl.c (floorl): Likewise.
8643         * tests/test-fnmatch.c (fnmatch): Likewise.
8644         * tests/test-fopen.c (fopen): Likewise.
8645         * tests/test-fprintf-posix.c (fprintf): Likewise.
8646         * tests/test-freopen.c (freopen): Likewise.
8647         * tests/test-frexp.c (frexp): Likewise.
8648         * tests/test-frexpl.c (frexpl): Likewise.
8649         * tests/test-fseek.c (fseek): Likewise.
8650         * tests/test-fseeko.c (fseeko): Likewise.
8651         * tests/test-fstatat.c (fstatat): Likewise.
8652         * tests/test-fsync.c (fsync): Likewise.
8653         * tests/test-ftell.c (ftell): Likewise.
8654         * tests/test-ftello.c (ftello): Likewise.
8655         * tests/test-futimens.c (futimens): Likewise.
8656         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
8657         (gai_strerror): Likewise.
8658         * tests/test-getcwd.c (getcwd): Likewise.
8659         * tests/test-getdelim.c (getdelim): Likewise.
8660         * tests/test-getdtablesize.c (getdtablesize): Likewise.
8661         * tests/test-getgroups.c (getgroups): Likewise.
8662         * tests/test-gethostname.c (gethostname): Likewise.
8663         * tests/test-getline.c (getline): Likewise.
8664         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
8665         Likewise.
8666         * tests/test-gettimeofday.c (gettimeofday): Likewise.
8667         * tests/test-glob.c (glob, globfree): Likewise.
8668         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
8669         * tests/test-inet_ntop.c (inet_ntop): Likewise.
8670         * tests/test-inet_pton.c (inet_pton): Likewise.
8671         * tests/test-isblank.c (isblank): Likewise.
8672         * tests/test-lchown.c (lchown): Likewise.
8673         * tests/test-ldexpl.c (ldexpl): Likewise.
8674         * tests/test-link.c (link): Likewise.
8675         * tests/test-linkat.c (linkat): Likewise.
8676         * tests/test-lseek.c (lseek): Likewise.
8677         * tests/test-lstat.c (lstat): Likewise.
8678         * tests/test-mbrtowc.c (mbrtowc): Likewise.
8679         * tests/test-mbsinit.c (mbsinit): Likewise.
8680         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
8681         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
8682         * tests/test-memchr.c (memchr): Likewise.
8683         * tests/test-memcmp.c (memcmp): Likewise.
8684         * tests/test-memmem.c (memmem): Likewise.
8685         * tests/test-memrchr.c (memrchr): Likewise.
8686         * tests/test-mkdir.c (mkdir): Likewise.
8687         * tests/test-mkdirat.c (mkdirat): Likewise.
8688         * tests/test-mkfifo.c (mkfifo): Likewise.
8689         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
8690         * tests/test-mknod.c (mknod): Likewise.
8691         * tests/test-nanosleep.c (nanosleep): Likewise.
8692         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
8693         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
8694         Likewise.
8695         * tests/test-open.c (open): Likewise.
8696         * tests/test-openat.c (openat): Likewise.
8697         * tests/test-perror.c (perror): Likewise.
8698         * tests/test-pipe2.c (pipe2): Likewise.
8699         * tests/test-poll.c (poll): Likewise.
8700         * tests/test-popen.c (popen, pclose): Likewise.
8701         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
8702         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
8703         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
8704         (posix_spawn_file_actions_destroy)
8705         (posix_spawn_file_actions_addclose)
8706         (posix_spawn_file_actions_addopen)
8707         (posix_spawn_file_actions_adddup2): Likewise.
8708         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
8709         * tests/test-pread.c (pread): Likewise.
8710         * tests/test-printf-posix.c (printf): Likewise.
8711         * tests/test-pty.c (openpty, forkpty): Likewise.
8712         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
8713         (random_r): Likewise.
8714         * tests/test-rawmemchr.c (rawmemchr): Likewise.
8715         * tests/test-readlink.c (readlink): Likewise.
8716         * tests/test-remove.c (remove): Likewise.
8717         * tests/test-rename.c (rename): Likewise.
8718         * tests/test-renameat.c (renameat): Likewise.
8719         * tests/test-rmdir.c (rmdir): Likewise.
8720         * tests/test-round1.c (round): Likewise.
8721         * tests/test-roundf1.c (roundf): Likewise.
8722         * tests/test-roundl.c (roundl): Likewise.
8723         * tests/test-setenv.c (setenv): Likewise.
8724         * tests/test-sigaction.c (sigaction): Likewise.
8725         * tests/test-sleep.c (sleep): Likewise.
8726         * tests/test-snprintf.c (snprintf): Likewise.
8727         * tests/test-sprintf-posix.c (sprintf): Likewise.
8728         * tests/test-stat.c (stat): Likewise.
8729         * tests/test-stpncpy.c (stpncpy): Likewise.
8730         * tests/test-strcasestr.c (strcasestr): Likewise.
8731         * tests/test-strchrnul.c (strchrnul): Likewise.
8732         * tests/test-strerror.c (strerror): Likewise.
8733         * tests/test-strsignal.c (strsignal): Likewise.
8734         * tests/test-strstr.c (strstr): Likewise.
8735         * tests/test-strtod.c (strtod): Likewise.
8736         * tests/test-strverscmp.c (strverscmp): Likewise.
8737         * tests/test-symlink.c (symlink): Likewise.
8738         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
8739         * tests/test-times.c (times): Likewise.
8740         * tests/test-trunc1.c (trunc): Likewise.
8741         * tests/test-truncf1.c (truncf): Likewise.
8742         * tests/test-truncl.c (truncl): Likewise.
8743         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
8744         Likewise.
8745         * tests/test-uname.c (uname): Likewise.
8746         * tests/test-unlink.c (unlink): Likewise.
8747         * tests/test-unlinkat.c (unlinkat): Likewise.
8748         * tests/test-unsetenv.c (unsetenv): Likewise.
8749         * tests/test-usleep.c (usleep): Likewise.
8750         * tests/test-utimensat.c (utimensat): Likewise.
8751         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
8752         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
8753         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
8754         * tests/test-vprintf-posix.c (vprintf): Likewise.
8755         * tests/test-vsnprintf.c (vsnprintf): Likewise.
8756         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
8757         * tests/test-wcrtomb.c (wcrtomb): Likewise.
8758         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
8759         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
8760         * tests/test-wcwidth.c (wcwidth): Likewise.
8761
8762         build: pull in conditional headers during GNULIB_POSIXCHECK
8763         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
8764         definitions from any conditionally-included headers.
8765         * lib/stdlib.in.h (includes): Likewise.
8766         * lib/unistd.in.h (includes): Likewise.
8767
8768 2009-12-24  Bruno Haible  <bruno@clisp.org>
8769
8770         * tests/test-argv-iter.c: Include header file being tested immediately
8771         after config.h.
8772         * tests/test-base64.c: Likewise.
8773         * tests/test-flock.c: Likewise.
8774         * tests/test-fsync.c: Likewise.
8775         * tests/test-getdate.c: Likewise.
8776         * tests/test-getndelim2.c: Likewise.
8777         * tests/test-isfinite.c: Likewise.
8778         * tests/test-isinf.c: Likewise.
8779         * tests/test-strerror.c: Likewise.
8780         * tests/test-strsignal.c: Likewise.
8781
8782 2009-12-23  Eric Blake  <ebb9@byu.net>
8783
8784         unistd: work around cygwin bug
8785         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
8786         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
8787         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8788
8789 2009-12-23  Bruno Haible  <bruno@clisp.org>
8790
8791         localename: More tests.
8792         * tests/test-localename.c (SIZEOF): New macro.
8793         (categories): New variable.
8794         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
8795         test_locale_name_default): Add test w.r.t. thread locale.
8796         (test_locale_name_thread): New function.
8797         (main): Invoke it.
8798
8799         localename: Make aware of thread locale.
8800         * lib/localename.h (gl_locale_name_thread): New declaration.
8801         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
8802         behaviour with respect to thread locale.
8803         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
8804         <langinfo.h>, glthread/lock.h.
8805         (SIZE_BITS): New macro.
8806         (string_hash): New function.
8807         (struct hash_node): New type.
8808         (HASH_TABLE_SIZE): New macro.
8809         (struniq_hash_table, struniq_lock): New variables.
8810         (struniq): New function.
8811         (gl_locale_name_thread): New function.
8812         (gl_locale_name): Invoke it.
8813         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
8814         * modules/localename (Depends-on): Add lock.
8815         Reported by Mike Gran <spk121@yahoo.com>.
8816
8817 2009-12-23  Eric Blake  <ebb9@byu.net>
8818
8819         va-args: new module
8820         * modules/va-args: New file.
8821         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
8822         * MODULES.html.sh (Core language properties): Mention it.
8823
8824         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
8825         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
8826         named alias for __attribute__((__unused__)).
8827         * lib/chown.c: Update client.
8828         * lib/fchmodat.c: Likewise.
8829         * lib/fts.c: Likewise.
8830         * lib/getdate.y: Likewise.
8831         * lib/getgroups.c: Likewise.
8832         * lib/getopt.c: Likewise.
8833         * lib/getugroups.c: Likewise.
8834         * lib/mkdir.c: Likewise.
8835         * lib/mkfifo.c: Likewise.
8836         * lib/mkfifoat.c: Likewise.
8837         * lib/mknod.c: Likewise.
8838         * lib/mknodat.c: Likewise.
8839         * lib/readlink.c: Likewise.
8840         * lib/se-context.in.h: Likewise.
8841         * lib/se-selinux.in.h: Likewise.
8842         * lib/sockets.c: Likewise.
8843         * lib/symlink.c: Likewise.
8844         * lib/symlinkat.c: Likewise.
8845         * lib/unicodeio.c: Likewise.
8846         * lib/unistr.h: Likewise.
8847         * tests/test-areadlink.c: Likewise.
8848         * tests/test-areadlinkat.c: Likewise.
8849         * tests/test-filenamecat.c: Likewise.
8850         * tests/test-fseeko.c: Likewise.
8851         * tests/test-ftello.c: Likewise.
8852         * tests/test-getdate.c: Likewise.
8853         * tests/test-getgroups.c: Likewise.
8854         * tests/test-gethostname.c: Likewise.
8855         * tests/test-quotearg.c: Likewise.
8856         * tests/test-version-etc.c: Likewise.
8857         * tests/test-xalloc-die.c: Likewise.
8858         * tests/test-xfprintf-posix.c: Likewise.
8859         * tests/test-xprintf-posix.c: Likewise.
8860         * tests/test-xvasprintf.c: Likewise.
8861
8862         tests: avoid compiler warnings
8863         * tests/test-fcntl.c (main): Delete unused parameters.
8864         * tests/test-freopen-safer.c (main): Likewise.
8865         * tests/test-xalloc-die.c (main): Mark unused parameters.
8866         * tests/test-fseeko.c (main): Likewise.
8867         * tests/test-ftello.c (main): Likewise.
8868         * tests/test-nanosleep.c (main): Avoid declaration warning.
8869         * tests/test-sleep.c (main): Likewise.
8870         * tests/test-unsetenv.c (main): Silence warning about string
8871         literal.
8872         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
8873
8874 2009-12-23  Bruno Haible  <bruno@clisp.org>
8875
8876         * tests/test-localename.c (test_locale_name): New function, extracted
8877         from main. Also test mixed situations.
8878         (test_locale_name_posix, test_locale_name_environ,
8879         test_locale_name_default): New functions.
8880         (main): Invoke them all.
8881         * modules/localename-tests (configure.ac): Test for newlocale.
8882
8883 2009-12-23  Bruno Haible  <bruno@clisp.org>
8884
8885         unistd: Ensure getcwd gets declared before being overridden.
8886         * lib/unistd.in.h: Conditionally include <io.h>.
8887
8888 2009-12-22  Bruno Haible  <bruno@clisp.org>
8889
8890         wchar: Diagnose broken combination of glibc and gcc versions and flags.
8891         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
8892         (gl_WCHAR_H): Invoke it.
8893         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
8894         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
8895         Reported by Karl Berry <karl@freefriends.org>.
8896
8897 2009-12-22  Eric Blake  <ebb9@byu.net>
8898
8899         math, unistd: avoid redundant includes
8900         * lib/math.in.h (isnan): No need to re-include <math.h>.
8901         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
8902
8903         getsubopt: work around cygwin bug
8904         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
8905         avoid conflicting with system getsubopt.
8906         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
8907         bug.
8908
8909         getopt: synchronize from glibc
8910         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
8911         parameter order.  Adjust all callers.
8912         (_getopt_internal_r, main): Adjust quoting in error messages.
8913         Drop considerations for outdated POSIX 1003.2 error message.
8914         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
8915         callers.
8916         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
8917
8918         test-getopt: test stderr behavior
8919         * modules/getopt-posix-tests (Depends-on): Add dup2.
8920         * tests/test-getopt.c (ASSERT): Avoid stderr.
8921         (main): Move stderr to a temporary file.
8922         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
8923         Instead, add parameter to inform caller if output occurred.
8924         (test_getopt): Adjust all existing tests to expect silence, and
8925         add new tests of leading ":".
8926         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
8927         glibc shortcomings with leading "-:" or "+:" in optstring.
8928         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8929         Likewise.
8930         * doc/posix-functions/getopt.texi (getopt): Likewise.
8931
8932         test-getopt: enhance test
8933         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
8934         supports optind=0.
8935         * tests/test-getopt.c (OPTIND_MIN): Move...
8936         * tests/test-getopt.h (OPTIND_MIN): ...here.
8937         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
8938         Require that optind=0 works, since modern BSD supports it in
8939         addition to optreset, and since coreutils expects it.
8940         (test_getopt_long_only): New test.
8941         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
8942         glibc shortcomings with 'W;', and enforcement of optind=0.
8943         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8944         Likewise.
8945
8946 2009-12-21  Bruno Haible  <bruno@clisp.org>
8947
8948         localename: Improvements for MacOS X and Cygwin.
8949         * lib/localename.h (gl_locale_name_environ): New declaration.
8950         * lib/localename.c (gl_locale_name_environ): New function, extracted from
8951         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
8952         (gl_locale_name_posix): Invoke it.
8953         (gl_locale_name_default): Add comments. Use Windows native API also on
8954         Cygwin.
8955
8956 2009-12-21  Bruno Haible  <bruno@clisp.org>
8957
8958         Update list of Win32 locale ids.
8959         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
8960         (LANG_SAMI): Renamed from LANG_SAAMI.
8961         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
8962         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
8963         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
8964         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
8965         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
8966         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
8967         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
8968         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
8969         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
8970         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
8971         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
8972         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
8973         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
8974         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
8975         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
8976         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
8977         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
8978         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
8979         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
8980         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
8981         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
8982         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
8983         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
8984         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
8985         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
8986         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
8987         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
8988         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
8989         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
8990         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
8991         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
8992         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
8993         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
8994         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
8995         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
8996         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
8997         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
8998         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
8999         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
9000         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
9001         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
9002         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
9003         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
9004         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
9005         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
9006         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
9007         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
9008         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
9009         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
9010         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
9011         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
9012         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
9013         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
9014         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
9015         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
9016         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
9017         Add more languages and countries for Sami, Sorbian. Add more countries
9018         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
9019         for Pashto. Change country for Syriac, Tswana.
9020
9021 2009-12-21  Eric Blake  <ebb9@byu.net>
9022
9023         test-utimens: avoid spurious failure
9024         * tests/test-chown.h (nap): Factor...
9025         * tests/nap.h: ...into new file.
9026         * tests/test-lchown.h (nap): Avoid duplication.
9027         * tests/test-utimens-common.h (nap): Use shared implementation,
9028         necessary on file systems with 1-second resolution.
9029         * modules/chown-tests (Files): Include new file.
9030         * modules/fdutimensat-tests (Files): Likewise.
9031         * modules/futimens-tests (Files): Likewise.
9032         * modules/lchown-tests (Files): Likewise.
9033         * modules/openat-tests (Files): Likewise.
9034         * modules/utimens-tests (Files): Likewise.
9035         * modules/utimensat-tests (Files): Likewise.
9036
9037 2009-12-19  Eric Blake  <ebb9@byu.net>
9038
9039         futimens, utimensat: work around Linux bug
9040         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
9041         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9042         * lib/utimensat.c (rpl_utimensat): Work around it.
9043         * lib/futimens.c (rpl_futimens): Adjust comment.
9044
9045         utimens: work around Linux ctime bug
9046         * lib/utimens.c (detect_ctime_bug): New helper function.
9047         (update_timespec): Differentiate between workaround needed for
9048         this bug vs. what is needed for systems that lack utimensat.
9049         (fdutimens, lutimens): Work around bug.
9050
9051         utimens: check for ctime update
9052         * tests/test-utimens-common.h (check_ctime): Define.
9053         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
9054         * tests/test-futimens.h (test_futimens): Likewise.
9055         * tests/test-lutimens.h (test_lutimens): Likewise.
9056         * doc/posix-functions/futimens.texi (futimens): Document the bug.
9057         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9058
9059 2009-12-19  Bruno Haible  <bruno@clisp.org>
9060
9061         dprintf-posix: Check against memory leak fixed on 2009-12-15.
9062         * tests/test-dprintf-posix2.sh: New file.
9063         * tests/test-dprintf-posix2.c: New file.
9064         * modules/dprintf-posix-tests (Files): Add them.
9065         (configure.ac): Check for getrlimit and setrlimit.
9066         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
9067
9068 2009-12-19  Bruno Haible  <bruno@clisp.org>
9069
9070         fprintf-posix: Check against memory leak fixed on 2009-12-15.
9071         * tests/test-fprintf-posix3.sh: New file.
9072         * tests/test-fprintf-posix3.c: New file.
9073         * modules/fprintf-posix-tests (Files): Add them.
9074         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
9075
9076 2009-12-19  Eric Blake  <ebb9@byu.net>
9077
9078         dirfd: fix prototype
9079         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
9080         * lib/dirfd.c (dirfd): Likewise.
9081
9082         canonicalize: reduce memory usage
9083         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
9084         allocation to size.
9085         Reported by Solar Designer <solar@openwall.com>.
9086
9087 2009-12-19  Bruno Haible  <bruno@clisp.org>
9088
9089         New module attribute 'Applicability'.
9090         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
9091         * gnulib-tool: New option --extract-applicability.
9092         (func_usage): Document it.
9093         (sed_extract_prog): Recognize it.
9094         (func_get_applicability): New function.
9095         (func_import): Generalize handling of 'link-warning' module.
9096         * modules/link-warning (Applicability): New section.
9097         * modules/arg-nonnull (Applicability): New section.
9098         Repoted by Simon Josefsson <simon@josefsson.org>.
9099
9100 2009-12-19  Bruno Haible  <bruno@clisp.org>
9101
9102         fflush: tweak
9103         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
9104         * lib/fseeko.c (rpl_fseeko): Likewise.
9105
9106 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
9107
9108         * lib/gl_list.h: Fix typo in comment.
9109
9110 2009-12-16  Eric Blake  <ebb9@byu.net>
9111
9112         fcntl: use to simplify other modules
9113         * modules/cloexec (Depends-on): Add fcntl.
9114         * modules/fchdir (Depends-on): Likewise.
9115         * modules/fd-safer-flag (Depends-on): Likewise.
9116         * modules/unistd-safer (Depends-on): Likewise.
9117         * modules/dup3 (configure.ac): Set module indicator.
9118         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
9119         missing.
9120         * lib/fchdir.c (_gl_register_dup): Fix comment.
9121         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
9122         * lib/dup-safer.c (dup_safer): Likewise.
9123         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
9124         * lib/dup3.c (dup3): Likewise.
9125         * tests/test-fchdir.c (main): Enhance test.
9126         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
9127
9128         fcntl: port portions of fcntl to mingw
9129         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
9130         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
9131         replacement for mingw.
9132         * modules/fcntl (Description): Update.
9133         (Depends-on): Add dup2.
9134         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
9135         * modules/fcntl-h (Makefile.am): Substitute it.
9136         * lib/fcntl.in.h (fcntl): Update declaration.
9137         (F_DUPFD, F_GETFD): New macros, when needed.
9138         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
9139         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
9140         * tests/test-fcntl.c (check_flags, main): Enhance test for items
9141         we now guarantee.
9142
9143         fcntl: work around cygwin bug in F_DUPFD
9144         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
9145         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
9146         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
9147         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
9148         * doc/posix-functions/fcntl.texi (fcntl): Document it.
9149
9150         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
9151         * modules/fcntl (Files): List new files.
9152         (configure.ac): Run a test.
9153         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
9154         * lib/fcntl.c (rpl_fcntl): Likewise.
9155         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
9156         (gl_FCNTL_H): Always replace fcntl.h.
9157         * modules/fcntl-h (Makefile.am): Substitute witnesses.
9158         * lib/fcntl.in.h (fcntl): Declare replacement.
9159         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
9160         needed, plus a witness.
9161         * doc/posix-functions/fcntl.texi (fcntl): Document this.
9162         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
9163         * tests/test-fcntl.c: New file.
9164         * modules/fcntl-tests: Likewise.
9165
9166         binary-io: avoid potential compilation warning
9167         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
9168         directives.
9169
9170         fflush: avoid compilation error on NetBSD
9171         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
9172         between off_t and fpos_t, since the latter is sometimes a struct.
9173         * lib/fseeko.c (rpl_fseeko): Likewise.
9174         Reported by Alexander Nasonov <alnsn@yandex.ru>.
9175
9176 2009-12-15  Eric Blake  <ebb9@byu.net>
9177
9178         fcntl-h, stdio, sys_ioctl: fix declarations
9179         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
9180         function must not take arguments.
9181         * lib/sys_ioctl.in.h (ioctl): Likewise.
9182         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
9183         (open): Add a link warning.
9184
9185 2009-12-15  Jim Meyering  <meyering@redhat.com>
9186
9187         areadlink, areadlink-with-size: relax license to LGPLv2+
9188         * modules/areadlink (License): Relax to LGPLv2+.
9189         * modules/areadlink-with-size (License): Likewise.
9190
9191 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
9192             Bruno Haible  <bruno@clisp.org>
9193
9194         *printf: Fix memory leak.
9195         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
9196         * lib/vfprintf.c (vfprintf): Likewise.
9197         * lib/dprintf.c (dprintf): Likewise.
9198         * lib/vdprintf.c (vdprintf): Likewise.
9199
9200 2009-12-14  Eric Blake  <ebb9@byu.net>
9201
9202         accept4: adjust module dependencies
9203         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
9204
9205         utimens: one more try at avoiding compiler warning
9206         * lib/utimens.c (lutimens): Lower scope of result.
9207
9208 2009-12-13  Bruno Haible  <bruno@clisp.org>
9209
9210         Move the malloc checking from module 'list' to new module 'xlist'.
9211         * modules/xlist: New file.
9212         * lib/gl_xlist.h: New file.
9213         * lib/gl_xlist.c: New file.
9214         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
9215         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
9216         gl_list_add_last, gl_list_add_before, gl_list_add_after,
9217         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
9218         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
9219         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
9220         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
9221         gl_sortedlist_nx_add): New declarations.
9222         (struct gl_list_implementation): Rename and change methods accordingly.
9223         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
9224         (gl_list_nx_create): Renamed from gl_list_create.
9225         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
9226         (gl_list_nx_set_at): Renamed from gl_list_set_at.
9227         (gl_list_nx_add_first): Renamed from gl_list_add_first.
9228         (gl_list_nx_add_last): Renamed from gl_list_add_last.
9229         (gl_list_nx_add_before): Renamed from gl_list_add_before.
9230         (gl_list_nx_add_after): Renamed from gl_list_add_after.
9231         (gl_list_nx_add_at): Renamed from gl_list_add_at.
9232         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
9233         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
9234         gl_list_create_empty.
9235         (gl_list_nx_create): Renamed from gl_list_create.
9236         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
9237         (gl_list_nx_set_at): Renamed from gl_list_set_at.
9238         (gl_list_nx_add_first): Renamed from gl_list_add_first.
9239         (gl_list_nx_add_last): Renamed from gl_list_add_last.
9240         (gl_list_nx_add_before): Renamed from gl_list_add_before.
9241         (gl_list_nx_add_after): Renamed from gl_list_add_after.
9242         (gl_list_nx_add_at): Renamed from gl_list_add_at.
9243         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
9244         * lib/gl_array_list.c: Don't include xalloc.h.
9245         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
9246         NULL upon out-of-memory.
9247         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
9248         out-of-memory.
9249         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
9250         Change return type to 'int'.
9251         (gl_array_nx_set_at): Renamed from gl_array_set_at.
9252         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
9253         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
9254         upon out-of-memory.
9255         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
9256         upon out-of-memory.
9257         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
9258         upon out-of-memory.
9259         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
9260         upon out-of-memory.
9261         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
9262         out-of-memory.
9263         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
9264         Update.
9265         (gl_array_list_implementation): Update.
9266         * lib/gl_carray_list.c: Don't include xalloc.h.
9267         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
9268         Return NULL upon out-of-memory.
9269         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
9270         out-of-memory.
9271         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
9272         Change return type to 'int'.
9273         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
9274         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
9275         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
9276         upon out-of-memory.
9277         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
9278         upon out-of-memory.
9279         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
9280         out-of-memory.
9281         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
9282         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
9283         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
9284         Update.
9285         (gl_carray_list_implementation): Update.
9286         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
9287         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
9288         gl_linked_create_empty. Return NULL upon out-of-memory.
9289         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
9290         out-of-memory.
9291         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
9292         Change return type to 'int'. Return -1 upon out-of-memory.
9293         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
9294         out-of-memory.
9295         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
9296         upon out-of-memory.
9297         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
9298         upon out-of-memory.
9299         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
9300         NULL upon out-of-memory.
9301         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
9302         upon out-of-memory.
9303         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
9304         out-of-memory.
9305         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
9306         Update.
9307         * lib/gl_linked_list.c: Don't include xalloc.h.
9308         (gl_linked_list_implementation): Update.
9309         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
9310         (add_to_bucket): Change return type to 'int'.
9311         (gl_linkedhash_list_implementation): Update.
9312         * lib/gl_anytree_list1.h (free_subtree): New function.
9313         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
9314         gl_tree_create_empty. Return NULL upon out-of-memory.
9315         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
9316         Change return type to 'int'. Return -1 upon out-of-memory.
9317         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
9318         out-of-memory.
9319         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
9320         (gl_tree_remove_node): New function, moved here from
9321         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
9322         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
9323         Update.
9324         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
9325         malloc, not xmalloc. Return NULL upon out-of-memory.
9326         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
9327         out-of-memory.
9328         (gl_tree_remove_node_from_tree): New function, extracted from
9329         gl_tree_remove_node.
9330         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
9331         upon out-of-memory.
9332         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
9333         out-of-memory.
9334         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
9335         upon out-of-memory.
9336         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
9337         upon out-of-memory.
9338         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
9339         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
9340         not xmalloc. Return NULL upon out-of-memory.
9341         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
9342         out-of-memory.
9343         (gl_tree_remove_node_from_tree): New function, extracted from
9344         gl_tree_remove_node.
9345         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
9346         upon out-of-memory.
9347         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
9348         out-of-memory.
9349         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
9350         upon out-of-memory.
9351         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
9352         upon out-of-memory.
9353         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
9354         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
9355         gl_anytree_list1.h before gl_anyavltree_list2.h.
9356         (gl_avltree_list_implementation): Update.
9357         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
9358         gl_anytree_list1.h before gl_anyavltree_list2.h.
9359         (gl_rbtree_list_implementation): Update.
9360         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
9361         Change return type to 'int'. Return -1 upon out-of-memory. Use
9362         __builtin_expect.
9363         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
9364         (gl_avltreehash_list_implementation): Update.
9365         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
9366         (gl_rbtreehash_list_implementation): Update.
9367         * modules/array-list (Depends-on): Remove xalloc.
9368         * modules/carray-list (Depends-on): Likewise.
9369         * modules/linked-list (Depends-on): Likewise.
9370         * modules/linkedhash-list (Depends-on): Likewise.
9371         * modules/avltree-list (Depends-on): Likewise.
9372         * modules/rbtree-list (Depends-on): Likewise.
9373         * modules/avltreehash-list (Depends-on): Likewise.
9374         * modules/rbtreehash-list (Depends-on): Likewise.
9375
9376         * modules/xsublist: New file.
9377         * lib/gl_xsublist.h: New file.
9378         * lib/gl_xsublist.c: New file.
9379         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
9380         (gl_sublist_nx_create): New declaration.
9381         * lib/gl_sublist.c: Don't include xalloc.h.
9382         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
9383         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
9384         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
9385         Change return type to 'int'. Return -1 upon out-of-memory.
9386         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
9387         upon out-of-memory.
9388         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
9389         NULL upon out-of-memory.
9390         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
9391         upon out-of-memory.
9392         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
9393         NULL upon out-of-memory.
9394         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
9395         NULL upon out-of-memory.
9396         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
9397         upon out-of-memory.
9398         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
9399         (gl_sublist_list_implementation): Update.
9400         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
9401         upon out-of-memory.
9402         * modules/sublist (Depends-on): Remove xalloc.
9403
9404         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
9405         * tests/test-carray_list.c: Likewise.
9406         * tests/test-linked_list.c: Likewise.
9407         * tests/test-linkedhash_list.c: Likewise.
9408         * tests/test-avltree_list.c: Likewise.
9409         * tests/test-rbtree_list.c: Likewise.
9410         * tests/test-avltreehash_list.c: Likewise.
9411         * tests/test-rbtreehash_list.c: Likewise.
9412         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
9413         * modules/carray-list-tests (Makefile.am): Likewise.
9414         * modules/linked-list-tests (Makefile.am): Likewise.
9415         * modules/linkedhash-list-tests (Makefile.am): Likewise.
9416         * modules/avltree-list-tests (Makefile.am): Likewise.
9417         * modules/rbtree-list-tests (Makefile.am): Likewise.
9418         * modules/avltreehash-list-tests (Makefile.am): Likewise.
9419         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
9420
9421         * NEWS: Mention the changes.
9422
9423         * lib/clean-temp.c: Include gl_xlist.h.
9424         * modules/clean-temp (Depends-on): Add xlist.
9425
9426         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
9427         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
9428
9429         * tests/test-array_oset.c: Include gl_xlist.h.
9430         * modules/array-oset-tests (Depends-on): Add xlist.
9431
9432         Reported by José E. Marchesi <jemarch@gnu.org>.
9433
9434 2009-12-13  Bruno Haible  <bruno@clisp.org>
9435
9436         Move the malloc checking from module 'oset' to new module 'xoset'.
9437         * modules/xoset: New file.
9438         * lib/gl_xoset.h: New file.
9439         * lib/gl_xoset.c: New file.
9440         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
9441         declarations.
9442         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
9443         (struct gl_oset_implementation): Rename and change methods accordingly.
9444         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
9445         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
9446         'int'. Mark as __warn_unused_result__.
9447         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
9448         gl_oset_create_empty.
9449         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
9450         'int'.
9451         * lib/gl_array_oset.c: Don't include xalloc.h.
9452         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
9453         malloc, not xmalloc.
9454         (grow): Change return type to 'int'. Don't call xalloc_die.
9455         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
9456         to 'int'.
9457         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
9458         'int'.
9459         (gl_array_oset_implementation): Update.
9460         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
9461         gl_tree_create_empty.
9462         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
9463         'int'.
9464         * lib/gl_avltree_oset.c: Don't include xalloc.h.
9465         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
9466         xmalloc.
9467         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
9468         not xmalloc.
9469         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
9470         xmalloc.
9471         (gl_avltree_oset_implementation): Update.
9472         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
9473         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
9474         xmalloc.
9475         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
9476         not xmalloc.
9477         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
9478         xmalloc.
9479         (gl_rbtree_oset_implementation): Update.
9480         * modules/array-oset (Depends-on): Remove xalloc.
9481         * modules/avltree-oset (Depends-on): Likewise.
9482         * modules/rbtree-oset (Depends-on): Likewise.
9483         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
9484         * tests/test-avltree_oset.c: Likewise.
9485         * tests/test-rbtree_oset.c: Likewise.
9486         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
9487         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
9488         * modules/rbtree-oset-tests (Makefile.am): Likewise.
9489         * NEWS: Mention the change.
9490
9491 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
9492
9493         maint.mk: allow a project to override release-prep commands
9494         * top/maint.mk (alpha, beta, stable): Move release-preparatory
9495         commands into a new rule.
9496         (release-prep): New rule.
9497         (release-prep-hook): New overridable variable.
9498
9499 2009-12-13  Bruno Haible  <bruno@clisp.org>
9500
9501         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
9502
9503 2009-12-13  Jim Meyering  <meyering@redhat.com>
9504
9505         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
9506         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
9507
9508 2009-12-12  Bruno Haible  <bruno@clisp.org>
9509
9510         duplocale: Tweak.
9511         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
9512
9513 2009-12-12  Karl Berry  <karl@gnu.org>
9514
9515         * config/srclist.txt (strtoll.c): tab changes, no more sync.
9516
9517 2009-12-12  Bruno Haible  <bruno@clisp.org>
9518
9519         * m4/po.m4: Undo incorrect untabification.
9520
9521 2009-12-12  Bruno Haible  <bruno@clisp.org>
9522
9523         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
9524         * modules/c-strtod (Depends-on): Add locale.
9525         * modules/c-strtold (Depends-on): Likewise.
9526
9527 2009-12-12  Bruno Haible  <bruno@clisp.org>
9528
9529         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
9530
9531 2009-12-11  Eric Blake  <ebb9@byu.net>
9532
9533         setenv: relax requirement in light of POSIX ruling
9534         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
9535         not NULL.
9536         * tests/test-setenv.c (main): Relax test.
9537         * tests/test-unsetenv.c (main): Likewise.
9538         * doc/posix-functions/setenv.texi (setenv): Document this.
9539         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
9540
9541 2009-12-11  Bruno Haible  <bruno@clisp.org>
9542
9543         New module 'fd-safer-flag'.
9544         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
9545         * lib/dup-safer.c (dup_safer_flag): Remove function.
9546         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
9547         * lib/fd-safer.c (fd_safer_flag): Remove function.
9548         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
9549         * modules/cloexec (configure.ac): Drop indicator macro.
9550         * modules/fd-safer-flag: New file.
9551         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
9552         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
9553         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
9554
9555 2009-12-11  Bruno Haible  <bruno@clisp.org>
9556
9557         Tests for module 'nl_langinfo'.
9558         * modules/nl_langinfo-tests: New file.
9559         * tests/test-nl_langinfo.sh: New file.
9560         * tests/test-nl_langinfo.c: New file.
9561
9562         New module 'nl_langinfo'.
9563         * lib/nl_langinfo.c: New file.
9564         * m4/nl_langinfo.m4: New file.
9565         * modules/nl_langinfo: New file.
9566         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
9567
9568 2009-12-11  Bruno Haible  <bruno@clisp.org>
9569
9570         Tests for module 'langinfo'.
9571         * modules/langinfo-tests: New file.
9572         * tests/test-langinfo.c: New file.
9573
9574         New module 'langinfo'.
9575         * lib/langinfo.in.h: New file.
9576         * m4/langinfo_h.m4: New file.
9577         * modules/langinfo: New file.
9578         * doc/posix-headers/langinfo.texi: Mention the new module.
9579
9580 2009-12-11  Bruno Haible  <bruno@clisp.org>
9581
9582         * lib/config.charset: Untabify.
9583
9584 2009-12-11  Bruno Haible  <bruno@clisp.org>
9585
9586         * modules/unistd-safer (configure.ac): Drop indicator macro.
9587
9588 2009-12-11  Bruno Haible  <bruno@clisp.org>
9589
9590         Move pipe2-safer code to its own file.
9591         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
9592         * lib/pipe-safer.c (pipe2_safer): Remove function.
9593         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
9594         (Makefile.am): Add it to lib_SOURCES.
9595
9596 2009-12-10  Bruno Haible  <bruno@clisp.org>
9597
9598         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
9599
9600 2009-12-10  Bruno Haible  <bruno@clisp.org>
9601
9602         Declare which arguments expect non-NULL values, for GCC and clang.
9603         * build-aux/arg-nonnull.h: New file.
9604         * modules/arg-nonnull: New file.
9605         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
9606         (inet_ntop, inet_pton): Use it.
9607         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
9608         (closedir, dirfd, opendir, scandir, alphasort): Use it.
9609         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
9610         (open, openat): Use it.
9611         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
9612         (fnmatch): Use it.
9613         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
9614         (getopt, getopt_long, getopt_long_only): Use it.
9615         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
9616         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
9617         Use it.
9618         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
9619         (iconv_open): Use it.
9620         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
9621         (strtoimax, strtoumax): Use it.
9622         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
9623         (duplocale): Use it.
9624         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
9625         (frexp, frexpl): Use it.
9626         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
9627         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
9628         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
9629         (tsearch, tfind, tdelete, twalk): Use it.
9630         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
9631         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
9632         sigpending): Use it.
9633         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
9634         (posix_spawn, posix_spawnp, posix_spawnattr_init,
9635         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
9636         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
9637         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
9638         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
9639         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
9640         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
9641         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
9642         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
9643         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
9644         Use it.
9645         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
9646         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
9647         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
9648         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
9649         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
9650         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
9651         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
9652         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
9653         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
9654         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
9655         strtoull, unsetenv): Use it.
9656         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
9657         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
9658         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
9659         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
9660         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
9661         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
9662         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
9663         (strcasecmp, strncasecmp): Use it.
9664         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
9665         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
9666         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
9667         rpl_setsockopt): Use it.
9668         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
9669         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
9670         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
9671         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
9672         (gettimeofday): Use it.
9673         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
9674         (times): Use it.
9675         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
9676         (uname): Use it.
9677         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
9678         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
9679         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
9680         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
9681         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
9682         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
9683         unlinkat, write): Use it.
9684         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
9685         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
9686         * lib/argv-iter.h: Include arg-nonnull.h.
9687         (_ATTRIBUTE_NONNULL_): Remove macro.
9688         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
9689         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
9690         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
9691         optimization.
9692         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
9693         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
9694         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
9695         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
9696         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
9697         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
9698         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
9699         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
9700         * modules/arpa_inet (Depends-on): Add arg-nonnull.
9701         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
9702         * modules/dirent (Depends-on): Add arg-nonnull.
9703         (Makefile.am): Insert arg-nonnull.h into dirent.h.
9704         * modules/fcntl-h (Depends-on): Add arg-nonnull.
9705         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
9706         * modules/fnmatch (Depends-on): Add arg-nonnull.
9707         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
9708         * modules/getopt-posix (Depends-on): Add arg-nonnull.
9709         (Makefile.am): Insert arg-nonnull.h into getopt.h.
9710         * modules/glob (Depends-on): Add arg-nonnull.
9711         (Makefile.am): Insert arg-nonnull.h into glob.h.
9712         * modules/iconv_open (Depends-on): Add arg-nonnull.
9713         (Makefile.am): Insert arg-nonnull.h into iconv.h.
9714         * modules/inttypes (Depends-on): Add arg-nonnull.
9715         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
9716         * modules/locale (Depends-on): Add arg-nonnull.
9717         (Makefile.am): Insert arg-nonnull.h into locale.h.
9718         * modules/math (Depends-on): Add arg-nonnull.
9719         (Makefile.am): Insert arg-nonnull.h into math.h.
9720         * modules/netdb (Depends-on): Add arg-nonnull.
9721         (Makefile.am): Insert arg-nonnull.h into netdb.h.
9722         * modules/search (Depends-on): Add arg-nonnull.
9723         (Makefile.am): Insert arg-nonnull.h into search.h.
9724         * modules/signal (Depends-on): Add arg-nonnull.
9725         (Makefile.am): Insert arg-nonnull.h into signal.h.
9726         * modules/spawn (Depends-on): Add arg-nonnull.
9727         (Makefile.am): Insert arg-nonnull.h into spawn.h.
9728         * modules/stdio (Depends-on): Add arg-nonnull.
9729         (Makefile.am): Insert arg-nonnull.h into stdio.h.
9730         * modules/stdlib (Depends-on): Add arg-nonnull.
9731         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
9732         * modules/string (Depends-on): Add arg-nonnull.
9733         (Makefile.am): Insert arg-nonnull.h into string.h.
9734         * modules/strings (Depends-on): Add arg-nonnull.
9735         (Makefile.am): Insert arg-nonnull.h into strings.h.
9736         * modules/sys_socket (Depends-on): Add arg-nonnull.
9737         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
9738         * modules/sys_stat (Depends-on): Add arg-nonnull.
9739         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
9740         * modules/sys_time (Depends-on): Add arg-nonnull.
9741         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
9742         * modules/sys_times (Depends-on): Add arg-nonnull.
9743         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
9744         * modules/sys_utsname (Depends-on): Add arg-nonnull.
9745         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
9746         * modules/time (Depends-on): Add arg-nonnull.
9747         (Makefile.am): Insert arg-nonnull.h into time.h.
9748         * modules/unistd (Depends-on): Add arg-nonnull.
9749         (Makefile.am): Insert arg-nonnull.h into unistd.h.
9750         * modules/wchar (Depends-on): Add arg-nonnull.
9751         (Makefile.am): Insert arg-nonnull.h into wchar.h.
9752         * modules/argv-iter (Depends-on): Add arg-nonnull.
9753         * tests/test-canonicalize.c (null_ptr): New function.
9754         (main): Use it.
9755         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
9756         (main): Use it.
9757         * tests/test-memmem.c (null_ptr): New function.
9758         (main): Use it.
9759         Reported by Jim Meyering.
9760
9761 2009-12-10  Bruno Haible  <bruno@clisp.org>
9762
9763         Use spaces for indentation, not tabs.
9764         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
9765         * m4/*.m4: Untabify.
9766         * build-aux/*.h: Untabify.
9767         * tests/**/*.[hc]: Untabify.
9768         * README: New section "Indent with spaces, not TABs", based on
9769         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
9770         * NEWS: Mention the change.
9771
9772 2009-12-10  Bruno Haible  <bruno@clisp.org>
9773
9774         pty test: Fix link error.
9775         * modules/pty-tests (Makefile.am): Add the default LDADD value to
9776         test_pty_LDADD.
9777
9778 2009-12-07  Simon Josefsson  <simon@josefsson.org>
9779
9780         * modules/pty: New file.
9781         * modules/pty-tests: New file.
9782         * m4/pty.m4: New file.
9783         * tests/test-pty.c: New file.
9784         * doc/glibc-headers/pty.texi: Modified.
9785         * doc/glibc-functions/forkpty.texi: Modified.
9786         * doc/glibc-functions/openpty.texi: Modified.
9787
9788 2009-12-10  Bruno Haible  <bruno@clisp.org>
9789
9790         Avoid syntax error in C++ mode.
9791         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
9792
9793 2009-12-10  Bruno Haible  <bruno@clisp.org>
9794
9795         Use sed with option -e.
9796         * gnulib-tool (func_version, func_emit_copyright_notice,
9797         func_emit_initmacro_end, func_import, func_create_testdir): Pass
9798         option -e to sed.
9799         * modules/link-warning (Makefile.am): Likewise.
9800
9801 2009-12-10  Jim Meyering  <meyering@redhat.com>
9802
9803         mgetgroups: do not write bytes beyond end of malloc'd buffer
9804         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
9805         username, we call getgroups with a one-element-shorter buffer,
9806         but still told it the length was original, max_n_groups.
9807
9808 2009-12-09  Eric Blake  <ebb9@byu.net>
9809
9810         cloexec: relax license
9811         * modules/cloexec (Maintainer): Add myself.
9812         (License): Use LGPL, not GPL.
9813
9814         link-warning: optimize generation
9815         * modules/link-warning (Makefile.am): Reduce process usage.
9816
9817 2009-12-09  Bruno Haible  <bruno@clisp.org>
9818
9819         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
9820         workaround was added on 2009-11-17.
9821
9822 2009-12-09  Jim Meyering  <meyering@redhat.com>
9823             Bruno Haible  <bruno@clisp.org>
9824
9825         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
9826         * modules/link-warning (Makefile.am): Make the comment-removing sed
9827         command more robust in the face of bootstrap-prepended comment lines.
9828
9829 2009-12-09  Bruno Haible  <bruno@clisp.org>
9830
9831         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
9832         most one group.
9833
9834 2009-12-09  Simon Josefsson <simon@josefsson.org>
9835             Bruno Haible  <bruno@clisp.org>
9836
9837         * build-aux/link-warning.h: Add copyright notice.
9838         * modules/link-warning (Makefile.am): Generate link-warning.h from
9839         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
9840         * NEWS: Mention change in link-warning module.
9841         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
9842         * modules/dirent (Makefile.am): Add dependency to dirent.h.
9843         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
9844         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
9845         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
9846         * modules/math (Makefile.am): Add dependency to math.h.
9847         * modules/search (Makefile.am): Add dependency to search.h.
9848         * modules/signal (Makefile.am): Add dependency to signal.h.
9849         * modules/spawn (Makefile.am): Add dependency to spawn.h.
9850         * modules/stdio (Makefile.am): Add dependency to stdio.h.
9851         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
9852         * modules/string (Makefile.am): Add dependency to string.h.
9853         * modules/strings (Makefile.am): Add dependency to strings.h.
9854         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
9855         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
9856         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
9857         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
9858         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
9859         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
9860         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
9861         * modules/unistd (Makefile.am): Add dependency to unistd.h.
9862         * modules/wchar (Makefile.am): Add dependency to wchar.h.
9863
9864 2009-12-09  Bruno Haible  <bruno@clisp.org>
9865
9866         fchdir: Optimize away rpl_fstat when possible.
9867         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
9868         REPLACE_OPEN_DIRECTORY.
9869         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
9870
9871 2009-12-09  Bruno Haible  <bruno@clisp.org>
9872
9873         * lib/fchdir.c: Update comment.
9874
9875 2009-12-09  Bruno Haible  <bruno@clisp.org>
9876
9877         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
9878
9879 2009-12-08  Eric Blake  <ebb9@byu.net>
9880
9881         fchdir: avoid memory leak on re-registration.
9882         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
9883
9884 2009-12-08  Jim Meyering  <meyering@redhat.com>
9885
9886         init.sh: avoid Solaris 10 /bin/sh portability problem
9887         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
9888         sourced script:
9889           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
9890           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
9891           bar
9892         tests/init.sh relied on that, accepting a --set-path=DIR argument,
9893         and two tests used that idiom.
9894         * tests/init.sh: Update suggested usage comments.
9895         (path_prepend_): New function, to be used in place
9896         of the --src-path=DIR option.
9897         (setup_): Move PATH-prepending code into path_prepend_.
9898         * tests/test-pread.sh: Adapt to new usage.
9899         * tests/test-xalloc-die.sh: Likewise.
9900
9901 2009-12-08  Simon Josefsson  <simon@josefsson.org>
9902
9903         * doc/gnulib.texi (Glibc pty.h): Add.
9904         * doc/glibc-functions/forkpty.texi: Add.
9905         * doc/glibc-functions/openpty.texi: Add.
9906         Suggested by Bruno Haible.
9907
9908 2009-12-08  Eric Blake  <ebb9@byu.net>
9909
9910         fchdir: fix logic bugs
9911         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
9912         * tests/test-fchdir.c (main): Enhance test.
9913         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
9914         is in use.
9915
9916         dup2: fix logic bugs
9917         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
9918         REPLACE_DUP2 to decide when rpl_dup2 is needed.
9919         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
9920         exists.
9921         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
9922
9923 2009-12-07  Eric Blake  <ebb9@byu.net>
9924
9925         unlink: fix m4 detection
9926         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
9927
9928         unistd-safer: add unit test
9929         * modules/unistd-safer-tests: New file.
9930         * tests/test-dup-safer.c: Likewise.
9931         * tests/test-cloexec.c (setmode): Avoid compiler warning.
9932         * tests/test-dup2.c (setmode): Likewise.
9933         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
9934
9935         cloexec: preserve text vs. binary across dup_cloexec
9936         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
9937         mode.
9938         * modules/dup2-tests (Depends-on): Add binary-io.
9939         * modules/cloexec-tests (Depends-on): Likewise.
9940         * tests/test-dup2.c (setmode, is_mode): New helpers.
9941         (main): Add tests that translation mode is preserved.
9942         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
9943         Reported by Bruno Haible.
9944
9945         mgetgroups: reduce duplicate listings
9946         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
9947         resulting array.
9948         * tests/test-chown.h (test_chown): Simplify client.
9949         * tests/test-lchown.h (test_lchown): Likewise.
9950
9951 2009-12-06  Bruno Haible  <bruno@clisp.org>
9952
9953         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
9954         value.
9955
9956 2009-12-06  Bruno Haible  <bruno@clisp.org>
9957
9958         * lib/progname.c: Include stdio.h, stdlib.h.
9959         (set_program_name): Reject a NULL argument.
9960
9961 2009-12-05  Eric Blake  <ebb9@byu.net>
9962
9963         pipe2-safer: new module
9964         * modules/pipe2-safer: New file.
9965         * lib/unistd-safer.h (pipe2_safer): New prototype.
9966         * lib/unistd--.h (pipe2): New wrapper.
9967         * lib/pipe-safer.c (pipe2_safer): New function.
9968         * modules/pipe (Depends-on): Add pipe2-safer.
9969         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
9970
9971         stdlib-safer: preserve cloexec flag for mkostemp[s]
9972         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
9973         fd_safer_flag.
9974
9975         unistd-safer: allow preservation of cloexec status via flag
9976         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
9977         prototypes.
9978         * lib/dup-safer.c (dup_safer_flag): New function.
9979         * lib/fd-safer.c (fd_safer_flag): Likewise.
9980         * modules/cloexec (configure.ac): Set witness.
9981
9982         test-dup2: enhance test
9983         * modules/dup2-tests (Depends-on): Add cloexec.
9984         * tests/test-dup2.c (main): Enhance test.
9985
9986         cloexec: add dup_cloexec
9987         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
9988         header and comments.
9989         * lib/cloexec.c (set_cloexec_flag): Add comments.
9990         (dup_cloexec): New function, with mingw implementation borrowed
9991         from...
9992         * lib/w32spawn.h (dup_noinherit): ...here.
9993         * modules/execute (Depends-on): Add cloexec.
9994         * modules/pipe (Depends-on): Likewise.
9995         * modules/cloexec (Depends-on): Add dup2.
9996         * modules/cloexec-tests (Files): New file.
9997         * tests/test-cloexec.c: Likewise.
9998
9999         test-xalloc-die: fix test for mingw
10000         * modules/xalloc-die-tests (Files): Add tests/init.sh.
10001         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
10002         directory and .exe suffix off argv[0] output.
10003
10004         test-fseeko: fix test for mingw
10005         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
10006         than undefining fseek, so test will pass on mingw.
10007
10008 2009-12-05  Bruno Haible  <bruno@clisp.org>
10009
10010         * lib/progname.h (set_program_name): Clarify specification.
10011         * lib/progname.c (set_program_name): Likewise.
10012         Reported by Jim Meyering.
10013
10014 2009-12-05  Jim Meyering  <meyering@redhat.com>
10015
10016         maint.mk: backslash-escape parens in default regexp
10017         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
10018         backslash-escape the literal parentheses.
10019
10020         maint.mk: news-date-check: use grep -E
10021         * top/maint.mk (today): Define a Make variable, not a...
10022         (news-date-check): ...shell variable.
10023         (news-date-regexp): Use the Make variable.
10024         Use grep's -E option.  Change the failing diagnostic to mention
10025         the variable, $(news-date-regexp).
10026
10027 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
10028
10029         maintainer-makefile: allow customization of NEWS entry format
10030         * top/maint.mk (news-date-regexp): New overridable variable.
10031         (news-date-check): Use it.
10032
10033 2009-12-04  Eric Blake  <ebb9@byu.net>
10034
10035         mgetgroups: add xgetgroups, and avoid ENOSYS failures
10036         * lib/mgetgroups.h (xgetgroups): New prototype.
10037         * lib/mgetgroups.c (xgetgroups): New wrapper.
10038         (mgetgroups): Handle ENOSYS.
10039         * modules/mgetgroups (Depends-on): Add realloc.
10040         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
10041
10042         mgetgroups: avoid argument promotion issues with -1
10043         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
10044         for invalid gid_t.
10045         * tests/test-chown.h (getegid, test_chown): Likewise.
10046         * tests/test-lchown.h (getegid, test_lchown): Likewise.
10047
10048 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
10049
10050         exclude: Fix header file problems.
10051         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
10052
10053 2009-12-01  Jim Meyering  <meyering@redhat.com>
10054
10055         fts: fts_open: do not let an empty string cause immediate failure
10056         This is required in support of GNU rm, for which the command
10057         "rm A '' B" must process and remove both A and B, in spite of
10058         the empty string argument.
10059         * lib/fts.c (fts_open): Do not let the presence of an empty string
10060         cause fts_open to fail immediately.  Most fts-using tools must be
10061         able to process all arguments, in order, and can be expected to
10062         diagnose such arguments themselves.
10063
10064 2009-11-30  Eric Blake  <ebb9@byu.net>
10065
10066         utimens: fix compilation error
10067         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
10068         Declare variable at right scope.
10069
10070 2009-11-29  Jim Meyering  <meyering@redhat.com>
10071
10072         bootstrap: handle perl-5.11's changed --version output
10073         * build-aux/bootstrap (get_version): Handle perl separately,
10074         since perl-5.11's --version output is different.
10075
10076 2009-11-28  Jim Meyering  <meyering@redhat.com>
10077
10078         userspec: depend on the inttostr module, too
10079         * modules/userspec (Depends-on): Add inttostr.
10080
10081         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
10082         * lib/userspec.c (parse_with_separator): Do not accept a user ID
10083         number of MAXUID when it evaluates to (uid_t) -1.
10084         Likewise for group ID.  Reported by Matt McCutchen in
10085         <http://savannah.gnu.org/bugs/?28113>
10086
10087         userspec: reformat to use spaces, not TABs
10088         * lib/userspec.c: Expand TABs to spaces.
10089         Add Emacs' "indent-tabs-mode: nil" hint.
10090
10091 2009-11-27  Eric Blake  <ebb9@byu.net>
10092
10093         getopt-gnu: flush out another BSD bug
10094         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
10095         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
10096         flush out BSD bug.
10097         * tests/test-getopt.h (test_getopt): End lists with NULL.
10098         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10099         (test_getopt_long_posix): Enhance test.
10100         * modules/getopt-posix-tests (Depends-on): Add stdbool.
10101         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
10102         getopt-gnu.
10103         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10104         Likewise.
10105
10106 2009-11-27  Simon Josefsson  <simon@josefsson.org>
10107
10108         * modules/idpriv-droptemp-tests (Notice): Fix text.
10109
10110 2009-11-27  Jim Meyering  <meyering@redhat.com>
10111
10112         test-xalloc-die: avoid spurious failure due to libtool argv difference
10113         In a libtool-enabled project, this test would fail due to a difference
10114         in the emitted program name, e.g.,
10115         -test-xalloc-die: memory exhausted
10116         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
10117         Use program to avoid that.
10118         * modules/xalloc-die-tests (Depends-on): Add progname.
10119         * tests/test-xalloc-die.c: Include progname.h".
10120         (program_name): Remove decl.
10121         (main): Call set_program_name.
10122         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
10123
10124 2009-11-26  Richard Jones  <rjones@redhat.com>
10125
10126         w32sock: leave win32 error in place.
10127         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
10128
10129 2009-11-26  Eric Blake  <ebb9@byu.net>
10130
10131         init.sh: suggest to use skip_ and fail_ functions in comments
10132         * tests/init.sh: Add a sentence.
10133
10134 2009-11-25  Bruno Haible  <bruno@clisp.org>
10135
10136         init.sh: add documentation in comments
10137         * tests/init.sh: Add some developer and user documentation.
10138
10139 2009-11-26  Jim Meyering  <meyering@redhat.com>
10140
10141         init.sh: accommodate even those who specify bogus srcdir manually
10142         * tests/init.sh: Normally, srcdir is guaranteed by automake and
10143         configure-time tests to be sanitized, so that there is no need to
10144         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
10145         (with no double quotes) suffices.  However, since tests may be
10146         invoked manually, and since you may explicitly set srcdir to the
10147         name of a directory containing spaces, do quote its uses here.
10148         * tests/test-pread.sh: Likewise.
10149         Suggested by Bruno Haible.
10150
10151         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
10152         * tests/test-pread.sh: Write no data into the pipe, because
10153         test-pread actually reads none.  This avoids a diagnostic,
10154         "bash: echo: write error: Broken pipe", that arises in the unusual
10155         event something is ignoring SIGPIPE, and might be interpreted
10156         as some sort of failure.  Reported by Bruno Haible.
10157
10158 2009-11-25  Jim Meyering  <meyering@redhat.com>
10159
10160         test-pread: cover failure with ESPIPE and EINVAL
10161         * tests/test-pread.c (main): Test for failure, too.
10162         * tests/test-pread.sh: Invoke with stdin on a pipe.
10163         Suggested by Eric Blake.
10164
10165         pread: improvement and fix
10166         * modules/pread (Depends-on): Depend on lseek, for portability to
10167         e.g., mingw.  Suggested by Eric Blake.
10168         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
10169
10170         unistd.in.h: correct declaration of pread
10171         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
10172         Reported by Richard W.M. Jones.
10173
10174         test-pread.sh: distribute the test script
10175         * modules/pread-tests (Files): Include test-pread.sh.
10176
10177         test-pread.sh: clean up
10178         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
10179         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
10180         That is unnecessary, since it's always ".".
10181         Suggestion from Eric Blake.
10182
10183         test-pread.sh: make executable
10184         * tests/test-pread.sh: Set executable bit.
10185         Reported by Eric Blake.
10186
10187         correct typo in test-pread.sh
10188         * tests/test-pread.sh: Add #! line.
10189
10190         test pread
10191         * tests/test-pread.c: New file.
10192         * tests/test-pread.sh: Likewise.
10193         * modules/pread-tests: Likewise.
10194
10195         pread: new module
10196         * modules/pread: New file.
10197         * lib/unistd.in.h (pread): Define/declare.
10198         * lib/pread.c (pread): New file.
10199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
10200         * modules/unistd (Makefile.am): Substitute witnesses.
10201         * doc/posix-functions/pread.texi (pread): Update.
10202         * MODULES.html.sh: Add pread.
10203
10204 2009-11-25  Jim Meyering  <meyering@redhat.com>
10205
10206         tests/init.sh: new file to be used via most *.sh tests
10207         * tests/init.sh: New file.
10208
10209 2009-11-25  Eric Blake  <ebb9@byu.net>
10210
10211         utimens: work around older Linux failure with symlinks
10212         * lib/utimens.c (lutimensat_works_really): New variable.
10213         (fdutimens, lutimens): Use it to manage kernels that support
10214         nanosecond times on files, but not on symlinks.
10215         Reported by OndÅ™ej Vašík.
10216
10217         utimes: fix configure grammar
10218         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
10219
10220 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
10221
10222         regex: Fix fastmap for multibyte character ranges.
10223         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
10224         characters when a multibyte character range is included.
10225
10226 2009-11-22  Andy Wingo  <wingo@pobox.com>
10227
10228         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
10229         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
10230
10231 2009-11-24  Bruno Haible  <bruno@clisp.org>
10232
10233         doc: Most *_l functions exist in MacOS X 10.5.
10234         * doc/posix-functions/duplocale.texi: Update platforms list.
10235         * doc/posix-functions/freelocale.texi: Likewise.
10236         * doc/posix-functions/newlocale.texi: Likewise.
10237         * doc/posix-functions/uselocale.texi: Likewise.
10238         * doc/posix-functions/isalnum_l.texi: Likewise.
10239         * doc/posix-functions/isalpha_l.texi: Likewise.
10240         * doc/posix-functions/isblank_l.texi: Likewise.
10241         * doc/posix-functions/iscntrl_l.texi: Likewise.
10242         * doc/posix-functions/isdigit_l.texi: Likewise.
10243         * doc/posix-functions/isgraph_l.texi: Likewise.
10244         * doc/posix-functions/islower_l.texi: Likewise.
10245         * doc/posix-functions/isprint_l.texi: Likewise.
10246         * doc/posix-functions/ispunct_l.texi: Likewise.
10247         * doc/posix-functions/isspace_l.texi: Likewise.
10248         * doc/posix-functions/isupper_l.texi: Likewise.
10249         * doc/posix-functions/iswalnum_l.texi: Likewise.
10250         * doc/posix-functions/iswalpha_l.texi: Likewise.
10251         * doc/posix-functions/iswblank_l.texi: Likewise.
10252         * doc/posix-functions/iswcntrl_l.texi: Likewise.
10253         * doc/posix-functions/iswctype_l.texi: Likewise.
10254         * doc/posix-functions/iswdigit_l.texi: Likewise.
10255         * doc/posix-functions/iswgraph_l.texi: Likewise.
10256         * doc/posix-functions/iswlower_l.texi: Likewise.
10257         * doc/posix-functions/iswprint_l.texi: Likewise.
10258         * doc/posix-functions/iswpunct_l.texi: Likewise.
10259         * doc/posix-functions/iswspace_l.texi: Likewise.
10260         * doc/posix-functions/iswupper_l.texi: Likewise.
10261         * doc/posix-functions/iswxdigit_l.texi: Likewise.
10262         * doc/posix-functions/isxdigit_l.texi: Likewise.
10263         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
10264         * doc/posix-functions/strcasecmp_l.texi: Likewise.
10265         * doc/posix-functions/strcoll_l.texi: Likewise.
10266         * doc/posix-functions/strfmon_l.texi: Likewise.
10267         * doc/posix-functions/strftime_l.texi: Likewise.
10268         * doc/posix-functions/strncasecmp_l.texi: Likewise.
10269         * doc/posix-functions/strxfrm_l.texi: Likewise.
10270         * doc/posix-functions/tolower_l.texi: Likewise.
10271         * doc/posix-functions/toupper_l.texi: Likewise.
10272         * doc/posix-functions/towctrans_l.texi: Likewise.
10273         * doc/posix-functions/towlower_l.texi: Likewise.
10274         * doc/posix-functions/towupper_l.texi: Likewise.
10275         * doc/posix-functions/wcscoll_l.texi: Likewise.
10276         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
10277         * doc/posix-functions/wctrans_l.texi: Likewise.
10278         * doc/posix-functions/wctype_l.texi: Likewise.
10279         * doc/glibc-functions/strptime_l.texi: Likewise.
10280         * doc/glibc-functions/strtod_l.texi: Likewise.
10281         * doc/glibc-functions/strtof_l.texi: Likewise.
10282         * doc/glibc-functions/strtol_l.texi: Likewise.
10283         * doc/glibc-functions/strtold_l.texi: Likewise.
10284         * doc/glibc-functions/strtoll_l.texi: Likewise.
10285         * doc/glibc-functions/strtoul_l.texi: Likewise.
10286         * doc/glibc-functions/strtoull_l.texi: Likewise.
10287         * doc/glibc-functions/wcsftime_l.texi: Likewise.
10288         * doc/glibc-functions/wcstod_l.texi: Likewise.
10289         * doc/glibc-functions/wcstof_l.texi: Likewise.
10290         * doc/glibc-functions/wcstol_l.texi: Likewise.
10291         * doc/glibc-functions/wcstold_l.texi: Likewise.
10292         * doc/glibc-functions/wcstoll_l.texi: Likewise.
10293         * doc/glibc-functions/wcstoul_l.texi: Likewise.
10294         * doc/glibc-functions/wcstoull_l.texi: Likewise.
10295
10296 2009-11-24  Bruno Haible  <bruno@clisp.org>
10297
10298         duplocale: Fix logic bug.
10299         * lib/duplocale.c: Don't include <langinfo.h>.
10300         (_NL_LOCALE_NAME): Remove macro.
10301         (rpl_duplocale): Use setlocale instead of nl_langinfo.
10302         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
10303
10304 2009-11-23  Jim Meyering  <meyering@redhat.com>
10305
10306         test-update-copyright: don't hard-code /usr/bin/perl
10307         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
10308         perl to print the current year.  Gilles Espinasse reported that
10309         the replaced use of perl was hard-coded as /usr/bin/perl.
10310
10311 2009-11-23  Bruno Haible  <bruno@clisp.org>
10312
10313         duplocale: Add support for glibc 2.3.x.
10314         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
10315
10316 2009-11-22  Bruno Haible  <bruno@clisp.org>
10317
10318         vasnprintf: Tiny optimization.
10319         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
10320         MacOS X.
10321
10322 2009-11-22  Bruno Haible  <bruno@clisp.org>
10323
10324         Tests for module 'duplocale'.
10325         * modules/duplocale-tests: New file.
10326         * tests/test-duplocale.c: New file.
10327
10328         New module 'duplocale'.
10329         * m4/duplocale.m4: New file.
10330         * lib/locale.in.h (duplocale): New declaration.
10331         * lib/duplocale.c: New file.
10332         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
10333         gl_LOCALE_H_DEFAULTS): New macros.
10334         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
10335         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
10336         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
10337         REPLACE_DUPLOCALE.
10338         * modules/duplocale: New file.
10339         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
10340
10341 2009-11-22  Bruno Haible  <bruno@clisp.org>
10342
10343         * modules/locale-tests (configure.ac): Test for newlocale function.
10344         * tests/test-locale.c: When the system has extended locale functions,
10345         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
10346
10347         locale: Make locale_t available when possible.
10348         * lib/locale.in.h: Include <xlocale.h> when it exists.
10349         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
10350         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
10351         * modules/locale (Depends-on): Add extensions.
10352         (Makefile.am): Also substitute HAVE_XLOCALE_H.
10353         * doc/posix-headers/locale.texi: Document the problem with locale_t.
10354
10355 2009-11-22  Bruno Haible  <bruno@clisp.org>
10356
10357         Add comments.
10358         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
10359         invocation.
10360         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
10361         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10362         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10363
10364 2009-11-22  Bruno Haible  <bruno@clisp.org>
10365
10366         error: account for the possibility of freopen (stdout).
10367         * lib/error.c: Include <unistd.h>.
10368         (flush_stdout): New function, extracted from error and error_at_line.
10369         Determine stdout's fd dynamically.
10370         (error, error_at_line): Invoke flush_stdout.
10371         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
10372         * modules/error (Depends-on): Add unistd.
10373
10374 2009-11-22  Bruno Haible  <bruno@clisp.org>
10375
10376         diffseq: Add comment.
10377         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
10378
10379 2009-11-22  Jim Meyering  <meyering@redhat.com>
10380
10381         c-stack: avoid defining an unused static function
10382         * lib/c-stack.c (find_stack_direction): Do not define this function
10383         when it will not be used.
10384
10385         diffseq: avoid spurious gcc warnings
10386         * lib/diffseq.h (IF_LINT2): Define.
10387         (compareseq): Use it to initialize two members of "part".
10388         This avoids two used-uninitialized warnings.
10389
10390 2009-11-21  Jim Meyering  <meyering@redhat.com>
10391
10392         c-stack: avoid "ignoring return value of `write'" warning
10393         * lib/c-stack.c: Include "ignore-value.h".
10394         (die): Explicitly ignore each write return value.
10395         * modules/c-stack (Depends-on): Add ignore-value.
10396
10397 2009-11-21  Bruno Haible  <bruno@clisp.org>
10398
10399         diffseq: reduce scope of variable 'best'.
10400         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
10401         variable, earlier used for two different purposes.
10402
10403 2009-11-21  Jim Meyering  <meyering@redhat.com>
10404
10405         diffseq: remove useless assignment to "best"
10406         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
10407         assignment.  At that point "best" is already guaranteed to be zero.
10408
10409 2009-11-20  Eric Blake  <ebb9@byu.net>
10410
10411         build: mention ftp redirector in release announcements
10412         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
10413         values that used to come from cfg.mk; mention FTP redirect URL.
10414         * build-aux/announce-gen: Mention the mirror list.
10415         Suggested by Karl Berry.
10416
10417         nanosleep: improve port to mingw
10418         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
10419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
10420         LIB_NANOSLEEP, but only when needed.
10421         * modules/select (Link): Document LIBSOCKET.
10422         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
10423         enough.
10424
10425         nanosleep: work around cygwin bug
10426         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
10427         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
10428         bug.
10429         (getnow): Delete, not needed.
10430         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
10431         LIB_CLOCK_GETTIME.
10432         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
10433         clock-time, gettime.
10434         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
10435         bug.
10436         * modules/nanosleep-tests: New test.
10437         * tests/test-nanosleep.c: New file.
10438
10439         sleep: work around cygwin bug
10440         * lib/sleep.c (rpl_sleep): Work around the bug.
10441         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
10442         (gl_PREREQ_SLEEP): Delete unused macro.
10443         * modules/sleep (Depends-on): Add verify.
10444         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
10445         * modules/unistd (Makefile.am): Substitute witness.
10446         * lib/unistd.in.h (sleep): Update prototype.
10447         * doc/posix-functions/sleep.texi (sleep): Document the bug.
10448         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
10449         * modules/sleep-tests (Depends-on): Check for alarm.
10450
10451 2009-11-20  Jim Meyering  <meyering@redhat.com>
10452
10453         maint.mk: improve sc_prohibit_magic_number_exit
10454         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
10455         so it does not match uses like System.exit(1).
10456         Add comments showing how to correct all offenders.
10457
10458 2009-11-19  Eric Blake  <ebb9@byu.net>
10459
10460         xalloc-die-tests: add missing library
10461         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
10462
10463         test-xvasprintf: silence compiler warnings
10464         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
10465         empty string from gcc.
10466
10467 2009-11-19  Jim Meyering  <meyering@redhat.com>
10468
10469         xfreopen: new module, from coreutils
10470         * modules/xfreopen: New module.
10471         * lib/xfreopen.c: New file.
10472         * lib/xfreopen.h: New file.
10473         * MODULES.html.sh (File stream based Input/Output"): Add it.
10474
10475 2009-11-19  Eric Blake  <ebb9@byu.net>
10476
10477         manywarnings: depend on warnings
10478         * modules/manywarnings (Depends-on): Add warnings.
10479
10480         build: avoid compiler warnings
10481         * lib/select.c (rpl_select): Delete unused variable.
10482         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
10483
10484 2009-11-18  Eric Blake  <ebb9@byu.net>
10485
10486         tests: avoid false negative with --with-packager
10487         * tests/test-version-etc.sh: Discard packager information.
10488         * tests/test-argp-version-etc-1.sh: Likewise.
10489         Reported by Mike Frysinger.
10490
10491         utimens: fix regression on Solaris
10492         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
10493         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
10494         can only change fd timestamps via futimesat.  Instead, use an
10495         additional witness macro to avoid BSD bug.
10496         Reported by Jim Meyering.
10497
10498 2009-11-17  Eric Blake  <ebb9@byu.net>
10499
10500         usleep: use it to simplify tests
10501         * modules/stat-time-tests (Depends-on): Add usleep.
10502         (configure.ac): Drop usleep check.
10503         * modules/chown-tests (Depends-on, configure.ac): Likewise.
10504         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
10505         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
10506         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
10507         * modules/openat-tests (Depends-on, configure.ac): Likewise.
10508         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
10509         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
10510         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
10511         Likewise.
10512         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
10513         * tests/test-lchown.h (nap): Likewise.
10514         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
10515         * tests/test-stat-time.c (nap): Likewise.
10516         * tests/test-utimens-common.h (nap): Update comments.
10517
10518         usleep: new module
10519         * modules/usleep: New file.
10520         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
10521         * lib/usleep.c (usleep): Likewise.
10522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
10523         * modules/unistd (Makefile.am): Substitute witnesses.
10524         * lib/unistd.in.h (usleep): Add declaration.
10525         * doc/pastposix-functions/usleep.texi (usleep): Document this.
10526         * MODULES.html.sh (Date and time): Likewise.
10527         * modules/usleep-tests (Depends-on): New test.
10528         * tests/test-usleep.c: New file.
10529
10530         chown: work around OpenBSD bug
10531         * lib/chown.c (rpl_chown): Work around the bug.
10532         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
10533         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
10534         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
10535         * modules/chown (Depends-on): Add stdbool.
10536         * modules/lchown (Depends-on): Likewise.
10537         * doc/posix-functions/chown.texi (chown): Document the bug.
10538         * doc/posix-functions/lchown.texi (lchown): Likewise.
10539         * tests/test-lchown.h (test_chown): Relax test.
10540
10541         mkstemp: avoid conflict with C++ keyword template
10542         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
10543         * lib/mkostemp.c (mkostemp): Likewise.
10544         * lib/mkostemps.c (mkostemps): Likewise.
10545         * lib/mkstemp.c (mkstemp): Likewise.
10546         * lib/mkstemps.c (mkstemps): Likewise.
10547
10548         xalloc-die-tests: optimize
10549         * tests/test-xalloc-die.sh: Reduce number of processes.
10550
10551 2009-11-17  Simon Josefsson  <simon@josefsson.org>
10552
10553         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
10554         patch from ludo@gnu.org (Ludovic Courtès).
10555
10556 2009-11-17  Jim Meyering  <meyering@redhat.com>
10557
10558         version-etc: use proper license string
10559         * modules/version-etc (License): Use LGPL, not LGPLv3+.
10560         * modules/version-etc-fsf: Likewise.
10561
10562 2009-11-17  Simon Josefsson  <simon@josefsson.org>
10563
10564         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
10565         printed to stdout.  Deal with EOL differences.
10566
10567 2009-11-17  Eric Blake  <ebb9@byu.net>
10568
10569         unsetenv: work around Solaris bug
10570         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
10571         * lib/unsetenv.c (rpl_unsetenv): Work around it.
10572         Reported by Jim Meyering.
10573
10574         vasnprintf: avoid compiler warnings
10575         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
10576         variables.
10577         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
10578
10579 2009-11-17  Simon Josefsson  <simon@josefsson.org>
10580
10581         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
10582         settings since xalloc-die is no longer the self test,
10583         xalloc-die.sh is.
10584
10585 2009-11-17  Jim Meyering  <meyering@redhat.com>
10586
10587         test-xalloc-die.sh: make the code agree with the commit log
10588         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
10589         at the end, just in case you happen to have a test-xalloc-die
10590         program in some other PATH directory.
10591
10592         test-xalloc-die.sh: fix a portability bug
10593         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
10594         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
10595         Otherwise, argv[0] (as often seen in diagnostics) would be too
10596         system-dependent, sometimes with, and sometimes without the leading "./".
10597
10598         version-etc-fsf: relax license to LGPLv3+
10599         * modules/version-etc-fsf (License): Relax license.
10600
10601 2009-11-16  Eric Blake  <ebb9@byu.net>
10602
10603         xalloc-die-tests: avoid printing null pointer
10604         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
10605         shell script.
10606         * tests/test-xalloc-die.c (program_name): Declare.
10607         * tests/test-xalloc-die.sh (tmpfiles): New file.
10608
10609         setenv, unsetenv: work around various bugs
10610         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
10611         (setenv) [HAVE_SETENV]: Work around bugs.
10612         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
10613         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
10614         for bugs.
10615         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
10616         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
10617         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
10618         * modules/stdlib (Makefile.am): Update substitutions.
10619         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
10620         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
10621         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
10622         * modules/setenv-tests: New test.
10623         * modules/unsetenv-tests: Likewise.
10624         * tests/test-setenv.c: New file.
10625         * tests/test-unsetenv.c: Likewise.
10626
10627 2009-11-16  Jim Meyering  <meyering@redhat.com>
10628
10629         version-etc: relax license to LGPLv3+
10630         * modules/version-etc (License): Relax license.
10631
10632         better AC_REQUIRE expanded-before-required-warning avoidance
10633         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
10634         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
10635         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
10636         which is no longer needed.
10637
10638 2009-11-16  Eric Blake  <ebb9@byu.net>
10639
10640         test-freading: clean up temporary file
10641         * tests/test-freading.c (main): Remove file on success, and use
10642         ASSERT more liberally.
10643         Reported by Jim Meyering.
10644
10645 2009-11-16  Jim Meyering  <meyering@redhat.com>
10646
10647         avoid new AC_REQUIRE expanded-before-required warnings
10648         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
10649         merely using it.
10650         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
10651         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
10652
10653 2009-11-15  Simon Josefsson  <simon@josefsson.org>
10654
10655         * tests/test-xalloc-die.c: New file.
10656         * modules/xalloc-die-tests: New file.
10657         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
10658         XFAIL_TESTS so it can be appended by modules.
10659
10660 2009-11-15  Simon Josefsson  <simon@josefsson.org>
10661
10662         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
10663         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
10664
10665 2009-11-14  Eric Blake  <ebb9@byu.net>
10666
10667         fnmatch: avoid compiler warning
10668         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
10669         to silence compiler warning about mismatch signedness in ?:.
10670         Reported by Robert Millan.
10671
10672         intprops: add double-inclusion guard
10673         * lib/intprops.h: Allow idempotent includes.
10674         Suggested by Bruce Korb.
10675
10676         openat: detect Solaris fchownat bug
10677         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
10678         penalizing glibc chownat when only lchownat is broken.
10679         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
10680         trailing slash bugs.
10681         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
10682         * modules/openat-tests (Files): Include more files.
10683         (Depends-on): Add mgetgroups, sleep, stat-time.
10684         (configure.ac): Add additional checks.
10685         (Makefile.am): Build new test.
10686         * tests/test-fchownat.c: New file.
10687
10688         lchown: detect Solaris and FreeBSD bug
10689         * lib/lchown.c (rpl_lchown): Work around bug.
10690         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
10691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10692         * modules/unistd (Makefile.am): Populate it.
10693         * lib/unistd.in.h (lchown): Update declaration.
10694         * doc/posix-functions/lchown.texi (lchown): Document the bug.
10695         * modules/lchown-tests: New file.
10696         * tests/test-lchown.h (test_lchown): Likewise.
10697         * tests/test-lchown.c (main): Likewise.
10698
10699         chown: detect Solaris and FreeBSD bug
10700         * lib/chown.c (rpl_chown): Work around bug.
10701         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
10702         (gl_PREREQ_CHOWN): Delete.
10703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10704         * modules/unistd (Makefile.am): Populate it.
10705         * lib/unistd.in.h (chown): Update declaration.
10706         * lib/lchown.c (chown): Update client.
10707         * modules/lchown (Depends-on): Add lstat.
10708         * doc/posix-functions/chown.texi (chown): Document the bug.
10709         * doc/posix-functions/getgroups.texi (getgroups): Document
10710         getgroups pitfall.
10711         * modules/chown-tests: New file.
10712         * tests/test-chown.h (test_chown): Likewise.
10713         * tests/test-chown.c (main): Likewise.
10714
10715 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
10716
10717         gnulib-tool: correctly detect absence of m4 directories
10718         * gnulib-tool: Avoid extra newline on data passed to wc -l.
10719
10720 2009-11-14  Jim Meyering  <meyering@redhat.com>
10721
10722         maint.mk: Prohibit inclusion of "xalloc.h" without use.
10723         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
10724
10725 2009-11-14  John W. Eaton  <jwe@gnu.org>
10726
10727         strftime.h: wrap funtion declaration in extern "C" block
10728         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
10729
10730 2009-11-13  Eric Blake  <ebb9@byu.net>
10731
10732         getgroups: avoid compiler warning
10733         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
10734
10735         getgroups: work around FreeBSD bug
10736         * lib/getgroups.c (rpl_getgroups): Work around the bug.
10737         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
10738         * doc/posix-functions/getgroups.texi (getgroups): Document it.
10739         * tests/test-getgroups.c (main): Fix buffer overrun.
10740
10741         getgroups: avoid compilation failure
10742         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
10743         * modules/getgroups (Depends-on): Add stdint.
10744
10745 2009-11-13  Jim Meyering  <meyering@redhat.com>
10746
10747         test-getgroups: avoid compilation failure
10748         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
10749
10750 2009-11-13  Eric Blake  <ebb9@byu.net>
10751
10752         mgetgroups: new module, taken from coreutils
10753         * modules/mgetgroups: New file.
10754         * lib/mgetgroups.h: Likewise.
10755         * lib/mgetgroups.c (mgetgroups): Likewise.
10756         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
10757         * MODULES.html.sh (Users and groups): Mention it.
10758
10759         getgroups: don't expose GETGROUPS_T to user
10760         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
10761         an element at a time if GETGROUPS_T is wrong size.
10762         * lib/getugroups.h (getugroups): Change signature.
10763         * lib/unistd.in.h (getgroups): Likewise.
10764         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
10765         signature needs fixing.
10766         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
10767         AC_TYPE_GETGROUPS.
10768         * modules/group-member (Depends-on): Add getgroups.
10769         * lib/group-member.c (group_info, get_group_info): Use gid_t.
10770         (group_member): Rely on getgroups replacement.
10771         * lib/getugroups.c (getugroups): Use gid_t.
10772         * tests/test-getgroups.c (main): Likewise.
10773         * NEWS: Mention the signature change.
10774         * doc/posix-functions/getgroups.texi (getgroups): Mention the
10775         problem with signature.
10776         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
10777         GETGROUPS_T is still useful for setgroups.
10778
10779         getgroups, getugroups: provide stubs for mingw
10780         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
10781         * lib/getugroups.c (getugroups): Likewise.
10782         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
10783         function.  Modernize replacement scheme.
10784         (gl_PREREQ_GETGROUPS): Delete.
10785         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
10786         * modules/getgroups (configure.ac): Declare witness.
10787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
10788         * modules/unistd (Depends-on): Substitute witness.
10789         * lib/unistd.in.h (getgroups): Declare replacement.
10790
10791         getgroups: avoid calling exit
10792         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
10793         drop xalloc.
10794         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
10795         dependencies.
10796         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
10797         exiting, in the rare case of malloc failure.
10798
10799         getgroups: fix logic error
10800         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
10801         has more than 20 groups.
10802         * modules/getgroups-tests: New test.
10803         * tests/test-getgroups.c: New file.
10804
10805 2009-11-13  Simon Josefsson  <simon@josefsson.org>
10806
10807         * tests/test-base64.c: Improve.
10808
10809 2009-11-13  Simon Josefsson  <simon@josefsson.org>
10810
10811         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
10812         Blake <ebb9@byu.net>.
10813
10814 2009-11-13  Simon Josefsson  <simon@josefsson.org>
10815
10816         * tests/test-xvasprintf.c: Add %s%s related checks.
10817
10818 2009-11-12  Eric Blake  <ebb9@byu.net>
10819
10820         version-etc: match standards.texi style
10821         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
10822         and use <> only for URLs.
10823
10824 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
10825
10826         fts: do not fail on a submount during traversal
10827         * lib/fts.c (fts_build): Read the stat info again after opening
10828         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
10829         Original report at http://bugzilla.redhat.com/501848.
10830
10831 2009-11-12  Jim Meyering  <meyering@redhat.com>
10832
10833         bootstrap: sync from coreutils
10834         * build-aux/bootstrap (bootstrap_epilogue): New function.
10835         Use git_modules_config in one more place.  This make bootstrap's
10836         --gnulib-srcdir option more useful for testing.
10837
10838         bootstrap: generalize autoheader check
10839         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
10840         AC_CONFIG_HEADERS.
10841
10842 2009-11-11  Eric Blake  <ebb9@byu.net>
10843
10844         mkfifoat: use new modules for Solaris and BSD bugs
10845         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
10846         * lib/mkfifoat.c (mknodat): Split...
10847         * lib/mknodat.c (mknodat): ...into new file.
10848         * modules/mkfifoat (Files): Ship new file.
10849         (Depends-on): Add mkfifo, mknod.
10850         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
10851         (Depends-on): Add symlink.
10852         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
10853         redundant with test_mkfifo.h.
10854         (do_mkfifoat, do_mknodat): New helpers.
10855
10856         mknod: new module
10857         * modules/mknod: New file.
10858         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
10859         * lib/mknod.c (mknod): Likewise.
10860         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
10861         defaults.
10862         * modules/sys_stat (Makefile.am): Substitute them.
10863         * lib/sys_stat.in.h (mknod): Declare replacement.
10864         * MODULES.html.sh (Support for systems lacking POSIX:2008):
10865         Document it.
10866         * doc/posix-functions/mknod.texi (mknod): Likewise.
10867         * modules/mknod-tests: New test.
10868         * tests/test-mknod.c: Likewise.
10869
10870         mkfifo: new module
10871         * modules/mkfifo: New file.
10872         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
10873         * lib/mkfifo.c (mkfifo): Likewise.
10874         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
10875         defaults.
10876         * modules/sys_stat (Makefile.am): Substitute them.
10877         * lib/sys_stat.in.h (mkfifo): Declare replacement.
10878         * MODULES.html.sh (Support for systems lacking POSIX:2008):
10879         Document it.
10880         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
10881         * modules/mkfifo-tests: New test.
10882         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
10883         from test-mkfifoat.c.
10884         * tests/test-mkfifo.c: New file.
10885
10886         readlink: detect FreeBSD bug
10887         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
10888         slash on symlink.
10889         * doc/posix-functions/readlink.texi (readlink): Document the bug.
10890         * tests/test-readlink.h (test_readlink): Enhance test.
10891
10892         symlink: detect FreeBSD bug
10893         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
10894         slash on symlink.
10895         * doc/posix-functions/symlink.texi (symlink): Document the bug.
10896         * tests/test-symlink.h (test_symlink): Enhance test.
10897
10898 2009-11-10  Eric Blake  <ebb9@byu.net>
10899
10900         link: detect FreeBSD bug
10901         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
10902         symlink.
10903         * doc/posix-functions/link.texi (link): Document the bug.
10904         * tests/test-link.h (test_link): Enhance test.
10905         * tests/test-linkat.c (main): Update caller.
10906
10907         unlink, remove: detect FreeBSD bug
10908         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
10909         slash on symlink.
10910         * doc/posix-functions/unlink.texi (unlink): Document the bug.
10911         * doc/posix-functions/remove.texi (remove): Likewise.
10912         * tests/test-unlink.h (test_unlink): Enhance test.
10913         * tests/test-remove.c (main): Likewise.
10914
10915 2009-11-09  Eric Blake  <ebb9@byu.net>
10916
10917         rename: detect FreeBSD bug
10918         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
10919         slash on symlink.
10920         * modules/renameat-tests (Depends-on): Add filenamecat.
10921         * tests/test-rename.h (test_rename): Allow one more errno.
10922         * tests/test-renameat.c (main): Likewise.
10923         * doc/posix-functions/rename.texi (rename): Document the bug.
10924
10925         open: detect FreeBSD bug
10926         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
10927         symlink.
10928         * doc/posix-functions/open.texi (open): Document the bug.
10929         * doc/posix-functions/utimes.texi (utimes): Likewise.
10930         * tests/test-open.h (test_open): Add parameters, and test symlink
10931         handling.
10932         * tests/test-open.c (main): Adjust caller.
10933         * tests/test-fcntl-safer.c (main): Likewise.
10934         * modules/open-tests (Depends-on): Add stdbool, symlink.
10935         * modules/fcntl-safer-tests (Depends-on): Likewise.
10936         * tests/test-openat.c (main): Add test-open tests.
10937
10938         stat: detect FreeBSD bug
10939         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
10940         symlink.
10941         * doc/posix-functions/stat.texi (stat): Document the bug.
10942         * tests/test-stat.h (test_stat_func): Add argument.
10943         * tests/test-stat.c (main): Adjust caller.
10944         * tests/test-fstatat.c (main): Likewise.
10945         * modules/stat-tests (Depends-on): Add stdbool, symlink.
10946         Reported by Jim Meyering.
10947
10948 2009-11-09  James Youngman  <jay@gnu.org>
10949
10950         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
10951         * lib/strftime.c: Correct placement of #include "ignore-value.h".
10952
10953 2009-11-08  Jim Meyering  <meyering@redhat.com>
10954
10955         utimens: remove invalid futimesat call
10956         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
10957         It used the file descriptor of the target file as the DIR_FD
10958         parameter and NULL as the file name.  That caused failure with
10959         errno == EFAULT on FreeBSD-8.0-rc2
10960
10961 2009-11-07  Eric Blake  <ebb9@byu.net>
10962
10963         fflush, freadseek: use fseeko, not fseek
10964         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
10965         (clear_ungetc_buffer): Avoid potential problems on large files.
10966         * lib/freadseek.c (freadseek): Likewise.
10967         * modules/freadseek (Depends-on): Add fseeko.
10968         * modules/fseek (configure.ac): Set a witness.
10969         * tests/test-fflush.c (main): Use fseeko.
10970         * tests/test-fpurge.c (fseek): Disable link warning.
10971         * tests/test-freadable.c (fseek): Likewise.
10972         * tests/test-freading.c (fseek): Likewise.
10973         * tests/test-fseeko.c (fseek): Likewise.
10974         * tests/test-ftell.c (fseek): Likewise.
10975         * tests/test-ftello.c (fseek): Likewise.
10976         * tests/test-fwritable.c (fseek): Likewise.
10977         * tests/test-fwriting.c (fseek): Likewise.
10978
10979 2009-11-06  Simon Josefsson  <simon@josefsson.org>
10980
10981         * modules/memchr (Depends-on): Drop getpagesize dependency.
10982
10983 2009-11-06  Simon Josefsson  <simon@josefsson.org>
10984
10985         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
10986         Reported by Ludovic Courtès.
10987         * build-aux/pmccabe2html: Improve example usage.
10988         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
10989
10990 2009-11-06  Jim Meyering  <meyering@redhat.com>
10991
10992         do-release-commit-and-tag: New module.
10993         Automate the release-commit and tag process.
10994         * build-aux/do-release-commit-and-tag: New script, from coreutils.
10995         * modules/do-release-commit-and-tag: New file.
10996         * MODULES.html.sh (Support for maintaining and releasing): Add it.
10997
10998 2009-11-06  Simon Josefsson  <simon@josefsson.org>
10999
11000         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
11001         because test-select.c uses inet_pton.
11002
11003 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11004
11005         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
11006         GETADDRINFO_LIB.  Bump serial number.
11007         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
11008         Suggested by Eric Blake <ebb9@byu.net>.
11009
11010 2009-11-05  Eric Blake  <ebb9@byu.net>
11011
11012         strtod: detect darwin bug
11013         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
11014         Reported by Leo Davis.
11015
11016         freopen-safer: new module
11017         * modules/freopen-safer: New module.
11018         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
11019         * lib/freopen-safer.c (freopen_safer): New file.
11020         * lib/stdio-safer.h (freopen_safer): New declaration.
11021         * lib/stdio--.h (freopen): New override.
11022         * MODULES.html.sh (File stream based Input/Output): Mention it.
11023         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
11024         freopen-safer module.
11025         * doc/posix-functions/stderr.texi (stderr): Likewise.
11026         * doc/posix-functions/stdin.texi (stdin): Likewise.
11027         * doc/posix-functions/stdout.texi (stdout): Likewise.
11028         * modules/freopen-safer-tests: New test.
11029         * tests/test-reopen-safer.c: New file.
11030
11031 2009-11-05  Jim Meyering  <meyering@redhat.com>
11032
11033         maint.mk: Prohibit inclusion of "close-stream.h" without use.
11034         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
11035
11036 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11037
11038         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
11039
11040 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11041
11042         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
11043
11044 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11045
11046         Fix link error.
11047         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
11048         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
11049
11050 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11051
11052         * tests/test-func.c: Also test value of __func__.
11053
11054 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11055
11056         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
11057         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
11058
11059 2009-11-05  Bruno Haible  <bruno@clisp.org>
11060
11061         Fix link error.
11062         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
11063         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
11064         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
11065
11066 2009-11-05  Bruno Haible  <bruno@clisp.org>
11067
11068         Tests for module 'inet_pton'.
11069         * modules/inet_pton-tests: New file.
11070         * tests/test-inet_pton.c: New file.
11071
11072 2009-11-05  Bruno Haible  <bruno@clisp.org>
11073
11074         Tests for module 'inet_ntop'.
11075         * modules/inet_ntop-tests: New file.
11076         * tests/test-inet_ntop.c: New file.
11077
11078 2009-11-04  Eric Blake  <ebb9@byu.net>
11079
11080         stdlib-safer: wrap all mkstemp variants
11081         * modules/mkostemp (configure.ac): Set witness.
11082         * modules/mkostemps (configure.ac): Likewise.
11083         * modules/mkstemps (configure.ac): Likewise.
11084         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
11085         (mkstemps_safer): Wrap more functions.
11086         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
11087         wrapping.
11088         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
11089         (mkstemps_safer): Implement the wrappers.
11090
11091         mkstemps, mkostemps: new modules
11092         * modules/mkostemps: New module.
11093         * modules/mkstemps: Likewise.
11094         * lib/mkostemps.c (mkostemps): New file.
11095         * lib/mkstemps.c (mkstemps): Likewise.
11096         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
11097         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
11098         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
11099         * modules/stdlib (Makefile.am): Substitute them.
11100         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
11101         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
11102         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
11103         * doc/gnulib.texi (Glibc stdlib.h): Include them.
11104         * MODULES.html.sh (File system functions): Mention them.
11105
11106         tempname: resync from glibc
11107         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
11108         same values for __GT_FILE as glibc.  Abort even when assertions
11109         are disabled.
11110         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
11111         match its value otherwise.  Allow idempotent inclusion.
11112         * lib/mkdtemp.c (mkdtemp): Adjust caller.
11113         * lib/mkostemp.c (mkostemp): Likewise.
11114         * lib/mkstemp.c (mkstemp): Likewise.
11115         * lib/tmpfile.c (tmpfile): Likewise.
11116         * NEWS: Document this.
11117
11118         utimens: fix use of futimens on older Linux
11119         * lib/utimens.c (fdutimens): Use updated, rather than original,
11120         timespec to avoid bug in older Linux kernel.
11121         Reported by Simon Josefsson.
11122
11123 2009-11-04  Bruno Haible  <bruno@clisp.org>
11124
11125         Make num_processors more flexible and consistent.
11126         * lib/nproc.h (enum nproc_query): New type.
11127         (num_processors): Add a 'query' argument.
11128         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
11129         (num_processors): Add a 'query' argument. Test the value of the
11130         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
11131         mingw, count the number of CPUs available for the current process.
11132         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
11133         Check for sched_getaffinity and sched_getaffinity_np.
11134         * modules/nproc (Depends-on): Add c-ctype, extensions.
11135         * NEWS: Mention the change.
11136
11137 2009-11-03  Bruno Haible  <bruno@clisp.org>
11138
11139         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
11140
11141 2009-11-03  Jim Meyering  <meyering@redhat.com>
11142
11143         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
11144         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
11145         if it is defined.
11146
11147 2009-11-02  Eric Blake  <ebb9@byu.net>
11148
11149         mktime, timegm: share common declaration
11150         * lib/mktime-internal.h: New file.
11151         * lib/mktime.c: Use it rather than open-coding a declaration.
11152         * lib/timegm.c: Likewise.
11153         * modules/mktime (Files): Ship it.
11154         * modules/timegm (Files): Likewise.
11155         Suggested by Bruno Haible.
11156
11157         test-update-copyright: update test to match script changes
11158         * tests/test-update-copyright.sh: Avoid hard-coding perl
11159         location.  Don't update *.bak created by earlier runs.
11160
11161 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
11162             Simon Josefsson  <simon@josefsson.org>
11163             Bruno Haible  <bruno@clisp.org>
11164
11165         Fix link error on Solaris 8.
11166         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
11167         also in libnsl. Define also INET_PTON_LIB.
11168         * modules/inet_pton (Link): New section.
11169
11170 2009-11-02  Simon Josefsson  <simon@josefsson.org>
11171             Bruno Haible  <bruno@clisp.org>
11172
11173         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
11174         * modules/inet_ntop (Link): New section.
11175         Reported by Boyan Kasarov <bkasarov@gmail.com>.
11176
11177 2009-11-02  Eric Blake  <ebb9@byu.net>
11178
11179         maint: avoid compiler warnings in m4 macros
11180         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
11181         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
11182
11183 2009-11-02  Simon Josefsson  <simon@josefsson.org>
11184
11185         * m4/pmccabe2html.m4: Remove file.
11186         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
11187         function.  Change maintainer.
11188         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
11189         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
11190         Courtès).
11191
11192 2009-10-31  Eric Blake  <ebb9@byu.net>
11193
11194         fseeko: fix m4 regression
11195         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
11196         regression from 2009-10-27.
11197         Reported by Ralf Wildenhues.
11198
11199 2009-10-31  Jim Meyering  <meyering@redhat.com>
11200
11201         inttostr: aesthetics and improved (compile-time) safety
11202         Define inttype_is_signed rather than inttype_is_unsigned,
11203         since the sole use is via "#if inttype_is_signed".
11204         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
11205         inttype_is_unsigned.
11206         * lib/offtostr.c (inttype_is_signed): Likewise.
11207         * lib/uinttostr.c (inttype_is_signed): Likewise.
11208         * lib/umaxtostr.c (inttype_is_signed): Likewise.
11209         * lib/inttostr.c (inttostr): Use verify to cross-check the
11210         inttype_is_signed value and the signedness of the actual type.
11211         * modules/inttostr (Depends-on): Add verify.
11212
11213 2009-10-30  Eric Blake  <ebb9@byu.net>
11214
11215         build: avoid compiler warnings
11216         * lib/fchmodat.c (lchmod): Mark unused variables.
11217         * lib/getopt.c (_getopt_initialize): Likewise.
11218         * lib/mktime.c (__mktime_internal): Provide prototype.
11219         * lib/inttostr.c (inttostr): Avoid compiler warning even with
11220         older gcc that do not understand #pragma GCC diagnostic.
11221         * lib/uinttostr.c (inttype_is_unsigned): Define.
11222         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
11223
11224 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11225
11226         stat: fix compilation on AIX
11227         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
11228         only see struct stat64.
11229
11230 2009-10-30  Eric Blake  <ebb9@byu.net>
11231
11232         exclude: make more robust
11233         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
11234         rather than masking a coding bug.
11235         Suggested by Bruno Haible.
11236
11237 2009-10-30  Jim Meyering  <meyering@redhat.com>
11238
11239         perl scripts: remove #!/usr/bin/perl in favor of more portable...
11240         Rather than putting #!/usr/bin/perl on the first line,
11241         start with a variant of what's recommended by "man perlrun" that
11242         invokes the first "perl" program from your shell's search path.
11243         * build-aux/gitlog-to-changelog: Replace #!... as above.
11244         Add a "Local Variables" perl mode setting.
11245         Prompted by a patch from Ludovic Courtès.
11246         Improved by Eric Blake.
11247         * build-aux/useless-if-before-free: Likewise.
11248         * build-aux/announce-gen: Likewise.
11249         * build-aux/update-copyright: Likewise.
11250
11251 2009-10-29  Eric Blake  <ebb9@byu.net>
11252
11253         filenamecat-lgpl: adjust clients
11254         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
11255         filenamecat.
11256         * modules/renameat (Depends-on): Likewise.
11257
11258         filenamecat: split into filenamecat-lgpl
11259         * modules/filenamecat-lgpl: New module.
11260         * modules/filenamecat (Files): Move library-safe files into
11261         filenamecat-lgpl.
11262         (Depends-on): Add filenamecat-lgpl.
11263         (configure.ac): Declare witness.
11264         * lib/filenamecat.h (file_name_concat): Only declare when using
11265         GPL module.
11266         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
11267         Move...
11268         * lib/filenamecat-lgpl.c: ...into new file.
11269         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
11270         (gl_FILE_NAME_CONCAT): Use it.
11271         * MODULES.html.sh (File system functions): Mention new module.
11272
11273         argp: avoid memory leak
11274         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
11275         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
11276         base_name, since the latter malloc()s and can call exit().
11277         Leak introduced 2006-07-03.
11278
11279         dirname-lgpl: adjust clients that don't need full dirname
11280         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
11281         * modules/filenamecat (Depends-on): Likewise.
11282         * modules/linkat (Depends-on): Likewise.
11283         * modules/mkancesdirs (Depends-on): Likewise.
11284         * modules/mkdir (Depends-on): Likewise.
11285         * modules/openat (Depends-on): Likewise.
11286         * modules/savewd (Depends-on): Likewise.
11287         * modules/rename (Depends-on): Likewise.
11288         (License): Relax license.
11289         * modules/mkdir-tests (Depends-on): Drop progname.
11290         (Makefile.am): Delete unneeded LDADD.
11291         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
11292
11293         dirname: split into dirname-lgpl
11294         * modules/dirname-lgpl: New module.
11295         * modules/dirname (Files): Move library-safe files into
11296         dirname-lgpl.
11297         (Depends-on): Add dirname-lgpl.
11298         (configure.ac): Declare witness.
11299         * modules/double-slash-root (License): Relax license.
11300         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
11301         module.
11302         * lib/dirname.c (dir_len, mdir_name): Move...
11303         * lib/dirname-lgpl.c: ...into new file.
11304         * lib/basename.c (last_component, base_len): Move...
11305         * lib/basename-lgpl.c: ...into new file.
11306         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
11307         (gl_DIRNAME): Use it.
11308         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
11309         Mention new module.
11310         * modules/dirname-tests (Depends-on): Add progname.
11311         * tests/test-dirname.c (program_name): Delete.
11312
11313         mkdir: make safe for libraries
11314         * modules/mkdir (Depends-on): Drop xalloc.
11315         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
11316         exit.
11317
11318         tests: avoid some compiler warnings
11319         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
11320         literals.
11321         * tests/test-memchr.c (main): Avoid type mismatch.
11322         * tests/test-arpa_inet.c (main): Avoid unused parameters.
11323         * tests/test-base64.c (main): Likewise.
11324         * tests/test-getdelim.c (main): Likewise.
11325         * tests/test-gethostname.c (main): Likewise.
11326         * tests/test-getline.c (main): Likewise.
11327         * tests/test-netinet_in.c (main): Likewise.
11328         * tests/test-select.c (open_server_socket, main): Likewise.
11329         * tests/test-select-stdin.c (main): Likewise.
11330         * tests/test-sockets.c (main): Likewise.
11331         * tests/test-strsignal.c (main): Likewise.
11332         * tests/test-sys_select.c (main): Likewise.
11333         * tests/test-sys_socket.c (main): Likewise.
11334         * tests/test-u64.c (main): Likewise.
11335         * tests/test-xfprintf-posix.c (main): Likewise.
11336         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
11337
11338         sockets: avoid compiler warning
11339         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
11340
11341         maint: detect usage(1) and other suspicious exits
11342         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
11343
11344 2009-10-29  Jim Meyering  <meyering@redhat.com>
11345
11346         timespec: long-to-int truncation could make timespec_cmp malfunction
11347         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
11348         a multiple of 2^32 nanoseconds as no difference.
11349
11350 2009-10-28  Jim Meyering  <meyering@redhat.com>
11351
11352         fprintftime: wrap macro code argument in "do {...} while(0)"
11353         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
11354         cpy macro must be a statement that can be followed by a semicolon.
11355         Now that the else clause contains a comment and is hence longer
11356         than one line, I require curly braces.  That in turn requires
11357         that we wrap this code block in the standard do...while(0).
11358
11359         fprintftime: remove stray semicolon from previous change
11360         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
11361
11362         fprintftime: avoid a warning about ignored fwrite return value
11363         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
11364         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
11365         that is unsafe.
11366         * modules/fprintftime (Depends-on): Add ignore-value.
11367
11368         exclude: avoid an unwarranted warning
11369         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
11370
11371 2009-10-27  Eric Blake  <ebb9@byu.net>
11372
11373         fseek: avoid compilation failure when fflush is replaced
11374         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
11375         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
11376         module is in use.
11377         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
11378         module is not in use; since REPLACE_FSEEK worked otherwise.
11379         (GNULIB_FTELLO): Likewise for ftell.
11380         Reported by Ian Beckwith and others.
11381
11382 2009-10-27  Bruno Haible  <bruno@clisp.org>
11383
11384         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
11385         Reported by Jim Meyering.
11386
11387 2009-10-27  Jim Meyering  <jim@meyering.net>
11388             Bruno Haible  <bruno@clisp.org>
11389
11390         Avoid warning despite dropping the return value of fwrite.
11391         * lib/unicodeio.c: Include ignore-value.h.
11392         (fwrite_success_callback): Explicitly ignore fwrite's return value.
11393         * modules/unicodeio (Depends-on): Add ignore-value.
11394
11395 2009-10-26  Eric Blake  <ebb9@byu.net>
11396
11397         areadlinkat: fix fallback path
11398         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
11399         pointer and zero.
11400
11401 2009-10-22  Pádraig Brady  <P@draigBrady.com>
11402
11403         Use a better IO block size for modern systems
11404         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
11405         * lib/md2.c: Likewise.
11406         * lib/md4.c: Likewise.
11407         * lib/md5.c: Likewise.
11408         * lib/sha1.c: Likewise.
11409         * lib/sha256.c: Likewise.
11410         * lib/sha512.c: Likewise.
11411
11412 2009-10-22  Eric Blake  <ebb9@byu.net>
11413
11414         tests: avoid several compiler warnings
11415         * tests/test-getcwd.c (main): Avoid buffer underflow.
11416         * tests/test-getdate.c (main): String literals are not safe with
11417         putenv, so use setenv.  Declare unused argument.
11418         * modules/getdate-tests (Depends-on): Add setenv.
11419         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
11420         problems with string literals in char *.
11421         * tests/test-hash.c (main): Avoid shadowing declaration.
11422         (insert_new): Treat string literals as char const *.
11423         * tests/test-getopt.h (test_getopt): Likewise.
11424         (getopt_loop): Alter types to minimize casting elsewhere.
11425         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
11426         (test_getopt_long_posix): Likewise.
11427         (do_getopt_long): Add wrapper to minimize casting.
11428         * tests/test-atexit.c (clear_temp_file): Use void.
11429         * tests/test-areadlink-with-size.c (main): Declare unused
11430         arguments.
11431         * tests/test-areadlink.c (main): Likewise.
11432         * tests/test-areadlinkat-with-size.c (main): Likewise.
11433         * tests/test-areadlinkat.c (main): Likewise.
11434         * tests/test-canonicalize-lgpl.c (main): Likewise.
11435         * tests/test-canonicalize.c (main): Likewise.
11436         * tests/test-dirent-safer.c (main): Likewise.
11437         * tests/test-dirname.c (main): Likewise.
11438         * tests/test-dup2.c (main): Likewise.
11439         * tests/test-fchdir.c (main): Likewise.
11440         * tests/test-fcntl-h.c (main): Likewise.
11441         * tests/test-fcntl-safer.c (main): Likewise.
11442         * tests/test-fdopendir.c (main): Likewise.
11443         * tests/test-fdutimensat.c (main): Likewise.
11444         * tests/test-fflush.c (main): Likewise.
11445         * tests/test-filenamecat.c (main): Likewise.
11446         * tests/test-filevercmp.c (main): Likewise.
11447         * tests/test-fopen-safer.c (main): Likewise.
11448         * tests/test-fopen.c (main): Likewise.
11449         * tests/test-fpending.c (main): Likewise.
11450         * tests/test-fpurge.c (main): Likewise.
11451         * tests/test-freading.c (main): Likewise.
11452         * tests/test-fstatat.c (main): Likewise.
11453         * tests/test-fsync.c (main): Likewise.
11454         * tests/test-futimens.c (main): Likewise.
11455         * tests/test-getndelim2.c (main): Likewise.
11456         * tests/test-gettimeofday.c (main): Likewise.
11457         * tests/test-getopt.c (main): Likewise.
11458         * tests/test-i-ring.c (main): Likewise.
11459         * tests/test-inttypes.c (main): Likewise.
11460         * tests/test-link.c (main): Likewise.
11461         * tests/test-lstat.c (main): Likewise.
11462         * tests/test-math.c (main): Likewise.
11463         * tests/test-md5.c (main): Likewise.
11464         * tests/test-memchr2.c (main): Likewise.
11465         * tests/test-memrchr.c (main): Likewise.
11466         * tests/test-mkdir.c (main): Likewise.
11467         * tests/test-mkdirat.c (main): Likewise.
11468         * tests/test-mkfifoat.c (main): Likewise.
11469         * tests/test-open.c (main): Likewise.
11470         * tests/test-openat-safer.c (main): Likewise.
11471         * tests/test-openat.c (main): Likewise.
11472         * tests/test-quotearg.c (main): Likewise.
11473         * tests/test-rawmemchr.c (main): Likewise.
11474         * tests/test-readlink.c (main): Likewise.
11475         * tests/test-remove.c (main): Likewise.
11476         * tests/test-rename.c (main): Likewise.
11477         * tests/test-renameat.c (main): Likewise.
11478         * tests/test-rmdir.c (main): Likewise.
11479         * tests/test-sha1.c (main): Likewise.
11480         * tests/test-signal.c (main): Likewise.
11481         * tests/test-sigaction.c (main): Likewise.
11482         * tests/test-stat.c (main): Likewise.
11483         * tests/test-stat-time.c (main): Likewise.
11484         * tests/test-stddef.c (main): Likewise.
11485         * tests/test-stdint.c (main): Likewise.
11486         * tests/test-stdio.c (main): Likewise.
11487         * tests/test-stdlib.c (main): Likewise.
11488         * tests/test-strchrnul.c (main): Likewise.
11489         * tests/test-strerror.c (main): Likewise.
11490         * tests/test-string.c (main): Likewise.
11491         * tests/test-strtod.c (main): Likewise.
11492         * tests/test-strverscmp.c (main): Likewise.
11493         * tests/test-symlink.c (main): Likewise.
11494         * tests/test-symlinkat.c (main): Likewise.
11495         * tests/test-sys_stat.c (main): Likewise.
11496         * tests/test-sys_time.c (main): Likewise.
11497         * tests/test-time.c (main): Likewise.
11498         * tests/test-unistd.c (main): Likewise.
11499         * tests/test-unlink.c (main): Likewise.
11500         * tests/test-unlinkat.c (main): Likewise.
11501         * tests/test-utimens.c (main): Likewise.
11502         * tests/test-utimensat.c (main): Likewise.
11503         * tests/test-version-etc.c (main): Likewise.
11504         * tests/test-wchar.c (main): Likewise.
11505         * tests/test-wctype.c (main): Likewise.
11506         * tests/test-xprintf-posix.c (main): Likewise.
11507         * tests/test-posixtm.c (main): Likewise.
11508         (STREQ): Delete unused macro.
11509         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
11510         shadowed variables.
11511         * tests/test-memchr.c (main): Likewise.
11512
11513 2009-10-21  Eric Blake  <ebb9@byu.net>
11514
11515         areadlinkat: avoid failure on older glibc
11516         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
11517         rather than mis-comparing 0 against FUNC_RESULT of char*.
11518
11519 2009-10-21  Bruno Haible  <bruno@clisp.org>
11520
11521         * modules/stpncpy (License): Relicense under LGPLv2+.
11522         Reported by David Lutterkort <lutter@redhat.com>.
11523
11524 2009-10-20  Eric Blake  <ebb9@byu.net>
11525
11526         utimensat: work around Solaris 9 bug
11527         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
11528         has trailing slash bugs.
11529         * tests/test-lutimens.h (test_lutimens): Enhance test.
11530         * tests/test-utimens.h (test_utimens): Likewise.
11531         * doc/posix-functions/utime.texi (utime): Enhance documentation.
11532         * doc/posix-functions/utimes.texi (utimes): Likewise.
11533         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
11534         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
11535         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
11536         * doc/posix-functions/futimens.texi (futimens): Likewise.
11537
11538         fdutimensat: new module
11539         * modules/fdutimensat: New file.
11540         * lib/fdutimensat.c (fdutimensat): Likewise.
11541         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
11542         * MODULES.html.sh (File system functions): Mention module.
11543         * modules/fdutimensat-tests: New test.
11544         * tests/test-fdutimensat.c: Likewise.
11545
11546         doc: regenerate INSTALL
11547         * doc/INSTALL: Reflect recent autoconf update.
11548         * doc/INSTALL.ISO: Likewise.
11549         * doc/INSTALL.UTF-8: Likewise.
11550
11551 2009-10-20  Pádraig Brady  <P@draigBrady.com>
11552
11553         acl: warn if ACL support is not detected
11554         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
11555
11556 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
11557
11558         * lib/nproc.h: Add extern "C" block for C++.
11559
11560 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
11561             Bruno Haible  <bruno@clisp.org>
11562
11563         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
11564         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
11565         * doc/posix-functions/isalpha.texi: Likewise.
11566         * doc/posix-functions/isblank.texi: Likewise.
11567         * doc/posix-functions/iscntrl.texi: Likewise.
11568         * doc/posix-functions/isdigit.texi: Likewise.
11569         * doc/posix-functions/isgraph.texi: Likewise.
11570         * doc/posix-functions/islower.texi: Likewise.
11571         * doc/posix-functions/isprint.texi: Likewise.
11572         * doc/posix-functions/ispunct.texi: Likewise.
11573         * doc/posix-functions/isspace.texi: Likewise.
11574         * doc/posix-functions/isupper.texi: Likewise.
11575         * doc/posix-functions/isxdigit.texi: Likewise.
11576
11577 2009-10-18  Bruno Haible  <bruno@clisp.org>
11578
11579         Tests for module 'isblank'.
11580         * modules/isblank-tests: New file.
11581         * tests/test-isblank.c: New file.
11582
11583         New module 'isblank'.
11584         * lib/isblank.c: New file.
11585         * m4/isblank.m4: New file.
11586         * modules/isblank: New file.
11587         * doc/posix-functions/isblank.texi: Mention the new module.
11588
11589 2009-10-18  Bruno Haible  <bruno@clisp.org>
11590
11591         New module 'ctype'.
11592         * lib/ctype.in.h: New file.
11593         * m4/ctype.m4: New file.
11594         * modules/ctype: New file.
11595         * doc/posix-headers/ctype.texi: Mention the new module.
11596
11597 2009-10-18  Jim Meyering  <meyering@redhat.com>
11598
11599         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
11600         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
11601         right after its initialization, rather than farther down.
11602         Keeping these in close proximity makes it easier to ensure
11603         that each such variable is initialized.  E.g.,
11604
11605             LIB_CLOCK_GETTIME=
11606             AC_SUBST([LIB_CLOCK_GETTIME])
11607
11608         This change also increments these serial numbers.
11609         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
11610         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
11611         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11612
11613 2009-10-18  Bruno Haible  <bruno@clisp.org>
11614
11615         Don't let environment variables perturb build.
11616         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
11617         (gl_PREREQ_GETHRXTIME): ... not here.
11618
11619 2009-10-18  Bruno Haible  <bruno@clisp.org>
11620
11621         Avoid symlink attack in localcharset module.
11622         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
11623         (O_NOFOLLOW): Define fallback.
11624         (get_charset_aliases): Don't open the file if it is a symbolic link.
11625         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
11626         gl_FCNTL_H.
11627         (gl_FCNTL_H): Require it.
11628         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
11629         * modules/localcharset (Files): Add m4/fcntl_h.m4.
11630         Reported by Fergal Glynn <fglynn@veracode.com>.
11631
11632 2009-10-18  Bruno Haible  <bruno@clisp.org>
11633
11634         Implement nproc for mingw.
11635         * lib/nproc.c: Include <windows.h>
11636         (num_processors): On native Windows platforms, try GetSystemInfo.
11637
11638 2009-10-18  Bruno Haible  <bruno@clisp.org>
11639
11640         Implement nproc for IRIX.
11641         * lib/nproc.c: Include <sys/sysmp.h>.
11642         (num_processors): On IRIX systems, try sysmp.
11643         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
11644
11645 2009-10-18  Bruno Haible  <bruno@clisp.org>
11646
11647         Implement nproc for HP-UX.
11648         * lib/nproc.c: Include <sys/pstat.h>
11649         (num_processors): On HP-UX systems, try pstat_getdynamic.
11650         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
11651         pstat_getdynamic.
11652
11653 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
11654             Bruno Haible  <bruno@clisp.org>
11655
11656         Implement nproc for NetBSD, OpenBSD.
11657         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
11658         (ARRAY_SIZE): New macro.
11659         (num_processors): On BSD systems, try sysctl of HW_NCPU.
11660         * m4/nproc.m4: New file.
11661         * modules/nproc (Files): Add m4/nproc.m4.
11662         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
11663         (Makefile.am): Instead, augment lib_SOURCES.
11664
11665 2009-10-18  Bruno Haible  <bruno@clisp.org>
11666
11667         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
11668         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
11669         sys/param.h.
11670
11671 2009-10-16  Eric Blake  <ebb9@byu.net>
11672
11673         utimensat: new module
11674         * modules/utimensat: New file.
11675         * lib/utimensat.c (utimensat): Likewise.
11676         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11677         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
11678         so we can work around Linux bugs.
11679         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
11680         * modules/sys_stat (Makefile.am): Substitute them.
11681         * lib/sys_stat.in.h (utimensat): Declare it.
11682         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
11683         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
11684         * modules/utimensat-tests: New test.
11685         * tests/test-utimensat.c: Likewise.
11686
11687         utimens: let lutimens work on non-symlinks
11688         * lib/utimens.c (lutimens): Fall back to utimens rather than
11689         failing with ENOSYS, when file is not a symlink.
11690         (utimens): Reduce redirection.
11691         * tests/test-lutimens.h (test_lutimens): Update test to cover
11692         non-symlinks.
11693         * tests/test-utimens.h (test_utimens): Update test to cover
11694         symlinks.
11695         * tests/test-utimens.c (main): Update caller.
11696
11697         utimens: cache whether utimensat syscall works
11698         * lib/utimens.c (utimensat_works_really): New cache variable.
11699         (fdutimens, lutimens): Use it to avoid failing syscall.
11700
11701         test-stat-time, test-utimens: improve portability
11702         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
11703         ext4 on alpha, and for cygwin.
11704         * tests/test-utimens-common.h: New file.
11705         (nap): Factor delays into single function.
11706         * tests/test-lutimens.h (test_lutimens): Use new header.
11707         * tests/test-futimens.h (test_futimens): Likewise.
11708         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
11709         timestamps to occur from same machine, as was done previously for
11710         test_utimens.
11711         * modules/utimens-tests (Files): Ship new file.
11712         * modules/futimens-tests (Files): Likewise.
11713         Reported in part by Jim Meyering.
11714
11715         sys_stat: sort replacement declarations
11716         * lib/sys_stat.in.h: Sort declarations.
11717         * lib/futimens.c (futimens): Fix typo.
11718
11719 2009-10-15  Jim Meyering  <meyering@redhat.com>
11720
11721         don't let environment settings perturb build
11722         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
11723         could cause a configure-time and/or build-time malfunction.
11724         Typically, a configure-time function-in-library test is performed
11725         via code like this:
11726
11727           LIB_VAR=
11728           AC_SUBST([LIB_VAR])
11729           prefix_saved_LIBS=$LIBS
11730             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
11731                        [test "$ac_cv_search_FUNC" = "none required" ||
11732                         LIB_VAR=$ac_cv_search_FUNC])
11733           LIBS=$prefix_saved_LIBS
11734
11735         However, in each of the files affected by this change, the LIB_VAR=
11736         initialization was omitted.  Thus, when set in the environment, its
11737         value would propagate into generated Makefiles when FUNC is not found
11738         in LIB_NAME.
11739         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
11740         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
11741         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11742
11743 2009-10-14  Eric Blake  <ebb9@byu.net>
11744
11745         fchdir: avoid infinite recursion in mingw
11746         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
11747         recursing.
11748
11749         test-stat-time: port to mingw
11750         * tests/test-stat-time.c (force_unlink): Return a value.
11751         (test_ctime) [W32]: Fix compilation error.
11752         (nap): Don't call usleep with too large an argument.  Use
11753         force_unlink.
11754         * doc/pastposix-functions/usleep.texi (usleep): Document the
11755         portability issue.
11756
11757 2009-10-13  Jim Meyering  <meyering@redhat.com>
11758
11759         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
11760         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
11761         * modules/pipe-filter-ii: Likewise.
11762         * modules/sys_socket-tests: Likewise.
11763         * modules/tsearch-tests: Likewise.
11764         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
11765         (check): Depend on it.
11766
11767 2009-10-12  Eric Blake  <ebb9@byu.net>
11768
11769         utimens-tests: port to NFS file systems
11770         * tests/test-utimens.h (test_utimens): Refactor utimecmp
11771         comparisons to avoid spurious failures from timestamp drift
11772         between NFS machines.
11773
11774 2009-10-12  Eric Blake  <ebb9@byu.net>
11775
11776         stat-time-tests: minor cleanups
11777         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
11778         * tests/test-stat-time.c (nap): Separate assignment from call.
11779         Suggested by Paolo Bonzini and Bruno Haible.
11780
11781         sys_stat: guarantee struct timespec
11782         * lib/sys_stat.in.h (includes): Always include <time.h>
11783         * modules/sys_stat (Depends-on): Add time.
11784         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
11785         mode_t permission values.
11786         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
11787         get at subsecond timestamps.
11788
11789 2009-10-10  Eric Blake  <ebb9@byu.net>
11790
11791         futimens: new module
11792         * modules/futimens: New file.
11793         * lib/futimens.c (futimens): Likewise.
11794         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
11795         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
11796         we can work around Linux bugs.
11797         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
11798         * modules/sys_stat (Makefile.am): Substitute them.
11799         * lib/sys_stat.in.h (futimens): Declare it.
11800         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
11801         * doc/posix-functions/futimens.texi (futimens): Likewise.
11802         * modules/futimens-tests: New test.
11803         * tests/test-futimens.c: Likewise.
11804
11805         utimens: introduce fdutimens
11806         * lib/utimens.h (fdutimens): New prototype.
11807         * lib/utimens.c (gl_futimens): Move guts...
11808         (fdutimens): ...to new interface.
11809         * tests/test-utimens.c (do_fdutimens): Use it.
11810
11811         utimens: add UTIME_NOW and UTIME_OMIT support
11812         * lib/utimens.c (validate_timespec, update_timespec): New helper
11813         functions.
11814         (gl_futimens, lutimens): Use them.
11815         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
11816         stdbool, sys_stat.
11817         (Link): Mention resulting library dependency.
11818         * modules/utimecmp (Link): Likewise.
11819         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
11820         (Makefile.am): Pick up library dependency.
11821         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
11822         definition.
11823         * tests/test-sys_stat.c: Test the definitions.
11824         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
11825         * NEWS: Document library dependency.
11826
11827         utimecmp: support symlink timestamps
11828         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
11829         hashing when possible.  Use pathconf when available.
11830         (SYSCALL_RESOLUTION): Recognize tighter resolution.
11831         * modules/utimecmp (Depends-on): Add lstat.
11832
11833         utimens: add lutimens interface
11834         * lib/utimens.c (lutimens): New function.
11835         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
11836         * lib/utimens.h (lutimens): Declare new interface.
11837         * tests/test-utimens.c (main): Enhance test.
11838         * tests/test-lutimens.h (test_lutimens): New file.
11839         * modules/utimens-tests (Files): Distribute it.
11840         (Depends-on): Add symlink.
11841         (configure.ac): Check for usleep.
11842
11843         utimens: validate futimens usage
11844         * lib/utimens.c (gl_futimens): Require valid fd up front, using
11845         fewer syscalls on failure later on.  Avoid compiler warning on
11846         mingw.
11847         * modules/utimens (Depends-on): Add dup2.
11848
11849         utimens: add test
11850         * modules/utimens-tests: New test.
11851         * tests/test-utimens.h: New file.
11852         * tests/test-futimens.h: Likewise.
11853         * tests/test-utimens.c: Likewise.
11854
11855         doc: mention timestamp portability issues
11856         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
11857         instead.
11858         * doc/posix-functions/utime.texi (utime): Likewise.
11859         * doc/posix-functions/utimes.texi (utimes): Likewise.
11860         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
11861         instead.
11862         * doc/posix-functions/futimens.texi (futimens): Mention utimens
11863         module.
11864         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
11865         Mention weakness with symlink timestamps.
11866         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
11867         to utimensat/futimens instead.
11868         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
11869
11870         test-dup2: enhance test
11871         * tests/test-dup2.c (main): Also check AT_FDCWD.
11872
11873         test-stat-time: avoid more spurious failures
11874         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
11875         xfs; and avoid race if the two timestamps cross quantization edge.
11876
11877         relocatable: prefer 'file system' over 'filesystem'
11878         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
11879         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
11880         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
11881         * doc/relocatable.texi (Enabling Relocatability): Likewise.
11882         * lib/relocatable.c (compute_curr_prefix): Likewise.
11883
11884 2009-10-10  Jim Meyering  <meyering@redhat.com>
11885
11886         stat-time-tests: check for the usleep function
11887         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
11888
11889 2009-10-10  Bruno Haible  <bruno@clisp.org>
11890
11891         * modules/xnanosleep: Put the Link section after the Include section.
11892
11893 2009-10-09  Eric Blake  <ebb9@byu.net>
11894
11895         dup2: work around FreeBSD 6.1 bug
11896         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
11897         * doc/posix-functions/dup2.texi (dup2): Document it.
11898         Reported by Nelson H. F. Beebe and Jim Meyering.
11899
11900         test-stat-time: port to buggy NFS clients
11901         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
11902         (test_ctime): Also skip test if mtime and ctime are skewed.
11903
11904         maint: prefer 'file system' over 'filesystem'
11905         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
11906         * doc/posix-functions/lstat.texi (lstat): Likewise.
11907         * lib/file-has-acl.c (file_has_acl): Likewise.
11908         * lib/fwriteerror.c [TEST]: Likewise.
11909         * tests/test-areadlink.h (test_areadlink): Likewise.
11910         * tests/test-areadlinkat-with-size.c (main): Likewise.
11911         * tests/test-areadlinkat.c (main): Likewise.
11912         * tests/test-canonicalize-lgpl.c (main): Likewise.
11913         * tests/test-canonicalize.c (main): Likewise.
11914         * tests/test-fstatat.c (main): Likewise.
11915         * tests/test-linkat.c (main): Likewise.
11916         * tests/test-lstat.h (test_lstat_func): Likewise.
11917         * tests/test-mkdir.h (test_mkdir): Likewise.
11918         * tests/test-readlink.h (test_readlink): Likewise.
11919         * tests/test-remove.c (main): Likewise.
11920         * tests/test-rename.h (test_rename): Likewise.
11921         * tests/test-renameat.c (main): Likewise.
11922         * tests/test-rmdir.h (test_rmdir_func): Likewise.
11923         * tests/test-symlink.h (test_symlink): Likewise.
11924         * tests/test-symlinkat.c (main): Likewise.
11925         * tests/test-unlink.h (test_unlink_func): Likewise.
11926         * tests/test-unlinkat.c (main): Likewise.
11927
11928         maint: make realtime library usage explicit
11929         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
11930         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
11931         * modules/settime (Link): Likewise.
11932         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
11933
11934         test-stat-time: speed up execution
11935         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
11936         warning on mingw.
11937         (nap): New helper function.
11938         (prepare_test): Use it to reduce sleep time.
11939         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
11940         execution.
11941         * modules/stat-time-tests (configure.ac): Check for usleep.
11942
11943 2009-10-09  Jim Meyering  <meyering@redhat.com>
11944
11945         selinux-h: always use getfilecon wrappers
11946         * lib/getfilecon.c: New file.
11947         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
11948         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
11949         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
11950         (fgetfilecon): Provide a stub.
11951         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
11952         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
11953         file unconditionally.
11954         When <selinux/selinux.h> is found, arrange to use wrappers.
11955         * modules/selinux-h (Files): Add getfilecon.c.
11956         (Makefile.am): Substitute include-next-related bits
11957         into the now-always-generated selinux/selinux.h file.
11958         * doc/glibc-functions/lgetfilecon.texi: New file.
11959         * doc/glibc-functions/fgetfilecon.texi: New file.
11960         * doc/glibc-functions/getfilecon.texi: New file.
11961         * doc/glibc-functions/getfilecon-desc.texi: New file.
11962         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
11963         which to pull in the new files.
11964         * MODULES.html.sh (Misc): Add selinux-h.
11965
11966 2009-10-08  Jim Meyering  <meyering@redhat.com>
11967
11968         unistd: fix comment typo
11969         * lib/unistd.in.h (euidaccess): Fix a comment typo.
11970
11971 2009-10-08  Eric Blake  <ebb9@byu.net>
11972
11973         areadlink: use SIZE_MAX consistently
11974         * modules/areadlink (Depends-on): Add stdint.
11975         * modules/areadlink-with-size (Depends-on): Likewise.
11976         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
11977         gives NULL; drop sys/types, since unistd gives size_t; and add
11978         stdint for SIZE_MAX.
11979         (SIZE_MAX): Rely on headers.
11980         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
11981         and add stdint.
11982         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
11983         (SIZE_MAX): Likewise.
11984         (INITIAL_BUF_SIZE): Turn into enum.
11985         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
11986
11987 2009-10-08  Jim Meyering  <meyering@redhat.com>
11988
11989         areadlinkat: avoid compilation failure
11990         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
11991         Fix typo in comment.
11992
11993 2009-10-07  Eric Blake  <ebb9@byu.net>
11994
11995         areadlinkat-with-size: new module
11996         * modules/areadlinkat-with-size: New module.
11997         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
11998         * lib/areadlink.h (areadlinkat): Declare it.
11999         * MODULES.html.sh (File system functions): Mention it.
12000         * modules/areadlinkat-with-size-tests: New test.
12001         * tests/test-areadlinkat-with-size.c: New file.
12002
12003         xreadlinkat: new module
12004         * modules/xreadlinkat: New module.
12005         * lib/xreadlinkat.c (xreadlinkat): New file.
12006         * lib/xreadlink.h (xreadlinkat): Declare it.
12007         * MODULES.html.sh (File system functions): Mention it.
12008
12009         areadlinkat: new module
12010         * lib/at-func.c (FUNC_FAIL): New define.
12011         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
12012         * modules/areadlinkat: New module.
12013         * lib/linkat.c (areadlinkat): Move...
12014         * lib/areadlinkat.c (areadlinkat): ...to new file.
12015         * lib/areadlink.h (areadlinkat): Declare it.
12016         * modules/linkat (Depends-on): Add areadlinkat.
12017         * MODULES.html.sh (File system functions): Mention it.
12018         * modules/areadlinkat-tests: New test.
12019         * tests/test-areadlinkat.c: New file.
12020
12021         areadlink, areadlink-with-size: add tests
12022         * modules/areadlink-tests: New test.
12023         * modules/areadlink-with-size-tests: Likewise.
12024         * tests/test-areadlink.h: New file.
12025         * tests/test-areadlink.c: Likewise.
12026         * tests/test-areadlink-with-size.c: Likewise.
12027
12028         maint: minor cleanups
12029         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
12030         _UNUSED_PARAMETER_ instead.
12031         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
12032         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
12033         * modules/linkat-tests (Files): Distribute test-link.h.
12034
12035         openat, utimens: whitespace cleanup
12036         * lib/openat.c: Prefer space throughout, rather than mix of 8
12037         spaces vs. tabs.
12038         * lib/at-func.c: Likewise.
12039         * lib/utimens.c: Likewise.
12040
12041         openat: avoid using wrong fd
12042         * lib/openat.c (openat_permissive): Reject user's fd if saving the
12043         working directory chooses same fd.
12044         * lib/at-func.c (AT_FUNC_NAME): Likewise.
12045
12046         mkdir, mkdirat: fix cygwin 1.5.x bug
12047         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
12048         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
12049         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
12050         bug.
12051         (gl_PREREQ_MKDIR): Delete unused macro.
12052         * modules/mkdir (Files): Track file rename.
12053         (configure.ac): Update macro name.
12054         * modules/openat (Depends-on): Add mkdir.
12055         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
12056
12057         mkdir, mkdirat: add tests
12058         * modules/mkdir-tests: New test.
12059         * tests/test-mkdir.h: New file.
12060         * tests/test-mkdir.c: Likewise.
12061         * tests/test-mkdirat.c: Likewise.
12062         * modules/openat-tests (Files): Add new files.
12063         (Makefile.am): Run new test.
12064
12065 2009-10-06  Eric Blake  <ebb9@byu.net>
12066
12067         doc: tweak *at function documentation
12068         * doc/posix-functions/faccessat.texi (faccessat): Mention
12069         known issue with replacement.
12070         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
12071         * doc/posix-functions/linkat.texi (linkat): Likewise.
12072         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
12073         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
12074         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
12075         * doc/posix-functions/renameat.texi (renameat): Likewise.
12076         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
12077
12078         openat: fix GNU/Hurd bug in unlinkat
12079         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
12080         broken.
12081         * doc/posix-functions/unlink.texi (unlink): Document this.
12082         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
12083
12084         fdopendir: fix GNU/Hurd bug
12085         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
12086         allowing non-directory fds.
12087         * lib/fdopendir.c (rpl_fdopendir): Work around it.
12088         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
12089         * modules/dirent (Makefile.am): Substitute it.
12090         * lib/dirent.in.h (fdopendir): Declare replacement.
12091         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
12092         * tests/test-fdopendir.c (main): Test something other than
12093         /dev/null, since on Hurd that behaves like a directory.
12094
12095         test-symlink: port to GNU/Hurd
12096         * tests/test-symlink.h (test_symlink): Relax expected errno.
12097
12098         doc: tweak more cygwin information
12099         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
12100         now compatible with glibc.
12101         * doc/posix-functions/getopt.texi (getopt): Likewise.
12102
12103         getopt-gnu: add another test
12104         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
12105         guarantee behavior relied on by m4.
12106         * tests/test-getopt.c (main): Use it.
12107         * modules/getopt-posix-tests (Depends-on): Add setenv.
12108         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
12109
12110         getopt: fix compilation on darwin
12111         * lib/getopt.in.h (includes): Leave breadcrumbs during system
12112         include.
12113         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
12114         Reported by Ludovic Courtès.
12115
12116 2009-10-06  Bruno Haible  <bruno@clisp.org>
12117
12118         * modules/size_max (Description): Discourage its use.
12119         Reported by Simon Josefsson.
12120
12121 2009-10-06  Jim Meyering  <meyering@redhat.com>
12122
12123         linkat: avoid compilation failure
12124         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
12125
12126 2009-10-05  Eric Blake  <ebb9@byu.net>
12127
12128         linkat: support Linux 2.6.17
12129         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
12130         linkat on Linux, but allow cache variable override.
12131         * lib/linkat.c (rpl_linkat): Define override.
12132         * modules/linkat (Depends-on): Add symlinkat.
12133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
12134         * modules/unistd (Makefile.am): Substitute it.
12135         * lib/unistd.in.h (linkat): Declare replacement.
12136         Reported by Pádraig Brady.
12137
12138         quotearg: port test to systems with C.UTF-8 locale
12139         * tests/test-quotearg.c (struct result_strings): Add another
12140         member, differentiating between C.ASCII and C.UTF-8 handling.
12141         (compare_strings): Add parameter.
12142         (main): Adjust all callers.
12143
12144         getopt: avoid clash with FreeBSD _getopt_internal
12145         * lib/getopt.in.h (_getopt_internal): Override the name.
12146         * lib/getopt_int.h (includes): Pick up any overrides.
12147         Reported by Reuben Thomas.
12148
12149         hash: allow C89 compilation
12150         * lib/hash.c (check_tuning): Move declaration before statement.
12151         Reported by Reuben Thomas.
12152
12153 2009-10-05  Karl Berry  <karl@gnu.org>
12154
12155         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
12156
12157 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
12158             Bruno Haible  <bruno@clisp.org>
12159
12160         * lib/uname.c (uname): Use a table-driven algorithm to compute
12161         Windows NT versions.
12162
12163 2009-10-04  Bruno Haible  <bruno@clisp.org>
12164
12165         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
12166         program_invocation_short_name.
12167         * modules/progname (configure.ac): Test for presence of
12168         program_invocation_short_name.
12169         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
12170
12171 2009-10-04  Bruno Haible  <bruno@clisp.org>
12172
12173         * lib/progname.c (set_program_name): Fix comment.
12174         Reported by Jim Meyering.
12175
12176 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
12177             Bruno Haible  <bruno@clisp.org>
12178
12179         * lib/uname.c: Include <string.h>.
12180         (uname): Do only one call to GetVersionEx in the common case.
12181
12182 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
12183             Bruno Haible  <bruno@clisp.org>
12184
12185         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
12186         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
12187         (uname): Add support for Windows CE and various non-x86 CPU types.
12188
12189 2009-10-03  Bruno Haible  <bruno@clisp.org>
12190
12191         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
12192         invocation to tests/configure.ac.
12193         Reported by Ian Beckwith <ianb@erislabs.net>.
12194
12195 2009-10-02  Eric Blake  <ebb9@byu.net>
12196
12197         fchdir: avoid compiler warning
12198         * lib/fchdir.c (canonicalize_file_name)
12199         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
12200
12201         test-open: support mingw errno values
12202         * tests/test-open.h (test_open): Relax test.
12203         * tests/test-fopen.h (test_fopen): Likewise.
12204         * tests/test-openat-safer.c (main): Likewise.
12205
12206         open: fix opening directory on mingw
12207         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
12208
12209         test-open: on GNU/Hurd, /dev/null is a directory
12210         * tests/test-fopen.h (main): Rename...
12211         (test_fopen): ...to this.  Use a guaranteed non-directory when
12212         confirming open behavior on trailing slash.
12213         * tests/test-openat-safer.c (main): Likewise.
12214         * tests/test-open.h (main): Likewise....
12215         (test_open): ...to this.
12216         * tests/test-fopen.c (main): Adjust caller.
12217         * tests/test-fopen-safer.c (main): Likewise.
12218         * tests/test-open.c (main): Likewise.
12219         * tests/test-fcntl-safer.c (main): Likewise.
12220         Reported by Samuel Thibault.
12221
12222         rename, fchdir: don't ignore chdir failure
12223         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
12224         * lib/rename.c (rpl_rename) [W32]: Likewise.
12225         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
12226         an empty destination directory if source cannot be renamed,
12227         although there is still possibility for failure.
12228         * doc/posix-functions/rename.texi (rename): Document the race.
12229         Reported by Jim Meyering.
12230
12231         maint: cleanup whitespace in recent commits
12232         * lib/rename.c (rpl_rename): Remove tabs.
12233         * tests/test-link.h (test_link): Likewise.
12234         * lib/fchdir.c (get_name): Likewise.
12235         Reported by Jim Meyering.
12236
12237 2009-10-02  Ben Pfaff  <blp@gnu.org>
12238
12239         relocatable-prog-wrapper: Add missing dependency on
12240         double-slash-root.
12241         * modules/relocatable-prog-wrapper: Add dependency.
12242         Reported by Ian Beckwith <ianb@erislabs.net>.
12243
12244 2009-10-02  Eric Blake  <ebb9@byu.net>
12245
12246         renameat: fix Solaris bugs
12247         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
12248         needed fixing.
12249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
12250         * modules/stdio (Makefile.am): Substitute it.
12251         * lib/stdio.in.h (renameat): Declare replacement.
12252         * lib/renameat.c (rpl_renameat): Implement fix.
12253
12254         renameat: new module
12255         * modules/renameat: New file.
12256         * lib/renameat.c (renameat): Likewise.
12257         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
12258         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
12259         * modules/stdio (Makefile.am): Substitute them.
12260         * lib/stdio.in.h (renameat): Declare it.
12261         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12262         * doc/posix-functions/renameat.texi (renameat): Likewise.
12263         * modules/renameat-tests: New test.
12264         * tests/test-renameat.c: Likewise.
12265
12266         rename: fix mingw bugs
12267         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
12268         directory overwrite bugs.
12269
12270         rename: fix another cygwin 1.5 bug
12271         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
12272         checks.
12273         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
12274         unnecessary cygwin workarounds.  Also work around bug with moving
12275         full directory onto an empty one.
12276         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
12277
12278         rename-dest-slash: merge into rename module
12279         * modules/rename-dest-slash (Status): Mark obsolete.
12280         (Depends-on): Add rename.
12281         (Files): Let rename do it all.
12282         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
12283         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
12284         * m4/rename-dest-slash.m4: ...so this file can be deleted.
12285         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
12286         * lib/rename.c (rpl_rename): Update comments.
12287
12288         rename: fix cygwin 1.5.x bugs
12289         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
12290         * lib/rename.c (rpl_rename): Work around them.
12291         * modules/rename (Depends-on): Add same-inode.
12292
12293         rename: fix Solaris 10 bug
12294         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
12295         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
12296         was the only bug.
12297
12298         rename: fix Solaris 9 bug
12299         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
12300         on non-directory.  Avoid calling exit.
12301         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
12302         strdup.
12303         * modules/rename-tests (Depends-on): Drop lstat.
12304         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
12305         (gl_PREREQ_RENAME): Delete unused macro.
12306
12307         rename-dest-slash: fix NetBSD bug
12308         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
12309         links.
12310         * modules/rename-dest-slash (Depends-on): Add same-inode.
12311
12312         rename-tests: new test, exposes several platform bugs
12313         * modules/rename-tests: New file.
12314         * tests/test-rename.h: Likewise.
12315         * tests/test-rename.c: Likewise.
12316         * doc/posix-functions/rename.texi (rename): Improve documentation,
12317         including bugs that will eventually be fixed in gnulib.
12318
12319 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
12320
12321         * lib/uname.c: Include <stdlib.h>
12322         (uname): Assume version info is available.
12323
12324 2009-10-02  Jim Meyering  <meyering@redhat.com>
12325
12326         gnu-web-doc-update: correct --help output
12327         * build-aux/gnu-web-doc-update: Make --help output relevant.
12328
12329         gnu-web-doc-update: add standard options
12330         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
12331
12332         gnu-web-doc-update: New module.
12333         Use this script to automatically update the on-line web documentation
12334         for your GNU project at http://www.gnu.org/software/$pkg/manual/
12335         * modules/gnu-web-doc-update: New file, from coreutils.
12336         * build-aux/gnu-web-doc-update: New script.
12337
12338 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
12339
12340         link: LoadLibrary is not needed.
12341         * lib/link.c: Use GetModuleHandle.
12342
12343 2009-10-01  Eric Blake  <ebb9@byu.net>
12344
12345         getopt: bump serial number
12346         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
12347         change.
12348
12349         tests: tighten link, rmdir, and remove tests
12350         * tests/test-link.h (includes): No need to use <config.h> here.
12351         Clean up if directory hard link was created, otherwise test for
12352         trailing '.'.
12353         * tests/test-linkat.c (main): Simplify.
12354         * tests/test-remove.c (main): Enhance test for trailing '.'.
12355         * tests/test-rmdir.h (test_rmdir_func): Likewise.
12356
12357 2009-10-01  Jim Meyering  <meyering@redhat.com>
12358
12359         maint.mk: requiring "make major" was annoying, for a "minor" release.
12360         What is intended is "stable", to contrast with alpha and beta,
12361         so require "make stable", not "make major".
12362         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
12363         (get_tool_versions): Likewise.
12364         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
12365
12366 2009-09-30  Ben Pfaff  <blp@gnu.org>
12367
12368         Fix broken build of replacement for Windows tmpfile().
12369         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
12370         flags argument added along with the 'mkostemp' module.
12371
12372 2009-09-28  Bruno Haible  <bruno@clisp.org>
12373
12374         Avoid identifier clash with POSIX function 'remove' defined as a macro.
12375         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
12376         to 'remove_elt'.
12377         (gl_list_remove): Update.
12378         * lib/gl_list.c (gl_list_remove): Update.
12379         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
12380         to 'remove_elt'.
12381         (gl_oset_remove): Update.
12382         * lib/gl_list.c (gl_oset_remove): Update.
12383         Reported by Eric Blake.
12384
12385 2009-09-28  Eric Blake  <ebb9@byu.net>
12386
12387         doc: mention yet more cygwin 1.7 status
12388         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
12389         cygwin.
12390         * doc/glibc-functions/execvpe.texi (execvpe): New file.
12391         * doc/gnulib.texi (Glibc unistd.h): Mention it.
12392
12393         argp: fix test failure
12394         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
12395         that are not upper-case.  Pass correct range to tolower.
12396
12397 2009-09-27  Jim Meyering  <meyering@redhat.com>
12398
12399         test-yesno: work around sparc-dash here-document infelicity
12400         Without this change, the literal \177 byte in a here document
12401         would make dash 0.5.5.1-3 access uninitialized memory.
12402         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
12403         Instead, use a marker, "@", and filter through tr to create the desired
12404         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
12405
12406 2009-09-27  Bruno Haible  <bruno@clisp.org>
12407
12408         Disable untested support for new flavours of ACLs on AIX.
12409         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
12410         progress.
12411         * lib/set-mode-acl.c (qset_acl): Likewise.
12412
12413 2008-12-07  Bruno Haible  <bruno@clisp.org>
12414
12415         Add support for new flavours of ACLs on AIX. (Untested.)
12416         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
12417         (file_has_acl): Add support for newer AIX.
12418         * lib/set-mode-acl.c (qset_acl): Likewise.
12419         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
12420         Rainer Tammer <tammer@tammer.net>.
12421
12422 2009-09-26  Eric Blake  <ebb9@byu.net>
12423
12424         argp: fix compilation of getopt
12425         * lib/getopt.in.h (includes): Use different guard than glibc.
12426         Reported by Sergey Poznyakoff.
12427
12428         doc: mention more cygwin 1.7 status
12429         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
12430         bug.
12431         * doc/posix-functions/execl.texi (execl): Likewise.
12432         * doc/posix-functions/execle.texi (execle): Likewise.
12433         * doc/posix-functions/execlp.texi (execlp): Likewise.
12434         * doc/posix-functions/execv.texi (execv): Likewise.
12435         * doc/posix-functions/execve.texi (execve): Likewise.
12436         * doc/posix-functions/execvp.texi (execvp): Likewise.
12437         * doc/glibc-functions/canonicalize_file_name.texi
12438         (canonicalize_file_name): Cygwin 1.7 now provides this.
12439         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
12440         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
12441         on AT_SYMLINK_NOFOLLOW.
12442
12443 2009-09-24  Eric Blake  <ebb9@byu.net>
12444
12445         test-linkat: make test more robust
12446         * tests/test-linkat.c (main): Avoid collision with EEXIST.
12447
12448         getopt: fix inclusion guards for cygwin
12449         * modules/getopt-posix (Depends-on): Add include-next.
12450         (Makefile.am): Substitute more items in replacement header.
12451         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
12452         <getopt.h>.
12453         * lib/getopt.in.h (includes): Use split inclusion guard, and
12454         prefer <getopt.h> over include <unistd.h> when one is present.
12455         (option): Also override name of 'struct option'.
12456
12457         same-inode: revert prior change; it is not yet ready
12458         * NEWS: Undo mention of this change.
12459         * lib/same-inode.h (same-inode.h): Undo tri-state change.
12460         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
12461         * lib/cycle-check.c (cycle_check): Likewise.
12462         * lib/same.c (same_name): Likewise.
12463         * lib/at-func2.c (at_func2): Likewise.
12464
12465 2009-09-23  Eric Blake  <ebb9@byu.net>
12466
12467         linkat: new module
12468         * modules/linkat: New file.
12469         * lib/at-func2.c (at_func2): Likewise.
12470         * lib/linkat.c (linkat): Likewise.
12471         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
12472         * lib/openat-priv.h (at_func2): Add declaration.
12473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
12474         * modules/unistd (Makefile.am): Substitute them.
12475         * lib/unistd.in.h (linkat): Declare it.
12476         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12477         * doc/posix-functions/linkat.texi (linkat): Likewise.
12478         * doc/posix-functions/link.texi (link): Tweak wording.
12479         * tests/test-link.c (main): Move guts...
12480         * tests/test-link.h (test_link): ...into new file.
12481         * modules/linkat-tests: New test.
12482         * tests/test-linkat.c: Likewise.
12483         * modules/link-tests (Files): Ship new file.
12484         (Depends-on): Add stdbool.
12485
12486         dirname: add library-safe mdir_name
12487         * lib/dirname.h (mdir_name): New prototype.
12488         * lib/dirname.c (dir_name): Move guts...
12489         (mdir_name): ...to new function that avoids xalloc_die.
12490
12491         fchdir: another mingw fix
12492         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
12493         * lib/fchdir.c (get_name): New helper method; skips canonicalize
12494         on mingw (where it has not yet been ported), and make it optional
12495         elsewhere.
12496         (_gl_register_fd): Use it.
12497
12498         same-inode: make SAME_INODE tri-state, to port to mingw
12499         * NEWS: Mention this change.
12500         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
12501         st_ino always being 0.
12502         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
12503         * lib/cycle-check.c (cycle_check): Likewise.
12504         * lib/same.c (same_name): Likewise.
12505
12506         lstat: avoid mingw compilation error
12507         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
12508         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
12509         lstat ourselves.
12510         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
12511         was adequate.
12512         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
12513         the checks for lstat.
12514         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
12515
12516         link: fix test failure on Solaris 9
12517         * lib/link.c (rpl_link): Don't assume link will catch bogus
12518         trailing slash on source.
12519
12520         test-symlinkat: enhance test
12521         * tests/test-readlink.c (main): Move guts...
12522         * tests/test-readlink.h (test_readlink): ...into new file.
12523         * tests/test-symlink.c (main): Move guts...
12524         * tests/test-symlink.h (test_symlink): ...into new file.
12525         * tests/test-symlinkat.c (main): Use new files for further
12526         coverage.
12527         (do_symlink, do_readlink): New helper functions.
12528         * modules/symlink-tests (Files): Ship new file.
12529         (Depends-on): Add stdbool.
12530         * modules/readlink-tests (Files): Ship new file.
12531         (Depends-on): Add stdbool.
12532         * modules/symlinkat-tests (Files): Use new files.
12533
12534 2009-09-23  Eric Blake  <ebb9@byu.net>
12535
12536         readlink: document portability issue with symlink length
12537         * doc/posix-functions/lstat.texi (lstat): Mention that some file
12538         systems have bogus st_size on symlinks, and mention the
12539         areadlink-with-size module.
12540         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
12541         * doc/posix-functions/readlink.texi (readlink): Mention the
12542         areadlink module, and ERANGE failure.
12543         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
12544         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
12545
12546         readlink: fix Solaris 9 bug with trailing slash
12547         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
12548         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
12549         * doc/posix-functions/readlink.texi (readlink): Document this.
12550         * modules/readlink-tests: New test.
12551         * tests/test-readlink.c: Likewise.
12552
12553         readlink: fix cygwin 1.5.x bug with return type
12554         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
12555         * lib/unistd.in.h (readlink): Use ssize_t.
12556         * lib/readlink.c (readlink): Likewise.
12557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12558         * modules/unistd (Makefile.am): Substitute it.
12559         * lib/unistd.in.h (readlink): Declare replacement.
12560         * doc/posix-functions/readlink.texi (readlink): Document this.
12561
12562         symlink: use throughout gnulib
12563         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
12564         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
12565         symlink is not used.
12566         * modules/symlinkat (Depends-on): Add symlink.
12567         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
12568         * modules/canonicalize-tests (Depends-on): Likewise.
12569         * modules/lstat-tests (Depends-on): Likewise.
12570         * modules/openat-tests (Depends-on): Likewise.
12571         * modules/remove-tests (Depends-on): Likewise.
12572         * modules/rmdir-tests (Depends-on): Likewise.
12573         * modules/unlink-tests (Depends-on): Likewise.
12574         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
12575         * tests/test-canonicalize.c (symlink): Likewise.
12576         * tests/test-fstatat.c (symlink): Likewise.
12577         * tests/test-lstat.c (symlink): Likewise.
12578         * tests/test-remove.c (symlink): Likewise.
12579         * tests/test-rmdir.c (symlink): Likewise.
12580         * tests/test-unlink.c (symlink): Likewise.
12581         * tests/test-unlinkat.c (symlink): Likewise.
12582
12583         symlink: new module, for Solaris 9 bug
12584         * modules/symlink: New file.
12585         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
12586         * lib/symlink.c: Likewise.
12587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
12588         * modules/unistd (Makefile.am): Substitute them.
12589         * lib/unistd.in.h (symlink): Declare replacement.
12590         * MODULES.html.sh (File system functions): Mention it.
12591         * doc/posix-functions/symlink.texi (symlink): Likewise.
12592         * modules/symlink-tests: New test.
12593         * tests/test-symlink.c: Likewise.
12594
12595 2009-09-23  Bruno Haible  <bruno@clisp.org>
12596
12597         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
12598         when needed.
12599         Test case: gnulib-tool --import --with-tests atexit inttypes.
12600         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
12601
12602 2009-09-23  Bruno Haible  <bruno@clisp.org>
12603
12604         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
12605         subcommand, not in a subshell.
12606
12607 2009-09-22  Eric Blake  <ebb9@byu.net>
12608
12609         unistd: sort replacement declarations
12610         * lib/unistd.in.h: Sort declarations.
12611
12612         open, openat: minor optimization
12613         * lib/open.c (open): If open succeeded, len is non-zero.
12614         * lib/openat.c (rpl_openat): Likewise.
12615
12616         link-follow: ensure correct result
12617         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
12618         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
12619         distinguish between possible failures.
12620
12621 2009-09-21  Eric Blake  <ebb9@byu.net>
12622
12623         fts: avoid compiler warning
12624         * lib/fts.c (dirent_inode_sort_may_be_useful)
12625         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
12626
12627 2009-09-19  Bruno Haible  <bruno@clisp.org>
12628
12629         * lib/progreloc.c (canonicalize_file_name): New declaration.
12630
12631 2009-09-19  Eric Blake  <ebb9@byu.net>
12632
12633         link: fix quoting
12634         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
12635
12636         openat: fix openat bugs on Solaris 9
12637         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
12638         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
12639         * modules/openat (Depends-on): Add open.
12640         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
12641         * modules/fcntl-h (Makefile.am): Substitute it.
12642         * lib/fcntl.in.h (openat): Declare replacement.
12643         * doc/posix-functions/openat.texi (openat): Document this.
12644
12645         openat: move fstatat and unlinkat into correct files
12646         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
12647         compiled.
12648         * lib/openat.c (fstatat, unlinkat): Move...
12649         * lib/fstatat.c (fstatat): ...into correct files.
12650         * lib/unlinkat.c (unlinkat): Likewise.
12651
12652         openat: fix unlinkat bugs on Solaris 9
12653         * lib/unlinkat.c (unlinkat): New file.
12654         * modules/openat (Depends-on): Add unlink.
12655         (Files): Distribute it.
12656         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
12657         trailing slash behavior is broken.
12658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12659         * modules/unistd (Makefile.am): Substitute it.
12660         * lib/unistd.in.h (unlinkat): Declare replacement.
12661         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
12662
12663         openat: fix fstatat bugs on Solaris 9
12664         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
12665         stat.
12666         * doc/posix-functions/fstatat.texi (fstatat): Document this.
12667
12668         test-unlinkat: enhance test, to expose Solaris 9 bug
12669         * tests/test-unlink.c (main): Factor guts...
12670         * tests/test-unlink.h (test_rmdir_func): ...into new file.
12671         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
12672         * tests/test-rmdir.c (main): Adjust caller.
12673         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
12674         (unlinker): New helper function.
12675         (rmdirat): Enhance check.
12676         * modules/rmdir-tests (Depends-on): Add stdbool.
12677         * modules/unlink-tests (Depends-on): Likewise.
12678         (Files): Add test-unlink.h.
12679         * modules/openat-tests (Files): Likewise.
12680         (Depends-on): Add unlinkdir.
12681
12682         test-fstatat: new test, to expose Solaris 9 bugs
12683         * tests/test-stat.c (main): Factor guts...
12684         * tests/test-stat.h (test_stat_func): ...into new file.
12685         * tests/test-lstat.c (main): Factor guts...
12686         * tests/test-lstat.h (test_lstat_func): ...into new file.
12687         * tests/test-fstatat.c: New file.
12688         * modules/stat-tests (Files): Add test-stat.h.
12689         * modules/lstat-tests (Files): Add test-lstat.h.
12690         (Depends-on): Add stdbool.
12691         * modules/openat-tests (Depends-on): Add pathmax.
12692         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
12693         (Makefile.am): Run new test.
12694
12695         remove: new module, for mingw and Solaris 9 bugs
12696         * modules/remove: New file.
12697         * lib/remove.c: Likewise.
12698         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
12699         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
12700         * modules/stdio (Makefile.am): Use them.
12701         * lib/stdio.in.h (remove): Declare replacement.
12702         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12703         * doc/posix-functions/remove.texi (remove): Likewise.
12704         * modules/remove-tests: New test.
12705         * tests/test-remove.c: Likewise.
12706
12707         unlink: new module, for Solaris 9 bug
12708         * modules/unlink: New file.
12709         * lib/unlink.c: Likewise.
12710         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
12712         * modules/unistd (Makefile.am): Use them.
12713         * lib/unistd.in.h (stat): Declare replacement.
12714         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12715         * doc/posix-functions/unlink.texi (unlink): Likewise.
12716         * modules/unlink-tests: New test.
12717         * tests/test-unlink.c: Likewise.
12718
12719         lstat: fix Solaris 9 bug
12720         * lib/lstat.c (lstat): Also check for trailing slash on
12721         non-symlink, non-directories.  Use stat module to simplify logic.
12722         * doc/posix-functions/lstat.texi (lstat): Document it.
12723         * modules/lstat-tests (Depends-on): Add errno, same-inode.
12724         (configure.ac): Check for symlink.
12725         * tests/test-lstat.c (main): Add more tests.
12726
12727         stat: add as dependency to other modules
12728         * modules/chown (Depends-on): Add stat.
12729         * modules/euidaccess (Depends-on): Likewise.
12730         * modules/fchdir (Depends-on): Likewise.
12731         * modules/isdir (Depends-on): Likewise.
12732         * modules/link (Depends-on): Likewise.
12733         * modules/lstat (Depends-on): Likewise.
12734         * modules/mkdir-p (Depends-on): Likewise.
12735         * modules/modechange (Depends-on): Likewise.
12736         * modules/open (Depends-on): Likewise.
12737         * modules/readlink (Depends-on): Likewise.
12738         * modules/same (Depends-on): Likewise.
12739
12740         stat: fix Solaris 9 bug
12741         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
12742         slash.
12743         * lib/stat.c (rpl_stat): Work around it.
12744         * doc/posix-functions/stat.texi (stat): Update documentation.
12745
12746         stat: new module, for mingw bug
12747         * modules/stat: New file.
12748         * lib/stat.c: Likewise.
12749         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12750         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
12751         * modules/sys_stat (Makefile.am): Use them.
12752         * lib/sys_stat.in.h (stat): Declare replacement.
12753         * lib/openat.c (fstatat): Deal with lstat and stat being function
12754         macros.
12755         * modules/openat (Depends-on): Add inline.
12756         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12757         * doc/posix-functions/stat.texi (stat): Likewise.
12758         * modules/stat-tests: New test.
12759         * tests/test-stat.c: Likewise.
12760
12761 2009-09-19  Jim Meyering  <meyering@redhat.com>
12762
12763         syntax-check: detect unnecessary inclusion of canonicalize.h
12764         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
12765
12766 2009-09-19  Eric Blake  <ebb9@byu.net>
12767
12768         canonicalize-lgpl: adjust clients to use correct header
12769         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
12770         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
12771         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
12772         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
12773         * lib/progreloc.c (includes): Likewise.
12774
12775 2009-09-19  Jim Meyering  <meyering@redhat.com>
12776
12777         test-posixtm.c: correct a comment
12778         * tests/test-posixtm.c: Correct first-line comment.
12779         Spotted by Eric Blake.
12780
12781 2009-09-16  Jim Meyering  <meyering@redhat.com>
12782
12783         posixtm-tests: make T const-correct; add a test case
12784         * tests/test-posixtm.c (T): Declare const.
12785         Add a test for -(2^31+1).
12786         Remove useless can-succeed-only-in-2002 test.
12787
12788         posixtm-tests: adjust the sole failing test
12789         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
12790         expected output matches what mktime now produces.  Cross-checked via
12791         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
12792
12793         posixtm: move #ifdef'd tests into a new module
12794         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
12795         * tests/test-posixtm.c: ... this new file.
12796         * modules/posixtm-tests: New module.
12797
12798 2009-09-19  Eric Blake  <ebb9@byu.net>
12799
12800         openat: simplify use of at-func.c
12801         * lib/at-func.c (includes): Include prerequisites here, to
12802         simplify requirements on client files.
12803         * lib/openat-priv.h: Add double-inclusion guard.
12804         * lib/faccessat.c (includes): Simplify.
12805         * lib/fchmodat.c (includes): Likewise.
12806         * lib/fchownat.c (includes): Likewise.
12807         * lib/mkdirat.c (includes): Likewise.
12808         * lib/mkfifoat.c (includes): Likewise.
12809         * lib/symlinkat.c (includes): Likewise.
12810
12811         openat: allow return of fd 0
12812         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
12813         * modules/save-cwd (Depends-on): Replace fcntl-safer with
12814         unistd-safer.
12815         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
12816         <fcntl.h>; this module does not leak fds.
12817         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
12818         must be allowed to return 0, leaving openat_safer to add the
12819         safety.
12820         (openat_permissive): Avoid writing to just-opened fd 2 if
12821         restoring the current directory fails.
12822         * lib/openat-die.c (openat_restore_fail): Add comment.
12823         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
12824         (save_cwd): Guarantee safe fd, but without use of open_safer.
12825         * tests/test-openat.c: New test.
12826         * modules/openat-tests (Files, Makefile.am): Distribute and build
12827         new file.
12828
12829         relocatable-prog-wrapper: fix build
12830         * modules/relocatable-prog-wrapper (Files): Update name of
12831         canonicalize m4 file, broken on 2009-09-17.
12832         Reported by emad hajjar <aleppos@hotmail.com>.
12833
12834 2009-09-19  Bruno Haible  <bruno@clisp.org>
12835
12836         * lib/safe-alloc.h: Use the standard header with GPL copyright.
12837         * lib/safe-alloc.c: Likewise.
12838         Reported by Ian Beckwith <ianb@erislabs.net>.
12839
12840 2009-09-18  Bruno Haible  <bruno@clisp.org>
12841
12842         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
12843         Reported by <erobles@sensacd.com.mx>.
12844
12845 2009-09-17  Eric Blake  <ebb9@byu.net>
12846
12847         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
12848         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
12849         slashes when checking if last component is missing.
12850         * tests/test-canonicalize.c (main): Test this.
12851
12852         canonicalize, canonicalize-lgpl: honor // if distinct from /
12853         * modules/canonicalize (Files): Add double-slash-root.m4.
12854         * modules/canonicalize-lgpl (Files): Likewise.
12855         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
12856         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
12857         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
12858         fallback definition.
12859         (canonicalize_filename_mode): Use it to protect //.
12860         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
12861         (__realpath): Likewise.
12862         * tests/test-canonicalize.c (main): Test this.
12863         * tests/test-canonicalize-lgpl.c (main): Likewise.
12864         * modules/canonicalize-tests (Depends-on): Add same-inode.
12865         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
12866
12867         canonicalize-lgpl: fix glibc bug with trailing slash
12868         * m4/canonicalize-lgpl.m4: Move contents...
12869         * m4/canonicalize.m4: ...here.
12870         (gl_CANONICALIZE_LGPL): Factor realpath check...
12871         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
12872         glibc 2.3.5 bug, fixed 2005-04-27.
12873         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
12874         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
12875         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
12876         * modules/canonicalize-lgpl (Files): Manage file rename.
12877         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
12878         * modules/stdlib (Makefile.am): Substitute witness.
12879         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
12880         is needed.
12881         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
12882         replacement is required.
12883         * lib/canonicalize.c (canonicalize_file_name): Likewise.
12884         * doc/glibc-functions/canonicalize_file_name.texi
12885         (canonicalize_file_name): Document this.
12886         * doc/posix-functions/realpath.texi (realpath): Likewise.
12887
12888         canonicalize-lgpl: reject non-directory with trailing slash
12889         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
12890         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
12891         catches failures in glibc 2.3.5.
12892         * tests/test-canonicalize.c (main): Likewise.
12893
12894         canonicalize-lgpl: use native realpath if it works
12895         * lib/canonicalize-lgpl.c (realpath): Guard with
12896         FUNC_REALPATH_WORKS.
12897         * lib/stdlib.in.h (realpath): Make declaration optional based on
12898         HAVE_REALPATH.
12899         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
12900         native realpath works.
12901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
12902         * modules/stdlib (Makefile.am): Substitute witness.
12903
12904         canonicalize, canonicalize-lgpl: use <stdlib.h>
12905         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
12906         (Include): Mention <stdlib.h>.
12907         (configure.ac): Mention functions we provide.
12908         * modules/canonicalize (configure.ac): Likewise.
12909         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
12910         realpath if canonicalize_file_name is missing.
12911         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
12912         * modules/stdlib (Makefile.am): Substitute witnesses.
12913         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
12914         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
12915         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
12916         * NEWS: Document this.
12917         * doc/glibc-functions/canonicalize_file_name.texi
12918         (canonicalize_file_name): Likewise.
12919         * doc/posix-functions/realpath.texi (realpath): Likewise.
12920         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
12921
12922         test-canonicalize: consolidate into single C program
12923         * tests/test-canonicalize.sh: Delete; move setup into...
12924         * tests/test-canonicalize.c (main): ...the program, making it
12925         easier to run in debugger.  Add some tests.
12926         * modules/canonicalize-tests (Files): Remove unused file.
12927         (Depends-on): Add progname.
12928         (configure.ac, Makefile.am): Simplify.
12929
12930         test-canonicalize-lgpl: consolidate into single C program
12931         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
12932         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
12933         easier to run in debugger.  Add some tests.
12934         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
12935         (configure.ac, Makefile.am): Simplify.
12936
12937         canonicalize: avoid resolvepath
12938         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
12939         unnecessary checks.
12940         * lib/canonicalize.c (includes): Simplify.
12941         (canonicalize_file_name): Drop resolvepath implementation.
12942         * modules/canonicalize (Depends-on): Drop filenamecat.
12943
12944         canonicalize: don't lose errno
12945         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
12946         over calls to free.
12947
12948         canonicalize: simplify errno handling
12949         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
12950         assignment.
12951
12952         canonicalize, canonicalize-lgpl: update module dependencies
12953         * modules/canonicalize (Depends-on): Add extensions, lstat,
12954         pathmax, stdlib.
12955         (Files): Drop pathmax.h.
12956         (configure.ac): Adjust macro name.
12957         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
12958         lstat, stdlib, sys_stat.
12959         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
12960         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
12961         extensions.
12962         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
12963         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
12964         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
12965         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
12966         declaration, if available.
12967         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
12968         we can rely on the readlink module.
12969         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
12970         (includes): Use <unistd.h> unconditionally.
12971
12972 2009-09-17  Eric Blake  <ebb9@byu.net>
12973
12974         maint: make Include sections of modules consistent
12975         * modules/alloca: Use only header name; no need to list #include.
12976         * modules/alloca-opt: Likewise.
12977         * modules/arpa_inet: Likewise.
12978         * modules/canon-host: Likewise.
12979         * modules/configmake: Likewise.
12980         * modules/dirent: Likewise.
12981         * modules/eealloc: Likewise.
12982         * modules/environ: Likewise.
12983         * modules/fchdir: Likewise.
12984         * modules/fcntl: Likewise.
12985         * modules/fcntl-h: Likewise.
12986         * modules/gethrxtime: Likewise.
12987         * modules/gettime: Likewise.
12988         * modules/ignore-value: Likewise.
12989         * modules/inet_ntop: Likewise.
12990         * modules/inet_pton: Likewise.
12991         * modules/inttypes: Likewise.
12992         * modules/isnand-nolibm: Likewise.
12993         * modules/isnanf-nolibm: Likewise.
12994         * modules/mbchar: Likewise.
12995         * modules/mbfile: Likewise.
12996         * modules/mbiter: Likewise.
12997         * modules/mbuiter: Likewise.
12998         * modules/netdb: Likewise.
12999         * modules/netinet_in: Likewise.
13000         * modules/nproc: Likewise.
13001         * modules/pagealign_alloc: Likewise.
13002         * modules/poll: Likewise.
13003         * modules/printf-frexp: Likewise.
13004         * modules/pthread: Likewise.
13005         * modules/putenv: Likewise.
13006         * modules/random_r: Likewise.
13007         * modules/relocatable-prog: Likewise.
13008         * modules/search: Likewise.
13009         * modules/select: Likewise.
13010         * modules/selinux-h: Likewise.
13011         * modules/settime: Likewise.
13012         * modules/signal: Likewise.
13013         * modules/size_max: Likewise.
13014         * modules/socklen: Likewise.
13015         * modules/ssize_t: Likewise.
13016         * modules/stdarg: Likewise.
13017         * modules/stdbool: Likewise.
13018         * modules/stddef: Likewise.
13019         * modules/stdint: Likewise.
13020         * modules/stdio: Likewise.
13021         * modules/stdlib: Likewise.
13022         * modules/string: Likewise.
13023         * modules/strings: Likewise.
13024         * modules/sys_file: Likewise.
13025         * modules/sys_ioctl: Likewise.
13026         * modules/sys_select: Likewise.
13027         * modules/sys_socket: Likewise.
13028         * modules/sys_stat: Likewise.
13029         * modules/sys_time: Likewise.
13030         * modules/sys_times: Likewise.
13031         * modules/sys_utsname: Likewise.
13032         * modules/sys_wait: Likewise.
13033         * modules/sysexits: Likewise.
13034         * modules/time: Likewise.
13035         * modules/times: Likewise.
13036         * modules/tmpfile: Likewise.
13037         * modules/trim: Likewise.
13038         * modules/unistd: Likewise.
13039         * modules/wchar: Likewise.
13040         * modules/wctype: Likewise.
13041
13042 2009-09-17  Bruno Haible  <bruno@clisp.org>
13043
13044         Make getdate.y compile on QNX and NetBSD 5 / i386.
13045         * m4/getdate.m4 (gl_GETDATE): Conditionally define
13046         TIME_T_FITS_IN_LONG_INT.
13047         * lib/getdate.y (long_time_t): New type.
13048         (relative_time): Change type of 'seconds' field to long_time_t.
13049         (get_date): Update types of local variables. Check against overflow
13050         during conversion from long_time_t to time_t.
13051         Reported by Matt Kraai <kraai@ftbfs.org>
13052         and Hasso Tepper <hasso@netbsd.org>.
13053
13054 2009-09-17  Bruno Haible  <bruno@clisp.org>
13055
13056         * modules/COPYING: Update copyright years.
13057         * modules/README: Likeiwse.
13058         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
13059         Reported by Ian Beckwith <ianb@erislabs.net>.
13060
13061 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
13062
13063         * users.txt: Update references for gnuit package.
13064
13065 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
13066
13067         * m4/getdelim.m4: Fix typo in copyright line.
13068
13069 2009-09-17  Bruno Haible  <bruno@clisp.org>
13070
13071         * lib/atoll.c: Use the standard header with GPL copyright.
13072         * lib/argz.in.h: Likewise.
13073         * lib/glob.c: Likewise.
13074         * lib/glob-libc.h: Likewise.
13075         * lib/random_r.c: Likewise.
13076         * lib/siglist.h: Likewise.
13077         * lib/strsignal.c: Likewise.
13078         Reported by Ian Beckwith <ianb@erislabs.net>.
13079
13080 2009-09-17  Eric Blake  <ebb9@byu.net>
13081
13082         rmdir: ensure correct dependency order
13083         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
13084
13085 2009-09-17  Bruno Haible  <bruno@clisp.org>
13086
13087         Disable assertion that fails on NetBSD 5 / i386.
13088         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
13089         Reported by Sam Steingold <sds@gnu.org>
13090         and Hasso Tepper <hasso@netbsd.org>.
13091
13092 2009-09-16  Eric Blake  <ebb9@byu.net>
13093
13094         unlinkdir: port to mingw
13095         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
13096         on which no one can unlink a directory.
13097
13098         stdlib: sort witness names
13099         * modules/stdlib (Makefile.am): Sort replacements.
13100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
13101         * lib/stdlib.in.h: Likewise.
13102
13103         parse-duration-tests: avoid link failure
13104         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
13105         LIBINTL.
13106         Reported by Tom G. Christensen.
13107
13108         openat-tests: ensure unlinkat behaves like rmdir
13109         * tests/test-rmdir.c (main): Factor guts...
13110         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
13111         * modules/rmdir-tests (Files): Ship new file.
13112         * modules/openat-tests: New test.
13113         * tests/test-unlinkat.c: Likewise.
13114
13115         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
13116         * modules/rmdir-errno (Status, Notice): Now obsolete.
13117
13118         rmdir: work around cygwin 1.5.x and mingw bugs
13119         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
13120         * lib/rmdir.c (rmdir): Work around it.
13121         * modules/rmdir (Status, Notice): No longer obsolete.
13122         (Files): Add dos.m4.
13123         (Depends-on): Add unistd.
13124         (configure.ac): Set witnesses.
13125         (License): Relax to LGPLv2+.
13126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
13127         * modules/unistd (Makefile.am): Substitute witnesses.
13128         * lib/unistd.in.h (rmdir): Declare replacement.
13129         * doc/posix-functions/rmdir.texi (rmdir): Document this.
13130         * modules/rmdir-tests: New tests.
13131         * tests/test-rmdir.c: Likewise.
13132
13133 2009-09-15  Eric Blake  <ebb9@byu.net>
13134
13135         fchdir: improve use of replacement functions
13136         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
13137         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
13138         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
13139         REPLACE_CLOSEDIR.
13140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
13141         * modules/sys_stat (Makefile.am): Substitute correct witness.
13142         * modules/dirent (Makefile.am): Likewise.
13143         * modules/unistd (Makefile.am): Likewise.
13144         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
13145         * lib/unistd.in.h (dup): Likewise.
13146         * lib/sys_stat.in.h (fstat): Likewise.
13147
13148         maint: ignore gnulib-tool temp files
13149         * .gitignore: Ignore files created during gnulib-tool --test.
13150
13151 2009-09-13  Jim Meyering  <meyering@redhat.com>
13152
13153         posixtm: don't reject a time that specify "60" as the number of seconds
13154         * lib/posixtm.c (posixtime): The code to reject invalid dates
13155         would also reject a time specified with the .60 suffix.
13156         But POSIX allows that, in order to accommodate leap seconds.
13157         So don't reject it.
13158         (main): Adjust tests accordingly.
13159         * modules/posixtm (Depends-on): Add stpcpy.
13160
13161 2009-09-11  Jim Meyering  <meyering@redhat.com>
13162
13163         announce-gen: include [$release_type] in emitted Subject:
13164         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
13165         e.g., [stable] in the emitted Subject: line.
13166
13167 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13168
13169         Remove obsolete macros from several modules.
13170         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
13171         obsolete Autoconf macros with their modern counterparts.
13172         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
13173         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
13174         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
13175         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
13176         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
13177         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13178         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
13179         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13180         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
13181         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
13182         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13183         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13184         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
13185         * m4/sockets.m4 (gl_SOCKETS): Likewise.
13186         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
13187         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
13188         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
13189         * m4/time_r.m4 (gl_TIME_R): Likewise.
13190         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
13191         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
13192         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
13193
13194         Fix copyright header in build-aux scripts.
13195         * build-aux/git-version-gen: Fix copyright header to match GPLv3
13196         recommendation.
13197         * build-aux/ncftpput-ftp: Likewise.
13198         * build-aux/update-copyright: Likewise.
13199
13200 2009-09-09  Eric Blake  <ebb9@byu.net>
13201
13202         test-link: allow Linux choice of errno
13203         * tests/test-link.c (main): Relax test for alternate error.
13204
13205         strndup: fix improper m4 caching
13206         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
13207         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
13208         (gl_PREREQ_STRNDUP): Delete.
13209         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
13210         * modules/string (Makefile.am): Substitute it.
13211         * lib/string.in.h (strndup): Modernize prototype.
13212
13213         getcwd: port to mingw
13214         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
13215         different from the POSIX assumptions made throughout the getcwd
13216         module; fortunately, the mingw getcwd does not need replacement.
13217         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
13218         * modules/getcwd-tests: New test.
13219         * tests/test-getcwd.c: Likewise.
13220
13221         link: fix platform bugs
13222         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
13223         * lib/link.c (link): Work around them.  Fix related mingw bug.
13224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
13225         * modules/unistd (Makefile.am): Substitute it.
13226         * lib/unistd.in.h (link): Declare replacement.
13227         * doc/posix-functions/link.texi (link): Document this.
13228         * modules/link (Depends-on): Add strdup-posix, sys_stat.
13229
13230         test-link: consolidate into single C program, test more cases
13231         * tests/test-link.sh: Delete.
13232         * tests/test-link.c: Test more error conditions.  Exposes bugs on
13233         at least Cygwin and Solaris.
13234         * modules/link-tests (Files): Remove unused file.
13235         (Depends-on): Add errno, sys_stat.
13236         (Makefile.am): Simplify.
13237
13238 2009-09-08  Bruno Haible  <bruno@clisp.org>
13239
13240         Work around towlower, towupper bug on mingw.
13241         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
13242         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
13243         * doc/posix-functions/towlower.texi: Mention the mingw bug.
13244         * doc/posix-functions/towupper.texi: Likewise.
13245         Reported by Eric Blake.
13246
13247 2009-09-08  Jim Meyering  <meyering@redhat.com>
13248
13249         build: don't try to run autoheader if we don't use it
13250         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
13251         is not used in configure.ac.
13252
13253 2009-09-08  Eric Blake  <ebb9@byu.net>
13254
13255         euidaccess: fix compilation error
13256         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
13257
13258         rawmemchr: relax license
13259         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
13260         okay.
13261         Reported by Jim Meyering.
13262
13263         mkfifoat: new module
13264         * modules/mkfifoat: New file.
13265         * lib/mkfifoat.c: Likewise.
13266         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
13267         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
13268         * modules/sys_stat (Makefile.am): Use them.
13269         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
13270         * MODULES.html.sh (File system functions): Mention module.
13271         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
13272         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
13273         * modules/mkfifoat-tests: New test.
13274         * tests/test-mkfifoat.c: Likewise.
13275
13276         strchrnul: relax license
13277         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
13278         okay.
13279         Reported by Jim Meyering.
13280
13281 2009-09-08  Eric Blake  <ebb9@byu.net>
13282
13283         fstatat: fix compilation on Solaris
13284         * lib/fstatat.c (includes): Add fcntl.h.
13285         Reported by Pádraig Brady.
13286
13287 2009-09-07  Eric Blake  <ebb9@byu.net>
13288
13289         rename: modernize replacement
13290         * modules/rename (Depends-on): Add stdio.
13291         (configure.ac): Declare witness.
13292         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
13293         stdio take care of replacement.
13294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
13295         * modules/stdio (Makefile.am): Substitute them.
13296         * lib/stdio.in.h (rename): Declare replacement.
13297         * lib/rename.c (includes): Allow cross-compilation to non-windows
13298         machines.
13299         * doc/posix-functions/rename.texi (rename): Improve
13300         documentation.
13301
13302         stdio: sort witness names
13303         * modules/stdio (Makefile.am): Sort replacements.
13304         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13305         * lib/stdio.in.h: Likewise.
13306
13307         getcwd: minor cleanups
13308         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
13309         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
13310
13311         openat: provide more convenience names
13312         * modules/faccessat (configure.ac): Add C witness.
13313         * lib/unistd.in.h (readlinkat): Fix typo.
13314         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
13315         convenience wrappers.
13316         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
13317         wrappers in syntax checks.
13318
13319 2009-09-06  Eric Blake  <ebb9@byu.net>
13320
13321         doc: fix comments in recent patches
13322         * lib/faccessat.c: Mention correct function.
13323         * lib/fchmodat.c: Likewise.
13324         * lib/fchownat.c: Likewise.
13325         * lib/symlinkat.c: Likewise.
13326         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
13327         constants.
13328
13329         faccessat, symlinkat: continue cleanup of previous patch
13330         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
13331         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
13332         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
13333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
13334         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
13335         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
13336         set.
13337
13338 2009-09-06  Bruno Haible  <bruno@clisp.org>
13339
13340         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
13341         (fstatat): Declare if GNULIB_FSTATAT is set.
13342         (mkdirat): Declare if GNULIB_MKDIRAT is set.
13343         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
13344         (unlinkat): Declare if GNULIB_UNLINKAT is set.
13345         * modules/fcntl-h (Files): Remove m4/openat.m4.
13346         * modules/sys_stat (Files): Remove m4/openat.m4.
13347         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
13348         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
13349         * modules/unistd (Files): Remove m4/openat.m4.
13350         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
13351         GNULIB_OPENAT.
13352         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
13353         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
13354         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
13355         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
13356         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
13357         gl_OPENAT_DEFAULTS.
13358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
13359         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
13360         Don't require gl_OPENAT_DEFAULTS.
13361         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
13362         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
13363         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
13364         (gl_OPENAT_DEFAULTS): Remove macro.
13365
13366 2009-09-06  Bruno Haible  <bruno@clisp.org>
13367
13368         * modules/openat (configure.ac): Remove unneeded witness.
13369
13370 2009-09-06  Bruno Haible  <bruno@clisp.org>
13371
13372         Set errno to ENOSYS when a function is entirely unsupported.
13373         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
13374         EOPNOTSUPP.
13375         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
13376         * modules/chown (Depends-on): Remove errno.
13377
13378 2009-09-06  Bruno Haible  <bruno@clisp.org>
13379
13380         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
13381
13382 2009-09-06  Bruno Haible  <bruno@clisp.org>
13383
13384         * lib/sys_stat.in.h: Fix preprocessor command indentation.
13385
13386 2009-09-06  Ben Pfaff  <blp@gnu.org>
13387             Bruno Haible  <bruno@clisp.org>
13388
13389         Work around a glibc bug in strtok_r.
13390         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
13391         Undefine if UNDEFINE_STRTOK_R is set.
13392         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
13393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13394         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
13395         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
13396         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
13397         UNDEFINE_STRTOK_R.
13398         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
13399
13400 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
13401
13402         exclude: minor fix
13403         * lib/exclude.c: Include wctype.h
13404
13405 2009-09-06  Akim Demaille  <demaille@gostai.com>
13406
13407         bootstrap: improve error message
13408         * build-aux/bootstrap (find_tool): Upon failure, report the list
13409         of candidates.
13410         Honor the initial value of the envvar.
13411
13412 2009-09-05  Eric Blake  <ebb9@byu.net>
13413
13414         symlinkat: new module
13415         * modules/symlinkat: New file.
13416         * lib/symlinkat.c: Likewise.
13417         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
13418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
13419         * modules/unistd (Makefile.am): Use them.
13420         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
13421         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
13422         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
13423         * MODULES.html.sh (File system functions): Mention module.
13424         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
13425         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13426         * modules/symlinkat-tests: New test.
13427         * tests/test-symlinkat.c: Likewise.
13428
13429         test-openat-safer: add more checks
13430         * tests/test-openat-safer.c (main): Check more code paths.
13431
13432 2009-09-05  Jim Meyering  <meyering@redhat.com>
13433
13434         syntax-check: detect unnecessary inclusion of openat.h
13435         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
13436
13437 2009-09-05  Bruno Haible  <bruno@clisp.org>
13438
13439         Support towlower, towupper.
13440         * doc/posix-functions/towlower.texi: Mention module wctype.
13441         * doc/posix-functions/towupper.texi: Likewise.
13442         * lib/wctype.in.h (towlower, towupper): New functions.
13443         * tests/test-wctype.c: Include stdio.h, stdlib.h.
13444         (ASSERT): New macro.
13445         (e): New variable.
13446         (main): Test also towlower, towupper. Test WEOF argument.
13447         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13448
13449 2009-09-05  Bruno Haible  <bruno@clisp.org>
13450
13451         Fix conversion behaviour when the input is invalid.
13452         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
13453         mark occurring in first pass of indirect conversion.
13454         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
13455         input.
13456         Found by clang's static analyzer.
13457
13458 2009-09-05  Bruno Haible  <bruno@clisp.org>
13459
13460         * tests/test-striconveh.c (main): Test indirect conversion on platforms
13461         where direct conversion is possible.
13462
13463 2009-09-04  Eric Blake  <ebb9@byu.net>
13464
13465         openat: fail with ENOENT on empty name
13466         * lib/openat-proc.c (openat_proc_name): Special-case the empty
13467         buffer.
13468
13469         link-follow: fix logic bug in prior patch
13470         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
13471         reversed sense of yes and no in prior patch.  Avoid confusing
13472         compilation failure with desired semantics.
13473
13474         link-follow: accomodate mingw and cross-compilation
13475         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
13476         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
13477         cross-compilation results to -1, to make linkat easier to
13478         implement when cross-compiling.  Trivially support mingw.
13479         * modules/link-follow (configure.ac): Call new name.
13480         * NEWS: Mention this.
13481
13482 2009-09-03  Eric Blake  <ebb9@byu.net>
13483
13484         faccessat: compile replacement
13485         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
13486         needed.
13487
13488         fts: fix compilation error
13489         * lib/fts.c (includes): Re-add "openat.h", for
13490         openat_needs_fchdir.
13491
13492         faccessat: new module
13493         * modules/faccessat: New file.
13494         * lib/faccessat.c: Likewise.
13495         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
13496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13497         * modules/unistd (Makefile.am): Use it.
13498         * lib/unistd.in.h (faccessat): Declare it.
13499         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
13500         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
13501         * MODULES.html.sh (File system functions): Mention it.
13502         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
13503         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
13504
13505         euidaccess: prefer POSIX over non-standard implementation
13506         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
13507         * lib/euidaccess.c (euidaccess): Use it if available.
13508
13509         openat: make template easier to use
13510         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
13511         AT_FUNC_F2 to be undefined.
13512         (VALIDATE_FLAG): New macro; use it to reject bad flags.
13513         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
13514         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
13515         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
13516         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
13517         Likewise.
13518         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
13519         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
13520         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
13521         Likewise.
13522
13523         openat: declare in POSIX headers
13524         * NEWS: Mention this.
13525         * modules/openat (configure.ac): Declare witnesses.
13526         (Depends-on): Add fcntl-h, sys_stat, unistd.
13527         (Include): Mention correct headers.
13528         * modules/fcntl-h (Depends-on): Add link-warning.
13529         (Files): Add openat.m4.
13530         (Makefile.am): Substitute witnesses.
13531         * modules/sys_stat (Files, Makefile.am): Likewise.
13532         * modules/unistd (Files, Makefile.am): Likewise.
13533         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
13534         (gl_OPENAT_DEFAULTS): New macro.
13535         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
13536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
13537         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
13538         (SYS_STAT_H): Remove unused variable.
13539         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
13540         * lib/fcntl--.h (includes): Remove unneeded header.
13541         * lib/openat-safer.c (includes): Likewise.
13542         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
13543         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
13544         appropriate headers.
13545         (__OPENAT_PREFIX): Delete.
13546         * lib/fcntl.in.h (openat): Provide declaration.
13547         (AT_FDCWD): Fix Solaris bug.
13548         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
13549         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
13550         * lib/fchmodat.c (includes):  Adjust to find declaration.
13551         * lib/fchownat.c (includes): Likewise.
13552         * lib/mkdirat.c (includes): Likewise.
13553         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
13554         still visible.
13555
13556 2009-09-02  Eric Blake  <ebb9@byu.net>
13557
13558         errno: use consistently
13559         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
13560         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
13561         * lib/canonicalize.c (ELOOP): Likewise.
13562         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
13563         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
13564         * lib/lchown.c (EOPNOTSUPP): Likewise.
13565         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
13566         * lib/savewd.c (ESTALE): Likewise.
13567         * lib/settime.c (ENOSYS): Likewise.
13568         * lib/utimens.c (ENOSYS): Likewise.
13569         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
13570         * lib/chdir-safer.c (ELOOP): Likewise.
13571         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
13572         * modules/c-stack (Depends-on): Add errno.
13573         * modules/canonicalize (Depends-on): Likewise.
13574         * modules/chdir-safer (Depends-on): Likewise.
13575         * modules/fdopendir (Depends-on): Likewise.
13576         * modules/inet_ntop (Depends-on): Likewise.
13577         * modules/inet_pton (Depends-on): Likewise.
13578         * modules/lchown (Depends-on): Likewise.
13579         * modules/openat (Depends-on): Likewise.
13580         * modules/savewd (Depends-on): Likewise.
13581         * modules/settime (Depends-on): Likewise.
13582         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
13583
13584         fts: avoid leaking fds
13585         * modules/fts (Depends-on): Add cloexec.
13586         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
13587         flag.
13588
13589         fts: make directory fds more robust
13590         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
13591         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
13592
13593         backupfile, chdir-long, fts, savedir: make safer
13594         * lib/backupfile.c (includes): Use "dirent--.h", since
13595         numbered_backup can write to stderr during readdir.
13596         * lib/savedir.c (includes): Likewise.
13597         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
13598         emulation can write to stderr on failure.
13599         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
13600         * lib/getcwd.c: Document why opendir_safer is unused.
13601         * lib/glob.c: Likewise.
13602         * lib/scandir.c: Likewise.
13603         * lib/openat-proc.c: Likewise, for open_safer.
13604         * modules/backupfile (Depends-on): Add dirent-safer.
13605         * modules/savedir (Depends-on): Likewise.
13606         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
13607         * modules/chdir-long (Depends-on): Add openat-safer.
13608
13609         openat-safer: new module
13610         * modules/openat-safer: New file.
13611         * lib/openat-safer.c: Likewise.
13612         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
13613         * lib/fcntl-safer.h (openat_safer): Declare.
13614         * lib/fcntl--.h (openat): Override.
13615         * MODULES.html.sh (File descriptor based I/O): Mention it.
13616         * lib/openat.h: Add double-inclusion guards.
13617         * lib/openat.c (includes): Only include "fcntl-safer.h", not
13618         "fcntl--.h", so we can implement openat.
13619         * modules/openat-safer-tests: New test.
13620         * tests/test-openat-safer.c: New file.
13621
13622         dirent-safer: new module
13623         * modules/dirent-safer: New file.
13624         * lib/dirent--.h: Likewise.
13625         * lib/dirent-safer.h: Likewise.
13626         * lib/opendir-safer.c: Likewise.
13627         * m4/dirent-safer.m4: Likewise.
13628         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
13629         * modules/dirent-safer-tests: New test.
13630         * tests/test-dirent-safer.c: New file.
13631         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
13632
13633         fdopendir: optimize on mingw
13634         * lib/unistd.in.h (_gl_directory_name): New prototype.
13635         * lib/fchdir.c (_gl_directory_name): Implement it.
13636         (fchdir): Use it to simplify implementation.
13637         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
13638         fchdir, when available, to avoid calling [f]chdir().
13639
13640         fdopendir: split into its own module
13641         * lib/openat.c (fdopendir): Move...
13642         * lib/fdopendir.c: ...into new file.
13643         * modules/fdopendir: New module.
13644         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
13645         * modules/openat (Depends-on): Add fdopendir.
13646         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
13647         fdopendir here.
13648         * modules/savedir (Depends-on): Only need fdopendir, not full
13649         openat.
13650         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
13651         * lib/openat.h (fdopendir): Drop prototype.
13652         * lib/dirent.in.h (fdopendir): Provide prototype.
13653         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
13654         * modules/dirent (Makefile.am): Substitute them.
13655         * MODULES.html.sh (File system functions): Mention it.
13656         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
13657         * modules/fdopendir-tests: New file.
13658         * tests/test-fdopendir.c: Likewise.
13659
13660         fchdir: use more consistent macro convention
13661         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
13662         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
13663         REPLACE_FCHDIR, rather than relying on config.h macros.
13664         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
13665         inside a single make-time REPLACE_FCHDIR block, rather than using
13666         the config.h FCHDIR_REPLACEMENT.
13667         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
13668         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
13669         Manage fstat replacement.
13670         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
13671         REPLACE_FCHDIR.
13672         * modules/sys_stat (Files): Add m4/unistd_h.m4.
13673         (Makefile.am): Substitute REPLACE_FCHDIR.
13674         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
13675         FCHDIR_REPLACEMENT.
13676         * lib/dup-safer.c (dup_safer): Likewise.
13677         * lib/dup2.c (rpl_dup2): Likewise.
13678         * lib/dup3.c (rpl_dup3): Likewise.
13679         * lib/open.c (rpl_open): Likewise.
13680
13681         fchdir: simplify error handling, and support dup3
13682         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
13683         stdbool, malloc-posix, realloc-posix.
13684         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
13685         (ensure_dirs_slot): Return false on allocation failure.
13686         (rpl_dup2): Delete.
13687         (_gl_register_dup): New function.
13688         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
13689         (_gl_register_fd): Close fd on allocation failure.
13690         * lib/fcntl.in.h (_gl_register_fd): Update signature.
13691         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
13692         prototype.
13693         (rpl_dup2_fchdir): Delete prototype.
13694         * lib/open.c (open): Update caller.
13695         * lib/dup2.c (dup2): Track fchdir metadata.
13696         * lib/dup3.c (dup3): Likewise.
13697         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
13698         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
13699
13700 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13701
13702         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
13703         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
13704         don't pass arguments to AC_OUTPUT.
13705
13706 2009-09-02  Bruno Haible  <bruno@clisp.org>
13707
13708         * modules/mkdtemp (License): Relicense under LGPLv2+.
13709         Reported by Paolo Bonzini.
13710
13711 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13712
13713         Replace uses of obsolete autoconf macros in Jim's modules.
13714         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
13715         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
13716         can evoke a warning from autoconf when run with -Wobsolete
13717         enabled.  They were declared obsolete for good reasons (see
13718         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
13719         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
13720         should not continue using the deprecated macros.
13721         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
13722         obsolete Autoconf macros with modern counterparts.
13723         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13724         * m4/dos.m4 (gl_AC_DOS): Likewise.
13725         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
13726         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
13727         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
13728         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
13729         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
13730         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
13731         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
13732         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
13733         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
13734         Likewise.
13735         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
13736         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
13737         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
13738         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
13739         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
13740         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
13741
13742 2009-09-01  Eric Blake  <ebb9@byu.net>
13743
13744         fchdir: fix off-by-one bug in previous patch
13745         * lib/fchdir.c (rpl_fstat): Use correct bounds.
13746         (_gl_unregister_fd): Delete useless if.
13747
13748 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
13749
13750         maint.mk: sort the list of syntax-check rules
13751         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
13752         easier to get a sense of progress when the rules are run sequentially
13753         and take a long time.
13754
13755 2009-09-01  Simon Josefsson  <simon@josefsson.org>
13756
13757         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
13758         * modules/netinet_in: Likewise.
13759         * modules/sys_file: Likewise.
13760         * modules/sys_ioctl: Likewise.
13761         * modules/sys_select: Likewise.
13762         * modules/sys_socket: Likewise.
13763         * modules/sys_stat: Likewise.
13764         * modules/sys_time: Likewise.
13765         * modules/sys_times: Likewise.
13766         * modules/sys_utsname: Likewise.
13767         * modules/sys_wait: Likewise.
13768
13769 2009-09-01  Jim Meyering  <meyering@redhat.com>
13770
13771         fts: help ensure that return values are not ignored
13772         * lib/fts_.h (__GNUC_PREREQ): Define.
13773         (__attribute_warn_unused_result__): Define.
13774         (fts_children, fts_close, fts_open, fts_read): Declare with
13775         __attribute_warn_unused_result__.
13776
13777         fts: fts_close now fails also when closing a dir file descriptor fails
13778         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
13779         and propagate to caller, along with errno.
13780
13781         announce-gen: correct formatting in --help output
13782         * build-aux/announce-gen (usage): Move the one-line description in
13783         --help output "up", to where it belongs, just after Usage:.
13784
13785 2009-08-31  Eric Blake  <ebb9@byu.net>
13786
13787         fchdir: port to mingw
13788         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
13789         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
13790         opened, then use a substitute.
13791         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
13792         replacement.
13793         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
13794         (_gl_register_fd): No need to check stat if open already filters
13795         all directories.
13796         (fchdir): Fix error condition to match POSIX.
13797         * modules/fchdir (Depends-on): Add sys_stat.
13798         * doc/posix-functions/open.texi (open): Document the limitation.
13799         * modules/fchdir-tests: New file.
13800         * tests/test-fchdir.c: Likewise.
13801
13802         canonicalize: allow cross-testing from cygwin to mingw
13803         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
13804         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
13805         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
13806         Likewise.
13807         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
13808         target does not support symlinks.
13809         * tests/test-canonicalize-lgpl.sh: Likewise.
13810
13811         chown: avoid compilation warning on mingw
13812         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
13813         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
13814         mingw.
13815         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
13816         * modules/chown (Depends-on): Add errno.
13817
13818 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13819
13820         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
13821         command.
13822
13823 2009-08-31  Jim Meyering  <meyering@redhat.com>
13824
13825         canonicalize: remove useless initialization
13826         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
13827         initialization of local, "end".
13828
13829 2009-08-30  Bruno Haible  <bruno@clisp.org>
13830
13831         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
13832         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
13833         ENOSYS.
13834
13835 2009-08-30  Bruno Haible  <bruno@clisp.org>
13836
13837         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
13838         /usr/xpg4/bin/tr when it exists.
13839         * tests/test-pipe-filter-gi1.sh: Likewise.
13840
13841 2009-08-30  Bruno Haible  <bruno@clisp.org>
13842
13843         Work around deficient /usr/bin/id program on Solaris.
13844         * tests/test-file-has-acl.sh (ID): New variable.
13845         * tests/test-set-mode-acl.sh (ID): Likewise.
13846         * tests/test-copy-acl.sh (ID): Likewise.
13847         * tests/test-copy-file.sh (ID): Likewise.
13848
13849 2009-08-30  Bruno Haible  <bruno@clisp.org>
13850
13851         New module 'xstriconveh'.
13852         * lib/xstriconveh.h: New file.
13853         * lib/xstriconveh.c: New file.
13854         * modules/xstriconveh: New file.
13855
13856 2009-08-30  Bruno Haible  <bruno@clisp.org>
13857
13858         Make it easier to use mem_cd_iconveh.
13859         * lib/striconveh.h (iconveh_t): New type.
13860         (iconveh_open, iconveh_close): New declarations.
13861         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
13862         with a single 'const iconveh_t *' argument.
13863         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
13864         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
13865         with a single 'const iconveh_t *' argument.
13866         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
13867         * tests/test-striconveh.c (main): Update.
13868         * NEWS: Mention the change.
13869
13870 2009-08-30  Bruno Haible  <bruno@clisp.org>
13871
13872         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
13873         problem.
13874
13875 2009-08-30  Bruno Haible  <bruno@clisp.org>
13876
13877         Work around iconv_open problem on Solaris.
13878         * lib/iconv_open-solaris.gperf: New file.
13879         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
13880         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
13881         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
13882         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
13883         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
13884         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
13885
13886 2009-08-29  Jim Meyering  <meyering@redhat.com>
13887
13888         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
13889         * top/maint.mk (cvs-check): Remove target; it was just an alias
13890         to the better-named vc-diff-check.
13891         (maintainer-distcheck): Remove rule.  It was used only from
13892         the (alpha/beta/major) target, and all of its commands but one
13893         were coreutils-specific.
13894         (vc-dist): Remove rule.
13895         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
13896         Run vc-diff-check, not vc-dist.
13897         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
13898
13899 2009-08-27  Bruno Haible  <bruno@clisp.org>
13900
13901         * tests/test-bitrotate.c (main): Remove test that uses a shift count
13902         of 0.
13903
13904 2009-08-27  Bruno Haible  <bruno@clisp.org>
13905
13906         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
13907         compilers.
13908         * doc/func.texi: Document the SunPRO C bug.
13909
13910 2009-08-27  Bruno Haible  <bruno@clisp.org>
13911
13912         Fix link error on Solaris.
13913         * tests/test-parse-duration.c (xstrdup): Remove function.
13914
13915 2009-08-26  Pádraig Brady  <P@draigbrady.com>
13916
13917         ignore-value: handle pointer types, too
13918         * lib/ignore-value.h (__attribute__): Remove definition.
13919         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
13920         of a more concise and more-often effective "(void) i" statement.
13921         (ignore_ptr): New function to suppress warnings from functions that
13922         return pointers, and to make it explicit that one function doesn't
13923         handle all cases.
13924
13925 2009-08-25  Bruno Haible  <bruno@clisp.org>
13926
13927         dup2: work around a Linux bug.
13928         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
13929         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
13930         * doc/posix-functions/dup2.texi: Mention the Linux bug.
13931         Reported by Simon Josefsson.
13932
13933 2009-08-25  Jim Meyering  <meyering@redhat.com>
13934
13935         libguestfs uses gnulib
13936         * users.txt: Add libguestfs.
13937
13938 2009-08-24  Eric Blake  <ebb9@byu.net>
13939
13940         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
13941         * lib/pipe2.c (includes): Add binary-io.h.
13942         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
13943
13944 2009-08-24  Bruno Haible  <bruno@clisp.org>
13945
13946         Tolerate declared but missing accept4 syscall.
13947         * lib/accept4.c (accept4): Invoke original accept4 function first, if
13948         available.
13949         * lib/sys_socket.in.h (accept4): If the function is already present,
13950         override it.
13951         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
13952         * modules/accept4 (Makefile.am): Compile accept4.c always.
13953         Reported by Paolo Bonzini and Eric Blake.
13954
13955 2009-08-23  Bruno Haible  <bruno@clisp.org>
13956
13957         New module 'accept4'.
13958         * lib/sys_socket.in.h (accept4): New declaration.
13959         * lib/accept4.c: New file.
13960         * m4/accept4.m4: New file.
13961         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
13962         GNULIB_ACCEPT4, HAVE_ACCEPT4.
13963         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
13964         HAVE_ACCEPT4.
13965         * modules/accept4: New file.
13966         * doc/glibc-functions/accept4.texi: Mention the new module.
13967
13968 2009-08-24  Jim Meyering  <meyering@redhat.com>
13969
13970         progname: also set global program_invocation_name, when possible
13971         Before this change, a libtool-enabled program that calls glibc's
13972         error function would report the program name as
13973         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
13974         * modules/progname (configure.ac): Check for a declaration of
13975         program_invocation_name.
13976         * lib/progname.c:  Include <errno.h>.
13977         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
13978         Set program_invocation_name.
13979
13980 2009-08-23  Bruno Haible  <bruno@clisp.org>
13981
13982         * lib/dup3.c: Include <string.h>.
13983
13984 2009-08-23  Bruno Haible  <bruno@clisp.org>
13985
13986         * lib/dup3.c (dup3): Test only once whether the system actually exists.
13987         * lib/pipe2.c (pipe2): Likewise.
13988         Suggested by Eric Blake.
13989
13990 2009-08-23  Bruno Haible  <bruno@clisp.org>
13991
13992         Tolerate declared but missing dup3 syscall.
13993         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
13994         * lib/unistd.in.h (dup3): If the function is already present,
13995         override it.
13996         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
13997         * modules/dup3 (Makefile.am): Compile dup3.c always.
13998         Reported by Paolo Bonzini.
13999
14000 2009-08-23  Bruno Haible  <bruno@clisp.org>
14001
14002         Tolerate declared but missing pipe2 syscall.
14003         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
14004         available.
14005         * lib/unistd.in.h (pipe2): If the function is already present,
14006         override it.
14007         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
14008         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
14009         Reported by Paolo Bonzini.
14010
14011 2009-08-23  Bruno Haible  <bruno@clisp.org>
14012
14013         * lib/pipe2.c (pipe2): Move #ifs inside function.
14014
14015 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
14016
14017         quotearg: document limitations of quote_these_too
14018         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
14019         those limitations are created.
14020         * lib/quotearg.h (set_char_quoting): Document that digits and
14021         letters that are special after backslash are not permitted.
14022         (quotearg_char): Cross-reference set_char_quoting documentation.
14023
14024 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
14025
14026         quotearg: implement custom_quoting_style
14027         * lib/quotearg.c: (struct quoting_options): Add left_quote and
14028         right_quote fields.
14029         (set_custom_quoting): New public function.
14030         (quotearg_buffer_restyled): Add left_quote and right_quote
14031         arguments, handle them very much like locale quoting, and update
14032         all uses.
14033         (quotearg_n_custom): New public function.
14034         (quotearg_n_custom_mem): New public function.
14035         (quotearg_custom): New public function.
14036         (quotearg_custom_mem): New public function.
14037         * lib/quotearg.h: Prototype and document new public functions.
14038         (enum quoting_style): For escape_quoting_style and
14039         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
14040         ignored even though they're otherwise like c_quoting_style.
14041         Add custom_quoting_style member and document with comparison to
14042         clocale_quoting_style.
14043         * tests/test-quotearg.c (custom_quotes): New array.
14044         (custom_results): New array.
14045         (main): Extend to test custom quoting.
14046
14047 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
14048
14049         quotearg: fix right quote escaping when it's in quote_these_too
14050         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
14051         quote, be sure to prepend only one backslash.
14052         * tests/test-quotearg.c (use_quote_double_quotes): New function.
14053         (main): Test it.
14054
14055 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
14056
14057         quotearg-tests: test escaping of embedded locale quotes
14058         * tests/test-quotearg.c (struct result_strings): Add member for
14059         new input.
14060         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
14061         (inputs): Add new input.
14062         (results_g): Add expected results.
14063         (flag_results): Likewise.
14064         (locale_results): Likewise.
14065         (compare_strings): Check those.
14066
14067 2009-08-23  Bruno Haible  <bruno@clisp.org>
14068
14069         Tests for module 'dup3'.
14070         * modules/dup3-tests: New file.
14071         * tests/test-dup3.c: New file.
14072
14073         New module 'dup3'.
14074         * lib/unistd.in.h (dup3): New declaration.
14075         * lib/dup3.c: New file.
14076         * m4/dup3.m4: New file.
14077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
14078         HAVE_DUP3.
14079         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
14080         * modules/dup3: New file.
14081         * doc/glibc-functions/dup3.texi: Mention the new module.
14082
14083 2009-08-23  Bruno Haible  <bruno@clisp.org>
14084
14085         Tweak the dup2 test.
14086         * tests/test-dup2.c (main): Create the test file empty. Verify that an
14087         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
14088         the test file is still empty. Fix argument order of lseek.
14089
14090 2009-08-23  Bruno Haible  <bruno@clisp.org>
14091
14092         Avoid test link errors when the modules getopt-gnu, gettext are used.
14093         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
14094         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14095
14096 2009-08-23  Bruno Haible  <bruno@clisp.org>
14097
14098         Fix getdtablesize() on mingw.
14099         * lib/getdtablesize.c (getdtablesize): Implement differently.
14100         * lib/unistd.in.h (getdtablesize): Improve comment.
14101
14102 2009-08-23  Bruno Haible  <bruno@clisp.org>
14103
14104         New module 'mkostemp'.
14105         Based on Ulrich Drepper's 2007-08-10 change in glibc.
14106         * lib/stdlib.in.h (mksotemp): New declaration.
14107         * lib/mkostemp.c: New file, from glibc with modifications.
14108         * lib/tempname.h (GT_FILE): Remove outdated comment.
14109         (gen_tempname): Add flags argument.
14110         * lib/tempname.c (__GT_BIGFILE): Remove macro.
14111         (__GT_FILE): Map to 1.
14112         (small_open, large_open): Remove macros.
14113         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
14114         * lib/mkstemp.c (mkstemp): Update.
14115         * lib/mkdtemp.c (mkdtemp): Likewise.
14116         * m4/mkostemp.m4: New file.
14117         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
14118         HAVE_MKOSTEMP.
14119         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
14120         HAVE_MKOSTEMP.
14121         * modules/mkostemp: New file, based on modules/mkstemp.
14122         * doc/glibc-functions/mkostemp.texi: Mention the new module.
14123         * NEWS: Mention the change.
14124
14125 2009-08-23  Bruno Haible  <bruno@clisp.org>
14126
14127         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
14128         Reported by Eric Blake.
14129
14130 2009-08-23  Bruno Haible  <bruno@clisp.org>
14131
14132         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
14133         Reported by Eric Blake.
14134
14135 2009-08-23  Bruno Haible  <bruno@clisp.org>
14136
14137         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
14138         * modules/pipe2 (Depends-on): Likewise.
14139
14140 2009-08-23  Eric Blake  <ebb9@byu.net>
14141
14142         fcntl-h: add O_TTY_INIT support
14143         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
14144         * tests/test-fcntl-h.c (o): Test it.
14145         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
14146
14147         fcntl-h: rename from fcntl, in preparation for fcntl(2)
14148         * modules/fcntl: Move <fcntl.h> header replacement...
14149         * modules/fcntl-h: ...to new name, so as not to collide with
14150         like-named function.
14151         * tests/test-fcntl.c: Rename...
14152         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
14153         * modules/fcntl-tests: Rename...
14154         * modules/fcntl-h-tests: ...to this.  Update test file name.
14155         * modules/chdir-long (Depends-on): Update clients.
14156         * modules/chdir-safer (Depends-on): Likewise.
14157         * modules/fcntl-safer (Depends-on): Likewise.
14158         * modules/fts (Depends-on): Likewise.
14159         * modules/mkancesdirs (Depends-on): Likewise.
14160         * modules/mkdir-p (Depends-on): Likewise.
14161         * modules/open (Depends-on): Likewise.
14162         * modules/savewd (Depends-on): Likewise.
14163         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
14164         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
14165
14166 2009-08-22  Bruno Haible  <bruno@clisp.org>
14167
14168         * modules/binary-io (License): Relicense under LGPL.
14169         * modules/pipe2 (License): Likewise.
14170
14171 2009-08-22  Bruno Haible  <bruno@clisp.org>
14172
14173         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
14174         return value.
14175         * lib/pipe-filter-gi.c (filter_init): Likewise.
14176         Reported by Eric Blake.
14177
14178 2009-08-22  Bruno Haible  <bruno@clisp.org>
14179
14180         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
14181         * modules/pipe (Depends-on): Add pipe2.
14182
14183 2009-08-22  Bruno Haible  <bruno@clisp.org>
14184
14185         Tests for module 'pipe2'.
14186         * modules/pipe2-tests: New file.
14187         * tests/test-pipe2.c: New file.
14188
14189         New module 'pipe2'.
14190         * lib/unistd.in.h (pipe2): New declaration.
14191         * lib/pipe2.c: New file.
14192         * m4/pipe2.m4: New file.
14193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
14194         HAVE_PIPE2.
14195         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
14196         * modules/pipe2: New file.
14197         * doc/glibc-functions/pipe2.texi: Mention the new module.
14198
14199 2009-08-22  Bruno Haible  <bruno@clisp.org>
14200
14201         Reference some new glibc functions.
14202         * doc/glibc-functions/accept4.texi: New file.
14203         * doc/glibc-functions/dup3.texi: New file.
14204         * doc/glibc-functions/mkostemp.texi: New file.
14205         * doc/glibc-functions/pipe2.texi: New file.
14206         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
14207         (Glibc sys/socket.h): Refer to accept4.
14208         (Glibc unistd.h): Refer to dup3, pipe2.
14209         Reported by Eric Blake.
14210
14211 2009-08-22  Jim Meyering  <meyering@redhat.com>
14212             Bruno Haible  <bruno@clisp.org>
14213
14214         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
14215         This makes it so packages using automake-1.11's silent-rules option
14216         can print e.g., a single "GEN    configmake.h" line, rather than
14217         the 30+ statements that perform the job.  If you want to see the
14218         actual commands, you can still run "make V=1".
14219         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
14220         so that make output is abbreviated when those variables are defined
14221         appropriately.
14222         * modules/argz: Likewise.
14223         * modules/arpa_inet: Likewise.
14224         * modules/byteswap: Likewise.
14225         * modules/configmake: Likewise.
14226         * modules/dirent: Likewise.
14227         * modules/errno: Likewise.
14228         * modules/fcntl: Likewise.
14229         * modules/float: Likewise.
14230         * modules/fnmatch: Likewise.
14231         * modules/getopt-posix: Likewise.
14232         * modules/glob: Likewise.
14233         * modules/iconv_open: Likewise.
14234         * modules/inttypes: Likewise.
14235         * modules/localcharset: Likewise.
14236         * modules/locale: Likewise.
14237         * modules/math: Likewise.
14238         * modules/netdb: Likewise.
14239         * modules/netinet_in: Likewise.
14240         * modules/poll: Likewise.
14241         * modules/posix_spawnp-tests: Likewise.
14242         * modules/sched: Likewise.
14243         * modules/search: Likewise.
14244         * modules/selinux-h: Likewise.
14245         * modules/signal: Likewise.
14246         * modules/spawn: Likewise.
14247         * modules/stdarg: Likewise.
14248         * modules/stdbool: Likewise.
14249         * modules/stddef: Likewise.
14250         * modules/stdint: Likewise.
14251         * modules/stdio: Likewise.
14252         * modules/stdlib: Likewise.
14253         * modules/string: Likewise.
14254         * modules/strings: Likewise.
14255         * modules/sys_file: Likewise.
14256         * modules/sys_ioctl: Likewise.
14257         * modules/sys_select: Likewise.
14258         * modules/sys_socket: Likewise.
14259         * modules/sys_stat: Likewise.
14260         * modules/sys_time: Likewise.
14261         * modules/sys_times: Likewise.
14262         * modules/sys_utsname: Likewise.
14263         * modules/sys_wait: Likewise.
14264         * modules/sysexits: Likewise.
14265         * modules/time: Likewise.
14266         * modules/unistd: Likewise.
14267         * modules/wchar: Likewise.
14268         * modules/wctype: Likewise.
14269
14270 2009-08-22  Jim Meyering  <meyering@redhat.com>
14271
14272         announce-gen: detect write failure
14273         * build-aux/announce-gen: Add Coda at end.
14274         Remove equivalent-but-more-verbose block at top.
14275
14276 2009-08-19  Akim Demaille  <demaille@gostai.com>
14277
14278         bootstrap: --help to stdout.
14279         * bootstrap (usage): Don't send --help to stderr.
14280         Use a here doc instead of a long string.
14281
14282 2009-08-21  Eric Blake  <ebb9@byu.net>
14283
14284         test-popen-safer: split from test-popen
14285         * tests/test-popen.c (main): Move...
14286         * tests/test-popen.h: ...into new file.
14287         * tests/test-popen-safer2.c: New file.
14288         * modules/popen-tests (Files): Add test-popen.h.
14289         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
14290         Suggested by Bruno Haible.
14291
14292         test-fcntl-safer: split from test-open
14293         * tests/test-open.c (main): Move...
14294         * tests/test-open.h: ...into new file.
14295         * tests/test-fcntl-safer.c: New file.
14296         * modules/open-tests (Files): Add test-open.h.
14297         * modules/fcntl-safer-tests: New file.
14298         Suggested by Bruno Haible.
14299
14300         test-fopen-safer: split from test-fopen
14301         * tests/test-fopen.c (main): Move...
14302         * tests/test-fopen.h: ...into new file.
14303         * tests/test-fopen-safer.c: New file.
14304         * modules/fopen-tests (Files): Add test-fopen.h.
14305         * modules/fopen-safer-tests: New file.
14306         Suggested by Bruno Haible.
14307
14308 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
14309
14310         popen-safer: test O_CLOEXEC at run-time.
14311         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
14312
14313 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
14314
14315         fcntl: move more flags to the header
14316         * lib/cloexec.c: Do not define FD_CLOEXEC here.
14317         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
14318         * lib/fcntl.in.h: Do both things here.
14319
14320 2009-08-21  Jim Meyering  <meyering@redhat.com>
14321
14322         consistently remove $@-t before redirecting to it
14323         * modules/argz: Remove $@-t and $@ before redirecting to the former.
14324         * modules/alloca-opt: Likewise.
14325         * modules/byteswap: Likewise.
14326         * modules/fnmatch: Likewise.
14327         * modules/getopt-posix: Likewise.
14328         * modules/glob: Likewise.
14329         * modules/poll: Likewise.
14330         * modules/posix_spawnp-tests: Likewise.
14331         * modules/sys_socket: Likewise.
14332         * modules/sysexits: Likewise.
14333
14334 2009-08-21  Eric Blake  <ebb9@byu.net>
14335
14336         popen: simplify access to original popen
14337         * lib/popen.c (rpl_popen): No need to worry about popen being a
14338         macro.
14339         Reported by Bruno Haible.
14340
14341 2009-08-20  Eric Blake  <ebb9@byu.net>
14342
14343         build: avoid some compiler warnings
14344         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
14345         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
14346         type.
14347         (new_exclude_segment, excluded_file_pattern_p)
14348         (excluded_file_name_p): Reduce scope.
14349         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
14350         old-style declaration.
14351
14352 2009-08-20  Simon Josefsson  <simon@josefsson.org>
14353
14354         * tests/test-exclude1.sh: Handle Windows EOL.
14355         * tests/test-exclude2.sh: Likewise.
14356         * tests/test-exclude3.sh: Likewise.
14357         * tests/test-exclude4.sh: Likewise.
14358         * tests/test-exclude5.sh: Likewise.
14359         * tests/test-exclude6.sh: Likewise.
14360         * tests/test-exclude7.sh: Likewise.
14361
14362 2009-08-19  Akim Demaille  <demaille@gostai.com>
14363
14364         bootstrap: find sha1sum when named gsha1sum.
14365         * bootstrap (find_tool): New.
14366         ($SHA1SUM): New.
14367         Use it.
14368
14369 2009-08-20  Jim Meyering  <meyering@redhat.com>
14370
14371         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
14372         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
14373         expression that converts "." in a file name to "\." in the resulting
14374         regexp.  Start with a dummy statement, so that prior shell variable
14375         definitions are expanded portably.  Reported by Simon Josefsson.
14376
14377 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
14378
14379         Fix polling for writeability of a screen buffer.
14380         * lib/poll.c: Distinguish input and screen buffers for the
14381         Win32 implementation.
14382         * lib/select.c: Likewise.
14383
14384 2009-08-19  Eric Blake  <ebb9@byu.net>
14385
14386         popen-safer: prevent popen from clobbering std descriptors
14387         * modules/popen-safer: New file.
14388         * lib/popen-safer.c: Likewise.
14389         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
14390         * lib/stdio--.h (popen): Provide override.
14391         * lib/stdio-safer.h (popen_safer): Provide declaration.
14392         * tests/test-popen.c (includes): Partially test this.
14393         * modules/popen-safer-tests: New file, for more tests.
14394         * tests/test-popen-safer.c: Likewise.
14395         * MODULES.html.sh (file stream based Input/Output): Mention it.
14396
14397         tests: test some of the *-safer modules
14398         * modules/fopen-safer (Depends-on): Add fopen.
14399         * modules/fcntl-safer (Depends-on): Add fcntl.
14400         * modules/stdlib-safer (Depends-on): Add stdlib.
14401         (configure.ac): Set indicator.
14402         * modules/unistd-safer (configure.ac): Likewise.
14403         * modules/tmpfile-safer (configure.ac): Likewise.
14404         (Depends-on): Add tmpfile.
14405         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
14406         active.
14407         * tests/test-fopen.c (includes): Test safer versions when they are
14408         in use.
14409         * tests/test-open.c (includes): Likewise.
14410
14411         popen: fix cygwin 1.5 bug when stdin closed
14412         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
14413         * modules/popen: New file.
14414         * modules/popen-tests: Likewise.
14415         * tests/test-popen.c: Likewise.
14416         * m4/popen.m4: Likewise.
14417         * lib/popen.c: Likewise.
14418         * lib/stdio.in.h (popen): New declaration.
14419         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
14420         * modules/stdio (Makefile.am): Likewise.
14421         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
14422
14423 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
14424
14425         maint.mk: give full control over update-copyright exclusions
14426         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
14427         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
14428         (update-copyright): Don't force inclusion of top-level
14429         ChangeLog.  Don't force exclusion of all COPYING files, but make
14430         them the default exclusion instead.
14431
14432 2009-08-16  Bruno Haible  <bruno@clisp.org>
14433
14434         Fix test failures on Solaris 10.
14435         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
14436         tests when Solaris iconv() is used.
14437         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
14438         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
14439         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
14440         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
14441         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
14442
14443 2009-08-16  Bruno Haible  <bruno@clisp.org>
14444
14445         Fix test failures on Solaris 10.
14446         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
14447         'tr' program and pass it as first argument.
14448         * tests/test-pipe-filter-gi1.sh: Likewise.
14449         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
14450         program as first argument.
14451         * tests/test-pipe-filter-gi1.c (main): Likewise.
14452
14453 2009-08-16  Eric Blake  <ebb9@byu.net>
14454
14455         fpurge: fix previous commits
14456         * modules/fpurge (Makefile.am): Make replacement conditional,
14457         partially reverting 2007-04-29 change; missed in previous
14458         attempt.
14459         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
14460         is missing.
14461
14462 2009-08-16  Bruno Haible  <bruno@clisp.org>
14463
14464         Clarify fpurge's effect on the file position.
14465         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
14466         * tests/test-fpurge.c (main): Make a second pass for checking the file
14467         position.
14468
14469 2009-08-16  Bruno Haible  <bruno@clisp.org>
14470
14471         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
14472         declaration of fpurge is missing.
14473         * tests/test-fpurge.c (main): Check that the file has not more contents
14474         than expected. Close the file before removing it.
14475
14476 2009-08-15  Eric Blake  <ebb9@byu.net>
14477
14478         fpurge: don't wrap working cygwin implementation
14479         * lib/fpurge.c (fpurge): Fix comment typo.
14480         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
14481         1.7 to avoid replacement.
14482         * tests/test-fpurge.c (main): Enhance test.
14483
14484 2009-08-15  Eric Blake  <ebb9@byu.net>
14485         and Jim Meyering  <meyering@redhat.com>
14486
14487         test-update-copyright: skip if perl is insufficient
14488         * tests/test-update-copyright.sh: Failure to run maintainer tool
14489         should not cause testsuite failure on cygwin 1.5.
14490
14491 2009-08-14  Eric Blake  <ebb9@byu.net>
14492
14493         doc: mention more functions added in cygwin 1.7.0
14494         * doc/posix-headers/limits.texi (limits.h): Update for recent
14495         cygwin additions.
14496         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
14497         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14498         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
14499         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
14500         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
14501
14502 2009-08-14  Eric Blake  <ebb9@byu.net>
14503
14504         maint.mk: simplify update-copyright rule
14505         * top/maint.mk (update-copyright-local): Delete, and document how
14506         to do it in cfg.mk instead.
14507         (update-copyright-exclude-regexp): Delete, and document how to do
14508         it in .x-update-copyright instead.
14509         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
14510         exclude ChangeLog.
14511
14512 2009-08-14  Bruno Haible  <bruno@clisp.org>
14513
14514         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
14515
14516 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
14517
14518         maint.mk: support update-copyright-env
14519         * top/maint.mk (update-copyright-env): Define place-holder.
14520         (update-copyright): Expand $(update-copyright-env) before
14521         invoking update-copyright.
14522
14523 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
14524
14525         update-copyright: implement forced reformatting
14526         * build-aux/update-copyright: Implement and document
14527         UPDATE_COPYRIGHT_FORCE.
14528         * tests/test-update-copyright.sh: Test it.
14529
14530 2009-08-14  Eric Blake  <ebb9@byu.net>
14531         and Bruno Haible  <bruno@clisp.org>
14532
14533         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
14534         * tests/test-locale.c: Revert previous patch related to NULL.
14535         * tests/test-stdio.c: Likewise.
14536         * tests/test-stdlib.c: Likewise.
14537         * tests/test-string.c: Likewise.
14538         * tests/test-unistd.c: Likewise.
14539         * modules/time-tests (Depends-on): Add verify.
14540         * modules/wchar-tests (Depends-on): Likewise.
14541         * tests/test-time.c: Test for NULL compliance.
14542         * tests/test-wchar.c: Likewise.
14543         * modules/locale (Depends-on): Add stddef.
14544         * modules/stdio (Depends-on): Likewise.
14545         * modules/stdlib (Depends-on): Likewise.
14546         * modules/string (Depends-on): Likewise.
14547         * modules/time (Depends-on): Likewise.
14548         * modules/unistd (Depends-on): Likewise.
14549         * modules/wchar (Depends-on): Likewise.
14550         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
14551         * lib/stdlib.in.h (includes): Likewise.
14552         * lib/string.in.h (includes): Likewise.
14553         * lib/time.in.h (includes): Likewise.
14554         * lib/unistd.in.h (includes): Likewise.
14555         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
14556         replaced.
14557         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14558         * m4/stddef_h.m4: New file.
14559         * modules/stddef: Likewise.
14560         * lib/stddef.in.h: Likewise.
14561         * modules/stddef-tests: Likewise.
14562         * tests/test-stddef.c: Likewise.
14563         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
14564         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
14565         * doc/posix-headers/locale.texi (locale.h): Likewise.
14566         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
14567         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14568         * doc/posix-headers/string.texi (string.h): Likewise.
14569         * doc/posix-headers/time.texi (time.h): Likewise.
14570         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
14571         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
14572
14573 2009-08-14  Eric Blake  <ebb9@byu.net>
14574
14575         doc: improve git diff of texinfo files
14576         * .gitattributes: Add rule for *.texi files, with hint on how to
14577         use it.
14578         Copied from m4, and based on a report by Bruno Haible.
14579
14580 2009-08-14  Bruno Haible  <bruno@clisp.org>
14581
14582         Disable multithread support by default on Cygwin 1.5.x for real.
14583         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
14584
14585 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
14586
14587         update-copyright: much ado about intervals
14588         * build-aux/update-copyright: Implement and document
14589         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
14590         of copyright year intervals.
14591         Also, document UPDATE_COPYRIGHT_YEAR.
14592         * tests/test-update-copyright.sh: Test it.
14593
14594         update-copyright: convert 2-digit to 4-digit years
14595         * build-aux/update-copyright: Implement and document.
14596         * tests/test-update-copyright.sh: Update.
14597
14598 2009-08-14  Jim Meyering  <meyering@redhat.com>
14599
14600         test-exclude: avoid coreutils "make check" failure
14601         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
14602         just as in test-argmatch.c.
14603
14604 2009-08-13  Eric Blake  <ebb9@byu.net>
14605
14606         test-dup2: fix bad assumption
14607         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
14608         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
14609
14610         test-version-etc: fix CRLF portability issue
14611         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
14612         recognize \r.
14613         * tests/test-argp-version-etc-1.sh: Likewise.
14614
14615         getopt: update client modules
14616         * modules/argp (Depends-on): Use getopt-gnu.
14617         * modules/git-merge-changelog (Depends-on): Likewise.
14618         * modules/long-options (Depends-on): Likewise.
14619         * modules/xstrtol (Depends-on): Likewise.
14620
14621 2009-08-13  Simon Josefsson  <simon@josefsson.org>
14622
14623         * tests/test-version-etc.sh: Don't fail on different
14624         project/version.  Don't fail on CRLF differences.  Rewrite to use
14625         multiple -e instead of multiple sed forks, suggested by Eric Blake
14626         <ebb9@byu.net>.
14627         * tests/test-argp-version-etc-1.sh: Likewise.
14628
14629 2009-08-13  Simon Josefsson  <simon@josefsson.org>
14630
14631         * tests/test-version-etc.sh: Don't fail on different
14632         project/version.
14633
14634 2009-08-12  Bruno Haible  <bruno@clisp.org>
14635
14636         Tests for modules 'getopt-posix', 'getopt-gnu'.
14637         * modules/getopt-posix-tests: New file.
14638         * tests/test-getopt.c: New file.
14639         * tests/test-getopt.h: New file.
14640         * tests/test-getopt_long.h: New file.
14641
14642         New modules 'getopt-posix', 'getopt-gnu'.
14643         * modules/getopt-gnu: New file, renamed from modules/getopt.
14644         * modules/getopt-posix: New file.
14645         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
14646         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
14647         (gl_GETOPT): Remove macro.
14648         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
14649         Disable the test against BSD systems that declare optreset. Test
14650         against mingw bug. Test against lack of support of optional arguments
14651         on many platforms.
14652         * doc/glibc-headers/getopt.texi: Update module name and list of
14653         relevant platforms.
14654         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
14655         'getopt-gnu' and more portability problems.
14656         * NEWS: Mention the changes.
14657
14658 2009-08-12  Bruno Haible  <bruno@clisp.org>
14659
14660         Ensure that optarg etc. get declared by <unistd.h>.
14661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
14662         AC_USE_SYSTEM_EXTENSIONS.
14663         * modules/getopt (Depends-on): Add 'extensions'.
14664
14665 2009-08-12  Bruno Haible  <bruno@clisp.org>
14666
14667         Avoid test link errors.
14668         * modules/pipe-filter-ii-tests (Makefile.am): Define
14669         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
14670         * modules/pipe-filter-gi-tests (Makefile.am): Define
14671         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
14672         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14673
14674 2009-08-12  Bruno Haible  <bruno@clisp.org>
14675
14676         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
14677         gl_GETOPT_SUBSTITUTE before.
14678         (gl_GETOPT): Use it.
14679         * m4/argp.m4 (gl_ARGP): Update.
14680         Reported by Sergey Poznyakoff.
14681
14682         * m4/getopt.m4: Reorder macros.
14683         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
14684         (gl_GETOPT_SUBSTITUTE): Remove macro.
14685
14686 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
14687
14688         Minor improvement in gitlog-to-changelog
14689
14690         * build-aux/gitlog-to-changelog: New option `--format' makes
14691         output format string configurable.
14692
14693 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
14694
14695         Optimize exclude: use hash tables for non-wildcard patterns.
14696
14697         * lib/exclude.c: Include hash.h and mbuiter.h
14698         (struct exclude_pattern, exclude_segment): New data types.
14699         (struct exclude): Rewrite.
14700         (fnmatch_pattern_has_wildcards): New function.
14701         (new_exclude_segment, free_exclude_segment): New functions.
14702         (excluded_file_pattern_p, excluded_file_name_p): New functions.
14703         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
14704         * lib/exclude.h (is_fnmatch_pattern): New prototype.
14705         * modules/exclude: Depend on hash and mbuiter.
14706
14707         * modules/exclude-tests: New file.
14708         * tests/test-exclude.c: New file.
14709         * tests/test-exclude1.sh: New file.
14710         * tests/test-exclude2.sh: New file.
14711         * tests/test-exclude3.sh: New file.
14712         * tests/test-exclude4.sh: New file.
14713         * tests/test-exclude5.sh: New file.
14714         * tests/test-exclude6.sh: New file.
14715         * tests/test-exclude7.sh: New file.
14716
14717 2009-08-12  Bruno Haible  <bruno@clisp.org>
14718
14719         Ensure that getopt() gets declared by <unistd.h>.
14720         * lib/unistd.in.h: Conditionally include getopt.h.
14721         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
14722         Set GNULIB_UNISTD_H_GETOPT.
14723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14724         GNULIB_UNISTD_H_GETOPT.
14725         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
14726
14727 2009-08-12  Bruno Haible  <bruno@clisp.org>
14728
14729         Clarify logic.
14730         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
14731         gl_replace_getopt instead of GETOPT_H.
14732
14733 2009-08-12  Bruno Haible  <bruno@clisp.org>
14734
14735         * m4/getopt.m4: Add comments.
14736
14737 2009-08-12  Bruno Haible  <bruno@clisp.org>
14738
14739         Disable multithread support by default on Cygwin 1.5.x.
14740         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
14741         set gl_use_threads=no if not specified otherwise.
14742
14743 2009-08-11  Bruno Haible  <bruno@clisp.org>
14744
14745         Avoid compilation error on NetBSD 5.0.
14746         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
14747         * tests/test-stdio.c: Likewise.
14748         * tests/test-stdlib.c: Likewise.
14749         * tests/test-string.c: Likewise.
14750         * tests/test-unistd.c: Likewise.
14751         Reported by Greg Troxel <gdt@ir.bbn.com>
14752         at <https://savannah.gnu.org/support/?106973>.
14753
14754 2009-08-11  Bruno Haible  <bruno@clisp.org>
14755
14756         * modules/dup2-tests (Depends-on): Remove close.
14757
14758         Undo 2009-07-19 commit.
14759         * modules/acl-tests (Depends-on): Remove close.
14760         * modules/binary-io-tests (Depends-on): Likewise.
14761         * modules/closein-tests (Depends-on): Likewise.
14762         * modules/flock-tests (Depends-on): Likewise.
14763         * modules/fsync-tests (Depends-on): Likewise.
14764         * modules/lseek-tests (Depends-on): Likewise.
14765         * modules/pipe-tests (Depends-on): Likewise.
14766         * modules/posix_spawn-tests (Depends-on): Likewise.
14767         * modules/posix_spawnp-tests (Depends-on): Likewise.
14768         * modules/stat-time-tests (Depends-on): Likewise.
14769         * modules/yesno-tests (Depends-on): Likewise.
14770
14771 2009-08-10  Bruno Haible  <bruno@clisp.org>
14772
14773         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
14774
14775 2009-08-10  Bruno Haible  <bruno@clisp.org>
14776
14777         Fix a gcc warning.
14778         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
14779
14780 2009-08-10  Bruno Haible  <bruno@clisp.org>
14781
14782         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
14783         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
14784         not only the first time.
14785         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
14786         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
14787         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
14788         is 1, not only the the first time.
14789
14790 2009-08-10  Bruno Haible  <bruno@clisp.org>
14791
14792         Make it possible to use module 'gethostname' without module 'close'.
14793         * lib/unistd.in.h (close): Evoke a link error only if
14794         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
14795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14796         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
14797         * modules/unistd (Makefile.am): Substitute
14798         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
14799         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
14800         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
14801         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
14802         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
14803         * modules/sys_ioctl (Makefile.am): Substitute
14804         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
14805         * modules/socket (configure.ac): On native Windows, set
14806         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
14807         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
14808         Reported by Sam Steingold <sds@gnu.org>.
14809
14810 2009-08-10  Bruno Haible  <bruno@clisp.org>
14811
14812         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
14813         * modules/ioctl (configure.ac): Likewise.
14814
14815 2009-08-10  Bruno Haible  <bruno@clisp.org>
14816
14817         Avoid collision between gnulib wrapper and libintl wrapper.
14818         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
14819         already defined in intl/printf.c.
14820         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
14821         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
14822
14823 2009-08-09  Bruno Haible  <bruno@clisp.org>
14824
14825         Make <sys/select.h> really self-contained, also on Solaris 10.
14826         * lib/sys_select.in.h: Include <string.h>.
14827         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
14828         Solaris 10 problem.
14829         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
14830         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
14831         Reported by Jim Meyering.
14832
14833 2009-08-09  Bruno Haible  <bruno@clisp.org>
14834
14835         Avoid warnings from 'aclocal' that are due to a use of macro name
14836         AM_XGETTEXT_OPTION that is not defined in automake.
14837         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
14838         automake.
14839         * modules/error (configure.ac): Likewise.
14840         * modules/propername (configure.ac): Likewise.
14841         * modules/vasprintf (configure.ac): Likewise.
14842         * modules/verror (configure.ac): Likewise.
14843         * modules/xprintf (configure.ac): Likewise.
14844         * modules/xvasprintf (configure.ac): Likewise.
14845
14846 2009-08-08  Bruno Haible  <bruno@clisp.org>
14847
14848         Avoid compilation error in C++ mode.
14849         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
14850         Reported by Sam Steingold <sds@gnu.org>.
14851
14852 2009-08-08  Bruno Haible  <bruno@clisp.org>
14853
14854         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
14855         for the various Unix platforms.
14856         * doc/posix-headers/limits.texi: Update platforms list regarding
14857         HOST_NAME_MAX.
14858         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14859
14860 2009-08-07  Jim Meyering  <meyering@redhat.com>
14861
14862         selinux-at: fix typo in a comment
14863         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
14864         Spotted by Paolo Bonzini.
14865
14866         selinux-at: remove redundant m4 code, add documentation
14867         * modules/selinux-at (configure.ac): Remove redundant code.
14868         LIB_SELINUX is already set via the dependent module, selinux-h.
14869         (Include): Add quotes around selinux-at.h.
14870         * lib/selinux-at.h: Add documentation.
14871         Reported by Bruno Haible in
14872         http://marc.info/?l=gnulib-bug&m=124958988300749
14873
14874 2009-08-07  Bruno Haible  <bruno@clisp.org>
14875
14876         Avoid link error on MacOS X 10.3 and 10.4.
14877         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
14878         on non-ELF systems.
14879         * lib/argp-pv.c (argp_program_version): Likewise.
14880         Reported by Simon Josefsson.
14881
14882 2009-08-07  Simon Josefsson  <simon@josefsson.org>
14883
14884         * tests/test-version-etc.sh: Use $EXEEXT.
14885
14886 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
14887
14888         update-copyright: update documentation to point to maint.mk
14889         * build-aux/update-copyright: Here.
14890
14891 2009-08-06  Jim Meyering  <meyering@redhat.com>
14892
14893         maint.mk: support update-copyright-local
14894         * top/maint.mk (update-copyright-local): Define place-holder.
14895         (update-copyright): Depend on $(update-copyright-local).
14896
14897 2009-08-06  Jim Meyering  <meyering@redhat.com>
14898
14899         selinux-at: new module
14900         Initially written for coreutils, this module will soon be
14901         used by findutils, too.
14902         * MODULES.html.sh [Misc]: Add selinux-at.
14903         * lib/selinux-at.h: New file, from coreutils.
14904         * lib/selinux-at.c: Likewise.
14905         * modules/selinux-at: Likewise.
14906         (License): Change from LGPL to GPL, since it depends
14907         on the GPL'd openat module.
14908
14909         doc: update README
14910         * README: Remove references to cogito.
14911         Remove cvs-repo-updating instructions from 2007.
14912         Don't imply that CVS is better if you have limited disk space.
14913
14914 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
14915
14916         update-copyright: support C-style comments
14917         * build-aux/update-copyright: Implement and document.
14918         * tests/test-update-copyright.sh: Test.
14919
14920 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
14921
14922         update-copyright: support omitted "(C)"
14923         * build-aux/update-copyright: Implement and document.  Also,
14924         allow variable whitespace before "(C)".
14925         * tests/test-update-copyright.sh: Test.
14926
14927 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
14928
14929         update-copyright: don't trip on non-FSF copyright statements
14930         * build-aux/update-copyright: Fix so that the first correctly
14931         formatted FSF copyright statement is recognized no matter what
14932         appears before it.  Update documentation.
14933         * tests/test-update-copyright.sh: Test that.
14934
14935 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
14936
14937         update-copyright: clean up code a little
14938         * build-aux/update-copyright: Append "_re" to the name of any
14939         variable holding a regular expression.
14940         Replace "old" and "new" with "stmt" in variable names.
14941         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
14942         handled correctly.
14943         Format code more consistently.
14944
14945 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
14946
14947         update-copyright-tests: improve portability
14948         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
14949         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
14950
14951 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
14952
14953         update-copyright: support @copyright{} and &copy;
14954         * build-aux/update-copyright: Implement and document.
14955         * tests/test-update-copyright.sh: Test.
14956
14957 2009-08-04  Jim Meyering  <meyering@redhat.com>
14958
14959         update-copyright-tests: correctly test EOL=\r\n handling
14960         * tests/test-update-copyright.sh: Put \r at the end of some lines
14961         for the dos-eol tests.  Based on a patch by Joel E. Denny.
14962
14963         maint.mk: make update-copyright exclusion list more configurable
14964         * top/maint.mk (update-copyright): Default to excluding COPYING,
14965         but allow an override, in case someone does want to update that file.
14966
14967         maint.mk: don't update copyright date in COPYING
14968         * top/maint.mk (update-copyright): Exclude COPYING.
14969
14970         maint.mk: add a copyright-updating rule
14971         * top/maint.mk (update-copyright): New rule.
14972         Derived from coreutils/Makefile.am.
14973
14974         update-copyright: rename some variables
14975         * build-aux/update-copyright: Rename a few variables for clarity.
14976         Tweak syntax.  List Joel E. Denny as coauthor.
14977
14978 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
14979
14980         update-copyright: fix bug for 2-digit last year and add tests
14981         * build-aux/update-copyright: Fix bug.
14982         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
14983         specified.
14984         * modules/update-copyright-tests: New
14985         * tests/test-update-copyright.sh: New.
14986
14987 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
14988
14989         update-copyright: handle leading tabs in line prefix
14990         * build-aux/update-copyright: Count leading tabs as 8 spaces
14991         when computing margin.  This helps with the formatting of
14992         ChangeLogs, for example.
14993         Fix documentation a little.
14994
14995 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
14996
14997         update-copyright: support EOL=\r\n
14998         * build-aux/update-copyright: Implement that.
14999
15000 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
15001
15002         update-copyright: automatically format copyright statements
15003         * build-aux/update-copyright: Implement that.
15004         Also, be a little more predictable and safer by always failing
15005         when the full copyright format is not perfectly recognized as an
15006         unbroken whole.  Discussed at
15007         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
15008         Rewrite documentation.
15009
15010 2009-08-03  Bruno Haible  <bruno@clisp.org>
15011
15012         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
15013
15014 2009-08-02  Bruno Haible  <bruno@clisp.org>
15015
15016         Tests for module 'uname'.
15017         * modules/uname-tests: New file.
15018         * tests/test-uname.c: New file.
15019
15020         New module 'uname'.
15021         * lib/uname.c: New file.
15022         * m4/uname.m4: New file.
15023         * modules/uname: New file.
15024         * doc/posix-functions/uname.texi: Mention the new module.
15025
15026 2009-08-02  Bruno Haible  <bruno@clisp.org>
15027
15028         Tests for module 'sys_utsname'.
15029         * modules/sys_utsname-tests: New file.
15030         * tests/test-sys_utsname.c: New file.
15031
15032         New module 'sys_utsname'.
15033         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
15034         * m4/sys_utsname_h.m4: New file.
15035         * modules/sys_utsname: New file.
15036         * doc/posix-headers/sys_utsname.texi: Mention the new module.
15037
15038 2009-08-02  Bruno Haible  <bruno@clisp.org>
15039
15040         Implicitly initialize the sockets library.
15041         * lib/gethostname.c: Include sockets.h.
15042         (rpl_gethostname): Invoke gl_sockets_startup.
15043         * lib/socket.c: Include sockets.h.
15044         (rpl_socket): Invoke gl_sockets_startup.
15045         * modules/gethostname (Depends-on): Add sockets.
15046         * modules/socket (Depends-on): Likewise.
15047         * tests/test-poll.c: Don't include sockets.h.
15048         (main): Don't invoke gl_sockets_startup.
15049         * tests/test-select.c: Don't include sockets.h.
15050         (main): Don't invoke gl_sockets_startup.
15051
15052 2009-08-02  Bruno Haible  <bruno@clisp.org>
15053
15054         Allow multiple calls to gl_sockets_startup.
15055         * lib/sockets.c (initialized_sockets_version): New variable.
15056         (gl_sockets_startup): Do nothing if already called for this or a higher
15057         version.
15058         (gl_sockets_cleanup): Reset initialized_sockets_version.
15059
15060 2009-08-03  Simon Josefsson  <simon@josefsson.org>
15061
15062         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
15063         different project/version.
15064
15065 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
15066             Bruno Haible  <bruno@clisp.org>
15067
15068         Tests for module 'pipe-filter-gi'.
15069         * modules/pipe-filter-gi-tests: New file.
15070         * tests/test-pipe-filter-gi1.sh: New file.
15071         * tests/test-pipe-filter-gi1.c: New file.
15072         * tests/test-pipe-filter-gi2.sh: New file.
15073         * tests/test-pipe-filter-gi2-main.c: New file.
15074         * tests/test-pipe-filter-gi2-child.c: New file.
15075
15076         New module 'pipe-filter-gi'.
15077         * lib/pipe-filter-gi.c: New file.
15078         * modules/pipe-filter-gi: New file.
15079
15080 2009-08-02  Bruno Haible  <bruno@clisp.org>
15081             Paolo Bonzini  <bonzini@gnu.org>
15082
15083         Tests for module 'pipe-filter-ii'.
15084         * modules/pipe-filter-ii-tests: New file.
15085         * tests/test-pipe-filter-ii1.sh: New file.
15086         * tests/test-pipe-filter-ii1.c: New file.
15087         * tests/test-pipe-filter-ii2.sh: New file.
15088         * tests/test-pipe-filter-ii2-main.c: New file.
15089         * tests/test-pipe-filter-ii2-child.c: New file.
15090
15091         New module 'pipe-filter-ii'.
15092         * lib/pipe-filter.h: New file.
15093         * lib/pipe-filter-ii.c: New file.
15094         * lib/pipe-filter-aux.h: New file.
15095         * modules/pipe-filter-ii: New file.
15096
15097 2009-08-02  Simon Josefsson  <simon@josefsson.org>
15098
15099         * lib/gc-libgcrypt.c: Change copyright to FSF.
15100         * lib/gc-gnulib.c: Likewise.
15101
15102 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
15103
15104         * lib/gethostname.c: Include limits.h.
15105
15106 2009-08-02  Simon Josefsson  <simon@josefsson.org>
15107             Bruno Haible  <bruno@clisp.org>
15108
15109         Ensure HOST_NAME_MAX as part of the gethostname module.
15110         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
15111         define also HOST_NAME_MAX.
15112         * tests/test-gethostname.c: Include <limits.h>.
15113         (main): Check also HOST_NAME_MAX.
15114         * doc/posix-headers/limits.texi: Document the mingw problem.
15115
15116 2009-08-02  Bruno Haible  <bruno@clisp.org>
15117
15118         * lib/gethostname.c (gethostname): Fix handling of large len argument.
15119         Add comments.
15120
15121 2009-03-31  Simon Josefsson  <simon@josefsson.org>
15122
15123         * lib/gethostname.c: Add Windows wrapper.
15124         * m4/gethostname.m4: Look for gethostname in -lws2_32.
15125         * modules/gethostname: Depend on sys_socket & errno, for also
15126         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
15127         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
15128
15129 2009-07-31  Jim Meyering  <meyering@redhat.com>
15130
15131         getloadavg: fix symbol name in comment
15132         * lib/getloadavg.c: Correct a typo I introduced when adding
15133         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
15134         Matt Kraai spotted the problem.
15135
15136 2009-07-29  Matt Kraai  <mkraai@beckman.com>
15137
15138         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
15139         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
15140         code also if ! defined N_NAME_POINTER.
15141         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
15142         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
15143         but the n_name member is a 12-byte array.
15144
15145 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
15146
15147         update-copyright: generalize comment handling
15148         * build-aux/update-copyright: Handle copyright statements
15149         within more comment styles.
15150         Document usage.
15151         Report any file with an external copyright holder or parse failure.
15152
15153 2009-07-29  Jim Meyering  <meyering@redhat.com>
15154
15155         mktime: correct setting of REPLACE_MKTIME
15156         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
15157
15158         update-copyright: new module
15159         * modules/update-copyright: New file.
15160         * build-aux/update-copyright: New file.
15161         * MODULES.html.sh (maint+release support): Add update-copyright.
15162
15163 2009-07-27  Bruno Haible  <bruno@clisp.org>
15164
15165         Fix compilation error when <ctime> is used and mktime is replaced.
15166         * lib/time.in.h (mktime): New declaration.
15167         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
15168         REPLACE_MKTIME instead of defining mktime in config.h.
15169         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
15170         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
15171         Reported by Ross McFarland <rwmcfa1@neces.com>.
15172
15173 2009-07-27  Bruno Haible  <bruno@clisp.org>
15174
15175         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
15176         Reported by Matt Kraai <mkraai@beckman.com>.
15177
15178 2009-07-25  Jim Meyering  <meyering@redhat.com>
15179
15180         maint.mk: avoid warnings about missing files
15181         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
15182         diagnostic when .prev-version does not exist.
15183         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
15184         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
15185         nonexistent cfg.mk.
15186         Suggestions from Simon Josefsson.
15187
15188 2009-07-25  Bruno Haible  <bruno@clisp.org>
15189
15190         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
15191         defined as macros. Needed on QNX 6.4.1.
15192         Reported by Matt Kraai <mkraai@beckman.com>.
15193
15194 2009-07-23  Jim Meyering  <meyering@redhat.com>
15195
15196         maint.mk: invoke "make dist" with a working value of XZ_OPT
15197         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
15198
15199 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
15200
15201         Make fseeko.c compile on QNX.
15202         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
15203
15204 2009-07-22  Peter Simons  <simons@cryp.to>
15205
15206         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
15207         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
15208         * lib/md4.h: Likewise.
15209         * lib/md5.h: Likewise.
15210         * lib/sha1.h: Likewise.
15211         * lib/sha256.h: Likewise.
15212         * lib/sha512.h: Likewise.
15213
15214         tests-sha1: don't assign literal string to 'char *' variable
15215         * tests/test-sha1.c (main): Declare locals with "const" to match
15216         attributes of the right hand side.
15217
15218 2009-07-21  Eric Blake  <ebb9@byu.net>
15219
15220         dup2: fix more mingw problems
15221         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
15222         fd to itself.
15223         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15224         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
15225         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
15226         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
15227         care of mingw bugs.
15228
15229 2009-07-21  Jim Meyering  <meyering@redhat.com>
15230
15231         vc-list-files: avoid failure when /bin/sh is dash
15232         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
15233         On some Debian based systems, /bin/sh is a symlink to dash, and running
15234         this command would omit the "/" following each 'tests' prefix:
15235           dash -x build-aux/vc-list-files -C . tests
15236         That is because bash and dash work differently:
15237           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
15238           bash ok
15239           dash odd
15240
15241 2009-07-21  Eric Blake  <ebb9@byu.net>
15242
15243         dup2-tests: test previous patch
15244         * modules/dup2-tests: New file.
15245         * tests/test-dup2.c: Likewise.
15246         * tests/test-open.c (main): Avoid unspecified behavior.
15247         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
15248         test.
15249
15250         dup2: work around mingw and cygwin 1.5 bug
15251         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
15252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15253         * modules/unistd (Makefile.am): Substitute it.
15254         * lib/unistd.in.h (dup2): Declare the replacement.
15255         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
15256         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
15257         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
15258         * modules/execute (Depends-on): Add dup2.
15259         * modules/fseterr (Depends-on): Likewise.
15260         * modules/pipe (Depends-on): Likewise.
15261         * modules/posix_spawn-internal (Depends-on): Likewise.
15262
15263 2009-07-21  Bruno Haible  <bruno@clisp.org>
15264
15265         * modules/.gitattributes: New file.
15266
15267 2009-07-20  Bruno Haible  <bruno@clisp.org>
15268
15269         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
15270         (main): Use it.
15271
15272 2009-07-20  Eric Blake  <ebb9@byu.net>
15273
15274         test-pipe: make a bit more robust.
15275         * tests/test-pipe.c (myerr): Allow error messages regardless of
15276         what we do to stderr.
15277         (test_pipe): Rearrange to avoid deadlock.
15278         (child_main): Try a larger read, to ensure we avoided deadlock.
15279         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
15280         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
15281         if misused.
15282
15283 2009-07-19  Jim Meyering  <meyering@redhat.com>
15284
15285         fts: avoid false-positive cycle-detection
15286         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
15287         for each new command line argument.
15288
15289 2009-07-19  Bruno Haible  <bruno@clisp.org>
15290
15291         Fix build error on mingw with the modules sys_select and unistd.
15292         * modules/acl-tests (Depends-on): Add close.
15293         * modules/binary-io-tests (Depends-on): Likewise.
15294         * modules/closein-tests (Depends-on): Likewise.
15295         * modules/flock-tests (Depends-on): Likewise.
15296         * modules/fsync-tests (Depends-on): Likewise.
15297         * modules/lseek-tests (Depends-on): Likewise.
15298         * modules/pipe-tests (Depends-on): Likewise.
15299         * modules/posix_spawn-tests (Depends-on): Likewise.
15300         * modules/posix_spawnp-tests (Depends-on): Likewise.
15301         * modules/stat-time-tests (Depends-on): Likewise.
15302         * modules/yesno-tests (Depends-on): Likewise.
15303
15304 2009-07-19  Bruno Haible  <bruno@clisp.org>
15305
15306         Unify conditionals.
15307         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
15308         macros, not at the compiler macros.
15309         * lib/pipe.c: Likewise.
15310         * lib/execute.c: Likewise.
15311         * lib/spawni.c: Likewise.
15312
15313 2009-07-19  Bruno Haible  <bruno@clisp.org>
15314
15315         Fix handling of closed stdin/stdout/stderr on mingw.
15316         * lib/w32spawn.h: Include unistd.h.
15317         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
15318         file descriptor with O_NOINHERIT flag.
15319         (fd_safer_noinherit): New function, based on fd-safer.c.
15320         (dup_safer_noinherit): New function, based on dup-safer.c.
15321         (undup_safer_noinherit): New function.
15322         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
15323         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
15324         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
15325         instead of fd_safer.
15326         * tests/test-pipe.c: Include <windows.h>.
15327         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
15328
15329         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
15330         from main.
15331         (test_pipe): Pass an extra argument for disambiguation.
15332         (main): Invoke parent_main or child_main.
15333
15334         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
15335         consistently.
15336
15337 2009-07-18  Eric Blake  <ebb9@byu.net>
15338
15339         test-pipe: fix mingw build
15340         * tests/test-pipe.c (main): Avoid fcntl on mingw.
15341
15342 2009-07-18  Bruno Haible  <bruno@clisp.org>
15343
15344         * modules/pipe-tests (Makefile.am): Fix typo.
15345
15346 2009-07-18  Eric Blake  <ebb9@byu.net>
15347
15348         error: fix mingw build
15349         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
15350         Reported by Bruno Haible.
15351
15352         error: avoid undefined use of stdout
15353         * lib/error.c (error, error_at_line): Check that fd 1 is open
15354         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
15355         is handling faults and the close_stdout module wants to report the
15356         detection of closed stdout as an error.
15357
15358 2009-07-17  Eric Blake  <ebb9@byu.net>
15359
15360         pipe: be robust in face of closed fds
15361         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
15362         should cause child to misbehave.
15363         * modules/pipe-tests: New module.
15364         * tests/test-pipe.c: New file.
15365         * tests/test-pipe.sh: New file.
15366         Reported by Akim Demaille.
15367
15368 2009-07-14  Bruno Haible  <bruno@clisp.org>
15369
15370         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
15371         Reported by anonymous kc.
15372
15373 2009-07-07  Jim Meyering  <meyering@redhat.com>
15374
15375         maint.mk: don't look for translatable strings in *.m4 or *.mk
15376         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
15377         when searching for translatable strings.
15378
15379 2009-07-05  Jim Meyering  <meyering@redhat.com>
15380
15381         remove superfluous parentheses in STREQ definition
15382         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
15383         * lib/getugroups.c (STREQ): Likewise.
15384         * lib/fnmatch.c (STREQ): Likewise.
15385         Spotted by Bruno Haible.
15386
15387 2009-07-04  Jim Meyering  <meyering@redhat.com>
15388
15389         argv-iter: new module
15390         * MODULES.html.sh: Add argv-iter.
15391         * lib/argv-iter.c, lib/argv-iter.h: New files.
15392         * modules/argv-iter: New file.
15393         * modules/argv-iter-tests: New file.
15394         * tests/test-argv-iter.c: Test it.
15395
15396 2009-07-04  Bruno Haible  <bruno@clisp.org>
15397
15398         Fix assertion.
15399         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
15400         contains more exact copies of a given entry than file2, leave the extra
15401         copies unpaired rather than aborting.
15402         Reported by Eric Blake.
15403
15404 2009-07-02  Bruno Haible  <bruno@clisp.org>
15405
15406         Speedup git-merge-changelog for git cherry-pick.
15407         * lib/git-merge-changelog.c (struct entries_mapping): New type.
15408         (entries_mapping_get): New function, extracted from compute_mapping.
15409         (entries_mapping_reverse_get): New function.
15410         (compute_mapping): Add a 'full' argument. Return the result in a
15411         'struct entries_mapping'.
15412         (main): Update. Access the mappings through entries_mapping_get.
15413         Reported by Eric Blake.
15414
15415 2009-07-02  Bruno Haible  <bruno@clisp.org>
15416
15417         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
15418         best_i.
15419
15420 2009-07-02  Bruno Haible  <bruno@clisp.org>
15421
15422         Speed up approximate search for matching ChangeLog entries.
15423         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
15424         argument. Call fstrcmp_bounded instead of fstrcmp.
15425         (compute_mapping, try_split_merged_entry, main): Update callers.
15426
15427 2009-07-02  Bruno Haible  <bruno@clisp.org>
15428
15429         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
15430
15431 2009-06-30  Bruno Haible  <bruno@clisp.org>
15432
15433         Reduce the number of uc_is_cased calls.
15434         * lib/unicase.h (casing_suffix_context_t): Add
15435         'first_char_except_ignorable' field.
15436         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
15437         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
15438         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
15439         Update initializer.
15440         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
15441         case-ignorable characters.
15442         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
15443         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
15444         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
15445         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
15446         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
15447
15448 2009-06-30  Bruno Haible  <bruno@clisp.org>
15449
15450         Tests for module 'unicase/ignorable'.
15451         * modules/unicase/ignorable-tests: New file.
15452         * tests/unicase/test-ignorable.c: New file, generated by
15453         gen-uni-tables.
15454
15455         Tests for module 'unicase/cased'.
15456         * modules/unicase/cased-tests: New file.
15457         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
15458         * tests/unicase/test-predicate-part1.h: New file, derived from
15459         tests/unictype/test-predicate-part1.h.
15460         * tests/unicase/test-predicate-part2.h: New file, same as
15461         tests/unictype/test-predicate-part2.h.
15462
15463         Fix evaluation of "Before C" condition of FINAL_SIGMA.
15464         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
15465         (output_casing_properties): New function.
15466         (main): Call it.
15467         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
15468         * lib/unicase/cased.c: Include unictype/bitmap.h.
15469         (uc_is_cased): Define through a bitmap lookup.
15470         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
15471         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
15472         (uc_is_case_ignorable): Define through a bitmap lookup.
15473         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
15474         lib/unictype/bitmap.h.
15475         (Depends-on): Add inline. Clean up.
15476         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
15477         lib/unictype/bitmap.h.
15478         (Depends-on): Add inline. Clean up.
15479         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
15480         recognition.
15481         * tests/unicase/test-u16-tolower.c (main): Likewise.
15482         * tests/unicase/test-u32-tolower.c (main): Likewise.
15483
15484 2009-06-30  Bruno Haible  <bruno@clisp.org>
15485
15486         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
15487         * lib/unicase/u16-casemap.c: Likewise.
15488         * lib/unicase/u32-casemap.c: Likewise.
15489
15490 2009-06-29  Bruno Haible  <bruno@clisp.org>
15491
15492         Define u32_casefold as a wrapper around u32_ct_casefold.
15493         * lib/unicase/u32-casefold.c: Update.
15494         * modules/unicase/u32-casefold (Depends-on): Add
15495         unicase/u32-ct-casefold, unicase/empty-prefix-context,
15496         unicase/empty-suffix-context. Clean up.
15497
15498         Define u16_casefold as a wrapper around u16_ct_casefold.
15499         * lib/unicase/u16-casefold.c: Update.
15500         * modules/unicase/u16-casefold (Depends-on): Add
15501         unicase/u16-ct-casefold, unicase/empty-prefix-context,
15502         unicase/empty-suffix-context. Clean up.
15503
15504         Define u8_casefold as a wrapper around u8_ct_casefold.
15505         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
15506         * lib/unicase/u8-casefold.c: Update.
15507         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
15508         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
15509
15510         Define u32_totitle as a wrapper around u32_ct_totitle.
15511         * lib/unicase/u32-totitle.c: Update.
15512         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
15513         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
15514
15515         Define u16_totitle as a wrapper around u16_ct_totitle.
15516         * lib/unicase/u16-totitle.c: Update.
15517         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
15518         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
15519
15520         Define u8_totitle as a wrapper around u8_ct_totitle.
15521         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
15522         functions.
15523         (FUNC): Delegate to U_CT_TOTITLE.
15524         * lib/unicase/u8-totitle.c: Update.
15525         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
15526         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
15527
15528         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
15529         invocation.
15530         * modules/unicase/u32-tolower (Depends-on): Add
15531         unicase/empty-prefix-context, unicase/empty-suffix-context.
15532
15533         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
15534         invocation.
15535         * modules/unicase/u16-tolower (Depends-on): Add
15536         unicase/empty-prefix-context, unicase/empty-suffix-context.
15537
15538         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
15539         * modules/unicase/u8-tolower (Depends-on): Add
15540         unicase/empty-prefix-context, unicase/empty-suffix-context.
15541
15542         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
15543         invocation.
15544         * modules/unicase/u32-toupper (Depends-on): Add
15545         unicase/empty-prefix-context, unicase/empty-suffix-context.
15546
15547         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
15548         invocation.
15549         * modules/unicase/u16-toupper (Depends-on): Add
15550         unicase/empty-prefix-context, unicase/empty-suffix-context.
15551
15552         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
15553         * modules/unicase/u8-toupper (Depends-on): Add
15554         unicase/empty-prefix-context, unicase/empty-suffix-context.
15555
15556         New module 'unicase/u32-ct-casefold'.
15557         * lib/unicase/u32-ct-casefold.c: New file.
15558         * modules/unicase/u32-ct-casefold: New file.
15559
15560         New module 'unicase/u16-ct-casefold'.
15561         * lib/unicase/u16-ct-casefold.c: New file.
15562         * modules/unicase/u16-ct-casefold: New file.
15563
15564         New module 'unicase/u8-ct-casefold'.
15565         * lib/unicase/u8-ct-casefold.c: New file.
15566         * lib/unicase/u-ct-casefold.h: New file, derived from
15567         lib/unicase/u-casefold.h.
15568         * modules/unicase/u8-ct-casefold: New file.
15569
15570         New module 'unicase/u32-ct-totitle'.
15571         * lib/unicase/u32-ct-totitle.c: New file.
15572         * modules/unicase/u32-ct-totitle: New file.
15573
15574         New module 'unicase/u16-ct-totitle'.
15575         * lib/unicase/u16-ct-totitle.c: New file.
15576         * modules/unicase/u16-ct-totitle: New file.
15577
15578         New module 'unicase/u8-ct-totitle'.
15579         * lib/unicase/u8-ct-totitle.c: New file.
15580         * lib/unicase/u-ct-totitle.h: New file, derived from
15581         lib/unicase/u-totitle.h.
15582         * modules/unicase/u8-ct-totitle: New file.
15583
15584         New module 'unicase/u32-ct-tolower'.
15585         * lib/unicase/u32-ct-tolower.c: New file.
15586         * modules/unicase/u32-ct-tolower: New file.
15587
15588         New module 'unicase/u16-ct-tolower'.
15589         * lib/unicase/u16-ct-tolower.c: New file.
15590         * modules/unicase/u16-ct-tolower: New file.
15591
15592         New module 'unicase/u8-ct-tolower'.
15593         * lib/unicase/u8-ct-tolower.c: New file.
15594         * modules/unicase/u8-ct-tolower: New file.
15595
15596         New module 'unicase/u32-ct-toupper'.
15597         * lib/unicase/u32-ct-toupper.c: New file.
15598         * modules/unicase/u32-ct-toupper: New file.
15599
15600         New module 'unicase/u16-ct-toupper'.
15601         * lib/unicase/u16-ct-toupper.c: New file.
15602         * modules/unicase/u16-ct-toupper: New file.
15603
15604         New module 'unicase/u8-ct-toupper'.
15605         * lib/unicase/u8-ct-toupper.c: New file.
15606         * modules/unicase/u8-ct-toupper: New file.
15607
15608         Add context arguments to u*_casemap functions.
15609         * lib/unicase/unicasemap.h: Include unicase.h.
15610         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
15611         suffix_context arguments.
15612         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
15613         functions.
15614         (FUNC): Add prefix_context and suffix_context arguments. Use
15615         uc_is_cased and uc_is_case_ignorable.
15616         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
15617         * lib/unicase/u16-casemap.c: Likewise.
15618         * lib/unicase/u32-casemap.c: Likewise.
15619         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
15620         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
15621         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
15622         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
15623         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
15624         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
15625
15626         New module 'unicase/u32-suffix-context'.
15627         * lib/unicase/u32-suffix-context.c: New file.
15628         * modules/unicase/u32-suffix-context: New file.
15629
15630         New module 'unicase/u16-suffix-context'.
15631         * lib/unicase/u16-suffix-context.c: New file.
15632         * modules/unicase/u16-suffix-context: New file.
15633
15634         New module 'unicase/u8-suffix-context'.
15635         * lib/unicase/u8-suffix-context.c: New file.
15636         * lib/unicase/u-suffix-context.h: New file.
15637         * modules/unicase/u8-suffix-context: New file.
15638
15639         New module 'unicase/empty-suffix-context'.
15640         * lib/unicase/empty-suffix-context.c: New file.
15641         * modules/unicase/empty-suffix-context: New file.
15642
15643         New module 'unicase/u32-prefix-context'.
15644         * lib/unicase/u32-prefix-context.c: New file.
15645         * modules/unicase/u32-prefix-context: New file.
15646
15647         New module 'unicase/u16-prefix-context'.
15648         * lib/unicase/u16-prefix-context.c: New file.
15649         * modules/unicase/u16-prefix-context: New file.
15650
15651         New module 'unicase/u8-prefix-context'.
15652         * lib/unicase/u8-prefix-context.c: New file.
15653         * lib/unicase/u-prefix-context.h: New file.
15654         * lib/unicase/context.h: New file.
15655         * modules/unicase/u8-prefix-context: New file.
15656
15657         New module 'unicase/empty-prefix-context'.
15658         * lib/unicase/empty-prefix-context.c: New file.
15659         * modules/unicase/empty-prefix-context: New file.
15660
15661         New module 'unicase/ignorable'.
15662         * lib/unicase/ignorable.c: New file.
15663         * modules/unicase/ignorable: New file.
15664
15665         New module 'unicase/cased'.
15666         * lib/unicase/caseprop.h: New file.
15667         * lib/unicase/cased.c: New file.
15668         * modules/unicase/cased: New file.
15669
15670         New functions for case mapping of substrings.
15671         * lib/unicase.h (casing_prefix_context_t): New type.
15672         (unicase_empty_prefix_context): New variable.
15673         (u8_casing_prefix_context, u16_casing_prefix_context,
15674         u32_casing_prefix_context, u8_casing_prefixes_context,
15675         u16_casing_prefixes_context, u32_casing_prefixes_context): New
15676         declarations.
15677         (casing_suffix_context_t): New type.
15678         (unicase_empty_suffix_context): New variable.
15679         (u8_casing_suffix_context, u16_casing_suffix_context,
15680         u32_casing_suffix_context, u8_casing_suffixes_context,
15681         u16_casing_suffixes_context, u32_casing_suffixes_context,
15682         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
15683         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
15684         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
15685         declarations.
15686
15687 2009-06-28  Jim Meyering  <meyering@redhat.com>
15688
15689         boostrap: indent only with spaces
15690         * build-aux/bootstrap: Indent only with spaces, never TABs.
15691
15692         bootstrap: split long lines
15693         * build-aux/bootstrap: Keep line length < 80.
15694
15695         bootstrap: sync from coreutils
15696         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
15697         just as autoreconf does.  Verify a list of prerequisite
15698         package-name,version-number pairs if defined in bootstrap.conf.
15699         Refer to README-prereq, if prerequisites are not satisfied.
15700
15701 2009-06-27  Eric Blake  <ebb9@byu.net>
15702
15703         tests: add test for bogus NULL definition
15704         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
15705         * tests/test-stdlib.c: Likewise.
15706         * tests/test-string.c: Likewise.
15707         * tests/test-locale.c: Likewise.
15708         * tests/test-unistd.c: Likewise.
15709         * modules/stdio-tests (Depends-on): Add verify.
15710         * modules/stdlib-tests (Depends-on): Likewise.
15711         * modules/string-tests (Depends-on): Likewise.
15712         * modules/locale-tests (Depends-on): Likewise.
15713         * modules/unistd-tests (Depends-on): Likewise.
15714
15715 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
15716
15717         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
15718         self-explaining comment.
15719         * m4/selinux-selinux-h: Update serial.
15720         (gl_LIBSELINUX): New macro, adding a warning for missing development
15721         packages to code extracted from...
15722         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
15723         Add warning for missing development packages here, too.
15724
15725 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
15726
15727         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
15728
15729 2009-06-25  Eric Blake  <ebb9@byu.net>
15730
15731         version-etc: fix regression
15732         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
15733         gcc.
15734         (version_etc): Use it, to catch bugs with trailing NULL.
15735         * lib/version-etc.c (version_etc_arn): Delete unused argument.
15736         (version_etc_va): Fix logic bug.
15737         * modules/version-etc-tests: Add test.
15738         * tests/test-version-etc.c: New file.
15739         * tests/test-version-etc.sh: Likewise.
15740
15741 2009-06-25  Sam Steingold  <sds@gnu.org>
15742
15743         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
15744         mbtowc declaration.
15745
15746 2009-06-25  Eric Blake  <ebb9@byu.net>
15747
15748         fpurge: migrate into <stdio.h>
15749         * lib/fpurge.h: Delete...
15750         * lib/stdio.in.h (fpurge): ...and declare here, instead.
15751         * lib/fpurge.c (fpurge): Change declaring header.
15752         * modules/fpurge (Files): Drop deleted file.
15753         (Depends-on): Add stdio.
15754         (configure.ac): Set witness.
15755         * modules/stdio (Makefile.am): Support fpurge macros.
15756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15757         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
15758         * lib/fflush.c: Update client.
15759         * tests/test-fpurge.c: Likewise.
15760         * NEWS: Mention the change.
15761
15762 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
15763
15764         * lib/argp-version-etc.c (program_authors): Add const
15765         qualifier.
15766         * lib/version-etc.c: Fix typos in the comments.
15767         * modules/argp-version-etc: Depends on version-etc.
15768
15769 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
15770
15771         argp-version-etc: new module.
15772
15773         * lib/argp-version-etc.c: New file.
15774         * lib/argp-version-etc.h: New file.
15775         * modules/argp-version-etc: New file.
15776         * modules/argp-version-etc-tests: New file.
15777         * tests/test-argp-version-etc.c: New test.
15778         * tests/test-argp-version-etc-1.sh: New test.
15779
15780 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
15781
15782         Provide additional interfaces and documentation for version-etc
15783         module.
15784
15785         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
15786         interfaces.
15787         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
15788         prototypes.
15789
15790 2009-06-24  Bruno Haible  <bruno@clisp.org>
15791
15792         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
15793         HAVE_LIB${NAME} macro.
15794         Reported by Sam Steingold <sds@gnu.org>.
15795
15796 2009-06-23  Simon Josefsson  <simon@josefsson.org>
15797
15798         * modules/hash-tests (test_hash_LDADD): Link to libintl when
15799         needed.
15800
15801 2009-06-21  Bruno Haible  <bruno@clisp.org>
15802
15803         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
15804         work.
15805         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
15806         together with LIB${NAME}, LTLIB${NAME}.
15807         Reported by Sam Steingold <sds@gnu.org>.
15808
15809 2009-06-20  Jim Meyering  <meyering@redhat.com>
15810
15811         tests: make sc_require_test_exit_idiom more generic
15812         * top/maint.mk (Exit_witness_file): New overridable variable.
15813         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
15814         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
15815
15816 2009-06-19  Jim Meyering  <meyering@redhat.com>
15817
15818         hash: reverse order of src/dst parameters in an internal interface
15819         * lib/hash.c (transfer_entries): Reverse order of parameters to
15820         put DST before SRC.  Adjust callers.
15821
15822         tests: test-hash: avoid wholesale duplication
15823         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
15824         Instead, use a loop and add a single conditional.
15825
15826         tests: test-hash: allow seed selection via a command line argument
15827         * tests/test-hash.c (get_seed): New function.
15828         (main): Use it.
15829
15830 2009-06-19  Eric Blake  <ebb9@byu.net>
15831
15832         hash: avoid memory leak on allocation failure
15833         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
15834         failure.  Factor repeated algorithm...
15835         (transfer_entries): ...into new helper routine.
15836         (hash_delete): React to hash_rehash return value.
15837
15838         hash: reduce memory pressure in hash_rehash no-op case
15839         * lib/hash.c (next_prime): Avoid overflow.
15840         (hash_initialize): Factor bucket size computation...
15841         (compute_bucket_size): ...into new helper function.
15842         (hash_rehash): Use new function and open coding to reduce memory
15843         pressure, and avoid a memory leak in USE_OBSTACK code.
15844         Reported by Jim Meyering.
15845
15846 2009-06-18  Eric Blake  <ebb9@byu.net>
15847
15848         hash: make rotation more obvious
15849         * modules/hash (Depends-on): Add bitrotate and stdint.
15850         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
15851         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
15852         (SIZE_MAX): Rely on headers for definition.
15853         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
15854         (raw_hasher): Use rotr_sz.
15855         Suggested by Jim Meyering.
15856
15857         hash: fix memory leak in last patch
15858         * lib/hash.c (hash_rehash): Avoid memory leak.
15859
15860         hash: avoid no-op rehashing
15861         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
15862
15863         hash: provide default callback functions
15864         * lib/hash.c (raw_hasher, raw_comparator): New functions.
15865         (hash_initialize): Use them as defaults.
15866         * tests/test-hash.c (main): Test this.
15867
15868         hash: minor optimization
15869         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
15870         when possible.
15871         (hash_initialize): Document this promise.
15872         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
15873         * tests/test-hash.c (hash_compare_strings): Test this.
15874
15875 2009-06-18  Bruno Haible  <bruno@clisp.org>
15876
15877         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
15878         going to be replaced anyway.
15879
15880 2009-06-18  Bruno Haible  <bruno@clisp.org>
15881
15882         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
15883         in one place.
15884         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
15885         be replaced anyway.
15886
15887 2009-06-18  Eric Blake  <ebb9@byu.net>
15888
15889         hash: check for resize before insertion
15890         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
15891         threshold before insertion, so that a pathological hash_rehash
15892         that fills every bucket can still trigger another rehash.
15893
15894 2009-06-18  Jim Meyering  <meyering@redhat.com>
15895
15896         hash-tests: add a loop around the small tests
15897         * tests/test-hash.c (main): Repeat small tests with selected
15898         small initial table sizes.
15899
15900 2009-06-17  Eric Blake  <ebb9@byu.net>
15901
15902         hash: minor cleanups
15903         * lib/hash.h (hash_entry): Make opaque, by moving...
15904         * lib/hash.c (hash_entry): ...here.
15905         (hash_insert): Clarify restrictions on what can be inserted.
15906         (hash_get_next): Clarify when it is safe to remove an element
15907         during traversal.
15908         (check_tuning): Skip verification when tuning is known safe.
15909         (hash_initialize): Clarify restrictions on tuning.
15910
15911 2009-06-17  Jim Meyering  <jim@meyering.net>
15912         and Eric Blake  <ebb9@byu.net>
15913
15914         hash-tests: new module
15915         * modules/hash-tests: New file.
15916         * tests/test-hash.c: New file.
15917
15918 2009-06-17  Eric Blake  <ebb9@byu.net>
15919
15920         strstr-simple: document new module
15921         * MODULES.html.sh: Document new module.
15922
15923         strstr, strcasestr: replace on platforms with broken memchr
15924         * modules/strstr: Split into...
15925         * modules/strstr-simple: ...new module that does not care about
15926         performance, but does care about glibc bug.
15927         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
15928         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
15929         if platform memchr is broken, per Debian bug 521737.
15930         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
15931         memchr.
15932         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
15933         * doc/posix-functions/strstr.texi (strstr): Document the fix.
15934         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15935         * modules/mountlist (Depends-on): Add strstr-simple.
15936         * modules/gen-uni-tables (Depends-on): Likewise.
15937         * modules/argz (Depends-on): Add strstr.
15938
15939 2009-06-17  Bruno Haible  <bruno@clisp.org>
15940
15941         * modules/posix_spawn-internal (Depends-on): Add errno.
15942
15943 2009-06-17  Bruno Haible  <bruno@clisp.org>
15944
15945         Define missing ESTALE on Interix 3.5.
15946         * lib/errno.in.h (ESTALE): Assign a value if missing.
15947         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
15948         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
15949         missing.
15950         * doc/posix-headers/errno.texi: Mention the Interix bug.
15951         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
15952
15953 2009-06-15  Eric Blake  <ebb9@byu.net>
15954
15955         memchr, memchr2: add valgrind exception
15956         * lib/memchr.valgrind: New file.
15957         * lib/memchr2.valgrind: New file.
15958         * modules/memchr (Files): Distribute valgrind file.
15959         * modules/memchr2 (Files): Likewise.
15960
15961         docs: memchr is no longer obsolete
15962         * MODULES.html.sh: Move memchr from obsolete to string.h section.
15963         * lib/string.in.h (memchr): Simplify logic.
15964
15965 2009-06-14  Jim Meyering  <meyering@redhat.com>
15966
15967         link-follow: fix the "checking..." message to not mention trailing slash
15968         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
15969         never considered trailing slashes.
15970
15971 2009-06-14  Bruno Haible  <bruno@clisp.org>
15972
15973         * m4/memchr.m4: Mention also the bug on IA-64.
15974         * doc/posix-functions/memchr.texi: Likewise.
15975
15976 2009-06-12  Eric Blake  <ebb9@byu.net>
15977
15978         memchr: detect broken x86_64 and alpha implementations
15979         * modules/memchr-tests (Depends-on): Move mmap detection...
15980         * modules/memchr (Depends-on): ...here.
15981         (configure.ac): Set indicator.
15982         * lib/string.in.h (memchr): Declare replacement.
15983         * modules/string (Makefile.am): Trigger replacement.
15984         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
15985         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
15986         bugs.
15987         * doc/posix-functions/memchr.texi (memchr): Document the bug.
15988         * modules/getpagesize (License): Relax license.
15989
15990 2009-06-11  Bruno Haible  <bruno@clisp.org>
15991
15992         * lib/idpriv.h: Add more references.
15993
15994 2009-06-08  Bruno Haible  <bruno@clisp.org>
15995
15996         Tests for module 'idpriv-droptemp'.
15997         * modules/idpriv-droptemp-tests: New file.
15998         * tests/test-idpriv-droptemp.sh: New file.
15999         * tests/test-idpriv-droptemp.su.sh: New file.
16000         * tests/test-idpriv-droptemp.c: New file.
16001
16002         New module 'idpriv-droptemp'.
16003         * lib/idpriv-droptemp.c: New file.
16004         * modules/idpriv-droptemp: New file.
16005
16006 2009-06-08  Bruno Haible  <bruno@clisp.org>
16007
16008         Tests for module 'idpriv-drop'.
16009         * modules/idpriv-drop-tests: New file.
16010         * tests/test-idpriv-drop.sh: New file.
16011         * tests/test-idpriv-drop.su.sh: New file.
16012         * tests/test-idpriv-drop.c: New file.
16013
16014         New module 'idpriv-drop'.
16015         * lib/idpriv.h: New file.
16016         * lib-idpriv-drop.c: New file.
16017         * m4/idpriv.m4: New file.
16018         * modules/idpriv-drop: New file.
16019
16020 2009-06-08  Bruno Haible  <bruno@clisp.org>
16021
16022         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
16023         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16024         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16025         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16026         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16027         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16028         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16029
16030 2009-06-08  Eric Blake  <ebb9@byu.net>
16031
16032         test-strstr: use memory fence, when possible
16033         * tests/test-strstr.c (main): Use memory fence, in order to be
16034         more likely to trigger Debian bug 521737.
16035         * modules/strstr-tests (Files): Pull in additional files.
16036
16037         memchr: no longer obsolete, for wider field testing
16038         * modules/memchr (Status, Notice): Delete, this module is no
16039         longer obsolete.
16040         * modules/vasnprintf (Depends-on): Add memchr.
16041
16042 2009-06-07  Jim Meyering  <meyering@redhat.com>
16043
16044         hash: declare some functions with the warn_unused_result attribute
16045         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
16046
16047 2009-06-07  Bruno Haible  <bruno@clisp.org>
16048
16049         * tests/test-alignof.c: Don't test int64_t if it does not exist.
16050         Reported by Eric Blake.
16051
16052 2009-06-06  Eric Blake  <ebb9@byu.net>
16053
16054         test-alignof: fix typo with long double
16055         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
16056         compiler error.
16057
16058 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
16059
16060         Escape non-texinfo { and }s.
16061         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
16062         markup error.
16063
16064 2009-06-04  Jim Meyering  <meyering@redhat.com>
16065
16066         gitlog-to-changelog: don't infloop on an empty commit log
16067         * build-aux/gitlog-to-changelog: Warn about an empty log message.
16068         Reported by Boris Petersen <transacid@centerim.org>.
16069
16070 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
16071
16072         version-etc: extend for packagers
16073         Add three new configure options, intended for packagers:
16074           --with-packager="packager name"
16075           --with-packager-version="packager-specific version"
16076           --with-packager-bug-reports="packager bug reporting"
16077         An example with coreutils:
16078           $ ./configure \
16079             --with-packager=Gentoo \
16080             --with-packager-bug-report=http://bugs.gentoo.org/ \
16081             --with-packager-version="patchset 1.6"
16082           $ ./src/ls --version | head -n2
16083           ls (GNU coreutils) 7.1-dirty
16084           Packaged by Gentoo (patchset 1.6)
16085         Note that the bug reporting info via --help doesn't show up because
16086         coreutils uses its own custom emit_bug_reporting_address() implementation
16087         in src/system.h.  If it didn't, it'd look like:
16088           $ ./src/ls --help | tail -n4
16089           Report bugs to <bug-coreutils@gnu.org>.
16090           Report Gentoo bugs to <http://bugs.gentoo.org/>.
16091           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
16092           General help using GNU software: <http://www.gnu.org/gethelp/>.
16093         * lib/version-etc.c: Print new information, if provided.
16094         * m4/version-etc.m4: New file.
16095         * modules/version-etc (Files): Add m4/version-etc.m4.
16096         (configure.ac): Add gl_VERSION_ETC.
16097
16098 2009-05-31  Bruno Haible  <bruno@clisp.org>
16099
16100         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
16101         and 'int64_t'.
16102         * modules/alignof-tests (Dependencies): Add stdint.
16103         Reported by Eric Blake.
16104
16105 2009-05-31  Bruno Haible  <bruno@clisp.org>
16106
16107         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
16108         restriction due to compiler bugs.
16109         Reported by Eric Blake.
16110
16111 2009-05-31  Simon Josefsson  <simon@josefsson.org>
16112             Bruno Haible  <bruno@clisp.org>
16113
16114         Fix test-alignof failure.
16115         * lib/alignof.h (alignof_slot): New macro.
16116         (alignof_type): New macro, with the same semantics as the previous
16117         'alignof'.
16118         (alignof): Alias to alignof_slot.
16119         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
16120         check that the results are usable as constant expressions.
16121
16122 2009-05-31  Bruno Haible  <bruno@clisp.org>
16123
16124         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
16125         * tests/test-memchr.c (main): Check that memchr does not read past the
16126         first occurrence of the byte.
16127         * tests/test-strstr.c (main): Update comment.
16128         Suggested by Eric Blake.
16129
16130 2009-05-30  Bruno Haible  <bruno@clisp.org>
16131
16132         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
16133         detail how to use dumpbin.
16134         Reported by David Byron <dbyron@dbyron.com>.
16135
16136 2009-06-02  Simon Josefsson  <simon@josefsson.org>
16137
16138         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
16139
16140 2009-06-02  Simon Josefsson  <simon@josefsson.org>
16141
16142         * m4/manywarnings.m4: Add GCC 4.4 warnings.
16143
16144 2009-05-28  Bruno Haible  <bruno@clisp.org>
16145
16146         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
16147         build-aux/ files.
16148
16149 2009-05-28  Simon Josefsson  <simon@josefsson.org>
16150
16151         * gnulib-tool (func_import): Transform license on build-aux/ files too.
16152
16153 2009-05-27  Simon Josefsson  <simon@josefsson.org>
16154
16155         * gnulib-tool (sed_transform_main_lib_file)
16156         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
16157         regexps.
16158
16159 2009-05-26  Simon Josefsson  <simon@josefsson.org>
16160
16161         * tests/test-strstr.c: Add another self-test.
16162         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
16163         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
16164
16165 2009-05-23  Bruno Haible  <bruno@clisp.org>
16166
16167         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
16168         change.
16169
16170 2009-05-21  Bruno Haible  <bruno@clisp.org>
16171
16172         Simplify use of mode_t varargs.
16173         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
16174         uses 'mode_t' or 'int'.
16175         * lib/openat.c (openat): Likewise.
16176         * lib/open-safer.c (open_safer): Likewise.
16177         * m4/mode_t.m4: New file.
16178         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
16179         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
16180         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
16181         * modules/open (Files): Add m4/mode_t.m4.
16182         * modules/openat (Files): Likewise.
16183         * modules/fcntl-safer (Files): Likewise.
16184         Suggested by Eric Blake.
16185
16186 2009-05-21  Pádraig Brady  <P@draigbrady.com>
16187
16188         * doc/glibc-functions/fallocate.texi: New file.
16189         * doc/gnulib.texi: Include it.
16190
16191 2009-05-21  Eric Blake  <ebb9@byu.net>
16192             Bruno Haible  <bruno@clisp.org>
16193
16194         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
16195         invocations.
16196         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
16197
16198 2009-05-21  Eric Blake  <ebb9@byu.net>
16199             Bruno Haible  <bruno@clisp.org>
16200
16201         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
16202         include_next. Fix of 2008-11-20 commit.
16203         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
16204         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
16205         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
16206         NEXT_MATH_H.
16207         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
16208         instead of NEXT_MATH_H.
16209
16210 2009-05-21  Bruno Haible  <bruno@clisp.org>
16211
16212         Avoid redefinition warnings for SIZE_MAX.
16213         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
16214         Reported by Simon Josefsson.
16215
16216 2009-05-21  Bruno Haible  <bruno@clisp.org>
16217
16218         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
16219         AC_CACHE_VAL.
16220
16221 2009-05-20  Bruno Haible  <bruno@clisp.org>
16222
16223         Make zeroptr.h work on mingw.
16224         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
16225         mprotect.
16226         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
16227         * modules/memchr2-tests (configure.ac): Likewise.
16228         * modules/memcmp-tests (configure.ac): Likewise.
16229         * modules/memmem-tests (configure.ac): Likewise.
16230         * modules/memrchr-tests (configure.ac): Likewise.
16231         Reported by Simon Josefsson.
16232
16233 2009-05-20  Simon Josefsson  <simon@josefsson.org>
16234
16235         * tests/test-glob.c: Include string.h for strcmp prototype.
16236
16237 2009-05-20  Simon Josefsson  <simon@josefsson.org>
16238
16239         * modules/getdelim (Depends-on): Add explicit stdint, although it
16240         was implicitly already pulled in via realloc-posix.
16241         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
16242
16243 2009-05-20  Simon Josefsson  <simon@josefsson.org>
16244
16245         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
16246         G. Christensen" <tgc@jupiterrise.com>.
16247         * m4/sys_socket_h.m4: Check for sa_family_t.
16248         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
16249         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
16250         * tests/test-sys_socket.c: Check that sa_family_t works.
16251
16252 2009-05-18  Eric Blake  <ebb9@byu.net>
16253
16254         maint.mk: allow gnulib_dir in VPATH build
16255         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
16256
16257 2009-05-15  Jim Meyering  <meyering@redhat.com>
16258
16259         maint.mk: Give gnulib_dir a default definition.
16260         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
16261         Thus, most packages no longer need to specify this variable in cfg.mk
16262
16263 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
16264
16265         rename.m4: fix typos that would make non-mingw cross-configure fail
16266         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
16267
16268 2009-05-13  Eric Blake  <ebb9@byu.net>
16269
16270         mmap-anon: avoid out-of-order autoconf expansion
16271         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
16272         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
16273         * modules/memchr-tests (Depends-on): Add extensions.
16274         * modules/memchr2-tests (Depends-on): Add extensions.
16275         * modules/memcmp-tests (Depends-on): Add extensions.
16276         * modules/memmem-tests (Depends-on): Add extensions.
16277         * modules/memrchr-tests (Depends-on): Add extensions.
16278
16279 2009-05-13  Bruno Haible  <bruno@clisp.org>
16280
16281         Make some tests ISO C 99 compliant.
16282         * tests/zerosize-ptr.h: New file.
16283         * tests/test-memchr.c: Include zerosize-ptr.h.
16284         (main): Use a zero-size object pointer instead of NULL.
16285         * tests/test-memchr2.c: Include zerosize-ptr.h.
16286         (main): Use a zero-size object pointer instead of NULL.
16287         * tests/test-memcmp.c: Include zerosize-ptr.h.
16288         (main): Use a zero-size object pointer instead of NULL.
16289         * tests/test-memmem.c: Include zerosize-ptr.h.
16290         (main): Use a zero-size object pointer instead of NULL.
16291         * tests/test-memrchr.c: Include zerosize-ptr.h.
16292         (main): Use a zero-size object pointer instead of NULL.
16293         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
16294         m4/mmap-anon.m4.
16295         (Depends-on): Add getpagesize.
16296         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
16297         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
16298         m4/mmap-anon.m4.
16299         (Depends-on): Add getpagesize.
16300         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
16301         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
16302         m4/mmap-anon.m4.
16303         (Depends-on): Add getpagesize.
16304         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
16305         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
16306         m4/mmap-anon.m4.
16307         (Depends-on): Add getpagesize.
16308         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
16309         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
16310         m4/mmap-anon.m4.
16311         (Depends-on): Add getpagesize.
16312         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
16313
16314 2009-05-12  Bruno Haible  <bruno@clisp.org>
16315
16316         Tests for module 'alignof'.
16317         * modules/alignof-tests: New file.
16318         * tests/test-alignof.c: New file.
16319
16320 2009-05-12  Bruno Haible  <bruno@clisp.org>
16321
16322         Fix alignof macro.
16323         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
16324         vendor compilers that are always correct.
16325
16326 2009-05-12  Bruno Haible  <bruno@clisp.org>
16327
16328         Make the MAP_ANONYMOUS detection work on HP-UX 11.
16329         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
16330         not whether its fully works.
16331
16332 2009-05-12  Bruno Haible  <bruno@clisp.org>
16333
16334         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
16335
16336 2009-05-12  Jim Meyering  <meyering@redhat.com>
16337
16338         * top/maint.mk: Adjust backslash alignment.
16339
16340 2009-05-11  Simon Josefsson  <simon@josefsson.org>
16341
16342         * top/maint.mk: Make $(srcdir)/build-aux configurable.
16343
16344 2009-05-11  Eric Blake  <ebb9@byu.net>
16345
16346         argp: avoid undefined behavior
16347         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
16348         macros.
16349
16350 2009-05-08  Simon Josefsson  <simon@josefsson.org>
16351
16352         * tests/test-vc-list-files-git.sh: Do git config of user.email and
16353         user.name to prevent git commit from complaining.
16354
16355 2009-05-10  Bruno Haible  <bruno@clisp.org>
16356
16357         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
16358         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
16359         it rewrites every file name only once.
16360         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
16361
16362 2009-05-08  Bruno Haible  <bruno@clisp.org>
16363
16364         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
16365         instead of 'max'.
16366
16367 2009-05-08  Simon Josefsson  <simon@josefsson.org>
16368
16369         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
16370         sockaddr_storage test.
16371
16372 2009-05-07  Simon Josefsson  <simon@josefsson.org>
16373
16374         * modules/sys_socket (Makefile.am): Substitute
16375         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
16376         * m4/sys_socket_h.m4: Check for sockaddr_storage.
16377         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
16378         * tests/test-sys_socket.c: Check sockaddr_storage.
16379
16380 2009-05-08  Bruno Haible  <bruno@clisp.org>
16381
16382         New module 'alignof'.
16383         * lib/alignof.h: New file.
16384         * modules/alignof: New file.
16385
16386 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
16387             Bruno Haible  <bruno@clisp.org>
16388
16389         Fix test-file-has-acl on FreeBSD.
16390         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
16391         mask is implicitly added.
16392         * tests/test-file-has-acl.c: Include <signal.h>.
16393         (main): Terminate the test after 5 seconds.
16394         * modules/acl-tests (configure.ac): Check for alarm function.
16395
16396 2009-05-04  Bruno Haible  <bruno@clisp.org>
16397
16398         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
16399         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
16400         * modules/errno (configure.ac): Drop AC_REQUIRE.
16401         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
16402         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
16403
16404 2009-05-04  Simon Josefsson  <simon@josefsson.org>
16405
16406         * modules/glob-tests: New module.
16407         * tests/test-glob.c: Add.
16408
16409 2009-05-04  Simon Josefsson  <simon@josefsson.org>
16410
16411         * modules/fnmatch-tests: New module.
16412         * tests/test-fnmatch.c: Add.
16413
16414 2009-05-04  Eric Blake  <ebb9@byu.net>
16415
16416         maint: make the new no-submodule-changes rule VPATH-safe
16417         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
16418
16419 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
16420             Bruno Haible  <bruno@clisp.org>
16421
16422         acl: Fix infinite loop on FreeBSD.
16423         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
16424         of return value from acl_get_entry.
16425         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
16426         Likewise.
16427
16428 2009-05-03  Bruno Haible  <bruno@clisp.org>
16429
16430         * lib/acl-internal.h (acl_entries): Clarify return value.
16431         * lib/acl_entries.c (acl_entries): Likewise.
16432
16433 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
16434
16435         Bug fix in acl module.
16436         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
16437
16438 2009-05-03  Bruno Haible  <bruno@clisp.org>
16439
16440         Create gperf-generated file in the source dir, not in the build dir.
16441         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
16442         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
16443         * modules/unicase/locale-language (unicase/locale-languages.h):
16444         Likewise.
16445         * modules/unicase/special-casing (unicase/special-casing-table.h):
16446         Likewise.
16447         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
16448         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
16449         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
16450         Reported by Ralf Wildenhues.
16451
16452 2009-05-03  Bruno Haible  <bruno@clisp.org>
16453
16454         * modules/fnmatch (Description, configure.ac): Taken from
16455         fnmatch-posix.
16456         * modules/fnmatch-posix: Turn into a symbolic reference to the
16457         'fnmatch' module, and deprecate.
16458         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
16459
16460 2009-05-03  Bruno Haible  <bruno@clisp.org>
16461
16462         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
16463         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
16464         Reported by Ralf Wildenhues.
16465
16466 2009-05-04  Simon Josefsson  <simon@josefsson.org>
16467
16468         * m4/fnmatch.m4: Fix fnmatch re-define.
16469
16470 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
16471
16472         priv-set: new module and tests; adapt write-any-file
16473         * lib/priv-set.c: New file.
16474         * lib/priv-set.h: New file.
16475         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
16476         * lib/write-any-file.c: Simplify by using priv-set module.
16477         * m4/priv-set.m4: New file.
16478         * modules/priv-set: New file.
16479         * modules/unlinkdir: Add dependency on priv-set module.
16480         * modules/write-any-file: Likewise.
16481
16482         Tests for module 'priv-set'.
16483         * modules/priv-set-tests: New file.
16484         * tests/test-priv-set.c: New file.
16485
16486 2009-05-03  Jim Meyering  <meyering@redhat.com>
16487             Bruno Haible  <bruno@clisp.org>
16488
16489         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
16490         use the converted UTF-8 variant of the name instead.
16491
16492 2009-05-03  Jim Meyering  <meyering@redhat.com>
16493
16494         tests: tighten some getdate tests
16495         * tests/test-getdate.c (main): Tighten tests: require equality,
16496         not just greater than.  Set TZ envvar to UTC0.
16497
16498 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
16499
16500         getdate: correctly interpret "next monday" when run on a Monday
16501         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
16502         that e.g., "next tues" (when run on a tuesday) results in a date
16503         that is one week in the future, and not today's date.
16504         I.e., add a week when the wday is the same as the current one.
16505         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
16506         and earlier by Martin Bernreuther and Jan Minář.
16507         * tests/test-getdate.c (main): Check that "next DAY" is always in
16508         the future and that "last DAY" is always in the past.
16509
16510 2009-05-02  Jim Meyering  <meyering@redhat.com>
16511
16512         build: ensure that a release build fails when a submodule is unclean
16513         * top/maint.mk (no-submodule-changes): New rule.
16514         (alpha beta major): Depend on it.
16515
16516 2009-05-02  Bruno Haible  <bruno@clisp.org>
16517
16518         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
16519         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
16520         shell variable gl_fnmatch_required to detect which variant is
16521         requested.
16522         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
16523         gl_FUNC_FNMATCH_POSIX.
16524         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
16525         exclude fnmatch-posix.
16526
16527 2009-05-02  Bruno Haible  <bruno@clisp.org>
16528
16529         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
16530         * modules/mbsrtowcs (License): Change to LGPLv2+.
16531         * modules/strnlen1 (License): Likewise.
16532         Reported by Simon Josefsson.
16533
16534 2009-05-02  Bruno Haible  <bruno@clisp.org>
16535
16536         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
16537         "cross".
16538         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
16539         gnulib-tool was called with option --source-base=lib.
16540
16541 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16542
16543         Use automake *-local hooks without commands, for extensibility.
16544         * modules/localcharset (Makefile.am): Rename install-exec-local
16545         rule to install-exec-localcharset, and make it a prerequisite of
16546         install-exec-local.  Likewise, rename the uninstall-local rule to
16547         uninstall-localcharset, and make it a prerequisite of the former.
16548
16549 2009-05-01  Bruno Haible  <bruno@clisp.org>
16550
16551         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
16552         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
16553         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
16554         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
16555         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
16556         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
16557         m4/locale-zh.m4, m4/codeset.m4.
16558
16559         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
16560         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
16561         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
16562         m4/locale-zh.m4.
16563
16564         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
16565         REPLACE_WCRTOMB if mbstate_t must be replaced.
16566         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
16567         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
16568
16569 2009-05-01  Bruno Haible  <bruno@clisp.org>
16570
16571         Avoid compiler warnings when redefining macros defined by <libintl.h>.
16572         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
16573         dngettext, dcngettext, textdomain, bindtextdomain,
16574         bind_textdomain_codeset): Undefine before redefining.
16575
16576 2009-04-30  Bruno Haible  <bruno@clisp.org>
16577
16578         Fix bug introduced on 2009-04-25.
16579         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
16580         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
16581         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
16582         is defined.
16583         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
16584         is defined.
16585         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
16586         is defined.
16587         Reported by Elbert_Pol <elbert.pol@gmail.com>.
16588
16589 2009-04-28  Bruno Haible  <bruno@clisp.org>
16590
16591         Comment tweaks.
16592         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
16593         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
16594         * lib/unicase.h (u*_casexfrm): Likewise.
16595         Reported by Paolo Bonzini.
16596
16597 2009-04-28  Bruno Haible  <bruno@clisp.org>
16598
16599         Fix a compilation error.
16600         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
16601         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
16602         Reported by Jim Meyering.
16603
16604 2009-04-27  Bruno Haible  <bruno@clisp.org>
16605
16606         New module 'libunistring'.
16607         * modules/libunistring: New file.
16608         * m4/libunistring.m4: New file.
16609         * MODULES.html.sh (Unicode string functions): Add it.
16610
16611 2009-04-27  Eric Blake  <ebb9@byu.net>
16612
16613         maint.mk: allow package-specific header to provide <config.h>
16614         * top/maint.mk (sc_require_config_h): New variable.
16615         (sc_require_config_h, sc_require_config_h_first): Use it.
16616
16617 2009-04-27  Simon Josefsson  <simon@josefsson.org>
16618
16619         * top/maint.mk (sc_avoid_if_before_free): Except
16620         useless-if-before-free script.
16621
16622 2009-04-27  Eric Blake  <ebb9@byu.net>
16623
16624         maintainer-makefile: depend on all required helper scripts
16625         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
16626         useless-if-before-free.
16627         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
16628         version, rather than assuming gnulib checkout is available.
16629         Reported by Simen Josefsson.
16630
16631 2009-04-26  Bruno Haible  <bruno@clisp.org>
16632
16633         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
16634         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
16635         "../" or "..".
16636
16637 2009-04-26  Bruno Haible  <bruno@clisp.org>
16638
16639         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
16640         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
16641         AC_LIB_HAVE_LINKFLAGS.
16642
16643 2009-04-26  Bruno Haible  <bruno@clisp.org>
16644
16645         Simplify calling convention of u*_conv_from_encoding.
16646         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
16647         u32_conv_from_encoding): Expect a resultbuf argument and return the
16648         result directly as a pointer.
16649         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
16650         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
16651         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
16652         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
16653         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
16654         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
16655         Update.
16656         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
16657         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
16658         * lib/vasnprintf.c (VASNPRINTF): Update.
16659         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
16660         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
16661         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
16662         * NEWS: Mention the change.
16663
16664 2009-04-26  Bruno Haible  <bruno@clisp.org>
16665
16666         Simplify calling convention of u*_conv_to_encoding.
16667         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
16668         u32_conv_to_encoding): Expect a resultbuf argument and return the
16669         result directly as a pointer.
16670         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
16671         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
16672         freeing scaled_offsets if mem_iconveha failed.
16673         * lib/unicase/u-casexfrm.h (FUNC): Update.
16674         * lib/uninorm/u-normxfrm.h (FUNC): Update.
16675         * lib/vasnprintf.c (VASNPRINTF): Update.
16676         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
16677         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
16678         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
16679         * NEWS: Mention the change.
16680
16681 2009-04-26  Bruno Haible  <bruno@clisp.org>
16682
16683         Avoid test failures on AIX and OSF/1.
16684         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
16685         malloc(0).
16686         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
16687         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
16688         Likewise.
16689         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
16690         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
16691         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
16692         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
16693         * doc/posix-functions/malloc.texi: Document the portability problem
16694         related to malloc(0).
16695
16696 2009-04-26  Bruno Haible  <bruno@clisp.org>
16697
16698         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
16699         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
16700         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
16701
16702 2009-04-25  Bruno Haible  <bruno@clisp.org>
16703
16704         Avoid link error when creating a namespace clean library.
16705         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
16706         as macro with arguments if already defined as an alias.
16707         * lib/signbitf.c (gl_signbitf): Don't undefine.
16708         * lib/signbitd.c (gl_signbitd): Don't undefine.
16709         * lib/signbitl.c (gl_signbitl): Don't undefine.
16710
16711 2009-04-25  Jim Meyering  <meyering@redhat.com>
16712
16713         vc-list-files: fix another quoting bug
16714         * build-aux/vc-list-files: Avoid sed backslash expansion
16715         of pathological directory names.
16716
16717 2009-04-25  Eric Blake  <ebb9@byu.net>
16718
16719         vc-list-files: fix shell quoting error
16720         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
16721         timestamp.
16722
16723 2009-04-25  Jim Meyering  <meyering@redhat.com>
16724
16725         vc-list-files: restore lost functionality with subdir argument
16726         * build-aux/vc-list-files: When given a non-"." sub-directory
16727         argument, substitute the $dir/ prefix back onto each resulting name.
16728         Otherwise, coreutils' root_tests check would fail.
16729
16730 2009-04-24  Eric Blake  <ebb9@byu.net>
16731
16732         vc-list-files: ignore git symlinks
16733         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
16734         than ls-files, to ignore git symlinks.
16735
16736         maint.mk: import improvements from m4
16737         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
16738         (move_if_change): Delete unused macro.
16739         (news-date-check, vc-diff-check): Support VPATH builds.
16740         (announcement): Likewise.  Split --bootstrap-tools list...
16741         (boostrap-tools): ...into separate list, which can be overridden
16742         in cfg.mk.
16743         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
16744         requiring dependency on useless-if-before-free module.
16745         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
16746         Support VPATH builds.
16747
16748 2009-04-24  Jim Meyering  <meyering@redhat.com>
16749
16750         maint.mk: remove coreutils-specific rules and variables
16751         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
16752         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
16753         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
16754
16755         maint.mk: remove obsolete rule
16756         * top/maint.mk (rel-check): Remove rule.
16757         (WGET, WGETFLAGS): Remove now-unused variables.
16758
16759 2009-04-24  Simon Josefsson  <simon@josefsson.org>
16760
16761         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
16762         consistency.
16763
16764         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
16765         '$(PATH_SEPARATOR)' instead of ':'.
16766
16767 2009-04-24  Simon Josefsson  <simon@josefsson.org>
16768
16769         * lib/getopt1.c (main): Use 'const' for static array.
16770
16771 2009-04-24  Simon Josefsson  <simon@josefsson.org>
16772
16773         * top/maint.mk: Sync with coreutils.
16774         * NEWS: Explain incompatibilities.
16775
16776 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16777             Bruno Haible  <bruno@clisp.org>
16778
16779         Fix cross-compilation results.
16780         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
16781         statement, as third argument of AC_TRY_RUN.
16782         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16783         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
16784         Likewise.
16785         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16786         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
16787         Likewise.
16788         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16789         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
16790         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
16791
16792 2009-04-20  Bruno Haible  <bruno@clisp.org>
16793
16794         Avoid test failure on mingw.
16795         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
16796
16797 2009-04-20  Bruno Haible  <bruno@clisp.org>
16798
16799         Avoid compilation error on mingw.
16800         * modules/localename-tests (Depends-on): Add locale.
16801
16802 2009-04-19  Bruno Haible  <bruno@clisp.org>
16803
16804         Support for building a shared library on Windows platforms.
16805         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
16806         (main): Test the presence of UNINORM_NFC here.
16807         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
16808         (main): Test the presence of UNINORM_NFD here.
16809         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
16810         (main): Test the presence of UNINORM_NFKC here.
16811         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
16812         (main): Test the presence of UNINORM_NFKD here.
16813
16814 2009-04-19  Bruno Haible  <bruno@clisp.org>
16815
16816         Avoid a compiler warning.
16817         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
16818         Change type of variable 'sequence'.
16819
16820 2009-04-19  Bruno Haible  <bruno@clisp.org>
16821
16822         * modules/configmake (Makefile.am): When the contents of configmake.h
16823         does not change, arrange to preserve its modification time.
16824
16825 2009-04-17  Simon Josefsson  <simon@josefsson.org>
16826
16827         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
16828         gettext domain.
16829
16830 2009-04-16  Jim Meyering  <meyering@redhat.com>
16831
16832         useless-if-before-free: improve conversion code
16833         * build-aux/useless-if-before-free: Adjust code-in-comment to match
16834         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
16835
16836 2009-04-14  Bruno Haible  <bruno@clisp.org>
16837
16838         * modules/fcntl (Depends-on): Add extensions.
16839         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
16840
16841 2009-04-12  Ben Pfaff  <blp@gnu.org>
16842
16843         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
16844         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
16845
16846 2009-03-20  Ben Pfaff  <blp@gnu.org>
16847
16848         Make rename replace existing destinations on Windows.
16849         * m4/rename.m4: Add test for Mingw.
16850         * lib/rename.c: Add rename replacement that uses MoveFileEx with
16851         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
16852         * doc/posix-functions/rename.texi: Document.
16853
16854 2009-04-10  Bruno Haible  <bruno@clisp.org>
16855
16856         New include file "iconveh.h".
16857         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
16858         * lib/striconveh.h: Include it.
16859         (enum iconv_ilseq_handler): Remove definition.
16860         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
16861         striconveh.h.
16862         * lib/striconveha.c: Include striconveh.h.
16863         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
16864         * modules/striconveh (Files): Add lib/iconveh.h.
16865         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
16866         lib/striconveh.h.
16867
16868 2009-04-10  Bruno Haible  <bruno@clisp.org>
16869
16870         * lib/uniconv.h: Update comment.
16871
16872 2009-04-10  Bruno Haible  <bruno@clisp.org>
16873
16874         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
16875         always.
16876         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
16877         * lib/unistr/u16-mbtouc-aux.c: Likewise.
16878         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
16879         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
16880         "unistring-notinline.h", so that the function gets defined always.
16881         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
16882         * lib/unistr/u8-uctomb.c: Likewise.
16883         * lib/unistr/u16-mbtouc.c: Likewise.
16884         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
16885         * lib/unistr/u16-uctomb.c: Likewise.
16886         * lib/unistr/u32-mbtouc.c: Likewise.
16887         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
16888         * lib/unistr/u32-uctomb.c: Likewise.
16889
16890 2009-04-10  Bruno Haible  <bruno@clisp.org>
16891
16892         Mark 'utime' obsolete.
16893         * modules/utime (Status, Notice): New sections.
16894         Suggested by Jim Meyering.
16895
16896         Fix cross-compile guess for utime test.
16897         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
16898         autoconf.
16899         * doc/posix-functions/utime.texi: Give more precisions.
16900         Reported by Jan <ipif@ymail.com>.
16901
16902 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
16903
16904         filevercmp: correct today's change
16905         * lib/filevercmp.c: Also handle coreutils' test inputs.
16906         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
16907
16908         Fix regression in 'filevercmp' module. Thanks Sven Joachim
16909         for reporting it.
16910         * lib/filevercmp.c: Special handle for "", "." and "..".
16911         * tests/test-filevercmp.c: Enlarge the set suite.
16912
16913 2009-04-07  Jim Meyering  <meyering@redhat.com>
16914
16915         useless-if-before-free: show how to remove braced useless free, too
16916         * build-aux/useless-if-before-free: still only in a comment, though.
16917
16918 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
16919
16920         maint.mk: import changes to syntax-check macros from coreutils
16921         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
16922         Use them in the relevant macros.
16923
16924 2009-04-06  Bruno Haible  <bruno@clisp.org>
16925
16926         Fix unportable use of bit-fields.
16927         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
16928         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
16929         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
16930
16931 2009-04-06  Bruno Haible  <bruno@clisp.org>
16932
16933         Avoid test failures on AIX and OSF/1.
16934         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
16935         that malloc(0) = NULL.
16936         * tests/unicase/test-u8-tolower.c (check): Likewise.
16937         * tests/unicase/test-u8-totitle.c (check): Likewise.
16938         * tests/unicase/test-u8-toupper.c (check): Likewise.
16939         * tests/unicase/test-u16-casefold.c (check): Likewise.
16940         * tests/unicase/test-u16-tolower.c (check): Likewise.
16941         * tests/unicase/test-u16-totitle.c (check): Likewise.
16942         * tests/unicase/test-u16-toupper.c (check): Likewise.
16943         * tests/unicase/test-u32-casefold.c (check): Likewise.
16944         * tests/unicase/test-u32-tolower.c (check): Likewise.
16945         * tests/unicase/test-u32-totitle.c (check): Likewise.
16946         * tests/unicase/test-u32-toupper.c (check): Likewise.
16947         * tests/uninorm/test-u8-nfc.c (check): Likewise.
16948         * tests/uninorm/test-u8-nfd.c (check): Likewise.
16949         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
16950         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
16951         * tests/uninorm/test-u16-nfc.c (check): Likewise.
16952         * tests/uninorm/test-u16-nfd.c (check): Likewise.
16953         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
16954         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
16955         * tests/uninorm/test-u32-nfc.c (check): Likewise.
16956         * tests/uninorm/test-u32-nfd.c (check): Likewise.
16957         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
16958         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
16959
16960 2009-04-05  Bruno Haible  <bruno@clisp.org>
16961
16962         Work around an autoconf limitation.
16963         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
16964         comment line if it would be longer than 3 KB.
16965
16966 2009-04-05  Bruno Haible  <bruno@clisp.org>
16967
16968         Avoid test failure with libiconv-1.13.
16969         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
16970         of the expected test results.
16971
16972 2009-04-05  Bruno Haible  <bruno@clisp.org>
16973
16974         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
16975         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
16976         that it should be installed.
16977
16978 2009-04-05  Bruno Haible  <bruno@clisp.org>
16979
16980         * gnulib-tool: New option --copy-file.
16981         (func_usage): Document it.
16982         (func_dest_tmpfilename): Moved out of func_import.
16983         (func_add_file, func_update_file): New functions, extracted from
16984         func_import.
16985         (func_import): Update.
16986
16987 2009-04-05  Karl Berry  <karl@gnu.org>
16988
16989         * README: prominently mention gnulib-tool.
16990         Rearrange sections so getting the code is near the top.
16991
16992 2009-04-05  Bruno Haible  <bruno@clisp.org>
16993
16994         * lib/unicase.h: Mention u*_cmp2.
16995         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
16996         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
16997         * lib/unicase/ulc-casecmp.c: Likewise.
16998         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
16999         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
17000         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
17001         unistr/u8-cmp.
17002         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
17003         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
17004         unistr/u16-cmp.
17005         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
17006         unistr/u32-cmp.
17007
17008         * lib/uninorm.h: Mention u*_cmp2.
17009         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
17010         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
17011         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
17012         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
17013         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
17014         unistr/u8-cmp.
17015         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
17016         unistr/u16-cmp.
17017         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
17018         unistr/u32-cmp.
17019
17020         New module 'unistr/u32-cmp2'.
17021         * lib/unistr/u32-cmp2.c: New file.
17022         * modules/unistr/u32-cmp2: New file.
17023
17024         New module 'unistr/u16-cmp2'.
17025         * lib/unistr/u16-cmp2.c: New file.
17026         * modules/unistr/u16-cmp2: New file.
17027
17028         New module 'unistr/u8-cmp2'.
17029         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
17030         * lib/unistr/u8-cmp2.c: New file.
17031         * lib/unistr/u-cmp2.h: New file.
17032         * modules/unistr/u8-cmp2: New file.
17033
17034 2009-04-05  Bruno Haible  <bruno@clisp.org>
17035
17036         * lib/unictype.h (uc_property_is_valid): New macro.
17037         * tests/unictype/test-pr_byname.c (main): Use it.
17038
17039         * lib/unistr.h: Doc fixes.
17040         * lib/uniconv.h: Doc fixes.
17041         * lib/unictype.h: Doc fixes.
17042
17043 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
17044
17045         Port coreutils 7.2 to Solaris 8.
17046
17047         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
17048         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
17049         for Solaris 8.  This is a bit of a hack, as it means it's the
17050         caller's responsibility to add -lnsl if needed, but most likely it
17051         won't be needed since only getaddrinfo uses this and getaddrinfo
17052         isn't needed on Solaris 8.
17053
17054         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
17055         problem to Solaris 8 encountered with coreutils 7.2, which
17056         resulted in a message "fnmatch.c:292: warning: passing argument 4
17057         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
17058         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
17059
17060 2009-04-03  Simon Josefsson  <simon@josefsson.org>
17061
17062         * m4/ld-version-script.m4: Add FIXME comment.
17063
17064 2009-04-02  Simon Josefsson  <simon@josefsson.org>
17065
17066         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
17067         SOVERSION variable.
17068
17069 2009-04-02  Bruno Haible  <bruno@clisp.org>
17070
17071         * Makefile (info, html, dvi, pdf): Combine the rules.
17072         Suggested by Jim Meyering.
17073
17074 2009-04-01  Bruno Haible  <bruno@clisp.org>
17075
17076         * Makefile (info, html, dvi, pdf): New targets.
17077         Reported by Reuben Thomas <rrt@sc3d.org>.
17078
17079 2009-04-01  Bruno Haible  <bruno@clisp.org>
17080
17081         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
17082         can be put into PATH.
17083         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
17084
17085 2009-04-01  Bruno Haible  <bruno@clisp.org>
17086
17087         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
17088
17089 2009-04-01  Bruno Haible  <bruno@clisp.org>
17090
17091         Rename module 'visibility'.
17092         * modules/lib-symbol-visibility: Renamed from modules/visibility.
17093         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
17094         * doc/gnulib.texi: Update.
17095         * MODULES.html.sh (Misc): Update.
17096         * NEWS: Mention the change.
17097
17098 2009-04-01  Simon Josefsson  <simon@josefsson.org>
17099
17100         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
17101         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
17102         Eric Blake <ebb9@byu.net> for review.
17103         * MODULES.html.sh: Add lib-msvc-compat.
17104         * doc/gnulib.texi: Link to new section.
17105         * m4/ld-output-def.m4: New file.
17106         * doc/ld-output-def.texi: New file.
17107
17108 2009-04-01  Simon Josefsson  <simon@josefsson.org>
17109
17110         Rename ld-version-script to lib-symbol-versions.  Suggested by
17111         Bruno Haible <bruno@clisp.org>.
17112         * modules/ld-version-script: Renamed to lib-symbol-versions.
17113         * doc/ld-version-script.texi: Fix module name.
17114         * MODULES.html.sh: Add lib-symbol-versions.
17115
17116 2009-03-31  Simon Josefsson  <simon@josefsson.org>
17117
17118         * modules/u64-tests: New file.
17119         * tests/test-u64.c: New file.
17120
17121 2009-03-04  Simon Josefsson  <simon@josefsson.org>
17122
17123         * MODULES.html.sh: Mention u64.
17124         * modules/u64: New module.
17125         * modules/crypto/sha512: Depend on u64 module instead of providing
17126         u64.h.
17127
17128 2009-03-27  Eric Blake  <ebb9@byu.net>
17129
17130         test-strerror: make debugging EAI_SYSTEM easier
17131         * modules/getaddrinfo-tests (Depends-on): Add strerror.
17132         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
17133         failure was EAI_SYSTEM.
17134
17135 2009-03-25  Bruno Haible  <bruno@clisp.org>
17136
17137         Fix a problem with --enable-relocatable on Solaris 7.
17138         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
17139         since 2008-02-24.
17140
17141 2009-03-25  Eric Blake  <ebb9@byu.net>
17142
17143         test-sockets: avoid gcc warning
17144         * tests/test-sockets.c (main): Silence compiler warning.
17145
17146 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
17147
17148         New modules nproc, pthread, contributed by Glen Lenker.
17149
17150         * MODULES.html.sh: Add pthread, nproc.
17151         * lib/nproc.c: New file.
17152         * lib/nproc.h: New file.
17153         * lib/pthread.in.h: New file.
17154         * m4/pthread.m4: New file.
17155         * modules/nproc: New file.
17156         * modules/pthread: New file.
17157
17158 2009-03-24  Simon Josefsson  <simon@josefsson.org>
17159
17160         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
17161         New variable.
17162
17163 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
17164
17165         filevercmp: handle simple~ and numbered.~3~ backup suffixes
17166         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
17167         * tests/test-filevercmp.c: Add tests for backup suffixes.
17168
17169 2009-03-24  Simon Josefsson  <simon@josefsson.org>
17170
17171         * modules/stdlib (Depends-on): Add stdint, needed when defining
17172         struct random_data on, for example, HP-UX 10.20.  Reported by
17173         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17174
17175 2009-03-24  Simon Josefsson  <simon@josefsson.org>
17176
17177         * lib/readline.c (readline): Call fflush on stdout after printing
17178         prompt.
17179
17180 2009-03-20  Bruno Haible  <bruno@clisp.org>
17181
17182         Remove dependency from 'close' module to -lws2_32 on native Windows.
17183         * lib/close-hook.h: New file.
17184         * lib/close-hook.c: New file.
17185         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
17186         w32sock.h.
17187         (_gl_close_fd_maybe_socket): Remove function.
17188         (rpl_close): Invoke execute_all_close_hooks instead of
17189         _gl_close_fd_maybe_socket.
17190         * lib/sockets.c: Include close-hook.h, w32sock.h.
17191         (close_fd_maybe_socket): New function, essentially from lib/close.c.
17192         (close_sockets_hook): New variable.
17193         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
17194         (gl_sockets_cleanup): Unregister it.
17195         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
17196         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
17197         * modules/close-hook: New file.
17198         * modules/close (Files): Remove lib/w32sock.h.
17199         (Depends-on): Add close-hook.
17200         (Link): Remove section.
17201         * modules/sockets (Files): Add lib/w32sock.h.
17202         (Depends-on): Add close-hook.
17203         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
17204         invocation.
17205         * NEWS: Mention that LIB_CLOSE is gone.
17206
17207 2009-03-23  Eric Blake  <ebb9@byu.net>
17208
17209         signal-tests: test previous patch
17210         * tests/test-signal.c: New file.
17211         * modules/signal-tests: Likewise.
17212
17213         signal.h: always support 'volatile sig_atomic_t'
17214         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
17215         (gl_SIGNAL_H_DEFAULTS): Add a default.
17216         * modules/signal (Makefile.am): Substitute if needed.
17217         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
17218         users can blindly add volatile.
17219         * doc/posix-headers/signal.texi (signal.h): Document it.
17220         Reported by Matthew Woehlke.
17221
17222 2009-03-23  Jim Meyering  <meyering@redhat.com>
17223
17224         pathmax: PATH_MAX: use pathconf only when available
17225         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
17226         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
17227         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
17228         This avoids a link failure in a PSP cross-compilation environment
17229         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
17230
17231         * lib/vasnprintf.c (divide): Fix typo in comment.
17232
17233 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17234
17235         * gnulib-tool (func_filter_filelist): Fix comment.
17236
17237 2009-03-20  Bruno Haible  <bruno@clisp.org>
17238
17239         Make sockets.h self-contained.
17240         * lib/sockets.c: Include sockets.h first.
17241         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
17242
17243 2009-03-19  Eric Blake  <ebb9@byu.net>
17244
17245         doc: mention more functions added in cygwin 1.7.0
17246         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
17247         addition.
17248         * doc/posix-functions/log2f.texi: Likewise.
17249
17250 2009-03-19  Jim Meyering  <meyering@redhat.com>
17251
17252         fsusage: avoid syntax error due to statement-before-declaration
17253         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
17254         after all declarations.  Reported by Matthew Woehlke in
17255         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
17256
17257 2009-03-18  Eric Blake  <ebb9@byu.net>
17258
17259         build-aux/compile: sync from automake
17260         * build-aux/compile: New file, from automake.
17261         * config/srclist.txt: Mention build-aux/compile.
17262
17263 2009-03-17  Bruno Haible  <bruno@clisp.org>
17264
17265         * lib/git-merge-changelog.c: Fix typo in comment.
17266         Reported by Reuben Thomas <rrt@sc3d.org>.
17267
17268 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
17269
17270         * m4/regex.m4: update and improve help for
17271         --without-included-regex.
17272
17273 2009-03-17  Simon Josefsson  <simon@josefsson.org>
17274
17275         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
17276         failure on missing include files.
17277
17278 2009-03-17  Eric Blake  <ebb9@byu.net>
17279
17280         doc: mention more functions added in cygwin 1.7.0
17281         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
17282         addition.
17283         * doc/posix-functions/fwscanf.texi: Likewise.
17284         * doc/posix-functions/swprintf.texi: Likewise.
17285         * doc/posix-functions/swscanf.texi: Likewise.
17286         * doc/posix-functions/vfwprintf.texi: Likewise.
17287         * doc/posix-functions/vfwscanf.texi: Likewise.
17288         * doc/posix-functions/vswprintf.texi: Likewise.
17289         * doc/posix-functions/vswscanf.texi: Likewise.
17290         * doc/posix-functions/vwprintf.texi: Likewise.
17291         * doc/posix-functions/vwscanf.texi: Likewise.
17292         * doc/posix-functions/wcscasecmp.texi: Likewise.
17293         * doc/posix-functions/wcsdup.texi: Likewise.
17294         * doc/posix-functions/wcsftime.texi: Likewise.
17295         * doc/posix-functions/wcsncasecmp.texi: Likewise.
17296         * doc/posix-functions/wprintf.texi: Likewise.
17297         * doc/posix-functions/wscanf.texi: Likewise.
17298         * doc/glibc-functions/gethostbyname2.texi: Likewise.
17299
17300 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17301
17302         maint.mk: really add $(AM_MAKEFLAGS)
17303         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
17304         was inadvertently omitted in the last commit.
17305         Spotted by Bruno Haible.
17306
17307         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
17308         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
17309         $(AM_MAKEFLAGS)' rather than plain `make'.
17310
17311         gnulib-tool: execute $MAKE not make
17312         * gnulib-tool: Default $MAKE to 'make'.
17313         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
17314         than make.  Initialize $MAKE in the do-autobuild script.
17315
17316         gnulib-tool: use $MAKE not make in generated files
17317         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
17318         make, in generated files.  Initialize $MAKE in the do-autobuild
17319         script.
17320
17321         * top/GNUmakefile (_have-git-version-gen): Fix typo.
17322
17323         GNUmakefile: disable parallelism only for multiple, recursive targets
17324         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
17325         additions in the Makefile.
17326         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
17327         by Automake.
17328         (.NOTPARALLEL): Only disable parallel builds if multiple targets
17329         are listed on the command line and at least one of them is
17330         listed in $(ALL_RECURSIVE_TARGETS).
17331
17332 2009-03-14  Bruno Haible  <bruno@clisp.org>
17333
17334         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
17335         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
17336         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
17337         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
17338         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
17339         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
17340         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
17341         unistr/u8-uctomb.
17342         * modules/unistr/u8-strchr (Depends-on): Likewise.
17343         * modules/unistr/u8-strrchr (Depends-on): Likewise.
17344         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
17345         unistr/u16-uctomb.
17346         * modules/unistr/u16-strchr (Depends-on): Likewise.
17347         * modules/unistr/u16-strrchr (Depends-on): Likewise.
17348
17349 2009-03-12  Bruno Haible  <bruno@clisp.org>
17350
17351         Work around select() bug on Interix 3.5.
17352         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
17353         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
17354         * m4/select.m4: New file.
17355         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
17356         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
17357         * modules/select (Files): Add m4/select.m4.
17358         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
17359         * modules/nanosleep (Depends-on): Add select.
17360         * modules/poll (Depends-on): Likewise.
17361         * doc/posix-functions/select.texi: Mention the Interix bug.
17362         Reported by Markus Duft <mduft@gentoo.org>.
17363
17364         * lib/select.c: Renamed from lib/winsock-select.c.
17365         * modules/select (Files): Add lib/select.c, remove
17366         lib/winsock-select.c.
17367         (configure.ac): Update.
17368
17369 2009-03-12  Jim Meyering  <meyering@redhat.com>
17370
17371         avoid gcc warnings about unused macro definitions
17372         * lib/readtokens.c (STREQ): Remove unused definition.
17373         * lib/xmalloc.c (SIZE_MAX): Likewise.
17374         * lib/openat-die.c (N_): Likewise.
17375         * lib/mountlist.c (SIZE_MAX): Remove definition.
17376         Instead, include <stdint.h>.
17377         * lib/readutmp.c: Likewise.
17378         * modules/readutmp (Depends-on): Add stdint.
17379         * modules/mountlist (Depends-on): Add stdint.
17380         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
17381
17382 2009-03-10  Bruno Haible  <bruno@clisp.org>
17383
17384         Tests for module 'mbmemcasecoll'.
17385         * modules/mbmemcasecoll-tests: New file.
17386         * tests/test-mbmemcasecoll1.sh: New file.
17387         * tests/test-mbmemcasecoll2.sh: New file.
17388         * tests/test-mbmemcasecoll3.sh: New file.
17389         * tests/test-mbmemcasecoll.c: New file.
17390
17391         New module 'mbmemcasecoll'.
17392         * lib/mbmemcasecoll.h: New file.
17393         * lib/mbmemcasecoll.c: New file.
17394         * modules/mbmemcasecoll: New file.
17395
17396         * tests/test-mbmemcasecmp.h: New file, extracted from
17397         tests/test-mbmemcasecmp.c.
17398         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
17399         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
17400         (main): Update.
17401         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
17402
17403 2009-03-09  Bruno Haible  <bruno@clisp.org>
17404
17405         Tests for module 'mbmemcasecmp'.
17406         * modules/mbmemcasecmp-tests: New file.
17407         * tests/test-mbmemcasecmp1.sh: New file.
17408         * tests/test-mbmemcasecmp2.sh: New file.
17409         * tests/test-mbmemcasecmp3.sh: New file.
17410         * tests/test-mbmemcasecmp.c: New file.
17411
17412         New module 'mbmemcasecmp'.
17413         * lib/mbmemcasecmp.h: New file.
17414         * lib/mbmemcasecmp.c: New file.
17415         * modules/mbmemcasecmp: New file.
17416
17417 2009-03-09  Bruno Haible  <bruno@clisp.org>
17418
17419         Tests for module 'unicase/ulc-casecoll'.
17420         * modules/unicase/ulc-casecoll-tests: New file.
17421         * tests/unicase/test-ulc-casecoll1.sh: New file.
17422         * tests/unicase/test-ulc-casecoll2.sh: New file.
17423         * tests/unicase/test-ulc-casecoll.c: New file.
17424
17425         New module 'unicase/ulc-casecoll'.
17426         * lib/unicase.h (ulc_casecoll): New declaration.
17427         * lib/unicase/ulc-casecoll.c: New file.
17428         * modules/unicase/ulc-casecoll: New file.
17429
17430         New module 'unicase/ulc-casexfrm'.
17431         * lib/unicase.h (ulc_casexfrm): New declaration.
17432         * lib/unicase/ulc-casexfrm.c: New file.
17433         * modules/unicase/ulc-casexfrm: New file.
17434
17435 2009-03-09  Bruno Haible  <bruno@clisp.org>
17436
17437         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
17438         invocations.
17439
17440         * m4/mbscasecmp.m4: Remove file.
17441         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
17442         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
17443
17444         * m4/mbscasestr.m4: Remove file.
17445         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
17446         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
17447
17448         * m4/mbschr.m4: Remove file.
17449         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
17450         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
17451
17452         * m4/mbscspn.m4: Remove file.
17453         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
17454         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
17455
17456         * m4/mbslen.m4: Remove file.
17457         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
17458         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
17459
17460         * m4/mbsncasecmp.m4: Remove file.
17461         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
17462         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
17463
17464         * m4/mbsnlen.m4: Remove file.
17465         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
17466         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
17467
17468         * m4/mbspbrk.m4: Remove file.
17469         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
17470         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
17471
17472         * m4/mbspcasecmp.m4: Remove file.
17473         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
17474         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
17475
17476         * m4/mbsrchr.m4: Remove file.
17477         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
17478         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
17479
17480         * m4/mbssep.m4: Remove file.
17481         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
17482         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
17483
17484         * m4/mbsspn.m4: Remove file.
17485         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
17486         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
17487
17488         * m4/mbsstr.m4: Remove file.
17489         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
17490         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
17491
17492         * m4/mbstok_r.m4: Remove file.
17493         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
17494         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
17495
17496         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
17497
17498         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
17499         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
17500
17501         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
17502
17503 2009-03-08  Bruno Haible  <bruno@clisp.org>
17504
17505         Tests for module 'unicase/ulc-casecmp'.
17506         * modules/unicase/ulc-casecmp-tests: New file.
17507         * tests/unicase/test-ulc-casecmp1.sh: New file.
17508         * tests/unicase/test-ulc-casecmp2.sh: New file.
17509         * tests/unicase/test-ulc-casecmp.c: New file.
17510
17511         New module 'unicase/ulc-casecmp'.
17512         * lib/unicase.h (ulc_casecmp): New declaration.
17513         * lib/unicase/ulc-casecmp.c: New file.
17514         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
17515         'const SRC_UNIT *'.
17516         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
17517         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
17518         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
17519         * modules/unicase/ulc-casecmp: New file.
17520
17521         Tests for module 'unicase/u32-is-cased'.
17522         * modules/unicase/u32-is-cased-tests: New file.
17523         * tests/unicase/test-u32-is-cased.c: New file.
17524
17525         Tests for module 'unicase/u16-is-cased'.
17526         * modules/unicase/u16-is-cased-tests: New file.
17527         * tests/unicase/test-u16-is-cased.c: New file.
17528
17529         Tests for module 'unicase/u8-is-cased'.
17530         * modules/unicase/u8-is-cased-tests: New file.
17531         * tests/unicase/test-u8-is-cased.c: New file.
17532         * tests/unicase/test-is-cased.h: New file.
17533
17534         New module 'unicase/u32-is-cased'.
17535         * lib/unicase/u32-is-cased.c: New file.
17536         * modules/unicase/u32-is-cased: New file.
17537
17538         New module 'unicase/u16-is-cased'.
17539         * lib/unicase/u16-is-cased.c: New file.
17540         * modules/unicase/u16-is-cased: New file.
17541
17542         New module 'unicase/u8-is-cased'.
17543         * lib/unicase/u8-is-cased.c: New file.
17544         * lib/unicase/u-is-cased.h: New file.
17545         * modules/unicase/u8-is-cased: New file.
17546
17547         Tests for module 'unicase/u32-is-casefolded'.
17548         * modules/unicase/u32-is-casefolded-tests: New file.
17549         * tests/unicase/test-u32-is-casefolded.c: New file.
17550
17551         Tests for module 'unicase/u16-is-casefolded'.
17552         * modules/unicase/u16-is-casefolded-tests: New file.
17553         * tests/unicase/test-u16-is-casefolded.c: New file.
17554
17555         Tests for module 'unicase/u8-is-casefolded'.
17556         * modules/unicase/u8-is-casefolded-tests: New file.
17557         * tests/unicase/test-u8-is-casefolded.c: New file.
17558         * tests/unicase/test-is-casefolded.h: New file.
17559
17560         New module 'unicase/u32-is-casefolded'.
17561         * lib/unicase/u32-is-casefolded.c: New file.
17562         * modules/unicase/u32-is-casefolded: New file.
17563
17564         New module 'unicase/u16-is-casefolded'.
17565         * lib/unicase/u16-is-casefolded.c: New file.
17566         * modules/unicase/u16-is-casefolded: New file.
17567
17568         New module 'unicase/u8-is-casefolded'.
17569         * lib/unicase/u8-is-casefolded.c: New file.
17570         * modules/unicase/u8-is-casefolded: New file.
17571
17572         Tests for module 'unicase/u32-is-titlecase'.
17573         * modules/unicase/u32-is-titlecase-tests: New file.
17574         * tests/unicase/test-u32-is-titlecase.c: New file.
17575
17576         Tests for module 'unicase/u16-is-titlecase'.
17577         * modules/unicase/u16-is-titlecase-tests: New file.
17578         * tests/unicase/test-u16-is-titlecase.c: New file.
17579
17580         Tests for module 'unicase/u8-is-titlecase'.
17581         * modules/unicase/u8-is-titlecase-tests: New file.
17582         * tests/unicase/test-u8-is-titlecase.c: New file.
17583         * tests/unicase/test-is-titlecase.h: New file.
17584
17585         New module 'unicase/u32-is-titlecase'.
17586         * lib/unicase/u32-is-titlecase.c: New file.
17587         * modules/unicase/u32-is-titlecase: New file.
17588
17589         New module 'unicase/u16-is-titlecase'.
17590         * lib/unicase/u16-is-titlecase.c: New file.
17591         * modules/unicase/u16-is-titlecase: New file.
17592
17593         New module 'unicase/u8-is-titlecase'.
17594         * lib/unicase/u8-is-titlecase.c: New file.
17595         * modules/unicase/u8-is-titlecase: New file.
17596
17597         Tests for module 'unicase/u32-is-lowercase'.
17598         * modules/unicase/u32-is-lowercase-tests: New file.
17599         * tests/unicase/test-u32-is-lowercase.c: New file.
17600
17601         Tests for module 'unicase/u16-is-lowercase'.
17602         * modules/unicase/u16-is-lowercase-tests: New file.
17603         * tests/unicase/test-u16-is-lowercase.c: New file.
17604
17605         Tests for module 'unicase/u8-is-lowercase'.
17606         * modules/unicase/u8-is-lowercase-tests: New file.
17607         * tests/unicase/test-u8-is-lowercase.c: New file.
17608         * tests/unicase/test-is-lowercase.h: New file.
17609
17610         New module 'unicase/u32-is-lowercase'.
17611         * lib/unicase/u32-is-lowercase.c: New file.
17612         * modules/unicase/u32-is-lowercase: New file.
17613
17614         New module 'unicase/u16-is-lowercase'.
17615         * lib/unicase/u16-is-lowercase.c: New file.
17616         * modules/unicase/u16-is-lowercase: New file.
17617
17618         New module 'unicase/u8-is-lowercase'.
17619         * lib/unicase/u8-is-lowercase.c: New file.
17620         * modules/unicase/u8-is-lowercase: New file.
17621
17622         Tests for module 'unicase/u32-is-uppercase'.
17623         * modules/unicase/u32-is-uppercase-tests: New file.
17624         * tests/unicase/test-u32-is-uppercase.c: New file.
17625
17626         Tests for module 'unicase/u16-is-uppercase'.
17627         * modules/unicase/u16-is-uppercase-tests: New file.
17628         * tests/unicase/test-u16-is-uppercase.c: New file.
17629
17630         Tests for module 'unicase/u8-is-uppercase'.
17631         * modules/unicase/u8-is-uppercase-tests: New file.
17632         * tests/unicase/test-u8-is-uppercase.c: New file.
17633         * tests/unicase/test-is-uppercase.h: New file.
17634
17635         New module 'unicase/u32-is-uppercase'.
17636         * lib/unicase/u32-is-uppercase.c: New file.
17637         * modules/unicase/u32-is-uppercase: New file.
17638
17639         New module 'unicase/u16-is-uppercase'.
17640         * lib/unicase/u16-is-uppercase.c: New file.
17641         * modules/unicase/u16-is-uppercase: New file.
17642
17643         New module 'unicase/u8-is-uppercase'.
17644         * lib/unicase/u8-is-uppercase.c: New file.
17645         * modules/unicase/u8-is-uppercase: New file.
17646
17647         New module 'unicase/u32-is-invariant'.
17648         * lib/unicase/u32-is-invariant.c: New file.
17649         * modules/unicase/u32-is-invariant: New file.
17650
17651         New module 'unicase/u16-is-invariant'.
17652         * lib/unicase/u16-is-invariant.c: New file.
17653         * modules/unicase/u16-is-invariant: New file.
17654
17655         New module 'unicase/u8-is-invariant'.
17656         * lib/unicase/u8-is-invariant.c: New file.
17657         * lib/unicase/invariant.h: New file.
17658         * lib/unicase/u-is-invariant.h: New file.
17659         * modules/unicase/u8-is-invariant: New file.
17660
17661         Tests for module 'unicase/u32-casecoll'.
17662         * modules/unicase/u32-casecoll-tests: New file.
17663         * tests/unicase/test-u32-casecoll.c: New file.
17664
17665         Tests for module 'unicase/u16-casecoll'.
17666         * modules/unicase/u16-casecoll-tests: New file.
17667         * tests/unicase/test-u16-casecoll.c: New file.
17668
17669         Tests for module 'unicase/u8-casecoll'.
17670         * modules/unicase/u8-casecoll-tests: New file.
17671         * tests/unicase/test-u8-casecoll.c: New file.
17672
17673         New module 'unicase/u32-casecoll'.
17674         * lib/unicase/u32-casecoll.c: New file.
17675         * modules/unicase/u32-casecoll: New file.
17676
17677         New module 'unicase/u16-casecoll'.
17678         * lib/unicase/u16-casecoll.c: New file.
17679         * modules/unicase/u16-casecoll: New file.
17680
17681         New module 'unicase/u8-casecoll'.
17682         * lib/unicase/u8-casecoll.c: New file.
17683         * lib/unicase/u-casecoll.h: New file.
17684         * modules/unicase/u8-casecoll: New file.
17685
17686         New module 'unicase/u32-casexfrm'.
17687         * lib/unicase/u32-casexfrm.c: New file.
17688         * modules/unicase/u32-casexfrm: New file.
17689
17690         New module 'unicase/u16-casexfrm'.
17691         * lib/unicase/u16-casexfrm.c: New file.
17692         * modules/unicase/u16-casexfrm: New file.
17693
17694         New module 'unicase/u8-casexfrm'.
17695         * lib/unicase/u8-casexfrm.c: New file.
17696         * lib/unicase/u-casexfrm.h: New file.
17697         * modules/unicase/u8-casexfrm: New file.
17698
17699         Tests for module 'unicase/u32-casecmp'.
17700         * modules/unicase/u32-casecmp-tests: New file.
17701         * tests/unicase/test-u32-casecmp.c: New file.
17702
17703         Tests for module 'unicase/u16-casecmp'.
17704         * modules/unicase/u16-casecmp-tests: New file.
17705         * tests/unicase/test-u16-casecmp.c: New file.
17706
17707         Tests for module 'unicase/u8-casecmp'.
17708         * modules/unicase/u8-casecmp-tests: New file.
17709         * tests/unicase/test-u8-casecmp.c: New file.
17710         * tests/unicase/test-casecmp.h: New file.
17711
17712         New module 'unicase/u32-casecmp'.
17713         * lib/unicase/u32-casecmp.c: New file.
17714         * modules/unicase/u32-casecmp: New file.
17715
17716         New module 'unicase/u16-casecmp'.
17717         * lib/unicase/u16-casecmp.c: New file.
17718         * modules/unicase/u16-casecmp: New file.
17719
17720         New module 'unicase/u8-casecmp'.
17721         * lib/unicase/u8-casecmp.c: New file.
17722         * lib/unicase/u-casecmp.h: New file.
17723         * modules/unicase/u8-casecmp: New file.
17724
17725         Tests for module 'unicase/u32-casefold'.
17726         * modules/unicase/u32-casefold-tests: New file.
17727         * tests/unicase/test-u32-casefold.c: New file.
17728
17729         Tests for module 'unicase/u16-casefold'.
17730         * modules/unicase/u16-casefold-tests: New file.
17731         * tests/unicase/test-u16-casefold.c: New file.
17732
17733         Tests for module 'unicase/u8-casefold'.
17734         * modules/unicase/u8-casefold-tests: New file.
17735         * tests/unicase/test-u8-casefold.c: New file.
17736
17737         New module 'unicase/u32-casefold'.
17738         * lib/unicase/u32-casefold.c: New file.
17739         * modules/unicase/u32-casefold: New file.
17740
17741         New module 'unicase/u16-casefold'.
17742         * lib/unicase/u16-casefold.c: New file.
17743         * modules/unicase/u16-casefold: New file.
17744
17745         New module 'unicase/u8-casefold'.
17746         * lib/unicase/u8-casefold.c: New file.
17747         * lib/unicase/u-casefold.h: New file.
17748         * modules/unicase/u8-casefold: New file.
17749
17750         New module 'unicase/tocasefold'.
17751         * lib/unicase/casefold.h: New file.
17752         * lib/unicase/tocasefold.c: New file.
17753         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
17754         * modules/unicase/tocasefold: New file.
17755
17756         Tests for module 'unicase/u32-totitle'.
17757         * modules/unicase/u32-totitle-tests: New file.
17758         * tests/unicase/test-u32-totitle.c: New file.
17759
17760         Tests for module 'unicase/u16-totitle'.
17761         * modules/unicase/u16-totitle-tests: New file.
17762         * tests/unicase/test-u16-totitle.c: New file.
17763
17764         Tests for module 'unicase/u8-totitle'.
17765         * modules/unicase/u8-totitle-tests: New file.
17766         * tests/unicase/test-u8-totitle.c: New file.
17767
17768         New module 'unicase/u32-totitle'.
17769         * lib/unicase/u32-totitle.c: New file.
17770         * modules/unicase/u32-totitle: New file.
17771
17772         New module 'unicase/u16-totitle'.
17773         * lib/unicase/u16-totitle.c: New file.
17774         * modules/unicase/u16-totitle: New file.
17775
17776         New module 'unicase/u8-totitle'.
17777         * lib/unicase/u8-totitle.c: New file.
17778         * lib/unicase/u-totitle.h: New file.
17779         * modules/unicase/u8-totitle: New file.
17780
17781         Tests for module 'unicase/u32-tolower'.
17782         * modules/unicase/u32-tolower-tests: New file.
17783         * tests/unicase/test-u32-tolower.c: New file.
17784
17785         Tests for module 'unicase/u16-tolower'.
17786         * modules/unicase/u16-tolower-tests: New file.
17787         * tests/unicase/test-u16-tolower.c: New file.
17788
17789         Tests for module 'unicase/u8-tolower'.
17790         * modules/unicase/u8-tolower-tests: New file.
17791         * tests/unicase/test-u8-tolower.c: New file.
17792
17793         New module 'unicase/u32-tolower'.
17794         * lib/unicase/u32-tolower.c: New file.
17795         * modules/unicase/u32-tolower: New file.
17796
17797         New module 'unicase/u16-tolower'.
17798         * lib/unicase/u16-tolower.c: New file.
17799         * modules/unicase/u16-tolower: New file.
17800
17801         New module 'unicase/u8-tolower'.
17802         * lib/unicase/u8-tolower.c: New file.
17803         * modules/unicase/u8-tolower: New file.
17804
17805         Tests for module 'unicase/u32-toupper'.
17806         * modules/unicase/u32-toupper-tests: New file.
17807         * tests/unicase/test-u32-toupper.c: New file.
17808
17809         Tests for module 'unicase/u16-toupper'.
17810         * modules/unicase/u16-toupper-tests: New file.
17811         * tests/unicase/test-u16-toupper.c: New file.
17812
17813         Tests for module 'unicase/u8-toupper'.
17814         * modules/unicase/u8-toupper-tests: New file.
17815         * tests/unicase/test-u8-toupper.c: New file.
17816
17817         New module 'unicase/u32-toupper'.
17818         * lib/unicase/u32-toupper.c: New file.
17819         * modules/unicase/u32-toupper: New file.
17820
17821         New module 'unicase/u16-toupper'.
17822         * lib/unicase/u16-toupper.c: New file.
17823         * modules/unicase/u16-toupper: New file.
17824
17825         New module 'unicase/u8-toupper'.
17826         * lib/unicase/u8-toupper.c: New file.
17827         * modules/unicase/u8-toupper: New file.
17828
17829         New module 'unicase/u32-casemap'.
17830         * lib/unicase/u32-casemap.c: New file.
17831         * modules/unicase/u32-casemap: New file.
17832
17833         New module 'unicase/u16-casemap'.
17834         * lib/unicase/u16-casemap.c: New file.
17835         * modules/unicase/u16-casemap: New file.
17836
17837         New module 'unicase/u8-casemap'.
17838         * lib/unicase/unicasemap.h: New file.
17839         * lib/unicase/u8-casemap.c: New file.
17840         * lib/unicase/u-casemap.h: New file.
17841         * modules/unicase/u8-casemap: New file.
17842
17843         New module 'unicase/special-casing'.
17844         * lib/unicase/special-casing.h: New file.
17845         * lib/unicase/special-casing.c: New file.
17846         * lib/unicase/special-casing-table.gperf: New file, generated by
17847         gen-uni-tables.c.
17848         * modules/unicase/special-casing: New file.
17849
17850         Tests for module 'unicase/locale-language'.
17851         * modules/unicase/locale-language-tests: New file.
17852         * tests/unicase/test-locale-language.sh: New file.
17853         * tests/unicase/test-locale-language.c: New file.
17854
17855         New module 'unicase/locale-language'.
17856         * lib/unicase/locale-language.c: New file.
17857         * lib/unicase/locale-languages.gperf: New file.
17858         * modules/unicase/locale-language: New file.
17859
17860         Generate more tables for case conversion and case folding.
17861         * lib/gen-uni-tables.c (SCC_*): New enum items.
17862         (struct special_casing_rule): New type.
17863         (casing_rules, num_casing_rules, allocated_casing_rules): New
17864         variables.
17865         (add_casing_rule, fill_casing_rules): New functions.
17866         (struct casefold_rule): New type.
17867         (casefolding_rules, num_casefolding_rules,
17868         allocated_casefolding_rules): New variables.
17869         (fill_casefolding_rules): New function.
17870         (unicode_casefold): New variable.
17871         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
17872         sort_casing_rules, output_casing_rules): New functions.
17873         (main): Accept to more arguments: SpecialCasing.txt and
17874         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
17875         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
17876         Output mapping for casefolding.
17877
17878         * lib/unicase.h: Include stdbool.h, uninorm.h.
17879         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
17880         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
17881         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
17882         arguments.
17883         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
17884         resultp arguments.
17885         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
17886         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
17887         resultp arguments.
17888         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
17889         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
17890         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
17891         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
17892         declarations.
17893         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
17894
17895 2009-03-08  Bruno Haible  <bruno@clisp.org>
17896
17897         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
17898         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
17899         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
17900         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
17901
17902 2009-03-07  Bruno Haible  <bruno@clisp.org>
17903
17904         Adjust u*_normcmp, u*_normcoll API.
17905         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
17906         u16_normcoll, u32_normcoll): Change failure conventions.
17907         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
17908         errno and return -1.
17909         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
17910
17911 2009-03-07  Bruno Haible  <bruno@clisp.org>
17912
17913         Tests for module 'uninorm/u32-normcoll'.
17914         * modules/uninorm/u32-normcoll-tests: New file.
17915         * tests/uninorm/test-u32-normcoll.c: New file.
17916
17917         Tests for module 'uninorm/u16-normcoll'.
17918         * modules/uninorm/u16-normcoll-tests: New file.
17919         * tests/uninorm/test-u16-normcoll.c: New file.
17920
17921         Tests for module 'uninorm/u8-normcoll'.
17922         * modules/uninorm/u8-normcoll-tests: New file.
17923         * tests/uninorm/test-u8-normcoll.c: New file.
17924
17925 2009-03-07  Bruno Haible  <bruno@clisp.org>
17926
17927         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
17928         tests/uninorm/test-u32-normcmp.c.
17929         * tests/uninorm/test-u32-normcmp.c: Include it.
17930         (test_nonascii): New function, extracted from main. Add some more
17931         tests.
17932         (main): Invoke test_ascii and test_nonascii.
17933         * modules/uninorm/u32-normcmp-tests (Files): Add
17934         tests/uninorm/test-u32-normcmp.h.
17935         (Depends-on): Remove uninorm/u32-normcmp.
17936
17937         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
17938         tests/uninorm/test-u16-normcmp.c.
17939         * tests/uninorm/test-u16-normcmp.c: Include it.
17940         (test_nonascii): New function, extracted from main. Add some more
17941         tests.
17942         (main): Invoke test_ascii and test_nonascii.
17943         * modules/uninorm/u16-normcmp-tests (Files): Add
17944         tests/uninorm/test-u16-normcmp.h.
17945         (Depends-on): Remove uninorm/u16-normcmp.
17946
17947         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
17948         tests/uninorm/test-u8-normcmp.c.
17949         * tests/uninorm/test-u8-normcmp.c: Include it.
17950         (test_nonascii): New function, extracted from main. Add some more
17951         tests.
17952         (main): Invoke test_ascii and test_nonascii.
17953         * modules/uninorm/u8-normcmp-tests (Files): Add
17954         tests/uninorm/test-u8-normcmp.h.
17955         (Depends-on): Remove uninorm/u8-normcmp.
17956
17957 2009-03-07  Bruno Haible  <bruno@clisp.org>
17958
17959         New module 'uninorm/u32-normcoll'.
17960         * lib/uninorm/u32-normcoll.c: New file.
17961         * modules/uninorm/u32-normcoll: New file.
17962
17963         New module 'uninorm/u16-normcoll'.
17964         * lib/uninorm/u16-normcoll.c: New file.
17965         * modules/uninorm/u16-normcoll: New file.
17966
17967         New module 'uninorm/u8-normcoll'.
17968         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
17969         declarations.
17970         * lib/uninorm/u8-normcoll.c: New file.
17971         * lib/uninorm/u-normcoll.h: New file.
17972         * modules/uninorm/u8-normcoll: New file.
17973
17974         New module 'uninorm/u32-normxfrm'.
17975         * lib/uninorm/u32-normxfrm.c: New file.
17976         * modules/uninorm/u32-normxfrm: New file.
17977
17978         New module 'uninorm/u16-normxfrm'.
17979         * lib/uninorm/u16-normxfrm.c: New file.
17980         * modules/uninorm/u16-normxfrm: New file.
17981
17982         New module 'uninorm/u8-normxfrm'.
17983         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
17984         declarations.
17985         * lib/uninorm/u8-normxfrm.c: New file.
17986         * lib/uninorm/u-normxfrm.h: New file.
17987         * modules/uninorm/u8-normxfrm: New file.
17988
17989 2009-03-07  Bruno Haible  <bruno@clisp.org>
17990
17991         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
17992         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
17993         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
17994
17995 2009-03-07  Bruno Haible  <bruno@clisp.org>
17996
17997         New module 'memxfrm'.
17998         * lib/memxfrm.h: New file.
17999         * lib/memxfrm.c: New file.
18000         * modules/memxfrm: New file.
18001
18002 2009-03-07  Bruno Haible  <bruno@clisp.org>
18003
18004         New module 'memcmp2'.
18005         * lib/memcmp2.h: New file.
18006         * lib/memcmp2.c: New file.
18007         * modules/memcmp2: New file.
18008
18009 2009-03-07  Bruno Haible  <bruno@clisp.org>
18010
18011         Tests for module 'uninorm/decomposing-form'.
18012         * modules/uninorm/decomposing-form-tests: New file.
18013         * tests/uninorm/test-decomposing-form.c: New file.
18014
18015         New module 'uninorm/decomposing-form'.
18016         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
18017         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
18018         Add 'decomposing_variant' field.
18019         * lib/uninorm/decomposing-form.c: New file.
18020         * lib/uninorm/nfc.c (uninorm_nfc): Update.
18021         * lib/uninorm/nfd.c (uninorm_nfd): Update.
18022         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
18023         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
18024         * modules/uninorm/decomposing-form: New file.
18025         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
18026         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
18027
18028 2009-03-07  Bruno Haible  <bruno@clisp.org>
18029
18030         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
18031         strings.
18032
18033 2009-03-06  Bruno Haible  <bruno@clisp.org>
18034
18035         Tests for module 'uninorm/u32-normcmp'.
18036         * tests/uninorm/test-u32-normcmp.c: New file.
18037         * modules/uninorm/u32-normcmp-tests: New file.
18038
18039         Tests for module 'uninorm/u16-normcmp'.
18040         * tests/uninorm/test-u16-normcmp.c: New file.
18041         * modules/uninorm/u16-normcmp-tests: New file.
18042
18043         Tests for module 'uninorm/u8-normcmp'.
18044         * tests/uninorm/test-u8-normcmp.c: New file.
18045         * modules/uninorm/u8-normcmp-tests: New file.
18046
18047         New module 'uninorm/u32-normcmp'.
18048         * lib/uninorm/u32-normcmp.c: New file.
18049         * modules/uninorm/u32-normcmp: New file.
18050
18051         New module 'uninorm/u16-normcmp'.
18052         * lib/uninorm/u16-normcmp.c: New file.
18053         * modules/uninorm/u16-normcmp: New file.
18054
18055         New module 'uninorm/u8-normcmp'.
18056         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
18057         declarations.
18058         * lib/uninorm/u8-normcmp.c: New file.
18059         * lib/uninorm/u-normcmp.h: New file.
18060         * modules/uninorm/u8-normcmp: New file.
18061
18062 2009-03-06  Bruno Haible  <bruno@clisp.org>
18063
18064         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
18065         Reported by Eric Blake.
18066
18067 2009-03-06  Eric Blake  <ebb9@byu.net>
18068             Bruno Haible  <bruno@clisp.org>
18069
18070         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
18071         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
18072         condition.
18073         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
18074         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
18075         condition.
18076         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
18077
18078 2009-03-06  Eric Blake  <ebb9@byu.net>
18079
18080         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
18081         to avoid compiler warnings.
18082         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
18083
18084 2009-03-05  Bruno Haible  <bruno@clisp.org>
18085
18086         * tests/test-ftell.c (main): Disable test beyond end of file on
18087         FreeMiNT.
18088         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
18089
18090 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
18091
18092         * lib/filevercmp.c: Move hidden files up in ordering.
18093         * tests/test-filevercmp.c: Add tests for hidden files.
18094
18095 2009-03-04  Bruno Haible  <bruno@clisp.org>
18096
18097         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
18098         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
18099         AM_CFLAGS.
18100         Reported by Simon Josefsson.
18101
18102 2009-03-03  Bruno Haible  <bruno@clisp.org>
18103
18104         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
18105         Reported by Simon Josefsson.
18106
18107         * doc/ld-version-script.texi: Update node reference.
18108
18109 2009-03-03  Bruno Haible  <bruno@clisp.org>
18110
18111         * modules/visibility (License): Change to 'unlimited'.
18112         Suggested by Simon Josefsson.
18113
18114 2009-03-03  Jim Meyering  <meyering@redhat.com>
18115
18116         unlinkdir: cannot_unlink_dir may modify process state
18117         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
18118         it's neither thread-safe nor appropriate for use in a library.
18119
18120 2009-03-03  Eric Blake  <ebb9@byu.net>
18121
18122         test-closein: silence test under Darwin
18123         * tests/test-closein.sh: Ignore stderr from cat, since we don't
18124         care if it dies from EPIPE or EBADF.
18125
18126 2009-03-03  Bruno Haible  <bruno@clisp.org>
18127
18128         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
18129         earlier.
18130         * doc/visibility.texi: Fix @node and @section.
18131
18132 2009-03-03  Simon Josefsson  <simon@josefsson.org>
18133
18134         * doc/gnulib.texi: Link to sections for ld version script and
18135         visibility.
18136         * doc/visibility.texi: Add @node and @section.
18137         * modules/ld-version-script: New module.
18138         * m4/ld-version-script.m4: New file.
18139         * doc/ld-version-script.texi: New file.
18140
18141 2009-03-02  David Lutterkort  <lutter@redhat.com>
18142
18143         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
18144         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18145
18146 2009-03-02  Bruno Haible  <bruno@clisp.org>
18147
18148         * doc/visibility.texi: Mention libtool's -export-symbols option.
18149
18150 2009-03-02  Jim Meyering  <meyering@redhat.com>
18151
18152         announce-gen: new option: --no-print-checksums
18153         * build-aux/announce-gen (usage): Describe it.
18154         (print_checksums): Print a newline here, not in the [*] footnote.
18155         (main): Honor it.
18156
18157 2009-03-01  Bruno Haible  <bruno@clisp.org>
18158
18159         Use socklen_t in the native Windows replacements prototypes.
18160         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
18161         instead of 'int'.
18162         * lib/getsockopt.c (rpl_getsockopt): Likewise.
18163         * lib/setsockopt.c (rpl_setsockopt): Likewise.
18164         * modules/getsockopt (Depends-on): Add socklen.
18165         * modules/setsockopt (Depends-on): Add socklen.
18166
18167 2009-03-01  Bruno Haible  <bruno@clisp.org>
18168
18169         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
18170         least 4.2.
18171
18172 2009-03-01  Eric Blake  <ebb9@byu.net>
18173             Bruno Haible  <bruno@clisp.org>
18174
18175         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
18176         error messages.
18177         * lib/wait-process.c (wait_subprocess): Omit error message about
18178         deadly signal sent to the child of termsigp != NULL.
18179
18180 2009-03-01  Eric Blake  <ebb9@byu.net>
18181
18182         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
18183
18184 2009-03-01  Bruno Haible  <bruno@clisp.org>
18185
18186         Avoid a gcc warning.
18187         * tests/test-sched.c (b): Make global.
18188         Reported by Eric Blake.
18189
18190 2009-01-19  Martin Lambers  <marlam@marlam.de>
18191
18192         Provide POSIX semantics for socket timeout options on W32.
18193         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
18194         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
18195         * modules/setsockopt: Depend on sys_time module for struct timeval.
18196         * modules/getsockopt: Depend on sys_time module for struct timeval.
18197
18198 2009-03-01  Simon Josefsson  <simon@josefsson.org>
18199
18200         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
18201         __USE_GNU, for consistency with netdb.in.h.
18202         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18203
18204 2009-03-01  Bruno Haible  <bruno@clisp.org>
18205
18206         More support for FreeMiNT.
18207         * lib/fseeko.c (rpl_fseeko): Complete last commit.
18208         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18209
18210 2009-03-01  Bruno Haible  <bruno@clisp.org>
18211
18212         More support for FreeMiNT.
18213         * lib/fpurge.c (fpurge): Correct last commit.
18214         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18215
18216 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18217
18218         Fix unportable awk script in vc-list-files.
18219         * build-aux/vc-list-files: In the replacement awk script, use
18220         substr with a second argument of 1, not zero.
18221         Report by Simon Josefsson.
18222
18223 2009-02-28  Bruno Haible  <bruno@clisp.org>
18224
18225         More support for FreeMiNT.
18226         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
18227         to FreeMiNT today.
18228         * lib/fwriting.c (fwriting): Likewise.
18229         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
18230
18231 2009-02-28  Bruno Haible  <bruno@clisp.org>
18232
18233         * tests/test-freadseek.c (main): Disable test beyond end of file on
18234         FreeMiNT.
18235         * tests/test-ftello.c (main): Likewise.
18236         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
18237
18238 2009-02-28  Bruno Haible  <bruno@clisp.org>
18239
18240         Add tentative support for FreeMiNT.
18241         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
18242         * lib/fpurge.c (fpurge): Likewise.
18243         * lib/freadable.c (freadable): Likewise.
18244         * lib/freading.c (freading): Likewise.
18245         * lib/freadptr.c (freadptr): Likewise.
18246         * lib/freadseek.c (freadptrinc): Likewise.
18247         * lib/fseeko.c (rpl_fseeko): Likewise.
18248         * lib/fseterr.c (fseterr): Likewise.
18249         * lib/fwritable.c (fwritable): Likewise.
18250         * lib/fwriting.c (fwriting): Likewise.
18251         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
18252         Hourihane.
18253         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18254
18255 2009-02-28  Bruno Haible  <bruno@clisp.org>
18256
18257         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
18258         SIGCHLD.
18259         Reported by Jim Meyering.
18260
18261 2009-02-28  Bruno Haible  <bruno@clisp.org>
18262
18263         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
18264         Mention the results of these tests on various platforms.
18265         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
18266         order.
18267         * doc/posix-functions/printf.texi: Likewise.
18268         * doc/posix-functions/snprintf.texi: Likewise.
18269         * doc/posix-functions/sprintf.texi: Likewise.
18270         * doc/posix-functions/vfprintf.texi: Likewise.
18271         * doc/posix-functions/vprintf.texi: Likewise.
18272         * doc/posix-functions/vsnprintf.texi: Likewise.
18273         * doc/posix-functions/vsprintf.texi: Likewise.
18274         * doc/glibc-functions/obstack_printf.texi: Likewise.
18275         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18276
18277 2009-02-28  Bruno Haible  <bruno@clisp.org>
18278
18279         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
18280         Reported by Loïc Minier <lool@dooz.org>.
18281
18282 2009-02-27  Bruno Haible  <bruno@clisp.org>
18283
18284         * gnulib-tool (func_import): Make the sed expression used to create the
18285         sed script for updating the .gitignore file POSIX compliant.
18286         Reported by Eric Blake.
18287
18288 2009-02-27  Bruno Haible  <bruno@clisp.org>
18289
18290         * gnulib-tool (sed): Don't alias as "sed --posix".
18291         Reported by Eric Blake.
18292
18293 2009-02-27  Bruno Haible  <bruno@clisp.org>
18294
18295         Avoid test link errors.
18296         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
18297         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
18298         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
18299         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
18300         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18301
18302 2009-02-27  Bruno Haible  <bruno@clisp.org>
18303
18304         Avoid spurious "(cached)" in configure output.
18305         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
18306         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
18307         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
18308         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
18309         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
18310         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
18311         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
18312         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
18313         Reported by Eric Blake.
18314
18315 2009-02-27  Eric Blake  <ebb9@byu.net>
18316
18317         printf: fix regression in previous patch
18318         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
18319
18320 2009-02-27  Bruno Haible  <bruno@clisp.org>
18321
18322         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
18323         value.
18324         * lib/stdint.in.h: Likewise.
18325         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
18326
18327 2009-02-27  Eric Blake  <ebb9@byu.net>
18328
18329         doc: mention more functions added in cygwin 1.7.0
18330         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
18331         addition.
18332         * doc/posix-functions/open_wmemstream.texi: Likewise.
18333         * doc/posix-functions/wcsnlen.texi: Likewise.
18334         * doc/posix-functions/wcsnrtombs.texi: Likewise.
18335         * doc/posix-functions/wcstod.texi: Likewise.
18336         * doc/posix-functions/wcstof.texi: Likewise.
18337         * doc/posix-functions/wcstoimax.texi: Likewise.
18338         * doc/posix-functions/wcstok.texi: Likewise.
18339         * doc/posix-functions/wcstoumax.texi: Likewise.
18340
18341         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
18342         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
18343         * doc/posix-functions/fprintf.texi: Update.
18344         * doc/posix-functions/printf.texi: Update.
18345         * doc/posix-functions/snprintf.texi: Update.
18346         * doc/posix-functions/sprintf.texi: Update.
18347         * doc/posix-functions/vfprintf.texi: Update.
18348         * doc/posix-functions/vprintf.texi: Update.
18349         * doc/posix-functions/vsnprintf.texi: Update.
18350         * doc/posix-functions/vsprintf.texi: Update.
18351         * doc/glibc-functions/obstack_printf.texi: Update.
18352         * doc/glibc-functions/obstack_vprintf.texi: Update.
18353
18354 2009-02-26  Eric Blake  <ebb9@byu.net>
18355
18356         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
18357         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
18358         compilation bug by using runtime conversion.
18359         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
18360         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
18361         * modules/ceill-tests (Files): Use nan.h.
18362         * modules/floorl-tests (Files): Likewise.
18363         * modules/frexpl-tests (Files): Likewise.
18364         * modules/isnanl-tests (Files): Likewise.
18365         * modules/ldexpl-tests (Files): Likewise.
18366         * modules/roundl-tests (Files): Likewise.
18367         * modules/truncl-tests (Files): Likewise.
18368         * tests/test-ceill.c (main): Use a working NaN.
18369         * tests/test-floorl.c (main): Likewise.
18370         * tests/test-frexpl.c (main): Likewise.
18371         * tests/test-isnan.c (test_long_double): Likewise.
18372         * tests/test-isnanl.h (main): Likewise.
18373         * tests/test-ldexpl.h (main): Likewise.
18374         * tests/test-roundl.h (main): Likewise.
18375         * tests/test-truncl.h (main): Likewise.
18376         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
18377
18378 2009-02-26  Eric Blake  <ebb9@byu.net>
18379             Bruno Haible  <bruno@clisp.org>
18380
18381         Work around a *printf bug with %ls on Solaris.
18382         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
18383         precision is specified, sprintf stops converting the wide string
18384         argument when the number of bytes that have been produced by this
18385         conversion equals or exceeds the precision.
18386         * doc/posix-functions/fprintf.texi: Update.
18387         * doc/posix-functions/printf.texi: Update.
18388         * doc/posix-functions/snprintf.texi: Update.
18389         * doc/posix-functions/sprintf.texi: Update.
18390         * doc/posix-functions/vfprintf.texi: Update.
18391         * doc/posix-functions/vprintf.texi: Update.
18392         * doc/posix-functions/vsnprintf.texi: Update.
18393         * doc/posix-functions/vsprintf.texi: Update.
18394         * doc/glibc-functions/obstack_printf.texi: Update.
18395         * doc/glibc-functions/obstack_vprintf.texi: Update.
18396
18397 2009-02-26  Eric Blake  <ebb9@byu.net>
18398
18399         stdlib: favor compiler check of random.h
18400         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
18401         to avoid an ObjC random.h installed by Swarm.
18402
18403 2009-02-26  Bruno Haible  <bruno@clisp.org>
18404
18405         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
18406         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
18407         Reported by Gary V. Vaughan <gary@gnu.org>.
18408
18409 2009-02-26  Bruno Haible  <bruno@clisp.org>
18410
18411         Fix *printf behaviour regarding the %ls directive.
18412         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
18413         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
18414         NEED_PRINTF_DIRECTIVE_LS.
18415         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
18416         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
18417         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
18418         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
18419         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
18420         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
18421         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
18422         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
18423         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
18424         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
18425         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
18426         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
18427         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
18428         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
18429         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
18430         * doc/posix-functions/fprintf.texi: Update.
18431         * doc/posix-functions/printf.texi: Update.
18432         * doc/posix-functions/snprintf.texi: Update.
18433         * doc/posix-functions/sprintf.texi: Update.
18434         * doc/posix-functions/vfprintf.texi: Update.
18435         * doc/posix-functions/vprintf.texi: Update.
18436         * doc/posix-functions/vsnprintf.texi: Update.
18437         * doc/posix-functions/vsprintf.texi: Update.
18438         * doc/glibc-functions/obstack_printf.texi: Update.
18439         * doc/glibc-functions/obstack_vprintf.texi: Update.
18440         Reported by Eric Blake.
18441
18442 2009-02-25  Bruno Haible  <bruno@clisp.org>
18443
18444         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
18445         with known value.
18446         Reported by Gary V. Vaughan <gary@gnu.org>.
18447
18448 2009-02-25  Bruno Haible  <bruno@clisp.org>
18449
18450         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
18451         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
18452         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
18453         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
18454         Reported by Gary V. Vaughan <gary@gnu.org>.
18455
18456 2009-02-25  Bruno Haible  <bruno@clisp.org>
18457
18458         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
18459         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
18460         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
18461         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
18462         Reported by Gary V. Vaughan <gary@gnu.org>.
18463
18464 2009-02-25  Eric Blake  <ebb9@byu.net>
18465
18466         tests: skip fseek/ftell tests if ungetc is broken
18467         * m4/ungetc.m4: New file.
18468         * modules/fseek-tests: Split test, so ungetc dependency is
18469         separate from rest of test.
18470         * modules/fseeko-tests: Likewise.
18471         * modules/ftell-tests: Likewise.
18472         * modules/ftello-tests: Likewise.
18473         * tests/test-fseek.c (main): Isolate ungetc dependency.
18474         * tests/test-fseeko.c (main): Likewise.
18475         * tests/test-ftell.c (main): Likewise.
18476         * tests/test-ftello.c (main): Likewise.
18477         * tests/test-fseek2.sh: New file.
18478         * tests/test-fseeko2.sh: Likewise.
18479         * tests/test-ftell2.sh: Likewise.
18480         * tests/test-ftello2.sh: Likewise.
18481
18482 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
18483
18484         test-getaddrinfo: fix usage of skip return code 77
18485         * tests/test-gettaddrinfo.c: Return skip code 77 only
18486         for first occurance of skip (4x77 is not 77)
18487
18488 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
18489
18490         strtod: avoid C99 decl-after-statement
18491         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
18492
18493 2009-02-24  Eric Blake  <ebb9@byu.net>
18494
18495         strtod: detect HP-UX 11.31 bug
18496         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
18497         Reported by Gary V. Vaughan.
18498
18499 2009-02-23  Bruno Haible  <bruno@clisp.org>
18500
18501         Fix invalid read past end of memory block.
18502         * lib/vasnprintf.c (DCHAR_SET): Define.
18503         (local_wcslen): Define only when needed.
18504         (local_strnlen, local_wcsnlen): New functions.
18505         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
18506         directives that involve a conversion ourselves.
18507         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
18508         wcsnlen, mbrtowc, wcrtomb.
18509         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
18510         * tests/test-vasprintf-posix.c (test_function): Likewise.
18511         * tests/test-snprintf-posix.h (test_function): Likewise.
18512         * tests/test-sprintf-posix.h (test_function): Likewise.
18513         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18514
18515 2009-02-22  Bruno Haible  <bruno@clisp.org>
18516
18517         Implement new clarified decomposition of Hangul syllables.
18518         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
18519         of type LTV, return only a pairwise decomposition.
18520         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
18521         Likewise.
18522         * tests/uninorm/test-decomposition.c (main): Updated expected result.
18523         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
18524         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
18525
18526 2009-02-22  Bruno Haible  <bruno@clisp.org>
18527
18528         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
18529         zero-length results and shrink excess allocated memory.
18530         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
18531         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
18532         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
18533         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
18534         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
18535         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
18536         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
18537         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
18538         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
18539         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
18540         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
18541         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
18542
18543 2009-02-21  Bruno Haible  <bruno@clisp.org>
18544
18545         * doc/gnulib.texi: Include safe-alloc.texi earlier.
18546         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
18547         spaces after a period. Put a space between a macro name and its
18548         argument list. Trivial rewordings.
18549         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
18550         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
18551         (main): Return 0 explicitly.
18552
18553 2009-02-21  Bruno Haible  <bruno@clisp.org>
18554
18555         Tests for module 'uninorm/filter'.
18556         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
18557         * modules/uninorm/filter-tests: New file.
18558
18559         New module 'uninorm/filter'.
18560         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
18561         uninorm_filter_flush, uninorm_filter_free): New declarations.
18562         * lib/uninorm/uninorm-filter.c: New file.
18563         * modules/uninorm/filter: New file.
18564
18565 2009-02-21  Bruno Haible  <bruno@clisp.org>
18566
18567         Tests for module 'uninorm/nfkc'.
18568         * tests/uninorm/test-nfkc.c: New file.
18569         * tests/uninorm/test-u8-nfkc.c: New file.
18570         * tests/uninorm/test-u16-nfkc.c: New file.
18571         * tests/uninorm/test-u32-nfkc.c: New file.
18572         * tests/uninorm/test-u32-nfkc-big.sh: New file.
18573         * tests/uninorm/test-u32-nfkc-big.c: New file.
18574         * modules/uninorm/nfkc-tests: New file.
18575
18576         New module 'uninorm/nfkc'.
18577         * lib/uninorm/nfkc.c: New file.
18578         * modules/uninorm/nfkc: New file.
18579
18580         Tests for module 'uninorm/nfkd'.
18581         * tests/uninorm/test-nfkd.c: New file.
18582         * tests/uninorm/test-u8-nfkd.c: New file.
18583         * tests/uninorm/test-u16-nfkd.c: New file.
18584         * tests/uninorm/test-u32-nfkd.c: New file.
18585         * tests/uninorm/test-u32-nfkd-big.sh: New file.
18586         * tests/uninorm/test-u32-nfkd-big.c: New file.
18587         * modules/uninorm/nfkd-tests: New file.
18588
18589         New module 'uninorm/nfkd'.
18590         * lib/uninorm/nfkd.c: New file.
18591         * modules/uninorm/nfkd: New file.
18592
18593         Tests for module 'uninorm/nfc'.
18594         * tests/uninorm/test-nfc.c: New file.
18595         * tests/uninorm/test-u8-nfc.c: New file.
18596         * tests/uninorm/test-u16-nfc.c: New file.
18597         * tests/uninorm/test-u32-nfc.c: New file.
18598         * tests/uninorm/test-u32-nfc-big.sh: New file.
18599         * tests/uninorm/test-u32-nfc-big.c: New file.
18600         * modules/uninorm/nfc-tests: New file.
18601
18602         New module 'uninorm/nfc'.
18603         * lib/uninorm/nfc.c: New file.
18604         * modules/uninorm/nfc: New file.
18605
18606         Tests for module 'uninorm/nfd'.
18607         * tests/uninorm/test-nfd.c: New file.
18608         * tests/uninorm/test-u8-nfd.c: New file.
18609         * tests/uninorm/test-u16-nfd.c: New file.
18610         * tests/uninorm/test-u32-nfd.c: New file.
18611         * tests/uninorm/test-u32-nfd-big.sh: New file.
18612         * tests/uninorm/test-u32-nfd-big.c: New file.
18613         * tests/uninorm/test-u32-normalize-big.h: New file.
18614         * tests/uninorm/test-u32-normalize-big.c: New file.
18615         * tests/uninorm/NormalizationTest.txt: New file, created from
18616         Unicode 5.1.0 NormalizationTest.txt.
18617         * modules/uninorm/nfd-tests: New file.
18618
18619         New module 'uninorm/nfd'.
18620         * lib/uninorm/nfd.c: New file.
18621         * modules/uninorm/nfd: New file.
18622
18623         New module 'uninorm/u32-normalize'.
18624         * lib/uninorm/u32-normalize.c: New file.
18625         * modules/uninorm/u32-normalize: New file.
18626
18627         New module 'uninorm/u16-normalize'.
18628         * lib/uninorm/u16-normalize.c: New file.
18629         * modules/uninorm/u16-normalize: New file.
18630
18631         New module 'uninorm/u8-normalize'.
18632         * lib/uninorm/u8-normalize.c: New file.
18633         * lib/uninorm/normalize-internal.h: New file.
18634         * lib/uninorm/u-normalize-internal.h: New file.
18635         * modules/uninorm/u8-normalize: New file.
18636
18637         New module 'uninorm/decompose-internal'.
18638         * lib/uninorm/decompose-internal.c: New file.
18639         * modules/uninorm/decompose-internal: New file.
18640
18641         Tests for module 'uninorm/composition'.
18642         * tests/uninorm/test-composition.c: New file.
18643         * modules/uninorm/composition-tests: New file.
18644
18645         New module 'uninorm/composition'.
18646         * lib/uninorm/composition.c: New file.
18647         * lib/uninorm/composition-table.gperf: New file, generated by
18648         gen-uni-tables.
18649         * modules/uninorm/composition: New file.
18650
18651         Tests for module 'uninorm/compat-decomposition'.
18652         * tests/uninorm/test-compat-decomposition.c: New file.
18653         * modules/uninorm/compat-decomposition-tests: New file.
18654
18655         New module 'uninorm/compat-decomposition'.
18656         * lib/uninorm/decompose-internal.h: New file.
18657         * lib/uninorm/compat-decomposition.c: New file.
18658         * modules/uninorm/compat-decomposition: New file.
18659
18660         Tests for module 'uninorm/canonical-decomposition'.
18661         * tests/uninorm/test-canonical-decomposition.c: New file.
18662         * modules/uninorm/canonical-decomposition-tests: New file.
18663
18664         New module 'uninorm/canonical-decomposition'.
18665         * lib/uninorm/canonical-decomposition.c: New file.
18666         * modules/uninorm/canonical-decomposition: New file.
18667
18668         Tests for module 'uninorm/decomposition'.
18669         * tests/uninorm/test-decomposition.c: New file.
18670         * modules/uninorm/decomposition-tests: New file.
18671
18672         New module 'uninorm/decomposition'.
18673         * lib/uninorm/decomposition.c: New file.
18674         * modules/uninorm/decomposition: New file.
18675
18676         New module 'uninorm/decomposition-table'.
18677         * lib/uninorm/decomposition-table.h: New file.
18678         * lib/uninorm/decomposition-table.c: New file.
18679         * lib/uninorm/decomposition-table1.h: New file, generated by
18680         gen-uni-tables.
18681         * lib/uninorm/decomposition-table2.h: New file, generated by
18682         gen-uni-tables.
18683         * modules/uninorm/decomposition-table: New file.
18684
18685         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
18686         (UC_DECOMP_*): New enumeration items.
18687         (get_decomposition): New function.
18688         (struct decomp_table): New type.
18689         (output_decomposition, output_decomposition_tables): New functions.
18690         (unicode_composition_exclusions): New variable.
18691         (fill_composition_exclusions, debug_output_composition_tables): New
18692         functions.
18693         (main): Accept one more argument. Invoke fill_composition_exclusions.
18694         Output decomposition and composition tables.
18695
18696         New module 'uninorm/base'.
18697         * lib/uninorm.h: New file.
18698         * lib/unictype.h: Update comment.
18699         * modules/uninorm/base: New file.
18700
18701 2009-02-21  David Lutterkort  <lutter@redhat.com>
18702
18703         Tests for module 'safe-alloc'.
18704         * tests/test-safe-alloc.c: New file.
18705         * modules/safe-alloc-tests: New file.
18706
18707         New module 'safe-alloc'.
18708         * lib/safe-alloc.h: New file.
18709         * lib/safe-alloc.c: New file.
18710         * m4/safe-alloc.m4: New file.
18711         * modules/safe-alloc: New file.
18712         * doc/safe-alloc.texi: New file.
18713         * doc/gnulib.texi: Include it.
18714         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
18715         safe-alloc.
18716
18717 2009-02-18  Bruno Haible  <bruno@clisp.org>
18718
18719         Fix link error on non-glibc systems.
18720         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
18721         variable.
18722         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18723
18724 2009-02-18  Jim Meyering  <meyering@redhat.com>
18725
18726         fts: avoid used-uninitialized error due to recent change
18727         * lib/fts.c (fts_read): Guard uses of the new member,
18728         parent->fts_n_dirs_remaining, since it's not relevant for
18729         the parent of a directory specified on the command-line.
18730
18731 2009-02-17  James Youngman  <jay@gnu.org>
18732             Bruno Haible  <bruno@clisp.org>
18733
18734         * m4/include_next.m4: Reformulate comment.
18735
18736 2009-02-16  Jim Meyering  <meyering@redhat.com>
18737
18738         fts: add #if guards so that the fts_lgpl module still builds
18739         * lib/fts.c: Guard just-added hash-table-using parts with
18740         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
18741         Reported by Simon Josefsson.
18742
18743 2009-02-15  Bruno Haible  <bruno@clisp.org>
18744
18745         * modules/array-mergesort-tests: New file.
18746         * tests/test-array-mergesort.c: New file.
18747
18748         New module 'array-mergesort'.
18749         * modules/array-mergesort: New file.
18750         * lib/array-mergesort.h: New file.
18751
18752 2009-02-15  Bruno Haible  <bruno@clisp.org>
18753
18754         Fix 2009-02-07 commit.
18755         * lib/gen-uni-tables.c (output_predicate, output_category,
18756         output_combclass, output_bidi_category, output_decimal_digit,
18757         output_digit, output_numeric, output_mirror, output_scripts,
18758         output_ident_category, output_simple_mapping): Fix format directives.
18759         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
18760
18761 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
18762
18763         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
18764         fixes are available from IBM.
18765
18766 2009-02-13  Jim Meyering  <meyering@redhat.com>
18767
18768         fts: arrange not to stat non-directories in more cases
18769         This makes GNU find (when it doesn't need to stat each file)
18770         *much* more efficient at traversing reiserfs file systems.
18771         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
18772         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
18773         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
18774         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
18775         (leaf_optimization_applies): New function.
18776         (LCO_hash, LCO_compare): New helper functions.
18777         (link_count_optimize_ok): New function.
18778         (fts_stat): Initialize new member (if dir).
18779         (fts_read): Decrement parent's fts_n_dirs_remaining count if
18780         we've just stat'ed a directory.  Skip the stat call when possible.
18781         ---
18782         Note this AFS-related exchange:
18783         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
18784         and note find's pioctl call in find/fstype.c.
18785         But that is necessary only if you want to enable the
18786         optimization for AFS, and for now, I don't.
18787
18788         fts: move a function definition "up" (no semantic change)
18789         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
18790         "up" to precede upcoming use of a related function.
18791
18792 2009-02-11  Jim Meyering  <meyering@redhat.com>
18793
18794         fts: correct internal computation of nlinks (optimization-related)
18795         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
18796         whether the current entry is a directory, so don't test it.
18797
18798 2009-02-10  Bruno Haible  <bruno@clisp.org>
18799
18800         Tests for module 'uniwbrk/ulc-wordbreaks'.
18801         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
18802         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
18803         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
18804
18805         Tests for module 'uniwbrk/u32-wordbreaks'.
18806         * modules/uniwbrk/u32-wordbreaks-tests: New file.
18807         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
18808
18809         Tests for module 'uniwbrk/u16-wordbreaks'.
18810         * modules/uniwbrk/u16-wordbreaks-tests: New file.
18811         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
18812
18813         Tests for module 'uniwbrk/u8-wordbreaks'.
18814         * modules/uniwbrk/u8-wordbreaks-tests: New file.
18815         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
18816
18817 2009-02-10  Bruno Haible  <bruno@clisp.org>
18818
18819         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
18820         property.
18821         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
18822         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
18823         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
18824
18825 2009-02-10  Simon Josefsson  <simon@josefsson.org>
18826
18827         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
18828         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
18829
18830 2009-02-10  Bruno Haible  <bruno@clisp.org>
18831
18832         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
18833         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
18834         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
18835         * lib/unilbrk/u8-possible-linebreaks.c: Update.
18836         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
18837         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
18838
18839 2009-02-09  Simon Josefsson  <simon@josefsson.org>
18840
18841         * lib/sockets.h (gl_fd_to_handle): New function.
18842
18843         * tests/test-sockets.c: Call gl_fd_to_handle.
18844
18845 2009-02-09  Bruno Haible  <bruno@clisp.org>
18846
18847         * doc/havelib.texi: Document the conventions on bi-arch systems.
18848
18849 2009-02-08  Bruno Haible  <bruno@clisp.org>
18850
18851         Document the AC_LIB_LINKFLAGS macro.
18852         * doc/havelib.texi: New file, mostly written on 2005-05-24.
18853         * doc/gnulib.texi: Include it.
18854
18855 2009-02-08  Bruno Haible  <bruno@clisp.org>
18856
18857         Fix wrong order of sections, compared to TOC.
18858         * doc/gnulib.texi: Include relocatable-maint.texi after the
18859         "Regular expressions" node, not before.
18860
18861 2009-02-08  Bruno Haible  <bruno@clisp.org>
18862
18863         Tests for module 'unicase/totitle'.
18864         * modules/unicase/totitle-tests: New file.
18865
18866         Tests for module 'unicase/tolower'.
18867         * modules/unicase/tolower-tests: New file.
18868
18869         Tests for module 'unicase/toupper'.
18870         * modules/unicase/toupper-tests: New file.
18871         * tests/unicase/test-mapping-part1.h: New file.
18872         * tests/unicase/test-mapping-part2.h: New file.
18873
18874         New module 'unicase/totitle'.
18875         * modules/unicase/totitle: New file.
18876         * lib/unicase/totitle.c: New file.
18877
18878         New module 'unicase/tolower'.
18879         * modules/unicase/tolower: New file.
18880         * lib/unicase/tolower.c: New file.
18881
18882         New module 'unicase/toupper'.
18883         * modules/unicase/toupper: New file.
18884         * lib/unicase/toupper.c: New file.
18885         * lib/unicase/simple-mapping.h: New file.
18886
18887         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
18888         (mapping_table): New structure.
18889         (output_simple_mapping): New function.
18890         (main): Invoke output_simple_mapping_test and output_simple_mapping.
18891         * modules/gen-uni-tables (Description): Update.
18892         * lib/unicase/toupper.h: New file, automatically generated by
18893         gen-uni-tables.
18894         * lib/unicase/tolower.h: New file, automatically generated by
18895         gen-uni-tables.
18896         * lib/unicase/totitle.h: New file, automatically generated by
18897         gen-uni-tables.
18898         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
18899         gen-uni-tables.
18900         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
18901         gen-uni-tables.
18902         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
18903         gen-uni-tables.
18904
18905         New module 'unicase/base'.
18906         * modules/unicase/base: New file.
18907         * lib/unicase.h: New file.
18908
18909 2009-02-08  Bruno Haible  <bruno@clisp.org>
18910
18911         New module 'uniwbrk/ulc-wordbreaks'.
18912         * modules/uniwbrk/ulc-wordbreaks: New file.
18913         * lib/uniwbrk/ulc-wordbreaks.c: New file.
18914
18915         New module 'uniwbrk/u32-wordbreaks'.
18916         * modules/uniwbrk/u32-wordbreaks: New file.
18917         * lib/uniwbrk/u32-wordbreaks.c: New file.
18918
18919         New module 'uniwbrk/u16-wordbreaks'.
18920         * modules/uniwbrk/u16-wordbreaks: New file.
18921         * lib/uniwbrk/u16-wordbreaks.c: New file.
18922
18923         New module 'uniwbrk/u8-wordbreaks'.
18924         * modules/uniwbrk/u8-wordbreaks: New file.
18925         * lib/uniwbrk/u8-wordbreaks.c: New file.
18926         * lib/uniwbrk/u-wordbreaks.h: New file.
18927
18928         New module 'uniwbrk/table'.
18929         * modules/uniwbrk/table: New file.
18930         * lib/uniwbrk/wbrktable.h: New file.
18931         * lib/uniwbrk/wbrktable.c: New file.
18932
18933         New module 'uniwbrk/wordbreak-property'.
18934         * modules/uniwbrk/wordbreak-property: New file.
18935         * lib/uniwbrk/wordbreak-property.c: New file.
18936
18937         * lib/gen-uni-tables.c (WBP_*): New enum items.
18938         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
18939         (unicode_org_wbp): New variable.
18940         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
18941         New functions.
18942         (wbp_table): New structure.
18943         (output_wbp, output_wbrk_tables): New functions.
18944         (main): Accept additional argument. Invoke fill_org_wbp,
18945         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
18946         output_wbrk_tables.
18947         * modules/gen-uni-tables (Description): Update.
18948         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
18949         gen-uni-tables.
18950
18951         New module 'uniwbrk/base'.
18952         * modules/uniwbrk/base: New file.
18953         * lib/uniwbrk.h: New file.
18954
18955 2009-02-08  Bruno Haible  <bruno@clisp.org>
18956
18957         Update to Unicode 5.1.0.
18958         * lib/gen-uni-tables.c (is_property_alphabetic): Include
18959         U+2185..U+2188.
18960         (is_property_default_ignorable_code_point): Don't include characters
18961         of category Cc or Cs and not-a-characters.
18962         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
18963         U+0D79, U+109E, U+109F, U+A60C.
18964         * lib/unictype/bidi_of.h: Regenerated.
18965         * lib/unictype/blocks.h: Regenerated.
18966         * lib/unictype/categ_C.h: Regenerated.
18967         * lib/unictype/categ_Cf.h: Regenerated.
18968         * lib/unictype/categ_Cn.h: Regenerated.
18969         * lib/unictype/categ_L.h: Regenerated.
18970         * lib/unictype/categ_Ll.h: Regenerated.
18971         * lib/unictype/categ_Lm.h: Regenerated.
18972         * lib/unictype/categ_Lo.h: Regenerated.
18973         * lib/unictype/categ_Lu.h: Regenerated.
18974         * lib/unictype/categ_M.h: Regenerated.
18975         * lib/unictype/categ_Mc.h: Regenerated.
18976         * lib/unictype/categ_Me.h: Regenerated.
18977         * lib/unictype/categ_Mn.h: Regenerated.
18978         * lib/unictype/categ_N.h: Regenerated.
18979         * lib/unictype/categ_Nd.h: Regenerated.
18980         * lib/unictype/categ_Nl.h: Regenerated.
18981         * lib/unictype/categ_No.h: Regenerated.
18982         * lib/unictype/categ_P.h: Regenerated.
18983         * lib/unictype/categ_Pd.h: Regenerated.
18984         * lib/unictype/categ_Pe.h: Regenerated.
18985         * lib/unictype/categ_Pf.h: Regenerated.
18986         * lib/unictype/categ_Pi.h: Regenerated.
18987         * lib/unictype/categ_Po.h: Regenerated.
18988         * lib/unictype/categ_Ps.h: Regenerated.
18989         * lib/unictype/categ_S.h: Regenerated.
18990         * lib/unictype/categ_Sk.h: Regenerated.
18991         * lib/unictype/categ_Sm.h: Regenerated.
18992         * lib/unictype/categ_So.h: Regenerated.
18993         * lib/unictype/categ_of.h: Regenerated.
18994         * lib/unictype/combining.h: Regenerated.
18995         * lib/unictype/ctype_alnum.h: Regenerated.
18996         * lib/unictype/ctype_alpha.h: Regenerated.
18997         * lib/unictype/ctype_graph.h: Regenerated.
18998         * lib/unictype/ctype_lower.h: Regenerated.
18999         * lib/unictype/ctype_print.h: Regenerated.
19000         * lib/unictype/ctype_punct.h: Regenerated.
19001         * lib/unictype/ctype_upper.h: Regenerated.
19002         * lib/unictype/decdigit.h: Regenerated.
19003         * lib/unictype/digit.h: Regenerated.
19004         * lib/unictype/mirror.h: Regenerated.
19005         * lib/unictype/numeric.h: Regenerated.
19006         * lib/unictype/pr_alphabetic.h: Regenerated.
19007         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
19008         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
19009         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
19010         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
19011         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
19012         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
19013         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
19014         * lib/unictype/pr_combining.h: Regenerated.
19015         * lib/unictype/pr_dash.h: Regenerated.
19016         * lib/unictype/pr_decimal_digit.h: Regenerated.
19017         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
19018         * lib/unictype/pr_deprecated.h: Regenerated.
19019         * lib/unictype/pr_diacritic.h: Regenerated.
19020         * lib/unictype/pr_extender.h: Regenerated.
19021         * lib/unictype/pr_format_control.h: Regenerated.
19022         * lib/unictype/pr_grapheme_base.h: Regenerated.
19023         * lib/unictype/pr_grapheme_extend.h: Regenerated.
19024         * lib/unictype/pr_grapheme_link.h: Regenerated.
19025         * lib/unictype/pr_id_continue.h: Regenerated.
19026         * lib/unictype/pr_id_start.h: Regenerated.
19027         * lib/unictype/pr_ideographic.h: Regenerated.
19028         * lib/unictype/pr_ignorable_control.h: Regenerated.
19029         * lib/unictype/pr_lowercase.h: Regenerated.
19030         * lib/unictype/pr_math.h: Regenerated.
19031         * lib/unictype/pr_numeric.h: Regenerated.
19032         * lib/unictype/pr_other_alphabetic.h: Regenerated.
19033         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
19034         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
19035         * lib/unictype/pr_other_id_continue.h: Regenerated.
19036         * lib/unictype/pr_other_lowercase.h: Regenerated.
19037         * lib/unictype/pr_other_math.h: Regenerated.
19038         * lib/unictype/pr_punctuation.h: Regenerated.
19039         * lib/unictype/pr_sentence_terminal.h: Regenerated.
19040         * lib/unictype/pr_soft_dotted.h: Regenerated.
19041         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
19042         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
19043         * lib/unictype/pr_unified_ideograph.h: Regenerated.
19044         * lib/unictype/pr_uppercase.h: Regenerated.
19045         * lib/unictype/pr_xid_continue.h: Regenerated.
19046         * lib/unictype/pr_xid_start.h: Regenerated.
19047         * lib/unictype/pr_zero_width.h: Regenerated.
19048         * lib/unictype/scripts.h: Regenerated.
19049         * lib/unictype/scripts_byname.gperf: Regenerated.
19050         * lib/unictype/sy_java_ident.h: Regenerated.
19051         * lib/unilbrk/lbrkprop1.h: Regenerated.
19052         * lib/unilbrk/lbrkprop2.h: Regenerated.
19053         * tests/unictype/test-categ_C.c: Regenerated.
19054         * tests/unictype/test-categ_Cf.c: Regenerated.
19055         * tests/unictype/test-categ_Cn.c: Regenerated.
19056         * tests/unictype/test-categ_L.c: Regenerated.
19057         * tests/unictype/test-categ_Ll.c: Regenerated.
19058         * tests/unictype/test-categ_Lm.c: Regenerated.
19059         * tests/unictype/test-categ_Lo.c: Regenerated.
19060         * tests/unictype/test-categ_Lu.c: Regenerated.
19061         * tests/unictype/test-categ_M.c: Regenerated.
19062         * tests/unictype/test-categ_Mc.c: Regenerated.
19063         * tests/unictype/test-categ_Me.c: Regenerated.
19064         * tests/unictype/test-categ_Mn.c: Regenerated.
19065         * tests/unictype/test-categ_N.c: Regenerated.
19066         * tests/unictype/test-categ_Nd.c: Regenerated.
19067         * tests/unictype/test-categ_Nl.c: Regenerated.
19068         * tests/unictype/test-categ_No.c: Regenerated.
19069         * tests/unictype/test-categ_P.c: Regenerated.
19070         * tests/unictype/test-categ_Pd.c: Regenerated.
19071         * tests/unictype/test-categ_Pe.c: Regenerated.
19072         * tests/unictype/test-categ_Pf.c: Regenerated.
19073         * tests/unictype/test-categ_Pi.c: Regenerated.
19074         * tests/unictype/test-categ_Po.c: Regenerated.
19075         * tests/unictype/test-categ_Ps.c: Regenerated.
19076         * tests/unictype/test-categ_S.c: Regenerated.
19077         * tests/unictype/test-categ_Sk.c: Regenerated.
19078         * tests/unictype/test-categ_Sm.c: Regenerated.
19079         * tests/unictype/test-categ_So.c: Regenerated.
19080         * tests/unictype/test-ctype_alnum.c: Regenerated.
19081         * tests/unictype/test-ctype_alpha.c: Regenerated.
19082         * tests/unictype/test-ctype_graph.c: Regenerated.
19083         * tests/unictype/test-ctype_lower.c: Regenerated.
19084         * tests/unictype/test-ctype_print.c: Regenerated.
19085         * tests/unictype/test-ctype_punct.c: Regenerated.
19086         * tests/unictype/test-ctype_upper.c: Regenerated.
19087         * tests/unictype/test-decdigit.h: Regenerated.
19088         * tests/unictype/test-digit.h: Regenerated.
19089         * tests/unictype/test-numeric.h: Regenerated.
19090         * tests/unictype/test-pr_alphabetic.c: Regenerated.
19091         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
19092         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
19093         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
19094         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
19095         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
19096         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
19097         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
19098         * tests/unictype/test-pr_combining.c: Regenerated.
19099         * tests/unictype/test-pr_dash.c: Regenerated.
19100         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
19101         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
19102         * tests/unictype/test-pr_deprecated.c: Regenerated.
19103         * tests/unictype/test-pr_diacritic.c: Regenerated.
19104         * tests/unictype/test-pr_extender.c: Regenerated.
19105         * tests/unictype/test-pr_format_control.c: Regenerated.
19106         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
19107         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
19108         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
19109         * tests/unictype/test-pr_id_continue.c: Regenerated.
19110         * tests/unictype/test-pr_id_start.c: Regenerated.
19111         * tests/unictype/test-pr_ideographic.c: Regenerated.
19112         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
19113         * tests/unictype/test-pr_lowercase.c: Regenerated.
19114         * tests/unictype/test-pr_math.c: Regenerated.
19115         * tests/unictype/test-pr_numeric.c: Regenerated.
19116         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
19117         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
19118         Regenerated.
19119         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
19120         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
19121         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
19122         * tests/unictype/test-pr_other_math.c: Regenerated.
19123         * tests/unictype/test-pr_punctuation.c: Regenerated.
19124         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
19125         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
19126         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
19127         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
19128         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
19129         * tests/unictype/test-pr_uppercase.c: Regenerated.
19130         * tests/unictype/test-pr_xid_continue.c: Regenerated.
19131         * tests/unictype/test-pr_xid_start.c: Regenerated.
19132         * tests/unictype/test-pr_zero_width.c: Regenerated.
19133
19134         Update to Unicode 5.1.0.
19135         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
19136         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
19137         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
19138         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
19139         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
19140         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
19141         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
19142         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
19143         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
19144         (nonspacing_table_ind): Update.
19145         * tests/uniwidth/test-uc_width2.sh: Update expected result.
19146
19147         Update to Unicode 5.1.0.
19148         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
19149         code transform.
19150         * lib/uniname/uniname.c (unicode_character_name,
19151         unicode_name_character): Add the range 0x1Fxxx to the code transform.
19152         * lib/uniname/uninames.h: Regenerated.
19153         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
19154
19155 2009-02-07  Bruno Haible  <bruno@clisp.org>
19156
19157         Merge gen-ctype and gen-lbrk into a single program.
19158         * lib/gen-uni-tables.c: New file, incorporating
19159         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
19160         Add directory prefixes to the names of the generated files.
19161         * lib/unictype/gen-ctype.c: Remove file.
19162         * lib/unilbrk/gen-lbrk.c: Remove file.
19163         * modules/gen-uni-tables: New file.
19164         * modules/unictype/gen-ctype: Remove file.
19165         * modules/unilbrk/gen-lbrk: Remove file.
19166
19167 2009-02-07  Bruno Haible  <bruno@clisp.org>
19168
19169         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
19170
19171         New module 'unistr/u32-strcoll'.
19172         * modules/unistr/u32-strcoll: New file.
19173         * lib/unistr/u32-strcoll.c: New file.
19174
19175         New module 'unistr/u16-strcoll'.
19176         * modules/unistr/u16-strcoll: New file.
19177         * lib/unistr/u16-strcoll.c: New file.
19178
19179         New module 'unistr/u8-strcoll'.
19180         * modules/unistr/u8-strcoll: New file.
19181         * lib/unistr/u8-strcoll.c: New file.
19182         * lib/unistr/u-strcoll.h: New file.
19183
19184 2009-02-07  Bruno Haible  <bruno@clisp.org>
19185
19186         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
19187         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
19188         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
19189         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
19190         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
19191         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
19192
19193 2009-02-07  Bruno Haible  <bruno@clisp.org>
19194
19195         Make 64-bit clean.
19196         * lib/unictype/gen-ctype.c (output_predicate, output_category,
19197         output_combclass, output_bidi_category, output_decimal_digit,
19198         output_digit, output_numeric, output_mirror, output_scripts,
19199         output_ident_category): Use proper width specifier in format strings.
19200
19201 2009-02-07  Bruno Haible  <bruno@clisp.org>
19202
19203         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
19204         failure behaviour.
19205
19206 2009-02-07  Jim Meyering  <meyering@redhat.com>
19207
19208         regex: avoid compilation failure with upcoming gcc-4.4
19209         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
19210         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
19211         "... error: integer overflow in preprocessor expression".
19212
19213 2009-02-05  Ben Pfaff  <blp@gnu.org>
19214
19215         Fix link errors on Windows when close module is used.
19216         * modules/close: Add $(LIB_CLOSE) to Link section.
19217         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
19218         $(LIB_CLOSE) on Windows.
19219
19220 2009-02-05  Jim Meyering  <meyering@redhat.com>
19221
19222         still avoid unused-parameter warnings, but do it cleanly
19223         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
19224         (get_fs_usage): Cast to void instead.
19225         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
19226         (dev_from_mount_options, read_file_system_list): Cast to void.
19227         Prompted by Bruno Haible.
19228
19229 2009-02-04  Jim Meyering  <meyering@redhat.com>
19230
19231         fsusage.c: correct copyright year
19232         * lib/fsusage.c: Reflect year in which the change is pushed into
19233
19234         avoid misc. warnings
19235         * lib/fsusage.c (UNUSED_PARAM): Define.
19236         (get_fs_usage): Mark parameter "disk" as unused.
19237         * lib/getugroups.c (getgrent): Use "void" in prototype.
19238         * lib/mountlist.c: Mark unused parameters.
19239         (read_file_system_list): Declare a local with "const".
19240         * lib/nanosleep.c (getnow): Declare static.
19241         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
19242
19243         dirfd: set errno upon failure
19244         * lib/dirfd.c: Include <errno.h>.
19245         Set errno to ENOTSUP when returning -1.
19246         * modules/dirfd (Depends-on): Add errno.
19247         Suggested by John Kodis <kodis@comcast.net>.
19248
19249 2009-02-01  Bruno Haible  <bruno@clisp.org>
19250
19251         Don't assume sizeof (long) >= sizeof (void *).
19252         * lib/memcmp.c: Include stdint.h.
19253         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
19254         srcp2 to 'const byte *'.
19255         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
19256         types to uintptr_t.
19257         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
19258         * modules/memcmp (Depends-on): Add stdint.
19259         Reported by Ozkan Sezer <sezeroz@gmail.com>.
19260
19261 2009-01-30  Eric Blake  <ebb9@byu.net>
19262
19263         fix more require-before-expand issues
19264         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
19265         expand, AC_PROG_AWK.
19266         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
19267
19268 2009-01-28  Eric Blake  <ebb9@byu.net>
19269
19270         version-etc: use consistent URL formatting
19271         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
19272         Improve formatting.  Use fputs for string without %.
19273
19274 2009-01-28  Jim Meyering  <meyering@redhat.com>
19275
19276         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
19277         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
19278         "underquoted definition of NAME" from autoconf-2.59.
19279
19280 2009-01-28  Bruno Haible  <bruno@clisp.org>
19281
19282         * doc/gnulib.texi: Add "Obsolete modules" to index.
19283
19284 2009-01-28  Jim Meyering  <meyering@redhat.com>
19285
19286         useless-if-before-free: recognize more variants
19287         * build-aux/useless-if-before-free: Also recognize e.g.,
19288         if (NULL != p) free (p);
19289
19290 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
19291
19292         test-getaddrinfo: skip (don't fail) this test when there's no network
19293         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
19294         on the presumption that it means you lack network access.
19295
19296 2009-01-26  Jim Meyering  <meyering@redhat.com>
19297
19298         fflush: avoid warnings on modern systems
19299         * lib/fflush.c (rpl_fflush): Move declarations of locals,
19300         pos and result, into scopes where they're used.
19301
19302 2009-01-26  Eric Blake  <ebb9@byu.net>
19303
19304         Silence warning reintroduced by recent extensions patch.
19305         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
19306         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
19307         autoconf.
19308
19309         Backport improved autoconf semantics of AC_DEFUN_ONCE.
19310         * m4/00gnulib.m4: New file.
19311         * gnulib-tool (func_get_filelist): Always use it.
19312         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
19313         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
19314
19315 2009-01-25  Bruno Haible  <bruno@clisp.org>
19316
19317         Make test-quotearg work on MacOS X and AIX.
19318         * tests/test-quotearg.sh: New file.
19319         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
19320         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
19321         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
19322         include <libintl.h>.
19323         (fake_locale): Remove variable.
19324         (gettext, dgettext, dcgettext): Remove functions.
19325         (main): Instead of setting a fake locale, set a real locale. Call
19326         textdomain and bindtextdomain.
19327         * modules/quotearg-tests (Files): Add the new files.
19328         (Depends-on): Add gettext, setenv, unsetenv.
19329         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
19330         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
19331         Augment TESTS_ENVIRONMENT.
19332
19333 2009-01-25  Bruno Haible  <bruno@clisp.org>
19334
19335         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
19336         fr_FR.ISO8859-1 locale on MacOS X.
19337         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
19338         ja_JP.eucJP locale on MacOS X.
19339         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
19340         zh_CN.GB18030 locale on MacOS X.
19341
19342 2009-01-25  Bruno Haible  <bruno@clisp.org>
19343
19344         Avoid link errors on MacOS X 10.3.
19345         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
19346         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
19347
19348 2009-01-25  Bruno Haible  <bruno@clisp.org>
19349
19350         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
19351         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
19352         * modules/pipe (Files): Remove m4/posix_spawn.m4.
19353         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
19354         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
19355         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
19356         posix_spawnattr_init, posix_spawnattr_setsigmask,
19357         posix_spawnattr_setflags, posix_spawnattr_destroy.
19358
19359         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
19360         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
19361         * modules/execute (Files): Remove m4/posix_spawn.m4.
19362         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
19363         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
19364         posix_spawnattr_init, posix_spawnattr_setsigmask,
19365         posix_spawnattr_setflags, posix_spawnattr_destroy.
19366
19367 2009-01-25  Bruno Haible  <bruno@clisp.org>
19368
19369         * lib/glthread/threadlib.c: Include <stdlib.h>.
19370
19371 2009-01-25  Bruno Haible  <bruno@clisp.org>
19372
19373         * lib/glthread/threadlib.c (dummy): New declaration.
19374
19375 2009-01-25  Bruno Haible  <bruno@clisp.org>
19376
19377         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
19378         multibyte characters also for the GB18030 encoding. Don't crash when
19379         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
19380
19381 2009-01-25  Bruno Haible  <bruno@clisp.org>
19382
19383         Avoid redefining 'struct random_data' on OSF/1 5.1.
19384         * lib/stdlib.in.h: Include <random.h> if it exists.
19385         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
19386         HAVE_RANDOM_H. Include <random.h> when testing whether
19387         'struct random_data' exists.
19388         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
19389
19390 2009-01-25  Bruno Haible  <bruno@clisp.org>
19391
19392         Don't install charset.alias on MacOS X >= 10.3.
19393         * lib/localcharset.c (DARWIN7): New macro.
19394         (get_charset_aliases): Hardcode the result for Darwin7.
19395         * modules/localcharset (install-exec-local): Don't install
19396         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
19397
19398 2009-01-25  Bruno Haible  <bruno@clisp.org>
19399
19400         Don't install charset.alias on mingw and Cygwin.
19401         * modules/localcharset (install-exec-local): Don't install
19402         charset.alias on mingw and Cygwin, if the file does not yet exist.
19403         The result for these platforms is hardcoded in localcharset.c.
19404
19405 2009-01-25  Bruno Haible  <bruno@clisp.org>
19406
19407         Make it possible again to use AC_GNU_SOURCE together with gnulib.
19408         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
19409         before requiring AC_USE_SYSTEM_EXTENSIONS.
19410
19411 2009-01-25  Jim Meyering  <meyering@redhat.com>
19412
19413         c-strtod: avoid warnings
19414         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
19415         "assignment discards qualifiers from pointer target type" warnings.
19416
19417 2009-01-24  Bruno Haible  <bruno@clisp.org>
19418
19419         Add support for non-UTF-8 locales on MacOS X.
19420         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
19421         canonical encodings. For Darwin 7 and newer, don't map traditional
19422         encodings to UTF-8.
19423         Reported by Vincent Lefevre <vincent@vinc17.org>
19424         at <http://savannah.gnu.org/bugs/?25235>.
19425
19426 2009-01-24  Bruno Haible  <bruno@clisp.org>
19427
19428         * doc/gnulib.texi (Obsolete modules): New section.
19429         Reported by Mike Frysinger <vapier@gentoo.org>.
19430
19431 2009-01-24  Bruno Haible  <bruno@clisp.org>
19432
19433         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
19434         (%.dvi): New rule.
19435
19436 2009-01-24  Bruno Haible  <bruno@clisp.org>
19437
19438         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
19439         Reported by Eric Blake.
19440
19441 2009-01-24  Bruno Haible  <bruno@clisp.org>
19442
19443         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
19444         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
19445         Reported by Gary V. Vaughan <gary@gnu.org>.
19446
19447 2009-01-24  Bruno Haible  <bruno@clisp.org>
19448
19449         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
19450
19451 2009-01-23  Bruno Haible  <bruno@clisp.org>
19452
19453         Make c-strtod, c-strtold usable in libraries.
19454         * lib/c-strtod.c: Include string.h instead of xalloc.h.
19455         (C_STRTOD): Call strdup instead of xstrdup.
19456         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
19457         * modules/c-strtold (Depends-on): Likewise.
19458         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
19459         * NEWS: Mention the change.
19460         Reported by Michael Gold <mgold@ncf.ca>.
19461
19462 2009-01-23  Jim Meyering  <meyering@redhat.com>
19463
19464         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
19465         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
19466         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
19467
19468 2009-01-23  Simon Josefsson  <simon@josefsson.org>
19469
19470         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
19471         GNU CoreUtils.
19472         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
19473         * modules/version-etc (Description): Update.
19474
19475 2009-01-22  Bruno Haible  <bruno@clisp.org>
19476
19477         Cache the C locale object.
19478         * lib/c-strtod.c (c_locale_cache): New variable.
19479         (c_locale): New function.
19480         (C_STRTOD): Use it, and don't call freelocale.
19481         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
19482         Suggested by Paolo Bonzini.
19483
19484 2009-01-21  Bruno Haible  <bruno@clisp.org>
19485
19486         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
19487         conditions other than overflow.
19488
19489 2009-01-21  Bruno Haible  <bruno@clisp.org>
19490
19491         * lib/c-strtod.c: Include errno.h.
19492         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
19493         value from STRTOD_L and STRTOD.
19494
19495 2009-01-21  Bruno Haible  <bruno@clisp.org>
19496         and Jim Meyering  <meyering@redhat.com>
19497
19498         nanosleep: skip configure test (fail it) for apple universal builds
19499         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
19500         universal builds, assume that nanosleep does not work.
19501         * modules/nanosleep (Depends-on): Add multiarch.
19502
19503         mktime: skip configure test (fail it) for apple universal builds
19504         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
19505         universal builds, assume that mktime does not work.
19506         * modules/mktime (Depends-on): Add multiarch.
19507
19508 2009-01-21  Eric Blake  <ebb9@byu.net>
19509
19510         multiarch: avoid expand-before-require warning
19511         * modules/multiarch (configure.ac): Require, rather than expand,
19512         gl_MULTIARCH.
19513         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
19514         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
19515         enforce that all clients require it.  Partial reversion of
19516         2008-12-29 patch.
19517
19518         error: avoid expand-before-require warning
19519         * modules/errno (configure.ac): Require, rather than expand,
19520         gl_HEADER_ERRNO_H.
19521         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
19522         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
19523         enforce that all clients require it.
19524
19525         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
19526         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
19527         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
19528         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
19529
19530 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
19531
19532         Revert:
19533         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
19534
19535         regex: do not depend on obsolete modules.
19536         * modules/regex: Remove memcmp and memmove.
19537
19538 2009-01-20  Bruno Haible  <bruno@clisp.org>
19539
19540         Make the 'link' module link on Windows NT 4.
19541         * lib/link.c (_WIN32_WINNT): Don't define.
19542         (CreateHardLinkFuncType): New type.
19543         (CreateHardLinkFunc, initialized): New variables.
19544         (initialize): New function.
19545         (link): Invoke CreateHardLink indirectly through the function pointer.
19546
19547 2009-01-20  Bruno Haible  <bruno@clisp.org>
19548
19549         Fix compilation failure on mingw.
19550         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
19551
19552 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
19553
19554         * doc/c-strtod.texi: Mention a couple of restrictions.
19555
19556 2009-01-20  Jim Meyering  <meyering@redhat.com>
19557
19558         gettimeofday: move more declarations out of functions
19559         * lib/gettimeofday.c: Move extern declarations of tzset and
19560         gmtime out of containing functions.  Prompted by Bruno Haible.
19561
19562 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
19563
19564         regex: do not depend on obsolete modules.
19565         * modules/regex: Remove memcmp and memmove.
19566
19567 2009-01-19  Bruno Haible  <bruno@clisp.org>
19568
19569         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
19570         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
19571         gl_BIGENDIAN, not AC_C_BIGENDIAN.
19572         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
19573         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
19574
19575 2009-01-19  Bruno Haible  <bruno@clisp.org>
19576
19577         * tests/test-link.c: Include <errno.h>.
19578         (main): Exit with code 77 when a hard link cannot be created due to
19579         the file system.
19580         * tests/test-link.sh: Skip test when a hard link cannot be created due
19581         to the file system.
19582         Suggested by Eric Blake.
19583
19584 2009-01-19  Martin Lambers  <marlam@marlam.de>
19585
19586         * modules/link-tests: New file.
19587         * tests/test-link.sh: New file.
19588         * tests/test-link.c: New file.
19589
19590 2009-01-19  Eric Blake  <ebb9@byu.net>
19591
19592         doc: mention another function added in cygwin 1.7.0
19593         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
19594         Another new function in cygwin 1.7.
19595
19596 2009-01-19  Bruno Haible  <bruno@clisp.org>
19597
19598         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
19599         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
19600         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
19601         gl_BIGENDIAN, not AC_C_BIGENDIAN.
19602         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19603         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
19604         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19605         * m4/md4.m4 (gl_MD4): Likewise.
19606         * m4/md5.m4 (gl_MD5): Likewise.
19607         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
19608         * m4/sha1.m4 (gl_SHA1): Likewise.
19609         * m4/sha256.m4 (gl_SHA256): Likewise.
19610         * m4/sha512.m4 (gl_SHA512): Likewise.
19611
19612 2009-01-19  Bruno Haible  <bruno@clisp.org>
19613
19614         * modules/uniname/uniname-tests (Depends-on): Add progname.
19615         * tests/uniname/test-uninames.c: Include progname.h.
19616         (main): Call set_program_name.
19617
19618         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
19619         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
19620         (main): Call set_program_name.
19621
19622         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
19623         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
19624         (main): Call set_program_name.
19625
19626         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
19627         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
19628         (main): Call set_program_name.
19629
19630         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
19631         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
19632         (main): Call set_program_name.
19633
19634         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
19635         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
19636         (main): Call set_program_name.
19637
19638         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
19639         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
19640         (main): Call set_program_name.
19641
19642         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
19643         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
19644         (main): Call set_program_name.
19645
19646         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
19647         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
19648         (main): Call set_program_name.
19649
19650 2009-01-19  Eric Blake  <ebb9@byu.net>
19651
19652         test-unistd: test previous patch
19653         * tests/test-unistd.c: Test *_FILENO macros.
19654
19655         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
19656         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
19657         Guarantee a definition.
19658         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
19659         * modules/unistd-safer (Depends-on): Add dependency on unistd.
19660         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
19661         * lib/dup-safer.c (STDERR_FILENO): Likewise.
19662         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
19663         Likewise.
19664         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
19665         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
19666         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
19667         Likewise.
19668         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
19669         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
19670         (STDERR_FILENO): Likewise.
19671         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
19672         (STDERR_FILENO): Likewise.
19673         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
19674         (STDERR_FILENO): Likewise.
19675         Reported by Elbert Pol.
19676
19677 2009-01-19  Eric Blake  <ebb9@byu.net>
19678
19679         doc: mention more functions added in cygwin 1.7.0
19680         * doc/posix-functions/abort.texi (abort): Update wording related
19681         to cygwin.
19682         * doc/posix-functions/daylight.texi (daylight): Likewise.
19683         * doc/posix-functions/optarg.texi (optarg): Likewise.
19684         * doc/posix-functions/optarg.texi (opterr): Likewise.
19685         * doc/posix-functions/optarg.texi (optind): Likewise.
19686         * doc/posix-functions/optarg.texi (optopt): Likewise.
19687         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
19688         worked in 1.5.x, and was withdrawn in 1.7.
19689         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
19690         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
19691         cygwin versions.
19692         * doc/posix-functions/perror.texi (perror): Likewise.
19693         * doc/posix-functions/printf.texi (printf): Likewise.
19694         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
19695         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
19696         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19697         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19698         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
19699         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
19700         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
19701         Likewise.
19702         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
19703         Likewise.
19704         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
19705         this function.
19706         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
19707         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
19708         Likewise.
19709         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
19710         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
19711         * doc/posix-functions/confstr.texi (confstr): Likewise.
19712         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
19713         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
19714         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
19715         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
19716         * doc/posix-functions/fputws.texi (fputws): Likewise.
19717         * doc/posix-functions/fwide.texi (fwide): Likewise.
19718         * doc/posix-functions/getwc.texi (getwc): Likewise.
19719         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
19720         * doc/posix-functions/putwc.texi (putwc): Likewise.
19721         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
19722         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
19723         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
19724         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
19725         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
19726         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
19727         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
19728         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
19729         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
19730         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
19731         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
19732
19733 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
19734
19735         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
19736         * lib/ioctl.c: Include <sys/ioctl.h>.
19737
19738 2009-01-19  Simon Josefsson  <simon@josefsson.org>
19739
19740         * modules/getdate-tests (Depends-on): Add progname.
19741         * tests/test-getdate.c: Use progname module, to avoid link errors
19742         on non-glibc systems.
19743
19744 2009-01-18  Simon Josefsson  <simon@josefsson.org>
19745
19746         * modules/filenamecat-tests (Depends-on): Add progname.
19747         * modules/fstrcmp-tests (Depends-on): Likewise.
19748
19749         * tests/test-filenamecat.c: Use progname module, to avoid link
19750         errors on non-glibc systems.
19751         * tests/test-fstrcmp.c: Likewise.
19752
19753 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
19754
19755         gettimeofday: avoid warning: nested extern declaration of 'localtime'
19756         * lib/gettimeofday.c: Move extern declaration out of function.
19757
19758 2009-01-18  Bruno Haible  <bruno@clisp.org>
19759
19760         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
19761         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
19762         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
19763
19764 2009-01-18  Bruno Haible  <bruno@clisp.org>
19765
19766         * lib/strftime.c (MEMPCPY): Remove unused macro.
19767         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
19768
19769 2009-01-18  Martin Lambers  <marlam@marlam.de>
19770
19771         New module 'link'.
19772         * lib/unistd.in.h (link): New declaration.
19773         * lib/link.c: New file.
19774         * m4/link.m4: New file.
19775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
19776         HAVE_LINK.
19777         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
19778         * modules/link: New file.
19779         * doc/posix-functions/link.texi: Mention the new module.
19780
19781 2009-01-18  Bruno Haible  <bruno@clisp.org>
19782
19783         * tests/test-avltree_list.c (main): Call set_program_name.
19784         * tests/test-avltree_oset.c (main): Likewise.
19785         * tests/test-obstack-printf.c: Include progname.h.
19786         (main): Call set_program_name.
19787         * tests/test-quotearg.c: Include progname.h.
19788         (main): Call set_program_name.
19789         * tests/test-xmemdup0.c: Include progname.h.
19790         (main): Call set_program_name.
19791
19792 2009-01-18  Bruno Haible  <bruno@clisp.org>
19793
19794         New module 'alphasort'.
19795         * lib/dirent.in.h (alphasort): New declaration.
19796         * lib/alphasort.c: New file, from glibc with modifications.
19797         * m4/alphasort.m4: New file.
19798         * modules/alphasort: New file.
19799         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
19800         HAVE_ALPHASORT.
19801         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
19802         HAVE_ALPHASORT.
19803         * doc/posix-functions/alphasort.texi: Mention the new module and the
19804         portability problems.
19805
19806 2009-01-18  Bruno Haible  <bruno@clisp.org>
19807
19808         New module 'scandir'.
19809         * lib/dirent.in.h (scandir): New declaration.
19810         * lib/scandir.c: New file, from glibc with modifications.
19811         * m4/scandir.m4: New file.
19812         * modules/scandir: New file.
19813         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
19814         HAVE_SCANDIR.
19815         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
19816         HAVE_SCANDIR.
19817         * doc/posix-functions/scandir.texi: Mention the new module and the
19818         portability problems.
19819
19820 2009-01-17  Bruno Haible  <bruno@clisp.org>
19821
19822         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
19823         Update documentation.
19824         (func_remove_suffix): Escape all dots in the suffix. Update
19825         documentation.
19826         (func_filter_filelist): Update documentation.
19827         Reported by Ralf Wildenhues.
19828
19829 2009-01-17  Bruno Haible  <bruno@clisp.org>
19830
19831         * modules/dprintf-posix-tests: New file.
19832         * tests/test-dprintf-posix.sh: New file.
19833         * tests/test-dprintf-posix.c: New file.
19834
19835         New modules 'dprintf', 'dprintf-posix'.
19836         * lib/stdio.in.h (dprintf): New declaration.
19837         * lib/dprintf.c: New file.
19838         * m4/dprintf.m4: New file.
19839         * m4/dprintf-posix.m4: New file.
19840         * modules/dprintf: New file.
19841         * modules/dprintf-posix: New file.
19842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
19843         HAVE_DPRINTF, REPLACE_DPRINTF.
19844         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
19845         HAVE_DPRINTF, REPLACE_DPRINTF.
19846         * doc/posix-functions/dprintf.texi: Mention the new modules.
19847
19848 2009-01-17  Bruno Haible  <bruno@clisp.org>
19849
19850         * modules/vdprintf-posix-tests: New file.
19851         * tests/test-vdprintf-posix.sh: New file.
19852         * tests/test-vdprintf-posix.c: New file.
19853
19854         New modules 'vdprintf', 'vdprintf-posix'.
19855         * lib/stdio.in.h (vdprintf): New declaration.
19856         * lib/vdprintf.c: New file.
19857         * m4/vdprintf.m4: New file.
19858         * m4/vdprintf-posix.m4: New file.
19859         * modules/vdprintf: New file.
19860         * modules/vdprintf-posix: New file.
19861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
19862         HAVE_VDPRINTF, REPLACE_VDPRINTF.
19863         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
19864         HAVE_VDPRINTF, REPLACE_VDPRINTF.
19865         * doc/posix-functions/vdprintf.texi: Mention the new modules.
19866
19867 2009-01-17  Bruno Haible  <bruno@clisp.org>
19868
19869         Fix replacement of fopen on mingw.
19870         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
19871         mingw.
19872
19873 2009-01-17  Bruno Haible  <bruno@clisp.org>
19874
19875         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
19876         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
19877
19878 2009-01-17  Bruno Haible  <bruno@clisp.org>
19879
19880         Avoid test-fflush2.sh failure on mingw.
19881         * tests/test-fflush2.c: Include binary-io.h.
19882         (main): Put standard input into binary mode.
19883         * modules/fflush-tests (Depends-on): Add binary-io.
19884
19885 2009-01-17  Bruno Haible  <bruno@clisp.org>
19886
19887         * lib/wchar.in.h: In another particular situation, include only the
19888         system's <wchar.h> file.
19889         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
19890         Reported by Albert Chin-A-Young <china@thewrittenword.com>
19891         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
19892
19893 2009-01-17  Bruno Haible  <bruno@clisp.org>
19894
19895         Support for stripping executables in --enable-relocatable.
19896         * build-aux/install-reloc: Expect one more argument, or an environment
19897         variable RELOC_STRIP_PROG. If set, strip the destination program and
19898         its wrapper.
19899         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
19900         RELOC_STRIP_PROG.
19901         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
19902         to set RELOCATABLE_STRIP.
19903         * NEWS: Mention the new Makefile requirement.
19904
19905 2009-01-17  Bruno Haible  <bruno@clisp.org>
19906
19907         * build-aux/install-reloc: Remove debugging information left over by
19908         C compiler on MacOS X.
19909
19910 2009-01-17  Bruno Haible  <bruno@clisp.org>
19911
19912         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
19913         * lib/progreloc.c (find_executable): Fix type of pointer passed to
19914         _NSGetExecutablePath.
19915
19916 2009-01-16  Jim Meyering  <meyering@redhat.com>
19917
19918         strerror: avoid warnings about discarding "const"
19919         * lib/strerror.c (rpl_strerror): Instead of returning a const
19920         string from each and every "case", use a variable, and add a single
19921         cast after the switch.
19922
19923 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
19924
19925         * lib/arpa_inet.in.h: Add extern "C" block for C++.
19926
19927 2009-01-16  Bruno Haible  <bruno@clisp.org>
19928
19929         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
19930         array initializer syntax that also works in C++ mode.
19931         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19932
19933 2009-01-16  Jim Meyering  <meyering@redhat.com>
19934
19935         poll: suppress a warning
19936         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
19937         to ignore "...unsigned expression < 0 is always false" warnings.
19938
19939 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
19940
19941         poll: remove declarations of unused variables
19942         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
19943         sockbuf and optlen.
19944
19945 2009-01-15  Bruno Haible  <bruno@clisp.org>
19946
19947         Make fflush-after-ungetc POSIX compliant on BSD systems.
19948         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
19949         (clear_ungetc_buffer): Implement also for other systems.
19950         (rpl_fflush): On glibc systems, invoke
19951         clear_ungetc_buffer_preserving_position. Otherwise, invoke
19952         clear_ungetc_buffer after fetching the stream's position, not before.
19953
19954 2009-01-15  Bruno Haible  <bruno@clisp.org>
19955
19956         Make fflush-after-ungetc POSIX compliant on glibc systems.
19957         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
19958         after ungetc.
19959         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
19960         (rpl_fflush): On glibc systems, simply call the system's fflush
19961         function after clearing the ungetc buffer.
19962         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
19963         Instead, lseek only to the end of file, then use the system's fseeko
19964         for the rest. On glibc systems, reset the EOF indicator bit.
19965
19966 2009-01-15  Jim Meyering  <meyering@redhat.com>
19967
19968         openmp.m4: revert quote-adding change, for portability to older autoconf
19969         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
19970         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
19971         Simon Josefsson noticed the problem when using autoconf-2.61.
19972
19973 2009-01-15  Bruno Haible  <bruno@clisp.org>
19974
19975         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
19976         * tests/test-fflush2.c (ASSERT): Always fail.
19977         (main): Add two tests for fflush() after ungetc(), taking into account
19978         the Austin Group's clarification.
19979         Suggested by Eric Blake.
19980
19981 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
19982
19983         mktime.m4: remove K&R-style function prototypes
19984         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
19985         for the Sun C++ compiler.
19986
19987 2009-01-14  Bruno Haible  <bruno@clisp.org>
19988
19989         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
19990         while including <wchar.h>.
19991         * lib/wchar.in.h: In two particular situations on HP-UX, include only
19992         the system's <wchar.h> file.
19993         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19994
19995 2009-01-14  Bruno Haible  <bruno@clisp.org>
19996
19997         * m4/csharp.m4: Don't mention gettext on the serial number line.
19998         * m4/csharpexec.m4: Likewise.
19999         * m4/eaccess.m4: Likewise.
20000         * m4/javaexec.m4: Likewise.
20001         * m4/sig_atomic_t.m4: Likewise.
20002         * m4/tmpdir.m4: Likewise.
20003         * m4/intldir.m4: Bump gettext version.
20004         * m4/lib-ld.m4: Likewise.
20005
20006 2009-01-14  Bruno Haible  <bruno@clisp.org>
20007
20008         * lib/progname.c (set_program_name): Add more comments.
20009         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
20010
20011 2009-01-14  Simon Josefsson  <simon@josefsson.org>
20012
20013         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
20014         were sys/stat.h does not define it.
20015
20016 2009-01-14  Jim Meyering  <meyering@redhat.com>
20017
20018         many *.m4 files: improve m4 quoting
20019         99% of this change was performed by running the following commands:
20020         git ls-files | grep '\.m4$' | xargs perl -pi \
20021           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
20022           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
20023           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
20024           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
20025         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
20026         The remainder were to add Copyright dates, increment serial numbers,
20027         undo some changes in comments, exclude m4/intl.m4, and add quotes
20028         around the "1" in ",1" where the unusual spacing prohibited the
20029         above regexps from doing the job.  For more details, see
20030         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
20031         * m4/acl.m4: Modified.
20032         * m4/afs.m4: Likewise.
20033         * m4/alloca.m4: Likewise.
20034         * m4/argp.m4: Likewise.
20035         * m4/argz.m4: Likewise.
20036         * m4/atexit.m4: Likewise.
20037         * m4/bison-i18n.m4: Likewise.
20038         * m4/bison.m4: Likewise.
20039         * m4/byteswap.m4: Likewise.
20040         * m4/c-stack.m4: Likewise.
20041         * m4/c-strtod.m4: Likewise.
20042         * m4/calloc.m4: Likewise.
20043         * m4/canonicalize-lgpl.m4: Likewise.
20044         * m4/chown.m4: Likewise.
20045         * m4/clock_time.m4: Likewise.
20046         * m4/codeset.m4: Likewise.
20047         * m4/copy-file.m4: Likewise.
20048         * m4/csharp.m4: Likewise.
20049         * m4/csharpcomp.m4: Likewise.
20050         * m4/csharpexec.m4: Likewise.
20051         * m4/d-ino.m4: Likewise.
20052         * m4/d-type.m4: Likewise.
20053         * m4/dirfd.m4: Likewise.
20054         * m4/double-slash-root.m4: Likewise.
20055         * m4/eaccess.m4: Likewise.
20056         * m4/eealloc.m4: Likewise.
20057         * m4/environ.m4: Likewise.
20058         * m4/errno_h.m4: Likewise.
20059         * m4/euidaccess.m4: Likewise.
20060         * m4/execute.m4: Likewise.
20061         * m4/fatal-signal.m4: Likewise.
20062         * m4/fchdir.m4: Likewise.
20063         * m4/fcntl_h.m4: Likewise.
20064         * m4/fileblocks.m4: Likewise.
20065         * m4/filenamecat.m4: Likewise.
20066         * m4/findprog.m4: Likewise.
20067         * m4/flexmember.m4: Likewise.
20068         * m4/fnmatch.m4: Likewise.
20069         * m4/fopen.m4: Likewise.
20070         * m4/fpending.m4: Likewise.
20071         * m4/fprintf-posix.m4: Likewise.
20072         * m4/free.m4: Likewise.
20073         * m4/frexp.m4: Likewise.
20074         * m4/frexpl.m4: Likewise.
20075         * m4/fsusage.m4: Likewise.
20076         * m4/ftruncate.m4: Likewise.
20077         * m4/gc-camellia.m4: Likewise.
20078         * m4/gc-random.m4: Likewise.
20079         * m4/gc.m4: Likewise.
20080         * m4/getaddrinfo.m4: Likewise.
20081         * m4/getcwd-abort-bug.m4: Likewise.
20082         * m4/getcwd-path-max.m4: Likewise.
20083         * m4/getdate.m4: Likewise.
20084         * m4/getdomainname.m4: Likewise.
20085         * m4/getgroups.m4: Likewise.
20086         * m4/gethostname.m4: Likewise.
20087         * m4/gethrxtime.m4: Likewise.
20088         * m4/getline.m4: Likewise.
20089         * m4/getloadavg.m4: Likewise.
20090         * m4/getndelim2.m4: Likewise.
20091         * m4/getpass.m4: Likewise.
20092         * m4/gettext.m4: Likewise.
20093         * m4/gettime.m4: Likewise.
20094         * m4/gettimeofday.m4: Likewise.
20095         * m4/gnulib-common.m4: Likewise.
20096         * m4/group-member.m4: Likewise.
20097         * m4/host-os.m4: Likewise.
20098         * m4/iconv.m4: Likewise.
20099         * m4/iconv_open.m4: Likewise.
20100         * m4/inet_ntop.m4: Likewise.
20101         * m4/inet_pton.m4: Likewise.
20102         * m4/inline.m4: Likewise.
20103         * m4/intldir.m4: Likewise.
20104         * m4/intlmacosx.m4: Likewise.
20105         * m4/intmax.m4: Likewise.
20106         * m4/intmax_t.m4: Likewise.
20107         * m4/inttypes.m4: Likewise.
20108         * m4/inttypes_h.m4: Likewise.
20109         * m4/inttypes-pri.m4: Likewise.
20110         * m4/isapipe.m4: Likewise.
20111         * m4/isnand.m4: Likewise.
20112         * m4/isnanf.m4: Likewise.
20113         * m4/isnanl.m4: Likewise.
20114         * m4/javacomp.m4: Likewise.
20115         * m4/javaexec.m4: Likewise.
20116         * m4/jm-winsz1.m4: Likewise.
20117         * m4/jm-winsz2.m4: Likewise.
20118         * m4/lchown.m4: Likewise.
20119         * m4/lcmessage.m4: Likewise.
20120         * m4/ldexpl.m4: Likewise.
20121         * m4/lib-ld.m4: Likewise.
20122         * m4/lib-link.m4: Likewise.
20123         * m4/libsigsegv.m4: Likewise.
20124         * m4/link-follow.m4: Likewise.
20125         * m4/localcharset.m4: Likewise.
20126         * m4/locale-fr.m4: Likewise.
20127         * m4/locale-ja.m4: Likewise.
20128         * m4/locale-tr.m4: Likewise.
20129         * m4/locale-zh.m4: Likewise.
20130         * m4/lock.m4: Likewise.
20131         * m4/longlong.m4: Likewise.
20132         * m4/ls-mntd-fs.m4: Likewise.
20133         * m4/lstat.m4: Likewise.
20134         * m4/malloc.m4: Likewise.
20135         * m4/mathl.m4: Likewise.
20136         * m4/mbrtowc.m4: Likewise.
20137         * m4/mbstate_t.m4: Likewise.
20138         * m4/mbswidth.m4: Likewise.
20139         * m4/memchr.m4: Likewise.
20140         * m4/memcmp.m4: Likewise.
20141         * m4/memcpy.m4: Likewise.
20142         * m4/memmem.m4: Likewise.
20143         * m4/memmove.m4: Likewise.
20144         * m4/mempcpy.m4: Likewise.
20145         * m4/memrchr.m4: Likewise.
20146         * m4/memset.m4: Likewise.
20147         * m4/minmax.m4: Likewise.
20148         * m4/mkdir-slash.m4: Likewise.
20149         * m4/mkdtemp.m4: Likewise.
20150         * m4/mktime.m4: Likewise.
20151         * m4/mmap-anon.m4: Likewise.
20152         * m4/mountlist.m4: Likewise.
20153         * m4/nanosleep.m4: Likewise.
20154         * m4/nls.m4: Likewise.
20155         * m4/nocrash.m4: Likewise.
20156         * m4/open.m4: Likewise.
20157         * m4/openat.m4: Likewise.
20158         * m4/openmp.m4: Likewise.
20159         * m4/pathmax.m4: Likewise.
20160         * m4/perl.m4: Likewise.
20161         * m4/physmem.m4: Likewise.
20162         * m4/pipe.m4: Likewise.
20163         * m4/po.m4: Likewise.
20164         * m4/poll.m4: Likewise.
20165         * m4/posixtm.m4: Likewise.
20166         * m4/posixver.m4: Likewise.
20167         * m4/printf-frexp.m4: Likewise.
20168         * m4/printf-frexpl.m4: Likewise.
20169         * m4/printf-posix.m4: Likewise.
20170         * m4/printf-posix-rpl.m4: Likewise.
20171         * m4/printf.m4: Likewise.
20172         * m4/progtest.m4: Likewise.
20173         * m4/putenv.m4: Likewise.
20174         * m4/readline.m4: Likewise.
20175         * m4/readlink.m4: Likewise.
20176         * m4/readutmp.m4: Likewise.
20177         * m4/realloc.m4: Likewise.
20178         * m4/regex.m4: Likewise.
20179         * m4/relocatable.m4: Likewise.
20180         * m4/relocatable-lib.m4: Likewise.
20181         * m4/rename-dest-slash.m4: Likewise.
20182         * m4/rename.m4: Likewise.
20183         * m4/rmdir-errno.m4: Likewise.
20184         * m4/rmdir.m4: Likewise.
20185         * m4/roundf.m4: Likewise.
20186         * m4/roundl.m4: Likewise.
20187         * m4/rpmatch.m4: Likewise.
20188         * m4/save-cwd.m4: Likewise.
20189         * m4/selinux-selinux-h.m4: Likewise.
20190         * m4/setenv.m4: Likewise.
20191         * m4/settime.m4: Likewise.
20192         * m4/sig2str.m4: Likewise.
20193         * m4/sig_atomic_t.m4: Likewise.
20194         * m4/signalblocking.m4: Likewise.
20195         * m4/signbit.m4: Likewise.
20196         * m4/sigpipe.m4: Likewise.
20197         * m4/sockets.m4: Likewise.
20198         * m4/sockpfaf.m4: Likewise.
20199         * m4/st_dm_mode.m4: Likewise.
20200         * m4/stat-time.m4: Likewise.
20201         * m4/stdbool.m4: Likewise.
20202         * m4/stdint.m4: Likewise.
20203         * m4/stdint_h.m4: Likewise.
20204         * m4/stpcpy.m4: Likewise.
20205         * m4/stpncpy.m4: Likewise.
20206         * m4/strcase.m4: Likewise.
20207         * m4/strchrnul.m4: Likewise.
20208         * m4/strcspn.m4: Likewise.
20209         * m4/strdup.m4: Likewise.
20210         * m4/strftime.m4: Likewise.
20211         * m4/strndup.m4: Likewise.
20212         * m4/strnlen.m4: Likewise.
20213         * m4/strpbrk.m4: Likewise.
20214         * m4/strptime.m4: Likewise.
20215         * m4/strsep.m4: Likewise.
20216         * m4/strtod.m4: Likewise.
20217         * m4/strtoimax.m4: Likewise.
20218         * m4/strtok_r.m4: Likewise.
20219         * m4/strtol.m4: Likewise.
20220         * m4/strtoll.m4: Likewise.
20221         * m4/strtoul.m4: Likewise.
20222         * m4/strtoull.m4: Likewise.
20223         * m4/strtoumax.m4: Likewise.
20224         * m4/strverscmp.m4: Likewise.
20225         * m4/threadlib.m4: Likewise.
20226         * m4/timegm.m4: Likewise.
20227         * m4/tm_gmtoff.m4: Likewise.
20228         * m4/tmpdir.m4: Likewise.
20229         * m4/tmpfile.m4: Likewise.
20230         * m4/tzset.m4: Likewise.
20231         * m4/uintmax_t.m4: Likewise.
20232         * m4/unlinkdir.m4: Likewise.
20233         * m4/unlocked-io.m4: Likewise.
20234         * m4/uptime.m4: Likewise.
20235         * m4/userspec.m4: Likewise.
20236         * m4/utimbuf.m4: Likewise.
20237         * m4/utime.m4: Likewise.
20238         * m4/utimes-null.m4: Likewise.
20239         * m4/utimes.m4: Likewise.
20240         * m4/vararrays.m4: Likewise.
20241         * m4/vasnprintf.m4: Likewise.
20242         * m4/vfprintf-posix.m4: Likewise.
20243         * m4/vprintf-posix.m4: Likewise.
20244         * m4/wait-process.m4: Likewise.
20245         * m4/wchar_t.m4: Likewise.
20246         * m4/wint_t.m4: Likewise.
20247         * m4/write-any-file.m4: Likewise.
20248         * m4/yield.m4: Likewise.
20249
20250 2009-01-13  Bruno Haible  <bruno@clisp.org>
20251
20252         Avoid test-copy-file.sh failures when ACL support insufficient.
20253         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
20254         TESTS_ENVIRONMENT.
20255         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
20256         Reported by Jim Meyering.
20257
20258 2009-01-13  Bruno Haible  <bruno@clisp.org>
20259
20260         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
20261         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
20262         * modules/unistdio/u8-printf-parse (Files): Likewise.
20263         * modules/unistdio/u32-printf-parse (Files): Likewise.
20264         * modules/unistdio/ulc-printf-parse (Files): Likewise.
20265
20266 2009-01-13  Simon Josefsson  <simon@josefsson.org>
20267
20268         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
20269         and m4/inttypes_h.m4 too.
20270
20271 2009-01-12  Eric Blake  <ebb9@byu.net>
20272
20273         tests: IRIX 6.2 cc can't compile -0.0 into .data
20274         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
20275         rather than at compile-time.
20276         * tests/test-floorl.c (minus_zero): Likewise.
20277         * tests/test-frexpl.c (minus_zero): Likewise.
20278         * tests/test-isnan.c (minus_zerol): Likewise.
20279         * tests/test-isnanl.h (minus_zero): Likewise.
20280         * tests/test-ldexpl.c (minus_zero): Likewise.
20281         * tests/test-roundl.c (minus_zero): Likewise.
20282         * tests/test-signbit.c (minus_zerol): Likewise.
20283         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20284         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20285         * tests/test-truncl.c (minus_zero): Likewise.
20286         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20287         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20288         Reported by Tom G. Christensen and Nelson H. F. Beebe.
20289
20290 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
20291
20292         regex: fix glibc bug 9697
20293         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
20294         handling.
20295
20296 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
20297
20298         regex: fix glibc bug 697
20299         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
20300         being NULL also if there are no backreferences.
20301
20302 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
20303
20304         regex: merge glibc changes
20305         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
20306         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
20307         re_string_skip_chars, re_string_reconstruct): Likewise.
20308         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
20309
20310 2009-01-07  Jim Meyering  <meyering@redhat.com>
20311
20312         poll: filter through cppi
20313         * lib/poll.c: Indent cpp directives to reflect nesting.
20314
20315 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
20316
20317         poll: don't return uninitialized
20318         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
20319
20320 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
20321
20322         avoid compile failure on AIX 6.1
20323         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
20324         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
20325
20326 2009-01-04  Jim Meyering  <meyering@redhat.com>
20327
20328         remove duplicate inclusion of <stdio.h>
20329         * tests/test-fprintf-posix.c: Likewise.
20330         * tests/test-printf-posix.c: Likewise.
20331         * tests/test-snprintf-posix.c: Likewise.
20332         * tests/test-sprintf-posix.c: Likewise.
20333         * tests/test-vasprintf-posix.c: Likewise.
20334         * tests/test-vfprintf-posix.c: Likewise.
20335         * tests/test-vprintf-posix.c: Likewise.
20336         * tests/test-vsnprintf-posix.c: Likewise.
20337         * tests/test-vsprintf-posix.c: Likewise.
20338
20339 2009-01-03  Jim Meyering  <meyering@redhat.com>
20340
20341         gnulib-tool: fix sed-based filtering
20342         * gnulib-tool (func_filter_filelist): Remove extra backslash
20343         in sed_fff_filter definition.
20344
20345 2009-01-02  Jim Meyering  <meyering@redhat.com>
20346
20347         strftime: avoid compilation failure on Solaris 2.6
20348         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
20349         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
20350         Don't #define mbrlen or mbsinit, since now they're guaranteed to
20351         be available.  Reported by Tom G. Christensen.  Details in
20352         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
20353
20354 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20355             Bruno Haible  <bruno@clisp.org>
20356
20357         Speed up gnulib-tool by doing more string processing through shell
20358         built-ins.
20359         * gnulib-tool (fast_func_append): New variable.
20360         (func_remove_prefix, func_remove_suffix): New functions.
20361         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
20362         (func_filter_filelist): New function.
20363         (func_get_dependencies): Use func_remove_suffix instead of sed.
20364         (func_get_automake_snippet): Use func_filter_filelist instead of a
20365         subshell and sed invocation.
20366
20367 2009-01-01  Bruno Haible  <bruno@clisp.org>
20368
20369         Fix a security bug.
20370         * gnulib-tool (func_import, import, update): Don't allow the characters
20371         '"', '$', '`', '\' in macro arguments that become part of commands that
20372         are evaluated.
20373
20374 2009-01-01  Bruno Haible  <bruno@clisp.org>
20375
20376         * gnulib-tool (func_reset_sigpipe): Add more comments.
20377
20378 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20379
20380         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
20381         func_emit_tests_Makefile_am, func_import): Abort loops early if we
20382         already know the answer.
20383
20384 2009-01-01  Jim Meyering  <meyering@redhat.com>
20385
20386         * lib/version-etc.c (version_etc_va): Update copyright year.
20387
20388 2008-12-30  Bruno Haible  <bruno@clisp.org>
20389
20390         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
20391         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
20392         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
20393
20394 2008-12-29  Eric Blake  <ebb9@byu.net>
20395
20396         multiarch: avoid autoconf AC_REQUIRE bug
20397         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
20398         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
20399         2.63 and older.
20400         Reported by Bruno Haible, and analyzed in
20401         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
20402
20403 2008-12-29  Bruno Haible  <bruno@clisp.org>
20404
20405         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
20406         files in subdirectories correctly.
20407         Reported by Ralf Wildenhues.
20408
20409 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20410
20411         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
20412         rather than 'join FILE -', for Solaris join.
20413
20414 2008-12-29  Bruno Haible  <bruno@clisp.org>
20415
20416         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
20417         quoting.
20418         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20419         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
20420         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
20421         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
20422         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20423         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20424         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20425         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20426         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20427         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20428         * m4/nls.m4 (AM_NLS): Likewise.
20429         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
20430         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20431         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20432         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20433         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20434         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20435         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
20436         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20437         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20438         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20439         * m4/xsize.m4 (gl_XSIZE): Likewise.
20440         Suggested by Jim Meyering.
20441
20442 2008-11-17  Bruce Korb  <bkorb@gnu.org>
20443
20444         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
20445         * lib/parse-duration.c: use a switch instead of cascading if's.
20446
20447 2008-12-29  Eric Blake  <ebb9@byu.net>
20448
20449         wchar.h: supply WEOF on Irix 5.3
20450         * lib/wchar.in.h (wint_t): Also supply WEOF.
20451         * lib/wctype.in.h (wint_t): Likewise.
20452         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
20453         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
20454         Reported by Tom G. Christensen.
20455
20456 2008-12-26  Bruno Haible  <bruno@clisp.org>
20457
20458         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
20459         i486, i586, i686.
20460
20461 2008-12-26  Bruno Haible  <bruno@clisp.org>
20462
20463         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
20464
20465 2008-12-26  Bruno Haible  <bruno@clisp.org>
20466
20467         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
20468         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
20469         not __STDC_CONSTANT_MACROS.
20470         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
20471
20472 2008-12-25  Bruno Haible  <bruno@clisp.org>
20473
20474         Add support for universal builds to vasnprintf.
20475         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
20476         universal builds, guess no.
20477         * modules/vasnprintf-posix (Depends-on): Add multiarch.
20478         * modules/vasprintf-posix (Depends-on): Likewise.
20479         * modules/fprintf-posix (Depends-on): Likewise.
20480         * modules/vfprintf-posix (Depends-on): Likewise.
20481         * modules/snprintf-posix (Depends-on): Likewise.
20482         * modules/vsnprintf-posix (Depends-on): Likewise.
20483         * modules/sprintf-posix (Depends-on): Likewise.
20484         * modules/vsprintf-posix (Depends-on): Likewise.
20485         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20486         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20487         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20488         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20489         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20490         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20491         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20492
20493         Add support for universal builds to <inttypes.h>.
20494         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
20495         _SCNu64_PREFIX): In Apple
20496         universal builds, define directly, using _LP64.
20497         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
20498         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
20499         * modules/inttypes (Depends-on): Add multiarch.
20500         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
20501
20502         Add support for universal builds to <stdint.h>.
20503         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
20504         universal builds, define directly, using _LP64.
20505         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
20506         Apple universal builds, don't test for the size and suffix of ptrdiff_t
20507         and size_t.
20508         * modules/stdint (Depends-on): Add multiarch.
20509         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
20510
20511         New module 'multiarch'.
20512         * modules/multiarch: New file.
20513         * m4/multiarch.m4: New file.
20514
20515 2008-12-25  Bruno Haible  <bruno@clisp.org>
20516
20517         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
20518
20519 2008-12-25  Bruno Haible  <bruno@clisp.org>
20520
20521         * modules/btowc (License): Relicense under LGPLv2+.
20522         * modules/mbsinit (License): Likewise.
20523         * modules/mbrtowc (License): Likewise.
20524         * modules/wcrtomb (License): Likewise.
20525         * modules/streq (License): Likewise.
20526         Reported by David Lutterkort <lutter@redhat.com>.
20527
20528 2008-12-23  Bruno Haible  <bruno@clisp.org>
20529
20530         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
20531
20532 2008-12-23  Bruno Haible  <bruno@clisp.org>
20533
20534         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
20535         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
20536         GETADDRINFO_LIB, not in LIBS.
20537         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
20538         * modules/canon-host (Link): Likewise.
20539         * NEWS: Mention the change.
20540         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
20541         GETADDRINFO_LIB.
20542
20543 2008-12-22  Bruno Haible  <bruno@clisp.org>
20544
20545         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
20546         * doc/posix-functions/iswalpha_l.texi: Likewise.
20547         * doc/posix-functions/iswblank_l.texi: Likewise.
20548         * doc/posix-functions/iswcntrl_l.texi: Likewise.
20549         * doc/posix-functions/iswctype_l.texi: Likewise.
20550         * doc/posix-functions/iswdigit_l.texi: Likewise.
20551         * doc/posix-functions/iswgraph_l.texi: Likewise.
20552         * doc/posix-functions/iswlower_l.texi: Likewise.
20553         * doc/posix-functions/iswprint_l.texi: Likewise.
20554         * doc/posix-functions/iswpunct_l.texi: Likewise.
20555         * doc/posix-functions/iswspace_l.texi: Likewise.
20556         * doc/posix-functions/iswupper_l.texi: Likewise.
20557         * doc/posix-functions/iswxdigit_l.texi: Likewise.
20558         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
20559         * doc/posix-functions/open_wmemstream.texi: Likewise.
20560         * doc/posix-functions/swscanf.texi: Likewise.
20561         * doc/posix-functions/towctrans_l.texi: Likewise.
20562         * doc/posix-functions/towlower.texi: Likewise.
20563         * doc/posix-functions/towlower_l.texi: Likewise.
20564         * doc/posix-functions/towupper.texi: Likewise.
20565         * doc/posix-functions/towupper_l.texi: Likewise.
20566         * doc/posix-functions/vfwprintf.texi: Likewise.
20567         * doc/posix-functions/vfwscanf.texi: Likewise.
20568         * doc/posix-functions/vswscanf.texi: Likewise.
20569         * doc/posix-functions/vwprintf.texi: Likewise.
20570         * doc/posix-functions/vwscanf.texi: Likewise.
20571         * doc/posix-functions/wcpcpy.texi: Likewise.
20572         * doc/posix-functions/wcpncpy.texi: Likewise.
20573         * doc/posix-functions/wcscasecmp.texi: Likewise.
20574         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
20575         * doc/posix-functions/wcscoll_l.texi: Likewise.
20576         * doc/posix-functions/wcsdup.texi: Likewise.
20577         * doc/posix-functions/wcsncasecmp.texi: Likewise.
20578         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
20579         * doc/posix-functions/wcsnlen.texi: Likewise.
20580         * doc/posix-functions/wcsnrtombs.texi: Likewise.
20581         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
20582         * doc/posix-functions/wctrans_l.texi: Likewise.
20583         * doc/posix-functions/wctype_l.texi: Likewise.
20584         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
20585         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
20586         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
20587         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
20588         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
20589         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
20590         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
20591         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
20592         * doc/glibc-functions/wcschrnul.texi: Likewise.
20593         * doc/glibc-functions/wcsftime_l.texi: Likewise.
20594         * doc/glibc-functions/wcstod_l.texi: Likewise.
20595         * doc/glibc-functions/wcstof_l.texi: Likewise.
20596         * doc/glibc-functions/wcstol_l.texi: Likewise.
20597         * doc/glibc-functions/wcstold_l.texi: Likewise.
20598         * doc/glibc-functions/wcstoll_l.texi: Likewise.
20599         * doc/glibc-functions/wcstoq.texi: Likewise.
20600         * doc/glibc-functions/wcstoul_l.texi: Likewise.
20601         * doc/glibc-functions/wcstoull_l.texi: Likewise.
20602         * doc/glibc-functions/wcstouq.texi: Likewise.
20603         * doc/glibc-functions/wmempcpy.texi: Likewise.
20604
20605 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
20606             Eric Blake  <ebb9@byu.net>
20607             Paolo Bonzini  <bonzini@gnu.org>
20608             Bruno Haible  <bruno@clisp.org>
20609
20610         Make c-stack work on Haiku.
20611         * lib/c-stack.c (SA_ONSTACK): Define fallback.
20612         (c_stack_action): Use SA_ONSTACK flag.
20613
20614 2008-12-22  Bruno Haible  <bruno@clisp.org>
20615
20616         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
20617
20618 2008-12-22  Bruno Haible  <bruno@clisp.org>
20619
20620         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
20621         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
20622         being overridden.
20623         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
20624         New macros.
20625         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
20626         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
20627         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
20628         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
20629
20630 2008-12-22  Bruno Haible  <bruno@clisp.org>
20631
20632         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
20633         from test code.
20634
20635 2008-12-22  Eric Blake  <ebb9@byu.net>
20636
20637         Avoid gcc warnings on cygwin.
20638         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
20639         Avoid unused variable.
20640         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
20641         Likewise.
20642
20643 2008-12-22  Bruno Haible  <bruno@clisp.org>
20644
20645         Remove HAVE_MBRTOWC conditionals.
20646         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
20647         (mbscasecmp): Assume mbrtowc function.
20648         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
20649         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
20650         * lib/mbschr.c: Include mbuiter.h unconditionally.
20651         (mbschr): Assume mbrtowc function.
20652         * lib/mbscspn.c: Include mbuiter.h unconditionally.
20653         (mbscspn): Assume mbrtowc function.
20654         * lib/mbslen.c: Include mbuiter.h unconditionally.
20655         (mbslen): Assume mbrtowc function.
20656         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
20657         (mbsncasecmp): Assume mbrtowc function.
20658         * lib/mbsnlen.c: Include mbiter.h unconditionally.
20659         (mbsnlen): Assume mbrtowc function.
20660         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
20661         (mbspbrk): Assume mbrtowc function.
20662         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
20663         (mbspcasecmp): Assume mbrtowc function.
20664         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
20665         (mbsrchr): Assume mbrtowc function.
20666         * lib/mbssep.c: Include mbuiter.h unconditionally.
20667         (mbssep): Assume mbrtowc function.
20668         * lib/mbsspn.c: Include mbuiter.h unconditionally.
20669         (mbsspn): Assume mbrtowc function.
20670         * lib/mbsstr.c: Include mbuiter.h unconditionally.
20671         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
20672         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
20673         (mbstok_r): Assume mbrtowc function.
20674         * lib/propername.c: Include mbuiter.h unconditionally.
20675         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
20676         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
20677         (trim2): Assume mbrtowc function.
20678         * lib/mbswidth.c (mbsinit): Remove fallback definition.
20679         (mbsnwidth): Assume mbrtowc function.
20680         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
20681         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
20682         fallback definitions.
20683         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
20684
20685 2008-12-22  Bruno Haible  <bruno@clisp.org>
20686
20687         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
20688
20689 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
20690
20691         * modules/regex: Request emulations for the mb*/wc* functions we need.
20692         * m4/regex.m4: Don't look for those functions here.
20693         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
20694
20695 2008-12-22  Bruno Haible  <bruno@clisp.org>
20696
20697         * modules/fnmatch (Depends-on): Remove duplicated dependency.
20698
20699 2008-12-21  Bruno Haible  <bruno@clisp.org>
20700
20701         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
20702         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
20703         (Include): Remove conditionalization.
20704         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
20705         (Include): Remove conditionalization.
20706         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
20707         (Include): Remove conditionalization.
20708         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
20709         * m4/mbfile.m4 (gl_MBFILE): Likewise.
20710         * NEWS: Mention the change.
20711         Reported by Alan Hourihane <alanh@fairlite.co.uk>
20712         via Sergey Poznyakoff <gray@gnu.org.ua>.
20713
20714 2008-12-21  Bruno Haible  <bruno@clisp.org>
20715
20716         * MODULES.html.sh (Extended multibyte and wide character utilities
20717         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
20718         wcrtomb, wcsrtombs.
20719         (Support for systems lacking POSIX:2008): Add accept, bind, close,
20720         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
20721         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
20722         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
20723
20724 2008-12-21  Bruno Haible  <bruno@clisp.org>
20725
20726         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
20727
20728 2008-12-21  Bruno Haible  <bruno@clisp.org>
20729
20730         * modules/wcsnrtombs-tests: New file.
20731         * tests/test-wcsnrtombs1.sh: New file.
20732         * tests/test-wcsnrtombs2.sh: New file.
20733         * tests/test-wcsnrtombs3.sh: New file.
20734         * tests/test-wcsnrtombs4.sh: New file.
20735         * tests/test-wcsnrtombs.c: New file.
20736
20737         New module 'wcsnrtombs'.
20738         * lib/wchar.in.h (wcsnrtombs): New declaration.
20739         * lib/wcsnrtombs.c: New file.
20740         * lib/wcsrtombs-state.c: New file.
20741         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
20742         (internal_state): Remove variable.
20743         * m4/wcsnrtombs.m4: New file.
20744         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
20745         compilation units.
20746         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
20747         HAVE_WCSNRTOMBS.
20748         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
20749         HAVE_WCSNRTOMBS.
20750         * modules/wcsnrtombs: New file.
20751         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
20752         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
20753
20754 2008-12-21  Bruno Haible  <bruno@clisp.org>
20755
20756         * modules/wcsrtombs-tests: New file.
20757         * tests/test-wcsrtombs1.sh: New file.
20758         * tests/test-wcsrtombs2.sh: New file.
20759         * tests/test-wcsrtombs3.sh: New file.
20760         * tests/test-wcsrtombs4.sh: New file.
20761         * tests/test-wcsrtombs.c: New file.
20762
20763         New module 'wcsrtombs'.
20764         * lib/wchar.in.h (wcsrtombs): New declaration.
20765         * lib/wcsrtombs.c: New file.
20766         * m4/wcsrtombs.m4: New file.
20767         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
20768         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
20769         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
20770         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
20771         * modules/wcsrtombs: New file.
20772         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
20773         bugs.
20774
20775 2008-12-21  Bruno Haible  <bruno@clisp.org>
20776
20777         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
20778         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
20779         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
20780         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
20781         if not correct.
20782         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
20783         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
20784         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
20785         m4/locale-zh.m4, m4/codeset.m4.
20786         * doc/posix-functions/wcrtomb.texi: Document the bug.
20787
20788 2008-12-21  Bruno Haible  <bruno@clisp.org>
20789
20790         Work around a btowc() bug on IRIX 6.5.
20791         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
20792         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
20793         REPLACE_WTOBC if not.
20794         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
20795         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
20796         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
20797
20798 2008-12-21  Bruno Haible  <bruno@clisp.org>
20799
20800         * modules/wcrtomb-tests: New file.
20801         * tests/test-wcrtomb.sh: New file.
20802         * tests/test-wcrtomb.c: New file.
20803
20804         New module 'wcrtomb'.
20805         * lib/wchar.in.h (wcrtomb): New declaration.
20806         * lib/wcrtomb.c: New file.
20807         * m4/wcrtomb.m4: New file.
20808         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
20809         HAVE_WCRTOMB.
20810         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
20811         HAVE_WCRTOMB.
20812         * modules/wcrtomb: New file.
20813         * doc/posix-functions/wcrtomb.texi: Mention the new module.
20814
20815 2008-12-21  Bruno Haible  <bruno@clisp.org>
20816
20817         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
20818         * modules/mbsrtowcs (Files): Likewise.
20819         * modules/wctob (Files): Likewise.
20820         * modules/c-strcase-tests (Files): Likewise.
20821         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
20822         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
20823         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
20824         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
20825         * modules/vasnprintf-posix-tests (Files): Likewise.
20826
20827 2008-12-21  William Pursell  <bill.pursell@gmail.com>
20828
20829         gitlog-to-changelog: pass all command-line arguments to git-log
20830         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
20831         it is sometimes convenient to filter the commits in various ways.
20832         gitlog-to-changelog only allows --since to specify a start date,
20833         but git-log itself supports many other filtering mechanisms.
20834         At the moment, I want to filter by branch name.  Rather than
20835         adding a --branch option to gitlog-to-changelog, it seems more
20836         flexible to simply pass all options directly to git-log and let
20837         git do the work.  Notice that this effectively makes --since a
20838         redundant option for gitlog-to-changelog, but removing it would
20839         require current usage to change since calls would then require
20840         an additional '--'.
20841
20842 2008-12-21  Bruno Haible  <bruno@clisp.org>
20843
20844         * modules/mbsnrtowcs-tests: New file.
20845         * tests/test-mbsnrtowcs1.sh: New file.
20846         * tests/test-mbsnrtowcs2.sh: New file.
20847         * tests/test-mbsnrtowcs3.sh: New file.
20848         * tests/test-mbsnrtowcs4.sh: New file.
20849         * tests/test-mbsnrtowcs.c: New file.
20850
20851         New module 'mbsnrtowcs'.
20852         * lib/wchar.in.h (mbsnrtowcs): New declaration.
20853         * lib/mbsnrtowcs.c: New file.
20854         * lib/mbsrtowcs-state.c: New file.
20855         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
20856         (internal_state): Remove variable.
20857         * m4/mbsnrtowcs.m4: New file.
20858         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
20859         compilation units.
20860         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
20861         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
20862         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
20863         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
20864         * modules/mbsnrtowcs: New file.
20865         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
20866         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
20867         portability problem.
20868
20869 2008-12-21  Bruno Haible  <bruno@clisp.org>
20870
20871         Work around mbsrtowcs bug.
20872         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
20873         (gl_FUNC_MBSRTOWCS): Invoke it.
20874         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
20875         m4/locale-zh.m4.
20876         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
20877
20878 2008-12-21  Bruno Haible  <bruno@clisp.org>
20879
20880         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
20881
20882 2008-12-21  Bruno Haible  <bruno@clisp.org>
20883
20884         Update doc for AIX.
20885         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
20886         16-bit wchar_t type.
20887         * doc/posix-functions/btowc.texi: Likewise.
20888         * doc/posix-functions/fgetwc.texi: Likewise.
20889         * doc/posix-functions/fgetws.texi: Likewise.
20890         * doc/posix-functions/fputwc.texi: Likewise.
20891         * doc/posix-functions/fputws.texi: Likewise.
20892         * doc/posix-functions/fwide.texi: Likewise.
20893         * doc/posix-functions/fwprintf.texi: Likewise.
20894         * doc/posix-functions/fwscanf.texi: Likewise.
20895         * doc/posix-functions/getwchar.texi: Likewise.
20896         * doc/posix-functions/getwc.texi: Likewise.
20897         * doc/posix-functions/iswalnum.texi: Likewise.
20898         * doc/posix-functions/iswalpha.texi: Likewise.
20899         * doc/posix-functions/iswblank.texi: Likewise.
20900         * doc/posix-functions/iswcntrl.texi: Likewise.
20901         * doc/posix-functions/iswctype.texi: Likewise.
20902         * doc/posix-functions/iswdigit.texi: Likewise.
20903         * doc/posix-functions/iswgraph.texi: Likewise.
20904         * doc/posix-functions/iswlower.texi: Likewise.
20905         * doc/posix-functions/iswprint.texi: Likewise.
20906         * doc/posix-functions/iswpunct.texi: Likewise.
20907         * doc/posix-functions/iswspace.texi: Likewise.
20908         * doc/posix-functions/iswupper.texi: Likewise.
20909         * doc/posix-functions/iswxdigit.texi: Likewise.
20910         * doc/posix-functions/mbrtowc.texi: Likewise.
20911         * doc/posix-functions/mbsrtowcs.texi: Likewise.
20912         * doc/posix-functions/mbstowcs.texi: Likewise.
20913         * doc/posix-functions/mbtowc.texi: Likewise.
20914         * doc/posix-functions/putwchar.texi: Likewise.
20915         * doc/posix-functions/putwc.texi: Likewise.
20916         * doc/posix-functions/swprintf.texi: Likewise.
20917         * doc/posix-functions/tolower.texi: Likewise.
20918         * doc/posix-functions/toupper.texi: Likewise.
20919         * doc/posix-functions/towctrans.texi: Likewise.
20920         * doc/posix-functions/ungetwc.texi: Likewise.
20921         * doc/posix-functions/vswprintf.texi: Likewise.
20922         * doc/posix-functions/wcrtomb.texi: Likewise.
20923         * doc/posix-functions/wcscat.texi: Likewise.
20924         * doc/posix-functions/wcschr.texi: Likewise.
20925         * doc/posix-functions/wcscmp.texi: Likewise.
20926         * doc/posix-functions/wcscoll.texi: Likewise.
20927         * doc/posix-functions/wcscpy.texi: Likewise.
20928         * doc/posix-functions/wcscspn.texi: Likewise.
20929         * doc/posix-functions/wcsftime.texi: Likewise.
20930         * doc/posix-functions/wcslen.texi: Likewise.
20931         * doc/posix-functions/wcsncat.texi: Likewise.
20932         * doc/posix-functions/wcsncmp.texi: Likewise.
20933         * doc/posix-functions/wcsncpy.texi: Likewise.
20934         * doc/posix-functions/wcspbrk.texi: Likewise.
20935         * doc/posix-functions/wcsrchr.texi: Likewise.
20936         * doc/posix-functions/wcsrtombs.texi: Likewise.
20937         * doc/posix-functions/wcsspn.texi: Likewise.
20938         * doc/posix-functions/wcsstr.texi: Likewise.
20939         * doc/posix-functions/wcstod.texi: Likewise.
20940         * doc/posix-functions/wcstof.texi: Likewise.
20941         * doc/posix-functions/wcstoimax.texi: Likewise.
20942         * doc/posix-functions/wcstok.texi: Likewise.
20943         * doc/posix-functions/wcstold.texi: Likewise.
20944         * doc/posix-functions/wcstoll.texi: Likewise.
20945         * doc/posix-functions/wcstol.texi: Likewise.
20946         * doc/posix-functions/wcstombs.texi: Likewise.
20947         * doc/posix-functions/wcstoull.texi: Likewise.
20948         * doc/posix-functions/wcstoul.texi: Likewise.
20949         * doc/posix-functions/wcstoumax.texi: Likewise.
20950         * doc/posix-functions/wcswidth.texi: Likewise.
20951         * doc/posix-functions/wcsxfrm.texi: Likewise.
20952         * doc/posix-functions/wctob.texi: Likewise.
20953         * doc/posix-functions/wctomb.texi: Likewise.
20954         * doc/posix-functions/wctrans.texi: Likewise.
20955         * doc/posix-functions/wctype.texi: Likewise.
20956         * doc/posix-functions/wcwidth.texi: Likewise.
20957         * doc/posix-functions/wmemchr.texi: Likewise.
20958         * doc/posix-functions/wmemcmp.texi: Likewise.
20959         * doc/posix-functions/wmemcpy.texi: Likewise.
20960         * doc/posix-functions/wmemmove.texi: Likewise.
20961         * doc/posix-functions/wmemset.texi: Likewise.
20962         * doc/posix-functions/wprintf.texi: Likewise.
20963         * doc/posix-functions/wscanf.texi: Likewise.
20964
20965 2008-12-21  Bruno Haible  <bruno@clisp.org>
20966
20967         Update doc for HP-UX 11.11.
20968         * doc/posix-functions/btowc.texi: Clarify that the function is missing
20969         in HP-UX version 11.00, not in all versions of HP-UX 11.
20970         * doc/posix-functions/fwide.texi: Likewise.
20971         * doc/posix-functions/fwprintf.texi: Likewise.
20972         * doc/posix-functions/fwscanf.texi: Likewise.
20973         * doc/posix-functions/inet_ntop.texi: Likewise.
20974         * doc/posix-functions/inet_pton.texi: Likewise.
20975         * doc/posix-functions/mbrlen.texi: Likewise.
20976         * doc/posix-functions/mbrtowc.texi: Likewise.
20977         * doc/posix-functions/mbsinit.texi: Likewise.
20978         * doc/posix-functions/mbsrtowcs.texi: Likewise.
20979         * doc/posix-functions/swprintf.texi: Likewise.
20980         * doc/posix-functions/swscanf.texi: Likewise.
20981         * doc/posix-functions/towctrans.texi: Likewise.
20982         * doc/posix-functions/vfwprintf.texi: Likewise.
20983         * doc/posix-functions/vswprintf.texi: Likewise.
20984         * doc/posix-functions/vwprintf.texi: Likewise.
20985         * doc/posix-functions/wcrtomb.texi: Likewise.
20986         * doc/posix-functions/wcsrtombs.texi: Likewise.
20987         * doc/posix-functions/wcsstr.texi: Likewise.
20988         * doc/posix-functions/wctob.texi: Likewise.
20989         * doc/posix-functions/wctrans.texi: Likewise.
20990         * doc/posix-functions/wmemchr.texi: Likewise.
20991         * doc/posix-functions/wmemcmp.texi: Likewise.
20992         * doc/posix-functions/wmemcpy.texi: Likewise.
20993         * doc/posix-functions/wmemmove.texi: Likewise.
20994         * doc/posix-functions/wmemset.texi: Likewise.
20995         * doc/posix-functions/wprintf.texi: Likewise.
20996         * doc/posix-functions/wscanf.texi: Likewise.
20997
20998 2008-12-21  Bruno Haible  <bruno@clisp.org>
20999
21000         Work around a portability problem.
21001         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
21002         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
21003
21004 2008-12-20  Bruno Haible  <bruno@clisp.org>
21005
21006         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
21007         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
21008         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
21009         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
21010         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
21011
21012         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
21013         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
21014         set.
21015         (GNULIB_defined_mbstate_t): New macro.
21016         (mbsinit): Redefine if REPLACE_MBSINIT is set.
21017         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
21018         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
21019         reuses the system's mbrtowc function but works around the bugs.
21020         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
21021         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
21022         macros.
21023         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
21024         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
21025         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
21026         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
21027         REPLACE_MBSINIT if mbsinit needs to be overridden.
21028         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
21029         REPLACE_MBSINIT, REPLACE_MBRTOWC.
21030         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
21031         REPLACE_MBSINIT, REPLACE_MBRTOWC.
21032         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21033         m4/locale-zh.m4.
21034         (Depends): Add mbsinit.
21035         * modules/mbsinit (Depends): Add mbrtowc.
21036         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
21037
21038 2008-12-20  Bruno Haible  <bruno@clisp.org>
21039
21040         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
21041         so that there are no conversion errors on AIX.
21042         * tests/test-mbsrtowcs.c (main): LIkewise.
21043
21044 2008-12-20  Bruno Haible  <bruno@clisp.org>
21045
21046         Work around wctob bug on Solaris <= 9.
21047         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
21048         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
21049         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
21050         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
21051         * modules/wctob (Files): Add m4/locale-fr.m4.
21052         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
21053
21054 2008-12-20  Bruno Haible  <bruno@clisp.org>
21055
21056         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
21057         /dev/null.
21058         * tests/test-select-in.sh: Likewise.
21059         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21060
21061 2008-12-20  Bruno Haible  <bruno@clisp.org>
21062
21063         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
21064         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
21065         Cygwin 1.5.x.
21066
21067 2008-12-20  Bruno Haible  <bruno@clisp.org>
21068
21069         Ensure mbstate_t is defined on HP-UX 11.11.
21070         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
21071         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
21072         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
21073         AC_USE_SYSTEM_EXTENSIONS.
21074         * modules/fnmatch (Depends-on): Add extensions.
21075         * modules/mbrlen (Depends-on): Likewise.
21076         * modules/mbrtowc (Depends-on): Likewise.
21077         * modules/mbsinit (Depends-on): Likewise.
21078         * modules/mbsrtowcs (Depends-on): Likewise.
21079         * modules/mbswidth (Depends-on): Likewise.
21080         * modules/quotearg (Depends-on): Likewise.
21081         * modules/strftime (Depends-on): Likewise.
21082
21083 2008-12-20  Bruno Haible  <bruno@clisp.org>
21084
21085         Ensure wctob is declared on IRIX 6.5.
21086         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
21087         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
21088         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
21089         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
21090         of HAVE_WCTOB.
21091         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
21092         HAVE_WCTOB.
21093         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
21094
21095 2008-12-19  Bruno Haible  <bruno@clisp.org>
21096
21097         * modules/mbsrtowcs-tests: New file.
21098         * tests/test-mbsrtowcs1.sh: New file.
21099         * tests/test-mbsrtowcs2.sh: New file.
21100         * tests/test-mbsrtowcs3.sh: New file.
21101         * tests/test-mbsrtowcs4.sh: New file.
21102         * tests/test-mbsrtowcs.c: New file.
21103
21104         New module 'mbsrtowcs'.
21105         * lib/wchar.in.h (mbsrtowcs): New declaration.
21106         * lib/mbsrtowcs.c: New file.
21107         * m4/mbsrtowcs.m4: New file.
21108         * modules/mbsrtowcs: New file.
21109         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
21110         HAVE_MBSRTOWCS.
21111         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
21112         HAVE_MBSRTOWCS.
21113         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
21114
21115 2008-12-19  Bruno Haible  <bruno@clisp.org>
21116
21117         New module 'mbrlen'.
21118         * lib/wchar.in.h (mbrlen): New declaration.
21119         * lib/mbrlen.c: New file.
21120         * m4/mbrlen.m4: New file.
21121         * modules/mbrlen: New file.
21122         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
21123         HAVE_MBRLEN.
21124         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
21125         HAVE_MBRLEN.
21126         * doc/posix-functions/mbrlen.texi: Document the new module.
21127
21128 2008-12-19  Bruno Haible  <bruno@clisp.org>
21129
21130         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
21131         * modules/mbrtowc (Depends-on): Add verify.
21132         Suggested by Paul Eggert.
21133
21134 2008-12-18  Bruno Haible  <bruno@clisp.org>
21135
21136         * modules/mbsinit-tests: New file.
21137         * tests/test-mbsinit.sh: New file.
21138         * tests/test-mbsinit.c: New file.
21139
21140 2008-12-18  Bruno Haible  <bruno@clisp.org>
21141
21142         * modules/mbrtowc-tests: New file.
21143         * tests/test-mbrtowc1.sh: New file.
21144         * tests/test-mbrtowc2.sh: New file.
21145         * tests/test-mbrtowc3.sh: New file.
21146         * tests/test-mbrtowc4.sh: New file.
21147         * tests/test-mbrtowc.c: New file.
21148
21149         New module 'mbrtowc'.
21150         * lib/wchar.in.h (mbstate_t): Override when the system does not have
21151         mbsinit and mbrtowc.
21152         (mbrtowc): New declaration.
21153         * lib/mbrtowc.c: New file.
21154         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
21155         * modules/mbrtowc: New file.
21156         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
21157         HAVE_MBRTOWC.
21158         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
21159         HAVE_MBRTOWC.
21160         * doc/posix-functions/mbrtowc.texi: Document the new module.
21161
21162 2008-12-18  Bruno Haible  <bruno@clisp.org>
21163
21164         New module 'wctob'.
21165         * lib/wchar.in.h (wctob): New declaration.
21166         * lib/wctob.c: New file.
21167         * m4/wctob.m4: New file.
21168         * modules/wctob: New file.
21169         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
21170         HAVE_WCTOB.
21171         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
21172         * doc/posix-functions/wctob.texi: Document the new module.
21173
21174 2008-12-18  Bruno Haible  <bruno@clisp.org>
21175
21176         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
21177         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
21178
21179 2008-12-18  Simon Josefsson  <simon@josefsson.org>
21180
21181         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
21182         G. Christensen" <tgc@jupiterrise.com>.
21183
21184         * lib/flock.c: Need to include errno.h.  Reported by "Tom
21185         G. Christensen" <tgc@jupiterrise.com>.
21186
21187         * lib/flock.c: Need to include string.h.  Reported by "Tom
21188         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
21189         <ebb9@byu.net>.
21190
21191 2008-12-18  Bruno Haible  <bruno@clisp.org>
21192
21193         * m4/locale-ja.m4: New file, from GNU gettext.
21194
21195 2008-12-17  Bruno Haible  <bruno@clisp.org>
21196
21197         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
21198         Suggested by Eric Blake.
21199
21200 2008-12-17  Bruno Haible  <bruno@clisp.org>
21201
21202         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
21203
21204 2008-12-17  Bruno Haible  <bruno@clisp.org>
21205
21206         * lib/mbsinit.c: Include verify.h. Verify an assumption.
21207         * modules/mbsinit (Depends-on): Add verify.
21208         Suggested by Paul Eggert.
21209
21210 2008-12-17  Bruno Haible  <bruno@clisp.org>
21211
21212         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
21213         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
21214         gl_FUNC_MBRTOWC.
21215         * m4/mbiter.m4 (gl_MBITER): LIkewise.
21216         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
21217         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
21218         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
21219         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
21220         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
21221         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
21222         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
21223         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
21224         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
21225         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
21226         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
21227         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
21228         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
21229         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
21230         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21231         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
21232         * modules/trim (configure.ac): Likewise.
21233
21234 2008-12-17  Bruno Haible  <bruno@clisp.org>
21235
21236         * modules/btowc-tests: New file.
21237         * tests/test-btowc1.sh: New file.
21238         * tests/test-btowc2.sh: New file.
21239         * tests/test-btowc.c: New file.
21240
21241         New module 'btowc'.
21242         * lib/wchar.in.h (btowc): New declaration.
21243         * lib/btowc.c: New file.
21244         * m4/btowc.m4: New file.
21245         * modules/btowc: New file.
21246         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
21247         HAVE_BTOWC.
21248         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
21249         * doc/posix-functions/btowc.texi: Document the new module.
21250
21251 2008-12-17  Bruno Haible  <bruno@clisp.org>
21252
21253         New module 'mbsinit'.
21254         * lib/wchar.in.h (mbsinit): New declaration.
21255         * lib/mbsinit.c: New file.
21256         * m4/mbsinit.m4: New file.
21257         * modules/mbsinit: New file.
21258         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
21259         HAVE_MBSINIT.
21260         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
21261         HAVE_MBSINIT.
21262         * doc/posix-functions/mbsinit.texi: Document the new module.
21263
21264 2008-12-16  Bruno Haible  <bruno@clisp.org>
21265
21266         * lib/unistd.in.h: Add comment.
21267         * tests/test-environ.c: Don't include <stdlib.h>.
21268
21269 2008-12-16  Bruno Haible  <bruno@clisp.org>
21270
21271         * lib/parse-duration.h (parse_duration): Document return value
21272         convention.
21273         * lib/parse-duration.c: Include specification header first. Add
21274         comments.
21275         (_): Remove macro.
21276         (parse_year_month_day, parse_hour_minute_second): Move side effects
21277         outside of strchr call.
21278         (parse_non_iso8601): Move side effects outside of isspace call.
21279         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
21280         call.
21281
21282 2008-12-16  Bruno Haible  <bruno@clisp.org>
21283
21284         * tests/test-parse-duration.sh: Produce no output when the test
21285         succeeds.
21286
21287 2008-12-16  Bruno Haible  <bruno@clisp.org>
21288
21289         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
21290         expressions.
21291
21292 2008-12-15  Bruno Haible  <bruno@clisp.org>
21293
21294         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
21295         * doc/glibc-functions/flistxattr.texi: Likewise.
21296         * doc/glibc-functions/fopencookie.texi: Likewise.
21297         * doc/glibc-functions/fremovexattr.texi: Likewise.
21298         * doc/glibc-functions/fsetxattr.texi: Likewise.
21299         * doc/glibc-functions/getxattr.texi: Likewise.
21300         * doc/glibc-functions/lgetxattr.texi: Likewise.
21301         * doc/glibc-functions/listxattr.texi: Likewise.
21302         * doc/glibc-functions/llistxattr.texi: Likewise.
21303         * doc/glibc-functions/lremovexattr.texi: Likewise.
21304         * doc/glibc-functions/lsetxattr.texi: Likewise.
21305         * doc/glibc-functions/removexattr.texi: Likewise.
21306         * doc/glibc-functions/setxattr.texi: Likewise.
21307         * doc/posix-functions/open_memstream.texi: Likewise.
21308
21309 2008-12-15  Eric Blake  <ebb9@byu.net>
21310
21311         Update doc for cygwin 1.7.
21312         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
21313         functions.
21314         * doc/posix-functions/fchmodat.texi: Likewise.
21315         * doc/posix-functions/fchownat.texi: Likewise.
21316         * doc/posix-functions/fdopendir.texi: Likewise.
21317         * doc/posix-functions/fmemopen.texi: Likewise.
21318         * doc/posix-functions/freeaddrinfo.texi: Likewise.
21319         * doc/posix-functions/fstatat.texi: Likewise.
21320         * doc/posix-functions/futimens.texi: Likewise.
21321         * doc/posix-functions/gai_strerror.texi: Likewise.
21322         * doc/posix-functions/getaddrinfo.texi: Likewise.
21323         * doc/posix-functions/getnameinfo.texi: Likewise.
21324         * doc/posix-functions/if_freenameindex.texi: Likewise.
21325         * doc/posix-functions/if_indextoname.texi: Likewise.
21326         * doc/posix-functions/if_nameindex.texi: Likewise.
21327         * doc/posix-functions/if_nametoindex.texi: Likewise.
21328         * doc/posix-functions/insque.texi: Likewise.
21329         * doc/posix-functions/linkat.texi: Likewise.
21330         * doc/posix-functions/llrint.texi: Likewise.
21331         * doc/posix-functions/llrintf.texi: Likewise.
21332         * doc/posix-functions/llrintl.texi: Likewise.
21333         * doc/posix-functions/lockf.texi: Likewise.
21334         * doc/posix-functions/lrintl.texi: Likewise.
21335         * doc/posix-functions/mkdirat.texi: Likewise.
21336         * doc/posix-functions/mkfifoat.texi: Likewise.
21337         * doc/posix-functions/mknodat.texi: Likewise.
21338         * doc/posix-functions/mq_close.texi: Likewise.
21339         * doc/posix-functions/mq_getattr.texi: Likewise.
21340         * doc/posix-functions/mq_notify.texi: Likewise.
21341         * doc/posix-functions/mq_open.texi: Likewise.
21342         * doc/posix-functions/mq_receive.texi: Likewise.
21343         * doc/posix-functions/mq_send.texi: Likewise.
21344         * doc/posix-functions/mq_setattr.texi: Likewise.
21345         * doc/posix-functions/mq_timedreceive.texi: Likewise.
21346         * doc/posix-functions/mq_timedsend.texi: Likewise.
21347         * doc/posix-functions/mq_unlink.texi: Likewise.
21348         * doc/posix-functions/open_memstream.texi: Likewise.
21349         * doc/posix-functions/openat.texi: Likewise.
21350         * doc/posix-functions/posix_fadvise.texi: Likewise.
21351         * doc/posix-functions/posix_fallocate.texi: Likewise.
21352         * doc/posix-functions/posix_madvise.texi: Likewise.
21353         * doc/posix-functions/posix_memalign.texi: Likewise.
21354         * doc/posix-functions/posix_openpt.texi: Likewise.
21355         * doc/posix-functions/readlinkat.texi: Likewise.
21356         * doc/posix-functions/remque.texi: Likewise.
21357         * doc/posix-functions/renameat.texi: Likewise.
21358         * doc/posix-functions/rintl.texi: Likewise.
21359         * doc/posix-functions/sem_unlink.texi: Likewise.
21360         * doc/posix-functions/shm_open.texi: Likewise.
21361         * doc/posix-functions/shm_unlink.texi: Likewise.
21362         * doc/posix-functions/signgam.texi: Likewise.
21363         * doc/posix-functions/sigset.texi: Likewise.
21364         * doc/posix-functions/stpcpy.texi: Likewise.
21365         * doc/posix-functions/stpncpy.texi: Likewise.
21366         * doc/posix-functions/strerror.texi: Likewise.
21367         * doc/posix-functions/strtod.texi: Likewise.
21368         * doc/posix-functions/symlinkat.texi: Likewise.
21369         * doc/posix-functions/unlinkat.texi: Likewise.
21370         * doc/posix-functions/utimensat.texi: Likewise.
21371         * doc/glibc-functions/bindresvport.texi: Likewise.
21372         * doc/glibc-functions/dn_expand.texi: Likewise.
21373         * doc/glibc-functions/exp10.texi: Likewise.
21374         * doc/glibc-functions/exp10f.texi: Likewise.
21375         * doc/glibc-functions/fgetxattr.texi: Likewise.
21376         * doc/glibc-functions/flistxattr.texi: Likewise.
21377         * doc/glibc-functions/fopencookie.texi: Likewise.
21378         * doc/glibc-functions/freeifaddrs.texi: Likewise.
21379         * doc/glibc-functions/fremovexattr.texi: Likewise.
21380         * doc/glibc-functions/fsetxattr.texi: Likewise.
21381         * doc/glibc-functions/getifaddrs.texi: Likewise.
21382         * doc/glibc-functions/getxattr.texi: Likewise.
21383         * doc/glibc-functions/lgetxattr.texi: Likewise.
21384         * doc/glibc-functions/listxattr.texi: Likewise.
21385         * doc/glibc-functions/llistxattr.texi: Likewise.
21386         * doc/glibc-functions/lremovexattr.texi: Likewise.
21387         * doc/glibc-functions/lsetxattr.texi: Likewise.
21388         * doc/glibc-functions/pow10.texi: Likewise.
21389         * doc/glibc-functions/pow10f.texi: Likewise.
21390         * doc/glibc-functions/rcmd_af.texi: Likewise.
21391         * doc/glibc-functions/removexattr.texi: Likewise.
21392         * doc/glibc-functions/res_init.texi: Likewise.
21393         * doc/glibc-functions/res_mkquery.texi: Likewise.
21394         * doc/glibc-functions/res_query.texi: Likewise.
21395         * doc/glibc-functions/res_querydomain.texi: Likewise.
21396         * doc/glibc-functions/res_send.texi: Likewise.
21397         * doc/glibc-functions/rresvport_af.texi: Likewise.
21398         * doc/glibc-functions/setxattr.texi: Likewise.
21399         * doc/glibc-functions/strcasestr.texi: Likewise.
21400
21401 2008-12-15  Bruno Haible  <bruno@clisp.org>
21402
21403         Fix compilation error on OSF/1 4.0.
21404         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
21405         <sys/time.h>, simply delegate to the system header.
21406         Reported by Daniel Richard G. <oss@teragram.com>.
21407
21408 2008-12-15  Bruno Haible  <bruno@clisp.org>
21409
21410         * doc/posix-functions/openat.texi: Mention the 'openat' module.
21411         * doc/posix-functions/fchmodat.texi: Likewise.
21412         * doc/posix-functions/fchownat.texi: Likewise.
21413         * doc/posix-functions/fdopendir.texi: Likewise.
21414         * doc/posix-functions/fstatat.texi: Likewise.
21415         * doc/posix-functions/mkdirat.texi: Likewise.
21416         * doc/posix-functions/unlinkat.texi: Likewise.
21417
21418 2008-12-14  Bruno Haible  <bruno@clisp.org>
21419
21420         Update doc for POSIX:2008.
21421         * doc/posix-functions/faccessat.texi: New file.
21422         * doc/posix-functions/fchmodat.texi: New file.
21423         * doc/posix-functions/fchownat.texi: New file.
21424         * doc/posix-functions/fdopendir.texi: New file.
21425         * doc/posix-functions/fstatat.texi: New file.
21426         * doc/posix-functions/futimens.texi: New file.
21427         * doc/posix-functions/linkat.texi: New file.
21428         * doc/posix-functions/mkdirat.texi: New file.
21429         * doc/posix-functions/mkfifoat.texi: New file.
21430         * doc/posix-functions/mknodat.texi: New file.
21431         * doc/posix-functions/open_wmemstream.texi: New file.
21432         * doc/posix-functions/openat.texi: New file.
21433         * doc/posix-functions/psiginfo.texi: New file.
21434         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
21435         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
21436         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
21437         * doc/posix-functions/readlinkat.texi: New file.
21438         * doc/posix-functions/renameat.texi: New file.
21439         * doc/posix-functions/strerror_l.texi: New file.
21440         * doc/posix-functions/symlinkat.texi: New file.
21441         * doc/posix-functions/unlinkat.texi: New file.
21442         * doc/posix-functions/utimensat.texi: New file.
21443         * doc/gnulib.texi (Function Substitutes): Add these subsections.
21444
21445 2008-12-14  Bruno Haible  <bruno@clisp.org>
21446
21447         Update doc for POSIX:2008.
21448         * doc/posix-functions/alphasort.texi: Renamed from
21449         doc/glibc-functions/alphasort.texi.
21450         * doc/posix-functions/dirfd.texi: Renamed from
21451         doc/glibc-functions/dirfd.texi.
21452         * doc/posix-functions/dprintf.texi: Renamed from
21453         doc/glibc-functions/dprintf.texi.
21454         * doc/posix-functions/duplocale.texi: Renamed from
21455         doc/glibc-functions/duplocale.texi.
21456         * doc/posix-functions/fexecve.texi: Renamed from
21457         doc/glibc-functions/fexecve.texi.
21458         * doc/posix-functions/fmemopen.texi: Renamed from
21459         doc/glibc-functions/fmemopen.texi.
21460         * doc/posix-functions/freelocale.texi: Renamed from
21461         doc/glibc-functions/freelocale.texi.
21462         * doc/posix-functions/getdate_err.texi: Renamed from
21463         doc/glibc-functions/getdate_err.texi.
21464         * doc/posix-functions/isalnum_l.texi: Renamed from
21465         doc/glibc-functions/isalnum_l.texi.
21466         * doc/posix-functions/isalpha_l.texi: Renamed from
21467         doc/glibc-functions/isalpha_l.texi.
21468         * doc/posix-functions/isblank_l.texi: Renamed from
21469         doc/glibc-functions/isblank_l.texi.
21470         * doc/posix-functions/iscntrl_l.texi: Renamed from
21471         doc/glibc-functions/iscntrl_l.texi.
21472         * doc/posix-functions/isdigit_l.texi: Renamed from
21473         doc/glibc-functions/isdigit_l.texi.
21474         * doc/posix-functions/isgraph_l.texi: Renamed from
21475         doc/glibc-functions/isgraph_l.texi.
21476         * doc/posix-functions/islower_l.texi: Renamed from
21477         doc/glibc-functions/islower_l.texi.
21478         * doc/posix-functions/isprint_l.texi: Renamed from
21479         doc/glibc-functions/isprint_l.texi.
21480         * doc/posix-functions/ispunct_l.texi: Renamed from
21481         doc/glibc-functions/ispunct_l.texi.
21482         * doc/posix-functions/isspace_l.texi: Renamed from
21483         doc/glibc-functions/isspace_l.texi.
21484         * doc/posix-functions/isupper_l.texi: Renamed from
21485         doc/glibc-functions/isupper_l.texi.
21486         * doc/posix-functions/iswalnum_l.texi: Renamed from
21487         doc/glibc-functions/iswalnum_l.texi.
21488         * doc/posix-functions/iswalpha_l.texi: Renamed from
21489         doc/glibc-functions/iswalpha_l.texi.
21490         * doc/posix-functions/iswblank_l.texi: Renamed from
21491         doc/glibc-functions/iswblank_l.texi.
21492         * doc/posix-functions/iswcntrl_l.texi: Renamed from
21493         doc/glibc-functions/iswcntrl_l.texi.
21494         * doc/posix-functions/iswctype_l.texi: Renamed from
21495         doc/glibc-functions/iswctype_l.texi.
21496         * doc/posix-functions/iswdigit_l.texi: Renamed from
21497         doc/glibc-functions/iswdigit_l.texi.
21498         * doc/posix-functions/iswgraph_l.texi: Renamed from
21499         doc/glibc-functions/iswgraph_l.texi.
21500         * doc/posix-functions/iswlower_l.texi: Renamed from
21501         doc/glibc-functions/iswlower_l.texi.
21502         * doc/posix-functions/iswprint_l.texi: Renamed from
21503         doc/glibc-functions/iswprint_l.texi.
21504         * doc/posix-functions/iswpunct_l.texi: Renamed from
21505         doc/glibc-functions/iswpunct_l.texi.
21506         * doc/posix-functions/iswspace_l.texi: Renamed from
21507         doc/glibc-functions/iswspace_l.texi.
21508         * doc/posix-functions/iswupper_l.texi: Renamed from
21509         doc/glibc-functions/iswupper_l.texi.
21510         * doc/posix-functions/iswxdigit_l.texi: Renamed from
21511         doc/glibc-functions/iswxdigit_l.texi.
21512         * doc/posix-functions/isxdigit_l.texi: Renamed from
21513         doc/glibc-functions/isxdigit_l.texi.
21514         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
21515         doc/glibc-functions/mbsnrtowcs.texi.
21516         * doc/posix-functions/mkdtemp.texi: Renamed from
21517         doc/glibc-functions/mkdtemp.texi.
21518         * doc/posix-functions/newlocale.texi: Renamed from
21519         doc/glibc-functions/newlocale.texi.
21520         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
21521         doc/glibc-functions/nl_langinfo_l.texi.
21522         * doc/posix-functions/open_memstream.texi: Renamed from
21523         doc/glibc-functions/open_memstream.texi.
21524         * doc/posix-functions/opterr.texi: Renamed from
21525         doc/glibc-functions/opterr.texi.
21526         * doc/posix-functions/optind.texi: Renamed from
21527         doc/glibc-functions/optind.texi.
21528         * doc/posix-functions/optopt.texi: Renamed from
21529         doc/glibc-functions/optopt.texi.
21530         * doc/posix-functions/psignal.texi: Renamed from
21531         doc/glibc-functions/psignal.texi.
21532         * doc/posix-functions/scandir.texi: Renamed from
21533         doc/glibc-functions/scandir.texi.
21534         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
21535         doc/glibc-functions/sched_get_priority_min.texi.
21536         * doc/posix-functions/signgam.texi: Renamed from
21537         doc/glibc-functions/signgam.texi.
21538         * doc/posix-functions/stpcpy.texi: Renamed from
21539         doc/glibc-functions/stpcpy.texi.
21540         * doc/posix-functions/stpncpy.texi: Renamed from
21541         doc/glibc-functions/stpncpy.texi.
21542         * doc/posix-functions/strcasecmp_l.texi: Renamed from
21543         doc/glibc-functions/strcasecmp_l.texi.
21544         * doc/posix-functions/strcoll_l.texi: Renamed from
21545         doc/glibc-functions/strcoll_l.texi.
21546         * doc/posix-functions/strfmon_l.texi: Renamed from
21547         doc/glibc-functions/strfmon_l.texi.
21548         * doc/posix-functions/strftime_l.texi: Renamed from
21549         doc/glibc-functions/strftime_l.texi.
21550         * doc/posix-functions/strncasecmp_l.texi: Renamed from
21551         doc/glibc-functions/strncasecmp_l.texi.
21552         * doc/posix-functions/strndup.texi: Renamed from
21553         doc/glibc-functions/strndup.texi.
21554         * doc/posix-functions/strnlen.texi: Renamed from
21555         doc/glibc-functions/strnlen.texi.
21556         * doc/posix-functions/strsignal.texi: Renamed from
21557         doc/glibc-functions/strsignal.texi.
21558         * doc/posix-functions/strxfrm_l.texi: Renamed from
21559         doc/glibc-functions/strxfrm_l.texi.
21560         * doc/posix-functions/timer_gettime.texi: Renamed from
21561         doc/glibc-functions/timer_gettime.texi.
21562         * doc/posix-functions/tolower_l.texi: Renamed from
21563         doc/glibc-functions/tolower_l.texi.
21564         * doc/posix-functions/toupper_l.texi: Renamed from
21565         doc/glibc-functions/toupper_l.texi.
21566         * doc/posix-functions/towctrans_l.texi: Renamed from
21567         doc/glibc-functions/towctrans_l.texi.
21568         * doc/posix-functions/towlower_l.texi: Renamed from
21569         doc/glibc-functions/towlower_l.texi.
21570         * doc/posix-functions/towupper_l.texi: Renamed from
21571         doc/glibc-functions/towupper_l.texi.
21572         * doc/posix-functions/uselocale.texi: Renamed from
21573         doc/glibc-functions/uselocale.texi.
21574         * doc/posix-functions/vdprintf.texi: Renamed from
21575         doc/glibc-functions/vdprintf.texi.
21576         * doc/posix-functions/wcpcpy.texi:
21577         Renamed from doc/glibc-functions/wcpcpy.texi.
21578         * doc/posix-functions/wcpncpy.texi: Renamed from
21579         doc/glibc-functions/wcpncpy.texi.
21580         * doc/posix-functions/wcscasecmp.texi: Renamed from
21581         doc/glibc-functions/wcscasecmp.texi.
21582         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
21583         doc/glibc-functions/wcscasecmp_l.texi.
21584         * doc/posix-functions/wcscoll_l.texi: Renamed from
21585         doc/glibc-functions/wcscoll_l.texi.
21586         * doc/posix-functions/wcsdup.texi: Renamed from
21587         doc/glibc-functions/wcsdup.texi.
21588         * doc/posix-functions/wcsncasecmp.texi: Renamed from
21589         doc/glibc-functions/wcsncasecmp.texi.
21590         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
21591         doc/glibc-functions/wcsncasecmp_l.texi.
21592         * doc/posix-functions/wcsnlen.texi: Renamed from
21593         doc/glibc-functions/wcsnlen.texi.
21594         * doc/posix-functions/wcsnrtombs.texi: Renamed from
21595         doc/glibc-functions/wcsnrtombs.texi.
21596         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
21597         doc/glibc-functions/wcsxfrm_l.texi.
21598         * doc/posix-functions/wctrans_l.texi: Renamed from
21599         doc/glibc-functions/wctrans_l.texi.
21600         * doc/posix-functions/wctype_l.texi: Renamed from
21601         doc/glibc-functions/wctype_l.texi.
21602         * doc/gnulib.texi (Function Substitutes): Add these subsections.
21603         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
21604         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
21605         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
21606         these subsections.
21607         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
21608         Remove sections.
21609
21610 2008-12-14  Bruno Haible  <bruno@clisp.org>
21611
21612         Update doc for POSIX:2008.
21613         * doc/posix-functions/*.texi: Update URL of POSIX specification.
21614
21615 2008-12-14  Bruno Haible  <bruno@clisp.org>
21616
21617         Update doc for POSIX:2008.
21618         * doc/pastposix-functions/bcmp.texi: Renamed from
21619         doc/posix-functions/bcmp.texi.
21620         * doc/pastposix-functions/bcopy.texi: Renamed from
21621         doc/posix-functions/bcopy.texi.
21622         * doc/pastposix-functions/bsd_signal.texi: Renamed from
21623         doc/posix-functions/bsd_signal.texi.
21624         * doc/pastposix-functions/bzero.texi: Renamed from
21625         doc/posix-functions/bzero.texi.
21626         * doc/pastposix-functions/ecvt.texi: Renamed from
21627         doc/posix-functions/ecvt.texi.
21628         * doc/pastposix-functions/fcvt.texi: Renamed from
21629         doc/posix-functions/fcvt.texi.
21630         * doc/pastposix-functions/ftime.texi: Renamed from
21631         doc/posix-functions/ftime.texi.
21632         * doc/pastposix-functions/gcvt.texi: Renamed from
21633         doc/posix-functions/gcvt.texi.
21634         * doc/pastposix-functions/getcontext.texi: Renamed from
21635         doc/posix-functions/getcontext.texi.
21636         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
21637         doc/posix-functions/gethostbyaddr.texi.
21638         * doc/pastposix-functions/gethostbyname.texi: Renamed from
21639         doc/posix-functions/gethostbyname.texi.
21640         * doc/pastposix-functions/getwd.texi: Renamed from
21641         doc/posix-functions/getwd.texi.
21642         * doc/pastposix-functions/h_errno.texi: Renamed from
21643         doc/posix-functions/h_errno.texi.
21644         * doc/pastposix-functions/index.texi: Renamed from
21645         doc/posix-functions/index.texi.
21646         * doc/pastposix-functions/makecontext.texi: Renamed from
21647         doc/posix-functions/makecontext.texi.
21648         * doc/pastposix-functions/mktemp.texi: Renamed from
21649         doc/posix-functions/mktemp.texi.
21650         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
21651         doc/posix-functions/pthread_attr_getstackaddr.texi.
21652         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
21653         doc/posix-functions/pthread_attr_setstackaddr.texi.
21654         * doc/pastposix-functions/rindex.texi: Renamed from
21655         doc/posix-functions/rindex.texi.
21656         * doc/pastposix-functions/scalb.texi: Renamed from
21657         doc/posix-functions/scalb.texi.
21658         * doc/pastposix-functions/setcontext.texi: Renamed from
21659         doc/posix-functions/setcontext.texi.
21660         * doc/pastposix-functions/swapcontext.texi: Renamed from
21661         doc/posix-functions/swapcontext.texi.
21662         * doc/pastposix-functions/ualarm.texi: Renamed from
21663         doc/posix-functions/ualarm.texi.
21664         * doc/pastposix-functions/usleep.texi: Renamed from
21665         doc/posix-functions/usleep.texi.
21666         * doc/pastposix-functions/vfork.texi: Renamed from
21667         doc/posix-functions/vfork.texi.
21668         * doc/pastposix-functions/wcswcs.texi: Renamed from
21669         doc/posix-functions/wcswcs.texi.
21670         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
21671         (Function Substitutes): Update.
21672
21673 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21674
21675         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
21676         m4/strerror.m4.
21677
21678 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21679             Bruno Haible  <bruno@clisp.org>
21680
21681         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
21682
21683 2008-12-13  Bruno Haible  <bruno@clisp.org>
21684
21685         * modules/strtoull (Depends-on): Remove unistd.
21686
21687 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21688
21689         * modules/strtoull (Depends-on): Add stdlib.
21690
21691 2008-12-11  Simon Josefsson  <simon@josefsson.org>
21692
21693         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
21694
21695 2008-12-10  Jim Meyering  <meyering@redhat.com>
21696
21697         gl_ASSERT: don't say assertions are disabled when they're not
21698         * m4/assert.m4 (gl_ASSERT): Do not make configure report
21699         "checking whether to enable assertions... no", when they are in
21700         fact enabled.  This is solely a bug in the output of configure.
21701         In spite of saying "no", NDEBUG was not defined in that case.
21702         Also, as noted by Eric Blake, leave assertions enabled upon
21703         --enable-assert=INVALID.
21704
21705 2008-12-10  Bruno Haible  <bruno@clisp.org>
21706
21707         Change MODULES.html to refer to POSIX:2008 where possible.
21708         * MODULES.html.sh (POSIX2008_URL): New variable.
21709         (posix_headers): Remove sys/timeb, ucontext.
21710         (posix2001_headers): New variable.
21711         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
21712         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
21713         index, makecontext, mktemp, pthread_attr_getstackaddr,
21714         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
21715         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
21716         (posix2001_functions): New variable.
21717         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
21718         otherwise.
21719
21720 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21721
21722         add missing include to parse-duration.c
21723         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
21724         * modules/parse-duration (Depends-on): Add xalloc.
21725
21726         fix sed script reading maint.mk
21727         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
21728         (syntax-check-rules): Use it.
21729
21730 2008-12-09  Bruno Haible  <bruno@clisp.org>
21731
21732         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
21733         MacOS X 10.4/PowerPC.
21734         Reported by Simon Josefsson.
21735
21736 2008-12-08  Jim Meyering  <meyering@redhat.com>
21737
21738         work around mingw's lack of some S_IF definitions
21739         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
21740         Reported by Simon Josefsson.
21741
21742 2008-12-08  Bruno Haible  <bruno@clisp.org>
21743
21744         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
21745         applied to variables. Needed on MacOS X 10.4/PowerPC.
21746         Reported by Simon Josefsson.
21747
21748 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
21749         and Eric Blake  <ebb9@byu.net>
21750
21751         assert: honor --enable-assert
21752         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
21753         order to honor --enable-assert, rather than treating it as a
21754         synonym for --disable-assert.
21755
21756 2008-12-08  Jim Meyering  <meyering@redhat.com>
21757
21758         * lib/posixtm.c: Remove now-useless declaration of mktime.
21759
21760         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
21761
21762 2008-12-07  Bruno Haible  <bruno@clisp.org>
21763
21764         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
21765         test_once): Mark functions as static.
21766         * tests/test-tls.c (test_tls): Likewise.
21767
21768 2008-12-07  Bruno Haible  <bruno@clisp.org>
21769
21770         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
21771         iconv_register_autodetect.
21772
21773 2008-12-07  Jim Meyering  <meyering@redhat.com>
21774
21775         posixtm.c: avoid a warning
21776         * lib/posixtm.c (posixtime): Don't initialize tm0.
21777         It's no longer needed to placate gcc4's -Wuninitialized,
21778         and the attempt to placate would elicit a new warning.
21779
21780         unicodeio.c: mark unused parameters
21781         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
21782         (fallback_failure_callback): Likewise.
21783
21784 2008-12-07  Bruno Haible  <bruno@clisp.org>
21785
21786         * gnulib-tool (func_create_testdir): When building the tests
21787         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
21788         Reported by Simon Josefsson.
21789
21790 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21791
21792         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
21793
21794 2008-12-06  Bruno Haible  <bruno@clisp.org>
21795
21796         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
21797         Suggested by Eric Blake.
21798
21799 2008-12-06  Bruno Haible  <bruno@clisp.org>
21800
21801         Fix a c-stack test failure on MacOS X.
21802         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
21803         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
21804         handler for SIGBUS as well.
21805         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
21806         install a signal handler for SIGBUS as well.
21807         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
21808
21809 2008-12-06  Bruno Haible  <bruno@clisp.org>
21810
21811         Advocacy documentation.
21812         * doc/gnulib-intro.texi (Benefits): New section.
21813         * doc/gnulib.texi: Update.
21814
21815 2008-12-06  Bruno Haible  <bruno@clisp.org>
21816
21817         Document the 'manywarnings' module.
21818         * doc/manywarnings.texi: New file.
21819         * doc/gnulib.texi: Include it.
21820
21821 2008-12-05  Eric Blake  <ebb9@byu.net>
21822
21823         tests: silence some gcc warnings
21824         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
21825         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
21826         type mismatches.
21827
21828 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21829             Bruno Haible  <bruno@clisp.org>
21830
21831         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
21832
21833 2008-11-29  Jim Meyering  <meyering@redhat.com>
21834
21835         unicodeio.c: mark unused parameters
21836         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
21837         (fallback_failure_callback): Likewise.
21838
21839         fts: fix a thinko
21840         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
21841         (set_stat_type): Return S_IF*-valued "type" directly.
21842         Prompted by James Youngman's spotting a related bug.
21843         Confirmed by further testing through find.
21844
21845         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
21846         * lib/fts.c (D_TYPE): Define.
21847         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
21848         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
21849         (s_ifmt_shift_bits): New function.
21850         (set_stat_type): New function.
21851         (fts_build): When not calling fts_stat, call set_stat_type
21852         to propagate dirent.d_type info to fts_read caller.
21853         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
21854         fts_statp->st_mode type information may be valid.
21855
21856 2008-11-28  Simon Josefsson  <simon@josefsson.org>
21857
21858         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
21859         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
21860         <sds@gnu.org>.
21861
21862 2008-11-20  Bruno Haible  <bruno@clisp.org>
21863
21864         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
21865         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
21866         INCLUDE_NEXT.
21867         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
21868         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
21869         * modules/math (Makefile.am): Substitute
21870         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
21871         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21872
21873 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
21874             Bruno Haible  <bruno@clisp.org>
21875
21876         * lib/stdint.in.h: Define all type macros so that their expansion is
21877         a single typedef'ed token. Fixes a compilation failure in Boost which
21878         does "using ::int8_t;".
21879
21880 2008-11-18  Simon Josefsson  <simon@josefsson.org>
21881
21882         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
21883         gl_MANYWARN_ALL_GCC.
21884         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
21885         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
21886         * modules/manywarnings: New file.
21887         * MODULES.html.sh: Mention manywarnings module.
21888
21889 2008-11-18  Bruno Haible  <bruno@clisp.org>
21890
21891         * doc/gnulib-tool.texi (Unit tests): New section.
21892
21893 2008-11-18  Simon Josefsson  <simon@josefsson.org>
21894
21895         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
21896         paths like 'lib/po/foo.po'.
21897
21898 2008-11-17  Simon Josefsson  <simon@josefsson.org>
21899
21900         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
21901         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
21902
21903 2008-11-17  Simon Josefsson  <simon@josefsson.org>
21904
21905         * m4/warnings.m4: Use CPPFLAGS to really check whether the
21906         parameter works.
21907
21908 2008-11-17  Simon Josefsson  <simon@josefsson.org>
21909
21910         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
21911
21912 2008-11-17  Bruce Korb  <bkorb@gnu.org>
21913
21914         * modules/parse-duration-tests: New file.
21915         * tests/test-parse-duration.sh: New file.
21916         * tests/test-parse-duration.c: New file.
21917
21918         New module 'parse-duration'.
21919         * lib/parse-duration.h: New file.
21920         * lib/parse-duration.c: New file.
21921         * modules/parse-duration: New file.
21922
21923 2008-11-17  Bruno Haible  <bruno@clisp.org>
21924
21925         * tests/test-select-out.sh: Comment out the first pipe test.
21926         Reported by Simon Josefsson.
21927
21928 2008-11-17  Bruno Haible  <bruno@clisp.org>
21929
21930         * modules/getaddrinfo (Depends-on): Add servent, hostent.
21931         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
21932         gl_HOSTENT.
21933
21934 2008-11-17  Bruno Haible  <bruno@clisp.org>
21935
21936         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
21937         -lnetwork and -lnet. Needed for Haiku and BeOS.
21938
21939 2008-11-16  Bruno Haible  <bruno@clisp.org>
21940
21941         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
21942
21943 2008-11-16  Bruno Haible  <bruno@clisp.org>
21944
21945         Avoid test failure on Haiku.
21946         * tests/test-fsync.c: Include <errno.h>.
21947         (main): Don't require that fsync (0) fails.
21948
21949 2008-11-15  Bruno Haible  <bruno@clisp.org>
21950
21951         New module 'hostent'.
21952         * modules/hostent: New file.
21953         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
21954
21955 2008-11-15  Bruno Haible  <bruno@clisp.org>
21956
21957         New module 'servent'.
21958         * modules/servent: New file.
21959         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
21960
21961 2008-11-15  Bruno Haible  <bruno@clisp.org>
21962
21963         Avoid generating same test program with two different rules.
21964         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
21965         test-frexp to test-frexp-nolibm.
21966         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
21967         test-frexpl to test-frexpl-nolibm.
21968
21969 2008-11-15  Bruno Haible  <bruno@clisp.org>
21970
21971         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
21972         $(FREXPL_LIBM).
21973
21974 2008-11-15  Bruno Haible  <bruno@clisp.org>
21975
21976         * lib/netdb.in.h: Activate the definitions also when the system's
21977         <netdb.h> has 'struct addrinfo'.
21978         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
21979         EAI_OVERFLOW or AI_NUMERICSERV.
21980         * doc/posix-headers/netdb.texi: Document the problem.
21981
21982 2008-11-15  Bruno Haible  <bruno@clisp.org>
21983
21984         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
21985
21986         Make the 'sched' module work on platforms where <sched.h> exists but
21987         is incomplete (such as Haiku).
21988         * lib/sched.in.h; Include the system's <sched.h> if it exists.
21989         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
21990         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
21991         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
21992         HAVE_STRUCT_SCHED_PARAM.
21993         * modules/sched (Depends-on): Add include_next.
21994         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
21995         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
21996         * doc/posix-headers/sched.texi: Document the issue.
21997
21998 2008-11-13  Jim Meyering  <meyering@redhat.com>
21999
22000         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
22001         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
22002         test would fail due to the difference in the Report bugs to ...
22003         line.  The expected address is empty, "<>", while the actual
22004         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
22005
22006 2008-11-12  Bruno Haible  <bruno@clisp.org>
22007
22008         lstat: don't compile lstat.c on systems lacking lstat
22009         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
22010         which don't have lstat; this is handled by lib/sys_stat.in.h already.
22011         Reported by Daniel P. Berrange via Jim Meyering.
22012
22013 2008-11-12  Jim Meyering  <meyering@redhat.com>
22014
22015         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
22016
22017 2008-11-12  Simon Josefsson  <simon@josefsson.org>
22018
22019         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
22020         instead.
22021
22022 2008-11-12  Bruno Haible  <bruno@clisp.org>
22023
22024         * lib/unicodeio.c: Include unistr.h.
22025         (utf8_wctomb): Remove function.
22026         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
22027
22028 2008-11-12  Simon Josefsson  <simon@josefsson.org>
22029
22030         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
22031         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
22032         <bruno@clisp.org>.
22033         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
22034
22035 2008-11-12  Simon Josefsson  <simon@josefsson.org>
22036
22037         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
22038         * doc/gnulib.texi: Add section for warnings.
22039
22040 2008-11-11  Bruno Haible  <bruno@clisp.org>
22041
22042         * lib/sockets.h: Add a comment.
22043
22044 2008-11-11  Karl Berry  <karl@gnu.org>
22045
22046         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
22047
22048 2008-11-11  Eric Blake  <ebb9@byu.net>
22049
22050         fdl.texi: avoid git symlinks
22051         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
22052
22053 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22054
22055         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
22056
22057 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22058
22059         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
22060         (gl_WARN_ADD): Substitute $2 if literal.
22061
22062 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22063
22064         * m4/warning.m4: Remove.
22065
22066 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22067
22068         * m4/warnings.m4: Almost complete rewrite. :-)
22069
22070 2008-11-10  Simon Josefsson  <simon@josefsson.org>
22071
22072         * modules/warnings: New module.
22073         * m4/warnings.m4: New file.
22074         * MODULES.html.sh: Mention warnings module.
22075         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
22076         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22077
22078 2008-11-10  Eric Blake  <ebb9@byu.net>
22079
22080         fdl.texi: make a symlink to the latest version
22081         * doc/standards.texi: Revert today's earlier change.
22082         * doc/fdl-1.2.texi: Rename from old fdl.texi...
22083         * doc/fdl.texi: ...and replace this with a symlink to the newer
22084         fdl-1.3.texi.
22085
22086 2008-11-10  Bruno Haible  <bruno@clisp.org>
22087
22088         * tests/test-select-fd.c (main): Accept the result file name as fourth
22089         argument.
22090         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
22091         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
22092
22093 2008-11-10  Bruno Haible  <bruno@clisp.org>
22094
22095         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
22096         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
22097         as autoconf-substituted macros.
22098         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
22099         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
22100         gl_NETDB_H_DEFAULTS. Set these variables.
22101         * modules/netdb (Makefile.am): Substitute these variables.
22102
22103 2008-11-10  Eric Blake  <ebb9@byu.net>
22104
22105         standards.texi: include correct file for FDL 1.3
22106         * doc/standards.texi (GNU Free Documentation License): Change
22107         include file to pull in FDL 1.3, not 1.2.
22108
22109         fdl.texi: revert accidental change to license
22110         * doc/fdl.texi: This is FDL 1.2, not 1.3.
22111
22112 2008-11-10  Bruno Haible  <bruno@clisp.org>
22113
22114         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
22115         cross-compiling guesses also when the native compile gives no result.
22116
22117 2008-11-10  Bruno Haible  <bruno@clisp.org>
22118
22119         * lib/spawni.c (__spawni): Force variable into the stack.
22120
22121 2008-11-10  Bruno Haible  <bruno@clisp.org>
22122
22123         Add support for Haiku.
22124         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
22125         glibc and BeOS, but also on Haiku.
22126         * lib/fpurge.c (fpurge): Likewise.
22127         * lib/freadable.c (freadable): Likewise.
22128         * lib/freadahead.c (freadahead): Likewise.
22129         * lib/freading.c (freading): Likewise.
22130         * lib/freadptr.c (freadptr): Likewise.
22131         * lib/freadseek.c (freadptrinc): Likewise.
22132         * lib/fseeko.c (rpl_fseeko): Likewise.
22133         * lib/fseterr.c (fseterr): Likewise.
22134         * lib/fwritable.c (fwritable): Likewise.
22135         * lib/fwriting.c (fwriting): Likewise.
22136         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
22137
22138 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
22139
22140         * lib/config.charset: Treat Haiku like BeOS.
22141
22142 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
22143
22144         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
22145         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
22146
22147 2008-11-08  Bruno Haible  <bruno@clisp.org>
22148
22149         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
22150         AC_CACHE_CHECK.
22151
22152 2008-11-08  Bruno Haible  <bruno@clisp.org>
22153
22154         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
22155
22156 2008-11-08  Bruno Haible  <bruno@clisp.org>
22157
22158         * tests/test-select-fd.c: New file.
22159         * tests/test-select-in.sh: New file.
22160         * tests/test-select-out.sh: New file.
22161         * tests/test-select-stdin.c: New file.
22162         * modules/select-tests (Files): Add the new files.
22163         (Depends-on): Add gettimeofday.
22164         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
22165         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
22166         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
22167
22168 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
22169             Bruno Haible  <bruno@clisp.org>
22170
22171         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
22172
22173 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
22174
22175         * build-aux/pmccabe2html: Added support for C++ source files.
22176
22177 2008-11-05  Ben Pfaff  <blp@gnu.org>
22178
22179         Fix lib/close.c build on Windows.
22180         * modules/close (Files): Add lib/w32sock.h.
22181
22182 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
22183
22184         Accept Bison's NEWS format.
22185         * build-aux/announce-gen (print_news_deltas): Tweak
22186         $re_prefix.
22187
22188 2008-11-04  Bruno Haible  <bruno@clisp.org>
22189
22190         * modules/random_r (Maintainer): Add glibc.
22191
22192 2008-11-04  Simon Josefsson  <simon@josefsson.org>
22193
22194         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
22195         by karl@freefriends.org (Karl Berry).
22196         * doc/alloca.texi: Likewise.
22197         * doc/c-ctype.texi: Likewise.
22198         * doc/c-strcase.texi: Likewise.
22199         * doc/c-strcaseeq.texi: Likewise.
22200         * doc/c-strcasestr.texi: Likewise.
22201         * doc/c-strstr.texi: Likewise.
22202         * doc/c-strtod.texi: Likewise.
22203         * doc/c-strtold.texi: Likewise.
22204         * doc/ctime.texi: Likewise.
22205         * doc/error.texi: Likewise.
22206         * doc/fdl.texi: Likewise.
22207         * doc/gcd.texi: Likewise.
22208         * doc/getdate.texi: Likewise.
22209         * doc/gnulib-intro.texi: Likewise.
22210         * doc/gnulib-tool.texi: Likewise.
22211         * doc/gnulib.texi: Likewise.
22212         * doc/inet_ntoa.texi: Likewise.
22213         * doc/maintain.texi: Likewise.
22214         * doc/make-stds.texi: Likewise.
22215         * doc/quote.texi: Likewise.
22216         * doc/regexprops-generic.texi: Likewise.
22217         * doc/standards.texi: Likewise.
22218         * doc/verify.texi: Likewise.
22219         * doc/visibility.texi: Likewise.
22220         * doc/gnulib.texi (GNU Free Documentation License): Include
22221         fdl-1.3.texi instead of fdl.texi.
22222
22223 2008-11-04  Simon Josefsson  <simon@josefsson.org>
22224
22225         * doc/fdl-1.3.texi: New file, from
22226         <http://www.gnu.org/licenses/fdl-1.3.texi>.
22227         * modules/fdl-1.3: Add.
22228         * MODULES.html.sh: Add fdl-1.3.
22229
22230 2008-11-03  Bruno Haible  <bruno@clisp.org>
22231
22232         Make determination of absolute name of header file work with AIX xlc.
22233         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
22234         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
22235         preprocessing.
22236         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
22237         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
22238
22239 2008-11-03  Simon Josefsson  <simon@josefsson.org>
22240
22241         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
22242         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
22243         <ludo@gnu.org>.
22244
22245 2008-11-02  Bruno Haible  <bruno@clisp.org>
22246
22247         Mark 'strpbrk' obsolete.
22248         * modules/strpbrk (Status, Notice): New sections.
22249         * modules/strtok_r (Depends-on): Add strpbrk.
22250
22251 2008-11-02  Bruno Haible  <bruno@clisp.org>
22252
22253         Mark 'strdup' obsolete.
22254         * modules/strdup (Status, Notice): New sections.
22255         * modules/findprog (Depends-on): Add strdup.
22256         * modules/getaddrinfo (Depends-on): Likewise.
22257         * modules/localename (Depends-on): Likewise.
22258         * modules/relocatable-lib (Depends-on): Likewise.
22259         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
22260         * modules/relocatable-prog (Depends-on): Likewise.
22261         * modules/trim (Depends-on): Likewise.
22262         * modules/unictype/gen-ctype (Depends-on): Likewise.
22263         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
22264
22265 2008-11-02  Bruno Haible  <bruno@clisp.org>
22266
22267         Mark 'strcspn' obsolete.
22268         * modules/strcspn (Status, Notice): New sections.
22269
22270 2008-11-02  Bruno Haible  <bruno@clisp.org>
22271
22272         Mark 'rmdir' obsolete.
22273         * modules/rmdir (Status, Notice): New sections.
22274         * modules/clean-temp (Depends-on): Add rmdir.
22275         * modules/openat (Depends-on): Likewise.
22276
22277 2008-11-02  Bruno Haible  <bruno@clisp.org>
22278
22279         Mark 'raise' obsolete.
22280         * modules/raise (Status, Notice): New sections.
22281         (Include): Specify <signal.h>.
22282         * modules/stdio (Depends-on): Add raise.
22283         * modules/write (Depends-on): Likewise.
22284
22285 2008-11-02  Bruno Haible  <bruno@clisp.org>
22286
22287         Mark 'memset' obsolete.
22288         * modules/memset (Status, Notice): New sections.
22289
22290 2008-11-02  Bruno Haible  <bruno@clisp.org>
22291
22292         Mark 'memmove' obsolete.
22293         * modules/memmove (Status, Notice): New sections.
22294         * modules/argp (Depends-on): Add memmove.
22295         * modules/argz (Depends-on): Likewise.
22296         * modules/canonicalize (Depends-on): Likewise.
22297         * modules/canonicalize-lgpl (Depends-on): Likewise.
22298         * modules/fts (Depends-on): Likewise.
22299         * modules/getcwd (Depends-on): Likewise.
22300         * modules/human (Depends-on): Likewise.
22301         * modules/regex (Depends-on): Likewise.
22302         * modules/striconveh (Depends-on): Likewise.
22303         * modules/trim (Depends-on): Likewise.
22304         * modules/unistr/u8-move (Depends-on): Likewise.
22305         * modules/unistr/u16-move (Depends-on): Likewise.
22306         * modules/unistr/u32-move (Depends-on): Likewise.
22307
22308 2008-11-02  Bruno Haible  <bruno@clisp.org>
22309
22310         Mark 'memcpy' obsolete.
22311         * modules/memcpy (Status, Notice): New sections.
22312
22313 2008-11-02  Bruno Haible  <bruno@clisp.org>
22314
22315         Mark 'memcmp' obsolete.
22316         * modules/memcmp (Status, Notice): New sections.
22317         * modules/argmatch (Depends-on): Add memchr.
22318         * modules/backupfile (Depends-on): Likewise.
22319         * modules/c-strcasestr (Depends-on): Likewise.
22320         * modules/crypto/des (Depends-on): Likewise.
22321         * modules/csharpcomp (Depends-on): Likewise.
22322         * modules/fnmatch (Depends-on): Likewise.
22323         * modules/git-merge-changelog (Depends-on): Likewise.
22324         * modules/isnand (Depends-on): Likewise.
22325         * modules/isnand-nolibm (Depends-on): Likewise.
22326         * modules/isnanf (Depends-on): Likewise.
22327         * modules/isnanf-nolibm (Depends-on): Likewise.
22328         * modules/isnanl (Depends-on): Likewise.
22329         * modules/isnanl-nolibm (Depends-on): Likewise.
22330         * modules/mbchar (Depends-on): Likewise.
22331         * modules/memcoll (Depends-on): Likewise.
22332         * modules/quotearg (Depends-on): Likewise.
22333         * modules/regex (Depends-on): Likewise.
22334         * modules/relocatable-prog (Depends-on): Likewise.
22335         * modules/same (Depends-on): Likewise.
22336         * modules/signbit (Depends-on): Likewise.
22337         * modules/strcasestr-simple (Depends-on): Likewise.
22338         * modules/unictype/gen-ctype (Depends-on): Likewise.
22339         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
22340         * modules/uniname/uniname (Depends-on): Likewise.
22341         * modules/unistr/u8-cmp (Depends-on): Likewise.
22342
22343 2008-11-02  Bruno Haible  <bruno@clisp.org>
22344
22345         Mark 'memchr' obsolete.
22346         * modules/memchr (Status, Notice): New sections.
22347         * modules/argp (Depends-on): Add memchr.
22348         * modules/base64 (Depends-on): Likewise.
22349         * modules/c-strcasestr (Depends-on): Likewise.
22350         * modules/chdir-long (Depends-on): Likewise.
22351         * modules/fnmatch (Depends-on): Likewise.
22352         * modules/getsubopt (Depends-on): Likewise.
22353         * modules/git-merge-changelog (Depends-on): Likewise.
22354         * modules/glob (Depends-on): Likewise.
22355         * modules/strcasestr-simple (Depends-on): Likewise.
22356         * modules/strnlen (Depends-on): Likewise.
22357
22358 2008-11-02  Bruno Haible  <bruno@clisp.org>
22359
22360         Mark 'atexit' obsolete.
22361         * modules/atexit (Status, Notice): New sections.
22362         * modules/chdir-long (Depends-on): Add atexit.
22363         * modules/wait-process (Depends-on): Likewise.
22364
22365 2008-11-02  Bruno Haible  <bruno@clisp.org>
22366
22367         * gnulib-tool: New option --with-obsolete.
22368         (func_usage): Document it.
22369         (func_modules_transitive_closure): Drop obsolete dependencies if
22370         incobsolete is not true.
22371         (func_import): Read and save the incobsolete variable to the cache.
22372
22373 2008-11-02  Bruno Haible  <bruno@clisp.org>
22374
22375         * modules/TEMPLATE-EXTENDED: New field 'Status'.
22376         * gnulib-tool: New option --extract-status.
22377         (func_usage): Document it.
22378         (sed_extract_prog): Recognize it.
22379         (func_get_status): New function.
22380
22381 2008-10-30  Simon Josefsson  <simon@josefsson.org>
22382
22383         * modules/sockets (License): Change from LGPL to LGPLv2+.
22384
22385 2008-10-28  Simon Josefsson  <simon@josefsson.org>
22386
22387         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
22388
22389 2008-10-28  Simon Josefsson  <simon@josefsson.org>
22390
22391         * MODULES.html.sh (Support for systems lacking POSIX:2001):
22392         Mention times and sys_times.
22393         * modules/sys_times, modules/sys_times-tests: New modules.
22394         * modules/times, modules/times-tests: Likewise
22395         * m4/sys_times_h.m4: New file.
22396         * lib/sys_times.in.h: Likewise
22397         * lib/times.c: Likewise.
22398         * tests/test-sys_times.c: Likewise.
22399         * tests/test-times.c: Likewise.
22400         * doc/posix-headers/sys_times.texi: Update.
22401         * doc/posix-functions/times.texi: Update.
22402
22403 2008-10-28  Jim Meyering  <meyering@redhat.com>
22404
22405         * modules/tempname (Depends-on): Add lstat.
22406
22407         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
22408
22409 2008-10-28  Simon Josefsson  <simon@josefsson.org>
22410
22411         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
22412         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
22413         using idiom used elsewhere in gnulib.
22414
22415 2008-10-27  Jim Meyering  <meyering@redhat.com>
22416
22417         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
22418
22419 2008-10-27  Simon Josefsson  <simon@josefsson.org>
22420
22421         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
22422         TESTS_ENVIRONMENT, for shell scripts that needs to call built
22423         programs.
22424         * tests/test-argp-2.sh: Use $EXEEXT when needed.
22425
22426 2008-10-27  Simon Josefsson  <simon@josefsson.org>
22427
22428         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
22429
22430 2008-10-27  Bruno Haible  <bruno@clisp.org>
22431
22432         * tests/test-lstat.c: Include <stdio.h>.
22433
22434 2008-10-27  Simon Josefsson  <simon@josefsson.org>
22435
22436         * modules/lstat-tests: New module.
22437         * tests/test-lstat.c: New file.
22438
22439 2008-10-26  Jim Meyering  <meyering@redhat.com>
22440
22441         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
22442
22443 2008-10-26  Simon Josefsson  <simon@josefsson.org>
22444             Bruno Haible  <bruno@clisp.org>
22445
22446         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
22447         * modules/configmake (Include): Add a note that the include must come
22448         after all system headers.
22449         * lib/javaversion.c: Include configmake.h after all other includes.
22450
22451 2008-10-26  Bruno Haible  <bruno@clisp.org>
22452
22453         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
22454         HAVE_STRUCT_RANDOM_DATA to 1.
22455         (gl_STDLIB_H): Simplify.
22456
22457 2008-10-26  Simon Josefsson  <simon@josefsson.org>
22458
22459         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
22460         substitute HAVE_STRUCT_RANDOM_DATA.
22461         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
22462         random_data.
22463         * modules/stdlib (Makefile.am): Substitute
22464         HAVE_STRUCT_RANDOM_DATA.
22465
22466 2008-10-26  Simon Josefsson  <simon@josefsson.org>
22467
22468         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
22469         * doc/gnulib-intro.texi (Copyright): Likewise.
22470
22471 2008-10-26  Simon Josefsson  <simon@josefsson.org>
22472
22473         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
22474         findings.
22475
22476 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
22477             Bruno Haible  <bruno@clisp.org>
22478
22479         * lib/unistd.in.h: Include <winsock2.h>.
22480         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
22481         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
22482         Provide dummy declarations.
22483         (gethostname): Override.
22484         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
22485         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
22486         gl_PREREQ_SYS_H_WINSOCK2.
22487         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
22488         * doc/posix-functions/gethostname.texi: More details.
22489
22490 2008-10-25  Bruno Haible  <bruno@clisp.org>
22491
22492         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
22493         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
22494         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
22495
22496         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
22497         here ...
22498         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
22499         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
22500         gl_UNISTD_H_DEFAULTS.
22501
22502 2008-10-25  Eric Blake  <ebb9@byu.net>
22503
22504         signbit: avoid spurious compiler failure
22505         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
22506         declarations inside function.
22507
22508 2008-10-24  Simon Josefsson  <simon@josefsson.org>
22509             Bruno Haible  <bruno@clisp.org>
22510
22511         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
22512         * modules/random_r (Depends-on): Add stdint.
22513
22514 2008-10-24  Bruno Haible  <bruno@clisp.org>
22515
22516         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
22517         Eggert.
22518         * modules/strerror (License): Likewise.
22519
22520 2008-10-24  Jim Meyering  <meyering@redhat.com>
22521
22522         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
22523         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
22524
22525 2008-10-24  Eric Blake  <ebb9@byu.net>
22526
22527         getgroups: fix compilation when getgroups is available
22528         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
22529         but with <config.h> override of getgroups disabled.
22530
22531 2008-10-24  Simon Josefsson  <simon@josefsson.org>
22532
22533         * doc/gnulib.texi (Header files): Add note about C++ problems.
22534         Explained by Bruno Haible <bruno@clisp.org>.
22535
22536 2008-10-23  Bruno Haible  <bruno@clisp.org>
22537
22538         Define a dummy SA_NODEFER macro on Interix.
22539         * lib/signal.in.h (SA_NODEFER): Define fallback.
22540         Reported by Aleksey Cheusov <cheusov@tut.by> via
22541         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
22542
22543 2008-10-23  Bruno Haible  <bruno@clisp.org>
22544
22545         * modules/freadahead (License): Change to LGPLv2+.
22546         Suggested by Simon Josefsson.
22547
22548 2008-10-23  Jim Meyering  <meyering@redhat.com>
22549
22550         random_r: new module
22551         * modules/random_r: New file.
22552         * m4/random_r.m4: New file.
22553         * lib/random_r.c: New file, from glibc.
22554         * modules/random_r-tests: New file.
22555         * tests/test-random_r.c: New file.
22556         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
22557          Declare.
22558         (RAND_MAX): Define.
22559         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
22560         * modules/stdlib: Substitute them, too.
22561         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
22562         * doc/glibc-functions/initstate_r.texi: Mention the new module.
22563         * doc/glibc-functions/random_r.texi: Likewise.
22564         * doc/glibc-functions/setstate_r.texi: Likewise.
22565         * doc/glibc-functions/srandom_r.texi: Likewise.
22566         * config/srclist.txt: Mention it.
22567
22568 2008-10-23  David Lutterkort  <lutter@redhat.com>
22569
22570         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
22571         link requirement
22572
22573 2008-10-23  Jim Meyering  <meyering@redhat.com>
22574
22575         selinux-h: mark parameters of stub functions as intentionally unused
22576         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
22577         * lib/se-context.in.h: Likewise.
22578
22579 2008-10-22  Simon Josefsson  <simon@josefsson.org>
22580
22581         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
22582
22583 2008-10-22  Simon Josefsson  <simon@josefsson.org>
22584
22585         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
22586
22587 2008-10-22  Eric Blake  <ebb9@byu.net>
22588
22589         glthread/thread: avoid compiler warning
22590         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
22591         Add unreachable abort to silence compiler.
22592
22593 2008-10-22  Eric Blake  <ebb9@byu.net>
22594
22595         netdb: also supply struct addrinfo for cygwin 1.5.x
22596         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
22597         older cygwin.
22598         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
22599         cygwin.
22600         * doc/posix-headers/netdb.texi (netdb.h): Document this.
22601
22602 2008-10-22  Bruno Haible  <bruno@clisp.org>
22603
22604         * users.txt: Update entry about pspp.
22605
22606 2008-10-21  Bruno Haible  <bruno@clisp.org>
22607
22608         Simplification.
22609         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
22610         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
22611
22612         Simplification.
22613         * lib/ioctl.c (ioctl): Don't undefine.
22614         * lib/socket.c (socket): Don't undefine.
22615
22616         Remove unused module indicator macros.
22617         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
22618         GNULIB_$1 as a C macro.
22619
22620         * doc/posix-functions/close.texi: Undo last change.
22621         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
22622         Windows platforms.
22623
22624 2008-10-21  Bruno Haible  <bruno@clisp.org>
22625
22626         Add gethostname() declaration to <unistd.h>.
22627         * lib/unistd.in.h (gethostname): New declaration.
22628         * lib/gethostname.c: Include <unistd.h>.
22629         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
22630         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
22631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
22632         and HAVE_GETHOSTNAME.
22633         * modules/gethostname (Depends-on): Add unistd.
22634         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
22635         (Include): Specify <unistd.h>.
22636         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
22637         HAVE_GETHOSTNAME.
22638         * tests/test-gethostname.c: Include <unistd.h> first.
22639
22640 2008-10-21  Bruno Haible  <bruno@clisp.org>
22641
22642         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
22643         * modules/select-tests (Depends-on): Likewise.
22644         Reported by Simon Josefsson.
22645
22646 2008-10-21  Simon Josefsson  <simon@josefsson.org>
22647
22648         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
22649         * lib/accept.c: New file, based on winsock.c.
22650         * lib/bind.c: New file, based on winsock.c.
22651         * lib/connect.c: New file, based on winsock.c.
22652         * lib/getpeername.c: New file, based on winsock.c.
22653         * lib/getsockname.c: New file, based on winsock.c.
22654         * lib/getsockopt.c: New file, based on winsock.c.
22655         * lib/ioctl.c: New file, based on winsock.c.
22656         * lib/listen.c: New file, based on winsock.c.
22657         * lib/recv.c: New file, based on winsock.c.
22658         * lib/recvfrom.c: New file, based on winsock.c.
22659         * lib/send.c: New file, based on winsock.c.
22660         * lib/sendto.c: New file, based on winsock.c.
22661         * lib/setsockopt.c: New file, based on winsock.c.
22662         * lib/shutdown.c: New file, based on winsock.c.
22663         * lib/socket.c: New file, based on winsock.c.
22664         * lib/w32sock.h: New file, based on winsock.c.
22665         * lib/winsock.c: Remove file.
22666         * modules/accept: Likewise.
22667         * modules/bind: Likewise.
22668         * modules/connect: Likewise.
22669         * modules/getpeername: Likewise.
22670         * modules/getsockname: Likewise.
22671         * modules/getsockopt: Likewise.
22672         * modules/ioctl: Likewise.
22673         * modules/listen: Likewise.
22674         * modules/recv: Likewise.
22675         * modules/recvfrom: Likewise.
22676         * modules/send: Likewise.
22677         * modules/sendto: Likewise.
22678         * modules/setsockopt: Likewise.
22679         * modules/shutdown: Likewise.
22680         * modules/socket: Use socket.c instead of winsock.c.
22681         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
22682         * doc/posix-functions/accept.texi: Doc fix.
22683         * doc/posix-functions/bind.texi: Doc fix.
22684         * doc/posix-functions/close.texi: Doc fix.
22685         * doc/posix-functions/connect.texi: Doc fix.
22686         * doc/posix-functions/getpeername.texi: Doc fix.
22687         * doc/posix-functions/getsockname.texi: Doc fix.
22688         * doc/posix-functions/getsockopt.texi: Doc fix.
22689         * doc/posix-functions/ioctl.texi: Doc fix.
22690         * doc/posix-functions/listen.texi: Doc fix.
22691         * doc/posix-functions/recv.texi: Doc fix.
22692         * doc/posix-functions/recvfrom.texi: Doc fix.
22693         * doc/posix-functions/send.texi: Doc fix.
22694         * doc/posix-functions/sendto.texi: Doc fix.
22695         * doc/posix-functions/setsockopt.texi: Doc fix.
22696         * doc/posix-functions/shutdown.texi: Doc fix.
22697         * doc/posix-functions/socket.texi: Doc fix.
22698
22699 2008-10-20  Bruno Haible  <bruno@clisp.org>
22700
22701         Take into account the role of SIGABRT_COMPAT on Windows 2008.
22702         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
22703         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
22704         as an alias for SIGABRT.
22705         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
22706         (sigaction): Map it to SIGABRT.
22707         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
22708
22709 2008-10-20  Bruno Haible  <bruno@clisp.org>
22710
22711         * lib/fts.c: Don't include lstat.h.
22712         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
22713
22714         Move the lstat() declaration to <sys/stat.h>.
22715         * lib/lstat.h: Remove file.
22716         * lib/sys_stat.in.h: Add special invocation convention.
22717         (lstat): New declaration.
22718         * lib/lstat.c (orig_lstat): New function.
22719         (rpl_lstat): Use orig_lstat instead of lstat.
22720         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
22721         AC_C_INLINE. Set REPLACE_LSTAT.
22722         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
22723         and REPLACE_LSTAT.
22724         * modules/lstat (Files): Remove lib/lstat.h.
22725         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
22726         (Include): Specify <sys/stat.h> instead of lstat.h.
22727         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
22728         REPLACE_LSTAT.
22729         * NEWS: Mention the change.
22730
22731 2008-10-20  Bruno Haible  <bruno@clisp.org>
22732
22733         * modules/posix_spawn-tests: New file.
22734         * tests/test-posix_spawn3.c: New file.
22735
22736 2008-10-20  Bruno Haible  <bruno@clisp.org>
22737
22738         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
22739         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
22740         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
22741         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
22742         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
22743
22744 2008-10-20  Bruno Haible  <bruno@clisp.org>
22745
22746         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
22747         of posix_spawn on AIX 5.3.
22748
22749 2008-10-20  Bruno Haible  <bruno@clisp.org>
22750
22751         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
22752
22753 2008-10-20  Bruno Haible  <bruno@clisp.org>
22754
22755         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
22756         of AC_LANG_PROGRAM.
22757
22758 2008-10-20  Simon Josefsson  <simon@josefsson.org>
22759
22760         * lib/netdb.in.h: Don't define GNU specific constants until they
22761         are supported or needed.  Reported by Bruno Haible
22762         <bruno@clisp.org>.
22763
22764 2008-10-20  Simon Josefsson  <simon@josefsson.org>
22765
22766         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
22767
22768 2008-10-20  Simon Josefsson  <simon@josefsson.org>
22769
22770         * lib/getaddrinfo.h: Remove file.
22771         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
22772         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
22773         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
22774         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
22775         * modules/netdb: Substitute GNULIB_GETADDRINFO.
22776         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
22777         * tests/test-getaddrinfo.c: Likewise.
22778         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
22779         * NEWS: Mention change.
22780
22781 2008-10-19  Bruno Haible  <bruno@clisp.org>
22782
22783         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
22784
22785 2008-10-19  Bruno Haible  <bruno@clisp.org>
22786
22787         * lib/wait-process.c: Include simply <sys/wait.h>.
22788         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
22789         WIFSTOPPED): Remove fallback definitions.
22790         * modules/wait-process (Depends-on): Add sys_wait.
22791
22792         New module 'sys_wait'.
22793         * modules/sys_wait: New file.
22794         * lib/sys_wait.in.h: New file, partially copied from
22795         lib/wait-process.c.
22796         * m4/sys_wait_h.m4: New file.
22797         * doc/posix-headers/sys_wait.texi: Mention the new module.
22798
22799 2008-10-19  Bruno Haible  <bruno@clisp.org>
22800
22801         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
22802
22803 2008-10-19  Bruno Haible  <bruno@clisp.org>
22804
22805         Assume that waitpid() fills an 'int' status, not a 'union wait'.
22806         * lib/wait-process.c (WAIT_T): Remove type.
22807         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
22808         (wait_subprocess): Update.
22809
22810 2008-10-19  Bruno Haible  <bruno@clisp.org>
22811
22812         New module 'atoll'.
22813         * modules/atoll: New file.
22814         * lib/stdlib.in.h (atoll): New declaration.
22815         * lib/atoll.c: New file, from glibc with modifications.
22816         * m4/atoll.m4: New file.
22817         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
22818         HAVE_ATOLL.
22819         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
22820         * doc/posix-functions/atoll.texi: Mention the new module.
22821
22822 2008-10-19  Bruno Haible  <bruno@clisp.org>
22823
22824         Add strtoull() declaration to <stdlib.h>.
22825         * lib/stdlib.in.h (strtoull): New declaration.
22826         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
22827         Set HAVE_STRTOULL.
22828         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
22829         HAVE_STRTOULL.
22830         * modules/strtoull (Depends-on): Add stdlib.
22831         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
22832         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
22833         HAVE_STRTOULL.
22834
22835 2008-10-19  Bruno Haible  <bruno@clisp.org>
22836
22837         Add strtoll() declaration to <stdlib.h>.
22838         * lib/stdlib.in.h (strtoll): New declaration.
22839         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
22840         Set HAVE_STRTOLL.
22841         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
22842         HAVE_STRTOLL.
22843         * modules/strtoll (Depends-on): Add stdlib.
22844         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
22845         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
22846
22847 2008-10-19  Bruno Haible  <bruno@clisp.org>
22848
22849         * modules/bcopy (Depends-on): Add strings.
22850         (Include): Specify <strings.h>.
22851
22852 2008-10-19  Bruno Haible  <bruno@clisp.org>
22853
22854         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
22855
22856 2008-10-19  Bruno Haible  <bruno@clisp.org>
22857
22858         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
22859         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
22860         mingw.
22861
22862 2008-10-19  Bruno Haible  <bruno@clisp.org>
22863
22864         * lib/atanl.c: Don't include isnanl.h.
22865         * lib/cosl.c: Likewise.
22866         * lib/ldexpl.c: Likewise.
22867         * lib/logl.c: Likewise.
22868         * lib/sinl.c: Likewise.
22869         * lib/sqrtl.c: Likewise.
22870         * lib/tanl.c: Likewise.
22871
22872         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
22873         * lib/isnanf.h: Remove file.
22874         * lib/isnand.h: Remove file.
22875         * lib/isnanl.h: Remove file.
22876         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
22877         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
22878         macros.
22879         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
22880         HAVE_ISNANF, don't define it as a C macro.
22881         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
22882         HAVE_ISNAND, don't define it as a C macro.
22883         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
22884         HAVE_ISNANL, don't define it as a C macro.
22885         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
22886         HAVE_ISNAN[FDL].
22887         * modules/isnanf (Files): Remove lib/isnanf.h.
22888         (Depends-on): Add math.
22889         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22890         (Include): Specify <math.h> instead of isnanf.h.
22891         * modules/isnand (Files): Remove lib/isnand.h.
22892         (Depends-on): Add math.
22893         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22894         (Include): Specify <math.h> instead of isnand.h.
22895         * modules/isnanl (Files): Remove lib/isnanl.h.
22896         (Depends-on): Add math.
22897         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22898         (Include): Specify <math.h> instead of isnanl.h.
22899         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
22900         HAVE_ISNAN[FDL].
22901         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
22902         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
22903         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
22904         * NEWS: Mention the change.
22905
22906 2008-10-18  Bruno Haible  <bruno@clisp.org>
22907
22908         Add getusershell(), setusershell(), endusershell() declarations to
22909         <unistd.h>.
22910         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
22911         declarations.
22912         * lib/getusershell.c: Include unistd.h.
22913         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
22914         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
22915         HAVE_GETUSERSHELL.
22916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
22917         and HAVE_GETUSERSHELL.
22918         * modules/getusershell (Depends-on): Add unistd, extensions.
22919         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
22920         (Include): Specify <unistd.h>.
22921         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
22922         HAVE_GETUSERSHELL.
22923
22924 2008-10-18  Bruno Haible  <bruno@clisp.org>
22925
22926         Add a getloadavg() declaration to <stdlib.h>.
22927         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
22928         getloadavg declaration.
22929         (getloadavg): New declaration.
22930         * lib/getloadavg.c: Include <stdlib.h> first.
22931         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
22932         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
22933         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
22934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
22935         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
22936         * modules/getloadavg (Depends-on): Add stdlib, extensions.
22937         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
22938         (Include): Specify <stdlib.h>.
22939         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
22940         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
22941
22942 2008-10-18  Bruno Haible  <bruno@clisp.org>
22943
22944         * lib/dirchownmod.c: Don't include lchmod.h.
22945
22946         Move the lchmod() declaration to <sys/stat.h>.
22947         * lib/lchmod.h: Remove file.
22948         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
22949         (lchmod): New declaration, moved here from lib/lchown.h.
22950         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
22951         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
22952         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
22953         and HAVE_LCHMOD.
22954         * modules/lchmod (Files): Remove lib/lchmod.h.
22955         (Depends-on): Add sys_stat, extensions.
22956         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
22957         (Include): Specify <sys/stat.h> instead of lchmod.h.
22958         * modules/sys_stat (Depends-on): Add link-warning.
22959         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
22960         definition of GL_LINK_WARNING.
22961         * NEWS: Mention the change.
22962
22963 2008-10-18  Bruno Haible  <bruno@clisp.org>
22964
22965         * lib/fchdir.c: Don't include dirfd.h.
22966         * lib/fts.c: Likewise.
22967         * lib/getcwd.c: Likewise.
22968         * lib/glob.c: Likewise.
22969
22970         Move the dirfd() declaration to <dirent.h>.
22971         * lib/dirfd.h: Remove file.
22972         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
22973         (dirfd): New declaration.
22974         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
22975         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
22976         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
22977         HAVE_DECL_DIRFD.
22978         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
22979         HAVE_DECL_DIRFD.
22980         * modules/dirfd (Files): Remove lib/dirfd.h.
22981         (Depends-on): Add dirent, extensions.
22982         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
22983         (Include): Specify <dirent.h> instead of dirfd.h.
22984         * modules/dirent (Depends-on): Add link-warning.
22985         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
22986         definition of GL_LINK_WARNING.
22987         * NEWS: Mention the change.
22988
22989 2008-10-18  Bruno Haible  <bruno@clisp.org>
22990
22991         Move the euidaccess() declaration to <unistd.h>.
22992         * lib/euidaccess.h: Remove file.
22993         * lib/unistd.in.h (euidaccess): New declaration.
22994         * lib/euidaccess.c: Don't include euidaccess.h.
22995         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
22996         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
22997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
22998         and HAVE_EUIDACCESS.
22999         * modules/euidaccess (Files): Remove lib/euidaccess.h.
23000         (Depends-on): Add unistd.
23001         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23002         (Include): Specify <unistd.h> instead of euidaccess.h.
23003         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
23004         HAVE_EUIDACCESS.
23005         * NEWS: Mention the change.
23006
23007 2008-10-18  Bruno Haible  <bruno@clisp.org>
23008
23009         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
23010
23011         Move the getdomainname() declaration to <unistd.h>.
23012         * lib/getdomainname.h: Remove file.
23013         * lib/unistd.in.h (getdomainname): New declaration.
23014         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
23015         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23016         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
23017         HAVE_GETDOMAINNAME.
23018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23019         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
23020         * modules/getdomainname (Files): Remove lib/getdomainname.h.
23021         (Depends-on): Add unistd, extensions.
23022         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23023         (Includes): Specify <unistd.h> instead of getdomainname.h.
23024         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
23025         HAVE_GETDOMAINNAME.
23026         * NEWS: Mention the change.
23027
23028 2008-10-18  Bruno Haible  <bruno@clisp.org>
23029
23030         * modules/dirent: New file.
23031         * m4/dirent_h.m4: New file.
23032         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
23033         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
23034         * modules/fchdir (Files): Remove lib/dirent.in.h.
23035         (Depends-on): Add dirent.
23036         (Makefile.am): Move rules to modules/dirent.
23037         * doc/posix-headers/dirent.texi: Mention the new module.
23038
23039 2008-10-18  Bruno Haible  <bruno@clisp.org>
23040
23041         Avoid -Wunused-parameter warnings in public gnulib header files.
23042         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
23043         macro.
23044         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
23045
23046 2008-10-18  Bruno Haible  <bruno@clisp.org>
23047
23048         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
23049         * doc/glibc-functions/error.texi: Mention the module 'error'.
23050         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
23051         * doc/glibc-functions/getdomainname.texi: Mention the module
23052         'getdomainname'.
23053         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
23054         * doc/glibc-functions/getpagesize.texi: Mention the module
23055         'getpagesize'.
23056         * doc/glibc-functions/getusershell.texi: Mention the module
23057         'getusershell'.
23058         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
23059         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
23060         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
23061         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
23062         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
23063         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
23064         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
23065         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
23066         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
23067         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
23068         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
23069         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
23070         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
23071         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
23072
23073 2008-10-17  Bruno Haible  <bruno@clisp.org>
23074
23075         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
23076         HP-UX and IRIX, use -0.0L.
23077         * tests/test-ceill.c (minus_zero): Likewise.
23078         * tests/test-floorl.c (minus_zero): Likewise.
23079         * tests/test-frexpl.c (minus_zero): Likewise.
23080         * tests/test-isnan.c (minus_zerol): Likewise.
23081         * tests/test-isnanl.h (minus_zero): Likewise.
23082         * tests/test-ldexpl.c (minus_zero): Likewise.
23083         * tests/test-roundl.c (minus_zero): Likewise.
23084         * tests/test-signbit.c (minus_zerol): Likewise.
23085         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
23086         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
23087         * tests/test-truncl.c (minus_zero): Likewise.
23088         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
23089         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
23090         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
23091         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
23092
23093 2008-10-17  Bruno Haible  <bruno@clisp.org>
23094
23095         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
23096         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
23097         that it gets activated only for gcc >= 3.0.
23098         * lib/dirent.in.h: Likewise.
23099         * lib/errno.in.h: Likewise.
23100         * lib/fcntl.in.h: Likewise.
23101         * lib/float.in.h: Likewise.
23102         * lib/iconv.in.h: Likewise.
23103         * lib/inttypes.in.h: Likewise.
23104         * lib/locale.in.h: Likewise.
23105         * lib/math.in.h: Likewise.
23106         * lib/netdb.in.h: Likewise.
23107         * lib/netinet_in.in.h: Likewise.
23108         * lib/search.in.h: Likewise.
23109         * lib/signal.in.h: Likewise.
23110         * lib/spawn.in.h: Likewise.
23111         * lib/stdarg.in.h: Likewise.
23112         * lib/stdint.in.h: Likewise.
23113         * lib/stdio.in.h: Likewise.
23114         * lib/stdlib.in.h: Likewise.
23115         * lib/string.in.h: Likewise.
23116         * lib/strings.in.h: Likewise.
23117         * lib/sys_file.in.h: Likewise.
23118         * lib/sys_ioctl.in.h: Likewise.
23119         * lib/sys_select.in.h: Likewise.
23120         * lib/sys_socket.in.h: Likewise.
23121         * lib/sys_stat.in.h: Likewise.
23122         * lib/sys_time.in.h: Likewise.
23123         * lib/sysexits.in.h: Likewise.
23124         * lib/time.in.h: Likewise.
23125         * lib/unistd.in.h: Likewise.
23126         * lib/wchar.in.h: Likewise.
23127         * lib/wctype.in.h: Likewise.
23128         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23129
23130 2008-10-17  Jim Meyering  <meyering@redhat.com>
23131
23132         ignore-value: don't depend on inline module
23133         * modules/ignore-value (Depends-on): Remove 'inline'.
23134         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
23135         Suggestion from Bruno Haible.
23136
23137 2008-10-17  Bruno Haible  <bruno@clisp.org>
23138
23139         New implementation of condition variables for Win32.
23140         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
23141         (gl_linked_waitqueue_t): New type.
23142         (gl_cond_t): Use it.
23143         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
23144         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
23145         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
23146         (glthread_cond_init_func, glthread_cond_wait_func,
23147         glthread_cond_timedwait_func, glthread_cond_signal_func,
23148         glthread_cond_broadcast_func, glthread_cond_destroy_func):
23149         Reimplemented on the basis of gl_linked_waitqueue_t.
23150         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
23151         gl_waitqueue_t.
23152         (gl_rwlock_t): Update.
23153         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
23154
23155 2008-10-17  Simon Josefsson  <simon@josefsson.org>
23156
23157         * modules/recvfrom (Depends-on): Add dependency on getpeername.
23158         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23159
23160 2008-10-17  Jim Meyering  <meyering@redhat.com>
23161
23162         ignore-value: new module
23163         * modules/ignore-value: New file.
23164         * lib/ignore-value.h: New file.
23165         * MODULES.html.sh (Compiler warning management): New section,
23166         just for this module.  More to come.
23167
23168 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
23169
23170         open-safer.c: avoid 'signed and unsigned in conditional...' warning
23171         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
23172         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
23173
23174 2008-10-16  Jim Meyering  <meyering@redhat.com>
23175
23176         openat-die.c: avoid 'no previous prototype' warning
23177         * lib/openat-die.c: Include "openat.h".
23178         Reported by Reuben Thomas <rrt@sc3d.org>.
23179
23180 2008-10-16  Simon Josefsson  <simon@josefsson.org>
23181
23182         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
23183         * lib/netdb.in.h: Fix typo.
23184         Reported by Bruno Haible  <bruno@clisp.org>
23185
23186         * lib/netdb.in.h: Include sys/socket.h for platforms without
23187         netdb.h, to get structures like hostent on MinGW.
23188         * modules/netdb (Depends-on): Add sys_socket.
23189
23190 2008-10-15  Simon Josefsson  <simon@josefsson.org>
23191
23192         * modules/netdb, modules/netdb-tests: New file.
23193         * m4/netdb_h.m4: New file.
23194         * lib/netdb.in.h: Add, currently just an empty file pending
23195         definitions.
23196         * tests/test-netdb.c: New file.
23197         * doc/posix-headers/netdb.texi: Mention that we replace it if
23198         needed.
23199         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23200         netdb.
23201
23202 2008-10-15  Simon Josefsson  <simon@josefsson.org>
23203
23204         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
23205         with code.
23206
23207 2008-10-13  Bruno Haible  <bruno@clisp.org>
23208
23209         * lib/glthread/cond.c (glthread_cond_wait_func,
23210         glthread_cond_timedwait_func): Add a comment.
23211
23212 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
23213
23214         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
23215         * tests/test-select.c: Likewise,
23216
23217 2008-10-13  Bruno Haible  <bruno@clisp.org>
23218
23219         * lib/glthread/cond.c (glthread_cond_wait_func,
23220         glthread_cond_timedwait_func): Fix variable name.
23221         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23222
23223 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
23224
23225         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
23226         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
23227         struct sockaddr.sa_len.
23228         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
23229
23230 2008-10-13  Simon Josefsson  <simon@josefsson.org>
23231
23232         * build-aux/pmccabe2html: Add css and css_url parameters.
23233
23234 2008-10-12  Bruno Haible  <bruno@clisp.org>
23235
23236         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
23237         calling aclx_get.
23238         Reported by Rainer Tammer <tammer@tammer.net>.
23239
23240 2008-10-12  Bruno Haible  <bruno@clisp.org>
23241
23242         Use msvcrt aware primitives for creation/termination of Win32 threads.
23243         * lib/glthread/thread.c: Include <process.h>.
23244         (glthread_create_func): Use _beginthreadex instead of CreateThread.
23245         (wrapper_func): Update signature.
23246         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
23247
23248 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
23249             Bruno Haible  <bruno@clisp.org>
23250
23251         Provide a Win32 implementation of the 'cond' module.
23252         * lib/glthread/cond.h [USE_WIN32]: New implementation.
23253         * lib/glthread/cond.c (glthread_cond_init_func,
23254         glthread_cond_wait_func, glthread_cond_timedwait_func,
23255         glthread_cond_signal_func, glthread_cond_broadcast_func,
23256         glthread_cond_destroy_func) [USE_WIN32]: New functions.
23257         * modules/cond (Dependencies): Add gettimeofday.
23258
23259 2008-10-11  Bruno Haible  <bruno@clisp.org>
23260
23261         Make sleep work on older versions of mingw.
23262         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
23263         only whether it exists.
23264         * doc/posix-functions/sleep.texi: Mention the problem with older
23265         versions of mingw.
23266
23267 2008-10-11  Bruno Haible  <bruno@clisp.org>
23268
23269         New module 'shutdown'.
23270         * modules/shutdown: New file.
23271         * lib/sys_socket.in.h (shutdown): New declaration.
23272         * lib/winsock.c (shutdown): New function.
23273         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23274         GNULIB_SHUTDOWN.
23275         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
23276         * doc/posix-functions/shutdown.texi: Document the new module.
23277
23278 2008-10-11  Jim Meyering  <meyering@redhat.com>
23279
23280         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
23281
23282 2008-10-11  Bruno Haible  <bruno@clisp.org>
23283
23284         New module 'fclose'.
23285         * modules/fclose: New file.
23286         * lib/stdio.in.h (fclose): New declaration.
23287         * lib/fclose.c: New file.
23288         * m4/fclose.m4: New file.
23289         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
23290         REPLACE_FCLOSE.
23291         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
23292         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
23293         REPLACE_FCLOSE.
23294         * modules/close (Depends-on): fclose.
23295         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
23296
23297 2008-10-11  Bruno Haible  <bruno@clisp.org>
23298
23299         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
23300         set errno and don't call _close.
23301
23302 2008-10-10  Bruno Haible  <bruno@clisp.org>
23303
23304         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
23305         ACL, not afterwards. Fixes test failure on Cygwin.
23306
23307 2008-10-09  Ben Pfaff  <blp@gnu.org>
23308
23309         * build-aux/announce-gen: Fix gnulib version related part of usage
23310         message.  Die with a useful error message if no tarballs are
23311         found.
23312
23313 2008-10-10  Jim Meyering  <meyering@redhat.com>
23314
23315         bootstrap: use git's --depth=N option only if it's supported
23316         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
23317         recognize the --depth option.  Reported by Pádraig Brady.
23318
23319 2008-10-09  Bruno Haible  <bruno@clisp.org>
23320
23321         New module 'ioctl'.
23322         * modules/ioctl: New file.
23323         * lib/sys_socket.in.h (ioctl): Remove declaration.
23324         * lib/winsock.c: Include <sys/ioctl.h>.
23325         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
23326         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
23327         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
23328         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
23329         * doc/posix-functions/ioctl.texi: Mention the new module.
23330
23331 2008-10-09  Bruno Haible  <bruno@clisp.org>
23332
23333         New module 'sys_ioctl'.
23334         * lib/sys_ioctl.in.h: New file.
23335         * m4/sys_ioctl_h.m4: New file.
23336         * modules/sys_ioctl: New file.
23337         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
23338
23339 2008-10-09  Bruno Haible  <bruno@clisp.org>
23340
23341         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
23342         * lib/winsock.c: Include <stdarg.h>.
23343         (rpl_ioctl): Change to second argument 'int' and then varargs.
23344
23345 2008-10-09  Bruno Haible  <bruno@clisp.org>
23346
23347         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
23348         when the sys_socket module is present and the system has <winsock2.h>.
23349
23350 2008-10-09  Bruno Haible  <bruno@clisp.org>
23351
23352         * doc/posix-functions/close.texi: Mention module 'close' instead of
23353         module 'sys_socket'.
23354
23355 2008-10-09  Bruno Haible  <bruno@clisp.org>
23356
23357         * doc/glibc-headers/sys_ioctl.texi: New file.
23358         * doc/gnulib.texi: Include it.
23359
23360 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
23361             Bruno Haible  <bruno@clisp.org>
23362
23363         Combine the two replacements of 'close'.
23364         * lib/sys_socket.in.h (close): Define to a reminder to include
23365         <unistd.h>.
23366         (_gl_close_fd_maybe_socket): New declaration.
23367         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
23368         * lib/winsock.c (close): Remove undefinition.
23369         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
23370         needed for the gnulib module 'close'.
23371         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
23372         define to an error symbol or to a warning, if suitable.
23373         * lib/close.c: Include <sys/socket.h>.
23374         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
23375         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
23376         UNISTD_H_HAVE_WINSOCK2_H.
23377         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
23378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23379         UNISTD_H_HAVE_WINSOCK2_H.
23380         * modules/sys_socket (Files): Add m4/unistd_h.m4.
23381         (configure.ac): Set a module indicator.
23382         (Makefile.am): Substitute GNULIB_CLOSE.
23383         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
23384         * modules/poll-tests (Depends-on): Add close.
23385         * modules/select-tests (Depends-on): Likewise.
23386
23387 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
23388             Bruno Haible  <bruno@clisp.org>
23389
23390         New module 'close'.
23391         * modules/close: New file.
23392         * lib/unistd.in.h (close): Move declaration out of the
23393         FCHDIR_REPLACEMENT scope.
23394         (_gl_unregister_fd): New declaration.
23395         * lib/close.c: New file.
23396         * lib/fchdir.c (rpl_close): Remove function.
23397         * m4/close.m4: New file.
23398         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
23399         close.
23400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
23401         REPLACE_CLOSE.
23402         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
23403         REPLACE_CLOSE.
23404         * modules/fchdir (Depends-on): Add close.
23405
23406 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
23407             Bruno Haible  <bruno@clisp.org>
23408
23409         * lib/fcntl.in.h (open): Simplify conditionals.
23410         (_gl_register_fd): New declaration.
23411         * lib/fchdir.c (rpl_open): Remove function.
23412         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
23413         also.
23414         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
23415         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
23416         open.
23417
23418 2008-10-09  Jim Meyering  <meyering@redhat.com>
23419
23420         GNUmakefile: use the more name-space-friendly "_version"
23421         * top/GNUmakefile (_dummy): Update.
23422         (_version): Rename from "version".
23423
23424 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
23425             Bruno Haible  <bruno@clisp.org>
23426
23427         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
23428         rpl_close.
23429         (_gl_register_fd): New function, extracted from rpl_open.
23430         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
23431         (rpl_open, rpl_opendir): Use _gl_register_fd.
23432
23433 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
23434
23435         Fix organization of 'open' replacement.
23436         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
23437         (gl_FUNC_OPEN): Use it.
23438         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
23439
23440 2008-10-08  Bruno Haible  <bruno@clisp.org>
23441
23442         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
23443
23444 2008-10-08  Simon Josefsson  <simon@josefsson.org>
23445
23446         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
23447         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
23448         listen).
23449
23450 2008-10-08  Eric Blake  <ebb9@byu.net>
23451
23452         GNUmakefile: add 'make version' target
23453         * top/GNUmakefile (_curr-ver): Split version update rules...
23454         (version): ...into a target.
23455
23456 2008-10-07  Bruno Haible  <bruno@clisp.org>
23457
23458         Use a more portable replacement expression for -0.0L.
23459         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
23460         instead of -0.0L. Fix m4 quotation.
23461
23462         * tests/test-signbit.c: Include <float.h>.
23463         (minus_zero): New variable.
23464         (test_signbitl): Use minus_zero instead of -zero.
23465         * modules/signbit-tests (Depends-on): Add float.
23466
23467         * tests/test-ceill.c: Include <float.h>.
23468         (zero): Remove variable.
23469         (minus_zero): New variable.
23470         (main): Use minus_zero instead of -zero.
23471         * modules/ceill-tests (Depends-on): Add float.
23472
23473         * tests/test-floorl.c: Include <float.h>.
23474         (zero): Remove variable.
23475         (minus_zero): New variable.
23476         (main): Use minus_zero instead of -zero.
23477         * modules/floorl-tests (Depends-on): Add float.
23478
23479         * tests/test-roundl.c: Include <float.h>.
23480         (zero): Remove variable.
23481         (minus_zero): New variable.
23482         (main): Use minus_zero instead of -zero.
23483         * modules/roundl-tests (Depends-on): Add float.
23484
23485         * tests/test-truncl.c: Include <float.h>.
23486         (zero): Remove variable.
23487         (minus_zero): New variable.
23488         (main): Use minus_zero instead of -zero.
23489         * modules/truncl-tests (Depends-on): Add float.
23490
23491         * tests/test-frexpl.c (zero): Remove variable.
23492         (minus_zero): New variable.
23493         (main): Use minus_zero instead of -zero.
23494         * modules/frexpl-tests (Depends-on): Add float.
23495
23496         * tests/test-isnan.c (zerol): Remove variable.
23497         (minus_zerol): New variable.
23498         (test_long_double): Use minus_zerol instead of -zerol.
23499         * modules/isnan-tests (Depends-on): Add float.
23500
23501         * tests/test-isnanl.h (zero): Remove variable.
23502         (minus_zero): New variable.
23503         (main): Use minus_zero instead of -zero.
23504         * modules/isnanl-nolibm-tests (Depends-on): Add float.
23505         * modules/isnanl-tests (Depends-on): Add float.
23506
23507         * tests/test-ldexpl.c (zero): Remove variable.
23508         (minus_zero): New variable.
23509         (main): Use minus_zero instead of -zero.
23510         * modules/ldexpl-tests (Depends-on): Add float.
23511
23512         * tests/test-snprintf-posix.h (zerol): Remove variable.
23513         (minus_zerol): New variable.
23514         (test_function): Use minus_zerol instead of -zerol.
23515         * modules/snprintf-posix-tests (Depends-on): Add float.
23516         * modules/vsnprintf-posix-tests (Depends-on): Add float.
23517
23518         * tests/test-sprintf-posix.h (zerol): Remove variable.
23519         (minus_zerol): New variable.
23520         (test_function): Use minus_zerol instead of -zerol.
23521         * modules/sprintf-posix-tests (Depends-on): Add float.
23522         * modules/vsprintf-posix-tests (Depends-on): Add float.
23523
23524         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
23525         (minus_zerol): New variable.
23526         (test_function): Use minus_zerol instead of -zerol.
23527         * modules/vasnprintf-posix-tests (Depends-on): Add float.
23528
23529         * tests/test-vasprintf-posix.c (zerol): Remove variable.
23530         (minus_zerol): New variable.
23531         (test_function): Use minus_zerol instead of -zerol.
23532         * modules/vasprintf-posix-tests (Depends-on): Add float.
23533
23534 2008-10-07  Simon Josefsson  <simon@josefsson.org>
23535
23536         * MODULES.html.sh (Support for building documentation): Mention
23537         pmccabe2html.  Sort entries.
23538
23539         Add pmccabe2html module, from gnupdf.
23540         * build-aux/pmccabe.css: New file.
23541         * build-aux/pmccabe2html: New file.
23542         * m4/pmccabe2html.m4: New file.
23543         * modules/pmccabe2html: New file.
23544
23545 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
23546
23547         flock: new module
23548         * MODULES.html.sh: Add to list of modules.
23549         * lib/flock.c: flock implementation for Windows and Unix systems
23550         which have fcntl.
23551         * doc/glibc-functions/flock.texi: Update documentation.
23552         * lib/sys_file.in.h: <sys/file.h> header file.
23553         * m4/flock.m4: M4 macros.
23554         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
23555         * modules/flock: flock module.
23556         * modules/flock-tests: flock tests module.
23557         * modules/sys_file: sys/file.h module.
23558         * tests/test-flock.c: test suite for flock.
23559
23560 2008-10-06  Jim Meyering  <meyering@redhat.com>
23561
23562         bootstrap: check for LT_INIT more portably still ;-)
23563         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
23564         Spotted by Bruno Haible.
23565
23566 2008-10-06  Eric Blake  <ebb9@byu.net>
23567
23568         test-signbit: avoid tripping Irix cc bug on -0.0L
23569         * tests/test-signbit.c (minus_zerol): Delete, and replace with
23570         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
23571         entire testsuite consistent and avoids an Irix 6.2 bug.
23572
23573 2008-10-05  Bruno Haible  <bruno@clisp.org>
23574             Jim Meyering  <jim@meyering.net>
23575
23576         Add an option for ignoring EPIPE during close_stdout.
23577         * lib/closeout.h: Include <stdbool.h>.
23578         (close_stdout_set_ignore_EPIPE): New declaration.
23579         * lib/closeout.c: Include <stdbool.h>.
23580         (ignore_EPIPE): New variable.
23581         (close_stdout_set_ignore_EPIPE): New function.
23582         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
23583         * lib/close-stream.c (close_stream): Mention the possible EPIPE
23584         failure.
23585         * modules/closeout (Depends-on): Add stdbool.
23586
23587 2008-10-05  Bruno Haible  <bruno@clisp.org>
23588
23589         * modules/accept: New file.
23590         * modules/bind: New file.
23591         * modules/connect: New file.
23592         * modules/getpeername: New file.
23593         * modules/getsockname: New file.
23594         * modules/getsockopt: New file.
23595         * modules/listen: New file.
23596         * modules/recv: New file.
23597         * modules/recvfrom: New file.
23598         * modules/send: New file.
23599         * modules/sendto: New file.
23600         * modules/setsockopt: New file.
23601         * modules/socket: New file.
23602         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
23603         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
23604         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
23605         the particular module is requested. Add a link warning when the
23606         particular module is not requested.
23607         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
23608         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
23609         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
23610         the particular module is requested.
23611         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
23612         gl_SYS_SOCKET_H_DEFAULTS): New macros.
23613         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
23614         * modules/sys_socket (Depends-on): Add link-warning.
23615         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
23616         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
23617         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
23618         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
23619         GL_LINK_WARNING.
23620         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
23621         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
23622         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
23623         * doc/posix-functions/getpeername.texi: Mention the new module
23624         'getpeername'.
23625         * doc/posix-functions/getsockname.texi: Mention the new module
23626         'getsockname'.
23627         * doc/posix-functions/getsockopt.texi: Mention the new module
23628         'getsockopt'.
23629         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
23630         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
23631         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
23632         * doc/posix-functions/send.texi: Mention the new module 'send'.
23633         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
23634         * doc/posix-functions/setsockopt.texi: Mention the new module
23635         'setsockopt'.
23636         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
23637         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
23638         listen, connect, accept.
23639         * modules/select-tests (Depends-on): Likewise.
23640
23641 2008-10-05  Bruno Haible  <bruno@clisp.org>
23642
23643         * lib/winsock.c (strerror): Remove unused #undef.
23644         (rpl_close): Remove unused local variable.
23645
23646         * modules/sys_socket (Depends-on); Add errno.
23647
23648 2008-10-05  Bruno Haible  <bruno@clisp.org>
23649
23650         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
23651         (select): Add a link warning when the 'select' module is not used.
23652         * modules/sys_select (Depends-on): Add link-warning.
23653         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
23654         Suggested by Paolo Bonzini.
23655
23656 2008-10-05  Jim Meyering  <meyering@redhat.com>
23657
23658         bootstrap: check for LT_INIT more portably
23659         * build-aux/bootstrap: Avoid using grep -E, since it's not
23660         portable enough.  Suggestion from Bruno Haible.
23661
23662 2008-10-05  Bruno Haible  <bruno@clisp.org>
23663
23664         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
23665         as being fixed by gnulib.
23666
23667 2008-10-05  Bruno Haible  <bruno@clisp.org>
23668
23669         * modules/select-tests: New file, mostly copied from
23670         modules/sys_select-tests.
23671         * tests/test-select.c: New file, mostly copied from
23672         tests/test-sys_select.c.
23673         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
23674         * modules/sys_select-tests (Depends-on): Remove all dependencies.
23675         (Makefile.am): Remove test_sys_select_LDADD.
23676
23677         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
23678         to an undefined symbol, for an error message.
23679         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
23680         (gl_SYS_SELECT_H_DEFAULTS): New macro.
23681         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
23682         winsock-select.c here.
23683         * modules/sys_select (Files): Remove lib/winsock-select.c.
23684         (Depends-on): Remove alloca.
23685         (Makefile.am): Substitute GNULIB_SELECT.
23686         * modules/select: New file.
23687         * doc/posix-functions/select.texi: Update.
23688
23689 2008-10-05  Bruno Haible  <bruno@clisp.org>
23690
23691         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
23692         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
23693         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
23694         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
23695         getdtablesize.
23696         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
23697         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
23698
23699 2008-10-05  Bruno Haible  <bruno@clisp.org>
23700
23701         * modules/getdtablesize-tests: New file.
23702         * tests/test-getdtablesize.c: New file.
23703
23704         New module 'getdtablesize'.
23705         * lib/unistd.in.h (getdtablesize): New declaration.
23706         * lib/getdtablesize.c: New file.
23707         * m4/getdtablesize.m4: New file.
23708         * modules/getdtablesize: New file.
23709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23710         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
23711         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
23712         HAVE_GETDTABLESIZE.
23713         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
23714
23715 2008-10-05  Bruno Haible  <bruno@clisp.org>
23716
23717         * modules/sched (Makefile.am): Fix typo.
23718         Reported by Simon Josefsson.
23719
23720 2008-10-05  Jim Meyering  <meyering@redhat.com>
23721
23722         bootstrap: check for LT_INIT, too
23723         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
23724         are deprecated.  Suggestion from Ralf Wildenhues.
23725
23726 2008-10-05  Bruno Haible  <bruno@clisp.org>
23727
23728         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
23729         overriding them by ours.
23730         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
23731
23732 2008-10-05  Jim Meyering  <meyering@redhat.com>
23733
23734         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
23735         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
23736         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
23737
23738 2008-10-04  Bruno Haible  <bruno@clisp.org>
23739
23740         * modules/dup2 (License): Change to LGPLv2+.
23741         * modules/sleep (License): Likewise.
23742         * modules/perror (License): Likewise.
23743         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
23744         Blake.
23745         * modules/signal (License): Likewise.
23746         * modules/sigprocmask (License): Likewise.
23747         * modules/raise (License): Change to LGPLv2+, with approval by Jim
23748         Meyering.
23749
23750 2008-10-04  Bruno Haible  <bruno@clisp.org>
23751
23752         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
23753         Reported by Rainer Tammer <tammer@tammer.net>.
23754
23755 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
23756             Bruno Haible  <bruno@clisp.org>
23757
23758         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
23759         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
23760         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
23761
23762 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
23763
23764         filevercmp: new module
23765         * lib/filevercmp.h: New function filevercmp comparing version strings.
23766         * lib/filevercmp.c: Implementation of filevercmp function.
23767         * modules/filevercmp: Module metadata.
23768         * tests/test-filevercmp.c: Unit test for new module.
23769         * modules/filevercmp-tests: Unit test metadata.
23770         * MODULES.html.sh: Add filevercmp module.
23771
23772 2008-10-03  Bruno Haible  <bruno@clisp.org>
23773
23774         * lib/c-ctype.h: Add comment.
23775         Reported by Jim Meyering.
23776
23777 2008-10-02  Bruno Haible  <bruno@clisp.org>
23778
23779         * modules/posix_spawn-internal (Depends-on): Add 'open'.
23780
23781 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
23782
23783         * build-aux/bootstrap: Allow renaming bootstrap, and change the
23784         name of bootstrap.conf accordingly.
23785
23786 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
23787
23788         * build-aux/bootstrap: Install git-merge-changelog configuration
23789         items into .gitconfig if needed.
23790
23791 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
23792
23793         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
23794         git repository, and initialize/update it accordingly.
23795
23796 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
23797
23798         * modules/fsync-tests: New file.
23799         * tests/test-fsync.c: New file.
23800
23801         New module 'fsync'.
23802         * lib/fsync.c: New file.
23803         * m4/fsync.m4: New file.
23804         * modules/fsync: New file.
23805         * lib/unistd.in.h (fsync): New declaration.
23806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
23807         GNULIB_FSYNC and HAVE_FSYNC.
23808         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
23809         * MODULES.html.sh (posix_functions): Add fsync.
23810         * doc/posix-functions/fsync.texi: Mention the new module.
23811
23812 2008-10-02  Jim Meyering  <meyering@redhat.com>
23813
23814         fts.c: sync with similar code from coreutils' remove.c
23815         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
23816         Guard also with "#if defined __linux__", since for now at least,
23817         this code is Linux-kernel-specific.
23818
23819 2008-10-02  Jim Meyering  <meyering@redhat.com>
23820
23821         fts: bug fixes
23822         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
23823         Include <sys/vfs.h>, not <sys/statfs.h>.
23824
23825         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
23826         Include <sys/vfs.h>, not <sys/statfs.h>.
23827
23828 2008-10-01  Bruno Haible  <bruno@clisp.org>
23829
23830         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
23831         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
23832         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
23833         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
23834         * doc/posix-functions/posix_spawnp.texi: Likewise.
23835         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
23836         whether posix_spawn actually works.
23837         * m4/pipe.m4 (gl_PIPE): Likewise.
23838         * modules/execute (Files): Add m4/posix_spawn.m4.
23839         * modules/pipe (Files): Add m4/posix_spawn.m4.
23840         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
23841
23842 2008-10-01  Jim Meyering  <meyering@redhat.com>
23843
23844         remove trailing spaces
23845         * NEWS: Likewise.
23846         * lib/poll.c (poll): Likewise.
23847         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
23848         * lib/winsock.c (rpl_close): Likewise.
23849         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
23850         * modules/yield: Likewise.
23851         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
23852         * tests/test-sys_select.c (connect_to_socket): Likewise.
23853
23854         fts.c: adjust a new interface to be more generally useful
23855         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
23856         (fts_build): Adjust caller.
23857
23858 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23859
23860         * modules/cond-tests: New file.
23861         * tests/test-cond.c: New file.
23862
23863 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23864             Bruno Haible  <bruno@clisp.org>
23865
23866         * modules/cond (Dependencies): Add errno, time.
23867         * lib/glthread/cond.h: Include <time.h>.
23868         (gl_cond_define, gl_cond_define_initialized): Use the same definition
23869         across platforms.
23870
23871 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23872             Bruno Haible  <bruno@clisp.org>
23873
23874         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
23875
23876 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23877             Bruno Haible  <bruno@clisp.org>
23878
23879         * modules/tls-tests (Depends-on): Add thread, yield.
23880         (configure.ac): Remove all checks.
23881         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
23882         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
23883         gl_thread_self): Remove definitions. Include glthread/thread.h and
23884         glthread/yield.h instead.
23885         (test_tls): Pass an additional NULL argument to gl_thread_join.
23886
23887 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23888             Bruno Haible  <bruno@clisp.org>
23889
23890         * modules/lock-tests (Depends-on): Add thread, yield.
23891         (configure.ac): Remove all checks.
23892         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
23893         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
23894         gl_thread_self): Remove definitions. Include glthread/thread.h and
23895         glthread/yield.h instead.
23896         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
23897         additional NULL argument to gl_thread_join.
23898
23899 2008-09-30  Bruno Haible  <bruno@clisp.org>
23900
23901         Fix the Win32 implementation of the 'thread' module.
23902         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
23903         pointer type.
23904         (gl_thread_self): Invoke gl_thread_self_func.
23905         (gl_thread_self_func): New declaration.
23906         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
23907         (do_init_self_key, init_self_key): New functions.
23908         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
23909         Remove some fields.
23910         (running_threads, running_lock): Remove variables.
23911         (get_current_thread_handle): New function.
23912         (gl_thread_self_func, wrapper_func, glthread_create_func,
23913         glthread_join_func, gl_thread_exit_func): Largely rewritten and
23914         simplified.
23915
23916 2008-09-30  Bruno Haible  <bruno@clisp.org>
23917
23918         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
23919         files.
23920
23921 2008-09-30  Jim Meyering  <meyering@redhat.com>
23922
23923         fts.m4: correct the test for statfs.f_type
23924         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
23925         when checking for statfs.f_type.
23926
23927 2008-09-15  Simon Josefsson  <simon@josefsson.org>
23928
23929         tests: avoid some compiler warnings
23930         * tests/test-memchr.c (main): Pass NULL indirectly.
23931         * tests/test-getdate.c (main): Remove unused variable 'ret'.
23932
23933 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
23934
23935         getdate.y: disallow countable dayshifts like "4 yesterday ago"
23936         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
23937         exactly specified dayshifts.
23938         (dayshift): New rule.
23939         (rel): Add dayshift.
23940         (relative_time_table) [tomorrow, yesterday, today, now]:
23941         Use tDAY_SHIFT in place of tDAY_UNIT.
23942         * tests/test-getdate.c: Add tests for now-disallowed countable
23943         dayshifts, e.g., "4 yesterday ago".
23944
23945 2008-09-29  Bruno Haible  <bruno@clisp.org>
23946
23947         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
23948         * tests/test-posix_spawn1.in.sh: Renamed from
23949         tests/test-posix_spawn.in.sh.
23950         * tests/test-posix_spawn2.c: New file.
23951         * tests/test-posix_spawn2.in.sh: New file.
23952         * modules/posix_spawnp-tests (Files): Update.
23953         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
23954
23955 2008-09-29  Bruno Haible  <bruno@clisp.org>
23956
23957         Propagate effects of putenv/setenv/unsetenv to child processes.
23958         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
23959         * lib/pipe.c (create_pipe): Likewise.
23960
23961 2008-09-29  Bruno Haible  <bruno@clisp.org>
23962
23963         Enable use of shell scripts as executables in mingw.
23964         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
23965         run the program as a shell script.
23966         * lib/pipe.c (create_pipe): Likewise.
23967         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
23968         resulting array.
23969
23970 2008-09-29  Eric Blake  <ebb9@byu.net>
23971
23972         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
23973
23974 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
23975
23976         * doc/posix-functions/accept.texi: Update mingw problems.
23977         * doc/posix-functions/bind.texi: Update mingw problems.
23978         * doc/posix-functions/close.texi: Update mingw problems.
23979         * doc/posix-functions/connect.texi: Update mingw problems.
23980         * doc/posix-functions/getpeername.texi: Update mingw problems.
23981         * doc/posix-functions/getsockname.texi: Update mingw problems.
23982         * doc/posix-functions/getsockopt.texi: Update mingw problems.
23983         * doc/posix-functions/ioctl.texi: Update mingw problems.
23984         * doc/posix-functions/listen.texi: Update mingw problems.
23985         * doc/posix-functions/recv.texi: Update mingw problems.
23986         * doc/posix-functions/recvfrom.texi: Update mingw problems.
23987         * doc/posix-functions/select.texi: Update mingw problems.
23988         * doc/posix-functions/send.texi: Update mingw problems.
23989         * doc/posix-functions/sendto.texi: Update mingw problems.
23990         * doc/posix-functions/setsockopt.texi: Update mingw problems.
23991         * doc/posix-functions/socket.texi: Update mingw problems.
23992
23993 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
23994             Bruno Haible  <bruno@clisp.org>
23995
23996         * lib/sys_select.in.h: Include sys/time.h.
23997         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
23998         * modules/sys_select: Depend on sys_time.
23999         * tests/test-sys_select.c: Test that sys/select.h defines struct
24000         timeval fully.
24001
24002 2008-09-29  Bruno Haible  <bruno@clisp.org>
24003
24004         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
24005         * lib/sys_select.in.h: Likewise.
24006
24007 2008-09-29  Bruno Haible  <bruno@clisp.org>
24008
24009         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
24010
24011 2008-09-29  Bruno Haible  <bruno@clisp.org>
24012
24013         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
24014         Set LIBSOCKET instead of augmenting LIBS.
24015         * modules/sockets (Link): New section.
24016         * modules/sockets-tests (test_sockets_LDADD): New variable.
24017         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
24018         * modules/poll-tests (test_poll_LDADD): New variable.
24019         * NEWS: Document the change.
24020
24021 2008-09-29  Bruno Haible  <bruno@clisp.org>
24022
24023         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
24024         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
24025         ARPA_INET_H directly.
24026         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24027
24028 2008-09-28  Bruno Haible  <bruno@clisp.org>
24029
24030         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
24031         from gl_HEADER_SYS_SOCKET.
24032         (gl_HEADER_SYS_SOCKET): Invoke it.
24033         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24034
24035 2008-09-28  Bruno Haible  <bruno@clisp.org>
24036
24037         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
24038         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
24039         Needed on OSF/1 4.0.
24040
24041 2008-09-28  Bruno Haible  <bruno@clisp.org>
24042
24043         Override open more carefully.
24044         * lib/open.c (orig_open): New function.
24045         (rpl_open): Use orig_open instead of open.
24046         * lib/fcntl.in.h: Add special invocation convention.
24047         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
24048         (gl_FUNC_OPEN): Invoke it.
24049
24050         Override freopen more carefully.
24051         * lib/freopen.c (orig_freopen): New function.
24052         (rpl_freopen): Use orig_freopen instead of freopen.
24053         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
24054         (gl_FUNC_FREOPEN): Invoke it.
24055
24056         Override fopen more carefully.
24057         * lib/fopen.c (orig_fopen): New function.
24058         (rpl_fopen): Use orig_fopen instead of fopen.
24059         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
24060         (gl_FUNC_FOPEN): Invoke it.
24061         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
24062
24063 2008-09-28  Bruno Haible  <bruno@clisp.org>
24064
24065         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
24066         SIGPIPE.
24067
24068 2008-09-28  Bruno Haible  <bruno@clisp.org>
24069
24070         * tests/test-sigaction.c (handler, main): Disable the check whether
24071         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
24072         glibc systems with LinuxThreads.
24073
24074 2008-09-28  Bruno Haible  <bruno@clisp.org>
24075
24076         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
24077
24078         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
24079         with AIX xlc.
24080         * lib/fcntl.in.h (open): Likewise.
24081         Reported by Rainer Tammer <tammer@tammer.net>.
24082
24083 2008-09-28  Bruno Haible  <bruno@clisp.org>
24084
24085         * modules/posix_spawnp-tests: New file.
24086         * tests/test-posix_spawn.c: New file.
24087         * tests/test-posix_spawn.in.sh: New file.
24088
24089         New module 'posix_spawnp'.
24090         * modules/posix_spawnp: New file.
24091         * lib/spawnp.c: New file, from GNU libc with modifications.
24092         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
24093
24094         New module 'posix_spawn'.
24095         * modules/posix_spawn: New file.
24096         * lib/spawn.c: New file, from GNU libc with modifications.
24097         * doc/posix-functions/posix_spawn.texi: Mention the new module.
24098
24099         New module 'posix_spawnattr_destroy'.
24100         * modules/posix_spawnattr_destroy: New file.
24101         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
24102         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
24103         module.
24104
24105         New module 'posix_spawnattr_setsigmask'.
24106         * modules/posix_spawnattr_setsigmask: New file.
24107         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
24108         modifications.
24109         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
24110         new module.
24111
24112         New module 'posix_spawnattr_getsigmask'.
24113         * modules/posix_spawnattr_getsigmask: New file.
24114         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
24115         modifications.
24116         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
24117         new module.
24118
24119         New module 'posix_spawnattr_setsigdefault'.
24120         * modules/posix_spawnattr_setsigdefault: New file.
24121         * lib/spawnattr_setdefault.c: New file, from GNU libc with
24122         modifications.
24123         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
24124         new module.
24125
24126         New module 'posix_spawnattr_getsigdefault'.
24127         * modules/posix_spawnattr_getsigdefault: New file.
24128         * lib/spawnattr_getdefault.c: New file, from GNU libc with
24129         modifications.
24130         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
24131         new module.
24132
24133         New module 'posix_spawnattr_setschedpolicy'.
24134         * modules/posix_spawnattr_setschedpolicy: New file.
24135         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
24136         modifications.
24137         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
24138         new module.
24139
24140         New module 'posix_spawnattr_getschedpolicy'.
24141         * modules/posix_spawnattr_getschedpolicy: New file.
24142         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
24143         modifications.
24144         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
24145         new module.
24146
24147         New module 'posix_spawnattr_setschedparam'.
24148         * modules/posix_spawnattr_setschedparam: New file.
24149         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
24150         modifications.
24151         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
24152         new module.
24153
24154         New module 'posix_spawnattr_getschedparam'.
24155         * modules/posix_spawnattr_getschedparam: New file.
24156         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
24157         modifications.
24158         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
24159         new module.
24160
24161         New module 'posix_spawnattr_setpgroup'.
24162         * modules/posix_spawnattr_setpgroup: New file.
24163         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
24164         modifications.
24165         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
24166         module.
24167
24168         New module 'posix_spawnattr_getpgroup'.
24169         * modules/posix_spawnattr_getpgroup: New file.
24170         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
24171         modifications.
24172         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
24173         module.
24174
24175         New module 'posix_spawnattr_setflags'.
24176         * modules/posix_spawnattr_setflags: New file.
24177         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
24178         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
24179         module.
24180
24181         New module 'posix_spawnattr_getflags'.
24182         * modules/posix_spawnattr_getflags: New file.
24183         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
24184         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
24185         module.
24186
24187         New module 'posix_spawnattr_init'.
24188         * modules/posix_spawnattr_init: New file.
24189         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
24190         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
24191         module.
24192
24193         New module 'posix_spawn_file_actions_destroy'.
24194         * modules/posix_spawn_file_actions_destroy: New file.
24195         * lib/spawn_faction_destroy.c: New file, from GNU libc with
24196         modifications.
24197         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
24198         the new module.
24199
24200         New module 'posix_spawn_file_actions_addopen'.
24201         * modules/posix_spawn_file_actions_addopen: New file.
24202         * lib/spawn_faction_addopen.c: New file, from GNU libc with
24203         modifications.
24204         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
24205         the new module.
24206
24207         New module 'posix_spawn_file_actions_adddup2'.
24208         * modules/posix_spawn_file_actions_adddup2: New file.
24209         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
24210         modifications.
24211         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
24212         the new module.
24213
24214         New module 'posix_spawn_file_actions_addclose'.
24215         * modules/posix_spawn_file_actions_addclose: New file.
24216         * lib/spawn_faction_addclose.c: New file, from GNU libc with
24217         modifications.
24218         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
24219         the new module.
24220
24221         New module 'posix_spawn_file_actions_init'.
24222         * modules/posix_spawn_file_actions_init: New file.
24223         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
24224         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
24225         new module.
24226
24227         New module 'posix_spawn-internal'.
24228         * modules/posix_spawn-internal: New file.
24229         * lib/spawn_int.h: New file, from GNU libc with modifications.
24230         * lib/spawni.c: New file, from GNU libc with modifications.
24231         * m4/posix_spawn.m4: New file.
24232
24233         New module 'spawn'.
24234         * modules/spawn: New file.
24235         * lib/spawn.in.h: New file, from GNU libc with modifications.
24236         * m4/spawn_h.m4: New file.
24237         * doc/posix-headers/spawn.texi: Mention the new module.
24238
24239 2008-09-28  Bruno Haible  <bruno@clisp.org>
24240
24241         * modules/sched-tests: New file.
24242         * tests/test-sched.c: New file.
24243
24244         New module 'sched'.
24245         * modules/sched: New file.
24246         * lib/sched.in.h: New file.
24247         * m4/sched_h.m4: New file.
24248         * doc/posix-headers/sched.texi: Mention the new module.
24249
24250 2008-09-27  Eric Blake  <ebb9@byu.net>
24251
24252         Fix previous patch, and tweak references to $0.
24253         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
24254         (func_version, func_gnulib_dir): Don't call this program
24255         gnulib-tool.
24256         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
24257         with using $0 in function.
24258         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
24259         (func_fatal_error): Reuse the name the user invoked us with.
24260
24261 2008-09-27  Bruno Haible  <bruno@clisp.org>
24262
24263         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
24264         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
24265         (gl_ICONV_H): Not here.
24266         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
24267         instead of assigning ICONV_H directly.
24268
24269         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
24270         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
24271         WCHAR_H directly.
24272
24273 2008-09-27  Bruno Haible  <bruno@clisp.org>
24274
24275         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
24276         * modules/arpa_inet (Depends-on): Add link-warning.
24277         (Makefile.am): Insert the definition of GL_LINK-WARNING.
24278         * modules/unistd (Makefile.am): Likewise.
24279
24280 2008-09-26  Bruno Haible  <bruno@clisp.org>
24281
24282         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
24283         variables.
24284         (func_version): Essentially copied from gnulib-tool.
24285         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
24286         func_readlink): Copied from gnulib-tool.
24287
24288 2008-09-26  Bruno Haible  <bruno@clisp.org>
24289
24290         * gnulib-tool (func_version): Change directory to $gnulib_dir before
24291         invoking git-version-gen.
24292
24293 2008-09-26  Bruno Haible  <bruno@clisp.org>
24294
24295         * posix-modules: Update to directory names changed on 2008-01-19.
24296         Remove commas in output before splitting into words. No more need to
24297         avoid 'ftruncate' since 2007-02-19.
24298
24299 2008-09-26  Bruno Haible  <bruno@clisp.org>
24300
24301         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
24302
24303 2008-09-26  Bruno Haible  <bruno@clisp.org>
24304
24305         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
24306         * modules/fwriteerror (Depends-on): Add errno.
24307
24308 2008-09-26  Bruno Haible  <bruno@clisp.org>
24309
24310         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
24311         * tests/test-vc-list-files-cvs.sh: Likewise.
24312
24313 2008-09-26  Bruno Haible  <bruno@clisp.org>
24314
24315         * doc/posix-headers/sys_resource.texi: Reorder items.
24316
24317 2008-09-26  Jim Meyering  <meyering@redhat.com>
24318
24319         fts: tweak inode comparison function
24320         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
24321         inode numbers, as documented.
24322
24323         fts: sort dirent entries on inode number before traversing
24324         This avoids a quadratic, seek-related performance penalty when
24325         operating on a directory containing many entries (measurable at 10k;
24326         3.5 hours at 2 million entries with a cold cache) on certain types
24327         of file systems, including ext3 and ext4, but not tmpfs.
24328         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
24329         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
24330         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
24331         (fs_handles_readdir_ordered_dirents_efficiently): New function.
24332         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
24333         (fts_build): Set the stat.st_ino member from D_INO.
24334         If it is likely to be useful, sort dirent entries on inode number.
24335
24336         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
24337         and the struct statfs.f_type member.
24338         * modules/fts (Depends-on): Add d-ino.
24339
24340 2008-09-26  Bruno Haible  <bruno@clisp.org>
24341
24342         * modules/sigpipe-die (Depends-on): Add sigpipe.
24343
24344         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
24345         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
24346         and GNULIB_STDIO_H_SIGPIPE are set.
24347         * lib/stdio-write.c: New file.
24348         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
24349         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
24350         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
24351         REPLACE_STDIO_WRITE_FUNCS.
24352         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
24353         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
24354         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
24355         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
24356         * modules/stdio (Files): Add lib/stdio-write.c.
24357         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
24358         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
24359         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
24360         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
24361         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
24362         REPLACE_FPRINTF_POSIX.
24363         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
24364         REPLACE_PRINTF_POSIX.
24365         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
24366         REPLACE_VFPRINTF_POSIX.
24367         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
24368         REPLACE_VPRINTF_POSIX.
24369         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
24370         SIGPIPE issue.
24371         * doc/posix-functions/fputc.texi: Likewise.
24372         * doc/posix-functions/fputs.texi: Likewise.
24373         * doc/posix-functions/fwrite.texi: Likewise.
24374         * doc/posix-functions/printf.texi: Likewise.
24375         * doc/posix-functions/putc.texi: Likewise.
24376         * doc/posix-functions/putchar.texi: Likewise.
24377         * doc/posix-functions/puts.texi: Likewise.
24378         * doc/posix-functions/vfprintf.texi: Likewise.
24379         * doc/posix-functions/vprintf.texi: Likewise.
24380
24381         * modules/safe-write (Depends-on): Add write.
24382
24383         * modules/sigpipe-tests: New file.
24384         * tests/test-sigpipe.c: New file.
24385         * tests/test-sigpipe.sh: New file.
24386
24387         * modules/write: New file.
24388         * lib/unistd.in.h: Include <sys/types.h>.
24389         (write): New declaration.
24390         * lib/write.c: New file.
24391         * m4/write.m4: New file.
24392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24393         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
24394         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
24395         GNULIB_WRITE, REPLACE_WRITE.
24396         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
24397         and the SIGPIPE issue.
24398
24399         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
24400         (raise): New declaration.
24401         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
24402         (ext_signal): New function.
24403         (rpl_raise): New function.
24404         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
24405         GNULIB_SIGNAL_H_SIGPIPE.
24406         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
24407         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
24408
24409         * modules/sigpipe: New file.
24410         * m4/sigpipe.m4: New file.
24411
24412 2008-09-25  Derek Price  <derek@ximbiot.com>
24413             Bruno Haible  <bruno@clisp.org>
24414
24415         * gnulib-tool (func_import): Report all license incompatibilities, not
24416         just the first one.
24417
24418 2008-09-25  Bruno Haible  <bruno@clisp.org>
24419
24420         * gnulib-tool (func_import): When computing the edits, consider not
24421         only the Makefile.ams that exist but also those that will be generated.
24422
24423 2008-09-25  Simon Josefsson  <simon@josefsson.org>
24424
24425         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
24426         fixes gnulib-tool --test warning about duplicate dependency.
24427
24428 2008-09-25  Bruno Haible  <bruno@clisp.org>
24429
24430         * gnulib-tool: Don't ask the user to perform edits in the generated
24431         Makefile.ams.
24432         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
24433         apply to the Makefile.am being generated.
24434         (func_emit_tests_Makefile_am): Execute edits that apply to the
24435         Makefile.am being generated.
24436         (func_import): Setup list of Makefile.am edits before emitting the
24437         Makefile.ams, not at the end.
24438         (func_create_testdir): Update.
24439         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24440
24441 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24442
24443         * gnulib-tool (func_import): Store the --tests-base option in the
24444         comment in gnulib-cache.m4.
24445
24446 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
24447
24448         * NEWS: Document increased portability that sys_select now provides.
24449
24450         * lib/sys_select.in.h: Install select wrapper.
24451         * lib/sys_socket.in.h: Use more descriptive name when there is no
24452         select wrapper.
24453         * lib/winsock-select.c: New.
24454         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
24455         Require gl_HEADER_SYS_SOCKET.
24456         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
24457         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
24458         * tests/test-sys_select.c: Add functional tests.
24459
24460 2008-09-24  Eric Blake  <ebb9@byu.net>
24461
24462         open, fopen: close fd leak in last patch
24463         * lib/open.c (rpl_open): Close fd before returning error.
24464         * lib/fopen.c (rpl_fopen): Close fd before returning error.
24465         * doc/posix-functions/open.texi (open): Document that Irix also
24466         has the bug.
24467         * doc/posix-functions/fopen.texi (fopen): Likewise.
24468         Reported by Paolo Bonzini.
24469
24470 2008-09-24  Bruno Haible  <bruno@clisp.org>
24471
24472         Ensure that a filename ending in a slash cannot be used to access a
24473         non-directory.
24474         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
24475         to check whether it's really a directory.
24476         * lib/fopen.c: Include fcntl.h, unistd.h.
24477         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
24478         and fdopen().
24479         * modules/fopen (Depends-on): Add unistd.
24480         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
24481         * tests/test-fopen.c (main): Likewise.
24482         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
24483         * doc/posix-functions/fopen.texi: Likewise.
24484         Reported by Eric Blake.
24485
24486 2008-09-23  Eric Blake  <ebb9@byu.net>
24487
24488         c-stack: avoid compiler optimizations when provoking overflow
24489         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
24490         recursion harder to optimize, to ensure a stack overflow occurs.
24491         * tests/test-c-stack.c (recurse): Likewise.
24492         Borrowed from libsigsegv.
24493
24494         c-stack: work around Irix sigaltstack bug
24495         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
24496         whether sigaltstack uses wrong end of stack_t (copied in part from
24497         libsigsegv).
24498         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
24499         Irix bug, without requiring an over-allocation.
24500         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
24501         bug.
24502
24503         fopen: document mingw bug on directories
24504         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
24505         not allowing a stream visiting a directory, even though reading
24506         from such a stream is not portable.
24507
24508 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
24509
24510         * lib/poll.c: Rewrite.
24511         * modules/poll: Depend on alloca.
24512
24513 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
24514
24515         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
24516         instead define prototypes for a full set of wrappers.  Ensure
24517         that Cygwin does not use the compatibility code, which is only
24518         for MinGW.
24519         * lib/winsock.c: New.
24520         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
24521         * modules/sys_socket: Add lib/winsock.c.
24522
24523         * modules/poll-tests: Add errno and perror.
24524         * tests/test-poll.c: Use ioctl, not ioctlsocket.
24525
24526 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
24527
24528         * tests/test-poll.c: Downgrade minimum needed Winsock version.
24529
24530 2008-09-23  Bruno Haible  <bruno@clisp.org>
24531
24532         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
24533         * doc/glibc-functions/*: Likewise.
24534
24535 2008-09-23  Simon Josefsson  <simon@josefsson.org>
24536
24537         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
24538         success.
24539
24540 2008-09-22  Eric Blake  <ebb9@byu.net>
24541             Bruno Haible  <bruno@clisp.org>
24542
24543         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
24544         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
24545         supply %A but mishandle pseudo-NaN.
24546         Reported by Simon Josefsson.
24547
24548 2008-09-21  Bruno Haible  <bruno@clisp.org>
24549
24550         * tests/test-lock.c (main): Tweak skip message.
24551         * tests/test-tls.c (main): Likewise.
24552
24553 2008-09-21  Bruno Haible  <bruno@clisp.org>
24554
24555         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
24556         whether 'struct sigaction' has sa_sigaction here...
24557         (gl_PREREQ_SIG_HANDLER_H): ... not here.
24558         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
24559
24560 2008-09-21  Bruno Haible  <bruno@clisp.org>
24561
24562         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
24563         section.
24564         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
24565         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
24566         the new section.
24567         (Support for obsolete systems lacking POSIX:2001): New section.
24568         (String handling <string.h>): Move strdup to the new section.
24569         Suggested by Simon Josefsson and Paolo Bonzini.
24570
24571 2008-09-21  Bruno Haible  <bruno@clisp.org>
24572
24573         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
24574         exponents in %e and %g results on 'long double'. Needed for mingw's
24575         improved *printf functions.
24576         * tests/test-vasprintf-posix.c (test_function): Likewise.
24577         * tests/test-snprintf-posix.h (test_function): Likewise.
24578         * tests/test-sprintf-posix.h (test_function): Likewise.
24579         Reported by Eric Blake.
24580
24581 2008-09-21  Bruno Haible  <bruno@clisp.org>
24582
24583         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
24584         * tests/test-sprintf-posix.h (test_function): Likewise.
24585
24586 2008-09-21  Bruno Haible  <bruno@clisp.org>
24587
24588         * modules/getpass (Depends-on): Add strdup-posix.
24589
24590         New module 'strdup-posix'.
24591         * modules/strdup-posix: New file.
24592         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
24593         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
24594         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24595         REPLACE_STRDUP.
24596         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
24597         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
24598         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24599         strdup-posix.
24600
24601         * modules/strdup (Depends-on): Remove malloc-posix.
24602
24603 2008-09-20  Bruno Haible  <bruno@clisp.org>
24604
24605         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
24606         Wildenhues.
24607
24608 2008-09-20  Bruno Haible  <bruno@clisp.org>
24609
24610         Ensure that wint_t gets defined on IRIX 5.3.
24611         * lib/wchar.in.h (wint_t): Define if not defined by the system.
24612         * lib/wctype.in.h (wint_t): Likewise.
24613         (__wctype_wint_t): Remove type.
24614         (isw*): Use wint_t instead of __wctype_wint_t.
24615         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
24616         * modules/wchar (Files): Add m4/wint_t.m4.
24617         (Makefile.am): Substitute HAVE_WINT_T.
24618         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
24619         * tests/test-wctype.c: Check that wint_t is defined.
24620         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
24621         * doc/posix-headers/wctype.texi: Likewise.
24622         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24623
24624 2008-09-18  Bruno Haible  <bruno@clisp.org>
24625
24626         * gnulib-tool (func_exit): Update comment.
24627
24628 2008-09-18  Simon Josefsson  <simon@josefsson.org>
24629
24630         * modules/getaddrinfo (Depends-on): Remove strdup, this module
24631         assumes strdup exists and does not depend on strdup to return
24632         ENOMEM on out of memory conditions.
24633
24634 2008-09-18  Bruno Haible  <bruno@clisp.org>
24635
24636         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
24637         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
24638         digits for the exponent.
24639
24640 2008-09-18  Jim Meyering  <meyering@redhat.com>
24641             Bruno Haible  <bruno@clisp.org>
24642
24643         * lib/vasnprintf.c (decimal_point_char): Define also if
24644         NEED_PRINTF_INFINITE_LONG_DOUBLE.
24645
24646 2008-09-16  Bruno Haible  <bruno@clisp.org>
24647         and Eric Blake  <ebb9@byu.net>
24648
24649         vasnprintf: support Irix 5.3
24650         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
24651         that mishandle long double infinity.
24652         Reported by Tom G. Christensen.
24653
24654 2008-09-16  Bruno Haible  <bruno@clisp.org>
24655
24656         * doc/glibc-functions/scandir.texi: Mention the function is missing on
24657         Solaris 9.
24658         * doc/glibc-functions/alphasort.texi: Likewise.
24659         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
24660
24661 2008-09-16  Jim Meyering  <meyering@redhat.com>
24662
24663         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
24664         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
24665         a umask modification leak out of a subshell.  Otherwise, the
24666         opensolaris /bin/sh would be accepted and thus cause unwarranted
24667         failures in the coreutils test suite.
24668
24669 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
24670
24671         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
24672         to succeed.
24673
24674 2008-09-16  Jim Meyering  <meyering@redhat.com>
24675
24676         avoid spurious test failure when library is built without ACL support
24677         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
24678         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
24679         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
24680         * tests/test-copy-acl.sh: Likewise.
24681
24682 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24683
24684         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
24685         based on character occurrence counts.
24686
24687 2008-09-15  Eric Blake  <ebb9@byu.net>
24688
24689         tests: avoid some compiler warnings
24690         * tests/test-memchr.c (main): Pass NULL indirectly.
24691         * tests/test-closein.c (main): Avoid unused variable.
24692
24693 2008-09-15  Bruno Haible  <bruno@clisp.org>
24694
24695         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
24696         are missing on OpenBSD 4.0 individually.
24697         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24698
24699 2008-09-15  Bruno Haible  <bruno@clisp.org>
24700
24701         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
24702         * doc/posix-functions/strerror.texi: Mention also Cygwin.
24703         * doc/posix-functions/perror.texi: Likewise.
24704         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
24705         is missing.
24706         Reported by Eric Blake.
24707
24708         * lib/errno.in.h: Use replacement values >= 2000.
24709         Reported by Eric Blake.
24710
24711 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24712
24713         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
24714         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
24715         limit.
24716         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
24717         compareseq was aborted.
24718
24719 2008-09-14  Bruno Haible  <bruno@clisp.org>
24720
24721         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
24722         yvec_edit_count.
24723         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
24724         (fstrcmp_bounded): Simplify result computation accordingly.
24725
24726 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24727
24728         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
24729         (fstrcmp): Define in terms of fstrcmp_bounded.
24730         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
24731         lower_bound argument.
24732         Return quickly if the result is certainly < lower_bound.
24733         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
24734
24735 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24736
24737         * lib/diffseq.h (EARLY_ABORT): New macro.
24738         (compareseq): Change return type to bool. Return true when EARLY_ABORT
24739         evaluates to true.
24740
24741 2008-09-14  Bruno Haible  <bruno@clisp.org>
24742
24743         * modules/perror-tests: New file.
24744         * tests/test-perror.sh: New file.
24745         * tests/test-perror.c: New file.
24746
24747         New module 'perror'.
24748         * lib/stdio.in.h (perror): New declaration.
24749         * lib/perror.c: New file.
24750         * m4/perror.m4: New file.
24751         * modules/perror: New file.
24752         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
24753         * doc/posix-functions/perror.texi: Mention the perror module.
24754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
24755         REPLACE_PERROR.
24756         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
24757         REPLACE_PERROR.
24758
24759 2008-09-14  Bruno Haible  <bruno@clisp.org>
24760
24761         * modules/stdio (Makefile.am): Reorder to match the order in
24762         lib/stdio.in.h.
24763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24764
24765 2008-09-13  Bruno Haible  <bruno@clisp.org>
24766
24767         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
24768
24769 2008-09-13  Bruno Haible  <bruno@clisp.org>
24770
24771         Extend strerror to cover the added errno values.
24772         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
24773         (rpl_strerror): Provide error messages for the added errno values and
24774         for the WSA* values.
24775         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
24776         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
24777         strerror.
24778         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
24779         * modules/strerror (Depends-on): Add errno.
24780         * doc/posix-functions/strerror.texi: Document the change.
24781         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
24782         and EOVERFLOW.
24783
24784 2008-09-13  Bruno Haible  <bruno@clisp.org>
24785
24786         * modules/EOVERFLOW: Remove file.
24787         * m4/eoverflow.m4: Remove file.
24788         * modules/EOVERFLOW-tests: Remove file.
24789         * tests/test-EOVERFLOW.c: Remove file.
24790         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
24791         * modules/ftell (Depends-on): Likewise.
24792         * modules/getdelim (Depends-on): Likewise.
24793         * modules/getugroups (Depends-on): Likewise.
24794         * modules/poll (Depends-on): Likewise.
24795         * modules/snprintf (Depends-on): Likewise.
24796         * modules/sprintf-posix (Depends-on): Likewise.
24797         * modules/vasnprintf (Depends-on): Likewise.
24798         * modules/vasprintf (Depends-on): Likewise.
24799         * modules/vfprintf-posix (Depends-on): Likewise.
24800         * modules/vsnprintf (Depends-on): Likewise.
24801         * modules/vsprintf-posix (Depends-on): Likewise.
24802         * modules/xvasprintf (Depends-on): Likewise.
24803         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24804         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
24805         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
24806         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
24807         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24808         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
24809         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
24810         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
24811         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24812         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
24813         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
24814         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
24815         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24816         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
24817         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
24818         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
24819         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24820         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
24821         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
24822         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
24823         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24824         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
24825         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
24826         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
24827         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
24828         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24829         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
24830         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
24831         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
24832         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
24833         * MODULES.html.sh: Remove EOVERFLOW.
24834         * NEWS: Mention the change.
24835
24836 2008-09-13  Bruno Haible  <bruno@clisp.org>
24837
24838         * modules/errno-tests: New file.
24839         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
24840
24841         * lib/errno.in.h: New file.
24842         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
24843         * modules/errno: New file.
24844         * doc/posix-headers/errno.texi: Update documentation.
24845         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
24846
24847 2008-09-13  Bruno Haible  <bruno@clisp.org>
24848
24849         * tests/test-poll.c: Use #if for native Windows, rather than testing
24850         __MSVCRT__.
24851
24852 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24853             Bruno Haible  <bruno@clisp.org>
24854
24855         * lib/glob.c: Don't include <pwd.h> on native Windows.
24856         (WINDOWS32): New macro.
24857         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
24858
24859 2008-09-13  Bruno Haible  <bruno@clisp.org>
24860
24861         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
24862         (ETIMEDOUT): Remove macro.
24863         (glthread_cond_timedwait_multithreaded): New declaration.
24864         (glthread_cond_timedwait): Use it.
24865         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
24866         (glthread_cond_timedwait_multithreaded): New function.
24867
24868 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
24869
24870         * modules/poll-tests: Do not check for io.h.
24871         * tests/test-poll.c: Check for __MSVCRT__ instead.
24872
24873 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
24874
24875         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
24876         * modules/poll-tests: Add inet_pton, stdbool, sockets.
24877         * tests/test-poll.c: Use them.  Use _pipe on Windows.
24878
24879 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
24880
24881         * modules/poll-tests: New.
24882         * tests/test-poll.c: New.
24883
24884 2008-09-12  Eric Blake  <ebb9@byu.net>
24885
24886         frexp: test for NetBSD failure on -0.0
24887         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
24888         not all, bugs from NetBSD 3.0 have been fixed.
24889         * doc/posix-functions/frexp.texi (frexp): Document bug.
24890         Reported by Thomas Klausner.
24891
24892         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
24893         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
24894         literal -0.0.
24895         Reported by Jonathan C. Patschke <jp@centtech.com>.
24896
24897 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24898
24899         * lib/glthread/cond.h: Use dummy implementation also if
24900         USE_WIN32_THREADS.
24901
24902 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24903
24904         * modules/fnmatch-posix (License): Change to LGPLv2+.
24905         * modules/fnmatch-gnu (License): Likewise.
24906
24907 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24908
24909         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
24910
24911 2008-09-11  Jim Meyering  <meyering@redhat.com>
24912
24913         * users.txt: Add gtk-vnc.
24914
24915 2008-09-08  Simon Josefsson  <simon@josefsson.org>
24916
24917         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
24918         rotate amounts.
24919
24920         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
24921         required for 16-bit and 8-bit rotates.
24922         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
24923         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
24924         UINT8_MAX instead of hard-coded constants.
24925         Suggested by Paul Eggert.
24926
24927 2008-09-07  Bruno Haible  <bruno@clisp.org>
24928
24929         * tests/test-striconveh.c (main): Check behaviour when converting from
24930         UTF-7.
24931
24932         Make striconveh work better with stateful encodings.
24933         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
24934         that iconv does not increment the inptr when returning -1/EINVAL.
24935
24936 2008-09-07  Bruno Haible  <bruno@clisp.org>
24937
24938         * build-aux/config.rpath: Update according to libtool-2.2.6.
24939         * build-aux/config.libpath: Likewise.
24940
24941 2008-09-06  Bruno Haible  <bruno@clisp.org>
24942
24943         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
24944         * lib/freadptr.c (freadptr): Likewise.
24945         * lib/freadseek.c (freadptrinc): Likewise.
24946         Reported by Simon Josefsson.
24947
24948 2008-09-06  Bruno Haible  <bruno@clisp.org>
24949
24950         * modules/freadptr (License): Change to LGPLv2+.
24951         * modules/freadseek (License): Likewise.
24952         Suggested by Eric Blake.
24953
24954         * modules/memchr2 (License): Change to LGPLv2+.
24955         Approved by Eric Blake.
24956
24957 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24958             Bruno Haible  <bruno@clisp.org>
24959
24960         Make gnulib-tool work with native 'sed' on AIX.
24961         * gnulib-tool (sed_noop): New variable.
24962         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
24963         func_add_or_update, func_create_testdir): Use it to initialize sed
24964         script variables.
24965         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24966
24967 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
24968             Bruno Haible  <bruno@clisp.org>
24969
24970         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
24971         also works after #include directives.
24972
24973 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
24974
24975         getdate.y: reject an out-of-range timezone value
24976         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
24977         the range [-24...+24].  When specified with only one or two digits,
24978         * tests/test-getdate.c: Tests for the fix.
24979         * doc/getdate.texi: Document this change.
24980
24981 2008-09-03  Bruno Haible  <bruno@clisp.org>
24982
24983         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
24984
24985 2008-09-02  Simon Josefsson  <simon@josefsson.org>
24986
24987         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
24988         <bruce.korb@gmail.com> with ideas from Ben Pfaff
24989         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
24990         Blake <ebb9@byu.net>.
24991
24992         * tests/test-bitrotate.c: Add more test vectors.
24993
24994 2008-09-02  Eric Blake  <ebb9@byu.net>
24995
24996         vasnprintf-posix: handle large precision via %.*d
24997         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
24998         when handling it ourselves.
24999         * tests/test-vasnprintf-posix.c (test_function): Add test.
25000         * tests/test-snprintf-posix.h (test_function): Likewise.
25001         * tests/test-sprintf-posix.h (test_function): Likewise.
25002         * tests/test-vasprintf-posix.c (test_function): Likewise.
25003         Reported by Alain Guibert.
25004
25005 2008-09-01  Eric Blake  <ebb9@byu.net>
25006
25007         c-stack: make configure-time check more robust
25008         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
25009         successful sigaction call.
25010         Reported by Tom G. Christensen.
25011
25012 2008-09-01  Bruno Haible  <bruno@clisp.org>
25013
25014         New module 'findprog-lgpl'.
25015         * modules/findprog-lgpl: New file.
25016         * lib/findprog-lgpl.c: New file.
25017         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
25018         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
25019         to decide whether to use strdup or xstrdup, concatenated_filename or
25020         xconcatenated_filename.
25021
25022 2008-09-01  Bruno Haible  <bruno@clisp.org>
25023
25024         Split module 'concat-filename' into 'concat-filename' (LGPL) and
25025         'xconcat-filename' (GPL).
25026         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
25027         (License): Change to LGPLv2+.
25028         * modules/xconcat-filename: New file.
25029         * lib/concat-filename.h (concatenated_filename): Change specification.
25030         (xconcatenated_filename): New declaration.
25031         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
25032         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
25033         memory situations.
25034         * lib/xconcat-filename.c: New file.
25035         * NEWS: Mention the change.
25036         * lib/findprog.c: Include concat-filename.h, not filename.h.
25037         (find_in_path): Use xconcatenated_filename instead of
25038         concatenated_filename.
25039         * lib/javacomp.c: Include concat-filename.h, not filename.h.
25040         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
25041         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
25042         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
25043         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
25044         instead of concatenated_filename.
25045         * lib/javaexec.c: Include concat-filename.h, not filename.h.
25046         (execute_java_class): Use xconcatenated_filename instead of
25047         concatenated_filename.
25048         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
25049         * modules/javacomp (Depends-on): Likewise.
25050         * modules/javaexec (Depends-on): Likewise.
25051
25052 2008-09-01  Bruno Haible  <bruno@clisp.org>
25053
25054         Split module 'filename' into 'filename' and 'concat-filename'.
25055         * modules/filename: Keep only lib/filename.h.
25056         (License): Change to LGPLv2+.
25057         * modules/concat-filename: New file, extracted from modules/filename.
25058         * lib/filename.h (concatenated_filename): Remove declaration.
25059         * lib/concat-filename.h: New file, extracted from lib/filename.h.
25060         * lib/concat-filename.c: Include concat-filename.h.
25061         * NEWS: Mention the change.
25062
25063 2008-09-01  Simon Josefsson  <simon@josefsson.org>
25064
25065         * lib/bitrotate.h (rotl8, rotr8): Add.
25066
25067         * modules/bitrotate (configure.ac): Need
25068         AC_REQUIRE([AC_C_INLINE]).
25069         (Description): Mention stdint.h.  Reported by Bruno Haible
25070         <bruno@clisp.org>.
25071
25072         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
25073         Paolo Bonzini <bonzini@gnu.org>.
25074
25075 2008-08-31  Bruno Haible  <bruno@clisp.org>
25076
25077         Assume Solaris specific bi-arch conventions on Solaris systems.
25078         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
25079         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
25080         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
25081         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
25082         like acl_libdirstem.
25083         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
25084         acl_libdirstem.
25085         * NEWS: Mention the change.
25086         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
25087
25088 2008-08-31  Jim Meyering  <meyering@redhat.com>
25089
25090         * lib/strftime.h: Add comments describing the two added arguments.
25091
25092         remove duplicate #include directives
25093         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
25094         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
25095
25096 2008-08-31  Bruno Haible  <bruno@clisp.org>
25097
25098         New module 'sigpipe-die'.
25099         * modules/sigpipe-die: New file.
25100         * lib/sigpipe-die.h: New file.
25101         * lib/sigpipe-die.c: New file.
25102         * MODULES.html.sh (Signal handling): Add sigpipe-die.
25103
25104 2008-08-31  Bruno Haible  <bruno@clisp.org>
25105
25106         Don't override previously installed signal handlers.
25107         * lib/fatal-signal.c (saved_sigactions): New variable.
25108         (uninstall_handlers): Reset the signal to the saved handler, not
25109         to SIG_DFL (except when ignored).
25110         (install_handlers): Save the previous handlers.
25111
25112 2008-08-30  Bruno Haible  <bruno@clisp.org>
25113
25114         * gnulib-tool (func_reset_sigpipe): New function.
25115         (func_get_automake_snippet, func_modules_transitive_closure,
25116         func_import): Invoke it before a join command that reads from stdin,
25117         to avoid "echo: write error: Broken pipe" error messages on stderr.
25118         Reported by Sam Steingold <sds@gnu.org>.
25119
25120 2008-08-30  Bruno Haible  <bruno@clisp.org>
25121
25122         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
25123         Code copied from m4/open.m4.
25124         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
25125         access and the filename ends in a slash. Code copied from lib/open.c.
25126         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
25127         * tests/test-fopen.c (main): Check against bug with trailing slash.
25128
25129 2008-08-29  Bruno Haible  <bruno@clisp.org>
25130
25131         Avoid some "gcc -pedantic" warnings.
25132         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
25133         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
25134         * lib/dirent.in.h: Likewise.
25135         * lib/fcntl.in.h: Likewise.
25136         * lib/float.in.h: Likewise.
25137         * lib/iconv.in.h: Likewise.
25138         * lib/inttypes.in.h: Likewise.
25139         * lib/locale.in.h: Likewise.
25140         * lib/math.in.h: Likewise.
25141         * lib/netinet_in.in.h: Likewise.
25142         * lib/search.in.h: Likewise.
25143         * lib/signal.in.h: Likewise.
25144         * lib/stdarg.in.h: Likewise.
25145         * lib/stdint.in.h: Likewise.
25146         * lib/stdio.in.h: Likewise.
25147         * lib/stdlib.in.h: Likewise.
25148         * lib/string.in.h: Likewise.
25149         * lib/strings.in.h: Likewise.
25150         * lib/sys_select.in.h: Likewise.
25151         * lib/sys_socket.in.h: Likewise.
25152         * lib/sys_stat.in.h: Likewise.
25153         * lib/sys_time.in.h: Likewise.
25154         * lib/sysexits.in.h: Likewise.
25155         * lib/time.in.h: Likewise.
25156         * lib/unistd.in.h: Likewise.
25157         * lib/wchar.in.h: Likewise.
25158         * lib/wctype.in.h: Likewise.
25159         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
25160         * modules/fchdir (Makefile.am): Likewise.
25161         * modules/fcntl (Makefile.am): Likewise.
25162         * modules/float (Makefile.am): Likewise.
25163         * modules/iconv_open (Makefile.am): Likewise.
25164         * modules/inttypes (Makefile.am): Likewise.
25165         * modules/locale (Makefile.am): Likewise.
25166         * modules/math (Makefile.am): Likewise.
25167         * modules/netinet_in (Makefile.am): Likewise.
25168         * modules/search (Makefile.am): Likewise.
25169         * modules/signal (Makefile.am): Likewise.
25170         * modules/stdarg (Makefile.am): Likewise.
25171         * modules/stdint (Makefile.am): Likewise.
25172         * modules/stdio (Makefile.am): Likewise.
25173         * modules/stdlib (Makefile.am): Likewise.
25174         * modules/string (Makefile.am): Likewise.
25175         * modules/strings (Makefile.am): Likewise.
25176         * modules/sys_select (Makefile.am): Likewise.
25177         * modules/sys_socket (Makefile.am): Likewise.
25178         * modules/sys_stat (Makefile.am): Likewise.
25179         * modules/sys_time (Makefile.am): Likewise.
25180         * modules/sysexits (Makefile.am): Likewise.
25181         * modules/time (Makefile.am): Likewise.
25182         * modules/unistd (Makefile.am): Likewise.
25183         * modules/wchar (Makefile.am): Likewise.
25184         * modules/wctype (Makefile.am): Likewise.
25185         Reported by Reuben Thomas <rrt@sc3d.org>.
25186
25187 2008-08-29  Bruno Haible  <bruno@clisp.org>
25188
25189         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
25190         any more.
25191
25192 2008-08-29  Simon Josefsson  <simon@josefsson.org>
25193
25194         * MODULES.html.sh (Misc): Add bitrotate.
25195
25196         * modules/bitrotate: New file.
25197
25198         * lib/bitrotate.h: New file.
25199
25200         * modules/bitrotate-tests: New file.
25201
25202         * tests/test-bitrotate.c: New file.
25203
25204         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
25205         on the bitrotate module.
25206
25207         * lib/arctwo.c: Use new bitrotate module.
25208
25209 2008-08-29  Jim Meyering  <meyering@redhat.com>
25210
25211         bootstrap: merge changes from coreutils
25212         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
25213         of copied files.  Remove a kludge, now that this is fixed.
25214         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
25215         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
25216         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
25217
25218 2008-08-29  Bruno Haible  <bruno@clisp.org>
25219
25220         * MODULES.html.sh: Remove --cvs-urls option.
25221
25222 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
25223
25224         maint.mk: adjust to file name change
25225         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
25226
25227 2008-08-28  Jim Meyering  <meyering@redhat.com>
25228
25229         * modules/getndelim2 (License): Relicense to LGPLv2+.
25230         Approved by Richard Stallman for the version of 1995, and by
25231         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
25232
25233 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
25234
25235         * lib/getdelim.c (flockfile, funlockfile): Make all of them
25236         dummy if one is not available.  Do not touch them if
25237         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
25238         (getc_maybe_unlocked): New.
25239         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
25240
25241 2008-08-26  Eric Blake  <ebb9@byu.net>
25242
25243         doc/INSTALL: resync from autoconf
25244         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
25245         (INSTALL_PRELUDE): Delete; this is done more efficiently by
25246         moving...
25247         * install.texi [!autoconf]: ...here.  Resync from autoconf.
25248         * INSTALL: Regenerate.
25249         * INSTALL.ISO: New file.
25250         * INSTALL.UTF-8: Likewise.
25251
25252 2008-08-26  Jim Meyering  <meyering@redhat.com>
25253
25254         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
25255         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
25256         these definitions conditional, so that they may be overridden, too.
25257
25258 2008-08-26  Bruno Haible  <bruno@clisp.org>
25259
25260         Generate INSTALL file variants with prettier quotes.
25261         * doc/Makefile (INSTALL_PRELUDE): New macro.
25262         (INSTALL): Use it.
25263         (INSTALL.ISO, INSTALL.UTF-8): New rules.
25264
25265 2008-08-26  Bruno Haible  <bruno@clisp.org>
25266
25267         Run makeinfo in an English locale.
25268         * doc/Makefile (MAKEINFO): New variable.
25269
25270 2008-08-26  Bruno Haible  <bruno@clisp.org>
25271
25272         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
25273         Suggested by Eric Blake.
25274
25275 2008-08-25  Bruno Haible  <bruno@clisp.org>
25276
25277         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
25278
25279 2008-08-25  Eric Blake  <ebb9@byu.net>
25280
25281         c-stack: test that stack overflow can be caught
25282         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
25283         that platform allows handling stack overflow; at least OS/2 EMX
25284         has sigaltstack, but crashes before transferring control to
25285         handler on stack overflow.
25286         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
25287         check for HAVE_STACK_OVERFLOW_HANDLING.
25288         Reported by Elbert Pol.
25289
25290 2008-08-25  Bruno Haible  <bruno@clisp.org>
25291
25292         * doc/posix-functions/strftime.texi: Fix description of strftime
25293         module.
25294
25295 2008-08-24  Bruno Haible  <bruno@clisp.org>
25296
25297         * tests/uniwidth/test-uc_width2.c: New file.
25298         * tests/uniwidth/test-uc_width2.sh: New file.
25299         * modules/uniwidth/width-tests (Files): Add the new files.
25300         (TESTS): Add uniwidth/test-uc_width2.sh.
25301         (TESTS_ENVIRONMENT): New variable.
25302         (check_PROGRAMS): Add test-uc_width2.
25303         (test_uc_width2_SOURCES): New variable.
25304
25305         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
25306         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
25307         not 0x00AB.
25308         Reported by Alexander V. Lukyanov <lav@netis.ru>.
25309
25310 2008-08-22  Eric Blake  <ebb9@byu.net>
25311
25312         test-lock, test-tls: mention why a test is skipped
25313         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
25314         skipped.
25315         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
25316
25317         count-one-bits: relax license
25318         * modules/count-one-bits (License): Relicense to LGPLv2+.
25319         Suggested by Ludovic Courtès, approved by Ben Pfaff.
25320
25321 2008-08-22  Andreas Schwab  <schwab@suse.de>
25322
25323         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
25324         Remove spurious space in assignment.
25325
25326 2008-08-21  Simon Josefsson  <simon@josefsson.org>
25327
25328         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
25329         Paul Eggert <eggert@CS.UCLA.EDU>.
25330
25331 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
25332
25333         * modules/gettext: Add m4/threadlib.m4.
25334
25335 2008-08-19  Eric Blake  <ebb9@byu.net>
25336
25337         test-c-stack: fix compilation failure on FreeBSD 5.0
25338         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
25339         headers before <sys/resource.h>.
25340         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
25341         the bug.
25342         Reported by Nelson H. F. Beebe.
25343
25344         strverscmp: migrate from "strverscmp.h" to <string.h>
25345         * modules/string (Makefile.am): Add new hooks.
25346         * modules/strverscmp (Files): Remove strverscmp.h.
25347         (Depends-on): Add string.
25348         (configure.ac): Add indicator.
25349         (Include): Mention new header.
25350         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
25351         defaults.
25352         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
25353         results.
25354         * lib/strverscmp.h: Delete.
25355         * lib/string.in.h (strverscmp): Provide declaration, when needed.
25356         * tests/test-strverscmp.c (includes): Adjust client.
25357         * lib/check-version.c (includes): Likewise.
25358         * NEWS: Document the change.
25359
25360         strverscmp: add unit test
25361         * modules/strverscmp-tests: New file.
25362         * tests/test-strverscmp.c: Likewise.
25363
25364 2008-08-19  Simon Josefsson  <simon@josefsson.org>
25365
25366         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
25367         regarding Windows crypto stuff, from Mono.
25368
25369 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
25370
25371         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
25372         if present, for intel RND.  Return error on failures.
25373
25374 2008-08-18  Ben Pfaff  <blp@gnu.org>
25375
25376         gitlog-to-changelog: give better diagnostic for failed pipe-open
25377         * build-aux/gitlog-to-changelog: Improve error message: suggest
25378         that the version of Git may be too old.
25379
25380 2008-08-18  Simon Josefsson  <simon@josefsson.org>
25381
25382         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
25383         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
25384
25385 2008-08-18  Bruno Haible  <bruno@clisp.org>
25386
25387         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
25388         pthread_in_use().
25389
25390 2008-08-18  Bruno Haible  <bruno@clisp.org>
25391
25392         * lib/glthread/threadlib.c: Include <pthread.h>.
25393
25394 2008-08-18  Bruno Haible  <bruno@clisp.org>
25395
25396         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
25397         glthread_recursive_lock_* macros.
25398         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
25399         Fix syntax error.
25400
25401 2008-08-18  Bruno Haible  <bruno@clisp.org>
25402
25403         * lib/glthread/thread.c: Avoid forcing a context switch right after
25404         thread creation.
25405
25406 2008-08-17  Bruno Haible  <bruno@clisp.org>
25407
25408         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
25409         * lib/glthread/thread.h: Provide Win32 specific implementation.
25410         * modules/thread (Files): Add lib/glthread/thread.c.
25411         (Depends-on): Add lock.
25412         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
25413
25414 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25415
25416         New module 'yield'.
25417         * modules/yield: New file.
25418         * lib/glthread/yield.h: New file.
25419         * m4/yield.m4: New file.
25420         * MODULES.html.sh (Multithreading): Add yield.
25421
25422 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25423
25424         New module 'thread'.
25425         * modules/thread: New file.
25426         * lib/glthread/thread.h: New file.
25427         * m4/thread.m4: New file.
25428         * MODULES.html.sh (Multithreading): Add thread.
25429
25430 2008-08-17  Bruno Haible  <bruno@clisp.org>
25431
25432         * lib/glthread/lock.h: Include <stdlib.h> always.
25433         * lib/glthread/tls.h: Likewise.
25434         * lib/glthread/cond.h: Likewise.
25435
25436 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25437
25438         New module 'cond'.
25439         * modules/cond: New file.
25440         * lib/glthread/cond.h: New file.
25441         * lib/glthread/cond.c: New file.
25442         * m4/cond.m4: New file.
25443         * MODULES.html.sh (Multithreading): Add cond.
25444
25445 2008-08-16  Eric Blake  <ebb9@byu.net>
25446
25447         c-stack: fix regression on Irix 5.3 from 2008-06-21
25448         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
25449         sa_sigaction...
25450         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
25451         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
25452         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
25453         * modules/signal (Makefile.am): Use the value.
25454         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
25455         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
25456         * doc/posix-headers/signal.texi (signal.h): Document this
25457         portability issue.
25458         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
25459         Reported by Tom G. Christensen.
25460
25461 2008-08-17  Bruno Haible  <bruno@clisp.org>
25462
25463         New module 'threadlib'.
25464         * modules/threadlib: New file.
25465         * lib/glthread/threadlib.c: New file, extracted from
25466         lib/glthread/lock.c.
25467         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
25468         functions.
25469         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
25470         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
25471         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
25472         macros.
25473         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
25474         (gl_DISABLE_THREADS): Remove macro.
25475         * modules/lock (Files): Remove build-aux/config.rpath.
25476         (Depends-on): Remove havelib. Add threadlib.
25477         (configure.ac-early): Remove section.
25478         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
25479         * modules/tls (Depends-on): Remove lock. Add threadlib.
25480         (Link): New section, copied from threadlib.
25481         * MODULES.html.sh (Multithreading): Add threadlib.
25482
25483 2008-08-14  Bruno Haible  <bruno@clisp.org>
25484
25485         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
25486         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
25487         glthread_rwlock_unlock, glthread_rwlock_destroy,
25488         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
25489         glthread_recursive_lock_destroy): Define as macros always.
25490         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
25491         glthread_lock_lock.
25492         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
25493         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
25494         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
25495         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
25496         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
25497         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
25498         (glthread_recursive_lock_lock_func): Renamed from
25499         glthread_recursive_lock_lock.
25500         (glthread_recursive_lock_unlock_func): Renamed from
25501         glthread_recursive_lock_unlock.
25502         (glthread_recursive_lock_destroy_func): Renamed from
25503         glthread_recursive_lock_destroy.
25504
25505 2008-08-14  Bruno Haible  <bruno@clisp.org>
25506
25507         * lib/glthread/lock.h: Renamed from lib/lock.h.
25508         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
25509         * lib/glthread/tls.h: Renamed from lib/tls.h.
25510         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
25511         * lib/fstrcmp.c: Update includes.
25512         * lib/strsignal.c: Update includes.
25513         * modules/lock (Files, Makefile.am): Update.
25514         (Include): Change to "glthread/lock.h".
25515         * modules/tls (Files, Makefile.am): Update.
25516         (Include): Change to "glthread/tls.h".
25517         * tests/test-lock.c: Update includes.
25518         * tests/test-tls.c: Update includes.
25519         * NEWS: Mention the renamed header files.
25520
25521 2008-08-11  Jim Meyering  <meyering@redhat.com>
25522
25523         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
25524
25525 2008-08-11  Eric Blake  <ebb9@byu.net>
25526
25527         test-c-stack: avoid C99-ism
25528         * tests/test-c-stack.c (main): Fix whitespace, move declaration
25529         before statement.
25530         Reported by Alain Guibert.
25531
25532 2008-08-10  Jim Meyering  <meyering@redhat.com>
25533
25534         ensure that return value of uinttostr et al are not ignored
25535         * lib/inttostr.h (__GNUC_PREREQ): Define.
25536         (__attribute_warn_unused_result__): Define.
25537         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
25538
25539 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
25540
25541         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
25542         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
25543
25544 2008-08-07  Jim Meyering  <meyering@redhat.com>
25545
25546         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
25547
25548         * modules/mkstemp (License): Relicense under LGPLv2+.
25549         * modules/tempname (License): Likewise.
25550
25551 2008-08-06  Bruno Haible  <bruno@clisp.org>
25552
25553         * lib/poll.c (poll): Further micro-optimization.
25554
25555 2008-08-06  Jim Meyering  <meyering@redhat.com>
25556
25557         inet_pton.c: use locale-independent tolower
25558         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
25559         (inet_pton6): Use c_tolower rather than tolower.
25560         * modules/inet_pton (Depends-on): Add c-ctype.
25561
25562 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
25563
25564         * lib/poll.c (poll): Avoid division when timeout is 0, cache
25565         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
25566
25567 2008-08-06  Jim Meyering  <meyering@redhat.com>
25568
25569         * modules/inet_pton (License): Relicense under LGPLv2+.
25570
25571 2008-08-03  Bruno Haible  <bruno@clisp.org>
25572
25573         Additional non-aborting API for lock and tls.
25574         * lib/lock.h: Include <errno.h>.
25575         (glthread_lock_init): New macro/function.
25576         (gl_lock_init): Define as wrapper around glthread_lock_init.
25577         (glthread_lock_lock): New macro/function.
25578         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
25579         (glthread_lock_unlock): New macro/function.
25580         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
25581         (glthread_lock_destroy): New macro/function.
25582         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
25583         (glthread_rwlock_init): New macro/function.
25584         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
25585         (glthread_rwlock_rdlock): New macro/function.
25586         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
25587         (glthread_rwlock_wrlock): New macro/function.
25588         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
25589         (glthread_rwlock_unlock): New macro/function.
25590         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
25591         (glthread_rwlock_destroy): New macro/function.
25592         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
25593         (glthread_recursive_lock_init): New macro/function.
25594         (gl_recursive_lock_init): Define as wrapper around
25595         glthread_recursive_lock_init.
25596         (glthread_recursive_lock_lock): New macro/function.
25597         (gl_recursive_lock_lock): Define as wrapper around
25598         glthread_recursive_lock_lock.
25599         (glthread_recursive_lock_unlock): New macro/function.
25600         (gl_recursive_lock_unlock): Define as wrapper around
25601         glthread_recursive_lock_unlock.
25602         (glthread_recursive_lock_destroy): New macro/function.
25603         (gl_recursive_lock_destroy): Define as wrapper around
25604         glthread_recursive_lock_destroy.
25605         (glthread_once): New macro/function.
25606         (gl_once): Define as wrapper around glthread_once.
25607         Update function declarations.
25608         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
25609         glthread_rwlock_init. Return error code.
25610         (glthread_rwlock_rdlock_multithreaded): Renamed from
25611         glthread_rwlock_rdlock. Return error code.
25612         (glthread_rwlock_wrlock_multithreaded): Renamed from
25613         glthread_rwlock_wrlock. Return error code.
25614         (glthread_rwlock_unlock_multithreaded): Renamed from
25615         glthread_rwlock_unlock. Return error code.
25616         (glthread_rwlock_destroy_multithreaded): Renamed from
25617         glthread_rwlock_destroy. Return error code.
25618         (glthread_recursive_lock_init_multithreaded): Renamed from
25619         glthread_recursive_lock_init. Return error code.
25620         (glthread_recursive_lock_lock_multithreaded): Renamed from
25621         glthread_recursive_lock_lock. Return error code.
25622         (glthread_recursive_lock_unlock_multithreaded): Renamed from
25623         glthread_recursive_lock_unlock. Return error code.
25624         (glthread_recursive_lock_destroy_multithreaded): Renamed from
25625         glthread_recursive_lock_destroy. Return error code.
25626         (glthread_once_call): Make static.
25627         (glthread_once_multithreaded): Renamed from glthread_once.
25628         * lib/tls.h: Include <errno.h>.
25629         (glthread_tls_key_init): New macro/function.
25630         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
25631         (glthread_tls_set): New macro/function.
25632         (gl_tls_set): Define as wrapper around glthread_tls_set.
25633         (glthread_tls_key_destroy): New macro/function.
25634         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
25635         Update function declarations.
25636         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
25637         glthread_tls_get.
25638         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25639
25640 2008-08-04  Eric Blake  <ebb9@byu.net>
25641
25642         gnumakefile: use space, not TAB, outside of targets
25643         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
25644
25645 2008-08-02  Jim Meyering  <meyering@redhat.com>
25646
25647         getdate.y: avoid locale-dependent date parsing failure
25648         In Turkish locales, getdate would fail to recognize keywords
25649         containing a lowercase "i".  The solution is not to rely on
25650         locale-sensitive case-conversion.
25651         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
25652         (lookup_word): Use c_toupper in place of toupper.
25653         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
25654         Reported by Vefa Bicakci <bicave@superonline.com> in
25655         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
25656         * modules/getdate (Depends-on): Add c-ctype.
25657
25658 2008-08-02  Bruno Haible  <bruno@clisp.org>
25659
25660         * gnulib-tool (func_import): When updating or creating a .gitignore
25661         file, prepend each added line with a slash, and ignore leading slashes
25662         from the existing lines.
25663         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
25664
25665 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25666
25667         Portability fix for GNU make 3.79.1.
25668         * top/GNUmakefile: Avoid 'else COND', which older GNU make
25669         versions do not understand.
25670
25671 2008-08-01  Bruno Haible  <bruno@clisp.org>
25672
25673         Work around bug of HP-UX 10.20 cc with -0.0 literal.
25674         * tests/test-isnanf.h (zero): New variable.
25675         (main): Avoid literal -0.0f.
25676         * tests/test-isnand.h (zero): New variable.
25677         (main): Avoid literal -0.0.
25678         * tests/test-isnanl.h (zero): New variable.
25679         (main): Avoid literal -0.0L.
25680         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
25681         (test_float, test_double, test_long_double): Avoid literals -0.0f,
25682         -0.0, -0.0L.
25683         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
25684         (test_signbitd): Avoid literal -0.0.
25685         (test_signbitl): Avoid literal -0.0L.
25686         * tests/test-ceilf1.c (zero): New variable.
25687         (main): Avoid literal -0.0f.
25688         * tests/test-ceill.c (zero): New variable.
25689         (main): Avoid literal -0.0L.
25690         * tests/test-floorf1.c (zero): New variable.
25691         (main): Avoid literal -0.0f.
25692         * tests/test-floorl.c (zero): New variable.
25693         (main): Avoid literal -0.0L.
25694         * tests/test-roundf1.c (zero): New variable.
25695         (main): Avoid literal -0.0f.
25696         * tests/test-round1.c (zero): New variable.
25697         (main): Avoid literal -0.0.
25698         * tests/test-roundl.c (zero): New variable.
25699         (main): Avoid literal -0.0L.
25700         * tests/test-truncf1.c (zero): New variable.
25701         (main): Avoid literal -0.0f.
25702         * tests/test-trunc1.c (zero): New variable.
25703         (main): Avoid literal -0.0.
25704         * tests/test-truncl.c (zero): New variable.
25705         (main): Avoid literal -0.0L.
25706         * tests/test-frexp.c (zero): New variable.
25707         (main): Avoid literal -0.0.
25708         * tests/test-frexpl.c (zero): New variable.
25709         (main): Avoid literal -0.0L.
25710         * tests/test-ldexpl.c (zero): New variable.
25711         (main): Avoid literal -0.0L.
25712         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
25713         (zerod, zerol): New variables.
25714         (test_function): Avoid literals -0.0, -0.0L.
25715         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
25716         (zerod, zerol): New variables.
25717         (test_function): Avoid literals -0.0, -0.0L.
25718         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
25719         (zerod, zerol): New variables.
25720         (test_function): Avoid literals -0.0, -0.0L.
25721         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
25722         (zerod, zerol): New variables.
25723         (test_function): Avoid literals -0.0, -0.0L.
25724         * tests/test-strtod.c (zero): New variable.
25725         (main): Avoid literal -0.0.
25726         Reported by Jonathan C. Patschke <jp@centtech.com>.
25727
25728 2008-07-31  Jim Meyering  <meyering@redhat.com>
25729
25730         sha256.h: correct definition of SHA224_DIGEST_SIZE
25731         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
25732         Reported by Paulie Pena IV <paulie4@gmail.com>.
25733         Define as 224 / 8, rather than as a literal.
25734         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
25735         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
25736         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
25737
25738 2008-07-31  Bruno Haible  <bruno@clisp.org>
25739
25740         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
25741         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
25742         Reported by Jonathan Patschke <jp@centtech.com>.
25743
25744 2008-07-31  Bruno Haible  <bruno@clisp.org>
25745
25746         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
25747         Reported by Paolo Bonzini <bonzini@gnu.org>.
25748
25749 2008-07-30  Eric Blake  <ebb9@byu.net>
25750
25751         test-strtod: allow compilation without -lm
25752         * tests/test-strtod.c (main): Avoid link dependence on fabs.
25753         Reported by Dennis Clarke <blastwave@gmail.com>.
25754
25755 2008-07-28  Jim Meyering  <meyering@redhat.com>
25756
25757         bootstrap: work also when there are no .po files in po/
25758         * build-aux/bootstrap (update_po_files): Complete the change
25759         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
25760
25761 2008-07-27  Jim Meyering  <meyering@redhat.com>
25762
25763         * users.txt: Add zile.
25764
25765 2008-07-26  Ben Pfaff  <blp@gnu.org>
25766
25767         Add missing dependencies on new m4/exponent[fdl].m4 files.
25768         * modules/isnanf-nolibm: Add m4/exponentf.m4.
25769         * modules/isnand-nolibm: Add m4/exponentd.m4.
25770         * modules/isnanl-nolibm: Add m4/exponentl.m4.
25771         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
25772         m4/isnan[fdl].m4, because the macros actually used moved.
25773         Reported by Jim Meyering.
25774
25775 2008-07-14  Ben Pfaff  <blp@gnu.org>
25776
25777         Add isinf module.
25778         * lib/isinf.c: New file.
25779         * lib/math.in.h: Define isinf macro if we have decided to replace
25780         it.
25781         * m4/isinf.m4: New file.
25782         * m4/math_h.m4: Initialize and substitute variables for isinf
25783         module.
25784         * modules/isinf: New file.
25785         * modules/isinf-tests: New file.
25786         * modules/math: Add substitutions for new module.
25787         * tests/test-isinf.c: New file.
25788         * doc/posix-functions/isinf.texi: Mention new module.
25789         * MODULES.html.sh: Mention new module.
25790
25791 2008-07-14  Ben Pfaff  <blp@gnu.org>
25792
25793         Factor out some macros for use by additional modules.
25794         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
25795         exponentf.m4.
25796         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
25797         exponentd.m4.
25798         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
25799         file exponentl.m4.
25800         * m4/exponentf.m4: New file.
25801         * m4/exponentd.m4: New file.
25802         * m4/exponentl.m4: New file.
25803         * modules/isnanf: Use new file m4/exponentf.m4.
25804         * modules/isnand: Use new file m4/exponentd.m4.
25805         * modules/isnanl: Use new file m4/exponentl.m4.
25806
25807 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
25808
25809         mktime.c: normalize tp->tm_isdst value to -1/0/1.
25810         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
25811         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
25812         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
25813
25814         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
25815         readlink on platforms without PATH_MAX.
25816
25817 2008-07-21  Eric Blake  <ebb9@byu.net>
25818
25819         Warn, not fail, on stale version.
25820         * top/GNUmakefile (_curr-ver): Tone down previous patch.
25821
25822         Don't allow installation with stale devel version number.
25823         * top/GNUmakefile (_is-install-target): New macro.
25824         (_curr-ver): Forbid installation with stale version number.
25825
25826 2008-07-20  Bruno Haible  <bruno@clisp.org>
25827
25828         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
25829         TESTS_ENVIRONMENT.
25830         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
25831
25832 2008-07-20  Bruno Haible  <bruno@clisp.org>
25833
25834         * lib/c-stack.h (c_stack_action): Add documentation.
25835         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
25836
25837 2008-07-20  Bruno Haible  <bruno@clisp.org>
25838
25839         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
25840         * modules/readlink (License): Likewise.
25841
25842 2008-07-17  Eric Blake  <ebb9@byu.net>
25843
25844         * modules/c-stack (Link): Fix typo.
25845
25846         Make c-stack use libsigsegv, when available.
25847         * modules/c-stack (Depends-on): Add libsigsegv.
25848         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
25849         needed.
25850         * lib/c-stack.c (SIGSTKSZ): Define fallback.
25851         (segv_handler, overflow_handler, c_stack_action)
25852         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
25853         implementation when libsigsegv is available, but only when using
25854         the library is necessary.
25855         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
25856         comment, explaining why XSI check fails on Linux.
25857         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
25858         * tests/test-c-stack2.sh: Tweak skip message.
25859         * NEWS: Document new link-time requirements.
25860
25861 2008-07-16  Eric Blake  <ebb9@byu.net>
25862
25863         c-stack: Expose false positives when not using libsigsegv.
25864         * modules/c-stack-tests (Files): Expand test.
25865         * tests/test-c-stack.c (main): Add means to conditionally trigger
25866         non-overflow SIGSEGV.
25867         * tests/test-c-stack2.sh: New file.
25868
25869 2008-07-14  Bruno Haible  <bruno@clisp.org>
25870
25871         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
25872         Reported by Eric Blake.
25873
25874 2008-07-14  Sam Steingold  <sds@gnu.org>
25875             Bruno Haible  <bruno@clisp.org>
25876
25877         New module libsigsegv.
25878         * modules/libsigsegv: New file.
25879         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
25880         modifications.
25881         * MODULES.html.sh (Signal handling): New section.
25882
25883 2008-07-14  Bruno Haible  <bruno@clisp.org>
25884
25885         * modules/unictype/ctype-* (Description): Add the word "function".
25886         Improves the resulting doc in MODULES.html.
25887
25888 2008-07-12  Ben Pfaff  <blp@gnu.org>
25889
25890         Add longlong module.
25891         * modules/longlong: New file.
25892
25893 2008-07-12  Bruno Haible  <bruno@clisp.org>
25894
25895         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
25896         to empty.
25897
25898 2008-07-10  Ben Pfaff  <blp@gnu.org>
25899
25900         Add isnan module.
25901         * doc/posix-functions/isnan.texi: Mention new module.
25902         * lib/math.in.h: Define isnan macro if we have decided to replace
25903         it.
25904         * m4/isnan.m4: New file.
25905         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
25906         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
25907         also.
25908         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
25909         redundancy.
25910         * m4/math_h.m4: Initialize and substitute variables for isnan
25911         module.
25912         * modules/isnan: New file.
25913         * modules/isnan-tests: New file.
25914         * modules/math: Add substitutions for new module.
25915         * tests/test-isnan.c: New file.
25916         * MODULES.html.sh: Mention new module.
25917
25918 2008-07-10  Ben Pfaff  <blp@gnu.org>
25919
25920         Add isnanf module.
25921         * lib/isnanf.m4: New file.
25922         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
25923         (gl_HAVE_ISNANF_IN_LIBM): New macro.
25924         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
25925         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
25926         * modules/isnanf: New file.
25927         * modules/isnanf-tests: New file.
25928         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
25929         files.
25930         * tests/test-isnanf-nolibm.c: factored most of its contents into
25931         new file tests/test-isnanf.h.
25932         * tests/test-isnanf.h: New file.
25933         * tests/test-isnanf.c: New file.
25934         * MODULES.html.sh: Mention new module.
25935         * doc/glibc-functions/isnanf.texi: Mention new module.
25936
25937 2008-07-10  Ben Pfaff  <blp@gnu.org>
25938
25939         Add isnand module.
25940         * lib/isnand.h: New file.
25941         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
25942         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
25943         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
25944         functionality also.
25945         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
25946         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
25947         (gl_HAVE_ISNAND_IN_LIBM): New macro.
25948         * modules/isnand: New file.
25949         * modules/isnand-tests: New file.
25950         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
25951         files.
25952         * tests/test-isnand-nolibm.c: factored most of its contents into
25953         new file tests/test-isnand.h.
25954         * tests/test-isnand.h: New file.
25955         * tests/test-isnand.c: New file.
25956         * MODULES.html.sh: Mention new module.
25957
25958 2008-07-10  Ben Pfaff  <blp@gnu.org>
25959
25960         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
25961         * lib/isnand.h: Rename lib/isnand-nolibm.h.
25962         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
25963         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
25964         * modules/isnanf-nolibm: Update references to renamed files.
25965         * modules/isnand-nolibm: Likewise.
25966         * modules/isnanf-nolibm-tests: Likewise.
25967         * modules/isnand-nolibm-tests: Likewise.
25968         * lib/frexp.c: Likewise.
25969         * lib/isfinite.c: Likewise.
25970         * lib/signbitd.c: Likewise.
25971         * lib/signbitf.c: Likewise.
25972         * lib/vasnprintf.c: Likewise.
25973         * tests/test-ceilf1.c: Likewise.
25974         * tests/test-ceilf2.c: Likewise.
25975         * tests/test-floorf1.c: Likewise.
25976         * tests/test-floorf2.c: Likewise.
25977         * tests/test-frexp.c: Likewise.
25978         * tests/test-round1.c: Likewise.
25979         * tests/test-round2.c: Likewise.
25980         * tests/test-roundf1.c: Likewise.
25981         * tests/test-strtod.c: Likewise.
25982         * tests/test-trunc1.c: Likewise.
25983         * tests/test-trunc2.c: Likewise.
25984         * tests/test-truncf1.c: Likewise.
25985         * tests/test-truncf2.c: Likewise.
25986         * NEWS: Mention the renamed header files.
25987
25988 2008-07-11  Jim Meyering  <meyering@redhat.com>
25989
25990         vc-list-files: make the last-resort awk code more portable
25991         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
25992         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
25993         does not support it.
25994
25995 2008-07-10  Eric Blake  <ebb9@byu.net>
25996
25997         Work with tar's bootstrap.
25998         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
25999         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
26000         an m4 comment.
26001
26002 2008-07-09  Jim Meyering  <meyering@redhat.com>
26003
26004         posix-shell.m4: fix typo that made this test malfunction
26005         * m4/posix-shell.m4: Remove capitalization in variable name.
26006
26007 2008-07-08  Bruno Haible  <bruno@clisp.org>
26008
26009         * m4/onceonly.m4: Update comments.
26010         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26011
26012 2008-07-04  Jim Meyering  <meyering@redhat.com>
26013
26014         * users.txt: Add vc-dwim.
26015         (bison, coreutils): Use the gitweb URL.
26016
26017 2008-07-03  Jim Meyering  <meyering@redhat.com>
26018
26019         * users.txt: Add libffcall.  From Sam Steingold.
26020
26021 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
26022
26023         getdate.y: do not ignore TZ with relative day, month or year offset
26024         * lib/getdate.y (get_date): Move the tz-handling block to follow the
26025         relative-date-handling, since otherwise, the latter would clobber the
26026         sole output (an updated Start value) of the tz-handling block.
26027         * tests/test-getdate.c: Tests for the fix
26028
26029 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26030
26031         Recognize 'foo_LIBRARIES += libgnu.a'.
26032         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
26033         makefile snippet has already specified an installation location,
26034         also using '+='.
26035
26036 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
26037
26038         getdate.y: factor out common actions
26039         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
26040         Use them in place of open-coded actions.
26041
26042 2008-07-01  Simon Josefsson  <simon@josefsson.org>
26043
26044         Add self-test for getdate module.
26045         * modules/getdate-tests: New file.
26046         * tests/test-getdate.c: New file.
26047
26048 2008-06-29  Bruno Haible  <bruno@clisp.org>
26049
26050         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
26051         .gitignore.
26052         Reported by Sylvain Beucler <beuc@beuc.net>.
26053
26054 2008-06-29  Bruno Haible  <bruno@clisp.org>
26055
26056         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
26057         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
26058
26059 2008-06-29  Bruno Haible  <bruno@clisp.org>
26060
26061         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
26062         EXTRA_DIST.
26063         Reported by Sylvain Beucler <beuc@beuc.net>.
26064
26065 2008-06-26  Jim Meyering  <meyering@redhat.com>
26066
26067         make several modules depend on the "open" module
26068         This provides slightly increased consistency when opening-for-write
26069         the name of a non-directory spelled with a trailing slash.
26070         * modules/chdir-safer: Likewise.
26071         * modules/chown: Likewise.
26072         * modules/clean-temp: Likewise.
26073         * modules/copy-file: Likewise.
26074         * modules/fchdir: Likewise.
26075         * modules/fcntl-safer: Likewise.
26076         * modules/pipe: Likewise.
26077         * modules/utime: Likewise.
26078         Prompted by Eric Blake and Bruno Haible.
26079
26080 2008-06-24  Andreas Schwab  <schwab@suse.de>
26081
26082         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
26083         literals can be used as initializers for global variables.
26084
26085 2008-06-23  Eric Blake  <ebb9@byu.net>
26086
26087         Make gnulib-cache.m4 easier to diff.
26088         * gnulib-tool (func_import): Allow newlines when reading cached
26089         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
26090
26091 2008-06-23  Bruno Haible  <bruno@clisp.org>
26092
26093         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
26094         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
26095         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
26096         m4/signalblocking.m4.
26097         (gl_PREREQ_SIGACTION): Don't invoke it.
26098         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
26099         gl_PREREQ_SIG_HANDLER_H.
26100         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
26101         Don't check for sigaction here.
26102
26103 2008-06-23  Bruno Haible  <bruno@clisp.org>
26104
26105         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
26106         (install_handlers): Don't set the SA_RESETHAND flag.
26107
26108 2008-06-23  Bruno Haible  <bruno@clisp.org>
26109
26110         * m4/sigaction.m4: Comment fixes.
26111         * lib/signal.in.h: Likewise.
26112
26113 2008-06-23  Eric Blake  <ebb9@byu.net>
26114
26115         Fix typo.
26116         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
26117
26118         Avoid SA_ namespace.
26119         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
26120         Reported by Ralf Wildenhues.
26121
26122         Avoid test failure due to SA_RESTORER.
26123         * tests/test-sigaction.c (SA_MASK): New macro.
26124         (main): Avoid failing due to extension flags being set.
26125         Reported by Jim Meyering.
26126
26127         Revert use of sig-handler.h in sigprocmask.c.
26128         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
26129         it requires the existence of struct sigaction.
26130         * lib/sigprocmask.c (handler_t): Restore typedef.
26131         (rpl_signal, old_handlers): Use local type.
26132
26133 2008-06-22  Bruno Haible  <bruno@clisp.org>
26134
26135         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
26136         conditionally.
26137         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26138
26139 2008-06-22  Bruno Haible  <bruno@clisp.org>
26140
26141         * doc/posix-functions/siginterrupt.texi: Move note.
26142
26143         * lib/signal.in.h (SA_RESTART): New macro.
26144         * lib/sigaction.c: Update comment.
26145
26146         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
26147
26148         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
26149         (gl_PREREQ_SIGPROCMASK): Invoke it.
26150         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
26151
26152         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
26153
26154         * lib/sigprocmask.c: Update a comment.
26155
26156 2008-06-21  Eric Blake  <ebb9@byu.net>
26157
26158         Use sigaction module rather than signal().
26159         * modules/c-stack (Depends-on): Add sigaction.
26160         * modules/fatal-signal (Depends-on): Likewise.
26161         * modules/nanosleep (Depends-on): Likewise.
26162         * modules/sigprocmask (Files): Add sig-handler.h.
26163         * modules/sigaction (Files): Likewise.
26164         * lib/sig-handler.h (get_handler): New file, suggested by Paul
26165         Eggert.
26166         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
26167         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
26168         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
26169         (init_fatal_signals): Likewise.
26170         * lib/nanosleep.c (rpl_nanosleep): Likewise.
26171         (siginterrupt): Delete fallback.
26172         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
26173         instead.
26174         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
26175         siginterrupt.
26176
26177         New module sigaction, for mingw.
26178         * modules/sigaction: New module...
26179         * modules/sigaction-tests: ...and its test.
26180         * m4/sigaction.m4: New file.
26181         * lib/sigaction.c: Likewise.
26182         * tests/test-sigaction.c: Likewise.
26183         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
26184         * modules/signal (Makefile.am): Likewise.
26185         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
26186         needed.
26187         * doc/posix-headers/signal.texi (signal.h): Mention provided
26188         types.
26189         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
26190         that sigaction is preferable.
26191         * doc/posix-functions/sigaction.texi (sigaction): Mention new
26192         module.
26193         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26194         sigaction.
26195
26196         Improve robustness of sigprocmask by overriding signal.
26197         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
26198         is in use.
26199         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
26200         (SIGKILL, SIGSTOP): Provide fallbacks.
26201         (rpl_signal): Implement.
26202         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
26203         signal can be called inside handlers.
26204
26205         Fix nanosleep module on mingw.
26206         * modules/nanosleep (Depends-on): Add sys_select.
26207         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
26208
26209         Fix licensing of sigprocmask.
26210         * modules/raise (License): Relicense as LGPL.
26211
26212 2008-06-21  Bruno Haible  <bruno@clisp.org>
26213
26214         * lib/propername.c (proper_name_utf8): Don't use the transliterated
26215         result if it contains question marks.
26216         Reported by Michael Geng <linux@michaelgeng.de>.
26217
26218 2008-06-19  Bruno Haible  <bruno@clisp.org>
26219
26220         Fix CVS-ism.
26221         * doc/gnulib.texi: Include updated-stamp.texi.
26222         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
26223         (updated-stamp.texi): New rule.
26224         (gnulib.info): Depend on it.
26225         * doc/.gitignore: Add updated-stamp.texi.
26226         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
26227
26228 2008-06-19  Bruno Haible  <bruno@clisp.org>
26229
26230         * doc/Makefile (gnulib.info): Update and simplify dependencies.
26231         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26232
26233 2008-06-19  Eric Blake  <ebb9@byu.net>
26234
26235         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
26236         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
26237         Reported by Stepan Kasal.
26238
26239 2008-06-18  Bruno Haible  <bruno@clisp.org>
26240
26241         * lib/fatal-signal.c (init_fatal_signals): Add comment.
26242         Reported by Eric Blake.
26243
26244 2008-06-18  Eric Blake  <ebb9@byu.net>
26245
26246         Work around cygwin 1.5.25 strsignal bug.
26247         * tests/test-strsignal.c: Allow for const char *.
26248         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
26249
26250 2008-06-18  Simon Josefsson  <simon@josefsson.org>
26251
26252         * users.txt: Update URL to article and add author/date
26253         information.
26254
26255 2008-06-17  Bruno Haible  <bruno@clisp.org>
26256
26257         New macro gl_DISABLE_THREADS.
26258         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
26259         if the user did not pass --enable-threads or --disable-threads option.
26260         (gl_DISABLE_THREADS): New macro.
26261         Reported by Eric Blake <ebb9@byu.net>.
26262
26263 2008-06-17  Bruno Haible  <bruno@clisp.org>
26264
26265         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
26266         when the macro ignores it.
26267         Based on a patch by Eric Blake <ebb9@byu.net>.
26268
26269 2008-06-17  Bruno Haible  <bruno@clisp.org>
26270
26271         * modules/tls (License): Change to LGPLv2+.
26272         Reported by Eric Blake.
26273
26274 2008-06-17  Eric Blake  <ebb9@byu.net>
26275
26276         Simplify c-stack prerequisites.
26277         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
26278         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
26279         no longer requires <ucontext.h> to exist.  Optimize setrlimit
26280         check.
26281         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
26282         <sys/resource.h>.
26283
26284         Move c-stack test into testsuite.
26285         * modules/c-stack-tests: New file.
26286         * lib/c-stack.c [DEBUG]: Move test program...
26287         * tests/test-c-stack.c: ...into this new file.  Skip rather than
26288         fail test if sigaltstack is lacking.
26289         * tests/test-c-stack.sh: New driver file.
26290
26291 2008-06-16  Eric Blake  <ebb9@byu.net>
26292
26293         Use raise module consistently.
26294         * modules/fatal-signal (Depends-on): Add raise.
26295         * modules/sigprocmask (Depends-on): Likewise.
26296         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
26297         * lib/sigprocmask.c (sigprocmask): Likewise.
26298         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
26299         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
26300
26301         Fix compliance bug in sigpending.
26302         * lib/sigprocmask.c (sigpending): Return pending array via
26303         parameter, not return value.
26304
26305 2008-06-14  Eric Blake  <ebb9@byu.net>
26306
26307         Improve obstack-printf test code.
26308         * tests/test-obstack-printf.c (test_function): Fix comment, and
26309         simplify usage of obstack_* in macros.  Add a test for coverage.
26310         Reported by Bruno Haible.
26311
26312 2008-06-14  Bruno Haible  <bruno@clisp.org>
26313
26314         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
26315         array size as a constant, not as a const variable.
26316         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
26317         AC_USE_SYSTEM_EXTENSIONS.
26318         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
26319         Test whether the obstack_printf function actually exists.
26320         * modules/obstack-printf (Depends-on): Add extensions.
26321         (Include): Remove obstack.h.
26322         * modules/obstack-printf-posix (Depends-on): Add extensions.
26323         (Include): Remove obstack.h.
26324
26325 2008-06-13  Eric Blake  <ebb9@byu.net>
26326
26327         Add obstack-printf and obstack-printf-posix modules.
26328         * modules/obstack-printf: New file.
26329         * modules/obstack-printf-posix: Likewise.
26330         * MODULES.html.sh (Misc): Mention them.
26331         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
26332         Likewise.
26333         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
26334         Likewise.
26335         * modules/stdio (Makefile.am): Accomodate new modules.
26336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26337         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
26338         Declare.
26339         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
26340         functions.
26341         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
26342         (gl_REPLACE_OBSTACK_PRINTF): New macros
26343         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
26344         * tests/test-obstack-printf.c: New file.
26345         * modules/obstack-printf-tests: Likewise.
26346         * modules/obstack-printf-posix-tests: Likewise.
26347
26348 2008-06-11  Bruno Haible  <bruno@clisp.org>
26349
26350         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
26351         * lib/open.c: Include errno.h.
26352         (open): Fail when attempting to write to a file that has a trailing
26353         slash.
26354         * tests/test-open.c (main): Test against trailing slash bug.
26355         * doc/posix-functions/open.texi: Mention the trailing slash bug.
26356
26357 2008-06-10  Bruno Haible  <bruno@clisp.org>
26358
26359         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
26360         for $? to work inside the trap command, with various /bin/sh-s.
26361         * tests/test-vc-list-files-cvs.sh: Likewise.
26362
26363 2008-06-10  Bruno Haible  <bruno@clisp.org>
26364
26365         * lib/acl-internal.h: Don't include gettext.h here.
26366         * lib/set-mode-acl.c: Include gettext.h here.
26367         * lib/copy-acl.c: Likewise.
26368
26369 2008-06-10  Bruno Haible  <bruno@clisp.org>
26370
26371         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
26372         * lib/wait-process.c (wait_subprocess): Likewise.
26373         * lib/execute.h (execute): Add termsigp argument.
26374         * lib/execute.c (execute): Likewise.
26375         * lib/csharpcomp.c (compile_csharp_using_pnet,
26376         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
26377         * lib/csharpexec.c (execute_csharp_using_pnet,
26378         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
26379         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
26380         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
26381         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
26382         is_jikes_present): Update.
26383         * lib/javaexec.c (execute_java_class): Update.
26384         * lib/javaversion.c (execute_and_read_line): Update.
26385         * NEWS: Document the changes.
26386         Reported by Eric Blake.
26387
26388 2008-06-10  Eric Blake  <ebb9@byu.net>
26389
26390         Add missing include.
26391         * tests/test-strstr.c (includes): Add <signal.h>.
26392         * tests/test-strcasestr.c (includes): Likewise.
26393         * tests/test-memmem.c (includes): Likewise.
26394
26395 2008-06-10  Bruno Haible  <bruno@clisp.org>
26396
26397         * lib/wait-process.c (wait_subprocess): Add an assertion.
26398
26399 2008-06-10  Bruno Haible  <bruno@clisp.org>
26400
26401         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
26402
26403 2008-06-10  Bruno Haible  <bruno@clisp.org>
26404
26405         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
26406         using alarm().
26407         * tests/test-strcasestr.c (main): Likewise.
26408         * tests/test-strstr.c (main): Likewise.
26409
26410 2008-06-09  Bruno Haible  <bruno@clisp.org>
26411
26412         Work around the Solaris 10 ACE ACLs ABI change.
26413         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
26414         declare if ACL_NO_TRIVIAL is present.
26415         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
26416         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
26417         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
26418         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
26419         define if ACL_NO_TRIVIAL is present.
26420         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
26421         and use the current ABI.
26422         (file_has_acl): Use same #if condition as elsewhere.
26423         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
26424         in use, and use the current ABI.
26425         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
26426         Reported by Jim Meyering.
26427
26428 2008-06-09  Eric Blake  <ebb9@byu.net>
26429
26430         Work around environments that (stupidly) ignore SIGALRM.
26431         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
26432         before using alarm().
26433         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26434         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26435         Reported by Ian Beckwith <ianb@erislabs.net>.
26436
26437         Produce autobuild blurb earlier in log.
26438         * modules/autobuild (configure.ac-early): Move AB_INIT here.
26439
26440 2008-06-09  Jim Meyering  <meyering@redhat.com>
26441         and OndÅ™ej Vašík  <ovasik@redhat.com>
26442
26443         utimens.c: correct kernel bug work-around
26444         OndÅ™ej Vašík found that the invalid return value of 280 indicates
26445         failure, not success, and the kernel bug we're trying to work
26446         around affects not just the utimensat call, but also the fallback
26447         futimens call.
26448         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
26449         not success.
26450         [HAVE_FUTIMENS]: Use the same work-around, here.
26451
26452 2008-06-09  Jim Meyering  <meyering@redhat.com>
26453
26454         add more guards around definition of ACE_-related code
26455         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
26456         ALLOW and ACE_OWNER are also defined.
26457
26458 2008-06-08  Bruno Haible  <bruno@clisp.org>
26459
26460         * lib/acl-internal.h: Add me as co-author.
26461         * lib/file-has-acl.c: Likewise.
26462         * lib/set-mode-acl.c: Likewise.
26463         * lib/copy-acl.c: Likewise.
26464
26465 2008-06-08  Bruno Haible  <bruno@clisp.org>
26466
26467         Add support for AIX ACLs.
26468         * lib/acl-internal.h (acl_nontrivial): New declaration.
26469         * lib/file-has-acl.c (acl_nontrivial): New function.
26470         (file_has_acl): Add implementation using AIX 4 ACL API.
26471         * lib/set-mode-acl.c (qset_acl): Likewise.
26472         * lib/copy-acl.c (qcopy_acl): Likewise.
26473
26474 2008-06-08  Bruno Haible  <bruno@clisp.org>
26475
26476         Add support for HP-UX ACLs.
26477         * lib/acl-internal.h (acl_nontrivial): New declaration.
26478         * lib/file-has-acl.c (acl_nontrivial): New function.
26479         (file_has_acl): Add implementation using HP-UX 11 ACL API.
26480         * lib/set-mode-acl.c (qset_acl): Likewise.
26481         * lib/copy-acl.c (qcopy_acl): Likewise.
26482
26483 2008-06-08  Bruno Haible  <bruno@clisp.org>
26484
26485         Add support for Cygwin ACLs.
26486         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
26487         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
26488         the chmod_or_fchmod call.
26489         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
26490
26491 2008-06-08  Bruno Haible  <bruno@clisp.org>
26492
26493         Fix bug with setuid modes in Solaris 10+ code.
26494         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
26495         succeeded, when the mode contains some special bits.
26496
26497 2008-06-08  Bruno Haible  <bruno@clisp.org>
26498
26499         Add support for Solaris 7..10 ACLs.
26500         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
26501         declarations.
26502         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
26503         functions.
26504         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
26505         * lib/set-mode-acl.c (qset_acl): Likewise.
26506         * lib/copy-acl.c (qcopy_acl): Likewise.
26507
26508 2008-06-08  Bruno Haible  <bruno@clisp.org>
26509
26510         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
26511         declaration.
26512         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
26513         (acl_access_nontrivial): Remove MacOS X case.
26514         (file_has_acl): Use acl_extended_nontrivial.
26515         * lib/copy-acl.c (qcopy_acl): Likewise.
26516
26517 2008-06-08  Bruno Haible  <bruno@clisp.org>
26518
26519         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
26520
26521 2008-06-08  Jim Meyering  <meyering@redhat.com>
26522
26523         * modules/acl (Maintainer): Add Bruno Haible.
26524
26525 2008-06-07  Bruno Haible  <bruno@clisp.org>
26526
26527         Improve support for Tru64 ACLs.
26528         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
26529         ACL on OSF/1.
26530
26531 2008-06-07  Bruno Haible  <bruno@clisp.org>
26532
26533         Add support for MacOS X ACLs.
26534         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
26535         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
26536         * lib/set-mode-acl.c (qset_acl): Likewise.
26537         * lib/copy-acl.c (qcopy_acl): Likewise.
26538
26539 2008-06-07  Bruno Haible  <bruno@clisp.org>
26540
26541         Fix memory leak introduced on 2008-05-22.
26542         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
26543         use.
26544
26545 2008-06-07  Bruno Haible  <bruno@clisp.org>
26546
26547         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
26548         to construct an empty ACL.
26549
26550 2008-06-07  Bruno Haible  <bruno@clisp.org>
26551
26552         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
26553         precisely.
26554         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
26555
26556 2008-06-07  Bruno Haible  <bruno@clisp.org>
26557
26558         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
26559         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
26560
26561 2008-06-07  Bruno Haible  <bruno@clisp.org>
26562
26563         * doc/posix-functions/_setjmp.texi: Explain the use of this function
26564         regardless of POSIX.
26565         * doc/posix-functions/_longjmp.texi: Likewise.
26566         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
26567         SystemV platform in this case.
26568
26569 2008-06-06  Eric Blake  <ebb9@byu.net>
26570
26571         Document abort() bugs.
26572         * doc/posix-functions/abort.texi (abort): Mention anomalies.
26573
26574         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
26575         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
26576         sigsetjmp.
26577         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
26578         siglongjmp, but only as a macro.
26579         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
26580         is obsolete.
26581         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
26582
26583         Tweak documentation to cover cygwin argz bugs.
26584         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
26585         argz bug fix; no code change needed since no cygwin releases
26586         occurred between the last fix and the bug being tested.
26587         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
26588         module and recently fixed cygwin bugs.
26589         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
26590         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
26591         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
26592         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
26593         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
26594         Likewise.
26595         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
26596         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
26597         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
26598         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
26599         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
26600         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
26601         Likewise.
26602
26603         Avoid gcc warning on cygwin.
26604         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
26605         !ACL_NO_TRIVIAL]: Avoid unused variable.
26606
26607 2008-06-05  Eric Blake  <ebb9@byu.net>
26608
26609         Be tolerant of UNKNOWN version in gnulib-tool test dir.
26610         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
26611         git-version-gen fails to come up with a version.
26612         Reported by Simon Josefsson.
26613
26614 2008-06-05  Jim Meyering  <meyering@redhat.com>
26615             Paul Eggert  <eggert@cs.ucla.edu>
26616
26617         utimens.c: work around a probable Linux kernel bug
26618         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
26619         appears to be a kernel bug that causes utimensat to return 280
26620         instead of 0, indicating success.
26621
26622 2008-06-04  Bruno Haible  <bruno@clisp.org>
26623
26624         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
26625         2008-06-01 commit.
26626
26627 2008-06-04  Bruno Haible  <bruno@clisp.org>
26628
26629         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
26630         * lib/file-has-acl.c (acl_access_nontrivial): New function.
26631         (file_has_acl): Use it. Save errno afterwards.
26632         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
26633
26634 2008-06-03  Bruno Haible  <bruno@clisp.org>
26635
26636         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
26637         draft code. Simplify #ifs.
26638         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
26639         Put Solaris code after POSIX-draft code. Fix comments regarding
26640         Solaris 10, HP-UX. Mention Cygwin.
26641         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
26642
26643 2008-06-03  Eric Blake  <ebb9@byu.net>
26644
26645         Provide fallback for older kernels.
26646         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
26647         Provide runtime fallback if kernel lacks support.
26648         Reported by Mike Frysinger.
26649
26650 2008-06-02  Bruno Haible  <bruno@clisp.org>
26651
26652         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
26653         it exists.
26654
26655 2008-06-02  Bruno Haible  <bruno@clisp.org>
26656
26657         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
26658         * lib/copy-acl.c (qcopy_acl): Update comment.
26659
26660 2008-06-02  Bruno Haible  <bruno@clisp.org>
26661
26662         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
26663         like ACL APIs.
26664
26665 2008-06-02  Bruno Haible  <bruno@clisp.org>
26666
26667         * tests/test-file-has-acl.sh: Use different code for Cygwin.
26668         * tests/test-set-mode-acl.sh: Likewise.
26669         * tests/test-copy-acl.sh: Likewise.
26670         * tests/test-copy-file.sh: Likewise.
26671
26672 2008-06-02  Bruno Haible  <bruno@clisp.org>
26673
26674         * tests/test-file-has-acl.sh: Remove unused code.
26675
26676 2008-06-01  Bruno Haible  <bruno@clisp.org>
26677
26678         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
26679         (copy_acl): Just a wrapper around qcopy_acl that emits the error
26680         messages.
26681         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
26682
26683 2008-06-01  Bruno Haible  <bruno@clisp.org>
26684
26685         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
26686         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
26687         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
26688         APIs.
26689         * modules/acl-tests (configure.ac): Remove tests now contained in
26690         m4/acl.m4.
26691
26692 2008-06-02  Jim Meyering  <meyering@redhat.com>
26693
26694         announce-gen: use a better key-server host name
26695         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
26696         it may be more consistently reliable.  Suggested by Werner Koch
26697         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
26698
26699 2008-06-01  Bruno Haible  <bruno@clisp.org>
26700
26701         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
26702         Reported by Voroskoi Andras <voroskoi@gmail.com>.
26703
26704 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
26705
26706         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
26707
26708 2008-06-01  Bruno Haible  <bruno@clisp.org>
26709
26710         New ACL tests.
26711         * tests/test-file-has-acl.sh: New file.
26712         * tests/test-file-has-acl.c: New file.
26713         * tests/test-set-mode-acl.sh: New file.
26714         * tests/test-set-mode-acl.c: New file.
26715         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
26716         * tests/test-copy-acl.c: New file.
26717         * modules/acl-tests: New file, based on modules/copy-file-tests.
26718         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
26719         (Depends-on): Add acl-tests.
26720         (configure.ac): Remove checks.
26721         (Makefile.am): Don't create test-sameacls program here any more.
26722
26723 2008-06-01  Bruno Haible  <bruno@clisp.org>
26724
26725         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
26726         * tests/test-sameacls.c: Include progname.h.
26727         (main): Invoke set_program_name. Portability fixes for MacOS X,
26728         Solaris, HP-UX.
26729
26730 2008-06-01  Bruno Haible  <bruno@clisp.org>
26731
26732         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
26733         function.
26734         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
26735
26736 2008-06-01  Bruno Haible  <bruno@clisp.org>
26737
26738         * modules/rpmatch (Depends-on): Add strdup.
26739
26740 2008-06-01  Bruno Haible  <bruno@clisp.org>
26741
26742         * lib/pipe.c: Include unistd-safer.h.
26743         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
26744         * modules/pipe (Depends-on): Add unistd-safer.
26745
26746 2008-05-30  Simon Josefsson  <simon@josefsson.org>
26747
26748         * modules/autobuild (configure.ac): Call AB_INIT.
26749
26750 2008-05-30  Simon Josefsson  <simon@josefsson.org>
26751
26752         * tests/test-getaddrinfo.c: Don't print debug messages by default.
26753         Suggested by Bruno Haible <bruno@clisp.org>.
26754
26755 2008-05-30  Simon Josefsson  <simon@josefsson.org>
26756
26757         * tests/test-base64.c: Cast size_t to unsigned long when invoking
26758         printf.  Use %lu instead of %d.  Reported by Bruno Haible
26759         <bruno@clisp.org>.
26760
26761 2008-05-29  Eric Blake  <ebb9@byu.net>
26762
26763         Prefer new POSIX 200x interfaces over futimesat.
26764         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
26765         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
26766         when available.
26767         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
26768
26769 2008-05-28  Bruno Haible  <bruno@clisp.org>
26770
26771         * modules/stpcpy (License): Change to LGPLv2+.
26772         Requested by David Lutterkort <dlutter@redhat.com>.
26773
26774 2008-05-27  Bruno Haible  <bruno@clisp.org>
26775
26776         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
26777         current mingw.
26778         Reported by Jose E. Marchesi <jemarch@gnu.org>.
26779
26780 2008-05-27  Bruno Haible  <bruno@clisp.org>
26781
26782         * modules/iconv_open (Link): New section, from module 'iconv'.
26783         * modules/striconv (Link): Likewise.
26784         * modules/striconveh (Link): Likewise.
26785         * modules/xstriconv (Link): Likewise.
26786         * modules/unicodeio (Link): Likewise.
26787         * modules/propername (Link): Likewise.
26788         Reported by Jim Meyering.
26789
26790 2008-05-26  Jim Meyering  <meyering@redhat.com>
26791
26792         sha256: do not artificially restrict buffer length to be < 2^32
26793         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
26794         uint32_t to size_t.
26795         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
26796         to match.
26797
26798         avoid unaligned access errors, e.g., on sparc
26799         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
26800         direct access through a possibly-unaligned uint64* pointer.
26801         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
26802         direct access through a possibly-unaligned uint32* pointer.
26803         Prompted by this patch from Tom "spot" Callaway:
26804         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
26805
26806         sha512.c: fix typo in comment
26807         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
26808
26809 2008-05-25  Bruno Haible  <bruno@clisp.org>
26810
26811         * lib/set-mode-acl.c: Renamed from lib/acl.c.
26812         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
26813         (Makefile.am): Update lib_SOURCES.
26814
26815 2008-05-25  Bruno Haible  <bruno@clisp.org>
26816
26817         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
26818
26819 2008-05-25  Jim Meyering  <meyering@redhat.com>
26820
26821         useless-if-before-free: freed expr may have white-space differences
26822         * build-aux/useless-if-before-free: Recognize cases in which the
26823         freed expression differs from the tested one in embedded white
26824         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
26825         $1 was used, so we can't make any regexp shy.  Improved tests now
26826         detect this.
26827
26828         useless-if-before-free: accept white space in the expression.
26829         * build-aux/useless-if-before-free: For now, any white space
26830         in the expression must be identical in the free argument.
26831
26832         useless-if-before-free: efficiency tweak
26833         * build-aux/useless-if-before-free: Make the expression-matching
26834         regexp "shy".
26835         Make the *outer* regexp shy, not the expr-matching one.
26836
26837         update code-in-comment to accept cast of free arg
26838         * build-aux/useless-if-before-free: Update regexp.
26839
26840 2008-05-25  Bruno Haible  <bruno@clisp.org>
26841
26842         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
26843         * modules/copy-file-tests (Files, Makefile.am): Update.
26844         * tests/test-copy-file.c (func_test_copy): Update.
26845
26846 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
26847
26848         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
26849
26850 2008-05-23  Bruno Haible  <bruno@clisp.org>
26851
26852         Improve support for ACLs on OSF/1.
26853         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
26854         Remove fallback for unknown flavors of ACLs.
26855
26856 2008-05-22  Bruno Haible  <bruno@clisp.org>
26857
26858         Add support for ACLs on OSF/1.
26859         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
26860         replacements.
26861         (acl_free_text): New macro fallback.
26862         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
26863         acl_free.
26864         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
26865         acl_free_text function. Require AC_C_INLINE.
26866
26867 2008-05-22  Bruno Haible  <bruno@clisp.org>
26868
26869         Make copy_acl work on MacOS X 10.5.
26870         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
26871         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
26872         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
26873         If MODE_INSIDE_ACL, don't assume that every system has the same text
26874         representation for ACLs as FreeBSD.
26875         * lib/copy-acl.c (copy_acl): Add support for platforms with
26876         !MODE_INSIDE_ACL.
26877         * lib/file-has-acl.c (file_has_acl): Likewise.
26878         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
26879         FreeBSD, MacOS X, or IRIX, respectively.
26880
26881 2008-05-22  Bruno Haible  <bruno@clisp.org>
26882
26883         * lib/acl.h: Don't include <sys/acl.h>.
26884         (GETACLCNT): Move fallback to lib/acl-internal.h.
26885         * lib/acl-internal.h: Include <sys/acl.h> here.
26886         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
26887
26888 2008-05-22  Bruno Haible  <bruno@clisp.org>
26889
26890         Split off copy_acl function to separate file.
26891         * lib/copy-acl.c: New file, extracted from lib/acl.c.
26892         * lib/acl.c (copy_acl): Moved function to separate file.
26893         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
26894         * modules/acl (Files): Add lib/copy-acl.c.
26895         (Makefiles.am): Augment lib_SOURCES.
26896
26897 2008-05-22  Bruno Haible  <bruno@clisp.org>
26898
26899         * modules/copy-file-tests: New file.
26900         * tests/test-copy-file.sh: New file.
26901         * tests/test-copy-file.c: New file.
26902         * tests/test-copy-file-sameacls.c: New file.
26903
26904 2008-05-22  Eric Blake  <ebb9@byu.net>
26905
26906         Avoid gcc warning.
26907         * tests/test-memcmp.c (main): Pass NULL indirectly.
26908
26909 2008-05-21  Bruno Haible  <bruno@clisp.org>
26910
26911         Add reference doc about ACLs.
26912         * doc/acl-resources.txt: New file.
26913         * doc/acl-cygwin.txt: New file.
26914
26915 2008-05-21  Bruno Haible  <bruno@clisp.org>
26916
26917         Avoid one more warning from gcc.
26918         * lib/vasnprintf.c (IF_LINT): Update comments.
26919         (VASNPRINTF): Use it also for the 'prefix' array initializer.
26920
26921 2008-05-21  Jim Meyering  <meyering@redhat.com>
26922
26923         avoid a warning from gcc
26924         * lib/vasnprintf.c (IF_LINT): Define.
26925         (scale10_round_decimal_long_double):
26926         Use it to avoid a "may be used uninitialized" warning.
26927         (scale10_round_decimal_double): Likewise.
26928
26929 2008-05-21  Simon Josefsson  <simon@josefsson.org>
26930
26931         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
26932         declared.
26933
26934 2008-05-20  Bruno Haible  <bruno@clisp.org>
26935
26936         * tests/test-memcmp.c (main): Test also the sign of the result. Test
26937         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
26938
26939 2008-05-20  Simon Josefsson  <simon@josefsson.org>
26940
26941         * modules/memcmp-tests: New file.
26942         * tests/test-memcmp.c: New file.
26943
26944 2008-05-19  Bruno Haible  <bruno@clisp.org>
26945
26946         * modules/propername (Notice, configure.ac): Put quoted "..." into
26947         --keyword option.
26948         * lib/propername.h: Update comments accordingly.
26949         Reported by Eric Blake.
26950
26951 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
26952
26953         * modules/getpass-gnu (Depends-on): Add fseeko.
26954
26955 2008-05-19  Simon Josefsson  <simon@josefsson.org>
26956
26957         * modules/base64-tests: New file.
26958
26959 2008-05-19  Bo Borgerson <gigabo@gmail.com>
26960
26961         * lib/base64.c (base64_decode_ctx): If a decode context structure
26962         was passed in use it to ignore newlines.  If a context structure
26963         was _not_ passed in, continue to treat newlines as garbage (this
26964         is the historical behavior).  Formerly base64_decode.
26965         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
26966         takes a decode context structure.
26967         * lib/base64.h (base64_decode): Macro for four-argument calls.
26968         (base64_decode_alloc): Likewise.
26969         * lib/base64.c (base64_decode_ctx): If a decode context structure
26970         was passed in use it to ignore newlines.  If a context structure
26971         was _not_ passed in, continue to treat newlines as garbage (this
26972         is the historical behavior).  Formerly base64_decode.
26973         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
26974         takes a decode context structure.
26975         * lib/base64.h (base64_decode): Macro for four-argument calls.
26976         (base64_decode_alloc): Likewise.
26977
26978 2008-05-19  Jim Meyering  <meyering@redhat.com>
26979
26980         avoid a warning from gcc
26981         * lib/trim.c (IF_LINT): Define.
26982         (trim2): Use it to avoid a "may be used uninitialized" warning.
26983
26984         Fix doc typo.
26985         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
26986
26987 2008-05-19  Bruno Haible  <bruno@clisp.org>
26988
26989         * doc/glibc-functions/getpass.texi: Document limits of other
26990         implementations.
26991
26992 2008-05-19  Simon Josefsson  <simon@josefsson.org>
26993             Bruno Haible <bruno@clisp.org>
26994
26995         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
26996
26997 2008-05-18  Bruno Haible  <bruno@clisp.org>
26998
26999         * modules/propername: New file, from GNU gettext.
27000         * lib/propername.h: New file, from GNU gettext.
27001         * lib/propername.c: New file, from GNU gettext.
27002         * MODULES.html.sh (Internationalization functions): Add propername.
27003
27004 2008-05-16  Jim Meyering  <meyering@redhat.com>
27005             Bruno Haible  <bruno@clisp.org>
27006
27007         Avoid some warnings from "gcc -Wshadow".
27008         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
27009
27010 2008-05-15  Eric Blake  <ebb9@byu.net>
27011
27012         Extend previous patch to cygwin 1.7.0.
27013         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
27014         fast implementation in cygwin >= 1.7.0.
27015         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27016         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27017
27018 2008-05-15  Bruno Haible  <bruno@clisp.org>
27019
27020         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
27021         implementation in glibc >= 2.9.
27022         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27023         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27024
27025 2008-05-15  Bruno Haible  <bruno@clisp.org>
27026
27027         * MODULES.html.sh (Internationalization functions): Remove linebreak.
27028         (Unicode string functions): Add unilbrk/*.
27029         Reported by Karl Berry.
27030
27031 2008-05-15  Eric Blake  <ebb9@byu.net>
27032
27033         Fix violation of <stdbool.h> replacement in regex.
27034         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
27035         * lib/regexec.c (re_search_internal): Likewise.
27036         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
27037
27038 2008-05-15  Jim Meyering  <meyering@redhat.com>
27039
27040         avoid distracting test output when git or cvs is not found
27041         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
27042         * tests/test-vc-list-files-git.sh: Likewise.
27043
27044 2008-05-15  Eric Blake  <ebb9@byu.net>
27045
27046         Glibc finally accepted the memmem speedup code, bugzilla #5514.
27047         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
27048         glibc version.
27049         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27050         * doc/posix-functions/strstr.texi (strstr): Likewise.
27051         * lib/str-two-way.h (MAX): Sychronize with glibc.
27052
27053 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
27054
27055         * lib/regcomp.c (optimize_utf8): Add a note on why we test
27056         opr.ctx_type.
27057         (calc_first): Initialize constraint field.
27058         (duplicate_node_closure): Use it instead of special casing ANCHORS.
27059         Fix grammar.
27060         (duplicate_node): Merge constraint field for all node types.
27061         (calc_eclosure_iter): Look at constraint field for all node types.
27062         * lib/regex_internal.c (create_cd_newstate): Don't look at
27063         opr.ctx_type.
27064
27065 2008-05-14  Bruno Haible  <bruno@clisp.org>
27066
27067         Help GCC to do better code generation.
27068         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
27069         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
27070         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
27071         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
27072         Declare with attribute 'malloc' if supported.
27073
27074 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
27075
27076         use "echo STR|wc -c" rather than unportable "expr length STR"
27077         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
27078         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
27079
27080 2008-05-14  Jim Meyering  <meyering@redhat.com>
27081
27082         use dd ibs=$n count=1 ... rather than less-portable head -c$n
27083         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
27084         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
27085         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
27086         via Collin Lasse.
27087
27088 2008-05-14  Eric Blake  <ebb9@byu.net>
27089
27090         Avoid quadratic growth in gl_LIBSOURCES.
27091         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
27092         Suggested by Bruno Haible.
27093
27094         Test xmemdup0.
27095         * modules/xmemdup0-tests: New file.
27096         * tests/test-xmemdup0.c: Likewise.
27097
27098 2008-05-13  Eric Blake  <ebb9@byu.net>
27099
27100         Split xmemdup0 into its own module.
27101         * modules/xmemdup0: New file.
27102         * lib/xmemdup0.h: Likewise.
27103         * lib/xmemdup0.c: Likewise.
27104         * MODULES.html.sh (Memory management functions): Add xmemdup0.
27105         * lib/xalloc.h (xmemdup0): Remove.
27106         * lib/xmalloc.c (xmemdup0): Likewise.
27107
27108 2008-05-13  Eric Blake  <ebb9@byu.net>
27109             Bruno Haible  <bruno@clisp.org>
27110
27111         Reduce number of forks required during autoconf.
27112         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
27113         and gl_LIBSOURCES_DIR.
27114         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
27115         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
27116         m4_syscmd per file.
27117         <m4_foreach_w>: Move...
27118         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
27119
27120 2008-05-13  Eric Blake  <ebb9@byu.net>
27121
27122         * gnulib-tool: Fix various comment typos.
27123
27124 2008-05-12  Bruno Haible  <bruno@clisp.org>
27125
27126         Tailor the linebreaking algorithm.
27127         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
27128
27129 2008-05-12  Bruno Haible  <bruno@clisp.org>
27130
27131         Update to Unicode 5.0.0.
27132         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
27133         LBP_JV, LBP_JT. Redistribute values.
27134         (unilbrk_table): Change size.
27135         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
27136         Unicode TR#14 rev. 22.
27137         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
27138         LBP_JV, LBP_JT. Redistribute values.
27139         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
27140         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
27141         Update.
27142         * lib/unilbrk/lbrkprop1.h: Regenerated.
27143         * lib/unilbrk/lbrkprop2.h: Regenerated.
27144         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
27145         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
27146         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
27147         Likewise.
27148         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
27149         Likewise.
27150         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
27151         result.
27152         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27153         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27154         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
27155         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
27156         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
27157         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
27158
27159 2008-05-11  Bruno Haible  <bruno@clisp.org>
27160
27161         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
27162
27163 2008-05-11  Bruno Haible  <bruno@clisp.org>
27164
27165         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
27166         * modules/unilbrk/gen-lbrk: New file.
27167
27168 2008-05-11  Bruno Haible  <bruno@clisp.org>
27169
27170         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
27171         * m4/sha512.m4 (gl_SHA512): Likewise.
27172
27173 2008-05-11  Jim Meyering  <meyering@redhat.com>
27174
27175         New modules: crypto/sha256, crypto/sha512 (from coreutils)
27176         * modules/crypto/sha256: New file.
27177         * modules/crypto/sha512: Likewise.
27178         * lib/sha256.c: Likewise.
27179         * lib/sha256.h: Likewise.
27180         * lib/sha512.c: Likewise.
27181         * lib/sha512.h: Likewise.
27182         * lib/u64.h: Likewise.
27183         * m4/sha256.m4: Likewise.
27184         * m4/sha512.m4: Likewise.
27185         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
27186
27187 2008-05-10  Bruno Haible  <bruno@clisp.org>
27188
27189         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
27190         (Input/Output <stdio.h>): Add xprintf.
27191         (Signal handling <signal.h>): Add strsignal.
27192         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
27193         (Core language properties): Add func.
27194         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
27195         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
27196         strings.
27197         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
27198         (Input/output): New section.
27199         (File system functions): Add openat-die, stat-macros.
27200         (Networking functions): Add sockets.
27201         (Unicode string functions): Add unictype/*.
27202         (Support for building libraries and executables): Add gperf.
27203         (Support for building documentation): Add agpl-3.0.
27204         (Misc): Add nocrash.
27205
27206 2008-05-10  Bruno Haible  <bruno@clisp.org>
27207
27208         * modules/unictype/gen-ctype: New file.
27209
27210 2008-05-10  Jim Meyering  <meyering@redhat.com>
27211
27212         Make chdir-safer.c more efficient on a system with no symlinks.
27213         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
27214         also if ELOOP is zero.  Suggested by Bruno Haible.
27215
27216         Make chdir-safer.c slightly safer.
27217         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
27218         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
27219
27220         Avoid compile failure on systems without ELOOP (like mingw).
27221         * lib/chdir-safer.c (ELOOP): Define if not already defined.
27222         Reported by Bruno Haible.
27223
27224 2008-05-10  Bruno Haible  <bruno@clisp.org>
27225
27226         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
27227         (is_utf8_encoding): Use a case-insensitive comparison.
27228         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
27229         streq.
27230
27231 2008-05-10  Bruno Haible  <bruno@clisp.org>
27232
27233         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
27234         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
27235         * lib/unilbrk/ulc-common.h (iconv_string_length,
27236         iconv_string_keeping_offsets): Remove declarations.
27237         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
27238         Don't include <iconv.h>, streq.h, xsize.h.
27239         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
27240         conversion.
27241         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
27242         <iconv.h>, streq.h, xsize.h.
27243         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
27244         conversion.
27245         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
27246         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
27247         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
27248         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
27249
27250 2008-05-10  Bruno Haible  <bruno@clisp.org>
27251
27252         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
27253         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
27254
27255         * modules/unilbrk/u32-width-linebreaks-tests: New file.
27256         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
27257
27258         * modules/unilbrk/u16-width-linebreaks-tests: New file.
27259         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
27260
27261         * modules/unilbrk/u8-width-linebreaks-tests: New file.
27262         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
27263
27264         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
27265         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
27266
27267         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
27268         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
27269
27270         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
27271         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
27272
27273         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
27274         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
27275
27276 2008-05-10  Bruno Haible  <bruno@clisp.org>
27277
27278         Split up 'linebreak' module.
27279         * lib/unilbrk.h: New file, based on lib/linebreak.h.
27280         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
27281         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
27282         modifications.
27283         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
27284         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
27285         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
27286         lib/linebreak.c.
27287         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
27288         lib/linebreak.c.
27289         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
27290         lib/linebreak.c.
27291         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
27292         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
27293         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
27294         lib/linebreak.c.
27295         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
27296         lib/linebreak.c.
27297         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
27298         lib/linebreak.c.
27299         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
27300         lib/linebreak.c.
27301         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
27302         lib/linebreak.c.
27303         * modules/unilbrk/base: New file.
27304         * modules/unilbrk/tables: New file.
27305         * modules/unilbrk/u8-possible-linebreaks: New file.
27306         * modules/unilbrk/u16-possible-linebreaks: New file.
27307         * modules/unilbrk/u32-possible-linebreaks: New file.
27308         * modules/unilbrk/ulc-common: New file.
27309         * modules/unilbrk/ulc-possible-linebreaks: New file.
27310         * modules/unilbrk/u8-width-linebreaks: New file.
27311         * modules/unilbrk/u16-width-linebreaks: New file.
27312         * modules/unilbrk/u32-width-linebreaks: New file.
27313         * modules/unilbrk/ulc-width-linebreaks: New file.
27314         * lib/linebreak.h: Remove file.
27315         * lib/linebreak.c: Remove file.
27316         * m4/linebreak.m4: Remove file.
27317         * modules/linebreak: Remove file.
27318         * NEWS: Mention the changes.
27319
27320 2008-05-09  Eric Blake  <ebb9@byu.net>
27321
27322         Add xmemdup0.
27323         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
27324         implementation.
27325         * lib/xmalloc.c (xmemdup0): New C implementation.
27326
27327 2008-05-08  Bruno Haible  <bruno@clisp.org>
27328
27329         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
27330
27331 2008-05-07  Eric Blake  <ebb9@byu.net>
27332
27333         Support cross-compilation of <wctype.h>.
27334         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
27335         AC_CACHE_CHECK.
27336
27337 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
27338
27339         * build-aux/vc-list-files: Add support for bzr.
27340
27341 2008-05-03  Jim Meyering  <meyering@redhat.com>
27342
27343         avoid failed assertion with tight malloc
27344         * tests/test-getndelim2.c: Correct an off-by-one assertion.
27345
27346 2008-05-03  Simon Josefsson  <simon@josefsson.org>
27347
27348         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
27349         are needed from arpa/inet.h.
27350         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
27351         Reported by Bruno Haible.
27352
27353 2008-05-02  Jim Meyering  <meyering@redhat.com>
27354
27355         avoid compilation error on FreeBSD 6
27356         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
27357
27358 2008-05-01  Jim Meyering  <meyering@redhat.com>
27359
27360         useless-if-before-free: correct --help's exit status description
27361         * build-aux/useless-if-before-free (usage): Like grep, exit 0
27362         for one or more matches, etc.  Reported by Bruno Haible.
27363
27364         vc-list-files: make the stand-alone gnulib test work
27365         * modules/vc-list-files-tests (configure.ac):
27366         Define and AC_SUBST abs_aux_dir.
27367         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
27368         $(abs_top_srcdir) to each script and having each of them
27369         duplicate the work of setting PATH, set PATH here, using
27370         the new variable, abs_aux_dir instead.
27371         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
27372         * tests/test-vc-list-files-git.sh: Likewise.
27373         Reported by Bruno Haible.
27374
27375 2008-05-01  Bruno Haible  <bruno@clisp.org>
27376
27377         * lib/getndelim2.c (getndelim2): Fix newsize computation during
27378         reallocation. Rename 'done' to 'found_delimiter'.
27379
27380 2008-05-01  Jim Meyering  <meyering@redhat.com>
27381
27382         vc-list-files: accommodate /bin/sh like the one from Solaris 10
27383         * build-aux/vc-list-files: Use `...`, not $(...).
27384
27385 2008-04-30  Jim Meyering  <meyering@redhat.com>
27386
27387         add tests for vc-list-files
27388         * modules/vc-list-files-tests: New module.
27389         * tests/test-vc-list-files-cvs.sh: New file.
27390         * tests/test-vc-list-files-git.sh: New file.
27391
27392         avoid a warning from gcc
27393         * lib/getndelim2.c (IF_LINT): Define.
27394         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
27395
27396         vc-list-files: work properly with build-aux/cvsu, too
27397         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
27398         to all cvs-based clauses.
27399
27400         vc-list-files: work properly in the CVS+awk case, too
27401         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
27402
27403         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
27404         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
27405         take more than one file argument, so .  Add quotes, just in case $dir
27406         ever contains a shell meta-character.  Prompted by Soren Hansen in
27407         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
27408
27409 2008-04-29  Eric Blake  <ebb9@byu.net>
27410
27411         Optimize getndelim2 to use block operations when possible.
27412         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
27413         freadseek, and memchr2.
27414         * lib/getndelim2.c (getndelim2): Use them for block reads.
27415
27416 2008-04-29  Bruno Haible  <bruno@clisp.org>
27417
27418         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
27419         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27420         * modules/inet_ntop (Depends-on): Add extensions.
27421         * modules/inet_pton (Depends-on): Likewise.
27422         Reported by Simon Josefsson.
27423
27424 2008-04-29  Jim Meyering  <meyering@redhat.com>
27425
27426         When the is more than one match in a block, match all of them.
27427         * build-aux/useless-if-before-free: Iterate through each block
27428         until there are no more matches.
27429
27430         Fix broken useless-if-before-free script.
27431         * build-aux/useless-if-before-free: Fix typo: missing "?" after
27432         the expression to match cast of argument to free-like function.
27433
27434 2008-04-29  Eric Blake  <ebb9@byu.net>
27435
27436         Use new header.
27437         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
27438
27439 2008-04-29  Jim Meyering  <meyering@redhat.com>
27440
27441         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
27442         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
27443         by gnulib to exist and to declare e.g., inet_ntop.
27444         Don't include "inet_ntop.h", now removed.
27445
27446         * m4/arpa_inet_h.m4: Remove trailing blanks.
27447
27448 2008-04-29  Eric Blake  <ebb9@byu.net>
27449
27450         Silence valgrind on safe reads beyond potential array bounds.
27451         * lib/rawmemchr.valgrind: New file.
27452         * lib/strchrnul.valgrind: Likewise.
27453         * modules/rawmemchr (Files): Distribute new file.
27454         * modules/strchrnul (Files): Likewise.
27455         Suggested by Bruno Haible.
27456
27457 2008-04-29  Bruno Haible  <bruno@clisp.org>
27458
27459         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
27460         (inet_ntop, inet_pton): Change portability warning's wording.
27461         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
27462         Invoke gl_CHECK_NEXT_HEADERS.
27463         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
27464         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
27465         set ARPA_INET_H.
27466         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27467         * modules/arpa_inet (Description): No longer only for systems that
27468         lack it.
27469         (Depends-on): Add include_next.
27470         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
27471         HAVE_ARPA_INET_H.
27472
27473 2008-04-29  Jim Meyering  <meyering@redhat.com>
27474
27475         * modules/mkdir (License): Re-license as LGPLv2+.
27476
27477 2008-04-29  Bruno Haible  <bruno@clisp.org>
27478
27479         * modules/rawmemchr (Maintainer): Set to Eric.
27480         * modules/strchrnul (Maintainer): Likewise.
27481
27482 2008-04-29  Simon Josefsson  <simon@josefsson.org>
27483
27484         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
27485         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
27486
27487         * modules/arpa_inet (arpa/inet.h): Use them.
27488
27489 2008-04-28  Eric Blake  <ebb9@byu.net>
27490
27491         Test getndelim2.
27492         * modules/getndelim2-tests: New file.
27493         * tests/test-getndelim2.c: Likewise.
27494         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
27495         stream.
27496         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
27497
27498         * MODULES.html.sh: Document new module.
27499
27500 2008-04-20  Bruno Haible  <bruno@clisp.org>
27501
27502         * lib/c-stack.c (die): Use raise.
27503         * modules/c-stack (Depends-on): Add raise.
27504
27505 2008-04-28  Bruno Haible  <bruno@clisp.org>
27506
27507         Expect rpmatch to be declared.
27508         * lib/yesno.c (rpmatch): Remove declaration.
27509
27510         Declare rpmatch.
27511         * lib/stdlib.in.h (rpmatch): New declaration.
27512         * lib/rpmatch.c: Include <stdlib.h> first.
27513         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
27514         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
27515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
27516         HAVE_RPMATCH.
27517         * modules/rpmatch (Depends-on): Add stdlib, extensions.
27518         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27519         (Include): Set to <stdlib.h>.
27520         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
27521         HAVE_RPMATCH.
27522         * NEWS: Document the change.
27523
27524 2008-04-28  Bruno Haible  <bruno@clisp.org>
27525
27526         Change rpmatch to use nl_langinfo when appropriate.
27527         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
27528         (N_): New macro.
27529         (localized_pattern): New function/macro.
27530         (try): Remove match, nomatch arguments. Copy the pattern into safe
27531         memory before caching it.
27532         (rpmatch): Use localized_pattern. Add translator comments.
27533         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
27534         Suggested by Eric Blake.
27535         * modules/rpmatch (Depends-on): Add stdbool.
27536
27537 2008-04-28  Eric Blake  <ebb9@byu.net>
27538
27539         Add rawmemchr module, matching glibc.
27540         * modules/string (Makefile.am): New indicator.
27541         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
27542         * lib/string.in.h (rawmemchr): Declare when appropriate.
27543         * modules/rawmemchr: New file.
27544         * m4/rawmemchr.m4: Likewise.
27545         * lib/rawmemchr.c: Likewise.
27546         * modules/rawmemchr-tests: Likewise.
27547         * tests/test-rawmemchr.c: Likewise.
27548         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
27549         module.
27550         * modules/strchrnul (Depends-on): Add rawmemchr.
27551         * lib/strchrnul.c (strchrnul): Optimize a corner case.
27552
27553         Whitespace cleanup.
27554         * tests/test-strchrnul.c: Reindent.
27555         * lib/strchrnul.c: Likewise.
27556
27557         Optimize and test strchrnul.
27558         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
27559         * modules/strchrnul-tests: New file.
27560         * tests/test-strchrnul.c: Likewise.
27561
27562         Remove intprops dependency.
27563         * modules/memchr (Depends-on): Remove intprops.
27564         * modules/memrchr (Depends-on): Likewise.
27565         * modules/memchr2 (Depends-on): Likewise.
27566         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
27567         * lib/memrchr.c (__memrchr): Likewise.
27568         * lib/memrchr2.c (memchr2): Likewise.
27569         Reported by Simon Josefsson.
27570
27571 2008-04-28  Simon Josefsson  <simon@josefsson.org>
27572
27573         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
27574         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27575
27576 2008-04-28  Simon Josefsson  <simon@josefsson.org>
27577
27578         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
27579
27580         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
27581
27582         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
27583
27584         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
27585         declarations.
27586         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
27587
27588         * m4/inet_pton.m4: Don't check for header files.
27589
27590         * m4/inet_ntop.m4: Don't check for header files.
27591
27592 2008-04-28  Simon Josefsson  <simon@josefsson.org>
27593
27594         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
27595         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
27596         trigger for cygwin).
27597         Reported by Bruno Haible  <bruno@clisp.org>.
27598
27599 2008-04-28  Bruno Haible  <bruno@clisp.org>
27600
27601         * doc/posix-functions/strdup.texi: Mention mingw problem.
27602
27603 2008-04-27  Bruno Haible  <bruno@clisp.org>
27604
27605         * modules/stat-time-tests (Depends-on): Add sleep.
27606         * tests/test-stat-time.c (force_unlink): New function.
27607         (cleanup): Use it.
27608         (test_mtime): Remove the ctime related tests.
27609         (test_ctime): New function, containing the ctime related tests.
27610         (main): Call test_ctime, except on native Windows platforms.
27611
27612 2008-04-27  Bruno Haible  <bruno@clisp.org>
27613
27614         * lib/rpmatch.c (rpmatch): Add some comments.
27615         Reported by James Youngman <jay@gnu.org>.
27616
27617 2008-04-27  Bruno Haible  <bruno@clisp.org>
27618
27619         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
27620         quiet NaNs.
27621
27622 2008-04-27  Bruno Haible  <bruno@clisp.org>
27623
27624         Make test-yesno.sh work on mingw.
27625         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
27626         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
27627         (main): Set stdin to binary mode.
27628         * modules/yesno-tests (Depends-on): Add binary-io.
27629
27630 2008-04-27  Bruno Haible  <bruno@clisp.org>
27631
27632         Fix 'isfinite' on x86, x86_64, ia64 platforms.
27633         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
27634         argument that lie outside the IEEE 854 domain.
27635         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
27636         (gl_ISFINITE): Use it.
27637         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
27638
27639 2008-04-27  Bruno Haible  <bruno@clisp.org>
27640
27641         Allow local renaming in config.h.
27642         * lib/memrchr.c (memrchr): Don't undefine outside libc.
27643
27644 2008-04-27  Bruno Haible  <bruno@clisp.org>
27645
27646         * lib/memchr.c (__memchr): Change type of 'i'.
27647         * lib/memchr2.c (memchr2): Likewise.
27648
27649 2008-04-26  Eric Blake  <ebb9@byu.net>
27650         and Bruno Haible  <bruno@clisp.org>
27651
27652         Optimize and test memrchr.
27653         * modules/memrchr (Depends-on): Add intprops.
27654         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
27655         * modules/memrchr-tests: New file.
27656         * tests/test-memrchr.c: New file.
27657
27658 2008-04-26  Bruno Haible  <bruno@clisp.org>
27659
27660         Add tentative support for DragonFly BSD.
27661         * lib/stdio-impl.h: Add macros for DragonFly BSD.
27662         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
27663         fp.
27664         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
27665         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
27666         * lib/fpurge.c (fpurge): Likewise.
27667         * lib/freadable.c (freaadable): Likewise.
27668         * lib/freadahead.c (freadahead): Likewise.
27669         * lib/freading.c (freading): Likewise.
27670         * lib/freadptr.c (freadptr): Likewise.
27671         * lib/freadseek.c (freadptrinc): Likewise.
27672         * lib/fseeko.c (fseeko): Likewise.
27673         * lib/fseterr.c (fseterr): Likewise.
27674         * lib/fwritable.c (fwritable): Likewise.
27675         * lib/fwriting.c (fwriting): Likewise.
27676
27677 2008-04-26  Bruno Haible  <bruno@clisp.org>
27678
27679         * lib/stdio-impl.h: New file.
27680         * lib/fbufmode.c: Include stdio-impl.h.
27681         (fbufmode): Use fp_, remove redundant #defines.
27682         * lib/fflush.c: Include stdio-impl.h.
27683         (clear_ungetc_buffer): Remove redundant #defines.
27684         * lib/fpurge.c: Include stdio-impl.h.
27685         (fpurge): Remove redundant #defines.
27686         * lib/freadable.c: Include stdio-impl.h.
27687         (freadable): Remove redundant #defines.
27688         * lib/freadahead.c: Include stdio-impl.h.
27689         (freadahead): Remove redundant #defines.
27690         * lib/freading.c: Include stdio-impl.h.
27691         (freading): Remove redundant #defines.
27692         * lib/freadptr.c: Include stdio-impl.h.
27693         (freadptr): Remove redundant #defines.
27694         * lib/freadseek.c: Include stdio-impl.h.
27695         (freadptrinc): Remove redundant #defines.
27696         * lib/fseeko.c: Include stdio-impl.h.
27697         (rpl_fseeko): Remove redundant #defines.
27698         * lib/fseterr.c: Include stdio-impl.h.
27699         (fseterr): Remove redundant #defines.
27700         * lib/fwritable.c: Include stdio-impl.h.
27701         (fwritable: Remove redundant #defines.
27702         * lib/fwriting.c: Include stdio-impl.h.
27703         (fwriting): Remove redundant #defines.
27704         * modules/fbufmode (Files): Add lib/stdio-impl.h.
27705         * modules/fflush (Files): Likewise.
27706         * modules/fpurge (Files): Likewise.
27707         * modules/freadable (Files): Likewise.
27708         * modules/freadahead (Files): Likewise.
27709         * modules/freading (Files): Likewise.
27710         * modules/freadptr (Files): Likewise.
27711         * modules/freadseek (Files): Likewise.
27712         * modules/fseeko (Files): Likewise.
27713         * modules/fseterr (Files): Likewise.
27714         * modules/fwritable (Files): Likewise.
27715         * modules/fwriting (Files): Likewise.
27716
27717 2008-04-26  Bruno Haible  <bruno@clisp.org>
27718
27719         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
27720         restore_seek_optimization, update_fpos_cache): New functions, extracted
27721         from rpl_fflush.
27722         (rpl_fflush): Use them.
27723         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
27724         (gl_REPLACE_FFLUSH): Use it.
27725
27726 2008-04-26  Bruno Haible  <bruno@clisp.org>
27727
27728         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
27729         on Solaris.
27730         * tests/test-xstrtoimax.sh: Likewise.
27731         * tests/test-xstrtoumax.sh: Likewise.
27732         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27733
27734 2008-04-26  Bruno Haible  <bruno@clisp.org>
27735
27736         * modules/memchr-tests: New file.
27737         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
27738
27739 2008-04-26  Eric Blake  <ebb9@byu.net>
27740             Bruno Haible  <bruno@clisp.org>
27741
27742         * lib/memchr.c: Include intprops.h.
27743         (__memchr): Optimize parallel detection of matching bytes. Rename local
27744         variables. Add explanatory comments.
27745
27746 2008-04-26  Bruno Haible  <bruno@clisp.org>
27747
27748         Fix module 'memchr', broken since 2000-10-28.
27749         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
27750
27751 2008-04-26  Bruno Haible  <bruno@clisp.org>
27752
27753         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
27754         comments.
27755
27756 2008-04-25  Eric Blake  <ebb9@byu.net>
27757
27758         Use native fstatat on cygwin 1.7.0.
27759         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
27760         first.
27761
27762 2008-04-23  Eric Blake  <ebb9@byu.net>
27763
27764         Improve memchr2 performance.
27765         * lib/memchr2.c (memchr2): Further optimize parallel detection of
27766         NUL bytes.
27767         * modules/memchr2 (Depends-on): Use intprops.h.
27768
27769 2008-04-23  Simon Josefsson  <simon@josefsson.org>
27770
27771         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
27772         an inline function instead of a CPP macro.  Patch by Ben Pfaff
27773         <blp@cs.stanford.edu>.
27774
27775 2008-04-23  Simon Josefsson  <simon@josefsson.org>
27776
27777         * lib/arpa_inet.in.h: New file.
27778
27779         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
27780         (Makefile.am): Sed in substitute header file.
27781
27782         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
27783         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
27784
27785         * modules/inet_ntop (configure.ac): Use
27786         gl_ARPA_INET_MODULE_INDICATOR.
27787
27788         * modules/inet_pton (configure.ac): Use
27789         gl_ARPA_INET_MODULE_INDICATOR.
27790
27791 2008-04-22  Jim Meyering  <meyering@redhat.com>
27792
27793         * modules/verify (License): Re-license as LGPLv2+.
27794
27795 2008-04-22  Simon Josefsson  <simon@josefsson.org>
27796
27797         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
27798         parameter to void* as per POSIX standard (MinGW uses char*).
27799
27800 2008-04-21  Bruno Haible  <bruno@clisp.org>
27801
27802         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
27803         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
27804         Define to replacements if REPLACE_ISWCNTRL is 1.
27805         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
27806         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
27807         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
27808         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
27809         what it fixes.
27810         * doc/posix-functions/iswalpha.texi: Likewise.
27811         * doc/posix-functions/iswblank.texi: Likewise.
27812         * doc/posix-functions/iswcntrl.texi: Likewise.
27813         * doc/posix-functions/iswdigit.texi: Likewise.
27814         * doc/posix-functions/iswgraph.texi: Likewise.
27815         * doc/posix-functions/iswlower.texi: Likewise.
27816         * doc/posix-functions/iswprint.texi: Likewise.
27817         * doc/posix-functions/iswpunct.texi: Likewise.
27818         * doc/posix-functions/iswspace.texi: Likewise.
27819         * doc/posix-functions/iswupper.texi: Likewise.
27820         * doc/posix-functions/iswxdigit.texi: Likewise.
27821         Reported by Alain Guibert.
27822
27823 2008-04-21  Bruno Haible  <bruno@clisp.org>
27824
27825         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
27826         Patch by Alain Guibert.
27827
27828 2008-04-21  Bruno Haible  <bruno@clisp.org>
27829
27830         Fix test failures on mingw.
27831         * tests/test-xstrtol.c (print_no_progname): New function.
27832         (main): Install it in error_print_progname hook.
27833         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
27834         * tests/test-xstrtoimax.sh: Likewise.
27835         * tests/test-xstrtoumax.sh: Likewise.
27836
27837 2008-04-21  Bruno Haible  <bruno@clisp.org>
27838
27839         Fix test failure on mingw.
27840         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
27841
27842 2008-04-21  Bruno Haible  <bruno@clisp.org>
27843
27844         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
27845         Actually assign a value.
27846
27847 2008-04-20  Bruno Haible  <bruno@clisp.org>
27848
27849         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
27850         take 2.
27851         * lib/canonicalize.c (canonicalize_file_name): Elide if the
27852         'canonicalize-lgpl' module is also used.
27853         * lib/canonicalize-lgpl.c: Undo last change.
27854         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
27855
27856 2008-04-20  Bruno Haible  <bruno@clisp.org>
27857
27858         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
27859         config.h. Provide _mkdir based fallback for mingw.
27860         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
27861         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
27862         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
27863         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
27864         rather than defining mkdir in config.h.
27865         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
27866         (gl_SYS_STAT_H_DEFAULTS): New macro.
27867         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
27868         HAVE_IO_H any more.
27869         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
27870         HAVE_DECL_MKDIR and HAVE_IO_H.
27871
27872 2008-04-20  Bruno Haible  <bruno@clisp.org>
27873
27874         * lib/isapipe.c: Port to native Windows platforms.
27875
27876 2008-04-20  Bruno Haible  <bruno@clisp.org>
27877
27878         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
27879
27880 2008-04-21  Eric Blake  <ebb9@byu.net>
27881
27882         Work around preprocessors that don't handle UINTMAX_MAX.
27883         * lib/memchr2.c (memchr2): Avoid embedded #if.
27884         Reported by Alain Guibert, fix suggested by Bruno Haible.
27885
27886 2008-04-21  Simon Josefsson  <simon@josefsson.org>
27887
27888         * doc/posix-functions/strftime.texi (strftime): Explain better
27889         Windows incompatibility.  Suggested by Micah Cowan
27890         <micah@cowan.name>.
27891
27892 2008-04-20  Bruno Haible  <bruno@clisp.org>
27893
27894         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
27895         unistr/u8-mblen.
27896
27897 2008-04-20  Bruno Haible  <bruno@clisp.org>
27898
27899         Fix test failure on platforms with non-GNU iconv.
27900         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
27901         (U_TO_U8): Use it, rather than u16_to_u8.
27902         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
27903         units at the end of the input string.
27904         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
27905
27906 2008-04-20  Bruno Haible  <bruno@clisp.org>
27907
27908         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
27909         when the resulting length is 0.
27910         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
27911
27912 2008-04-20  Bruno Haible  <bruno@clisp.org>
27913
27914         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
27915         works.
27916         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
27917
27918 2008-04-20  Bruno Haible  <bruno@clisp.org>
27919
27920         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
27921         * modules/tsearch-tests (configure.ac): Test for initstate function.
27922
27923 2008-04-20  Bruno Haible  <bruno@clisp.org>
27924
27925         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
27926         for nlink_t if missing.
27927         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
27928
27929 2008-04-19  Bruno Haible  <bruno@clisp.org>
27930
27931         Work around snprintf bug on Linux libc5.
27932         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
27933         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
27934         gl_SNPRINTF_SIZE1.
27935         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27936         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
27937         that test failed.
27938         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
27939         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
27940         * modules/snprintf (Files): Add m4/printf.m4.
27941         * modules/vsnprintf (Files): Likewise.
27942         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
27943         * doc/posix-functions/vsnprintf.texi: Likewise.
27944
27945 2008-04-19  Bruno Haible  <bruno@clisp.org>
27946
27947         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
27948         from 0.0058 to less than 10^-7.
27949
27950 2008-04-19  Bruno Haible  <bruno@clisp.org>
27951
27952         Fix rounding when a precision is given.
27953         * lib/vasnprintf.c (is_borderline): New function.
27954         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
27955         9...9x.
27956         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
27957         %e, %g.
27958         * tests/test-vasprintf-posix.c (test_function): Likewise.
27959         * tests/test-snprintf-posix.h (test_function): Likewise.
27960         * tests/test-sprintf-posix.h (test_function): Likewise.
27961         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
27962         * tests/test-printf-posix.h (test_function): Likewise.
27963         * tests/test-printf-posix.output: Update.
27964         Reported by John Darrington <john@darrington.wattle.id.au> via
27965         Ben Pfaff <blp@cs.stanford.edu>.
27966
27967 2008-04-18  Simon Josefsson  <simon@josefsson.org>
27968
27969         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
27970         Suggested by Bruno Haible <bruno@clisp.org>.
27971
27972 2008-04-17  Bruno Haible  <bruno@clisp.org>
27973
27974         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
27975         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
27976         implementation.
27977         Patch by Bruce Merry <bmerry@gmail.com>.
27978
27979 2008-04-17  Simon Josefsson  <simon@josefsson.org>
27980
27981         * doc/posix-functions/strftime.texi (strftime): Mention that %e
27982         doesn't work under Windows.
27983
27984 2008-04-16  Bruno Haible  <bruno@clisp.org>
27985
27986         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
27987         New macros.
27988         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
27989         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
27990         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
27991         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
27992         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
27993         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
27994         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
27995         macros.
27996         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
27997         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
27998         Northern Sotho, Uighur.
27999
28000 2008-04-16  Bruno Haible  <bruno@clisp.org>
28001
28002         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
28003         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
28004         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
28005         Reported by Daniel Bergström <daniel@octocode.com>.
28006
28007 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
28008             Bruno Haible  <bruno@clisp.org>
28009
28010         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
28011         function.
28012         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
28013         New functions, mostly extracted from gl_locale_name_default.
28014         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
28015
28016 2008-04-16  Eric Blake  <ebb9@byu.net>
28017
28018         Adjust strtod detection to catch glibc 2.7 bug.
28019         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
28020         Reported by John Gatewood Ham.
28021
28022 2008-04-16  Bruno Haible  <bruno@clisp.org>
28023
28024         Add tentative support for Linux libc5.
28025         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
28026         * lib/fpurge.c (fpurge): Likewise.
28027         * lib/freadable.c (freadable): Likewise.
28028         * lib/freadahead.c (freadahead): Likewise.
28029         * lib/freading.c (freading): Likewise.
28030         * lib/freadptr.c (freadptr): Likewise.
28031         * lib/freadseek.c (freadptrinc): Likewise.
28032         * lib/fseeko.c (rpl_fseeko): Likewise.
28033         * lib/fseterr.c (fseterr): Likewise.
28034         * lib/fwritable.c (fwritable): Likewise.
28035         * lib/fwriting.c (fwriting): Likewise.
28036         Reported by Alain Guibert <alguibert+bts@free.fr>.
28037
28038 2008-04-15  Bruno Haible  <bruno@clisp.org>
28039
28040         * modules/mathl (configure.ac): Define module indicator.
28041
28042 2008-04-15  Bruno Haible  <bruno@clisp.org>
28043
28044         * lib/logl.c (logl): Remove unused variables.
28045
28046 2008-04-15  Bruno Haible  <bruno@clisp.org>
28047
28048         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
28049         fails.
28050
28051 2008-04-15  Bruno Haible  <bruno@clisp.org>
28052
28053         * lib/trim.c (trim2): Fix argument of isspace() macro.
28054
28055 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
28056
28057         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
28058         to 0.
28059         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
28060
28061 2008-04-14  Bruno Haible  <bruno@clisp.org>
28062
28063         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
28064         AC_LANG_PROGRAM argument.
28065         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
28066         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
28067         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28068         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28069         * m4/math_h.m4 (gl_MATH_H): Likewise.
28070         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
28071         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28072         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
28073         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
28074         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
28075         * m4/regex.m4 (gl_REGEX): Likewise.
28076         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
28077         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
28078         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28079         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
28080         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
28081         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28082         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28083         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28084
28085 2008-04-14  Jim Meyering  <meyering@redhat.com>
28086
28087         test-strtod: fix typos: s/abs/fabs/
28088         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
28089
28090 2008-04-13  Bruno Haible  <bruno@clisp.org>
28091
28092         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
28093         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
28094         module is also used and while not building the reloc-wrapper.
28095
28096 2008-04-13  Bruno Haible  <bruno@clisp.org>
28097
28098         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
28099
28100 2008-04-13  Bruno Haible  <bruno@clisp.org>
28101
28102         Fix AIX compilation failure introduced on 2008-04-02.
28103         * tests/test-frexp.c (exp): Undefine before redefining.
28104         * tests/test-frexpl.c (exp): Likewise.
28105
28106 2008-04-13  Bruno Haible  <bruno@clisp.org>
28107
28108         Work around a HP-UX stdio bug.
28109         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
28110         * tests/test-ftello.c (main): Likewise.
28111         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
28112         * doc/posix-functions/ftello.texi: Likewise.
28113
28114 2008-04-13  Bruno Haible  <bruno@clisp.org>
28115
28116         Make test-signbit pass on HP-UX/hppa.
28117         * tests/test-signbit.c (minus_zerol): New variable.
28118         (test_signbitl): Use it.
28119
28120 2008-04-13  Bruno Haible  <bruno@clisp.org>
28121
28122         Make truncl work on OSF/1 4.0.
28123         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
28124         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
28125         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
28126         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
28127         HAVE_DECL_TRUNCL.
28128         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
28129         HAVE_DECL_TRUNCL.
28130         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
28131
28132 2008-04-13  Bruno Haible  <bruno@clisp.org>
28133
28134         * lib/unictype.h: Remove trailing comma from enumeration definitions.
28135
28136 2008-04-13  Bruno Haible  <bruno@clisp.org>
28137
28138         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
28139         expression, so as to avoid HP-UX 11 cc compiler bug.
28140
28141 2008-04-13  Bruno Haible  <bruno@clisp.org>
28142
28143         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
28144
28145 2008-04-13  Bruno Haible  <bruno@clisp.org>
28146
28147         * lib/git-merge-changelog.c: Remove empty declaration outside of
28148         functions.
28149
28150 2008-04-13  Bruno Haible  <bruno@clisp.org>
28151
28152         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
28153
28154 2008-04-13  Bruno Haible  <bruno@clisp.org>
28155
28156         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
28157         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
28158         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
28159         also if it exists but lacks definitions of the SHUT_* macros.
28160         * modules/sys_socket (Description): Update.
28161         Reported by Elbert Pol <e.pol@chello.nl>.
28162
28163 2008-04-13  Bruno Haible  <bruno@clisp.org>
28164
28165         * lib/localcharset.c (OS2): Don't redefine if already defined.
28166         Reported by Elbert Pol <e.pol@chello.nl>.
28167
28168 2008-04-13  Bruno Haible  <bruno@clisp.org>
28169
28170         * lib/binary-io.h [__EMX__]: Include <io.h>.
28171         Reported by Elbert Pol <e.pol@chello.nl>.
28172
28173 2008-04-12  Bruno Haible  <bruno@clisp.org>
28174
28175         * lib/fpucw.h: Enable the definitions also for x86_64.
28176         Needed for NetBSD/x86_64.
28177         Reported by Thomas Klausner <tk@giga.or.at>.
28178
28179 2008-04-12  Bruno Haible  <bruno@clisp.org>
28180
28181         * tests/test-strtod.c: Include isnand.h.
28182         (main): Use isnand instead of isnan.
28183         Reported by Jim Meyering.
28184
28185 2008-04-12  Bruno Haible  <bruno@clisp.org>
28186
28187         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
28188         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
28189
28190 2008-04-12  Jim Meyering  <meyering@redhat.com>
28191
28192         * m4/math_h.m4 (gl_MATH_H): Fix typos.
28193
28194 2008-04-12  Bruno Haible  <bruno@clisp.org>
28195
28196         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
28197         Reported by Elbert Pol <e.pol@chello.nl>.
28198
28199 2008-04-12  Eric Blake  <ebb9@byu.net>
28200
28201         Work around Solaris 10 math.h bug.
28202         * m4/math_h.m4 (gl_MATH_H): Check for bug.
28203         (gl_MATH_H_DEFAULTS): Set up default.
28204         * modules/math (Makefile.am): Replace new indicators.
28205         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
28206         * tests/test-math.c (main): Test this.
28207         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
28208         * doc/posix-headers/math.texi (math.h): Mention bug.
28209         Reported by Nelson H. F. Beebe and Jim Meyering.
28210
28211 2008-04-11  Bruno Haible  <bruno@clisp.org>
28212
28213         Adapt to future versions of Apple GCC.
28214         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
28215         Reported by Peter O'Gorman <peter@pogma.com>.
28216
28217 2008-04-11  Bruno Haible  <bruno@clisp.org>
28218
28219         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
28220
28221 2008-04-11  Bruno Haible  <bruno@clisp.org>
28222
28223         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
28224
28225         * modules/getaddrinfo-tests (Makefile.am): Define
28226         test_getaddrinfo_LDADD.
28227
28228 2008-04-11  Bruno Haible  <bruno@clisp.org>
28229
28230         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
28231         (init): Fix syntax error.
28232         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
28233         is declared.
28234
28235 2008-04-11  Bruno Haible  <bruno@clisp.org>
28236
28237         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
28238         * modules/glob (Depends-on): Add stdbool.
28239
28240 2008-04-11  Bruno Haible  <bruno@clisp.org>
28241
28242         * lib/trim.c: Include <string.h>.
28243
28244 2008-04-11  Eric Blake  <ebb9@byu.net>
28245
28246         Avoid compile failure on OS/2.
28247         * lib/regex_internal.h (internal_function): Disable optimization
28248         on OS/2 (__EMX__), where it caused compiler error.
28249         Reported by Elbert Pol.
28250
28251 2008-04-11  Bruno Haible  <bruno@clisp.org>
28252
28253         Flush the standard error stream before aborting. Needed on mingw.
28254         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
28255         * tests/test-array_list.c (ASSERT): Likewise.
28256         * tests/test-array_oset.c (ASSERT): Likewise.
28257         * tests/test-avltree_list.c (ASSERT): Likewise.
28258         * tests/test-avltree_oset.c (ASSERT): Likewise.
28259         * tests/test-avltreehash_list.c (ASSERT): Likewise.
28260         * tests/test-binary-io.c (ASSERT): Likewise.
28261         * tests/test-byteswap.c (ASSERT): Likewise.
28262         * tests/test-c-ctype.c (ASSERT): Likewise.
28263         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
28264         * tests/test-c-strcasestr.c (ASSERT): Likewise.
28265         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
28266         * tests/test-c-strstr.c (ASSERT): Likewise.
28267         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
28268         * tests/test-canonicalize.c (ASSERT): Likewise.
28269         * tests/test-carray_list.c (ASSERT): Likewise.
28270         * tests/test-ceilf1.c (ASSERT): Likewise.
28271         * tests/test-ceilf2.c (ASSERT): Likewise.
28272         * tests/test-ceill.c (ASSERT): Likewise.
28273         * tests/test-count-one-bits.c (ASSERT): Likewise.
28274         * tests/test-fbufmode.c (ASSERT): Likewise.
28275         * tests/test-fflush2.c (ASSERT): Likewise.
28276         * tests/test-floorf1.c (ASSERT): Likewise.
28277         * tests/test-floorf2.c (ASSERT): Likewise.
28278         * tests/test-floorl.c (ASSERT): Likewise.
28279         * tests/test-fopen.c (ASSERT): Likewise.
28280         * tests/test-fpending.c (ASSERT): Likewise.
28281         * tests/test-fprintf-posix.c (ASSERT): Likewise.
28282         * tests/test-fpurge.c (ASSERT): Likewise.
28283         * tests/test-freadable.c (ASSERT): Likewise.
28284         * tests/test-freadahead.c (ASSERT): Likewise.
28285         * tests/test-freading.c (ASSERT): Likewise.
28286         * tests/test-freadptr.c (ASSERT): Likewise.
28287         * tests/test-freadptr2.c (ASSERT): Likewise.
28288         * tests/test-freadseek.c (ASSERT): Likewise.
28289         * tests/test-freopen.c (ASSERT): Likewise.
28290         * tests/test-frexp.c (ASSERT): Likewise.
28291         * tests/test-frexpl.c (ASSERT): Likewise.
28292         * tests/test-fseek.c (ASSERT): Likewise.
28293         * tests/test-fseeko.c (ASSERT): Likewise.
28294         * tests/test-fstrcmp.c (ASSERT): Likewise.
28295         * tests/test-ftell.c (ASSERT): Likewise.
28296         * tests/test-ftello.c (ASSERT): Likewise.
28297         * tests/test-func.c (ASSERT): Likewise.
28298         * tests/test-fwritable.c (ASSERT): Likewise.
28299         * tests/test-fwriting.c (ASSERT): Likewise.
28300         * tests/test-getdelim.c (ASSERT): Likewise.
28301         * tests/test-getline.c (ASSERT): Likewise.
28302         * tests/test-i-ring.c (ASSERT): Likewise.
28303         * tests/test-iconv-utf.c (ASSERT): Likewise.
28304         * tests/test-iconv.c (ASSERT): Likewise.
28305         * tests/test-isfinite.c (ASSERT): Likewise.
28306         * tests/test-isnand.c (ASSERT): Likewise.
28307         * tests/test-isnanf.c (ASSERT): Likewise.
28308         * tests/test-isnanl.h (ASSERT): Likewise.
28309         * tests/test-ldexpl.c (ASSERT): Likewise.
28310         * tests/test-linked_list.c (ASSERT): Likewise.
28311         * tests/test-linkedhash_list.c (ASSERT): Likewise.
28312         * tests/test-localename.c (ASSERT): Likewise.
28313         * tests/test-lseek.c (ASSERT): Likewise.
28314         * tests/test-mbscasecmp.c (ASSERT): Likewise.
28315         * tests/test-mbscasestr1.c (ASSERT): Likewise.
28316         * tests/test-mbscasestr2.c (ASSERT): Likewise.
28317         * tests/test-mbscasestr3.c (ASSERT): Likewise.
28318         * tests/test-mbscasestr4.c (ASSERT): Likewise.
28319         * tests/test-mbschr.c (ASSERT): Likewise.
28320         * tests/test-mbscspn.c (ASSERT): Likewise.
28321         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
28322         * tests/test-mbspbrk.c (ASSERT): Likewise.
28323         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
28324         * tests/test-mbsrchr.c (ASSERT): Likewise.
28325         * tests/test-mbsspn.c (ASSERT): Likewise.
28326         * tests/test-mbsstr1.c (ASSERT): Likewise.
28327         * tests/test-mbsstr2.c (ASSERT): Likewise.
28328         * tests/test-mbsstr3.c (ASSERT): Likewise.
28329         * tests/test-memchr2.c (ASSERT): Likewise.
28330         * tests/test-memmem.c (ASSERT): Likewise.
28331         * tests/test-open.c (ASSERT): Likewise.
28332         * tests/test-printf-frexp.c (ASSERT): Likewise.
28333         * tests/test-printf-frexpl.c (ASSERT): Likewise.
28334         * tests/test-printf-posix.c (ASSERT): Likewise.
28335         * tests/test-quotearg.c (ASSERT): Likewise.
28336         * tests/test-rbtree_list.c (ASSERT): Likewise.
28337         * tests/test-rbtree_oset.c (ASSERT): Likewise.
28338         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
28339         * tests/test-round1.c (ASSERT): Likewise.
28340         * tests/test-roundf1.c (ASSERT): Likewise.
28341         * tests/test-roundl.c (ASSERT): Likewise.
28342         * tests/test-signbit.c (ASSERT): Likewise.
28343         * tests/test-sleep.c (ASSERT): Likewise.
28344         * tests/test-snprintf-posix.c (ASSERT): Likewise.
28345         * tests/test-snprintf.c (ASSERT): Likewise.
28346         * tests/test-sprintf-posix.c (ASSERT): Likewise.
28347         * tests/test-stat-time.c (ASSERT): Likewise.
28348         * tests/test-strcasestr.c (ASSERT): Likewise.
28349         * tests/test-strerror.c (ASSERT): Likewise.
28350         * tests/test-striconv.c (ASSERT): Likewise.
28351         * tests/test-striconveh.c (ASSERT): Likewise.
28352         * tests/test-striconveha.c (ASSERT): Likewise.
28353         * tests/test-strsignal.c (ASSERT): Likewise.
28354         * tests/test-strstr.c (ASSERT): Likewise.
28355         * tests/test-strtod.c (ASSERT): Likewise.
28356         * tests/test-trunc1.c (ASSERT): Likewise.
28357         * tests/test-trunc2.c (ASSERT): Likewise.
28358         * tests/test-truncf1.c (ASSERT): Likewise.
28359         * tests/test-truncf2.c (ASSERT): Likewise.
28360         * tests/test-truncl.c (ASSERT): Likewise.
28361         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
28362         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
28363         * tests/test-vasnprintf.c (ASSERT): Likewise.
28364         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
28365         * tests/test-vasprintf.c (ASSERT): Likewise.
28366         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
28367         * tests/test-vprintf-posix.c (ASSERT): Likewise.
28368         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
28369         * tests/test-vsnprintf.c (ASSERT): Likewise.
28370         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
28371         * tests/test-wcwidth.c (ASSERT): Likewise.
28372         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
28373         * tests/test-xprintf-posix.c (ASSERT): Likewise.
28374         * tests/test-xvasprintf.c (ASSERT): Likewise.
28375         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
28376         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
28377         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
28378         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
28379         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
28380         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
28381         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
28382         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
28383         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
28384         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
28385         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
28386         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
28387         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
28388         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
28389         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
28390         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
28391         * tests/unictype/test-block_list.c (ASSERT): Likewise.
28392         * tests/unictype/test-block_of.c (ASSERT): Likewise.
28393         * tests/unictype/test-block_test.c (ASSERT): Likewise.
28394         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
28395         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
28396         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
28397         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
28398         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
28399         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
28400         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
28401         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
28402         * tests/unictype/test-combining.c (ASSERT): Likewise.
28403         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
28404         * tests/unictype/test-digit.c (ASSERT): Likewise.
28405         * tests/unictype/test-mirror.c (ASSERT): Likewise.
28406         * tests/unictype/test-numeric.c (ASSERT): Likewise.
28407         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
28408         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
28409         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
28410         * tests/unictype/test-scripts.c (ASSERT): Likewise.
28411         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
28412         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
28413         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
28414         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
28415         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
28416         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
28417         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
28418         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
28419         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
28420         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
28421         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
28422         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
28423         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
28424         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
28425         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
28426         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
28427         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
28428         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
28429         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
28430         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
28431         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
28432         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
28433         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
28434         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
28435         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
28436         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
28437         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
28438         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
28439         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
28440         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
28441         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
28442         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
28443         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
28444         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
28445         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
28446         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
28447         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
28448         Reported by Eric Blake.
28449
28450 2008-04-11  Bruno Haible  <bruno@clisp.org>
28451
28452         * lib/wchar.in.h: Tweak comment.
28453
28454 2008-04-11  Bruno Haible  <bruno@clisp.org>
28455
28456         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
28457         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
28458         gl_COMMON.
28459         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
28460
28461 2008-04-11  Bruno Haible  <bruno@clisp.org>
28462
28463         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
28464
28465 2008-04-11  Simon Josefsson  <simon@josefsson.org>
28466
28467         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
28468         of attempting to use non-existing /dev/*random.  Based on patch
28469         from Adam Strzelecki <ono@java.pl> in
28470         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
28471
28472 2008-04-08  Bruno Haible  <bruno@clisp.org>
28473
28474         Add tentative support for emx+gcc.
28475         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
28476         * lib/fpurge.c (fpurge): Likewise.
28477         * lib/freadable.c (freadable): Likewise.
28478         * lib/freadahead.c (freadahead): Likewise.
28479         * lib/freading.c (freading): Likewise.
28480         * lib/freadptr.c (freadptr): Likewise.
28481         * lib/freadseek.c (freadptrinc): Likewise.
28482         * lib/fseeko.c (rpl_fseeko): Likewise.
28483         * lib/fseterr.c (fseterr): Likewise.
28484         * lib/fwritable.c (fwritable): Likewise.
28485         * lib/fwriting.c (fwriting): Likewise.
28486         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
28487
28488 2008-04-09  Eric Blake  <ebb9@byu.net>
28489
28490         Avoid some autoconf warnings.
28491         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
28492         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
28493         * m4/afs.m4 (gl_AFS): Likewise.
28494         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
28495         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
28496         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
28497         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
28498         (gl_INTEGER_TYPE_SUFFIX): Likewise.
28499         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
28500         (AC_CHECK_DECLS_ONCE): Likewise.
28501         Rename file...
28502         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
28503         gnulib-tool requires autoconf 2.59 or better.
28504         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
28505
28506 2008-04-08  Eric Blake  <ebb9@byu.net>
28507
28508         Use 'git describe --match' if present (added in git 1.5.5).
28509         * build-aux/git-version-gen: Limit result to tags that match 'v*'
28510         if possible.
28511
28512 2008-04-08  Bruno Haible  <bruno@clisp.org>
28513
28514         Add tentative support for OpenServer.
28515         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
28516         _ptr, _cnt.
28517         * lib/fpurge.c (fpurge): Likewise.
28518         * lib/freadable.c (freadable): Likewise.
28519         * lib/freadahead.c (freadahead): Likewise.
28520         * lib/freading.c (freading): Likewise.
28521         * lib/freadptr.c (freadptr): Likewise.
28522         * lib/freadseek.c (freadptrinc): Likewise.
28523         * lib/fseeko.c (rpl_fseeko): Likewise.
28524         * lib/fseterr.c (fseterr): Likewise.
28525         * lib/fwritable.c (fwritable): Likewise.
28526         * lib/fwriting.c (fwriting): Likewise.
28527         Reported by Roger Cornelius <rac@tenzing.org> and
28528         Brian K. White <brian@aljex.com>.
28529
28530 2008-04-06  Jim Meyering  <meyering@redhat.com>
28531
28532         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
28533
28534 2008-04-06  Bruno Haible  <bruno@clisp.org>
28535
28536         Avoid possible error with non-ASCII bytes in UTF-8 locales.
28537         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
28538         * tests/test-printf-posix.sh: Likewise.
28539         * tests/test-vfprintf-posix.sh: Likewise.
28540         * tests/test-vprintf-posix.sh: Likewise.
28541         * tests/test-xprintf-posix.sh: Likewise.
28542
28543 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28544
28545         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
28546         hide error from 'ls', needed on OS/2.
28547         Report by Elbert Pol <elbert.pol@gmail.com>.
28548
28549 2008-04-04  Eric Blake  <ebb9@byu.net>
28550
28551         Make test-fseeko.c failures meaningful.
28552         * tests/test-fseeko.c: Print line number on failure.
28553         * tests/test-fseek.c: Likewise.
28554         Reported by Nelson H. F. Beebe.
28555
28556         Improve strtod bug detection check.
28557         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
28558         required for Solaris 10.
28559         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
28560
28561 2008-04-04  Bruno Haible  <bruno@clisp.org>
28562
28563         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
28564         by m4/setenv.m4.
28565
28566 2008-04-03  Eric Blake  <ebb9@byu.net>
28567
28568         Ensure sane .version contents.
28569         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
28570         version string.
28571         * build-aux/git-version-gen: Improve documentation.
28572
28573         Make GNU make output nicer.
28574         * top/GNUmakefile [!_have-Makefile]: Add dependency on
28575         MAKECMDGOALS to enforce message for all command line targets.  Set
28576         srcdir for use in maint.mk.
28577
28578         Another maintainer tweak.
28579         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
28580         a target that regenerates version.
28581
28582 2008-04-03  Jim Meyering  <meyering@redhat.com>
28583
28584         vc-list-files: don't cause coreutils "make po-check" failure
28585         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
28586
28587 2008-04-03  Eric Blake  <ebb9@byu.net>
28588
28589         Allow VPATH usage of vc-list-files.
28590         * build-aux/vc-list-files (scriptversion): Add timestamp.
28591         (options): Add --help, --version, -C.
28592         (CVS): Support installed cvsu.
28593
28594 2008-04-02  Bruno Haible  <bruno@clisp.org>
28595
28596         Avoid some "statement with no effect" warnings from gcc.
28597         * tests/test-wctype.c (main): Explicitly ignore unused values.
28598         Reported by Jim Meyering.
28599
28600 2008-04-02  Jim Meyering  <meyering@redhat.com>
28601
28602         Avoid some warnings from "gcc -Wshadow".
28603         * tests/test-frexp.c (exp): Define to a different identifier.
28604         * tests/test-frexpl.c (exp): Likewise.
28605
28606 2008-04-03  Jim Meyering  <meyering@redhat.com>
28607
28608         bootstrap: remove dangling *.[ch] symlinks from lib
28609         * build-aux/bootstrap [dangling symlink removal]: Move find's
28610         -depth option to precede all others, to avoid a warning.
28611         Remove *.[ch] files too, and from "$source_base" (usually lib/).
28612
28613 2008-04-02  Bruno Haible  <bruno@clisp.org>
28614
28615         Avoid some warnings from "gcc -Wshadow".
28616         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
28617         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
28618         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
28619         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
28620         Reported by Jim Meyering.
28621
28622 2008-04-01  Bruno Haible  <bruno@clisp.org>
28623
28624         Fix test to work on IRIX 6.5 with cc.
28625         * tests/test-math.c (numeric_equal): New function.
28626         (main): Use it.
28627
28628 2008-04-01  Bruno Haible  <bruno@clisp.org>
28629
28630         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
28631
28632 2008-04-01  Bruno Haible  <bruno@clisp.org>
28633
28634         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
28635         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
28636         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
28637         (Depends-on): Remove math.
28638
28639         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
28640         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
28641         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
28642         (Depends-on): Remove math.
28643
28644         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
28645         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
28646         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
28647         (Depends-on): Remove math.
28648         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
28649         (Depends-on): Remove math.
28650
28651         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
28652         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
28653         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
28654         (Depends-on): Remove math.
28655         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
28656         (Depends-on): Remove math.
28657
28658         * tests/test-round1.c: Include nan.h.
28659         (main): Use NaNd instead of NAN.
28660         * modules/round-tests (Files): Add tests/nan.h.
28661
28662         * tests/test-trunc1.c: Include nan.h.
28663         (main): Use NaNd instead of NAN.
28664         * modules/trunc-tests (Files): Add tests/nan.h.
28665
28666         * tests/test-roundf1.c: Include nan.h.
28667         (main): Use NaNf instead of NAN.
28668         * modules/roundf-tests (Files): Add tests/nan.h.
28669
28670         * tests/test-truncf1.c: Include nan.h.
28671         (main): Use NaNf instead of NAN.
28672         * modules/truncf-tests (Files): Add tests/nan.h.
28673
28674         * tests/test-ceilf1.c: Include nan.h.
28675         (main): Use NaNf instead of NAN.
28676         * modules/ceilf-tests (Files): Add tests/nan.h.
28677
28678         * tests/test-floorf1.c: Include nan.h.
28679         (main): Use NaNf instead of NAN.
28680         * modules/floorf-tests (Files): Add tests/nan.h.
28681
28682         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
28683         (main): Use NaNf instead of NAN.
28684         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
28685
28686         * tests/test-isnand.c: Include nan.h instead of <math.h>.
28687         (main): Use NaNd instead of NAN.
28688         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
28689
28690         * tests/test-frexp.c: Include nan.h.
28691         (main): Use NaNd instead of NAN.
28692         * modules/frexp-tests (Files): Add tests/nan.h.
28693
28694         * lib/isnan.c: Don't include <math.h>.
28695         (FUNC): Don't use NAN macro.
28696         * modules/isnand-nolibm (Depends-on): Remove math.
28697         * modules/isnanf-nolibm (Depends-on): Remove math.
28698         * modules/isnanl (Depends-on): Remove math.
28699         * modules/isnanl-nolibm (Depends-on): Remove math.
28700
28701         * tests/nan.h: New file.
28702
28703 2008-04-01  Eric Blake  <ebb9@byu.net>
28704
28705         Fix typos.
28706         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
28707         values to be the right type.
28708
28709         For now, cater to gnulib strtod inaccuracies.
28710         * tests/test-strtod.c (main): Allow 1-ulp error on expected
28711         fractional results.  While not as nice from a QoI perspective, it
28712         is a quicker patch than correctly implementing decimal to binary
28713         rounding.
28714
28715 2008-03-31  Eric Blake  <ebb9@byu.net>
28716
28717         Guarantee a definition of NAN.
28718         * lib/math.in.h (NAN): Define if missing.
28719         * tests/test-math.c (main): Test it.
28720         * doc/posix-headers/math.texi (math.h): Document this.
28721         * lib/isnan.c (rpl_isnand): Use it.
28722         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
28723         * tests/test-floorf1.c (NaN): Likewise.
28724         * tests/test-frexp.c (NaN): Likewise.
28725         * tests/test-isnand.c (NaN): Likewise.
28726         * tests/test-isnanf.c (NaN): Likewise.
28727         * tests/test-round1.c (NaN): Likewise.
28728         * tests/test-roundf1.c (NaN): Likewise.
28729         * tests/test-snprintf-posix.h (NaN): Likewise.
28730         * tests/test-sprintf-posix.h (NaN): Likewise.
28731         * tests/test-trunc1.c (NaN): Likewise.
28732         * tests/test-truncf1.c (NaN): Likewise.
28733         * tests/test-vasnprintf-posix.c (NaN): Likewise.
28734         * tests/test-vasprintf-posix.c (NaN): Likewise.
28735         * modules/isnand-nolibm (Depends-on): Add math.
28736         * modules/isnanf-nolibm (Depends-on): Likewise.
28737         * modules/isnanl (Depends-on): Likewise.
28738         * modules/isnanl-nolibm (Depends-on): Likewise.
28739         * modules/snprintf-posix-tests (Depends-on): Likewise.
28740         * modules/sprintf-posix-tests (Depends-on): Likewise.
28741         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
28742         * modules/vsprintf-posix-tests (Depends-on): Likewise.
28743         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
28744         * modules/vasprintf-posix-tests (Depends-on): Likewise.
28745
28746 2008-03-31  Bruno Haible  <bruno@clisp.org>
28747
28748         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
28749         * doc/posix-functions/strtod.texi: Likewise.
28750
28751 2008-03-31  Bruno Haible  <bruno@clisp.org>
28752
28753         * tests/test-strtod.c (main): Don't use C99 syntax.
28754
28755 2008-03-31  Bruno Haible  <bruno@clisp.org>
28756
28757         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
28758         Reported by Eric Blake.
28759
28760 2008-03-31  Jim Meyering  <meyering@redhat.com>
28761
28762         Don't compare actual signbit return values.
28763         * tests/test-strtod.c (main): Rather, compare only their
28764         zero/non-zero nature.
28765
28766 2008-03-31  Eric Blake  <ebb9@byu.net>
28767
28768         More strtod documentation.
28769         * doc/posix-functions/strtod.texi (strtod): Interpret more test
28770         failures as distinct bugs.
28771
28772 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
28773
28774         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
28775         Problem reported by Erik Benada in
28776         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
28777
28778 2008-03-30  Bruno Haible  <bruno@clisp.org>
28779
28780         * tests/test-strtod.c: Add comments about which assertion fails on which
28781         platform.
28782         * doc/posix-functions/strtod.texi: Add info about many more platforms.
28783
28784 2008-03-30  Eric Blake  <ebb9@byu.net>
28785
28786         Test signbit behavior on zeros.
28787         * tests/test-signbit.c (test_signbitf): Add tests for zero.
28788         (test_signbitd, test_signbitl): Likewise.
28789
28790         More strtod touchups.
28791         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
28792         sign of negative underflow, for now.  Use .5, not .1.
28793         * doc/posix-functions/strtod.texi (strtod): Mention these
28794         limitations.
28795         Reported by Jim Meyering.
28796
28797 2008-03-30  Bruno Haible  <bruno@clisp.org>
28798
28799         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
28800         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
28801
28802 2008-03-30  Bruno Haible  <bruno@clisp.org>
28803
28804         Avoid failure when attempting to return empty iconv results on some
28805         platforms.
28806         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
28807         allocation, don't report ENOMEM when the resulting string is empty.
28808
28809 2008-03-30  Bruno Haible  <bruno@clisp.org>
28810
28811         Fix buffer overrun.
28812         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
28813         Don't consider the width for tmp_length. Check count against tmp_length
28814         before doing the padding. Ensure enough allocation during padding.
28815
28816 2008-03-30  Eric Blake  <ebb9@byu.net>
28817
28818         strtod touchups.
28819         * lib/strtod.c (strtod): Avoid compiler warnings.
28820         Reported by Jim Meyering.
28821
28822 2008-03-30  Bruno Haible  <bruno@clisp.org>
28823
28824         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
28825         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
28826         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
28827         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
28828         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
28829         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
28830         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
28831         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
28832
28833         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
28834         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
28835         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
28836         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
28837         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
28838         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
28839         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
28840         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
28841
28842         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
28843         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
28844         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
28845         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
28846         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
28847         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
28848         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
28849         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
28850
28851         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
28852         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
28853
28854         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
28855         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
28856
28857         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
28858         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
28859
28860         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
28861         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
28862         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
28863
28864         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
28865         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
28866         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
28867
28868         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
28869         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
28870         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
28871
28872         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
28873         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
28874         * modules/vasprintf (Depends-on): Add EOVERFLOW.
28875
28876         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
28877         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
28878         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
28879         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
28880         (Depends-on): Add EOVERFLOW.
28881         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
28882         (Depends-on): Add EOVERFLOW.
28883         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
28884         (Depends-on): Add EOVERFLOW.
28885         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
28886         (Depends-on): Add EOVERFLOW.
28887         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
28888         (Depends-on): Add EOVERFLOW.
28889         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
28890         (Depends-on): Add EOVERFLOW.
28891         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
28892         (Depends-on): Add EOVERFLOW.
28893         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
28894         (Depends-on): Add EOVERFLOW.
28895
28896         * lib/sprintf.c (EOVERFLOW): Remove fallback.
28897         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
28898         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
28899
28900         * lib/snprintf.c (EOVERFLOW): Remove fallback.
28901         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
28902         * modules/snprintf (Depends-on): Add EOVERFLOW.
28903
28904         * lib/poll.c (EOVERFLOW): Remove fallback.
28905         * modules/poll (Depends-on): Add EOVERFLOW.
28906
28907         * lib/getugroups.c (EOVERFLOW): Remove fallback.
28908         * modules/getugroups (Depends-on): Add EOVERFLOW.
28909
28910         * lib/getdelim.c (EOVERFLOW): Remove fallback.
28911         * modules/getdelim (Depends-on): Add EOVERFLOW.
28912
28913         * lib/ftell.c (EOVERFLOW): Remove fallback.
28914         * modules/ftell (Depends-on): Add EOVERFLOW.
28915
28916         * lib/fprintf.c (EOVERFLOW): Remove fallback.
28917         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
28918         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
28919
28920         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
28921
28922         * modules/EOVERFLOW-tests: New file.
28923         * tests/test-EOVERFLOW.c: New file.
28924
28925         * modules/EOVERFLOW: New file.
28926         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
28927
28928 2008-03-30  Bruno Haible  <bruno@clisp.org>
28929
28930         Fix bug introduced on 2007-06-10.
28931         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
28932         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
28933
28934 2008-03-30  Bruno Haible  <bruno@clisp.org>
28935
28936         Improve freadseek's efficiency after ungetc.
28937         * lib/freadseek.c: Include freadahead.h.
28938         (freadptrinc): New function, extracted from freadseek.
28939         (freadseek): Use it in a loop. Use freadahead to determine the number
28940         of loop iterations.
28941         * modules/freadseek (Depends-on): Add freadahead.
28942         (configure.ac): Require AC_C_INLINE.
28943
28944 2008-03-30  Bruno Haible  <bruno@clisp.org>
28945
28946         * lib/freadseek.c (freadseek): Don't ignore the return value of
28947         freadptr.
28948
28949 2008-03-29  Eric Blake  <ebb9@byu.net>
28950
28951         Add hex float support.
28952         * modules/strtod (Depends-on): Add c-ctype.
28953         (Link): Mention POW_LIB.
28954         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
28955         whitespace between 'e' and exponent.
28956         * tests/test-strtod.c (main): Enable hex float tests.
28957         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
28958         now provides.
28959
28960         Document various strtod bugs, with some fixes.
28961         * doc/posix-functions/strtod.texi (strtod): Document bugs with
28962         "-0x", "inf", "nan", and hex constants.
28963         * doc/posix-functions/atof.texi (atof): Likewise.
28964         * modules/stdlib (Makefile.am): Support strtod.
28965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
28966         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
28967         detect additional strtod bugs.
28968         * lib/stdlib.in.h (rpl_strtod): Add declarations.
28969         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
28970         bool where appropriate.  Parse 'inf' and 'nan'.
28971         * tests/test-strtod.c: New file.
28972         * modules/strtod (Depends-on): Add stdbool, stdlib.
28973         (configure.ac): Turn on module indicator.
28974         * modules/strtod-tests: New module.
28975
28976 2008-03-29  Eric Blake  <ebb9@byu.net>
28977
28978         Fix ftell on mingw.
28979         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
28980         * modules/ftell-tests (Depends-on): Add binary-io.
28981         * modules/ftello-tests (Depends-on): Likewise.
28982         * tests/test-ftell.c (main): Enhance test to cover behavior after
28983         ungetc.  Enforce binary mode.
28984         * tests/test-ftello.c (main): Likewise.
28985
28986         Pass test-freadseek on cygwin.
28987         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
28988         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
28989         ungetc buffer.
28990
28991         * tests/test-fflush2.c (main): Fix typo.
28992
28993 2008-03-29  Bruno Haible  <bruno@clisp.org>
28994
28995         * tests/test-fflush2.c (main): Temporarily disable the contents of
28996         this test.
28997         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
28998         Reported by Eric Blake.
28999
29000 2008-03-28  Simon Josefsson  <simon@josefsson.org>
29001
29002         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
29003         (GC_SHA224_DIGEST_SIZE): Add.
29004
29005         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
29006         (gc_hash_digest_length): Likewise.
29007         (gc_hash_buffer): Likewise.
29008
29009 2008-03-25  Bruno Haible  <bruno@clisp.org>
29010
29011         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
29012         detail which gettext release to use.
29013         Reported by Simon Josefsson.
29014
29015 2008-03-26  Jim Meyering  <meyering@redhat.com>
29016
29017         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
29018         * modules/gnumakefile (clean-GNUmakefile): Also, use
29019         test ... && ... || : syntax rather than if-then ... fi.
29020
29021         gnumakefile: Don't double-quote-expand $(VPATH) value.
29022         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
29023
29024 2008-03-24  Eric Blake  <ebb9@byu.net>
29025
29026         Alter GNUmakefile to install into top directory.
29027         * modules/maintainer-makefile: Split, and add dependency...
29028         * modules/gnumakefile: to this new module.
29029         * build-aux/GNUmakefile: Move...
29030         * top/GNUmakefile: ...here.
29031         * build-aux/maint.mk: Move...
29032         * top/maint.mk: ...here.
29033         * MODULES.html.sh (Support for maintaining...): Document new
29034         module.
29035
29036 2008-03-23  Bruno Haible  <bruno@clisp.org>
29037
29038         * gnulib-tool: New options --vc-files, --no-vc-files.
29039         (func_usage): Document them.
29040         (vc_files): New variable.
29041         (func_import): Consider vc_files.
29042         (func_create_testdir): Set vc_files to empty.
29043         Suggested by Jim Meyering and Karl Berry.
29044
29045 2008-03-23  Bruno Haible  <bruno@clisp.org>
29046
29047         Fix regex compilation error on HP-UX 11.
29048         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
29049         * modules/regex (Files): Add m4/mbstate_t.m4.
29050         Reported by Ton Voon <ton.voon@altinity.com>.
29051
29052 2008-03-23  Bruno Haible  <bruno@clisp.org>
29053
29054         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
29055
29056 2008-03-23  Eric Blake  <ebb9@byu.net>
29057             Bruno Haible  <bruno@clisp.org>
29058
29059         Install files from top/ in the destination directory.
29060         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
29061         augmentation also for the files from top/.
29062         (func_import, func_create_testdir): Rewrite file names:
29063         top/filename -> filename.
29064
29065 2008-03-23  Bruno Haible  <bruno@clisp.org>
29066
29067         Tweak "gnulib --version" output.
29068         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
29069
29070 2008-03-23  Bruno Haible  <bruno@clisp.org>
29071
29072         Tweak "gnulib --version" output.
29073         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
29074         rather than contents of ChangeLog, when possible.
29075
29076 2008-03-21  Eric Blake  <ebb9@byu.net>
29077
29078         More --version tweaks.
29079         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
29080         date of last ChangeLog entry.
29081
29082 2008-03-21  Jim Meyering  <meyering@redhat.com>
29083
29084         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
29085
29086 2008-03-20  Eric Blake  <ebb9@byu.net>
29087
29088         VPATH fix.
29089         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
29090
29091 2008-03-20  Simon Josefsson  <simon@josefsson.org>
29092
29093         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
29094         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
29095
29096 2008-03-20  Eric Blake  <ebb9@byu.net>
29097
29098         Sync GNUmakefile with coreutils.
29099         * build-aux/GNUmakefile (have-Makefile): Rename...
29100         (_have-Makefile): ...to this, for namespace consideration.
29101         (GNUmakefile.cfg): Include, if present.
29102         (_autoreconf): Define a default.
29103         (_is-dist-target): New rule for rebuilds to pick up intra-release
29104         version.
29105         (maint-cfg.mk): Rename...
29106         (cfg.mk): ...to this.
29107
29108 2008-03-18  Jim Meyering  <meyering@redhat.com>
29109
29110         New script and module: mktempd
29111         * MODULES.html.sh (maint+release support): Add mktempd.
29112         * build-aux/mktempd: New file.
29113         * modules/mktempd: New file.
29114
29115 2008-03-15  Jim Meyering  <meyering@redhat.com>
29116
29117         Undo last change.
29118         * lib/sha1.c, lib/md5.c: 63 != ~63.
29119         Reported by Andreas Schwab.
29120
29121         sha1.c, md5.c: Hoist a redundant expression.
29122         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
29123         "ctx->buflen" only once, before calling *_process_block.
29124         * lib/md5.c (md5_process_bytes): Likewise.
29125
29126 2008-03-14  Eric Blake  <ebb9@byu.net>
29127
29128         Bump copyright year in files generated by gnulib-tool.
29129         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
29130         gnulib-tool, rather than hard-coding it.
29131
29132         Fix 'gnulib-tool --version' output to work with git.
29133         * gnulib-tool (func_gnulib_dir): New function, extracted from...
29134         (startup): ...here.
29135         (func_version): Use it to invoke git-version-gen, rather than
29136         relying on CVS keyword expansion.  Modernize wording.
29137         (cvsdatestamp, last_checkin_date, version): Kill unused
29138         variables.
29139
29140 2008-03-12  Jim Meyering  <meyering@redhat.com>
29141
29142         Recognize optional cast of the argument to free.
29143         * build-aux/useless-if-before-free: Update regexps.
29144
29145         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
29146
29147 2008-03-11  Bruno Haible  <bruno@clisp.org>
29148
29149         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
29150         by a single package.
29151         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
29152         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
29153         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
29154         Reported by Sam Steingold <sds@gnu.org>.
29155
29156 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29157
29158         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
29159         repositories.
29160
29161 2008-03-11  Bruno Haible  <bruno@clisp.org>
29162
29163         Avoid conflicts between local macro definitions.
29164         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
29165         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
29166
29167 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
29168             Bruno Haible  <bruno@clisp.org>
29169
29170         Make va_copy work with some version of xlc on AIX 5.1.
29171         * lib/stdarg.in.h: New file.
29172         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
29173         On AIX, use a <stdarg.h> file substitute.
29174         * modules/stdarg (Files): Add lib/stdarg.in.h.
29175         (Depends-on): Add include_next.
29176         (Makefile.am): Build a stdarg.h substitute if requested.
29177         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
29178
29179 2008-03-10  Bruno Haible  <bruno@clisp.org>
29180
29181         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
29182         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29183         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
29184
29185 2008-03-10  Bruno Haible  <bruno@clisp.org>
29186
29187         * modules/stdlib (Depends-on): Add include_next, remove
29188         absolute-header.
29189
29190 2008-03-09  Bruno Haible  <bruno@clisp.org>
29191
29192         * lib/freadahead.h (freadahead): Document more precisely.
29193         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
29194         the sum of both buffer sizes.
29195         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
29196         * NEWS: Document the change.
29197
29198 2008-03-09  Bruno Haible  <bruno@clisp.org>
29199
29200         Extend freadptr to return also the buffer size.
29201         * lib/freadptr.h (freadptr): Add sizep argument.
29202         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
29203         (freadptr): Add sizep argument. Determine buffer size like freadahead
29204         does.
29205         * tests/test-freadptr.c: Don't include freadahead.h.
29206         (main): Adapt for new calling convention of freadptr.
29207         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
29208         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
29209         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
29210         tests/test-freadptr2.sh.
29211         (Depends): Remove freadahead.
29212         (TESTS): Add test-freadptr2.sh.
29213         (check_PROGRAMS): Add test-freadptr2.
29214
29215 2008-03-09  Bruno Haible  <bruno@clisp.org>
29216
29217         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
29218         Report and solution by Simon Josefsson.
29219
29220 2008-03-06  Bruno Haible  <bruno@clisp.org>
29221
29222         Make fflush after ungetc work on BSD platforms.
29223         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
29224         * tests/test-fflush2.c: New file.
29225         * tests/test-fflush2.sh: New file.
29226         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
29227         tests/test-fflush2.c.
29228         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
29229         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
29230
29231 2008-03-06  Eric Blake  <ebb9@byu.net>
29232
29233         Likewise for ftello.
29234         * modules/ftello (Dependencies): Add extensions.
29235         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
29236
29237 2008-03-06  Bruno Haible  <bruno@clisp.org>
29238
29239         * modules/fseeko (Dependencies): Add extensions.
29240         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
29241         Needed on glibc systems.
29242
29243 2008-03-06  Bruno Haible  <bruno@clisp.org>
29244
29245         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
29246         email address.
29247         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29248
29249 2008-03-06  Bruno Haible  <bruno@clisp.org>
29250
29251         * users.txt: Add libgnupdf.
29252
29253 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29254
29255         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
29256         (Header File Substitutes, Function Substitutes,
29257         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
29258         (Build robot for gnulib): Fix typo.
29259
29260 2008-03-06  Bruno Haible  <bruno@clisp.org>
29261
29262         * doc/gnulib-tool.texi (VCS Issues): Small updates.
29263         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29264
29265 2008-03-06  Bruno Haible  <bruno@clisp.org>
29266
29267         * doc/func.texi: New file, extracted from doc/gnulib.texi.
29268         * doc/gnulib.texi: Include it.
29269
29270 2008-03-06  Simon Josefsson  <simon@josefsson.org>
29271
29272         * modules/func (License): Change license to unlimited; there was
29273         no LGPL parts in the module anyway.
29274
29275 2008-03-06  Simon Josefsson  <simon@josefsson.org>
29276
29277         * modules/__func__: Renamed to modules/func.
29278         * modules/__func__-tests: Renamed to modules/func-tests.
29279         * tests/test-__func__.c: Renamed to tests/test-func.c.
29280         * m4/__func__.m4: Renamed to m4/func.m4.
29281         * doc/gnulib.texi (__func__): Section renamed to func.
29282         Suggested by Eric Blake <ebb9@byu.net>.
29283
29284 2008-03-06  Simon Josefsson  <simon@josefsson.org>
29285
29286         * doc/gnulib.texi (__func__): Use C99 terminology when talking
29287         about __func__.  Make example self-contained.  Suggested by Eric
29288         Blake <ebb9@byu.net>.
29289
29290         * tests/test-__func__.c (main): Avoid extraneous () around __func.
29291         Suggested by Eric Blake <ebb9@byu.net>.
29292
29293 2008-03-06  Simon Josefsson  <simon@josefsson.org>
29294
29295         * modules/__func__: New file.
29296         * modules/__func__-tests: New file.
29297         * tests/test-__func__.c: New file.
29298         * m4/__func__.m4: New file.
29299         * doc/gnulib.texi (__func__): Document __func__ module.
29300
29301 2008-03-05  Simon Josefsson  <simon@josefsson.org>
29302
29303         * modules/byteswap (License): Re-license as LGPLv2+.
29304
29305 2008-03-05  Simon Josefsson  <simon@josefsson.org>
29306
29307         * doc/Makefile: Add pdf target.
29308
29309 2008-03-05  Simon Josefsson  <simon@josefsson.org>
29310
29311         * modules/inline (License): Use 'unlimited', since there are only
29312         *.m4 files in this module.
29313
29314 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
29315             Bruno Haible  <bruno@clisp.org>
29316
29317         Add support for HP C 7.1 on OpenVMS 8.3.
29318         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
29319
29320 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
29321
29322         Update VMS specifics.
29323         * lib/getopt.c [VMS]: Remove include of unixlib.h.
29324
29325 2008-03-02  Jim Meyering  <meyering@redhat.com>
29326
29327         Remove the last dependency on the "free" module.
29328         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
29329         Reported by Bob Proulx.
29330
29331         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
29332
29333         Remove useless "if" tests before free.  Deprecate "free" module.
29334         * doc/posix-functions/free.texi: Mention that this
29335         module is no longer useful.
29336         * modules/free (Notice): Say this module is obsolete.
29337         * modules/readutmp (Depends-on): Remove free.
29338         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
29339         * lib/putenv.c (putenv): Likewise.
29340         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
29341         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
29342         * tests/test-c-strcasestr.c (main): Likewise.
29343         * tests/test-c-strstr.c (main): Likewise.
29344         * tests/test-mbscasestr1.c (main): Likewise.
29345         * tests/test-mbscasestr2.c (main): Likewise.
29346         * tests/test-mbsstr1.c (main): Likewise.
29347         * tests/test-mbsstr2.c (main): Likewise.
29348         * tests/test-memmem.c (main): Likewise.
29349         * tests/test-strcasestr.c (main): Likewise.
29350         * tests/test-striconv.c (main): Likewise.
29351         * tests/test-striconveh.c (main): Likewise.
29352         * tests/test-striconveha.c (main): Likewise.
29353         * tests/test-strstr.c (main): Likewise.
29354
29355         * build-aux/git-version-gen: Adjust a comment and the Usage string.
29356
29357         bootstrap: sync from coreutils again
29358         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
29359
29360 2008-03-01  Jim Meyering  <meyering@redhat.com>
29361
29362         bootstrap: sync from coreutils
29363         * build-aux/bootstrap (update_po_files): Copy a .po file into place
29364         also when the target doesn't exist.
29365
29366 2008-03-01  Eric Blake  <ebb9@byu.net>
29367
29368         Fix bugs in last patch.
29369         * lib/memchr2.c (memchr2): Fix typo.
29370         * tests/test-memchr2.c: Test previous bug, and don't use GNU
29371         extension.
29372         Reported by Bruce Korb.
29373
29374         New module 'memchr2'.
29375         * modules/memchr2: New file.
29376         * modules/memchr2-tests: Likewise.
29377         * lib/memchr2.h: Likewise.
29378         * lib/memchr2.c: Likewise, based on memchr.c.
29379         * tests/test-memchr2.c: New test.
29380         * MODULES.html.sh (String handling): Add memchr2.
29381
29382 2008-02-29  Bruno Haible  <bruno@clisp.org>
29383
29384         * modules/freadseek-tests: New file.
29385         * tests/test-freadseek.sh: New file.
29386         * tests/test-freadseek.c: New file.
29387
29388         New module 'freadseek'.
29389         * modules/freadseek: New file.
29390         * lib/freadseek.h: New file.
29391         * lib/freadseek.c: New file.
29392         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
29393
29394 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
29395
29396         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
29397         wydawca.
29398
29399         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
29400         program_invocation_name and program_invocation_short_name are
29401         present.
29402
29403 2008-02-28  Bruno Haible  <bruno@clisp.org>
29404
29405         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
29406         * tests/test-freadptr.sh: Also test non-seekable stdin.
29407
29408 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
29409
29410         * build-aux/bootstrap (source_base, m4_base)
29411         (doc_base, tests_base): New variables.
29412         (gnulib_tool_options): Do not hardcode base directories, use
29413         the above variables instead.
29414
29415 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
29416
29417         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
29418
29419 2008-02-28  Bruno Haible  <bruno@clisp.org>
29420
29421         * modules/freadptr-tests: New file.
29422         * tests/test-freadptr.sh: New file.
29423         * tests/test-freadptr.c: New file.
29424
29425         New module 'freadptr'.
29426         * modules/freadptr: New file.
29427         * lib/freadptr.h: New file.
29428         * lib/freadptr.c: New file.
29429         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
29430
29431 2008-02-26  Karl Berry  <karl@freefriends.org>
29432
29433         Sync from Libtool:
29434         * libltdl/argz.c (argz_add, argz_count): New functions.
29435         * libltdl/argz.in.h: Declare them.
29436         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
29437
29438 2008-02-22  Bruno Haible  <bruno@clisp.org>
29439
29440         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
29441         is a pointer type.  Needed for HP-UX 10.
29442         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
29443         * doc/posix-functions/gmtime_r.texi: Likewise.
29444         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
29445
29446 2008-02-24  Bruno Haible  <bruno@clisp.org>
29447
29448         * modules/environ-tests: New file.
29449         * tests/test-environ.c: New file.
29450
29451         New module 'environ'.
29452         * modules/environ: New file.
29453         * lib/unistd.in.h (environ): New declaration.
29454         * m4/environ.m4: New file.
29455         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
29456         after use.
29457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
29458         HAVE_DECL_ENVIRON.
29459         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
29460         HAVE_DECL_ENVIRON.
29461         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
29462         wrong claim that 'environ' is missing on some systems.
29463         * modules/execute (Depends-on): Add environ.
29464         * lib/execute.c (environ): Remove fallback declaration.
29465         * modules/pipe (Depends-on): Add environ.
29466         * lib/pipe.c (environ): Remove fallback declaration.
29467         * modules/setenv (Depends-on): Add environ.
29468         * lib/setenv.c (environ): Remove fallback declaration.
29469         * modules/unsetenv (Depends-on): Add environ.
29470         * lib/unsetenv.c (environ): Remove fallback declaration.
29471         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
29472         m4/environ.m4.
29473         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
29474         (gl_PREREQ_UNSETENV): Likewise.
29475
29476 2008-02-24  Bruno Haible  <bruno@clisp.org>
29477
29478         * doc/posix-functions/environ.texi: Document the MacOS X problem.
29479
29480 2008-02-20  Bob Proulx  <bob@proulx.com>
29481
29482         Enable use of older two part flavor 'git describe'.
29483         * build-aux/git-version-gen: If using the older two part flavor of
29484         git version then recreate the third part now present in the
29485         newer three part flavor of git describe.
29486
29487 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
29488
29489         * lib/fts.c (fts_build): Typo correction to comment.
29490
29491 2008-02-17  Bruno Haible  <bruno@clisp.org>
29492
29493         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
29494         generating no-op conflicts.
29495
29496 2008-02-17  Bruno Haible  <bruno@clisp.org>
29497
29498         Speed up by 10%.
29499         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
29500         result_entries, rather than an index-based loop.
29501
29502 2008-02-17  Bruno Haible  <bruno@clisp.org>
29503
29504         Speed up by 25%.
29505         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
29506         'hashcode_cached'.
29507         (entry_create): New function.
29508         (entry_hashcode): Use the cached hashcode if possible.
29509         (read_changelog_file, try_split_merged_entry): Use entry_create.
29510
29511 2008-02-17  Bruno Haible  <bruno@clisp.org>
29512
29513         Speed up from O(n^2) to O(n) for long ChangeLog files.
29514         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
29515         (read_changelog_file): Change implementation of entries_reversed list
29516         to rbtreehash.
29517         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
29518
29519 2008-02-17  Bruno Haible  <bruno@clisp.org>
29520
29521         New option --split-merged-entry.
29522         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
29523         (find_paragraph_end, try_split_merged_entry): New functions.
29524         (long_options): Add option --split-merged-entry.
29525         (usage): Document option --split-merged-entry.
29526         (main): Implement option --split-merged-entry.
29527         Reported by Eric Blake.
29528
29529 2008-02-17  Bruno Haible  <bruno@clisp.org>
29530
29531         * lib/git-merge-changelog.c: Include c-strstr.h.
29532         (main): Support the "git pull --rebase" situation.
29533         * modules/git-merge-changelog (Depends-on): Add c-strstr.
29534         Reported by Eric Blake.
29535
29536 2008-02-16  Eric Blake  <ebb9@byu.net>
29537
29538         Avoid doubling \ in common case of "c-maybe" quoting style.
29539         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
29540         eliding outer quotes.
29541         * lib/quotearg.h: Document this.
29542         * tests/test-quotearg.c (result_strings, inputs, results_g)
29543         (flag_results, locale_results): Test it by adding a new string to
29544         each test group.
29545         (compare_strings): Test new string.
29546
29547 2008-02-13  Eric Blake  <ebb9@byu.net>
29548
29549         Avoid trigraph quoting in default output.
29550         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
29551         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
29552         unless explicitly requested.
29553         * tests/test-quotearg.c (flag_results, main): Add additional tests.
29554
29555 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
29556
29557         Don't rely on signed integer overflowing to negative value.
29558         * lib/getugroups.c (getugroups): Include <limits.h>.
29559         Instead, compare against INT_MAX, and increment only if the test passes.
29560
29561 2008-02-13  Jim Meyering  <meyering@redhat.com>
29562         and Eric Blake  <ebb9@byu.net>
29563
29564         Avoid shadowing warning and compile errors on Linux.
29565         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
29566         forwarding macros on Linux.
29567         (dcgettext): Define a stub, for Linux.
29568         (results_g, main): Avoid warnings.
29569
29570 2008-02-12  Eric Blake  <ebb9@byu.net>
29571
29572         Silence warning in last patch.
29573         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
29574
29575         Quotearg part 4: add tests, fix c-maybe colon quoting.
29576         * lib/quotearg.h: Improve documentation.
29577         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
29578         escapes when adding outer quotes.  When quoting trigraphs, use
29579         valid C notation.  When quoting NUL, omit extra characters if next
29580         character is not digit.  Alter prototype.
29581         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
29582         callers.
29583         * modules/quotearg-tests: New module.
29584         * tests/test-quotearg.c: New test.
29585
29586 2008-02-07  Eric Blake  <ebb9@byu.net>
29587
29588         Quotearg part 3: add flag to control outer quote elision.
29589         * lib/quotearg.h (c_maybe_quoting_style): New style.
29590         (enum quoting_flags): Better documentation of flags.
29591         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
29592         c-maybe style.
29593         (quotearg_buffer_restyled): Handle new flag to elide outer
29594         quotes.
29595
29596         Quotearg part 2: add flag that can control NUL elision.
29597         * lib/quotearg.h (set_quoting_flags): New prototype.
29598         * lib/quotearg.c (struct quoting_options): Add flag field.
29599         (set_quoting_flags): New function.
29600         (quotearg_buffer_restyled): Add flags parameter.
29601         (quotearg_alloc_mem): Set the flag if length cannot be returned.
29602         (quotearg_n_options): Set the flag, since length cannot be
29603         returned.
29604         (quoting_options_from_style): Default flags correctly.
29605
29606         Quotearg part 1: more wrappers, restore quotearg_char state.
29607         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
29608         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
29609         (quotearg_colon_mem): New wrappers.
29610         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
29611         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
29612         functions.
29613         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
29614         (quotearg_colon_mem): New functions.
29615
29616 2008-02-11  Bruno Haible  <bruno@clisp.org>
29617
29618         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
29619         library in the current directory: it does not work with parallel make.
29620         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29621
29622 2008-02-11  Bruno Haible  <bruno@clisp.org>
29623
29624         * .gitattributes: New file.
29625
29626 2008-02-11  Jim Meyering  <meyering@redhat.com>
29627
29628         useless-if-before-free: Fix reversed exit values.
29629         * build-aux/useless-if-before-free: Use correct values
29630         for EXIT_MATCH and EXIT_NO_MATCH.
29631
29632         * build-aux/useless-if-before-free: Close stdout carefully.
29633
29634 2008-02-10  Bruno Haible  <bruno@clisp.org>
29635
29636         New module 'git-merge-changelog'.
29637         * modules/git-merge-changelog: New file.
29638         * lib/git-merge-changelog.c: New file.
29639
29640 2008-02-10  Jim Meyering  <meyering@redhat.com>
29641
29642         useless-if-before-free: New option: --list (-l).
29643
29644         useless-if-before-free: Don't exit immediately upon open failure.
29645         * build-aux/useless-if-before-free: Exit 2 for errors.
29646         Upon failure to open a file, don't exit immediately.
29647         Rather, just warn and continue with any remaining files.
29648
29649 2008-02-10  Bruno Haible  <bruno@clisp.org>
29650
29651         New abstract list operation 'node_set_value'.
29652         * lib/gl_list.h (gl_list_node_set_value): New function.
29653         (struct gl_list_implementation): New field node_set_value.
29654         * lib/gl_list.c (gl_list_node_set_value): New function.
29655         * lib/gl_array_list.c (gl_array_node_set_value): New function.
29656         (gl_array_list_implementation): Update.
29657         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
29658         (gl_carray_list_implementation): Update.
29659         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
29660         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
29661         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
29662         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
29663         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
29664         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
29665         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
29666         Update.
29667         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
29668         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
29669         (gl_sublist_list_implementation): Update.
29670
29671 2008-02-10  Bruno Haible  <bruno@clisp.org>
29672
29673         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
29674         Needed when ELEMENT is #defined to 'some_type *'.
29675
29676 2008-02-10  Jim Meyering  <meyering@redhat.com>
29677
29678         New script and module: useless-if-before-free
29679         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
29680         * build-aux/useless-if-before-free: New file.
29681         * modules/useless-if-before-free: New file.
29682
29683         * build-aux/gitlog-to-changelog: Use committer date, not author date.
29684
29685         xstrtol_error: Fix typo.
29686         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
29687         s/exit_failure/exit_status/.
29688
29689 2008-02-09  Jim Meyering  <meyering@redhat.com>
29690
29691         New script and module: gitlog-to-changelog
29692         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
29693         * modules/gitlog-to-changelog: New file.
29694         * build-aux/gitlog-to-changelog: New file.
29695
29696 2008-02-08  Jim Meyering  <meyering@redhat.com>
29697
29698         Avoid two "parameter unused" warnings.
29699         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
29700         Mark "st" as used.
29701
29702         Use "git COMMAND", not "git-COMMAND".
29703         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
29704         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
29705         * build-aux/git-version-gen: Use "git status", not "git-status".
29706
29707 2008-02-07  Bruno Haible  <bruno@clisp.org>
29708
29709         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
29710         Avoids a crash on Windows Vista.
29711         Reported by Adam Strzelecki <ono@java.pl> via
29712         Simon Josefsson <simon@josefsson.org>.
29713
29714 2008-02-06  Bruno Haible  <bruno@clisp.org>
29715
29716         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
29717         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
29718         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
29719         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
29720         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29721         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29722         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
29723         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
29724         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29725         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29726         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29727         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29728         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29729         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29730         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29731         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
29732         left-adjust flag.
29733         * tests/test-snprintf-posix.h (test_function): Likewise.
29734         * tests/test-sprintf-posix.h (test_function): Likewise.
29735         * tests/test-vasprintf-posix.c (test_function): Likewise.
29736         * doc/posix-functions/fprintf.texi: Update.
29737         * doc/posix-functions/printf.texi: Update.
29738         * doc/posix-functions/snprintf.texi: Update.
29739         * doc/posix-functions/sprintf.texi: Update.
29740         * doc/posix-functions/vfprintf.texi: Update.
29741         * doc/posix-functions/vprintf.texi: Update.
29742         * doc/posix-functions/vsnprintf.texi: Update.
29743         * doc/posix-functions/vsprintf.texi: Update.
29744         Reported by Peter Fales <psfales@alcatel-lucent.com>.
29745
29746 2008-02-06  Bruno Haible  <bruno@clisp.org>
29747
29748         Fix bug introduced on 2008-01-26.
29749         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
29750
29751 2008-02-06  Bruno Haible  <bruno@clisp.org>
29752
29753         Fix bug introduced on 2007-06-10.
29754         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
29755         !NEED_PRINTF_FLAG_ZERO.
29756
29757 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
29758
29759         getloadavg: use libperfstat on AIX5
29760         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
29761
29762 2008-02-03  Bruno Haible  <bruno@clisp.org>
29763
29764         * lib/diffseq.h: Add comments about required #includes.
29765         Reported by Michael Biggs <gnulib@doubleplum.net>.
29766
29767 2008-02-01  Bruno Haible  <bruno@clisp.org>
29768
29769         * users.txt: Add gnuit.
29770
29771 2008-01-31  Bruno Haible  <bruno@clisp.org>
29772
29773         * lib/md4.c (set_uint32): Mark as inline.
29774         * lib/md5.c (set_uint32): Likewise.
29775         * lib/sha1.c (set_uint32): Likewise.
29776         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
29777         * m4/md5.m4 (gl_MD5): Likewise.
29778         * m4/sha1.m4 (gl_SHA1): Likewise.
29779
29780 2008-01-31  Jim Meyering  <meyering@redhat.com>
29781
29782         Use "sizeof VAR", rather than a literal "4".
29783         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
29784         * lib/md4.c (md4_read_ctx): Likewise.
29785         * lib/sha1.c (sha1_read_ctx): Likewise.
29786
29787 2008-01-31  Simon Josefsson  <simon@josefsson.org>
29788
29789         * tests/test-sha1.c: New file, based on test-md5.c.
29790
29791         * modules/crypto/sha1-tests: New file.
29792
29793 2008-01-31  Simon Josefsson  <simon@josefsson.org>
29794
29795         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
29796
29797 2008-01-31  Jim Meyering  <meyering@redhat.com>
29798
29799         Prefer "sizeof v" over the equivalent "4".
29800         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
29801         * lib/md5.c (set_uint32): Likewise.
29802         * lib/sha1.c (set_uint32): Likewise.
29803
29804 2008-01-31  Simon Josefsson  <simon@josefsson.org>
29805
29806         * lib/sha1.c (set_uint32): Mark function as static.
29807
29808 2008-01-31  Simon Josefsson  <simon@josefsson.org>
29809
29810         md2: clarify comments to say that alignment is not required.
29811         * lib/md2.h: Remove warning about alignment in comment.
29812         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
29813         never been required.
29814
29815 2008-01-31  Simon Josefsson  <simon@josefsson.org>
29816
29817         md4: adapt alignment constraint fix from sha1.
29818         * lib/md4.c (set_uint32): New function, from sha1.c
29819         (md4_read_ctx): Use it.
29820         (md4_finish_ctx): Doc fix.
29821         * lib/md4.h: Doc fix.
29822
29823 2008-01-31  Simon Josefsson  <simon@josefsson.org>
29824
29825         md5: adapt alignment constraint fix from sha1.
29826         * lib/md5.c (set_uint32): New function, from sha1.c
29827         (md5_read_ctx): Use it.
29828         (md5_finish_ctx): Doc fix.
29829         * lib/md5.h: Doc fix.
29830
29831 2008-01-30  Peter Palfrader  <weasel@debian.org>
29832
29833         sha1: remove the result buffer alignment constraint
29834         * lib/sha1.c (set_uint32): New function.
29835         (sha1_read_ctx): Rewrite to remove the result buffer alignment
29836         constraint.
29837         (sha1_finish_ctx): Remove comment warning about alignment constraint.
29838         * lib/sha1.h: Likewise.
29839
29840 2008-01-30  Andreas Schwab  <schwab@suse.de>
29841             Bruno Haible  <bruno@clisp.org>
29842
29843         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
29844         correct definition of LDBL_MIN_EXP.
29845
29846 2008-01-30  Karl Berry  <karl@gnu.org>
29847
29848         * config/srclist-update: try to preserve x bit on updates.
29849         * config/srclistvars.sh: update for karl.
29850
29851 2008-01-29  Jim Meyering  <meyering@redhat.com>
29852
29853         vasnprintf.c: Avoid warning about unused label
29854         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
29855         "overflow" label definition and associated code with the
29856         same cpp condition that guards the sole use of that label.
29857
29858 2008-01-26  Bruno Haible  <bruno@clisp.org>
29859
29860         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
29861         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
29862         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
29863         * lib/isnanl-nolibm.h (isnanl): Likewise.
29864         Reported by Paul Eggert <eggert@cs.ucla.edu>.
29865
29866 2008-01-26  Bruno Haible  <bruno@clisp.org>
29867
29868         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
29869         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
29870
29871 2008-01-26  Bruno Haible  <bruno@clisp.org>
29872
29873         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
29874         GCC >= 4.0 built-in.
29875         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
29876
29877 2008-01-26  Bruno Haible  <bruno@clisp.org>
29878
29879         Rename isnan, applicable to 'double' only, to isnand.
29880         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
29881         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
29882         (configure.ac): Update.
29883         (Include): Replace "isnan.h" with "isnand.h".
29884         * m4/isnand.m4: Renamed from m4/isnan.m4.
29885         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
29886         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
29887         instead of isnan.c.
29888         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
29889         instead of HAVE_ISNAN_IN_LIBC.
29890         (isnand): Renamed from isnan.
29891         * lib/isnand.c: New file.
29892         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
29893         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
29894         (Makefile.am): Update.
29895         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
29896         Include isnand.h instead of isnan.h.
29897         (main): Test isnand instead of isnan.
29898         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
29899         isnan-nolibm.
29900         * modules/frexp (Depends-on): Likewise.
29901         * modules/frexp-tests (Depends-on): Likewise.
29902         * modules/frexp-nolibm (Depends-on): Likewise.
29903         * modules/frexp-nolibm-tests (Depends-on): Likewise.
29904         * modules/isfinite (Depends-on): Likewise.
29905         * modules/round-tests (Depends-on): Likewise.
29906         * modules/signbit (Depends-on): Likewise.
29907         * modules/signbit-tests (Depends-on): Likewise.
29908         * modules/snprintf-posix (Depends-on): Likewise.
29909         * modules/sprintf-posix (Depends-on): Likewise.
29910         * modules/trunc-tests (Depends-on): Likewise.
29911         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29912         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29913         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29914         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29915         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29916         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29917         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29918         * modules/vasnprintf-posix (Depends-on): Likewise.
29919         * modules/vasprintf-posix (Depends-on): Likewise.
29920         * modules/vfprintf-posix (Depends-on): Likewise.
29921         * modules/vsnprintf-posix (Depends-on): Likewise.
29922         * modules/vsprintf-posix (Depends-on): Likewise.
29923         * lib/frexp.c: Include isnand.h instead of isnan.h.
29924         (ISNAN): Set to isnand instead of isnan.
29925         * lib/isfinite.c: Include isnand.h instead of isnan.h.
29926         (gl_isfinited): Use isnand instead of isnan.
29927         * lib/signbitd.c: Include isnand.h instead of isnan.h.
29928         (gl_signbitd): Use isnand instead of isnan.
29929         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
29930         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
29931         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
29932         (main): Use isnand instead of isnan.
29933         * tests/test-round1.c: Include isnand.h.
29934         (main): Use isnand instead of isnan.
29935         * tests/test-round2.c: Include isnand.h instead of isnan.h.
29936         (ISNAN): Set to isnand instead of isnan.
29937         * tests/test-trunc1.c: Include isnand.h.
29938         (main): Use isnand instead of isnan.
29939         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
29940         (equal): Use isnand instead of isnan.
29941         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
29942         isnand-nolibm.
29943         * NEWS: Mention the change.
29944
29945 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
29946             Bruno Haible  <bruno@clisp.org>
29947
29948         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
29949         the GCC builtins for signbits are present and set
29950         REPLACE_SIGNBIT_USING_GCC if so.
29951         * lib/math.in.h (signbit): Define using GCC builtins if
29952         REPLACE_SIGNBIT_USING_GCC is set.
29953         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
29954         REPLACE_SIGNBIT_USING_GCC.
29955         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
29956
29957 2008-01-25  Jim Meyering  <meyering@redhat.com>
29958
29959         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
29960         * lib/poll.c: Include <config.h>, not "config.h".
29961         * tests/test-getaddrinfo.c: Likewise.
29962
29963 2008-01-25  Simon Josefsson  <simon@josefsson.org>
29964
29965         * modules/sockets-tests: New file.
29966
29967 2008-01-24  Simon Josefsson  <simon@josefsson.org>
29968
29969         * modules/sockets: New module, can be used to call WSA_Startup and
29970         WSA_Cleanup when needed.
29971
29972         * lib/sockets.h, lib/sockets.c: New files.
29973
29974         * m4/sockets.m4: New file.
29975
29976         * tests/test-sockets.c: New file.
29977
29978 2008-01-19  Bruno Haible  <bruno@clisp.org>
29979
29980         * doc/posix-headers: Renamed from doc/headers.
29981         * doc/posix-functions: Renamed from doc/functions.
29982         * doc/gnulib.texi: Update.
29983
29984 2008-01-19  Bruno Haible  <bruno@clisp.org>
29985
29986         * doc/glibc-functions/strcasestr.texi: Include contents of
29987         doc/functions/strcasestr.texi, fixing the list of platforms.
29988         * doc/functions/strcasestr.texi: Remove file.
29989
29990 2008-01-19  Bruno Haible  <bruno@clisp.org>
29991
29992         * doc/glibc-functions/memmem.texi: Include contents of
29993         doc/functions/memmem.texi.
29994         * doc/functions/memmem.texi: Remove file.
29995
29996 2008-01-18  Bruno Haible  <bruno@clisp.org>
29997
29998         * doc/glibc-functions/*.texi: New files.
29999         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
30000         to use the new files.
30001
30002 2008-01-17  Bruno Haible  <bruno@clisp.org>
30003
30004         * tests/test-gethostname.c (main): Fix printf statement.
30005
30006 2008-01-17  Simon Josefsson  <simon@josefsson.org>
30007
30008         * modules/gethostname-tests: New file.
30009
30010         * tests/test-gethostname.c: New file.
30011
30012 2008-01-17  Simon Josefsson  <simon@josefsson.org>
30013
30014         * lib/gethostname.c: Include string.h unconditionally, strncpy is
30015         used by the UNAME case.  Reported by Bruno Haible
30016         <bruno@clisp.org>.
30017
30018 2008-01-17  Eric Blake  <ebb9@byu.net>
30019
30020         Convert c-strcasestr to be more efficient.
30021         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
30022         (Depends-on): Add c-strcase, remove malloca, strnlen.
30023         * tests/test-c-strcasestr.c (main): Enhance test.
30024         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
30025
30026 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
30027
30028         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
30029         Use it in creating po/Makevars.
30030
30031 2008-01-15  Simon Josefsson  <simon@josefsson.org>
30032
30033         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
30034         Applications that requires it should initialize libgcrypt
30035         manually.
30036
30037 2008-01-16  Simon Josefsson  <simon@josefsson.org>
30038
30039         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
30040
30041 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
30042
30043         Fix problem with getdate on mingw32 reported by Simon Josefsson
30044         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
30045         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
30046         tzname", when deciding whether to declare tzname.
30047         * lib/strftime.c (tzname): Likewise.
30048
30049 2008-01-15  Bruno Haible  <bruno@clisp.org>
30050
30051         Work around a MacOS X 10.5 bug in frexpl().
30052         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
30053         * doc/functions/frexpl.texi: Document the bug.
30054         Reported by Elias Pipping <pipping@gentoo.org>.
30055
30056 2008-01-14  Eric Blake  <ebb9@byu.net>
30057
30058         Touch up previous patch.
30059         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
30060         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
30061
30062         Convert strcasestr module to use Two-Way algorithm.
30063         * modules/strcasestr-simple: New module, based on the old
30064         strcasestr, but with Two-Way rather than KMP.
30065         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
30066         * lib/string.in.h (rpl_strcasestr): Declare.
30067         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
30068         performance.
30069         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
30070         * modules/string (Makefile.am): Support strcasestr.
30071         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
30072         * modules/strcasestr-tests (Depends-on): Check for alarm.
30073         * tests/test-strcasestr.c: Augment test.
30074         * lib/str-two-way.h: Clean up stray macro.
30075         * NEWS: Document new module.
30076         * MODULES.html.sh (string handling): Likewise.
30077         * doc/functions/strcasestr.texi: New file.
30078         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
30079         here, since it is not a POSIX function.
30080
30081 2008-01-14  Colin Watson  <cjwatson@debian.org>
30082             Bruno Haible  <bruno@clisp.org>
30083
30084         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
30085         works fine; if not, set REPLACE_STRSIGNAL.
30086         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
30087         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30088         REPLACE_STRSIGNAL.
30089         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
30090         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
30091         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
30092
30093 2008-01-14  Bruno Haible  <bruno@clisp.org>
30094
30095         * modules/strsignal (Include): Change to <string.h>.
30096
30097 2008-01-14  Colin Watson  <cjwatson@debian.org>
30098
30099         * modules/argp (Notice): Add a notice recommending to change
30100         XGETTEXT_OPTIONS.
30101         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
30102
30103 2008-01-13  Colin Watson  <cjwatson@debian.org>
30104
30105         * modules/strsignal-tests: New file.
30106         * tests/test-strsignal.c: New file.
30107
30108         * lib/strsignal.c: New file, from glibc with modifications.
30109         * lib/siglist.h: New file, from glibc with modifications.
30110         * lib/string.in.h (strsignal): New declaration.
30111         * m4/strsignal.m4: New file.
30112         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30113         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
30114         * modules/strsignal: New file.
30115         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
30116         HAVE_DECL_STRSIGNAL.
30117
30118 2008-01-13  Bruno Haible  <bruno@clisp.org>
30119
30120         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
30121         locale encoding is not ASCII. Needed for OpenBSD 4.0.
30122         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
30123         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30124
30125 2008-01-13  Bruno Haible  <bruno@clisp.org>
30126
30127         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
30128         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
30129         * lib/argp.h (__attribute__): Likewise.
30130         * lib/c-stack.c (__attribute__): Likewise.
30131         * lib/error.h (__attribute__): Likewise.
30132         * lib/fts.c (__attribute__): Likewise.
30133         * lib/openat.h (__attribute__): Likewise.
30134         * lib/stdio.in.h (__attribute__): Likewise.
30135         * lib/string.in.h (__attribute__): Likewise.
30136         * lib/utimens.c (__attribute__): Likewise.
30137         * lib/vasnprintf.h (__attribute__): Likewise.
30138         * lib/xalloc.h (__attribute__): Likewise.
30139         * lib/xprintf.h (__attribute__): Likewise.
30140         * lib/xstrtol.h (__attribute__): Likewise.
30141         * lib/xvasprintf.h (__attribute__): Likewise.
30142
30143 2008-01-12  Bruno Haible  <bruno@clisp.org>
30144
30145         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
30146         * doc/glibc-headers/a.out.texi: New file.
30147         * doc/glibc-headers/aliases.texi: New file.
30148         * doc/glibc-headers/alloca.texi: New file.
30149         * doc/glibc-headers/ar.texi: New file.
30150         * doc/glibc-headers/argp.texi: New file.
30151         * doc/glibc-headers/argz.texi: New file.
30152         * doc/glibc-headers/byteswap.texi: New file.
30153         * doc/glibc-headers/crypt.texi: New file.
30154         * doc/glibc-headers/endian.texi: New file.
30155         * doc/glibc-headers/envz.texi: New file.
30156         * doc/glibc-headers/err.texi: New file.
30157         * doc/glibc-headers/error.texi: New file.
30158         * doc/glibc-headers/execinfo.texi: New file.
30159         * doc/glibc-headers/fpu_control.texi: New file.
30160         * doc/glibc-headers/fstab.texi: New file.
30161         * doc/glibc-headers/fts.texi: New file.
30162         * doc/glibc-headers/getopt.texi: New file.
30163         * doc/glibc-headers/ieee754.texi: New file.
30164         * doc/glibc-headers/ifaddrs.texi: New file.
30165         * doc/glibc-headers/libintl.texi: New file.
30166         * doc/glibc-headers/mcheck.texi: New file.
30167         * doc/glibc-headers/mntent.texi: New file.
30168         * doc/glibc-headers/obstack.texi: New file.
30169         * doc/glibc-headers/paths.texi: New file.
30170         * doc/glibc-headers/printf.texi: New file.
30171         * doc/glibc-headers/pty.texi: New file.
30172         * doc/glibc-headers/resolv.texi: New file.
30173         * doc/glibc-headers/shadow.texi: New file.
30174         * doc/glibc-headers/sysexits.texi: New file.
30175         * doc/glibc-headers/ttyent.texi: New file.
30176
30177 2008-01-12  Jim Meyering  <meyering@redhat.com>
30178
30179         announce-gen: emit Gnulib's git-based version string.
30180         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
30181         New option --gnulib-version=V, where V is expected to be
30182         the output of running git describe in the gnulib directory.
30183         (get_tool_versions): Request feedback on xdelta.  I suspect it's
30184         not useful, and plan to stop publishing an xdelta file with each
30185         coreutils release.
30186
30187         * build-aux/announce-gen: Also check for lzma-compressed files.
30188
30189 2008-01-11  Bruno Haible  <bruno@clisp.org>
30190
30191         * tests/test-memmem.c (main): Increase maximum allowed time.
30192         * tests/test-strstr.c (main): Likewise.
30193
30194 2008-01-11  Bruno Haible  <bruno@clisp.org>
30195
30196         * doc/functions/memmem.texi: Add more precisions about platforms.
30197         * doc/functions/strstr.texi: Likewise.
30198
30199 2008-01-10  Eric Blake  <ebb9@byu.net>
30200
30201         * m4/strstr.m4: Delete cruft from copy-n-paste.
30202         Reported by Bruno Haible.
30203
30204 2008-01-10  Bruno Haible  <bruno@clisp.org>
30205
30206         Make c-strstr rely on strstr.
30207         * lib/c-strstr.c: Don't include str-kmp.h.
30208         (c_strstr): Define in terms of strstr.
30209         * modules/c-strstr (Files): Remove lib/str-kmp.h.
30210         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
30211
30212 2008-01-10  Bruno Haible  <bruno@clisp.org>
30213
30214         * doc/gnulib.texi (String Functions in C Locale): New section.
30215         * doc/c-ctype.texi: New file.
30216         * doc/c-strcase.texi: New file.
30217         * doc/c-strcaseeq.texi: New file.
30218         * doc/c-strcasestr.texi: New file.
30219         * doc/c-strstr.texi: New file.
30220         * doc/c-strtod.texi: New file.
30221         * doc/c-strtold.texi: New file.
30222
30223 2008-01-10  Eric Blake  <ebb9@byu.net>
30224
30225         * lib/relocatable.h: Fix a comment.
30226
30227 2008-01-10  Eric Blake  <ebb9@byu.net>
30228
30229         Share two-way algorithm.
30230         * lib/str-two-way.h: New file, merged from...
30231         * lib/memmem.c: ...here...
30232         * lib/strstr.c: ...and here.
30233         * modules/memmem (Files): Use it.
30234         * modules/strstr (Files): Likewise.
30235
30236         Avoid quadratic strstr implementations.
30237         * lib/strstr.c: New file.
30238         * m4/strstr.m4: Likewise.
30239         * modules/strstr: Likewise.
30240         * modules/strstr-tests: Likewise.
30241         * tests/test-strstr.c: Likewise.
30242         * lib/string.in.h (rpl_strstr): Declare.
30243         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
30244         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
30245         * modules/string (Makefile.am): Likewise.
30246         * MODULES.html.sh (string handling): Mention new module.
30247         * doc/functions/strstr.texi (strstr): Document the bug.
30248
30249 2008-01-10  Bruno Haible  <bruno@clisp.org>
30250
30251         * lib/relocatable.h (relocate): State whether result is freshly
30252         allocated or not.
30253         * lib/relocatable.c (relocate): Return a freshly allocated string
30254         instead of a pointer to a privately held string.
30255         Reported by Sylvain Beucler <beuc@gnu.org>.
30256
30257 2008-01-10  Colin Watson  <cjwatson@debian.org>
30258
30259         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
30260         s/S_ISNLK/S_ISLNK/.
30261
30262 2008-01-09  Bruno Haible  <bruno@clisp.org>
30263
30264         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
30265         and other files.
30266         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
30267         if it's only a guess.
30268         * modules/memmem: Simplify by depending on memmem-simple.
30269
30270 2008-01-09  Bruno Haible  <bruno@clisp.org>
30271
30272         Work around OpenBSD 4.0 tdelete() bug.
30273         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
30274         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
30275         macros and don't redefine the enum values.
30276         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
30277         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
30278         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
30279
30280 2008-01-09  Bruno Haible  <bruno@clisp.org>
30281
30282         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
30283         (main): Don't perform the tests if setlocale did not install a UTF-8
30284         locale. Needed on OpenBSD 4.0.
30285         * modules/wcwidth-tests (Depends-on): Add localcharset.
30286
30287 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
30288
30289         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
30290         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
30291         * NEWS: announce this.
30292         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
30293
30294 2008-01-09  Simon Josefsson  <simon@josefsson.org>
30295         and Eric Blake  <ebb9@byu.net>
30296
30297         Add memmem-simple module.
30298         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
30299         (gl_FUNC_MEMMEM): Separate performance from presence checks.
30300         * modules/memmem-simple: New file.
30301         * modules/memmem (Description): Tweak.
30302         * MODULES.html.sh (string handling): Mention new module.
30303         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
30304         addressed by memmem-simple.
30305         * NEWS: Document the difference.
30306
30307 2008-01-09  Eric Blake  <ebb9@byu.net>
30308
30309         Give gcc some memmem optimization hints.
30310         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
30311         (strcasestr): Declare as pure.
30312         * modules/memmem (Maintainer): Claim my implementation.
30313
30314 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30315
30316         Support AIX 6.1 and higher.
30317         * build-aux/config.libpath: Likewise.
30318         * build-aux/config.rpath: Likewise.
30319
30320 2008-01-08  Jim Meyering  <meyering@redhat.com>
30321             Bruno Haible  <bruno@clisp.org>
30322
30323         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
30324         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
30325         Reported by Peter Fales in
30326         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
30327
30328 2008-01-08  Bruno Haible  <bruno@clisp.org>
30329
30330         * modules/unictype/category-of (Depends-on): Add
30331         unictype/category-none.
30332         * modules/unictype/category-and-tests (Depends-on): Add
30333         unictype/category-{L,N,Lu,Nd}.
30334         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
30335         * modules/unictype/category-or-tests (Depends-on): Add
30336         unictype/category-{L,N}.
30337         * modules/unictype/category-name-tests (Depends-on): Add
30338         unictype/category-{Z,Nl}.
30339         Reported by Simon Josefsson.
30340
30341 2008-01-08  Bruno Haible  <bruno@clisp.org>
30342
30343         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
30344         convention better.
30345         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
30346         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
30347         Reported by Peter Miller <millerp@canb.auug.org.au>.
30348
30349 2008-01-08  Eric Blake  <ebb9@byu.net>
30350
30351         Rewrite memmem to guarantee linear complexity without malloc.
30352         * lib/memmem.c (memmem): Use Two-Way rather than
30353         Knuth-Morris-Pratt, to allow O(1) space usage.
30354         (critical_factorization, two_way_short_needle)
30355         (two_way_long_needle): New functions.
30356         (knuth_morris_pratt): Delete.
30357         * modules/memmem (Depends-on): No longer need malloca or stdbool.
30358         Add stdint.
30359         * tests/test-memmem.c (main): Add tests for periodic needle and
30360         sublinear performance.
30361         * doc/functions/memmem.texi (memmem): Document other deficiencies
30362         in cygwin and older glibc.
30363
30364 2008-01-08  Bruno Haible  <bruno@clisp.org>
30365
30366         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
30367         augmentation.
30368
30369 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
30370
30371         Add a configure time option: --disable-acl.
30372         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
30373         AC_ARG_ENABLE(acl).
30374
30375 2008-01-06  Simon Josefsson  <simon@josefsson.org>
30376
30377         * tests/test-localename.c: Don't include obsolete "setenv.h".
30378
30379         * modules/localename-tests (Depends-on): Need unsetenv.
30380
30381 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30382
30383         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
30384
30385 2008-01-06  Colin Watson  <cjwatson@debian.org>
30386
30387         * users.txt: Add man-db.
30388
30389 2008-01-07  Bruno Haible  <bruno@clisp.org>
30390
30391         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
30392         previous section name.
30393
30394 2008-01-07  Bruno Haible  <bruno@clisp.org>
30395
30396         * lib/progname.c (set_program_name): Don't strip off a leading
30397         "lt-" prefix outside a .libs directory.
30398         Suggested by Paul Eggert.
30399
30400 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
30401             Bruno Haible  <bruno@clisp.org>
30402
30403         Improve memory cleanup in 'relocatable' module.
30404         * lib/relocatable.h (compute_curr_prefix): Change return type to
30405         'char *'.
30406         * lib/relocatable.c (compute_curr_prefix): Change return type to
30407         'char *'. Free curr_installdir after use.
30408         (relocate): Free curr_prefix_better after use.
30409         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
30410
30411 2008-01-01  Bruno Haible  <bruno@clisp.org>
30412
30413         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
30414         failure on older glibc systems.
30415         Reported by Peter Fales <psfales@alcatel-lucent.com>.
30416
30417 2008-01-05  Eric Blake  <ebb9@byu.net>
30418
30419         Avoid quadratic system memmem.
30420         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
30421         Reported by Ralf Wildenhues.
30422
30423         Fix memmem test for mingw.
30424         * modules/memmem-tests (configure.ac): Check for alarm.
30425         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
30426         it.
30427         * doc/functions/memmem.texi: New file.
30428         * doc/gnulib.texi (Function Substitutes): Add memmem.
30429         Reported by Bruno Haible.
30430
30431 2008-01-04  Bruno Haible  <bruno@clisp.org>
30432
30433         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
30434         Require gl_HEADER_STRINGS_H_DEFAULTS, not
30435         gl_HEADER_STRING_H_DEFAULTS.
30436
30437 2008-01-04  Eric Blake  <ebb9@byu.net>
30438
30439         Shorten duration of memmem test.
30440         * tests/test-memmem.c (main): Use alarm to declare failure if test
30441         is taking too long.
30442         Reported by Ralf Wildenhues.
30443
30444 2007-12-21  Simon Josefsson  <simon@josefsson.org>
30445
30446         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
30447         string, needed by strerror.
30448
30449 2008-01-03  Colin Watson  <cjwatson@debian.org>
30450             Bruno Haible  <bruno@clisp.org>
30451
30452         * doc/gnulib-tool.texi (Localization): New section.
30453
30454 2008-01-02  Bruno Haible  <bruno@clisp.org>
30455
30456         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
30457         variables to 'unsigned char *' type.
30458         Reported by Paul Eggert.
30459
30460 2008-01-02  Jim Meyering  <jim@meyering.net>
30461
30462         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
30463
30464 2007-12-31  Jim Meyering  <jim@meyering.net>
30465
30466         Avoid use of private FTS type name.
30467         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
30468
30469 2007-12-30  Karl Berry  <karl@gnu.org>
30470
30471         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
30472         work around defect in Texinfo and/or the standalone Info browser.
30473
30474 2007-12-30  Bruno Haible  <bruno@clisp.org>
30475
30476         Unify 5 copies of the KMP code.
30477         * lib/str-kmp.h: New file.
30478         * lib/c-strcasestr.c: Include str-kmp.h.
30479         (knuth_morris_pratt): Remove function.
30480         (c_strcasestr): Update.
30481         * lib/c-strstr.c: Include str-kmp.h.
30482         (knuth_morris_pratt): Remove function.
30483         (c_strcasestr): Update.
30484         * lib/mbscasestr.c: Include str-kmp.h.
30485         (knuth_morris_pratt_unibyte): Remove function.
30486         * lib/mbsstr.c: Include str-kmp.h.
30487         (knuth_morris_pratt_unibyte): Remove function.
30488         * lib/strcasestr.c: Include str-kmp.h.
30489         (knuth_morris_pratt): Remove function.
30490         (strcasestr): Update.
30491         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
30492         * modules/c-strstr (Files): Likewise.
30493         * modules/mbscasestr (Files): Likewise.
30494         * modules/mbsstr (Files): Likewise.
30495         * modules/strcasestr (Files): Likewise.
30496         Suggested by Paul Eggert.
30497
30498 2007-12-30  Bruno Haible  <bruno@clisp.org>
30499
30500         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
30501         defined.
30502
30503 2007-12-30  Bruno Haible  <bruno@clisp.org>
30504
30505         * lib/xmalloca.h: Include xalloc.h.
30506         (xnmalloca): New macro.
30507
30508 2007-12-30  Bruno Haible  <bruno@clisp.org>
30509
30510         * lib/malloca.h (nmalloca): New macro.
30511         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
30512         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
30513         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
30514         knuth_morris_pratt_multibyte): Likewise.
30515         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
30516         knuth_morris_pratt_multibyte): Likewise.
30517         * lib/memmem.c (knuth_morris_pratt): Likewise.
30518         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
30519
30520 2007-12-25  Bruno Haible  <bruno@clisp.org>
30521
30522         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
30523         * lib/glob.c: Don't include openat.h.
30524         (link_exists2_p): Add back the code that deals with the
30525         !GLOB_ALTDIRFUNC case.
30526         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
30527         let it do the filename concatenation.
30528         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
30529         * modules/glob (Depends-on): Remove openat.
30530
30531 2007-12-31  Bruno Haible  <bruno@clisp.org>
30532
30533         * modules/dirfd (License): Change to LGPLv2+.
30534         Approved by Jim Meyering.
30535
30536 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
30537
30538         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
30539         when multiplying M by sizeof (size_t).
30540
30541 2007-12-10  Martin Lambers  <marlam@marlam.de>
30542
30543         Override getpagesize on mingw.
30544         * lib/getpagesize.c: New file.
30545         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
30546         * modules/getpagesize (Files): Add lib/getpagesize.c.
30547         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
30548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30549         REPLACE_GETPAGESIZE.
30550         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
30551
30552 2007-12-25  Bruno Haible  <bruno@clisp.org>
30553
30554         * modules/localcharset (Notice): New field.
30555         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
30556         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
30557
30558 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
30559             Bruno Haible  <bruno@clisp.org>
30560
30561         Avoid using the syntax symbol() in formatted documentation.
30562         * MODULES.html.sh (func_module): When replacing symbol() with a
30563         hyperlink, remove the parentheses. Show an error if some remain.
30564         Recognize and render the '...' syntax.
30565         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
30566         Rework. Add paragraph about GCC's inlining.
30567         * doc/alloca.texi: Likewise.
30568         * doc/error.texi: Remove parentheses from symbol reference.
30569         * doc/gnulib-intro.texi: Likewise.
30570         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
30571         * modules/fnmatch (Description): Reword to say "the ... function".
30572         * modules/full-read (Description): Likewise.
30573         * modules/full-write (Description): Likewise.
30574         * modules/safe-read (Description): Likewise.
30575         * modules/safe-write (Description): Likewise.
30576         * modules/strchrnul (Description): Likewise.
30577         * modules/trim (Description): Likewise.
30578         * modules/error (Description): Remove parentheses from symbol
30579         references.
30580         * modules/verror (Description): Likewise.
30581         Reported by Karl Berry.
30582
30583 2007-12-25  Bruno Haible  <bruno@clisp.org>
30584
30585         Fixup after 2007-10-16 commit.
30586         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
30587
30588 2007-12-24  Bruno Haible  <bruno@clisp.org>
30589
30590         Make --enable-relocatable work with DESTDIR.
30591         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
30592         to compute installdir from destprog.
30593         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
30594         also set the RELOC_DESTDIR variable.
30595         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
30596
30597 2007-12-24  Bruno Haible  <bruno@clisp.org>
30598
30599         Fix link error due to xalloc_die().
30600         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
30601         of xreadlink.
30602         * lib/relocwrapper.c: Update comments.
30603         * build-aux/install-reloc: Remove xreadlink.c from file list.
30604         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
30605         xreadlink.c.
30606         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
30607
30608 2007-12-24  Bruno Haible  <bruno@clisp.org>
30609
30610         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
30611         * lib/setenv.h: Remove file.
30612         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
30613         lib/setenv.h.
30614         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
30615         (Depends-on): Add stdlib.
30616         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
30617         gl_FUNC_UNSETENV.
30618         (Include): Replace setenv.h with <stdlib.h>.
30619         * modules/unsetenv: New file.
30620         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
30621         * lib/unsetenv.c: Include <stdlib.h> first.
30622         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
30623         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
30624         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
30625         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
30626         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
30627         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
30628         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
30629         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
30630         * doc/functions/unsetenv.texi: Update.
30631         * modules/xsetenv (Depends-on): Add unsetenv.
30632         * modules/getdate (Depends-on): Likewise.
30633         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
30634         * lib/xsetenv.c: Don't include setenv.h.
30635         * lib/getdate.y: Likewise.
30636         * lib/relocwrapper.c: Likewise.
30637         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
30638         (Depends-on): Add stdlib.
30639         * NEWS: Mention the changes.
30640         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
30641
30642 2007-12-23  Bruno Haible  <bruno@clisp.org>
30643
30644         * lib/memmem.c (memmem): Use lowercase variable names. Tab
30645         indentation.
30646
30647 2007-12-23  Bruno Haible  <bruno@clisp.org>
30648
30649         * lib/c-strcasestr.c: Add more comments.
30650         * lib/c-strstr.c: Likewise.
30651         * lib/mbscasestr.c: Likewise.
30652         * lib/mbsstr.c: Likewise.
30653         * lib/strcasestr.c: Likewise.
30654         * lib/memmem.c: Likewise.
30655
30656 2007-12-23  Bruno Haible  <bruno@clisp.org>
30657
30658         * tests/test-memmem.c: Include <string.h> first.
30659
30660 2007-12-22  Bruno Haible  <bruno@clisp.org>
30661
30662         * gnulib-tool (func_create_testdir): Change $auxdir while generating
30663         the contents of $testsbase.
30664         Reported by Ralf Wildenhues.
30665
30666 2007-12-22  Bruno Haible  <bruno@clisp.org>
30667
30668         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
30669         two variables local_ldadd_before, local_ldadd_last.
30670
30671 2007-12-20  Eric Blake  <ebb9@byu.net>
30672
30673         Work around circular library issue when cross-compiling.
30674         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
30675         that progname.o does not need to pull in rpl_memcmp.
30676
30677 2007-12-19  Eric Blake  <ebb9@byu.net>
30678
30679         Fix memmem to avoid O(n^2) worst-case complexity.
30680         * lib/memmem.c (knuth_morris_pratt): New function.
30681         (memmem): Use it if first few naive iterations fail.
30682         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
30683         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
30684         * modules/memchr (License): Likewise.
30685         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
30686         malloca.
30687         * tests/test-memmem.c: Rewrite, borrowing ideas from
30688         test-mbsstr1.c; the old version wouldn't even compile!
30689         * modules/memmem-tests: New file.
30690         * lib/string.in.h (rpl_memmem): Add declaration.
30691         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
30692         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
30693         REPLACE_MEMMEM.
30694
30695 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
30696
30697         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
30698         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
30699         before any system include files, and undef after them all.  This
30700         should fix a problem on VMS reported by John E. Malmberg in
30701         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
30702
30703 2007-12-17  Eric Blake  <ebb9@byu.net>
30704
30705         Revert addition of verify, for BSD/OS.
30706         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
30707         can't handle large files, for the sake of obsolete platforms.
30708         * modules/fseeko (Depends-on): Remove verify.
30709         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
30710         * doc/functions/ftello.texi (ftello): Likewise.
30711         * doc/functions/fgetpos.texi (fgetpos): Likewise.
30712         Reported by Larry Jones.
30713
30714 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
30715
30716         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
30717         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
30718
30719 2007-12-17  Jim Meyering  <meyering@redhat.com>
30720
30721         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
30722         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
30723         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
30724         * modules/getcwd (Depends-on): Add openat.
30725         Reported by Petr Salinger.
30726
30727 2007-12-17  Bruno Haible  <bruno@clisp.org>
30728
30729         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
30730         avoid a segmentation fault of the configure test on x86_64 systems.
30731
30732 2007-12-15  Jim Meyering  <meyering@redhat.com>
30733
30734         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
30735
30736 2007-12-13  Eric Blake  <ebb9@byu.net>
30737
30738         Another fseek test.
30739         * tests/test-fseek.c (main): Also test ungetc handling.
30740         * tests/test-fseeko.c (main): Likewise.
30741         * modules/fseeko (Depends-on): Add verify.
30742         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
30743         large.
30744         Reported by Larry Jones.
30745
30746         Fix fseeko on mingw.
30747         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
30748         seek.
30749
30750         Beef up fseek tests.
30751         * tests/test-fseek.c (main): Also test eof handling.
30752         * tests/test-fseeko.c (main): Likewise.
30753         Reported by Larry Jones.
30754
30755 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
30756
30757         Fix fseeko on BSD-based platforms.
30758         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
30759         successful seek.
30760
30761 2007-12-12  Eric Blake  <ebb9@byu.net>
30762
30763         Allow circular dependency of separate libtests.a
30764         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
30765         when use_libtests.
30766
30767 2007-12-11  Eric Blake  <ebb9@byu.net>
30768
30769         Fix bug with -0.0L in previous patch.
30770         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
30771         * tests/test-isnan.c (main): Also test on zeroes.
30772         * tests/test-isnanf.c (main): Likewise.
30773         * tests/test-isnanl.h (main): Likewise.
30774
30775         Detect pseudo-denormals on x86 even when cross-compiling.
30776         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
30777         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
30778         invalid bit patterns that happen to satisfy ==.
30779
30780         Avoid link failures with separate libtests.a.
30781         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
30782         last, to satisfy circular dependencies.
30783
30784 2007-12-11  Eric Blake  <ebb9@byu.net>
30785         and Bruno Haible  <bruno@clisp.org>
30786
30787         Fix OpenBSD 4.0 <float.h> handling of long double.
30788         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
30789         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
30790         * doc/headers/float.texi (float.h): Document OpenBSD bug.
30791
30792 2007-12-11  Jim Meyering  <meyering@redhat.com>
30793
30794         * users.txt: Add libvirt.
30795
30796         Support versions of autoconf prior to 2.59c.
30797         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
30798         if it is not already defined.
30799
30800 2007-12-09  Bruno Haible  <bruno@clisp.org>
30801
30802         Let 'gnulib-tool --import' collect sources needed for the tests in
30803         tests/ rather than in lib/.
30804         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
30805         argument. If true, add rules to generate libtests.a, and put libtests.a
30806         into $(LDADD). Consider source files in subdirectories and set
30807         uses_subdirs.
30808         (func_emit_initmacro_start, func_emit_initmacro_end,
30809         func_emit_initmacro_done): Pass all arguments explicitly.
30810         (func_import): Determine two module lists main_modules,
30811         testsrelated_modules. Determine use_libtests. Determine two variables
30812         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
30813         instead of just sed_transform_lib_file. Determine two variables
30814         main_files and testsrelated_files. Compute 'files' as the union of
30815         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
30816         func_add_or_update. In the generated gnulib-comp.m4, collect the
30817         object files for tests/ in different variables than those for lib/.
30818         Substitute LIBTESTS_LIBDEPS.
30819         (func_create_testdir): Combine the uses_subdirs results from
30820         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
30821
30822 2007-12-09  Bruno Haible  <bruno@clisp.org>
30823
30824         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
30825         the build-aux directory.
30826
30827 2007-12-09  Bruno Haible  <bruno@clisp.org>
30828
30829         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
30830         introduced on 2006-09-09.
30831
30832 2007-12-07  Jim Meyering  <meyering@redhat.com>
30833
30834         Let these macros work also with autoconf-2.59.
30835         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
30836         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
30837         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
30838
30839 2007-12-06  Jim Meyering  <meyering@redhat.com>
30840
30841         Avoid a configure-time syntax error in gl_FUNC_ACL.
30842         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
30843         function in each branch, before testing the cache variable.
30844
30845 2007-12-04  Eric Blake  <ebb9@byu.net>
30846
30847         Make scripts executable.
30848         * build-aux/config.guess: Add execute permissions.
30849         * build-aux/config.sub: Likewise.
30850         * build-aux/gendocs.sh: Likewise.
30851
30852         Fix frexp on mingw.
30853         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
30854         cross-compiling.
30855         * doc/functions/frexp.texi (frexp): Document the bug.
30856
30857         Make cygwin fseeko check more reliable.
30858         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
30859         version numbers, rather than unrelated feature check.
30860         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
30861         * doc/functions/ftello.texi (ftello): Likewise.
30862         Reported by Bruno Haible.
30863
30864         * m4/strerror.m4: Bump version number.
30865
30866 2007-12-03  Bruno Haible  <bruno@clisp.org>
30867
30868         * doc/functions/mprotect.texi: Mention the mingw problem.
30869
30870 2007-12-03  Eric Blake  <ebb9@byu.net>
30871
30872         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
30873         REPLACE_STRERROR is initialized before this macro.
30874
30875 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
30876
30877         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
30878         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
30879         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
30880         put -lsec in even for programs other than 'ls'.  This fixes a problem
30881         for gettext reported by Bruno Haible in
30882         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
30883         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
30884         Add support for Solaris 10.  This isn't efficient, but should get the
30885         job done for now.
30886
30887 2007-12-03  James Youngman  <jay@gnu.org>
30888
30889         * doc/regexprops-generic.texi: change "an close-group" to "a
30890         close-group" and "illegal" to "not allowed".
30891
30892 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30893
30894         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
30895         pr_byname.h. Needed for the rare case when the maintainer has done
30896         "make maintainer-clean" in the source directory and then attempts a
30897         build outside the source directory.
30898         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
30899         scripts_byname.h.
30900
30901 2007-12-02  Martin Lambers <marlam@marlam.de>
30902             Bruno Haible  <bruno@clisp.org>
30903
30904         * lib/getpagesize.h: Remove file.
30905         * lib/unistd.in.h: Include declaration of getpagesize here.
30906         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
30907         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
30908         HAVE_SYS_PARAM_H.
30909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
30910         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
30911         * modules/getpagesize (Files): Remove lib/getpagesize.h.
30912         (Depends-on): Add unistd.
30913         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30914         (Include): Use <unistd.h> instead of getpagesize.h.
30915         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
30916         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
30917         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
30918         gl_GETPAGESIZE invocation, already handled by module dependency.
30919         * lib/pagealign_alloc.c: Don't include getpagesize.h.
30920
30921 2007-12-02  Bruno Haible  <bruno@clisp.org>
30922
30923         * modules/strings-tests: New file.
30924         * tests/test-strings.c: New file.
30925
30926         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
30927         * lib/strings.in.h: New file.
30928         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
30929         * m4/strings_h.m4: New file.
30930         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
30931         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
30932         * modules/strings: New file.
30933         * modules/string (Makefile.am): Update.
30934         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
30935         Reported by Karl Berry.
30936
30937 2007-12-01  Eric Blake  <ebb9@byu.net>
30938
30939         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
30940         accomodate fix in cygwin 1.5.25.
30941
30942 2007-12-01  Jim Meyering  <meyering@redhat.com>
30943
30944         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
30945         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
30946         that would inhibit utf8-optimization of a regexp containing line-
30947         or buffer-anchors, e.g., `^', `$'.
30948
30949 2007-11-30  Bruno Haible  <bruno@clisp.org>
30950
30951         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
30952         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
30953         glthread_recursive_lock_init.
30954         * lib/lock.c (glthread_recursive_lock_init)
30955         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
30956         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30957
30958 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
30959
30960         New function qset_acl, like set_acl but with syscall semantics.
30961         * lib/acl.h (qset_acl): New decl.
30962         * lib/acl.c (qset_acl): New function.
30963         (set_acl): Use new function.  Use more-consistent diagnostics.
30964
30965 2007-11-28  Jim Meyering  <meyering@redhat.com>
30966
30967         * modules/physmem (License): Change from GPL to LGPLv2+.
30968
30969 2007-11-26  Bruno Haible  <bruno@clisp.org>
30970
30971         * lib/vasnprintf.c (decode_long_double): Don't abort if the
30972         'long double' type has excess precision.
30973         Reported by Jim Meyering in
30974         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
30975
30976 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30977
30978         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
30979         Sync from <http://gnu.org/licenses>.
30980         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
30981         with license text from same location.
30982         * doc/maintain.texi, doc/standards.texi:  Sync from
30983         <http://savannah.gnu.org/projects/gnustandards>.
30984
30985 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
30986         and Jim Meyering  <meyering@redhat.com>
30987
30988         Adjust getdate' grammar to accept a slightly more regular language.
30989         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
30990         Before, the former was rejected.
30991         * lib/getdate.y (digits_to_date_time): New function, factored
30992         out of ...
30993         (number): ...here.  Just call digits_to_date_time.
30994         (hybrid): New non-terminal to handle an <unsigned number,
30995         signed relative offset> sequence consistently.
30996
30997 2007-11-18  Jim Meyering  <meyering@redhat.com>
30998
30999         Pull my changes from coreutils:
31000         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
31001         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
31002         use of $gnulib_tool_option_extras, so that it's separated from the
31003         preceding argument.
31004
31005         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
31006         * build-aux/bootstrap (cp_mark_as_generated): Create any required
31007         parent destination directories before copying a file into place.
31008
31009 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
31010
31011         bootstrap: work also with 4-argument variant of AC_INIT
31012         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
31013
31014 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31015
31016         Port test-getaddrinfo to Solaris.
31017         Problem reported by Bruno Haible in
31018         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
31019         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
31020         explanation of setting 'hints'.
31021         Don't reject an implementation merely because it returns EAI_SERVICE.
31022         (EAI_SERVICE): Define to 0 if not defined.
31023
31024 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
31025
31026         The license of gnu-make and posix-shell is now "GPLed build tool".
31027         * modules/gnu-make (License): Likewise.
31028         * modules/posix-shell (License): Likewise.
31029
31030         New module posix-shell, for determining a POSIX shell
31031         or perhaps something that is close enough to a POSIX shell.
31032         * m4/posix-shell.m4: New file.
31033         * modules/posix-shell: New file.
31034
31035         * MODULES.html.sh: Mention new module.
31036
31037         New module gnu-make, for determining whether we're using GNU Make.
31038         * m4/gnu-make.m4: New file.
31039         * modules/gnu-make: New file.
31040         * MODULES.html.sh: Mention new module.
31041
31042 2007-11-14  Jim Meyering  <meyering@redhat.com>
31043
31044         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
31045         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
31046         use this macro to create a function _definition_.
31047         Remove useless "#undef ARGMATCH_DIE".
31048
31049 2007-11-14  Bruno Haible  <bruno@clisp.org>
31050
31051         * lib/config.charset: Update for OpenBSD 4.1.
31052         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
31053
31054 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
31055
31056         Document 64-bit #if problems in stdint.texi.
31057         * doc/headers/stdint.texi (stdint.h): Mention problems with
31058         64-bit-#if, and how to work around them.
31059
31060         Don't insist on 'long long int' support in the preprocessor.  It
31061         breaks too many things.  For example, PRIdMAX still uses a 'long
31062         long int' format with the latest Sun compiler, even though
31063         HAVE_LONG_LONG_INT isn't defined due to that compiler's
31064         preprocessor problem.  This causes the latest coreutils to dump
31065         core on Solaris 10 sparc with the Sun C compiler.
31066         Instead, fix the 2007-10-16 problem in a different way, by evaluating
31067         the troublesome expressions at configure-time, not at #if-time.
31068         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
31069         preprocessor.
31070         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
31071         compile-time C checks, done at 'configure'-time.
31072         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
31073         * modules/inttypes (Makefile): Substitute the new symbols that
31074         gl_INTTYPES_H now generates.
31075         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
31076
31077 2007-11-12  Bruno Haible  <bruno@clisp.org>
31078
31079         Tests for Unicode character classification functions.
31080
31081         * modules/unictype/bidicategory-byname-tests: New file.
31082         * modules/unictype/bidicategory-name-tests: New file.
31083         * modules/unictype/bidicategory-of-tests: New file.
31084         * modules/unictype/bidicategory-test-tests: New file.
31085         * modules/unictype/block-list-tests: New file.
31086         * modules/unictype/block-of-tests: New file.
31087         * modules/unictype/block-test-tests: New file.
31088         * modules/unictype/category-C-tests: New file.
31089         * modules/unictype/category-Cc-tests: New file.
31090         * modules/unictype/category-Cf-tests: New file.
31091         * modules/unictype/category-Cn-tests: New file.
31092         * modules/unictype/category-Co-tests: New file.
31093         * modules/unictype/category-Cs-tests: New file.
31094         * modules/unictype/category-L-tests: New file.
31095         * modules/unictype/category-Ll-tests: New file.
31096         * modules/unictype/category-Lm-tests: New file.
31097         * modules/unictype/category-Lo-tests: New file.
31098         * modules/unictype/category-Lt-tests: New file.
31099         * modules/unictype/category-Lu-tests: New file.
31100         * modules/unictype/category-M-tests: New file.
31101         * modules/unictype/category-Mc-tests: New file.
31102         * modules/unictype/category-Me-tests: New file.
31103         * modules/unictype/category-Mn-tests: New file.
31104         * modules/unictype/category-N-tests: New file.
31105         * modules/unictype/category-Nd-tests: New file.
31106         * modules/unictype/category-Nl-tests: New file.
31107         * modules/unictype/category-No-tests: New file.
31108         * modules/unictype/category-P-tests: New file.
31109         * modules/unictype/category-Pc-tests: New file.
31110         * modules/unictype/category-Pd-tests: New file.
31111         * modules/unictype/category-Pe-tests: New file.
31112         * modules/unictype/category-Pf-tests: New file.
31113         * modules/unictype/category-Pi-tests: New file.
31114         * modules/unictype/category-Po-tests: New file.
31115         * modules/unictype/category-Ps-tests: New file.
31116         * modules/unictype/category-S-tests: New file.
31117         * modules/unictype/category-Sc-tests: New file.
31118         * modules/unictype/category-Sk-tests: New file.
31119         * modules/unictype/category-Sm-tests: New file.
31120         * modules/unictype/category-So-tests: New file.
31121         * modules/unictype/category-Z-tests: New file.
31122         * modules/unictype/category-Zl-tests: New file.
31123         * modules/unictype/category-Zp-tests: New file.
31124         * modules/unictype/category-Zs-tests: New file.
31125         * modules/unictype/category-and-not-tests: New file.
31126         * modules/unictype/category-and-tests: New file.
31127         * modules/unictype/category-byname-tests: New file.
31128         * modules/unictype/category-name-tests: New file.
31129         * modules/unictype/category-none-tests: New file.
31130         * modules/unictype/category-of-tests: New file.
31131         * modules/unictype/category-or-tests: New file.
31132         * modules/unictype/category-test-withtable-tests: New file.
31133         * modules/unictype/combining-class-tests: New file.
31134         * modules/unictype/ctype-alnum-tests: New file.
31135         * modules/unictype/ctype-alpha-tests: New file.
31136         * modules/unictype/ctype-blank-tests: New file.
31137         * modules/unictype/ctype-cntrl-tests: New file.
31138         * modules/unictype/ctype-digit-tests: New file.
31139         * modules/unictype/ctype-graph-tests: New file.
31140         * modules/unictype/ctype-lower-tests: New file.
31141         * modules/unictype/ctype-print-tests: New file.
31142         * modules/unictype/ctype-punct-tests: New file.
31143         * modules/unictype/ctype-space-tests: New file.
31144         * modules/unictype/ctype-upper-tests: New file.
31145         * modules/unictype/ctype-xdigit-tests: New file.
31146         * modules/unictype/decimal-digit-tests: New file.
31147         * modules/unictype/digit-tests: New file.
31148         * modules/unictype/mirror-tests: New file.
31149         * modules/unictype/numeric-tests: New file.
31150         * modules/unictype/property-alphabetic-tests: New file.
31151         * modules/unictype/property-ascii-hex-digit-tests: New file.
31152         * modules/unictype/property-bidi-arabic-digit-tests: New file.
31153         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
31154         * modules/unictype/property-bidi-block-separator-tests: New file.
31155         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
31156         * modules/unictype/property-bidi-common-separator-tests: New file.
31157         * modules/unictype/property-bidi-control-tests: New file.
31158         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
31159         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
31160         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
31161         * modules/unictype/property-bidi-european-digit-tests: New file.
31162         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
31163         * modules/unictype/property-bidi-left-to-right-tests: New file.
31164         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
31165         * modules/unictype/property-bidi-other-neutral-tests: New file.
31166         * modules/unictype/property-bidi-pdf-tests: New file.
31167         * modules/unictype/property-bidi-segment-separator-tests: New file.
31168         * modules/unictype/property-bidi-whitespace-tests: New file.
31169         * modules/unictype/property-byname-tests: New file.
31170         * modules/unictype/property-combining-tests: New file.
31171         * modules/unictype/property-composite-tests: New file.
31172         * modules/unictype/property-currency-symbol-tests: New file.
31173         * modules/unictype/property-dash-tests: New file.
31174         * modules/unictype/property-decimal-digit-tests: New file.
31175         * modules/unictype/property-default-ignorable-code-point-tests: New file.
31176         * modules/unictype/property-deprecated-tests: New file.
31177         * modules/unictype/property-diacritic-tests: New file.
31178         * modules/unictype/property-extender-tests: New file.
31179         * modules/unictype/property-format-control-tests: New file.
31180         * modules/unictype/property-grapheme-base-tests: New file.
31181         * modules/unictype/property-grapheme-extend-tests: New file.
31182         * modules/unictype/property-grapheme-link-tests: New file.
31183         * modules/unictype/property-hex-digit-tests: New file.
31184         * modules/unictype/property-hyphen-tests: New file.
31185         * modules/unictype/property-id-continue-tests: New file.
31186         * modules/unictype/property-id-start-tests: New file.
31187         * modules/unictype/property-ideographic-tests: New file.
31188         * modules/unictype/property-ids-binary-operator-tests: New file.
31189         * modules/unictype/property-ids-trinary-operator-tests: New file.
31190         * modules/unictype/property-ignorable-control-tests: New file.
31191         * modules/unictype/property-iso-control-tests: New file.
31192         * modules/unictype/property-join-control-tests: New file.
31193         * modules/unictype/property-left-of-pair-tests: New file.
31194         * modules/unictype/property-line-separator-tests: New file.
31195         * modules/unictype/property-logical-order-exception-tests: New file.
31196         * modules/unictype/property-lowercase-tests: New file.
31197         * modules/unictype/property-math-tests: New file.
31198         * modules/unictype/property-non-break-tests: New file.
31199         * modules/unictype/property-not-a-character-tests: New file.
31200         * modules/unictype/property-numeric-tests: New file.
31201         * modules/unictype/property-other-alphabetic-tests: New file.
31202         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
31203         * modules/unictype/property-other-grapheme-extend-tests: New file.
31204         * modules/unictype/property-other-id-continue-tests: New file.
31205         * modules/unictype/property-other-id-start-tests: New file.
31206         * modules/unictype/property-other-lowercase-tests: New file.
31207         * modules/unictype/property-other-math-tests: New file.
31208         * modules/unictype/property-other-uppercase-tests: New file.
31209         * modules/unictype/property-paired-punctuation-tests: New file.
31210         * modules/unictype/property-paragraph-separator-tests: New file.
31211         * modules/unictype/property-pattern-syntax-tests: New file.
31212         * modules/unictype/property-pattern-white-space-tests: New file.
31213         * modules/unictype/property-private-use-tests: New file.
31214         * modules/unictype/property-punctuation-tests: New file.
31215         * modules/unictype/property-quotation-mark-tests: New file.
31216         * modules/unictype/property-radical-tests: New file.
31217         * modules/unictype/property-sentence-terminal-tests: New file.
31218         * modules/unictype/property-soft-dotted-tests: New file.
31219         * modules/unictype/property-space-tests: New file.
31220         * modules/unictype/property-terminal-punctuation-tests: New file.
31221         * modules/unictype/property-test-tests: New file.
31222         * modules/unictype/property-titlecase-tests: New file.
31223         * modules/unictype/property-unassigned-code-value-tests: New file.
31224         * modules/unictype/property-unified-ideograph-tests: New file.
31225         * modules/unictype/property-uppercase-tests: New file.
31226         * modules/unictype/property-variation-selector-tests: New file.
31227         * modules/unictype/property-white-space-tests: New file.
31228         * modules/unictype/property-xid-continue-tests: New file.
31229         * modules/unictype/property-xid-start-tests: New file.
31230         * modules/unictype/property-zero-width-tests: New file.
31231         * modules/unictype/scripts-tests: New file.
31232         * modules/unictype/syntax-c-ident-tests: New file.
31233         * modules/unictype/syntax-c-whitespace-tests: New file.
31234         * modules/unictype/syntax-java-ident-tests: New file.
31235         * modules/unictype/syntax-java-whitespace-tests: New file.
31236         * tests/unictype/test-bidi_byname.c: New file.
31237         * tests/unictype/test-bidi_name.c: New file.
31238         * tests/unictype/test-bidi_of.c: New file.
31239         * tests/unictype/test-bidi_test.c: New file.
31240         * tests/unictype/test-block_list.c: New file.
31241         * tests/unictype/test-block_of.c: New file.
31242         * tests/unictype/test-block_test.c: New file.
31243         * tests/unictype/test-categ_and.c: New file.
31244         * tests/unictype/test-categ_and_not.c: New file.
31245         * tests/unictype/test-categ_byname.c: New file.
31246         * tests/unictype/test-categ_name.c: New file.
31247         * tests/unictype/test-categ_none.c: New file.
31248         * tests/unictype/test-categ_of.c: New file.
31249         * tests/unictype/test-categ_or.c: New file.
31250         * tests/unictype/test-categ_test_withtable.c: New file.
31251         * tests/unictype/test-combining.c: New file.
31252         * tests/unictype/test-decdigit.c: New file.
31253         * tests/unictype/test-digit.c: New file.
31254         * tests/unictype/test-mirror.c: New file.
31255         * tests/unictype/test-numeric.c: New file.
31256         * tests/unictype/test-pr_byname.c: New file.
31257         * tests/unictype/test-pr_test.c: New file.
31258         * tests/unictype/test-predicate-part1.h: New file.
31259         * tests/unictype/test-predicate-part2.h: New file.
31260         * tests/unictype/test-scripts.c: New file.
31261         * tests/unictype/test-sy_c_ident.c: New file.
31262         * tests/unictype/test-sy_java_ident.c: New file.
31263
31264         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
31265         for Unicode 5.0.0.
31266         * tests/unictype/test-categ_Cc.c: Likewise.
31267         * tests/unictype/test-categ_Cf.c: Likewise.
31268         * tests/unictype/test-categ_Cn.c: Likewise.
31269         * tests/unictype/test-categ_Co.c: Likewise.
31270         * tests/unictype/test-categ_Cs.c: Likewise.
31271         * tests/unictype/test-categ_L.c: Likewise.
31272         * tests/unictype/test-categ_Ll.c: Likewise.
31273         * tests/unictype/test-categ_Lm.c: Likewise.
31274         * tests/unictype/test-categ_Lo.c: Likewise.
31275         * tests/unictype/test-categ_Lt.c: Likewise.
31276         * tests/unictype/test-categ_Lu.c: Likewise.
31277         * tests/unictype/test-categ_M.c: Likewise.
31278         * tests/unictype/test-categ_Mc.c: Likewise.
31279         * tests/unictype/test-categ_Me.c: Likewise.
31280         * tests/unictype/test-categ_Mn.c: Likewise.
31281         * tests/unictype/test-categ_N.c: Likewise.
31282         * tests/unictype/test-categ_Nd.c: Likewise.
31283         * tests/unictype/test-categ_Nl.c: Likewise.
31284         * tests/unictype/test-categ_No.c: Likewise.
31285         * tests/unictype/test-categ_P.c: Likewise.
31286         * tests/unictype/test-categ_Pc.c: Likewise.
31287         * tests/unictype/test-categ_Pd.c: Likewise.
31288         * tests/unictype/test-categ_Pe.c: Likewise.
31289         * tests/unictype/test-categ_Pf.c: Likewise.
31290         * tests/unictype/test-categ_Pi.c: Likewise.
31291         * tests/unictype/test-categ_Po.c: Likewise.
31292         * tests/unictype/test-categ_Ps.c: Likewise.
31293         * tests/unictype/test-categ_S.c: Likewise.
31294         * tests/unictype/test-categ_Sc.c: Likewise.
31295         * tests/unictype/test-categ_Sk.c: Likewise.
31296         * tests/unictype/test-categ_Sm.c: Likewise.
31297         * tests/unictype/test-categ_So.c: Likewise.
31298         * tests/unictype/test-categ_Z.c: Likewise.
31299         * tests/unictype/test-categ_Zl.c: Likewise.
31300         * tests/unictype/test-categ_Zp.c: Likewise.
31301         * tests/unictype/test-categ_Zs.c: Likewise.
31302         * tests/unictype/test-ctype_alnum.c: Likewise.
31303         * tests/unictype/test-ctype_alpha.c: Likewise.
31304         * tests/unictype/test-ctype_blank.c: Likewise.
31305         * tests/unictype/test-ctype_cntrl.c: Likewise.
31306         * tests/unictype/test-ctype_digit.c: Likewise.
31307         * tests/unictype/test-ctype_graph.c: Likewise.
31308         * tests/unictype/test-ctype_lower.c: Likewise.
31309         * tests/unictype/test-ctype_print.c: Likewise.
31310         * tests/unictype/test-ctype_punct.c: Likewise.
31311         * tests/unictype/test-ctype_space.c: Likewise.
31312         * tests/unictype/test-ctype_upper.c: Likewise.
31313         * tests/unictype/test-ctype_xdigit.c: Likewise.
31314         * tests/unictype/test-decdigit.h: Likewise.
31315         * tests/unictype/test-digit.h: Likewise.
31316         * tests/unictype/test-numeric.h: Likewise.
31317         * tests/unictype/test-pr_alphabetic.c: Likewise.
31318         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
31319         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
31320         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
31321         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
31322         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
31323         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
31324         * tests/unictype/test-pr_bidi_control.c: Likewise.
31325         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
31326         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
31327         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
31328         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
31329         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
31330         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
31331         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
31332         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
31333         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
31334         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
31335         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
31336         * tests/unictype/test-pr_combining.c: Likewise.
31337         * tests/unictype/test-pr_composite.c: Likewise.
31338         * tests/unictype/test-pr_currency_symbol.c: Likewise.
31339         * tests/unictype/test-pr_dash.c: Likewise.
31340         * tests/unictype/test-pr_decimal_digit.c: Likewise.
31341         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
31342         * tests/unictype/test-pr_deprecated.c: Likewise.
31343         * tests/unictype/test-pr_diacritic.c: Likewise.
31344         * tests/unictype/test-pr_extender.c: Likewise.
31345         * tests/unictype/test-pr_format_control.c: Likewise.
31346         * tests/unictype/test-pr_grapheme_base.c: Likewise.
31347         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
31348         * tests/unictype/test-pr_grapheme_link.c: Likewise.
31349         * tests/unictype/test-pr_hex_digit.c: Likewise.
31350         * tests/unictype/test-pr_hyphen.c: Likewise.
31351         * tests/unictype/test-pr_id_continue.c: Likewise.
31352         * tests/unictype/test-pr_id_start.c: Likewise.
31353         * tests/unictype/test-pr_ideographic.c: Likewise.
31354         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
31355         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
31356         * tests/unictype/test-pr_ignorable_control.c: Likewise.
31357         * tests/unictype/test-pr_iso_control.c: Likewise.
31358         * tests/unictype/test-pr_join_control.c: Likewise.
31359         * tests/unictype/test-pr_left_of_pair.c: Likewise.
31360         * tests/unictype/test-pr_line_separator.c: Likewise.
31361         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
31362         * tests/unictype/test-pr_lowercase.c: Likewise.
31363         * tests/unictype/test-pr_math.c: Likewise.
31364         * tests/unictype/test-pr_non_break.c: Likewise.
31365         * tests/unictype/test-pr_not_a_character.c: Likewise.
31366         * tests/unictype/test-pr_numeric.c: Likewise.
31367         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
31368         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
31369         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
31370         * tests/unictype/test-pr_other_id_continue.c: Likewise.
31371         * tests/unictype/test-pr_other_id_start.c: Likewise.
31372         * tests/unictype/test-pr_other_lowercase.c: Likewise.
31373         * tests/unictype/test-pr_other_math.c: Likewise.
31374         * tests/unictype/test-pr_other_uppercase.c: Likewise.
31375         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
31376         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
31377         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
31378         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
31379         * tests/unictype/test-pr_private_use.c: Likewise.
31380         * tests/unictype/test-pr_punctuation.c: Likewise.
31381         * tests/unictype/test-pr_quotation_mark.c: Likewise.
31382         * tests/unictype/test-pr_radical.c: Likewise.
31383         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
31384         * tests/unictype/test-pr_soft_dotted.c: Likewise.
31385         * tests/unictype/test-pr_space.c: Likewise.
31386         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
31387         * tests/unictype/test-pr_titlecase.c: Likewise.
31388         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
31389         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
31390         * tests/unictype/test-pr_uppercase.c: Likewise.
31391         * tests/unictype/test-pr_variation_selector.c: Likewise.
31392         * tests/unictype/test-pr_white_space.c: Likewise.
31393         * tests/unictype/test-pr_xid_continue.c: Likewise.
31394         * tests/unictype/test-pr_xid_start.c: Likewise.
31395         * tests/unictype/test-pr_zero_width.c: Likewise.
31396         * tests/unictype/test-sy_c_whitespace.c: Likewise.
31397         * tests/unictype/test-sy_java_whitespace.c: Likewise.
31398
31399 2007-11-12  Bruno Haible  <bruno@clisp.org>
31400
31401         Unicode character classification functions.
31402         * lib/unictype.h: New file.
31403         * modules/unictype/base: New file.
31404         * modules/unictype/category-L: New file.
31405         * modules/unictype/category-Lu: New file.
31406         * modules/unictype/category-Ll: New file.
31407         * modules/unictype/category-Lt: New file.
31408         * modules/unictype/category-Lm: New file.
31409         * modules/unictype/category-Lo: New file.
31410         * modules/unictype/category-M: New file.
31411         * modules/unictype/category-Mn: New file.
31412         * modules/unictype/category-Mc: New file.
31413         * modules/unictype/category-Me: New file.
31414         * modules/unictype/category-N: New file.
31415         * modules/unictype/category-Nd: New file.
31416         * modules/unictype/category-Nl: New file.
31417         * modules/unictype/category-No: New file.
31418         * modules/unictype/category-P: New file.
31419         * modules/unictype/category-Pc: New file.
31420         * modules/unictype/category-Pd: New file.
31421         * modules/unictype/category-Ps: New file.
31422         * modules/unictype/category-Pe: New file.
31423         * modules/unictype/category-Pi: New file.
31424         * modules/unictype/category-Pf: New file.
31425         * modules/unictype/category-Po: New file.
31426         * modules/unictype/category-S: New file.
31427         * modules/unictype/category-Sm: New file.
31428         * modules/unictype/category-Sc: New file.
31429         * modules/unictype/category-Sk: New file.
31430         * modules/unictype/category-So: New file.
31431         * modules/unictype/category-Z: New file.
31432         * modules/unictype/category-Zs: New file.
31433         * modules/unictype/category-Zl: New file.
31434         * modules/unictype/category-Zp: New file.
31435         * modules/unictype/category-C: New file.
31436         * modules/unictype/category-Cc: New file.
31437         * modules/unictype/category-Cf: New file.
31438         * modules/unictype/category-Cs: New file.
31439         * modules/unictype/category-Co: New file.
31440         * modules/unictype/category-Cn: New file.
31441         * modules/unictype/category-or: New file.
31442         * modules/unictype/category-of: New file.
31443         * modules/unictype/category-test: New file.
31444         * modules/unictype/category-test-withtable: New file.
31445         * modules/unictype/category-byname: New file.
31446         * modules/unictype/category-none: New file.
31447         * modules/unictype/category-and: New file.
31448         * modules/unictype/category-and-not: New file.
31449         * modules/unictype/category-name: New file.
31450         * modules/unictype/combining-class: New file.
31451         * modules/unictype/category-all: New file.
31452         * modules/unictype/bidicategory-all: New file.
31453         * modules/unictype/bidicategory-byname: New file.
31454         * modules/unictype/bidicategory-name: New file.
31455         * modules/unictype/bidicategory-of: New file.
31456         * modules/unictype/bidicategory-test: New file.
31457         * modules/unictype/decimal-digit: New file.
31458         * modules/unictype/digit: New file.
31459         * modules/unictype/numeric: New file.
31460         * modules/unictype/mirror: New file.
31461         * modules/unictype/property-white-space: New file.
31462         * modules/unictype/property-alphabetic: New file.
31463         * modules/unictype/property-other-alphabetic: New file.
31464         * modules/unictype/property-not-a-character: New file.
31465         * modules/unictype/property-default-ignorable-code-point: New file.
31466         * modules/unictype/property-other-default-ignorable-code-point: New
31467         file.
31468         * modules/unictype/property-deprecated: New file.
31469         * modules/unictype/property-logical-order-exception: New file.
31470         * modules/unictype/property-variation-selector: New file.
31471         * modules/unictype/property-private-use: New file.
31472         * modules/unictype/property-unassigned-code-value: New file.
31473         * modules/unictype/property-uppercase: New file.
31474         * modules/unictype/property-other-uppercase: New file.
31475         * modules/unictype/property-lowercase: New file.
31476         * modules/unictype/property-other-lowercase: New file.
31477         * modules/unictype/property-titlecase: New file.
31478         * modules/unictype/property-soft-dotted: New file.
31479         * modules/unictype/property-id-start: New file.
31480         * modules/unictype/property-other-id-start: New file.
31481         * modules/unictype/property-id-continue: New file.
31482         * modules/unictype/property-other-id-continue: New file.
31483         * modules/unictype/property-xid-start: New file.
31484         * modules/unictype/property-xid-continue: New file.
31485         * modules/unictype/property-pattern-white-space: New file.
31486         * modules/unictype/property-pattern-syntax: New file.
31487         * modules/unictype/property-join-control: New file.
31488         * modules/unictype/property-grapheme-base: New file.
31489         * modules/unictype/property-grapheme-extend: New file.
31490         * modules/unictype/property-other-grapheme-extend: New file.
31491         * modules/unictype/property-grapheme-link: New file.
31492         * modules/unictype/property-bidi-control: New file.
31493         * modules/unictype/property-bidi-left-to-right: New file.
31494         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
31495         * modules/unictype/property-bidi-arabic-right-to-left: New file.
31496         * modules/unictype/property-bidi-european-digit: New file.
31497         * modules/unictype/property-bidi-eur-num-separator: New file.
31498         * modules/unictype/property-bidi-eur-num-terminator: New file.
31499         * modules/unictype/property-bidi-arabic-digit: New file.
31500         * modules/unictype/property-bidi-common-separator: New file.
31501         * modules/unictype/property-bidi-block-separator: New file.
31502         * modules/unictype/property-bidi-segment-separator: New file.
31503         * modules/unictype/property-bidi-whitespace: New file.
31504         * modules/unictype/property-bidi-non-spacing-mark: New file.
31505         * modules/unictype/property-bidi-boundary-neutral: New file.
31506         * modules/unictype/property-bidi-pdf: New file.
31507         * modules/unictype/property-bidi-embedding-or-override: New file.
31508         * modules/unictype/property-bidi-other-neutral: New file.
31509         * modules/unictype/property-hex-digit: New file.
31510         * modules/unictype/property-ascii-hex-digit: New file.
31511         * modules/unictype/property-ideographic: New file.
31512         * modules/unictype/property-unified-ideograph: New file.
31513         * modules/unictype/property-radical: New file.
31514         * modules/unictype/property-ids-binary-operator: New file.
31515         * modules/unictype/property-ids-trinary-operator: New file.
31516         * modules/unictype/property-zero-width: New file.
31517         * modules/unictype/property-space: New file.
31518         * modules/unictype/property-non-break: New file.
31519         * modules/unictype/property-iso-control: New file.
31520         * modules/unictype/property-format-control: New file.
31521         * modules/unictype/property-dash: New file.
31522         * modules/unictype/property-hyphen: New file.
31523         * modules/unictype/property-punctuation: New file.
31524         * modules/unictype/property-line-separator: New file.
31525         * modules/unictype/property-paragraph-separator: New file.
31526         * modules/unictype/property-quotation-mark: New file.
31527         * modules/unictype/property-sentence-terminal: New file.
31528         * modules/unictype/property-terminal-punctuation: New file.
31529         * modules/unictype/property-currency-symbol: New file.
31530         * modules/unictype/property-math: New file.
31531         * modules/unictype/property-other-math: New file.
31532         * modules/unictype/property-paired-punctuation: New file.
31533         * modules/unictype/property-left-of-pair: New file.
31534         * modules/unictype/property-combining: New file.
31535         * modules/unictype/property-composite: New file.
31536         * modules/unictype/property-decimal-digit: New file.
31537         * modules/unictype/property-numeric: New file.
31538         * modules/unictype/property-diacritic: New file.
31539         * modules/unictype/property-extender: New file.
31540         * modules/unictype/property-ignorable-control: New file.
31541         * modules/unictype/property-test: New file.
31542         * modules/unictype/property-byname: New file.
31543         * modules/unictype/property-all: New file.
31544         * modules/unictype/scripts: New file.
31545         * modules/unictype/scripts-all: New file.
31546         * modules/unictype/block-of: New file.
31547         * modules/unictype/block-test: New file.
31548         * modules/unictype/block-list: New file.
31549         * modules/unictype/block-all: New file.
31550         * modules/unictype/syntax-c-whitespace: New file.
31551         * modules/unictype/syntax-java-whitespace: New file.
31552         * modules/unictype/syntax-c-ident: New file.
31553         * modules/unictype/syntax-java-ident: New file.
31554         * modules/unictype/ctype-alnum: New file.
31555         * modules/unictype/ctype-alpha: New file.
31556         * modules/unictype/ctype-cntrl: New file.
31557         * modules/unictype/ctype-digit: New file.
31558         * modules/unictype/ctype-graph: New file.
31559         * modules/unictype/ctype-lower: New file.
31560         * modules/unictype/ctype-print: New file.
31561         * modules/unictype/ctype-punct: New file.
31562         * modules/unictype/ctype-space: New file.
31563         * modules/unictype/ctype-upper: New file.
31564         * modules/unictype/ctype-xdigit: New file.
31565         * modules/unictype/ctype-blank: New file.
31566         * lib/unictype/bidi_byname.c: New file.
31567         * lib/unictype/bidi_name.c: New file.
31568         * lib/unictype/bidi_of.c: New file.
31569         * lib/unictype/bidi_test.c: New file.
31570         * lib/unictype/bitmap.h: New file.
31571         * lib/unictype/block_test.c: New file.
31572         * lib/unictype/blocks.c: New file.
31573         * lib/unictype/categ_C.c: New file.
31574         * lib/unictype/categ_Cc.c: New file.
31575         * lib/unictype/categ_Cf.c: New file.
31576         * lib/unictype/categ_Cn.c: New file.
31577         * lib/unictype/categ_Co.c: New file.
31578         * lib/unictype/categ_Cs.c: New file.
31579         * lib/unictype/categ_L.c: New file.
31580         * lib/unictype/categ_Ll.c: New file.
31581         * lib/unictype/categ_Lm.c: New file.
31582         * lib/unictype/categ_Lo.c: New file.
31583         * lib/unictype/categ_Lt.c: New file.
31584         * lib/unictype/categ_Lu.c: New file.
31585         * lib/unictype/categ_M.c: New file.
31586         * lib/unictype/categ_Mc.c: New file.
31587         * lib/unictype/categ_Me.c: New file.
31588         * lib/unictype/categ_Mn.c: New file.
31589         * lib/unictype/categ_N.c: New file.
31590         * lib/unictype/categ_Nd.c: New file.
31591         * lib/unictype/categ_Nl.c: New file.
31592         * lib/unictype/categ_No.c: New file.
31593         * lib/unictype/categ_P.c: New file.
31594         * lib/unictype/categ_Pc.c: New file.
31595         * lib/unictype/categ_Pd.c: New file.
31596         * lib/unictype/categ_Pe.c: New file.
31597         * lib/unictype/categ_Pf.c: New file.
31598         * lib/unictype/categ_Pi.c: New file.
31599         * lib/unictype/categ_Po.c: New file.
31600         * lib/unictype/categ_Ps.c: New file.
31601         * lib/unictype/categ_S.c: New file.
31602         * lib/unictype/categ_Sc.c: New file.
31603         * lib/unictype/categ_Sk.c: New file.
31604         * lib/unictype/categ_Sm.c: New file.
31605         * lib/unictype/categ_So.c: New file.
31606         * lib/unictype/categ_Z.c: New file.
31607         * lib/unictype/categ_Zl.c: New file.
31608         * lib/unictype/categ_Zp.c: New file.
31609         * lib/unictype/categ_Zs.c: New file.
31610         * lib/unictype/categ_and.c: New file.
31611         * lib/unictype/categ_and_not.c: New file.
31612         * lib/unictype/categ_byname.c: New file.
31613         * lib/unictype/categ_name.c: New file.
31614         * lib/unictype/categ_none.c: New file.
31615         * lib/unictype/categ_of.c: New file.
31616         * lib/unictype/categ_or.c: New file.
31617         * lib/unictype/categ_test.c: New file.
31618         * lib/unictype/combining.c: New file.
31619         * lib/unictype/ctype_alnum.c: New file.
31620         * lib/unictype/ctype_alpha.c: New file.
31621         * lib/unictype/ctype_blank.c: New file.
31622         * lib/unictype/ctype_cntrl.c: New file.
31623         * lib/unictype/ctype_digit.c: New file.
31624         * lib/unictype/ctype_graph.c: New file.
31625         * lib/unictype/ctype_lower.c: New file.
31626         * lib/unictype/ctype_print.c: New file.
31627         * lib/unictype/ctype_punct.c: New file.
31628         * lib/unictype/ctype_space.c: New file.
31629         * lib/unictype/ctype_upper.c: New file.
31630         * lib/unictype/ctype_xdigit.c: New file.
31631         * lib/unictype/decdigit.c: New file.
31632         * lib/unictype/digit.c: New file.
31633         * lib/unictype/identsyntaxmap.h: New file.
31634         * lib/unictype/mirror.c: New file.
31635         * lib/unictype/numeric.c: New file.
31636         * lib/unictype/pr_alphabetic.c: New file.
31637         * lib/unictype/pr_ascii_hex_digit.c: New file.
31638         * lib/unictype/pr_bidi_arabic_digit.c: New file.
31639         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
31640         * lib/unictype/pr_bidi_block_separator.c: New file.
31641         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
31642         * lib/unictype/pr_bidi_common_separator.c: New file.
31643         * lib/unictype/pr_bidi_control.c: New file.
31644         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
31645         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
31646         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
31647         * lib/unictype/pr_bidi_european_digit.c: New file.
31648         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
31649         * lib/unictype/pr_bidi_left_to_right.c: New file.
31650         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
31651         * lib/unictype/pr_bidi_other_neutral.c: New file.
31652         * lib/unictype/pr_bidi_pdf.c: New file.
31653         * lib/unictype/pr_bidi_segment_separator.c: New file.
31654         * lib/unictype/pr_bidi_whitespace.c: New file.
31655         * lib/unictype/pr_byname.c: New file.
31656         * lib/unictype/pr_byname.gperf: New file.
31657         * lib/unictype/pr_combining.c: New file.
31658         * lib/unictype/pr_composite.c: New file.
31659         * lib/unictype/pr_currency_symbol.c: New file.
31660         * lib/unictype/pr_dash.c: New file.
31661         * lib/unictype/pr_decimal_digit.c: New file.
31662         * lib/unictype/pr_default_ignorable_code_point.c: New file.
31663         * lib/unictype/pr_deprecated.c: New file.
31664         * lib/unictype/pr_diacritic.c: New file.
31665         * lib/unictype/pr_extender.c: New file.
31666         * lib/unictype/pr_format_control.c: New file.
31667         * lib/unictype/pr_grapheme_base.c: New file.
31668         * lib/unictype/pr_grapheme_extend.c: New file.
31669         * lib/unictype/pr_grapheme_link.c: New file.
31670         * lib/unictype/pr_hex_digit.c: New file.
31671         * lib/unictype/pr_hyphen.c: New file.
31672         * lib/unictype/pr_id_continue.c: New file.
31673         * lib/unictype/pr_id_start.c: New file.
31674         * lib/unictype/pr_ideographic.c: New file.
31675         * lib/unictype/pr_ids_binary_operator.c: New file.
31676         * lib/unictype/pr_ids_trinary_operator.c: New file.
31677         * lib/unictype/pr_ignorable_control.c: New file.
31678         * lib/unictype/pr_iso_control.c: New file.
31679         * lib/unictype/pr_join_control.c: New file.
31680         * lib/unictype/pr_left_of_pair.c: New file.
31681         * lib/unictype/pr_line_separator.c: New file.
31682         * lib/unictype/pr_logical_order_exception.c: New file.
31683         * lib/unictype/pr_lowercase.c: New file.
31684         * lib/unictype/pr_math.c: New file.
31685         * lib/unictype/pr_non_break.c: New file.
31686         * lib/unictype/pr_not_a_character.c: New file.
31687         * lib/unictype/pr_numeric.c: New file.
31688         * lib/unictype/pr_other_alphabetic.c: New file.
31689         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
31690         * lib/unictype/pr_other_grapheme_extend.c: New file.
31691         * lib/unictype/pr_other_id_continue.c: New file.
31692         * lib/unictype/pr_other_id_start.c: New file.
31693         * lib/unictype/pr_other_lowercase.c: New file.
31694         * lib/unictype/pr_other_math.c: New file.
31695         * lib/unictype/pr_other_uppercase.c: New file.
31696         * lib/unictype/pr_paired_punctuation.c: New file.
31697         * lib/unictype/pr_paragraph_separator.c: New file.
31698         * lib/unictype/pr_pattern_syntax.c: New file.
31699         * lib/unictype/pr_pattern_white_space.c: New file.
31700         * lib/unictype/pr_private_use.c: New file.
31701         * lib/unictype/pr_punctuation.c: New file.
31702         * lib/unictype/pr_quotation_mark.c: New file.
31703         * lib/unictype/pr_radical.c: New file.
31704         * lib/unictype/pr_sentence_terminal.c: New file.
31705         * lib/unictype/pr_soft_dotted.c: New file.
31706         * lib/unictype/pr_space.c: New file.
31707         * lib/unictype/pr_terminal_punctuation.c: New file.
31708         * lib/unictype/pr_test.c: New file.
31709         * lib/unictype/pr_titlecase.c: New file.
31710         * lib/unictype/pr_unassigned_code_value.c: New file.
31711         * lib/unictype/pr_unified_ideograph.c: New file.
31712         * lib/unictype/pr_uppercase.c: New file.
31713         * lib/unictype/pr_variation_selector.c: New file.
31714         * lib/unictype/pr_white_space.c: New file.
31715         * lib/unictype/pr_xid_continue.c: New file.
31716         * lib/unictype/pr_xid_start.c: New file.
31717         * lib/unictype/pr_zero_width.c: New file.
31718         * lib/unictype/scripts.c: New file.
31719         * lib/unictype/sy_c_ident.c: New file.
31720         * lib/unictype/sy_c_whitespace.c: New file.
31721         * lib/unictype/sy_java_ident.c: New file.
31722         * lib/unictype/sy_java_whitespace.c: New file.
31723
31724         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
31725         Unicode 5.0.0.
31726         * lib/unictype/blocks.h: Likewise.
31727         * lib/unictype/categ_C.h: Likewise.
31728         * lib/unictype/categ_Cc.h: Likewise.
31729         * lib/unictype/categ_Cf.h: Likewise.
31730         * lib/unictype/categ_Cn.h: Likewise.
31731         * lib/unictype/categ_Co.h: Likewise.
31732         * lib/unictype/categ_Cs.h: Likewise.
31733         * lib/unictype/categ_L.h: Likewise.
31734         * lib/unictype/categ_Ll.h: Likewise.
31735         * lib/unictype/categ_Lm.h: Likewise.
31736         * lib/unictype/categ_Lo.h: Likewise.
31737         * lib/unictype/categ_Lt.h: Likewise.
31738         * lib/unictype/categ_Lu.h: Likewise.
31739         * lib/unictype/categ_M.h: Likewise.
31740         * lib/unictype/categ_Mc.h: Likewise.
31741         * lib/unictype/categ_Me.h: Likewise.
31742         * lib/unictype/categ_Mn.h: Likewise.
31743         * lib/unictype/categ_N.h: Likewise.
31744         * lib/unictype/categ_Nd.h: Likewise.
31745         * lib/unictype/categ_Nl.h: Likewise.
31746         * lib/unictype/categ_No.h: Likewise.
31747         * lib/unictype/categ_P.h: Likewise.
31748         * lib/unictype/categ_Pc.h: Likewise.
31749         * lib/unictype/categ_Pd.h: Likewise.
31750         * lib/unictype/categ_Pe.h: Likewise.
31751         * lib/unictype/categ_Pf.h: Likewise.
31752         * lib/unictype/categ_Pi.h: Likewise.
31753         * lib/unictype/categ_Po.h: Likewise.
31754         * lib/unictype/categ_Ps.h: Likewise.
31755         * lib/unictype/categ_S.h: Likewise.
31756         * lib/unictype/categ_Sc.h: Likewise.
31757         * lib/unictype/categ_Sk.h: Likewise.
31758         * lib/unictype/categ_Sm.h: Likewise.
31759         * lib/unictype/categ_So.h: Likewise.
31760         * lib/unictype/categ_Z.h: Likewise.
31761         * lib/unictype/categ_Zl.h: Likewise.
31762         * lib/unictype/categ_Zp.h: Likewise.
31763         * lib/unictype/categ_Zs.h: Likewise.
31764         * lib/unictype/categ_of.h: Likewise.
31765         * lib/unictype/combining.h: Likewise.
31766         * lib/unictype/ctype_alnum.h: Likewise.
31767         * lib/unictype/ctype_alpha.h: Likewise.
31768         * lib/unictype/ctype_blank.h: Likewise.
31769         * lib/unictype/ctype_cntrl.h: Likewise.
31770         * lib/unictype/ctype_digit.h: Likewise.
31771         * lib/unictype/ctype_graph.h: Likewise.
31772         * lib/unictype/ctype_lower.h: Likewise.
31773         * lib/unictype/ctype_print.h: Likewise.
31774         * lib/unictype/ctype_punct.h: Likewise.
31775         * lib/unictype/ctype_space.h: Likewise.
31776         * lib/unictype/ctype_upper.h: Likewise.
31777         * lib/unictype/ctype_xdigit.h: Likewise.
31778         * lib/unictype/decdigit.h: Likewise.
31779         * lib/unictype/digit.h: Likewise.
31780         * lib/unictype/mirror.h: Likewise.
31781         * lib/unictype/numeric.h: Likewise.
31782         * lib/unictype/pr_alphabetic.h: Likewise.
31783         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
31784         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
31785         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
31786         * lib/unictype/pr_bidi_block_separator.h: Likewise.
31787         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
31788         * lib/unictype/pr_bidi_common_separator.h: Likewise.
31789         * lib/unictype/pr_bidi_control.h: Likewise.
31790         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
31791         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
31792         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
31793         * lib/unictype/pr_bidi_european_digit.h: Likewise.
31794         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
31795         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
31796         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
31797         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
31798         * lib/unictype/pr_bidi_pdf.h: Likewise.
31799         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
31800         * lib/unictype/pr_bidi_whitespace.h: Likewise.
31801         * lib/unictype/pr_combining.h: Likewise.
31802         * lib/unictype/pr_composite.h: Likewise.
31803         * lib/unictype/pr_currency_symbol.h: Likewise.
31804         * lib/unictype/pr_dash.h: Likewise.
31805         * lib/unictype/pr_decimal_digit.h: Likewise.
31806         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
31807         * lib/unictype/pr_deprecated.h: Likewise.
31808         * lib/unictype/pr_diacritic.h: Likewise.
31809         * lib/unictype/pr_extender.h: Likewise.
31810         * lib/unictype/pr_format_control.h: Likewise.
31811         * lib/unictype/pr_grapheme_base.h: Likewise.
31812         * lib/unictype/pr_grapheme_extend.h: Likewise.
31813         * lib/unictype/pr_grapheme_link.h: Likewise.
31814         * lib/unictype/pr_hex_digit.h: Likewise.
31815         * lib/unictype/pr_hyphen.h: Likewise.
31816         * lib/unictype/pr_id_continue.h: Likewise.
31817         * lib/unictype/pr_id_start.h: Likewise.
31818         * lib/unictype/pr_ideographic.h: Likewise.
31819         * lib/unictype/pr_ids_binary_operator.h: Likewise.
31820         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
31821         * lib/unictype/pr_ignorable_control.h: Likewise.
31822         * lib/unictype/pr_iso_control.h: Likewise.
31823         * lib/unictype/pr_join_control.h: Likewise.
31824         * lib/unictype/pr_left_of_pair.h: Likewise.
31825         * lib/unictype/pr_line_separator.h: Likewise.
31826         * lib/unictype/pr_logical_order_exception.h: Likewise.
31827         * lib/unictype/pr_lowercase.h: Likewise.
31828         * lib/unictype/pr_math.h: Likewise.
31829         * lib/unictype/pr_non_break.h: Likewise.
31830         * lib/unictype/pr_not_a_character.h: Likewise.
31831         * lib/unictype/pr_numeric.h: Likewise.
31832         * lib/unictype/pr_other_alphabetic.h: Likewise.
31833         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
31834         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
31835         * lib/unictype/pr_other_id_continue.h: Likewise.
31836         * lib/unictype/pr_other_id_start.h: Likewise.
31837         * lib/unictype/pr_other_lowercase.h: Likewise.
31838         * lib/unictype/pr_other_math.h: Likewise.
31839         * lib/unictype/pr_other_uppercase.h: Likewise.
31840         * lib/unictype/pr_paired_punctuation.h: Likewise.
31841         * lib/unictype/pr_paragraph_separator.h: Likewise.
31842         * lib/unictype/pr_pattern_syntax.h: Likewise.
31843         * lib/unictype/pr_pattern_white_space.h: Likewise.
31844         * lib/unictype/pr_private_use.h: Likewise.
31845         * lib/unictype/pr_punctuation.h: Likewise.
31846         * lib/unictype/pr_quotation_mark.h: Likewise.
31847         * lib/unictype/pr_radical.h: Likewise.
31848         * lib/unictype/pr_sentence_terminal.h: Likewise.
31849         * lib/unictype/pr_soft_dotted.h: Likewise.
31850         * lib/unictype/pr_space.h: Likewise.
31851         * lib/unictype/pr_terminal_punctuation.h: Likewise.
31852         * lib/unictype/pr_titlecase.h: Likewise.
31853         * lib/unictype/pr_unassigned_code_value.h: Likewise.
31854         * lib/unictype/pr_unified_ideograph.h: Likewise.
31855         * lib/unictype/pr_uppercase.h: Likewise.
31856         * lib/unictype/pr_variation_selector.h: Likewise.
31857         * lib/unictype/pr_white_space.h: Likewise.
31858         * lib/unictype/pr_xid_continue.h: Likewise.
31859         * lib/unictype/pr_xid_start.h: Likewise.
31860         * lib/unictype/pr_zero_width.h: Likewise.
31861         * lib/unictype/scripts.h: Likewise.
31862         * lib/unictype/scripts_byname.gperf: Likewise.
31863         * lib/unictype/sy_c_ident.h: Likewise.
31864         * lib/unictype/sy_c_whitespace.h: Likewise.
31865         * lib/unictype/sy_java_ident.h: Likewise.
31866         * lib/unictype/sy_java_whitespace.h: Likewise.
31867
31868         * lib/unictype/Makefile: New file.
31869         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
31870         glibc.
31871         * lib/unictype/3level.h: New file, copied from glibc.
31872         * lib/unictype/3levelbit.h: New file.
31873
31874 2007-11-11  Bruno Haible  <bruno@clisp.org>
31875
31876         * modules/gperf: New file.
31877         * modules/iconv_open (Depends-on): Add it.
31878         (Makefile.am): Remove the GPERF definition.
31879
31880 2007-11-11  Bruno Haible  <bruno@clisp.org>
31881
31882         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
31883         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
31884
31885 2007-11-11  Bruno Haible  <bruno@clisp.org>
31886
31887         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
31888         (usage): Remove function.
31889
31890 2007-11-11  Bruno Haible  <bruno@clisp.org>
31891
31892         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
31893         gl_FUNC_CEILF_LIBS.
31894         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
31895         gl_FUNC_CEIL_LIBS.
31896         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
31897         gl_FUNC_CEILL_LIBS.
31898         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
31899         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
31900         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
31901
31902 2007-11-11  Bruno Haible  <bruno@clisp.org>
31903
31904         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
31905         roundf were declared but do not exist on functions.
31906         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
31907         roundl were declared but do not exist on functions.
31908         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
31909         HAVE_FLOORL_AND_CEILL, respectively.
31910         Needed for Sun C on Solaris 10.
31911
31912 2007-11-11  Bruno Haible  <bruno@clisp.org>
31913
31914         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
31915         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
31916         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
31917         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
31918         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
31919         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
31920         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
31921         HAVE_DECL_ROUNDF.
31922         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
31923         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
31924         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
31925         of HAVE_DECL_ROUND*.
31926         * modules/math (Makefile.am): Update.
31927
31928 2007-11-10  Bruno Haible  <bruno@clisp.org>
31929
31930         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
31931         ptrdiff_t as m4/intl.m4.
31932
31933 2007-11-10  Jim Meyering  <meyering@redhat.com>
31934
31935         Avoid link failure for the argmatch test.
31936         * tests/test-argmatch.c (usage): Define function to avoid a link
31937         failure: argmatch_die requires a usage function.
31938
31939 2007-11-09  Bruno Haible  <bruno@clisp.org>
31940
31941         * doc/functions/snprintf.texi: Mention BeOS deficiency.
31942         * doc/functions/vsnprintf.texi: Likewise.
31943         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
31944         with a size argument < 2.
31945
31946 2007-11-09  Bruno Haible  <bruno@clisp.org>
31947
31948         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
31949         buffer. Fixes an inefficiency introduced on 2007-11-03.
31950
31951 2007-11-09  Bruno Haible  <bruno@clisp.org>
31952
31953         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
31954         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
31955
31956 2007-11-08  Jim Meyering  <meyering@redhat.com>
31957
31958         Change cache variable name prefix "jm_" to "gl_" everywhere.
31959         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
31960         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
31961         * m4/uptime.m4: s/gl_/jm_/
31962
31963 2007-11-07  Bruno Haible  <bruno@clisp.org>
31964
31965         Update to GNU gettext 0.17.
31966         * m4/intl.m4: Update to GNU gettext 0.17.
31967         * m4/po.m4: Likewise.
31968         * modules/gettext (Files): Remove m4/ulonglong.m4.
31969         (configure.ac): Require gettext infrastructure from version 0.17.
31970
31971 2007-11-06  Bruno Haible  <bruno@clisp.org>
31972
31973         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
31974         symbolic values are not defined in a public header.
31975         * lib/freadable.c (freadable) [QNX]: Likewise.
31976         * lib/freadahead.c (freadahead) [QNX]: Likewise.
31977         * lib/freading.c (freading) [QNX]: Likewise.
31978         * lib/fseterr.c (fseterr) [QNX]: Likewise.
31979         * lib/fwritable.c (fwritable) [QNX]: Likewise.
31980         * lib/fwriting.c (fwriting) [QNX]: Likewise.
31981         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
31982         Reported by Alain Magloire.
31983
31984         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
31985
31986 2007-11-05  Bruno Haible  <bruno@clisp.org>
31987
31988         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
31989         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
31990         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
31991         Reported by Eric Blake.
31992
31993 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31994             Bruno Haible  <bruno@clisp.org>
31995
31996         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
31997         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
31998         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
31999         (malloc): Undefine also before including <stdlib.h>.
32000         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
32001         Needed on OSF/1 4.0.
32002
32003 2007-11-05  Jim Meyering  <meyering@redhat.com>
32004
32005         git-version-gen: sync from coreutils.
32006         * build-aux/git-version-gen: Add comments.
32007         Change the first '-' to '.' in the snapshot version string,
32008         e.g., 6.9-377-08144 -> 6.9.377-08144
32009         Remove first parameter.
32010         Don't declare a version "-dirty" merely because a time
32011         stamp has changed.
32012
32013 2007-11-04  Bruno Haible  <bruno@clisp.org>
32014
32015         * lib/lock.h: Protect all macro definitions containing an 'if'
32016         statement through a "do { ... } while (0)".
32017         * lib/tls.h: Likewise.
32018
32019 2007-11-04  Bruno Haible  <bruno@clisp.org>
32020
32021         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
32022
32023 2007-11-04  Bruno Haible  <bruno@clisp.org>
32024
32025         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
32026         * modules/fprintf-posix (Depends-on): Add nocrash.
32027         * modules/snprintf-posix (Depends-on): Likewise.
32028         * modules/sprintf-posix (Depends-on): Likewise.
32029         * modules/vasnprintf-posix (Depends-on): Likewise.
32030         * modules/vasprintf-posix (Depends-on): Likewise.
32031         * modules/vfprintf-posix (Depends-on): Likewise.
32032         * modules/vsnprintf-posix (Depends-on): Likewise.
32033         * modules/vsprintf-posix (Depends-on): Likewise.
32034         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32035         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32036         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32037         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32038         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32039         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32040         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32041
32042 2007-11-04  Bruno Haible  <bruno@clisp.org>
32043
32044         * modules/nocrash: New file.
32045         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
32046         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
32047
32048 2007-11-04  Bruno Haible  <bruno@clisp.org>
32049
32050         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
32051         precision handling.
32052         * tests/test-vasprintf-posix.c (test_function): Likewise.
32053         * tests/test-snprintf-posix.h (test_function): Likewise.
32054         * tests/test-sprintf-posix.h (test_function): Likewise.
32055
32056         Fix *printf behaviour for large precisions on mingw and BeOS.
32057         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
32058         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
32059         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
32060         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32061         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32062         gl_PRINTF_PRECISION and test its result. Invoke
32063         gl_PREREQ_VASNPRINTF_PRECISION.
32064         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32065         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32066         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32067         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32068         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32069         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32070         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32071         * doc/functions/fprintf.texi: Update.
32072         * doc/functions/printf.texi: Update.
32073         * doc/functions/snprintf.texi: Update.
32074         * doc/functions/sprintf.texi: Update.
32075         * doc/functions/vfprintf.texi: Update.
32076         * doc/functions/vprintf.texi: Update.
32077         * doc/functions/vsnprintf.texi: Update.
32078         * doc/functions/vsprintf.texi: Update.
32079
32080 2007-11-04  Bruno Haible  <bruno@clisp.org>
32081
32082         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
32083
32084 2007-11-04  Bruno Haible  <bruno@clisp.org>
32085
32086         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
32087         Reported by Sylvain Beucler <beuc@gnu.org>.
32088
32089 2007-11-03  Bruno Haible  <bruno@clisp.org>
32090
32091         * tests/test-fprintf-posix2.sh: New file.
32092         * tests/test-fprintf-posix2.c: New file.
32093         * modules/fprintf-posix-tests (Files): Add them.
32094         (TESTS): Add test-fprintf-posix2.sh.
32095         (configure.ac): Check for getrlimit and setrlimit.
32096         (check_PROGRAMS): Add test-fprintf-posix2.
32097
32098         * tests/test-printf-posix2.sh: New file.
32099         * tests/test-printf-posix2.c: New file.
32100         * modules/printf-posix-tests (Files): Add them.
32101         (TESTS): Add test-printf-posix2.sh.
32102         (configure.ac): Check for getrlimit and setrlimit.
32103         (check_PROGRAMS): Add test-printf-posix2.
32104
32105         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
32106         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
32107         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
32108         (decode_double): New function, copied from decode_long_double.
32109         (scale10_round_decimal_decoded): New function, extracted from
32110         scale10_round_decimal_long_double.
32111         (scale10_round_decimal_long_double): Use it.
32112         (scale10_round_decimal_double): New function.
32113         (floorlog10): New function.
32114         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
32115         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
32116         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32117         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32118         gl_PRINTF_ENOMEM and test its result. Invoke
32119         gl_PREREQ_VASNPRINTF_ENOMEM.
32120         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32121         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32122         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32123         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32124         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32125         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32126         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32127         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
32128         * modules/snprintf-posix (Depends-on): Likewise.
32129         * modules/sprintf-posix (Depends-on): Likewise.
32130         * modules/vasnprintf-posix (Depends-on): Likewise.
32131         * modules/vasprintf-posix (Depends-on): Likewise.
32132         * modules/vfprintf-posix (Depends-on): Likewise.
32133         * modules/vsnprintf-posix (Depends-on): Likewise.
32134         * modules/vsprintf-posix (Depends-on): Likewise.
32135         * doc/functions/fprintf.texi: Update.
32136         * doc/functions/printf.texi: Update.
32137         * doc/functions/snprintf.texi: Update.
32138         * doc/functions/sprintf.texi: Update.
32139         * doc/functions/vfprintf.texi: Update.
32140         * doc/functions/vprintf.texi: Update.
32141         * doc/functions/vsnprintf.texi: Update.
32142         * doc/functions/vsprintf.texi: Update.
32143
32144 2007-11-03  Bruno Haible  <bruno@clisp.org>
32145
32146         * modules/frexp-nolibm-tests: New file.
32147
32148         * modules/frexp-nolibm: New file.
32149         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
32150
32151 2007-11-03  Bruno Haible  <bruno@clisp.org>
32152
32153         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
32154         value is C99 compliant.
32155         Needed for OSF/1 5.1.
32156
32157 2007-11-03  Bruno Haible  <bruno@clisp.org>
32158
32159         Fix out-of-memory handling of vasnprintf.
32160         * lib/printf-parse.c: Include <errno.h>.
32161         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
32162         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
32163         is already set.
32164
32165 2007-11-02  Eric Blake  <ebb9@byu.net>
32166
32167         Fix tests on cygwin.
32168         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
32169
32170 2007-11-01  Bruno Haible  <bruno@clisp.org>
32171
32172         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
32173         warning.
32174         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
32175         needed for POSIX compatibility.
32176
32177 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32178
32179         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
32180         for compatibility with GNU.
32181
32182 2007-11-01  Bruno Haible  <bruno@clisp.org>
32183
32184         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
32185         (putenv): Renamed from rpl_putenv. Change argument type from
32186         'const char *' to 'char *'.
32187         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
32188         of defining putenv in config.h, just set REPLACE_PUTENV.
32189         * modules/putenv (Depends-on): Add stdlib.
32190         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32191         (Include): Use <stdlib.h>.
32192         * lib/stdlib.in.h (putenv): New declaration.
32193         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
32194         REPLACE_PUTENV.
32195         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
32196         REPLACE_PUTENV.
32197         Needed for MacOS X 10.5.0.
32198         Reported by Peter O'Gorman <peter@pogma.com>.
32199
32200 2007-11-01  Jim Meyering  <meyering@redhat.com>
32201
32202         Treat an empty date string exactly like "0".
32203         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
32204         if the remaining date string (to be parsed) is empty, use "0".
32205         Reported by Mischa Molhoek and discussed in this thread:
32206         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
32207
32208 2007-10-31  Bruno Haible  <bruno@clisp.org>
32209
32210         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
32211         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
32212         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
32213         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
32214         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
32215         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
32216
32217 2007-10-31  Bruno Haible  <bruno@clisp.org>
32218
32219         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
32220         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
32221         (AC_TYPE_LONG_LONG_INT): Use it.
32222         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
32223         it as well.
32224         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
32225         to m4/longlong.m4.
32226         * modules/stdint (Files): Remove m4/ulonglong.m4.
32227         * modules/strtoull (Files): Use m4/longlong.m4 instead of
32228         m4/ulonglong.m4.
32229         * modules/strtoumax (Files): Likewise.
32230
32231 2007-10-30  Bruno Haible  <bruno@clisp.org>
32232
32233         * modules/xvasprintf-posix: New file.
32234         Suggested by Eric Blake.
32235
32236 2007-10-30  Bruno Haible  <bruno@clisp.org>
32237
32238         * modules/xprintf-posix-tests: New file.
32239         * tests/test-xprintf-posix.sh: New file.
32240         * tests/test-xprintf-posix.c: New file.
32241         * tests/test-xfprintf-posix.c: New file.
32242
32243         * modules/xprintf-posix: New file.
32244
32245 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32246
32247         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
32248         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
32249         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
32250
32251 2007-10-29  Bruno Haible  <bruno@clisp.org>
32252
32253         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
32254         contain the special marker '_cv_'.
32255         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
32256         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
32257         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
32258         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
32259         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
32260         Reported by Ralf Wildenhues.
32261
32262 2007-10-29  Bruno Haible  <bruno@clisp.org>
32263
32264         * gnulib-tool (func_import): When --lgpl is not specified, set
32265         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
32266         GPLv3.
32267         Reported by Simon Josefsson.
32268
32269 2007-10-28  Bruno Haible  <bruno@clisp.org>
32270
32271         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
32272         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
32273         HAVE_DECL_ISFINITE.
32274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
32275         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
32276         HAVE_DECL_ISFINITE.
32277
32278 2007-10-28  Bruno Haible  <bruno@clisp.org>
32279
32280         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
32281         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
32282
32283 2007-10-28  Bruno Haible  <bruno@clisp.org>
32284
32285         Fix link errors with Sun C 5.0 on Solaris 10.
32286         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
32287         function is declared but not present in the compiler's libm.
32288         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
32289         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
32290         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
32291         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
32292         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
32293         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
32294         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
32295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
32296         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
32297         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
32298         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
32299         HAVE_DECL_FLOORL.
32300
32301 2007-10-28  Bruno Haible  <bruno@clisp.org>
32302
32303         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
32304         gl_FUNC_FLOORL. Cache the result.
32305         (gl_FUNC_FLOORL): Use it.
32306         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
32307         gl_FUNC_CEILL. Cache the result.
32308         (gl_FUNC_CEILL): Use it.
32309
32310         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
32311         gl_FUNC_FLOOR. Cache the result.
32312         (gl_FUNC_FLOOR): Use it.
32313         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
32314         gl_FUNC_CEIL. Cache the result.
32315         (gl_FUNC_CEIL): Use it.
32316
32317         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
32318         gl_FUNC_FLOORF. Cache the result.
32319         (gl_FUNC_FLOORF): Use it.
32320         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
32321         gl_FUNC_CEILF. Cache the result.
32322         (gl_FUNC_CEILF): Use it.
32323
32324 2007-10-28  Bruno Haible  <bruno@clisp.org>
32325
32326         * gnulib-tool: Allow specifying the LGPL version number through
32327         --lgpl=2 or --lgpl=3.
32328         (func_usage): Document --lgpl with argument.
32329         Handle --lgpl=... arguments.
32330         (func_import): Recognize also gl_LGPL calls with an argument. When
32331         --lgpl=2 is used and the module's license is just LGPL, report an
32332         error. Set sed_transform_lib_file according to the lgpl variable. In
32333         the generated files, use --lgpl or gl_LGPL invocations with argument,
32334         if necessary.
32335         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
32336         an LGPv2+ license.
32337         * doc/gnulib-tool.texi (Modified imports): Update explanation of
32338         gl_LGPL macro.
32339
32340 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32341             Bruno Haible  <bruno@clisp.org>
32342
32343         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
32344         (u16_uctomb_aux): Likewise.
32345         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
32346         !HAVE_INLINE.
32347         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
32348
32349 2007-10-28  Bruno Haible  <bruno@clisp.org>
32350
32351         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
32352         Invoke AM_GETTEXT_OPTION if it exists.
32353         * modules/vasprintf: Likewise.
32354         * modules/verror: Likewise.
32355         * modules/xprintf: Likewise.
32356         * modules/xvasprintf: Likewise.
32357
32358 2007-10-27  Ben Pfaff  <blp@gnu.org>
32359
32360         * lib/math.in.h: Define isfinite macro and prototypes for
32361         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
32362         implementations.
32363         * m4/math_h.m4: New substitutions for isfinite module.
32364         * lib/isfinite.c: New file.
32365         * m4/isfinite.m4: New file.
32366         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
32367         * modules/isfinite: New file.
32368         * modules/isfinite-tests: New file.
32369         * tests/tests-isfinite.c: New file.
32370         * doc/functions/isfinite.texi: Mention isfinite module.
32371         * MODULES.html.sh: Mention new module.
32372
32373 2007-10-27  Ben Pfaff  <blp@gnu.org>
32374
32375         Ralf Wildenhues reported that Tru64 4.0D declares the round
32376         functions but does not have definitions.
32377         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
32378         cannot be found in any library, set the output variable to
32379         "missing" instead of "".
32380         * m4/round.m4: Also use our substitute if we cannot find round in
32381         any library, even if it is declared.
32382         * m4/roundf.m4: Likewise for roundf.
32383         * m4/roundl.m4: Likewise for roundl.
32384         * lib/math.in.h: Undefine roundf, round, roundl before defining
32385         their replacements, to allow for hypothetical systems where these
32386         may be defined as macros but not available in libraries.
32387
32388 2007-10-27  Bruno Haible  <bruno@clisp.org>
32389
32390         * doc/gnulib.texi: Invoke @firstparagraphindent.
32391         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
32392         changes in gnulib.
32393         (Source changes): New section.
32394
32395 2007-10-26  Bruno Haible  <bruno@clisp.org>
32396
32397         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
32398         borrowed from autoconf.
32399
32400 2007-10-26  Bruno Haible  <bruno@clisp.org>
32401
32402         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
32403         strerror returned the empty string. Needed on HP-UX 11.00.
32404
32405 2007-10-24  Micah Cowan  <micah@cowan.name>
32406
32407         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
32408         * build-aux/bootstrap: Remove support for now-unnecessary option,
32409         --cvs-user, and envvars CVS_USER, CVS_RSH.
32410
32411 2007-10-24  Jim Meyering  <meyering@redhat.com>
32412
32413         Avoid diagnostics from sha1sum when there is no cached checksum.
32414         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
32415         if the po.s1 file hasn't been created yet.
32416
32417         * build-aux/bootstrap: Sync from coreutils:
32418         2007-10-24  Jim Meyering  <meyering@redhat.com>
32419         Get gnulib from the git repository, not from an obsolete cvs one.
32420         * build-aux/bootstrap: Suggestion from Micah Cowan.
32421         2007-10-04  Jim Meyering  <jim@meyering.net>
32422         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
32423         (update_po_files): Work also when there are no .po files in po/.
32424
32425 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32426
32427         * README: Append ".git" to git and cg examples.
32428         Problem reported by Benoit Sigoure.
32429
32430 2007-10-23  Micah Cowan  <micah@cowan.name>
32431
32432         * users.txt: Add wget.
32433
32434 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32435
32436         Fix linking of some unistdio tests on FreeBSD.
32437         * modules/unistdio/u16-vsnprintf-tests
32438         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
32439         * modules/unistdio/u16-vsprintf-tests
32440         (test_u16_vsnprintf1_LDADD): Likewise.
32441         * modules/unistdio/u32-vsnprintf-tests
32442         (test_u32_vsnprintf1_LDADD): Likewise.
32443         * modules/unistdio/u32-vsprintf-tests
32444         (test_u32_vsprintf1_LDADD): Likewise.
32445         * modules/unistdio/u8-vsnprintf-tests
32446         (test_u8_vsnprintf1_LDADD): Likewise.
32447         * modules/unistdio/u8-vsprintf-tests
32448         (test_u8_vsprintf1_LDADD): Likewise.
32449         * modules/unistdio/ulc-vsnprintf-tests
32450         (test_ulc_vsnprintf1_LDADD): Likewise.
32451         * modules/unistdio/ulc-vsprintf-tests
32452         (test_ulc_vsprintf1_LDADD): Likewise.
32453
32454         Fix linking of some uniconv tests on FreeBSD.
32455         * modules/uniconv/u16-conv-from-enc-tests
32456         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
32457         * modules/uniconv/u16-conv-to-enc-tests
32458         (test_u16_conv_to_enc_LDADD): Likewise.
32459         * modules/uniconv/u16-strconv-from-enc-tests
32460         (test_u16_strconv_from_enc_LDADD): Likewise.
32461         * modules/uniconv/u16-strconv-to-enc-tests
32462         (test_u16_strconv_to_enc_LDADD): Likewise.
32463         * modules/uniconv/u32-conv-from-enc-tests
32464         (test_u32_conv_from_enc_LDADD): Likewise.
32465         * modules/uniconv/u32-conv-to-enc-tests
32466         (test_u32_conv_to_enc_LDADD): Likewise.
32467         * modules/uniconv/u32-strconv-from-enc-tests
32468         (test_u32_strconv_from_enc_LDADD): Likewise.
32469         * modules/uniconv/u32-strconv-to-enc-tests
32470         (test_u32_strconv_to_enc_LDADD): Likewise.
32471         * modules/uniconv/u8-conv-from-enc-tests
32472         (test_u8_conv_from_enc_LDADD): Likewise.
32473         * modules/uniconv/u8-conv-to-enc-tests
32474         (test_u8_conv_to_enc_LDADD): Likewise.
32475         * modules/uniconv/u8-strconv-from-enc-tests
32476         (test_u8_strconv_from_enc_LDADD): Likewise.
32477         * modules/uniconv/u8-strconv-to-enc-tests
32478         (test_u8_strconv_to_enc_LDADD): Likewise.
32479
32480 2007-10-22  Bruno Haible  <bruno@clisp.org>
32481
32482         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
32483         size.
32484
32485 2007-10-22  Eric Blake  <ebb9@byu.net>
32486
32487         Tweak x*printf documentation.
32488         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
32489         variable name and comments.
32490         Suggested by Bruno Haible.
32491
32492 2007-10-22  Bruno Haible  <bruno@clisp.org>
32493
32494         * lib/acl.c (copy_acl): Fix file name in comment.
32495
32496 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
32497
32498         Fix Tru64 problem with stdbool.h.
32499         * lib/stdbool.in.h (false, true):
32500         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
32501         Don't declare as an enum in this situation; it runs afoul of Tru64.
32502         Problem reported by Steven M. Schweda in
32503         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
32504
32505 2007-10-22  Eric Blake  <ebb9@byu.net>
32506
32507         Also wrap vf?printf.
32508         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
32509         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
32510         (xvprintf, xvfprintf): New functions.
32511
32512 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32513
32514         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
32515         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
32516
32517         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
32518         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
32519
32520 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
32521
32522         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
32523         by Bruno Haible.
32524
32525 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32526
32527         * lib/getloadavg.c
32528         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
32529         Undef `sys' after including sys/table.h, for Tru64 4.0D.
32530
32531         * tests/test-i-ring.c: Work for C89.
32532
32533 2007-10-22  Bruno Haible  <bruno@clisp.org>
32534
32535         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
32536         -1u, in preprocessor expression, so that we don't test for the bug
32537         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
32538         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
32539
32540 2007-10-22  Eric Blake  <ebb9@byu.net>
32541
32542         * tests/test-yesno.sh: Silence stderr during test.
32543
32544 2007-10-22  Simon Josefsson  <simon@josefsson.org>
32545
32546         * modules/crypto/gc-camellia: New file.
32547
32548         * m4/gc-camellia.m4: New file.
32549
32550         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
32551
32552         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
32553
32554 2007-10-22  Simon Josefsson  <simon@josefsson.org>
32555
32556         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
32557         --help to stdout.  Reported by sms@antinode.org (Steven
32558         M. Schweda).
32559
32560 2007-10-22  Simon Josefsson  <simon@josefsson.org>
32561
32562         * users.txt: Fix link to libksba.
32563
32564 2007-10-21  Ben Pfaff  <blp@gnu.org>
32565
32566         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
32567         round.c roundf implementation that depends on floorf and ceilf to
32568         be tested unconditionally.
32569
32570 2007-10-21  Ben Pfaff  <blp@gnu.org>
32571
32572         * m4/check-libm-func.m4: Removed.
32573         * m4/check-math-lib.m4: New file.
32574         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
32575         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
32576         definition and lack of AC_LIBOBJ([roundf]).
32577         * m4/roundl.m4: Ditto, and similarly for roundl.
32578         * modules/round: Reference new m4 file.
32579         * modules/roundf: Ditto.
32580         * modules/roundl: Ditto.
32581         * tests/test-round2.c (main): Use ROUND instead of round.
32582         Bug report from Bruno Haible.
32583
32584 2007-10-21  Bruno Haible  <bruno@clisp.org>
32585
32586         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
32587         context.
32588
32589 2007-10-21  Bruno Haible  <bruno@clisp.org>
32590
32591         * tests/test-wcwidth.c (main): Allow negative result for some control
32592         characters.
32593
32594         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
32595         Needed on OSF/1 5.1.
32596
32597 2007-10-21  Bruno Haible  <bruno@clisp.org>
32598
32599         * tests/test-floorf1.c: Include isnanf.h.
32600         (main): Use isnanf() instead of isnan().
32601         * tests/test-ceilf1.c: Include isnanf.h.
32602         (main): Use isnanf() instead of isnan().
32603         * tests/test-truncf1.c: Include isnanf.h.
32604         (main): Use isnanf() instead of isnan().
32605         * tests/test-roundf1.c: Include isnanf.h.
32606         (main): Use isnanf() instead of isnan().
32607
32608 2007-10-21  Eric Blake  <ebb9@byu.net>
32609
32610         * users.txt: Update URL for m4.
32611
32612 2007-10-21  Bruno Haible  <bruno@clisp.org>
32613
32614         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
32615
32616 2007-10-21  Bruno Haible  <bruno@clisp.org>
32617
32618         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
32619         Git's management files if the CVS files are not present.
32620
32621 2007-10-20  Bruno Haible  <bruno@clisp.org>
32622
32623         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
32624         gcc-3.4.x.
32625
32626 2007-10-20  Ben Pfaff  <blp@gnu.org>
32627
32628         * lib/math.in.h: Declare round, roundf, roundl if we are providing
32629         implementations.
32630         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
32631         * lib/round.c: New file.
32632         * lib/roundf.c: New file.
32633         * lib/roundl.c: New file.
32634         * m4/round.m4: New file.
32635         * m4/roundf.m4: New file.
32636         * m4/roundl.m4: New file.
32637         * m4/check-libm-func-m4: New file.
32638         * modules/math: Replace round, roundf, roundl related @VARS@ in
32639         math.in.h.
32640         * modules/round: New file.
32641         * modules/round-tests: New file.
32642         * modules/roundf: New file.
32643         * modules/roundf-tests: New file.
32644         * modules/roundl: New file.
32645         * modules/roundl-tests: New file.
32646         * tests/test-round1.c: New file.
32647         * tests/test-round2.c: New file.
32648         * tests/test-roundf1.c: New file.
32649         * tests/test-roundf2.c: New file.
32650         * tests/test-roundl.c: New file.
32651         * doc/functions/round.texi: Mention round module.
32652         * doc/functions/roundf.texi: Mention roundf module.
32653         * doc/functions/roundl.texi: Mention roundl module.
32654         * MODULES.html.sh: Mention new modules.
32655         Thanks to Bruno Haible for suggestions.
32656
32657 2007-10-20  Jim Meyering  <meyering@redhat.com>
32658
32659         * lib/xprintf.c: Include <config.h> unconditionally.
32660
32661         Change xprintf's license to GPL.
32662         * modules/xprintf (License): s/LGPL/GPL/, since this module
32663         depends on modules (exit and exitfail) which are GPL.
32664         Suggestion from Bruno Haible.
32665
32666         xprintf fixes.
32667         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
32668         Use a clearer diagnostic.
32669         Patch from Bruno Haible.
32670
32671 2007-10-20  Bruno Haible  <bruno@clisp.org>
32672
32673         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
32674         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
32675         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32676
32677 2007-10-20  Bruno Haible  <bruno@clisp.org>
32678
32679         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
32680         precision in the comparison result > x - 1 or similar.
32681         * tests/test-ceilf2.c (correct_result_p): Likewise.
32682         * tests/test-truncf2.c (correct_result_p): Likewise.
32683         * tests/test-trunc2.c (correct_result_p): Likewise.
32684         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32685
32686 2007-10-20  Bruno Haible  <bruno@clisp.org>
32687
32688         * modules/ceil: New file.
32689         * m4/ceil.m4: New file.
32690         * doc/functions/ceil.texi: Mention the 'ceil' module.
32691
32692 2007-10-20  Bruno Haible  <bruno@clisp.org>
32693
32694         * modules/floor: New file.
32695         * m4/floor.m4: New file.
32696         * doc/functions/floor.texi: Mention the 'floor' module.
32697
32698 2007-10-20  Bruno Haible  <bruno@clisp.org>
32699
32700         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
32701         of %a.
32702         * modules/floorf-tests (Depends-on): Likewise.
32703         * modules/truncf-tests (Depends-on): Likewise.
32704         * modules/trunc-tests (Depends-on): Likewise.
32705         Reported by Ben Pfaff.
32706
32707 2007-10-19  Jim Meyering  <meyering@redhat.com>
32708
32709         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
32710         Don't bother testing specific errno values.  Just test ferror.
32711
32712         New module: xprintf
32713         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
32714
32715 2007-10-19  Bruno Haible  <bruno@clisp.org>
32716
32717         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
32718         syntax.
32719         * modules/javaexec (Makefile.am): Likewise.
32720         * modules/relocatable-prog (Makefile.am): Likewise.
32721         Suggested by Jim Meyering.
32722
32723 2007-10-18  Bruno Haible  <bruno@clisp.org>
32724
32725         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
32726         Reported by Jim Meyering.
32727
32728 2007-10-18  Eric Blake  <ebb9@byu.net>
32729
32730         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
32731
32732 2007-10-18  Bruno Haible  <bruno@clisp.org>
32733
32734         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
32735         the format string into writable memory. Needed in Fortify conditions.
32736
32737 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
32738             Bruno Haible  <bruno@clisp.org>
32739
32740         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
32741         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
32742         * modules/trim (Depends-on): Add mbchar.
32743         (configure.ac): Add gl_FUNC_MBRTOWC.
32744         (Makefile.am): Augment lib_SOURCES.
32745
32746 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
32747
32748         Modify glob.c to use fstatat and dirfd, to simplify it.
32749         Suggested by Eric Blake.
32750         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
32751         Don't include <stdbool.h>; not used.
32752         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
32753         (link_exists_p): Simplify implementation, since we can now assume
32754         dirfd and fstatat.
32755         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
32756
32757 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32758
32759         * gnulib-tool (func_get_dependencies): Fix sed script to
32760         match only tests.
32761
32762 2007-10-17  Bruno Haible  <bruno@clisp.org>
32763
32764         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
32765         allow locale names without encoding suffix.
32766         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
32767         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
32768
32769 2007-10-16  Bruno Haible  <bruno@clisp.org>
32770
32771         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
32772         * lib/getgroups.c (getgroups): Likewise.
32773         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
32774
32775 2007-10-16  Bruno Haible  <bruno@clisp.org>
32776
32777         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
32778         * modules/malloc-posix (License): Likewise.
32779         * modules/realloc-posix (License): Likewise.
32780         * modules/calloc-posix (License): Likewise.
32781         * modules/intprops (License): Change from GPL to LGPL, with
32782         Paul Eggert's approval.
32783
32784 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
32785
32786         Merge glibc changes into lib/glob.c.
32787
32788         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
32789         2007-10-15 04:59:03 UTC.  Here are the changes:
32790
32791         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
32792
32793         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
32794
32795         * lib/glob.c: Add some branch prediction throughout.
32796
32797         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
32798
32799         [BZ #5103]
32800         * lib/glob.c (glob): Recognize patterns starting \/.
32801
32802         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
32803
32804         [BZ #3996]
32805         * lib/glob.c (attribute_hidden): Define if not defined.
32806         (glob): Unescape dirname, filename or username when needed and not
32807         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
32808         is NULL.  Handle unescaped [ in pattern without closing ].
32809         Don't pass GLOB_CHECK down to recursive glob for directories.
32810         (__glob_pattern_type): New function.
32811         (__glob_pattern_p): Implement using __glob_pattern_type.
32812         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
32813         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
32814         Remove unreachable code.
32815
32816         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
32817
32818         * lib/glob.c (glob_in_dir): Add some comments and asserts to
32819         explain why there are no leaks.
32820
32821         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
32822
32823         [BZ #3253]
32824         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
32825         time, rather allocate increasingly bigger arrays of pointers, if
32826         possible with alloca, if too large with malloc.
32827
32828 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
32829
32830         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
32831         Problem reported by H.Merijn Brand in
32832         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
32833         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
32834         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
32835
32836 2007-10-15  Bruno Haible  <bruno@clisp.org>
32837
32838         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
32839         with explicit rpl_ prefix.
32840         * lib/fopen.c (fopen): Likewise.
32841         * lib/freopen.c (freopen): Likewise.
32842         * lib/iconv.c (iconv): Likewise.
32843         * lib/iconv_close.c (iconv_close): Likewise.
32844
32845 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32846
32847         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
32848
32849 2007-10-15  Bruno Haible  <bruno@clisp.org>
32850
32851         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
32852         <stddef.h> instead of <stdlib.h> since we only need NULL.
32853         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32854
32855 2007-10-15  Bruno Haible  <bruno@clisp.org>
32856
32857         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
32858         Replace paragraph talking about LIBOBJS.
32859         Reported by Colin Watson <cjwatson@debian.org>.
32860
32861 2007-10-15  Bruno Haible  <bruno@clisp.org>
32862
32863         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
32864         <stdlib.h> before using NULL.
32865
32866 2007-10-15  Simon Josefsson  <simon@josefsson.org>
32867
32868         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
32869         Reported by Albert Chin <china@thewrittenword.com>.
32870
32871 2007-10-14  Bruno Haible  <bruno@clisp.org>
32872
32873         * modules/iconv_open-utf-tests: New file.
32874         * tests/test-iconv-utf.c: New file.
32875
32876         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
32877         * modules/iconv_open-utf: New file.
32878         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
32879         (iconv, iconv_close): New declarations.
32880         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
32881         be defined.
32882         (iconv_open): Add special handling of conversion between UTF-8 and
32883         UTF-{16,32}{BE,LE}.
32884         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
32885         * lib/iconv_close.c: New file.
32886         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
32887         gl_FUNC_ICONV_OPEN.
32888         (gl_FUNC_ICONV_OPEN): Use it.
32889         (gl_FUNC_ICONV_OPEN_UTF): New macro.
32890         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
32891         and REPLACE_ICONV_UTF.
32892         * modules/iconv_open (Depends-on): Add c-strcase.
32893         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
32894         ICONV_CONST.
32895         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
32896
32897 2007-10-13  Albert Chin  <china@thewrittenword.com>
32898             Bruno Haible  <bruno@clisp.org>
32899
32900         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
32901         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
32902
32903 2007-10-13  Bruno Haible  <bruno@clisp.org>
32904
32905         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
32906         defined, use the ISO C99 inline semantics.
32907         * lib/argp.h (ARGP_EI): Likewise.
32908
32909 2007-10-13  Bruno Haible  <bruno@clisp.org>
32910
32911         Handle 'inline' change in gcc 4.3.0.
32912         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
32913         argp_fmtstream_write, argp_fmtstream_set_lmargin,
32914         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
32915         argp_fmtstream_point): Disable 'extern' declaration if the function
32916         definition is going to be provided inline.
32917         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
32918         semantics, not the ISO C99 inline semantics.
32919         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
32920         'extern' declaration if the function definition is going to be provided
32921         inline.
32922         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
32923         the GNU C inline semantics, not the ISO C99 inline semantics. With
32924         GCC 4.2, avoid a warning.
32925
32926 2007-10-13  Bruno Haible  <bruno@clisp.org>
32927
32928         * lib/freading.h (freading): Enable the use of __freading for
32929         glibc >= 2.7.
32930         * lib/freading.c (freading): Likewise.
32931
32932 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
32933
32934         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
32935         "warning: C99 inline functions are not supported; using GNU89".
32936
32937 2007-10-12  Bruno Haible  <bruno@clisp.org>
32938
32939         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
32940         of 2.
32941         * tests/test-ceilf2.c: New file.
32942         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
32943
32944         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
32945         * modules/ceilf-tests: Update.
32946
32947 2007-10-12  Bruno Haible  <bruno@clisp.org>
32948
32949         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
32950         of 2.
32951         * tests/test-floorf2.c: New file.
32952         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
32953
32954         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
32955         * modules/floorf-tests: Update.
32956
32957 2007-10-12  Bruno Haible  <bruno@clisp.org>
32958
32959         * tests/test-trunc2.c: New file.
32960         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
32961
32962         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
32963         * modules/trunc-tests: Update.
32964
32965 2007-10-12  Bruno Haible  <bruno@clisp.org>
32966
32967         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
32968         of 2.
32969         * tests/test-truncf2.c: New file.
32970         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
32971
32972         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
32973         * modules/truncf-tests: Update.
32974
32975 2007-10-11  Eric Blake  <ebb9@byu.net>
32976
32977         Don't claim strerror is broken on Interix.
32978         * doc/functions/strerror.texi (strerror): Known broken systems are
32979         now Solaris 8, and not Interix.
32980         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
32981         Interix on cross-compile.
32982         Reported by Martin Koeppe in
32983         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
32984
32985 2007-10-11  Bruno Haible  <bruno@clisp.org>
32986
32987         * modules/i-ring-tests: New file.
32988         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
32989         instead of assert.
32990
32991 2007-10-11  Bruno Haible  <bruno@clisp.org>
32992
32993         * modules/filenamecat-tests: New file.
32994         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
32995         * lib/filenamecat.c: Remove test code.
32996
32997 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
32998
32999         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
33000
33001         * lib/strerror.c: Include <string.h> always, to test interface,
33002         and to remove the need for the dummy.
33003         Include intprops.h to compute width instead of doing it ourselves
33004         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
33005         (strerror): Define it to return NULL if there's no system strerror.
33006         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
33007         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
33008         ancient pre-strerror Unix systems well any more.  Saying "unknown
33009         system error" is enough.
33010         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
33011         simpler strerror.c implementation.
33012         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
33013         Simplify the tests to reflect the simpler strerror implementation.
33014         * modules/strerror (Depends-on): Add intprops.
33015
33016 2007-10-09  Eric Blake  <ebb9@byu.net>
33017
33018         Silence test-fpending.
33019         * modules/fpending-tests (Files): Add wrapper script.
33020         * tests/test-fpending.sh: New file.
33021
33022 2007-10-09  Bruno Haible  <bruno@clisp.org>
33023
33024         * MODULES.html.sh (func_module): Don't create a hyperlink for
33025         function names like 'printf_frexp'.
33026         (Misc): Add crc, memxor.
33027         (Characteristics of floating types): New section.
33028         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
33029         isnanf-nolibm, signbit, trunc, truncf, truncl.
33030         (Enhancements for ISO C 99 functions): New subsection Input/output.
33031         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
33032         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
33033         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
33034         (Compatibility checks for POSIX:2001 functions): Add clock-time.
33035         (Enhancements for POSIX:2001 functions): Add chdir-long.
33036         (File system functions): Add areadlink, chdir-safer, read-file.
33037         Remove cycle-check.
33038         (File system as inode set): New section.
33039         (Date and time): Add gethrxtime.
33040         (Multithreading): Add openmp.
33041         (Internationalization functions): Add localename.
33042         (Unicode string functions): Add unistr/u*-mbsnlen.
33043         (Support for maintaining and releasing projects): Add git-version-gen.
33044         (Lone files): Remove directories.
33045
33046 2007-10-08  Ben Pfaff  <blp@gnu.org>
33047
33048         * lib/xmalloca.h: Fix typo in comment.
33049
33050 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
33051
33052         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
33053         when avoiding problems with integer overflow.  Use a portable test
33054         instead.
33055
33056 2007-10-08  Simon Josefsson  <simon@josefsson.org>
33057
33058         * modules/dummy (License): Change to LGPLv2+.
33059         * modules/float (License): Likewise
33060         * modules/realloc (License): Likewise
33061         * modules/stdlib (License): Likewise
33062
33063 2007-10-07  Bruno Haible  <bruno@clisp.org>
33064
33065         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
33066         * floor.c (TWO_MANT_DIG): Likewise.
33067         * ceil.c (TWO_MANT_DIG): Likewise.
33068         Reported by Ben Pfaff.
33069
33070 2007-10-07  Bruno Haible  <bruno@clisp.org>
33071
33072         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
33073         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
33074         * lib/frexp.c (FUNC): Likewise.
33075         * lib/printf-frexp.h (printf_frexp): Likewise.
33076         * lib/printf-frexpl.h (printf_frexpl): Likewise.
33077         * lib/printf-frexp.c (FUNC): Likewise.
33078         Suggested by Jim Meyering.
33079
33080 2007-10-07  Jim Meyering  <meyering@redhat.com>
33081
33082         Make xnanosleep's integer overflow test more robust.
33083         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
33084         so that gcc-4.3.0 doesn't optimize away this test for overflow.
33085
33086 2007-10-07  Bruno Haible  <bruno@clisp.org>
33087
33088         * NEWS: Mention the license change.
33089
33090         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
33091         abbreviations in the modules files.
33092
33093         Change copyright notice from GPLv2+ to GPLv3+.
33094         * README: Change copyright notice.
33095         * MODULES.html.sh: Likewise.
33096         * build-aux/bootstrap.conf: Likewise.
33097         * build-aux/config.libpath: Likewise.
33098         * build-aux/csharpcomp.sh.in: Likewise.
33099         * build-aux/csharpexec.sh.in: Likewise.
33100         * build-aux/install-reloc: Likewise.
33101         * build-aux/javacomp.sh.in: Likewise.
33102         * build-aux/javaexec.sh.in: Likewise.
33103         * build-aux/ldd.sh.in: Likewise.
33104         * build-aux/reloc-ldflags: Likewise.
33105         * build-aux/relocatable.sh.in: Likewise.
33106         * build-aux/x-to-1.in: Likewise.
33107         * check-module: Likewise.
33108         * config/srclistvars.sh: Likewise.
33109         * gnulib-tool: Likewise.
33110         * lib/acl-internal.h: Likewise.
33111         * lib/acl.c: Likewise.
33112         * lib/acl.h: Likewise.
33113         * lib/acl_entries.c: Likewise.
33114         * lib/areadlink-with-size.c: Likewise.
33115         * lib/areadlink.c: Likewise.
33116         * lib/areadlink.h: Likewise.
33117         * lib/argmatch.c: Likewise.
33118         * lib/argmatch.h: Likewise.
33119         * lib/argp-ba.c: Likewise.
33120         * lib/argp-eexst.c: Likewise.
33121         * lib/argp-fmtstream.c: Likewise.
33122         * lib/argp-fmtstream.h: Likewise.
33123         * lib/argp-fs-xinl.c: Likewise.
33124         * lib/argp-help.c: Likewise.
33125         * lib/argp-namefrob.h: Likewise.
33126         * lib/argp-parse.c: Likewise.
33127         * lib/argp-pin.c: Likewise.
33128         * lib/argp-pv.c: Likewise.
33129         * lib/argp-pvh.c: Likewise.
33130         * lib/argp-xinl.c: Likewise.
33131         * lib/argp.h: Likewise.
33132         * lib/at-func.c: Likewise.
33133         * lib/atanl.c: Likewise.
33134         * lib/backupfile.c: Likewise.
33135         * lib/backupfile.h: Likewise.
33136         * lib/basename.c: Likewise.
33137         * lib/binary-io.h: Likewise.
33138         * lib/byteswap.in.h: Likewise.
33139         * lib/c-stack.c: Likewise.
33140         * lib/c-stack.h: Likewise.
33141         * lib/c-strcasestr.c: Likewise.
33142         * lib/c-strcasestr.h: Likewise.
33143         * lib/c-strstr.c: Likewise.
33144         * lib/c-strstr.h: Likewise.
33145         * lib/c-strtod.c: Likewise.
33146         * lib/calloc.c: Likewise.
33147         * lib/canon-host.c: Likewise.
33148         * lib/canon-host.h: Likewise.
33149         * lib/canonicalize-lgpl.c: Likewise.
33150         * lib/canonicalize.c: Likewise.
33151         * lib/canonicalize.h: Likewise.
33152         * lib/ceil.c: Likewise.
33153         * lib/ceilf.c: Likewise.
33154         * lib/ceill.c: Likewise.
33155         * lib/chdir-long.c: Likewise.
33156         * lib/chdir-long.h: Likewise.
33157         * lib/chdir-safer.c: Likewise.
33158         * lib/chdir-safer.h: Likewise.
33159         * lib/chown.c: Likewise.
33160         * lib/classpath.c: Likewise.
33161         * lib/classpath.h: Likewise.
33162         * lib/clean-temp.c: Likewise.
33163         * lib/clean-temp.h: Likewise.
33164         * lib/cloexec.c: Likewise.
33165         * lib/close-stream.c: Likewise.
33166         * lib/closein.c: Likewise.
33167         * lib/closein.h: Likewise.
33168         * lib/closeout.c: Likewise.
33169         * lib/closeout.h: Likewise.
33170         * lib/concat-filename.c: Likewise.
33171         * lib/copy-file.c: Likewise.
33172         * lib/copy-file.h: Likewise.
33173         * lib/count-one-bits.h: Likewise.
33174         * lib/crc.c: Likewise.
33175         * lib/crc.h: Likewise.
33176         * lib/creat-safer.c: Likewise.
33177         * lib/csharpcomp.c: Likewise.
33178         * lib/csharpcomp.h: Likewise.
33179         * lib/csharpexec.c: Likewise.
33180         * lib/csharpexec.h: Likewise.
33181         * lib/cycle-check.c: Likewise.
33182         * lib/cycle-check.h: Likewise.
33183         * lib/diacrit.c: Likewise.
33184         * lib/diacrit.h: Likewise.
33185         * lib/diffseq.h: Likewise.
33186         * lib/dirchownmod.c: Likewise.
33187         * lib/dirent.in.h: Likewise.
33188         * lib/dirfd.c: Likewise.
33189         * lib/dirfd.h: Likewise.
33190         * lib/dirname.c: Likewise.
33191         * lib/dirname.h: Likewise.
33192         * lib/dummy.c: Likewise.
33193         * lib/dup-safer.c: Likewise.
33194         * lib/dup2.c: Likewise.
33195         * lib/eealloc.h: Likewise.
33196         * lib/error.c: Likewise.
33197         * lib/error.h: Likewise.
33198         * lib/euidaccess.c: Likewise.
33199         * lib/exclude.c: Likewise.
33200         * lib/exclude.h: Likewise.
33201         * lib/execute.c: Likewise.
33202         * lib/execute.h: Likewise.
33203         * lib/exitfail.c: Likewise.
33204         * lib/exitfail.h: Likewise.
33205         * lib/expl.c: Likewise.
33206         * lib/fatal-signal.c: Likewise.
33207         * lib/fatal-signal.h: Likewise.
33208         * lib/fbufmode.c: Likewise.
33209         * lib/fbufmode.h: Likewise.
33210         * lib/fchdir.c: Likewise.
33211         * lib/fchmodat.c: Likewise.
33212         * lib/fchownat.c: Likewise.
33213         * lib/fcntl--.h: Likewise.
33214         * lib/fcntl-safer.h: Likewise.
33215         * lib/fcntl.in.h: Likewise.
33216         * lib/fd-safer.c: Likewise.
33217         * lib/fflush.c: Likewise.
33218         * lib/file-has-acl.c: Likewise.
33219         * lib/file-set.c: Likewise.
33220         * lib/file-type.c: Likewise.
33221         * lib/file-type.h: Likewise.
33222         * lib/fileblocks.c: Likewise.
33223         * lib/filemode.c: Likewise.
33224         * lib/filemode.h: Likewise.
33225         * lib/filename.h: Likewise.
33226         * lib/filenamecat.c: Likewise.
33227         * lib/filenamecat.h: Likewise.
33228         * lib/findprog.c: Likewise.
33229         * lib/findprog.h: Likewise.
33230         * lib/float.in.h: Likewise.
33231         * lib/floor.c: Likewise.
33232         * lib/floorf.c: Likewise.
33233         * lib/floorl.c: Likewise.
33234         * lib/fopen-safer.c: Likewise.
33235         * lib/fopen.c: Likewise.
33236         * lib/fpending.c: Likewise.
33237         * lib/fpending.h: Likewise.
33238         * lib/fprintf.c: Likewise.
33239         * lib/fprintftime.h: Likewise.
33240         * lib/fpucw.h: Likewise.
33241         * lib/fpurge.c: Likewise.
33242         * lib/fpurge.h: Likewise.
33243         * lib/freadable.c: Likewise.
33244         * lib/freadable.h: Likewise.
33245         * lib/freadahead.c: Likewise.
33246         * lib/freadahead.h: Likewise.
33247         * lib/freading.c: Likewise.
33248         * lib/freading.h: Likewise.
33249         * lib/free.c: Likewise.
33250         * lib/freopen.c: Likewise.
33251         * lib/frexp.c: Likewise.
33252         * lib/frexpl.c: Likewise.
33253         * lib/fseek.c: Likewise.
33254         * lib/fseterr.c: Likewise.
33255         * lib/fseterr.h: Likewise.
33256         * lib/fstatat.c: Likewise.
33257         * lib/fstrcmp.c: Likewise.
33258         * lib/fstrcmp.h: Likewise.
33259         * lib/fsusage.c: Likewise.
33260         * lib/fsusage.h: Likewise.
33261         * lib/ftell.c: Likewise.
33262         * lib/ftello.c: Likewise.
33263         * lib/fts-cycle.c: Likewise.
33264         * lib/fts.c: Likewise.
33265         * lib/fts_.h: Likewise.
33266         * lib/full-read.c: Likewise.
33267         * lib/full-read.h: Likewise.
33268         * lib/full-write.c: Likewise.
33269         * lib/full-write.h: Likewise.
33270         * lib/fwritable.c: Likewise.
33271         * lib/fwritable.h: Likewise.
33272         * lib/fwriteerror.c: Likewise.
33273         * lib/fwriteerror.h: Likewise.
33274         * lib/fwriting.c: Likewise.
33275         * lib/fwriting.h: Likewise.
33276         * lib/gcd.c: Likewise.
33277         * lib/gcd.h: Likewise.
33278         * lib/getcwd.c: Likewise.
33279         * lib/getdate.h: Likewise.
33280         * lib/getdate.y: Likewise.
33281         * lib/getdomainname.c: Likewise.
33282         * lib/getdomainname.h: Likewise.
33283         * lib/getgroups.c: Likewise.
33284         * lib/gethostname.c: Likewise.
33285         * lib/gethrxtime.c: Likewise.
33286         * lib/gethrxtime.h: Likewise.
33287         * lib/getloadavg.c: Likewise.
33288         * lib/getndelim2.c: Likewise.
33289         * lib/getndelim2.h: Likewise.
33290         * lib/getnline.c: Likewise.
33291         * lib/getnline.h: Likewise.
33292         * lib/getopt.c: Likewise.
33293         * lib/getopt.in.h: Likewise.
33294         * lib/getopt1.c: Likewise.
33295         * lib/getopt_int.h: Likewise.
33296         * lib/getpagesize.h: Likewise.
33297         * lib/getsubopt.c: Likewise.
33298         * lib/gettime.c: Likewise.
33299         * lib/getugroups.c: Likewise.
33300         * lib/getugroups.h: Likewise.
33301         * lib/getusershell.c: Likewise.
33302         * lib/gl_anyavltree_list1.h: Likewise.
33303         * lib/gl_anyavltree_list2.h: Likewise.
33304         * lib/gl_anyhash_list1.h: Likewise.
33305         * lib/gl_anyhash_list2.h: Likewise.
33306         * lib/gl_anylinked_list1.h: Likewise.
33307         * lib/gl_anylinked_list2.h: Likewise.
33308         * lib/gl_anyrbtree_list1.h: Likewise.
33309         * lib/gl_anyrbtree_list2.h: Likewise.
33310         * lib/gl_anytree_list1.h: Likewise.
33311         * lib/gl_anytree_list2.h: Likewise.
33312         * lib/gl_anytree_oset.h: Likewise.
33313         * lib/gl_anytreehash_list1.h: Likewise.
33314         * lib/gl_anytreehash_list2.h: Likewise.
33315         * lib/gl_array_list.c: Likewise.
33316         * lib/gl_array_list.h: Likewise.
33317         * lib/gl_array_oset.c: Likewise.
33318         * lib/gl_array_oset.h: Likewise.
33319         * lib/gl_avltree_list.c: Likewise.
33320         * lib/gl_avltree_list.h: Likewise.
33321         * lib/gl_avltree_oset.c: Likewise.
33322         * lib/gl_avltree_oset.h: Likewise.
33323         * lib/gl_avltreehash_list.c: Likewise.
33324         * lib/gl_avltreehash_list.h: Likewise.
33325         * lib/gl_carray_list.c: Likewise.
33326         * lib/gl_carray_list.h: Likewise.
33327         * lib/gl_linked_list.c: Likewise.
33328         * lib/gl_linked_list.h: Likewise.
33329         * lib/gl_linkedhash_list.c: Likewise.
33330         * lib/gl_linkedhash_list.h: Likewise.
33331         * lib/gl_list.c: Likewise.
33332         * lib/gl_list.h: Likewise.
33333         * lib/gl_oset.c: Likewise.
33334         * lib/gl_oset.h: Likewise.
33335         * lib/gl_rbtree_list.c: Likewise.
33336         * lib/gl_rbtree_list.h: Likewise.
33337         * lib/gl_rbtree_oset.c: Likewise.
33338         * lib/gl_rbtree_oset.h: Likewise.
33339         * lib/gl_rbtreehash_list.c: Likewise.
33340         * lib/gl_rbtreehash_list.h: Likewise.
33341         * lib/gl_sublist.c: Likewise.
33342         * lib/gl_sublist.h: Likewise.
33343         * lib/group-member.c: Likewise.
33344         * lib/group-member.h: Likewise.
33345         * lib/hard-locale.c: Likewise.
33346         * lib/hard-locale.h: Likewise.
33347         * lib/hash-pjw.c: Likewise.
33348         * lib/hash-pjw.h: Likewise.
33349         * lib/hash-triple.c: Likewise.
33350         * lib/hash.c: Likewise.
33351         * lib/hash.h: Likewise.
33352         * lib/human.c: Likewise.
33353         * lib/human.h: Likewise.
33354         * lib/i-ring.c: Likewise.
33355         * lib/i-ring.h: Likewise.
33356         * lib/idcache.c: Likewise.
33357         * lib/imaxabs.c: Likewise.
33358         * lib/imaxdiv.c: Likewise.
33359         * lib/inet_pton.c: Likewise.
33360         * lib/inet_pton.h: Likewise.
33361         * lib/intprops.h: Likewise.
33362         * lib/inttostr.c: Likewise.
33363         * lib/inttostr.h: Likewise.
33364         * lib/inttypes.in.h: Likewise.
33365         * lib/isapipe.c: Likewise.
33366         * lib/isdir.c: Likewise.
33367         * lib/isnan.c: Likewise.
33368         * lib/isnan.h: Likewise.
33369         * lib/isnanf.c: Likewise.
33370         * lib/isnanf.h: Likewise.
33371         * lib/isnanl-nolibm.h: Likewise.
33372         * lib/isnanl.c: Likewise.
33373         * lib/isnanl.h: Likewise.
33374         * lib/javacomp.c: Likewise.
33375         * lib/javacomp.h: Likewise.
33376         * lib/javaexec.c: Likewise.
33377         * lib/javaexec.h: Likewise.
33378         * lib/javaversion.c: Likewise.
33379         * lib/javaversion.h: Likewise.
33380         * lib/javaversion.java: Likewise.
33381         * lib/lbrkprop.h: Likewise.
33382         * lib/lchmod.h: Likewise.
33383         * lib/lchown.c: Likewise.
33384         * lib/ldexpl.c: Likewise.
33385         * lib/linebreak.c: Likewise.
33386         * lib/linebreak.h: Likewise.
33387         * lib/linebuffer.c: Likewise.
33388         * lib/linebuffer.h: Likewise.
33389         * lib/locale.in.h: Likewise.
33390         * lib/logl.c: Likewise.
33391         * lib/long-options.c: Likewise.
33392         * lib/long-options.h: Likewise.
33393         * lib/lstat.c: Likewise.
33394         * lib/lstat.h: Likewise.
33395         * lib/math.in.h: Likewise.
33396         * lib/mbchar.c: Likewise.
33397         * lib/mbchar.h: Likewise.
33398         * lib/mbfile.h: Likewise.
33399         * lib/mbiter.h: Likewise.
33400         * lib/mbscasecmp.c: Likewise.
33401         * lib/mbscasestr.c: Likewise.
33402         * lib/mbschr.c: Likewise.
33403         * lib/mbscspn.c: Likewise.
33404         * lib/mbslen.c: Likewise.
33405         * lib/mbsncasecmp.c: Likewise.
33406         * lib/mbsnlen.c: Likewise.
33407         * lib/mbspbrk.c: Likewise.
33408         * lib/mbspcasecmp.c: Likewise.
33409         * lib/mbsrchr.c: Likewise.
33410         * lib/mbssep.c: Likewise.
33411         * lib/mbsspn.c: Likewise.
33412         * lib/mbsstr.c: Likewise.
33413         * lib/mbstok_r.c: Likewise.
33414         * lib/mbswidth.c: Likewise.
33415         * lib/mbswidth.h: Likewise.
33416         * lib/mbuiter.h: Likewise.
33417         * lib/memcasecmp.c: Likewise.
33418         * lib/memcasecmp.h: Likewise.
33419         * lib/memchr.c: Likewise.
33420         * lib/memcmp.c: Likewise.
33421         * lib/memcoll.c: Likewise.
33422         * lib/memcoll.h: Likewise.
33423         * lib/memcpy.c: Likewise.
33424         * lib/memrchr.c: Likewise.
33425         * lib/mkancesdirs.c: Likewise.
33426         * lib/mkdir-p.c: Likewise.
33427         * lib/mkdir-p.h: Likewise.
33428         * lib/mkdir.c: Likewise.
33429         * lib/mkdirat.c: Likewise.
33430         * lib/mkdtemp.c: Likewise.
33431         * lib/mkstemp-safer.c: Likewise.
33432         * lib/mkstemp.c: Likewise.
33433         * lib/modechange.c: Likewise.
33434         * lib/modechange.h: Likewise.
33435         * lib/mountlist.c: Likewise.
33436         * lib/mountlist.h: Likewise.
33437         * lib/mpsort.c: Likewise.
33438         * lib/nanosleep.c: Likewise.
33439         * lib/obstack.c: Likewise.
33440         * lib/obstack.h: Likewise.
33441         * lib/open-safer.c: Likewise.
33442         * lib/open.c: Likewise.
33443         * lib/openat-die.c: Likewise.
33444         * lib/openat-priv.h: Likewise.
33445         * lib/openat-proc.c: Likewise.
33446         * lib/openat.c: Likewise.
33447         * lib/openat.h: Likewise.
33448         * lib/pagealign_alloc.c: Likewise.
33449         * lib/pagealign_alloc.h: Likewise.
33450         * lib/physmem.c: Likewise.
33451         * lib/physmem.h: Likewise.
33452         * lib/pipe-safer.c: Likewise.
33453         * lib/pipe.c: Likewise.
33454         * lib/pipe.h: Likewise.
33455         * lib/posixtm.c: Likewise.
33456         * lib/posixtm.h: Likewise.
33457         * lib/posixver.c: Likewise.
33458         * lib/printf-frexp.c: Likewise.
33459         * lib/printf-frexp.h: Likewise.
33460         * lib/printf-frexpl.c: Likewise.
33461         * lib/printf-frexpl.h: Likewise.
33462         * lib/printf.c: Likewise.
33463         * lib/progname.c: Likewise.
33464         * lib/progname.h: Likewise.
33465         * lib/progreloc.c: Likewise.
33466         * lib/putenv.c: Likewise.
33467         * lib/quote.c: Likewise.
33468         * lib/quote.h: Likewise.
33469         * lib/quotearg.c: Likewise.
33470         * lib/quotearg.h: Likewise.
33471         * lib/raise.c: Likewise.
33472         * lib/readline.c: Likewise.
33473         * lib/readline.h: Likewise.
33474         * lib/readlink.c: Likewise.
33475         * lib/readtokens.c: Likewise.
33476         * lib/readtokens.h: Likewise.
33477         * lib/readtokens0.c: Likewise.
33478         * lib/readtokens0.h: Likewise.
33479         * lib/readutmp.c: Likewise.
33480         * lib/readutmp.h: Likewise.
33481         * lib/realloc.c: Likewise.
33482         * lib/relocwrapper.c: Likewise.
33483         * lib/rename-dest-slash.c: Likewise.
33484         * lib/rename.c: Likewise.
33485         * lib/rmdir.c: Likewise.
33486         * lib/rpmatch.c: Likewise.
33487         * lib/safe-read.c: Likewise.
33488         * lib/safe-read.h: Likewise.
33489         * lib/safe-write.c: Likewise.
33490         * lib/safe-write.h: Likewise.
33491         * lib/same-inode.h: Likewise.
33492         * lib/same.c: Likewise.
33493         * lib/same.h: Likewise.
33494         * lib/save-cwd.c: Likewise.
33495         * lib/save-cwd.h: Likewise.
33496         * lib/savedir.c: Likewise.
33497         * lib/savedir.h: Likewise.
33498         * lib/savewd.c: Likewise.
33499         * lib/savewd.h: Likewise.
33500         * lib/search.in.h: Likewise.
33501         * lib/setenv.c: Likewise.
33502         * lib/setenv.h: Likewise.
33503         * lib/settime.c: Likewise.
33504         * lib/sh-quote.c: Likewise.
33505         * lib/sh-quote.h: Likewise.
33506         * lib/sig2str.c: Likewise.
33507         * lib/sig2str.h: Likewise.
33508         * lib/signal.in.h: Likewise.
33509         * lib/signbitd.c: Likewise.
33510         * lib/signbitf.c: Likewise.
33511         * lib/signbitl.c: Likewise.
33512         * lib/sigprocmask.c: Likewise.
33513         * lib/sincosl.c: Likewise.
33514         * lib/sleep.c: Likewise.
33515         * lib/sprintf.c: Likewise.
33516         * lib/sqrtl.c: Likewise.
33517         * lib/stat-time.h: Likewise.
33518         * lib/stdio--.h: Likewise.
33519         * lib/stdio-safer.h: Likewise.
33520         * lib/stdlib--.h: Likewise.
33521         * lib/stdlib-safer.h: Likewise.
33522         * lib/stdlib.in.h: Likewise.
33523         * lib/stpcpy.c: Likewise.
33524         * lib/stpncpy.c: Likewise.
33525         * lib/strchrnul.c: Likewise.
33526         * lib/strcspn.c: Likewise.
33527         * lib/strerror.c: Likewise.
33528         * lib/strftime.c: Likewise.
33529         * lib/strftime.h: Likewise.
33530         * lib/striconveh.c: Likewise.
33531         * lib/striconveh.h: Likewise.
33532         * lib/striconveha.c: Likewise.
33533         * lib/striconveha.h: Likewise.
33534         * lib/stripslash.c: Likewise.
33535         * lib/strnlen1.c: Likewise.
33536         * lib/strnlen1.h: Likewise.
33537         * lib/strtod.c: Likewise.
33538         * lib/strtoimax.c: Likewise.
33539         * lib/strtok_r.c: Likewise.
33540         * lib/strtol.c: Likewise.
33541         * lib/strtoll.c: Likewise.
33542         * lib/strtoul.c: Likewise.
33543         * lib/strtoull.c: Likewise.
33544         * lib/sysexits.in.h: Likewise.
33545         * lib/tempname.c: Likewise.
33546         * lib/tempname.h: Likewise.
33547         * lib/timespec.h: Likewise.
33548         * lib/tls.c: Likewise.
33549         * lib/tls.h: Likewise.
33550         * lib/tmpdir.c: Likewise.
33551         * lib/tmpdir.h: Likewise.
33552         * lib/tmpfile-safer.c: Likewise.
33553         * lib/tmpfile.c: Likewise.
33554         * lib/trigl.c: Likewise.
33555         * lib/trigl.h: Likewise.
33556         * lib/trim.c: Likewise.
33557         * lib/trim.h: Likewise.
33558         * lib/trunc.c: Likewise.
33559         * lib/truncf.c: Likewise.
33560         * lib/truncl.c: Likewise.
33561         * lib/tsearch.c: Likewise.
33562         * lib/unicodeio.c: Likewise.
33563         * lib/unicodeio.h: Likewise.
33564         * lib/unistd--.h: Likewise.
33565         * lib/unistd-safer.h: Likewise.
33566         * lib/unistdio/ulc-fprintf.c: Likewise.
33567         * lib/unistdio/ulc-vfprintf.c: Likewise.
33568         * lib/unlinkdir.c: Likewise.
33569         * lib/unlinkdir.h: Likewise.
33570         * lib/unlocked-io.h: Likewise.
33571         * lib/unsetenv.c: Likewise.
33572         * lib/userspec.c: Likewise.
33573         * lib/utime.c: Likewise.
33574         * lib/utimecmp.c: Likewise.
33575         * lib/utimecmp.h: Likewise.
33576         * lib/utimens.c: Likewise.
33577         * lib/verify.h: Likewise.
33578         * lib/verror.c: Likewise.
33579         * lib/verror.h: Likewise.
33580         * lib/version-etc-fsf.c: Likewise.
33581         * lib/version-etc.c: Likewise.
33582         * lib/version-etc.h: Likewise.
33583         * lib/vfprintf.c: Likewise.
33584         * lib/vprintf.c: Likewise.
33585         * lib/vsprintf.c: Likewise.
33586         * lib/w32spawn.h: Likewise.
33587         * lib/wait-process.c: Likewise.
33588         * lib/wait-process.h: Likewise.
33589         * lib/wcwidth.c: Likewise.
33590         * lib/write-any-file.c: Likewise.
33591         * lib/xalloc-die.c: Likewise.
33592         * lib/xalloc.h: Likewise.
33593         * lib/xasprintf.c: Likewise.
33594         * lib/xgetcwd.c: Likewise.
33595         * lib/xgetcwd.h: Likewise.
33596         * lib/xgetdomainname.c: Likewise.
33597         * lib/xgetdomainname.h: Likewise.
33598         * lib/xgethostname.c: Likewise.
33599         * lib/xmalloc.c: Likewise.
33600         * lib/xmalloca.c: Likewise.
33601         * lib/xmalloca.h: Likewise.
33602         * lib/xmemcoll.c: Likewise.
33603         * lib/xnanosleep.c: Likewise.
33604         * lib/xreadlink.c: Likewise.
33605         * lib/xreadlink.h: Likewise.
33606         * lib/xsetenv.c: Likewise.
33607         * lib/xsetenv.h: Likewise.
33608         * lib/xstriconv.c: Likewise.
33609         * lib/xstriconv.h: Likewise.
33610         * lib/xstrndup.c: Likewise.
33611         * lib/xstrndup.h: Likewise.
33612         * lib/xstrtod.c: Likewise.
33613         * lib/xstrtod.h: Likewise.
33614         * lib/xstrtol-error.c: Likewise.
33615         * lib/xstrtol.c: Likewise.
33616         * lib/xstrtol.h: Likewise.
33617         * lib/xtime.h: Likewise.
33618         * lib/xvasprintf.c: Likewise.
33619         * lib/xvasprintf.h: Likewise.
33620         * lib/yesno.c: Likewise.
33621         * lib/yesno.h: Likewise.
33622         * posix-modules: Likewise.
33623         * tests/test-alloca-opt.c: Likewise.
33624         * tests/test-arcfour.c: Likewise.
33625         * tests/test-arctwo.c: Likewise.
33626         * tests/test-argmatch.c: Likewise.
33627         * tests/test-argp-2.sh: Likewise.
33628         * tests/test-argp.c: Likewise.
33629         * tests/test-arpa_inet.c: Likewise.
33630         * tests/test-array_list.c: Likewise.
33631         * tests/test-array_oset.c: Likewise.
33632         * tests/test-atexit.c: Likewise.
33633         * tests/test-avltree_list.c: Likewise.
33634         * tests/test-avltree_oset.c: Likewise.
33635         * tests/test-avltreehash_list.c: Likewise.
33636         * tests/test-base64.c: Likewise.
33637         * tests/test-binary-io.c: Likewise.
33638         * tests/test-byteswap.c: Likewise.
33639         * tests/test-c-ctype.c: Likewise.
33640         * tests/test-c-strcasecmp.c: Likewise.
33641         * tests/test-c-strcasestr.c: Likewise.
33642         * tests/test-c-strncasecmp.c: Likewise.
33643         * tests/test-c-strstr.c: Likewise.
33644         * tests/test-canonicalize-lgpl.c: Likewise.
33645         * tests/test-canonicalize.c: Likewise.
33646         * tests/test-carray_list.c: Likewise.
33647         * tests/test-ceilf.c: Likewise.
33648         * tests/test-ceill.c: Likewise.
33649         * tests/test-count-one-bits.c: Likewise.
33650         * tests/test-crc.c: Likewise.
33651         * tests/test-dirname.c: Likewise.
33652         * tests/test-fbufmode.c: Likewise.
33653         * tests/test-fcntl.c: Likewise.
33654         * tests/test-fflush.c: Likewise.
33655         * tests/test-floorf.c: Likewise.
33656         * tests/test-floorl.c: Likewise.
33657         * tests/test-fopen.c: Likewise.
33658         * tests/test-fprintf-posix.c: Likewise.
33659         * tests/test-fprintf-posix.h: Likewise.
33660         * tests/test-fpurge.c: Likewise.
33661         * tests/test-freadable.c: Likewise.
33662         * tests/test-freadahead.c: Likewise.
33663         * tests/test-freading.c: Likewise.
33664         * tests/test-freopen.c: Likewise.
33665         * tests/test-frexp.c: Likewise.
33666         * tests/test-frexpl.c: Likewise.
33667         * tests/test-fseek.c: Likewise.
33668         * tests/test-fseeko.c: Likewise.
33669         * tests/test-fseterr.c: Likewise.
33670         * tests/test-fstrcmp.c: Likewise.
33671         * tests/test-ftell.c: Likewise.
33672         * tests/test-ftello.c: Likewise.
33673         * tests/test-fwritable.c: Likewise.
33674         * tests/test-fwriting.c: Likewise.
33675         * tests/test-getaddrinfo.c: Likewise.
33676         * tests/test-getpass.c: Likewise.
33677         * tests/test-gettimeofday.c: Likewise.
33678         * tests/test-hmac-md5.c: Likewise.
33679         * tests/test-hmac-sha1.c: Likewise.
33680         * tests/test-iconv.c: Likewise.
33681         * tests/test-iconvme.c: Likewise.
33682         * tests/test-inttypes.c: Likewise.
33683         * tests/test-isnan.c: Likewise.
33684         * tests/test-isnanf.c: Likewise.
33685         * tests/test-isnanl-nolibm.c: Likewise.
33686         * tests/test-isnanl.c: Likewise.
33687         * tests/test-isnanl.h: Likewise.
33688         * tests/test-ldexpl.c: Likewise.
33689         * tests/test-linked_list.c: Likewise.
33690         * tests/test-linkedhash_list.c: Likewise.
33691         * tests/test-locale.c: Likewise.
33692         * tests/test-localename.c: Likewise.
33693         * tests/test-lock.c: Likewise.
33694         * tests/test-lseek.c: Likewise.
33695         * tests/test-malloca.c: Likewise.
33696         * tests/test-math.c: Likewise.
33697         * tests/test-mbscasecmp.c: Likewise.
33698         * tests/test-mbscasestr1.c: Likewise.
33699         * tests/test-mbscasestr2.c: Likewise.
33700         * tests/test-mbscasestr3.c: Likewise.
33701         * tests/test-mbscasestr4.c: Likewise.
33702         * tests/test-mbschr.c: Likewise.
33703         * tests/test-mbscspn.c: Likewise.
33704         * tests/test-mbsncasecmp.c: Likewise.
33705         * tests/test-mbspbrk.c: Likewise.
33706         * tests/test-mbspcasecmp.c: Likewise.
33707         * tests/test-mbsrchr.c: Likewise.
33708         * tests/test-mbsspn.c: Likewise.
33709         * tests/test-mbsstr1.c: Likewise.
33710         * tests/test-mbsstr2.c: Likewise.
33711         * tests/test-mbsstr3.c: Likewise.
33712         * tests/test-md5.c: Likewise.
33713         * tests/test-memmem.c: Likewise.
33714         * tests/test-netinet_in.c: Likewise.
33715         * tests/test-open.c: Likewise.
33716         * tests/test-printf-frexp.c: Likewise.
33717         * tests/test-printf-frexpl.c: Likewise.
33718         * tests/test-printf-posix.c: Likewise.
33719         * tests/test-printf-posix.h: Likewise.
33720         * tests/test-rbtree_list.c: Likewise.
33721         * tests/test-rbtree_oset.c: Likewise.
33722         * tests/test-rbtreehash_list.c: Likewise.
33723         * tests/test-read-file.c: Likewise.
33724         * tests/test-rijndael.c: Likewise.
33725         * tests/test-search.c: Likewise.
33726         * tests/test-signbit.c: Likewise.
33727         * tests/test-sleep.c: Likewise.
33728         * tests/test-snprintf-posix.c: Likewise.
33729         * tests/test-snprintf-posix.h: Likewise.
33730         * tests/test-snprintf.c: Likewise.
33731         * tests/test-sprintf-posix.c: Likewise.
33732         * tests/test-sprintf-posix.h: Likewise.
33733         * tests/test-stat-time.c: Likewise.
33734         * tests/test-stdbool.c: Likewise.
33735         * tests/test-stdint.c: Likewise.
33736         * tests/test-stdio.c: Likewise.
33737         * tests/test-stdlib.c: Likewise.
33738         * tests/test-stpncpy.c: Likewise.
33739         * tests/test-strcasestr.c: Likewise.
33740         * tests/test-striconv.c: Likewise.
33741         * tests/test-striconveh.c: Likewise.
33742         * tests/test-striconveha.c: Likewise.
33743         * tests/test-string.c: Likewise.
33744         * tests/test-sys_select.c: Likewise.
33745         * tests/test-sys_socket.c: Likewise.
33746         * tests/test-sys_stat.c: Likewise.
33747         * tests/test-sys_time.c: Likewise.
33748         * tests/test-sysexits.c: Likewise.
33749         * tests/test-time.c: Likewise.
33750         * tests/test-tls.c: Likewise.
33751         * tests/test-trunc.c: Likewise.
33752         * tests/test-truncf.c: Likewise.
33753         * tests/test-truncl.c: Likewise.
33754         * tests/test-unistd.c: Likewise.
33755         * tests/test-vasnprintf-posix.c: Likewise.
33756         * tests/test-vasnprintf-posix2.c: Likewise.
33757         * tests/test-vasnprintf.c: Likewise.
33758         * tests/test-vasprintf-posix.c: Likewise.
33759         * tests/test-vasprintf.c: Likewise.
33760         * tests/test-verify.c: Likewise.
33761         * tests/test-vfprintf-posix.c: Likewise.
33762         * tests/test-vprintf-posix.c: Likewise.
33763         * tests/test-vsnprintf-posix.c: Likewise.
33764         * tests/test-vsnprintf.c: Likewise.
33765         * tests/test-vsprintf-posix.c: Likewise.
33766         * tests/test-wchar.c: Likewise.
33767         * tests/test-wctype.c: Likewise.
33768         * tests/test-wcwidth.c: Likewise.
33769         * tests/test-xstrtol.c: Likewise.
33770         * tests/test-xvasprintf.c: Likewise.
33771         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
33772         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
33773         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33774         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33775         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33776         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
33777         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33778         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33779         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33780         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
33781         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33782         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33783         * tests/uniname/test-uninames.c: Likewise.
33784         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
33785         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
33786         * tests/unistdio/test-u16-printf1.h: Likewise.
33787         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
33788         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
33789         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
33790         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
33791         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
33792         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
33793         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
33794         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
33795         * tests/unistdio/test-u32-printf1.h: Likewise.
33796         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
33797         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
33798         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
33799         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
33800         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
33801         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
33802         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
33803         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
33804         * tests/unistdio/test-u8-printf1.h: Likewise.
33805         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
33806         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
33807         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
33808         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
33809         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
33810         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
33811         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
33812         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
33813         * tests/unistdio/test-ulc-printf1.h: Likewise.
33814         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
33815         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
33816         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
33817         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
33818         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
33819         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
33820         * tests/uniwidth/test-u16-strwidth.c: Likewise.
33821         * tests/uniwidth/test-u16-width.c: Likewise.
33822         * tests/uniwidth/test-u32-strwidth.c: Likewise.
33823         * tests/uniwidth/test-u32-width.c: Likewise.
33824         * tests/uniwidth/test-u8-strwidth.c: Likewise.
33825         * tests/uniwidth/test-u8-width.c: Likewise.
33826         * tests/uniwidth/test-uc_width.c: Likewise.
33827         * config/srclist-update: Likewise.
33828         (fixlicense): Update to GPLv3+.
33829
33830         Change copyright notice from LGPLv2.1+ to LGPLv3+.
33831         * tests/test-tsearch.c: Change copyright notice.
33832
33833         Change copyright notice from LGPLv2.0+ to LGPLv3+.
33834         * lib/c-strcaseeq.h: Change copyright notice.
33835         * lib/streq.h: Likewise.
33836         * lib/uniconv.h: Likewise.
33837         * lib/uniconv/u-conv-from-enc.h: Likewise.
33838         * lib/uniconv/u-conv-to-enc.h: Likewise.
33839         * lib/uniconv/u-strconv-from-enc.h: Likewise.
33840         * lib/uniconv/u-strconv-to-enc.h: Likewise.
33841         * lib/uniconv/u16-conv-from-enc.c: Likewise.
33842         * lib/uniconv/u16-conv-to-enc.c: Likewise.
33843         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
33844         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
33845         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
33846         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
33847         * lib/uniconv/u32-conv-from-enc.c: Likewise.
33848         * lib/uniconv/u32-conv-to-enc.c: Likewise.
33849         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
33850         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
33851         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
33852         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
33853         * lib/uniconv/u8-conv-from-enc.c: Likewise.
33854         * lib/uniconv/u8-conv-to-enc.c: Likewise.
33855         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
33856         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
33857         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
33858         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
33859         * lib/uniname.h: Likewise.
33860         * lib/uniname/uniname.c: Likewise.
33861         * lib/unistdio.h: Likewise.
33862         * lib/unistdio/u-asnprintf.h: Likewise.
33863         * lib/unistdio/u-asprintf.h: Likewise.
33864         * lib/unistdio/u-printf-args.c: Likewise.
33865         * lib/unistdio/u-printf-args.h: Likewise.
33866         * lib/unistdio/u-printf-parse.h: Likewise.
33867         * lib/unistdio/u-snprintf.h: Likewise.
33868         * lib/unistdio/u-sprintf.h: Likewise.
33869         * lib/unistdio/u-vasprintf.h: Likewise.
33870         * lib/unistdio/u-vsnprintf.h: Likewise.
33871         * lib/unistdio/u-vsprintf.h: Likewise.
33872         * lib/unistdio/u16-asnprintf.c: Likewise.
33873         * lib/unistdio/u16-asprintf.c: Likewise.
33874         * lib/unistdio/u16-printf-parse.c: Likewise.
33875         * lib/unistdio/u16-snprintf.c: Likewise.
33876         * lib/unistdio/u16-sprintf.c: Likewise.
33877         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
33878         * lib/unistdio/u16-u16-asprintf.c: Likewise.
33879         * lib/unistdio/u16-u16-snprintf.c: Likewise.
33880         * lib/unistdio/u16-u16-sprintf.c: Likewise.
33881         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
33882         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
33883         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
33884         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
33885         * lib/unistdio/u16-vasnprintf.c: Likewise.
33886         * lib/unistdio/u16-vasprintf.c: Likewise.
33887         * lib/unistdio/u16-vsnprintf.c: Likewise.
33888         * lib/unistdio/u16-vsprintf.c: Likewise.
33889         * lib/unistdio/u32-asnprintf.c: Likewise.
33890         * lib/unistdio/u32-asprintf.c: Likewise.
33891         * lib/unistdio/u32-printf-parse.c: Likewise.
33892         * lib/unistdio/u32-snprintf.c: Likewise.
33893         * lib/unistdio/u32-sprintf.c: Likewise.
33894         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
33895         * lib/unistdio/u32-u32-asprintf.c: Likewise.
33896         * lib/unistdio/u32-u32-snprintf.c: Likewise.
33897         * lib/unistdio/u32-u32-sprintf.c: Likewise.
33898         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
33899         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
33900         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
33901         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
33902         * lib/unistdio/u32-vasnprintf.c: Likewise.
33903         * lib/unistdio/u32-vasprintf.c: Likewise.
33904         * lib/unistdio/u32-vsnprintf.c: Likewise.
33905         * lib/unistdio/u32-vsprintf.c: Likewise.
33906         * lib/unistdio/u8-asnprintf.c: Likewise.
33907         * lib/unistdio/u8-asprintf.c: Likewise.
33908         * lib/unistdio/u8-printf-parse.c: Likewise.
33909         * lib/unistdio/u8-snprintf.c: Likewise.
33910         * lib/unistdio/u8-sprintf.c: Likewise.
33911         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
33912         * lib/unistdio/u8-u8-asprintf.c: Likewise.
33913         * lib/unistdio/u8-u8-snprintf.c: Likewise.
33914         * lib/unistdio/u8-u8-sprintf.c: Likewise.
33915         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
33916         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
33917         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
33918         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
33919         * lib/unistdio/u8-vasnprintf.c: Likewise.
33920         * lib/unistdio/u8-vasprintf.c: Likewise.
33921         * lib/unistdio/u8-vsnprintf.c: Likewise.
33922         * lib/unistdio/u8-vsprintf.c: Likewise.
33923         * lib/unistdio/ulc-asnprintf.c: Likewise.
33924         * lib/unistdio/ulc-asprintf.c: Likewise.
33925         * lib/unistdio/ulc-printf-parse.c: Likewise.
33926         * lib/unistdio/ulc-snprintf.c: Likewise.
33927         * lib/unistdio/ulc-sprintf.c: Likewise.
33928         * lib/unistdio/ulc-vasnprintf.c: Likewise.
33929         * lib/unistdio/ulc-vasprintf.c: Likewise.
33930         * lib/unistdio/ulc-vsnprintf.c: Likewise.
33931         * lib/unistdio/ulc-vsprintf.c: Likewise.
33932         * lib/unistr.h: Likewise.
33933         * lib/unistr/u-cpy-alloc.h: Likewise.
33934         * lib/unistr/u-cpy.h: Likewise.
33935         * lib/unistr/u-endswith.h: Likewise.
33936         * lib/unistr/u-move.h: Likewise.
33937         * lib/unistr/u-set.h: Likewise.
33938         * lib/unistr/u-startswith.h: Likewise.
33939         * lib/unistr/u-stpcpy.h: Likewise.
33940         * lib/unistr/u-stpncpy.h: Likewise.
33941         * lib/unistr/u-strcat.h: Likewise.
33942         * lib/unistr/u-strcpy.h: Likewise.
33943         * lib/unistr/u-strcspn.h: Likewise.
33944         * lib/unistr/u-strdup.h: Likewise.
33945         * lib/unistr/u-strlen.h: Likewise.
33946         * lib/unistr/u-strncat.h: Likewise.
33947         * lib/unistr/u-strncpy.h: Likewise.
33948         * lib/unistr/u-strnlen.h: Likewise.
33949         * lib/unistr/u-strpbrk.h: Likewise.
33950         * lib/unistr/u-strspn.h: Likewise.
33951         * lib/unistr/u-strstr.h: Likewise.
33952         * lib/unistr/u-strtok.h: Likewise.
33953         * lib/unistr/u16-check.c: Likewise.
33954         * lib/unistr/u16-chr.c: Likewise.
33955         * lib/unistr/u16-cmp.c: Likewise.
33956         * lib/unistr/u16-cpy-alloc.c: Likewise.
33957         * lib/unistr/u16-cpy.c: Likewise.
33958         * lib/unistr/u16-endswith.c: Likewise.
33959         * lib/unistr/u16-mblen.c: Likewise.
33960         * lib/unistr/u16-mbsnlen.c: Likewise.
33961         * lib/unistr/u16-mbtouc-aux.c: Likewise.
33962         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
33963         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
33964         * lib/unistr/u16-mbtouc.c: Likewise.
33965         * lib/unistr/u16-mbtoucr.c: Likewise.
33966         * lib/unistr/u16-move.c: Likewise.
33967         * lib/unistr/u16-next.c: Likewise.
33968         * lib/unistr/u16-prev.c: Likewise.
33969         * lib/unistr/u16-set.c: Likewise.
33970         * lib/unistr/u16-startswith.c: Likewise.
33971         * lib/unistr/u16-stpcpy.c: Likewise.
33972         * lib/unistr/u16-stpncpy.c: Likewise.
33973         * lib/unistr/u16-strcat.c: Likewise.
33974         * lib/unistr/u16-strchr.c: Likewise.
33975         * lib/unistr/u16-strcmp.c: Likewise.
33976         * lib/unistr/u16-strcpy.c: Likewise.
33977         * lib/unistr/u16-strcspn.c: Likewise.
33978         * lib/unistr/u16-strdup.c: Likewise.
33979         * lib/unistr/u16-strlen.c: Likewise.
33980         * lib/unistr/u16-strmblen.c: Likewise.
33981         * lib/unistr/u16-strmbtouc.c: Likewise.
33982         * lib/unistr/u16-strncat.c: Likewise.
33983         * lib/unistr/u16-strncmp.c: Likewise.
33984         * lib/unistr/u16-strncpy.c: Likewise.
33985         * lib/unistr/u16-strnlen.c: Likewise.
33986         * lib/unistr/u16-strpbrk.c: Likewise.
33987         * lib/unistr/u16-strrchr.c: Likewise.
33988         * lib/unistr/u16-strspn.c: Likewise.
33989         * lib/unistr/u16-strstr.c: Likewise.
33990         * lib/unistr/u16-strtok.c: Likewise.
33991         * lib/unistr/u16-to-u32.c: Likewise.
33992         * lib/unistr/u16-to-u8.c: Likewise.
33993         * lib/unistr/u16-uctomb-aux.c: Likewise.
33994         * lib/unistr/u16-uctomb.c: Likewise.
33995         * lib/unistr/u32-check.c: Likewise.
33996         * lib/unistr/u32-chr.c: Likewise.
33997         * lib/unistr/u32-cmp.c: Likewise.
33998         * lib/unistr/u32-cpy-alloc.c: Likewise.
33999         * lib/unistr/u32-cpy.c: Likewise.
34000         * lib/unistr/u32-endswith.c: Likewise.
34001         * lib/unistr/u32-mblen.c: Likewise.
34002         * lib/unistr/u32-mbsnlen.c: Likewise.
34003         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
34004         * lib/unistr/u32-mbtouc.c: Likewise.
34005         * lib/unistr/u32-mbtoucr.c: Likewise.
34006         * lib/unistr/u32-move.c: Likewise.
34007         * lib/unistr/u32-next.c: Likewise.
34008         * lib/unistr/u32-prev.c: Likewise.
34009         * lib/unistr/u32-set.c: Likewise.
34010         * lib/unistr/u32-startswith.c: Likewise.
34011         * lib/unistr/u32-stpcpy.c: Likewise.
34012         * lib/unistr/u32-stpncpy.c: Likewise.
34013         * lib/unistr/u32-strcat.c: Likewise.
34014         * lib/unistr/u32-strchr.c: Likewise.
34015         * lib/unistr/u32-strcmp.c: Likewise.
34016         * lib/unistr/u32-strcpy.c: Likewise.
34017         * lib/unistr/u32-strcspn.c: Likewise.
34018         * lib/unistr/u32-strdup.c: Likewise.
34019         * lib/unistr/u32-strlen.c: Likewise.
34020         * lib/unistr/u32-strmblen.c: Likewise.
34021         * lib/unistr/u32-strmbtouc.c: Likewise.
34022         * lib/unistr/u32-strncat.c: Likewise.
34023         * lib/unistr/u32-strncmp.c: Likewise.
34024         * lib/unistr/u32-strncpy.c: Likewise.
34025         * lib/unistr/u32-strnlen.c: Likewise.
34026         * lib/unistr/u32-strpbrk.c: Likewise.
34027         * lib/unistr/u32-strrchr.c: Likewise.
34028         * lib/unistr/u32-strspn.c: Likewise.
34029         * lib/unistr/u32-strstr.c: Likewise.
34030         * lib/unistr/u32-strtok.c: Likewise.
34031         * lib/unistr/u32-to-u16.c: Likewise.
34032         * lib/unistr/u32-to-u8.c: Likewise.
34033         * lib/unistr/u32-uctomb.c: Likewise.
34034         * lib/unistr/u8-check.c: Likewise.
34035         * lib/unistr/u8-chr.c: Likewise.
34036         * lib/unistr/u8-cmp.c: Likewise.
34037         * lib/unistr/u8-cpy-alloc.c: Likewise.
34038         * lib/unistr/u8-cpy.c: Likewise.
34039         * lib/unistr/u8-endswith.c: Likewise.
34040         * lib/unistr/u8-mblen.c: Likewise.
34041         * lib/unistr/u8-mbsnlen.c: Likewise.
34042         * lib/unistr/u8-mbtouc-aux.c: Likewise.
34043         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
34044         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
34045         * lib/unistr/u8-mbtouc.c: Likewise.
34046         * lib/unistr/u8-mbtoucr.c: Likewise.
34047         * lib/unistr/u8-move.c: Likewise.
34048         * lib/unistr/u8-next.c: Likewise.
34049         * lib/unistr/u8-prev.c: Likewise.
34050         * lib/unistr/u8-set.c: Likewise.
34051         * lib/unistr/u8-startswith.c: Likewise.
34052         * lib/unistr/u8-stpcpy.c: Likewise.
34053         * lib/unistr/u8-stpncpy.c: Likewise.
34054         * lib/unistr/u8-strcat.c: Likewise.
34055         * lib/unistr/u8-strchr.c: Likewise.
34056         * lib/unistr/u8-strcmp.c: Likewise.
34057         * lib/unistr/u8-strcpy.c: Likewise.
34058         * lib/unistr/u8-strcspn.c: Likewise.
34059         * lib/unistr/u8-strdup.c: Likewise.
34060         * lib/unistr/u8-strlen.c: Likewise.
34061         * lib/unistr/u8-strmblen.c: Likewise.
34062         * lib/unistr/u8-strmbtouc.c: Likewise.
34063         * lib/unistr/u8-strncat.c: Likewise.
34064         * lib/unistr/u8-strncmp.c: Likewise.
34065         * lib/unistr/u8-strncpy.c: Likewise.
34066         * lib/unistr/u8-strnlen.c: Likewise.
34067         * lib/unistr/u8-strpbrk.c: Likewise.
34068         * lib/unistr/u8-strrchr.c: Likewise.
34069         * lib/unistr/u8-strspn.c: Likewise.
34070         * lib/unistr/u8-strstr.c: Likewise.
34071         * lib/unistr/u8-strtok.c: Likewise.
34072         * lib/unistr/u8-to-u16.c: Likewise.
34073         * lib/unistr/u8-to-u32.c: Likewise.
34074         * lib/unistr/u8-uctomb-aux.c: Likewise.
34075         * lib/unistr/u8-uctomb.c: Likewise.
34076         * lib/unitypes.h: Likewise.
34077         * lib/uniwidth.h: Likewise.
34078         * lib/uniwidth/cjk.h: Likewise.
34079         * lib/uniwidth/u16-strwidth.c: Likewise.
34080         * lib/uniwidth/u16-width.c: Likewise.
34081         * lib/uniwidth/u32-strwidth.c: Likewise.
34082         * lib/uniwidth/u32-width.c: Likewise.
34083         * lib/uniwidth/u8-strwidth.c: Likewise.
34084         * lib/uniwidth/u8-width.c: Likewise.
34085         * lib/uniwidth/width.c: Likewise.
34086
34087 2007-10-07  Bruno Haible  <bruno@clisp.org>
34088
34089         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
34090         The file is still under LGPL (see modules/inttypes).
34091
34092 2007-10-06  Bruno Haible  <bruno@clisp.org>
34093
34094         * modules/trunc (Dependencies): Add 'extensions'.
34095         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
34096         Reported by Ben Pfaff <blp@gnu.org>.
34097
34098 2007-10-06  Bruno Haible  <bruno@clisp.org>
34099
34100         * modules/freopen-tests: New file.
34101         * tests/test-freopen.c: New file.
34102
34103         * modules/fopen-tests: New file.
34104         * tests/test-fopen.c: New file.
34105
34106         * modules/fopen: New file.
34107         * lib/fopen.c: New file.
34108         * m4/fopen.m4: New file.
34109         * modules/freopen: New file.
34110         * lib/freopen.c: New file.
34111         * m4/freopen.m4: New file.
34112         * lib/stdio.in.h (fopen, freopen): New declarations.
34113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
34114         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
34115         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
34116         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
34117         * doc/functions/fopen.texi: Mention the 'fopen' module.
34118         * doc/functions/freopen.texi: Mention the 'freopen' module.
34119
34120 2007-10-06  Bruno Haible  <bruno@clisp.org>
34121
34122         * modules/open-tests: New file.
34123         * tests/test-open.c: New file.
34124
34125         * modules/open: New file.
34126         * lib/open.c: New file.
34127         * m4/open.m4: New file.
34128         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
34129         lib/open.c does.
34130         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
34131         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
34132         macros.
34133         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
34134         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
34135         REPLACE_OPEN.
34136         * doc/functions/open.texi: Mention the 'open' module.
34137
34138 2007-10-04  Bruno Haible  <bruno@clisp.org>
34139
34140         * modules/ceill-tests: New file.
34141         * tests/test-ceill.c: New file.
34142
34143         * modules/ceill: New file.
34144         * lib/ceill.c: Replace entire file.
34145         * m4/ceill.m4: New file.
34146         * lib/math.in.h (ceill): Replace declaration.
34147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
34148         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
34149         * doc/functions/ceill.texi: Mention the 'ceill' module.
34150         * modules/mathl (Files): Remove lib/ceill.c.
34151         (Depends-on): Add ceill.
34152
34153 2007-10-04  Bruno Haible  <bruno@clisp.org>
34154
34155         * modules/ceilf-tests: New file.
34156         * tests/test-ceilf.c: New file.
34157
34158         * modules/ceilf: New file.
34159         * lib/ceil.c: New file.
34160         * lib/ceilf.c: New file.
34161         * m4/ceilf.m4: New file.
34162         * lib/math.in.h (ceilf): New declaration.
34163         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
34164         HAVE_DECL_CEILF.
34165         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
34166         HAVE_DECL_CEILF.
34167         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
34168
34169 2007-10-04  Bruno Haible  <bruno@clisp.org>
34170
34171         * modules/floorl-tests: New file.
34172         * tests/test-floorl.c: New file.
34173
34174         * modules/floorl: New file.
34175         * lib/floorl.c: Replace entire file.
34176         * m4/floorl.m4: New file.
34177         * lib/math.in.h (floorl): Replace declaration.
34178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
34179         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
34180         * doc/functions/floorl.texi: Mention the 'floorl' module.
34181         * modules/mathl (Files): Remove lib/floorl.c.
34182         (Depends-on): Add floorl.
34183
34184 2007-10-04  Bruno Haible  <bruno@clisp.org>
34185
34186         * modules/floorf-tests: New file.
34187         * tests/test-floorf.c: New file.
34188
34189         * modules/floorf: New file.
34190         * lib/floor.c: New file.
34191         * lib/floorf.c: New file.
34192         * m4/floorf.m4: New file.
34193         * lib/math.in.h (floorf): New declaration.
34194         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
34195         HAVE_DECL_FLOORF.
34196         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
34197         HAVE_DECL_FLOORF.
34198         * doc/functions/floorf.texi: Mention the 'floorf' module.
34199
34200 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
34201             Bruno Haible  <bruno@clisp.org>
34202
34203         Advertise for the Git server instead of the CVS server.
34204         * doc/gnulib-intro.texi (Steady Development): Mention the Git
34205         repository instead of the CVS one.
34206         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
34207         about all VCS systems generically.
34208         * doc/gnulib.texi (Introduction): Capitalize `Git'.
34209
34210 2007-10-04  Bruno Haible  <bruno@clisp.org>
34211
34212         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
34213         means.
34214         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
34215
34216 2007-10-04  Bruno Haible  <bruno@clisp.org>
34217
34218         * modules/truncl-tests: New file.
34219         * tests/test-truncl.c: New file.
34220
34221         * modules/truncl: New file.
34222         * lib/truncl.c: New file.
34223         * m4/truncl.m4: New file.
34224         * lib/math.in.h (truncl): New declaration.
34225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
34226         HAVE_DECL_TRUNCL.
34227         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
34228         HAVE_DECL_TRUNCL.
34229         * doc/functions/truncl.texi: Mention the 'truncl' module.
34230
34231 2007-10-04  Bruno Haible  <bruno@clisp.org>
34232
34233         * modules/truncf-tests: New file.
34234         * tests/test-truncf.c: New file.
34235
34236         * modules/truncf: New file.
34237         * lib/trunc.c: Make paramerizable through USE_* macros.
34238         * lib/truncf.c: New file.
34239         * m4/truncf.m4: New file.
34240         * lib/math.in.h (truncf): New declaration.
34241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
34242         HAVE_DECL_TRUNCF.
34243         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
34244         HAVE_DECL_TRUNCF.
34245         * doc/functions/truncf.texi: Mention the 'truncf' module.
34246
34247 2007-10-03  Bruno Haible  <bruno@clisp.org>
34248
34249         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
34250         augmentation also for tests modules.
34251         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
34252         * modules/atexit-tests (Makefile.am): Likewise.
34253         * modules/binary-io-tests (Makefile.am): Likewise.
34254         * modules/c-strcase-tests (Makefile.am): Likewise.
34255         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
34256         * modules/canonicalize-tests (Makefile.am): Likewise.
34257         * modules/closein-tests (Makefile.am): Likewise.
34258         * modules/fprintf-posix-tests (Makefile.am): Likewise.
34259         * modules/freadahead-tests (Makefile.am): Likewise.
34260         * modules/fseek-tests (Makefile.am): Likewise.
34261         * modules/fseeko-tests (Makefile.am): Likewise.
34262         * modules/ftell-tests (Makefile.am): Likewise.
34263         * modules/ftello-tests (Makefile.am): Likewise.
34264         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
34265         * modules/isnanl-tests (Makefile.am): Likewise.
34266         * modules/lseek-tests (Makefile.am): Likewise.
34267         * modules/mbscasecmp-tests (Makefile.am): Likewise.
34268         * modules/mbscasestr-tests (Makefile.am): Likewise.
34269         * modules/mbschr-tests (Makefile.am): Likewise.
34270         * modules/mbscspn-tests (Makefile.am): Likewise.
34271         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
34272         * modules/mbspbrk-tests (Makefile.am): Likewise.
34273         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
34274         * modules/mbsrchr-tests (Makefile.am): Likewise.
34275         * modules/mbsspn-tests (Makefile.am): Likewise.
34276         * modules/mbsstr-tests (Makefile.am): Likewise.
34277         * modules/printf-posix-tests (Makefile.am): Likewise.
34278         * modules/snprintf-posix-tests (Makefile.am): Likewise.
34279         * modules/sprintf-posix-tests (Makefile.am): Likewise.
34280         * modules/tsearch-tests (Makefile.am): Likewise.
34281         * modules/uniname/uniname-tests (Makefile.am): Likewise.
34282         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
34283         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
34284         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
34285         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
34286         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
34287         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
34288         * modules/vprintf-posix-tests (Makefile.am): Likewise.
34289         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
34290         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
34291         * modules/xstrtoimax-tests (Makefile.am): Likewise.
34292         * modules/xstrtol-tests (Makefile.am): Likewise.
34293         * modules/xstrtoumax-tests (Makefile.am): Likewise.
34294         * modules/yesno-tests (Makefile.am): Likewise.
34295
34296 2007-10-03  Bruno Haible  <bruno@clisp.org>
34297
34298         * modules/trunc-tests: New file.
34299         * tests/test-trunc.c: New file.
34300
34301         * modules/trunc: New file.
34302         * lib/trunc.c: New file.
34303         * m4/trunc.m4: New file.
34304         * lib/math.in.h (trunc): New declaration.
34305         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
34306         HAVE_DECL_TRUNC.
34307         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
34308         HAVE_DECL_TRUNC.
34309         * doc/functions/trunc.texi: Mention the 'trunc' module.
34310
34311 2007-10-03  Bruno Haible  <bruno@clisp.org>
34312
34313         * tests/test-fpending.c: New file, mostly copied
34314         from coreutils/lib/t-fpending.c.
34315         * modules/fpending-tests: New file.
34316
34317 2007-10-03  Bruno Haible  <bruno@clisp.org>
34318
34319         Port the stdio extensions to QNX (untested).
34320         * lib/fseterr.c (fseterr): Add support for QNX.
34321         * lib/fbufmode.c (fbufmode): Likewise.
34322         * lib/freadable.c (freadable): Likewise.
34323         * lib/fwritable.c (fwritable): Likewise.
34324         * lib/freading.c (freading): Likewise.
34325         * lib/fwriting.c (fwriting): Likewise.
34326         * lib/freadahead.c (freadahed): Likewise.
34327         * lib/fpurge.c (fpurge): Likewise.
34328         * lib/fseeko.c (rpl_fseeko): Likewise.
34329
34330 2007-10-03  Bruno Haible  <bruno@clisp.org>
34331             Jim Meyering  <jim@meyering.net>
34332             Eric Blake  <ebb9@byu.net>
34333
34334         * doc/relocatable.texi: Use @command instead of @program.
34335
34336 2007-10-02  Jim Meyering  <jim@meyering.net>
34337
34338         Perform one more "_.h" -> ".in.h" substitution.
34339         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
34340         instead of unistd_.h here, too.
34341
34342 2007-10-01  Bruno Haible  <bruno@clisp.org>
34343
34344         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
34345         Needed for the alloca-opt module.
34346
34347 2007-09-30  Bruno Haible  <bruno@clisp.org>
34348
34349         * lib/alloca.in.h: Renamed from lib/alloca_.h.
34350         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
34351         alloca_.h.
34352         * lib/argz.in.h: Renamed from lib/argz_.h.
34353         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
34354         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
34355         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
34356         byteswap_.h.
34357         * lib/dirent.in.h: Renamed from lib/dirent_.h.
34358         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
34359         dirent_.h.
34360         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
34361         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
34362         fcntl_.h.
34363         * lib/float.in.h: Renamed from lib/float_.h.
34364         * modules/float (Files, Makefile.am): Use float.in.h instead of
34365         float_.h.
34366         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
34367         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
34368         fnmatch_.h.
34369         * lib/getopt.in.h: Renamed from lib/getopt_.h.
34370         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
34371         getopt_.h.
34372         * lib/glob.in.h: Renamed from lib/glob_.h.
34373         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
34374         * lib/iconv.in.h: Renamed from lib/iconv_.h.
34375         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
34376         iconv_.h.
34377         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
34378         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
34379         inttypes_.h.
34380         * lib/locale.in.h: Renamed from lib/locale_.h.
34381         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
34382         locale_.h.
34383         * lib/math.in.h: Renamed from lib/math_.h.
34384         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
34385         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
34386         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
34387         of netinet_in_.h. Add dependency.
34388         * lib/poll.in.h: Renamed from lib/poll_.h.
34389         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
34390         * lib/search.in.h: Renamed from lib/search_.h.
34391         * modules/search (Files, Makefile.am): Use search.in.h instead of
34392         search_.h.
34393         * lib/signal.in.h: Renamed from lib/signal_.h.
34394         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
34395         _signal.h.
34396         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
34397         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
34398         stdbool_.h.
34399         * lib/stdint.in.h: Renamed from lib/stdint_.h.
34400         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
34401         stdint_.h.
34402         * lib/stdio.in.h: Renamed from lib/stdio_.h.
34403         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
34404         stdio_.h.
34405         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
34406         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
34407         stdlib_.h.
34408         * lib/string.in.h: Renamed from lib/string_.h.
34409         * modules/string (Files, Makefile.am): Use string.in.h instead of
34410         string_.h.
34411         * doc/gnulib-tool.texi (Initial import): Update.
34412         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
34413         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
34414         of sys_select_.h. Add dependency.
34415         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
34416         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
34417         of sys_socket_.h.
34418         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
34419         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
34420         sys_stat_.h.
34421         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
34422         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
34423         sys_time_.h.
34424         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
34425         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
34426         sysexits_.h.
34427         * lib/time.in.h: Renamed from lib/time_.h.
34428         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
34429         * lib/unistd.in.h: Renamed from lib/unistd_.h.
34430         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
34431         unistd_.h.
34432         * lib/wchar.in.h: Renamed from lib/wchar_.h.
34433         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
34434         wchar_.h.
34435         * lib/wctype.in.h: Renamed from lib/wctype_.h.
34436         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
34437         wctype_.h.
34438         * build-aux/bootstrap (slurp): Update.
34439         * lib/.cppi-disable: Update.
34440
34441 2007-09-30  Bruno Haible  <bruno@clisp.org>
34442
34443         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
34444         Needed on BeOS.
34445
34446 2007-09-30  Bruno Haible  <bruno@clisp.org>
34447
34448         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
34449
34450 2007-09-29  Bruno Haible  <bruno@clisp.org>
34451
34452         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
34453
34454 2007-09-29  Bruno Haible  <bruno@clisp.org>
34455
34456         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
34457         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
34458         * build-aux/install-reloc: Compile also areadlink.c.
34459         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
34460
34461 2007-09-29  Bruno Haible  <bruno@clisp.org>
34462
34463         * gnulib-tool (func_emit_initmacro_done): Indentation.
34464
34465 2007-09-29  Bruno Haible  <bruno@clisp.org>
34466
34467         * README: Add CVS checkout update instructions.
34468         Info from Bob Proulx <bob@proulx.com>.
34469
34470 2007-09-28  Eric Blake  <ebb9@byu.net>
34471
34472         Provide move-if-change.
34473         * build-aux/move-if-change: New file, based on best practice
34474         rather than any canonical upstream location.
34475
34476 2007-09-28  Jim Meyering  <jim@meyering.net>
34477
34478         Fix canonicalize loop-detection corner case.
34479         Do not attempt to stat the symlink values stored via seen_triple.
34480         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
34481         on linux-2.6.18, (but not 2.6.22).
34482         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
34483         triple_compare.  The former compares dev,ino,filename, while the latter
34484         would actually stat dirname(filename) when dev and ino were equal.
34485         * lib/hash-triple.c: Install <string.h>.
34486         (STREQ): Define.
34487         (triple_compare_ino_str): New function.
34488         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
34489
34490 2007-09-28  Eric Blake  <ebb9@byu.net>
34491
34492         Enforce that AC_REPLACE_FUNCS files exist.
34493         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
34494         override check for typos.
34495
34496         Fix test-closein on Solaris 10.
34497         * tests/test-closein.c (main): Don't assume stdin can be inherited
34498         closed on all systems.
34499         * tests/test-closein.sh: Likewise.
34500         Reported by Piotr Tarnowski.
34501
34502 2007-09-28  Jim Meyering  <jim@meyering.net>
34503
34504         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
34505
34506 2007-09-27  Jim Meyering  <jim@meyering.net>
34507
34508         canonicalize: Avoid a false-positive cycle failure.
34509         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
34510         Sort.  Remove cycle-check.
34511         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
34512         not cycle-check.h.
34513         (seen_triple): New function.
34514         (canonicalize_filename_mode): Use it instead of cycle-check.
34515         * tests/test-canonicalize.c: Add a test for this bug.
34516         * tests/test-canonicalize.sh: Set up and run the test.
34517
34518         New module, file-set, from coreutils.
34519         * modules/file-set: Define it.
34520         * lib/file-set.c, lib/file-set.h: Implement.
34521
34522         New module, hash-triple, from coreutils.
34523         * modules/hash-triple: Define it.
34524         * lib/hash-triple.c, lib/hash-triple.h: Implement.
34525
34526 2007-09-25  Eric Blake  <ebb9@byu.net>
34527
34528         Fix strerror on Interix.
34529         * lib/string_.h (strerror): Declare replacement.
34530         * doc/functions/strerror.texi (strerror): Document the Interix
34531         shortcoming.
34532         * modules/string (Makefile.am): Support new hooks.
34533         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
34534         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
34535         gl_FUNC_STRERROR_SEPARATE.
34536         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
34537         * lib/strerror.c (rpl_strerror): Provide replacement.
34538         * modules/strerror (Depends-on): Add string.
34539         (configure.ac): Detect use of module.
34540         * tests/test-strerror.c: New file.
34541         * modules/strerror-tests: New test module.
34542         * modules/argp (Depends-on): Add strerror.
34543         * modules/error (Depends-on): Likewise.
34544         Reported by Martin Koeppe.
34545
34546 2007-09-24  Bruno Haible  <bruno@clisp.org>
34547
34548         * README: Update git instructions.
34549
34550 2007-09-24  Eric Blake  <ebb9@byu.net>
34551
34552         Revert fpending breakage from 2007-09-08.
34553         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
34554         __fpending.c.
34555
34556 2007-09-24  Jim Meyering  <jim@meyering.net>
34557
34558         filenamecat.c: Add a test.
34559         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
34560         showing how the function works when DIR is the empty string.
34561
34562 2007-09-21  Simon Josefsson  <simon@josefsson.org>
34563
34564         * tests/test-canonicalize.sh: Turn on executable bit.
34565
34566 2007-09-19  Eric Blake  <ebb9@byu.net>
34567
34568         * README: Update CVS instructions.
34569
34570 2007-09-18  Bruno Haible  <bruno@clisp.org>
34571
34572         * modules/areadlink: New file.
34573         * lib/areadlink.h (areadlink): New declaration.
34574         * lib/areadlink.c: New file, based on lib/xreadlink.c.
34575
34576 2007-09-17  Jim Meyering  <jim@meyering.net>
34577
34578         * lib/savewd.c (ESTALE) [!defined]: Define.
34579         Reported to be required on Interix by Martin Koeppe.
34580
34581 2007-09-17  Bruno Haible  <bruno@clisp.org>
34582
34583         * gnulib-tool (func_version): Use $version.
34584
34585 2007-09-16  Bruno Haible  <bruno@clisp.org>
34586
34587         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
34588         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
34589         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
34590         Reported by Greg Schafer <gschafer@zip.com.au>.
34591
34592 2007-09-15  Bruno Haible  <bruno@clisp.org>
34593
34594         * gnulib-tool (sed): Try a little harder to make bash understand the
34595         alias.
34596         Reported by Bruce Korb <bruce.korb@gmail.com>.
34597
34598 2007-09-13  Eric Blake  <ebb9@byu.net>
34599
34600         * ChangeLog: Remove conflict markers.
34601
34602 2007-09-13  Simon Josefsson  <simon@josefsson.org>
34603
34604         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
34605         Reported by Bruno Haible <bruno@clisp.org>.
34606
34607 2007-09-12  Bruno Haible  <bruno@clisp.org>
34608
34609         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
34610         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
34611         is not defined.
34612
34613 2007-09-12  Eric Blake  <ebb9@byu.net>
34614
34615         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
34616         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
34617         Autoconf definition.
34618         * modules/euidaccess (Depends-on): Add extensions, for
34619         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
34620         * modules/fnmatch (Depends-on): Likewise.
34621         * modules/getaddrinfo (Depends-on): Likewise.
34622         * modules/getdelim (Depends-on): Likewise.
34623         * modules/getline (Depends-on): Likewise.
34624         * modules/getsubopt (Depends-on): Likewise.
34625         * modules/gettext (Depends-on): Likewise.
34626         * modules/group-member (Depends-on): Likewise.
34627         * modules/mbchar (Depends-on): Likewise.
34628         * modules/memmem (Depends-on): Likewise.
34629         * modules/mempcpy (Depends-on): Likewise.
34630         * modules/memrchr (Depends-on): Likewise.
34631         * modules/pagealign_alloc (Depends-on): Likewise.
34632         * modules/readutmp (Depends-on): Likewise.
34633         * modules/stpcpy (Depends-on): Likewise.
34634         * modules/stpncpy (Depends-on): Likewise.
34635         * modules/strchrnul (Depends-on): Likewise.
34636         * modules/strndup (Depends-on): Likewise.
34637         * modules/strsep (Depends-on): Likewise.
34638         * modules/strverscmp (Depends-on): Likewise.
34639         * modules/vasprintf (Depends-on): Likewise.
34640         * modules/wcwidth (Depends-on): Likewise.
34641         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
34642         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
34643         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
34644         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
34645         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
34646         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
34647         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
34648         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
34649         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
34650         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34651         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
34652         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
34653         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
34654         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
34655         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
34656         * m4/readutmp.m4 (gl_READUTMP): Likewise.
34657         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34658         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
34659         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
34660         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
34661         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
34662         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
34663         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
34664         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
34665         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
34666         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
34667         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
34668         so that lock.m4 can be used in gettext without extensions module.
34669
34670 2007-09-11  Bruno Haible  <bruno@clisp.org>
34671
34672         * m4/isc-posix.m4: Remove file.
34673         Suggested by Eric Blake.
34674
34675 2007-09-11  Eric Blake  <ebb9@byu.net>
34676
34677         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
34678
34679 2007-09-10  Bruno Haible  <bruno@clisp.org>
34680
34681         * posix-modules: Fix typo in error message.
34682         Reported by Matt <mkraai@beckman.com>.
34683
34684 2007-09-09  Bruno Haible  <bruno@clisp.org>
34685
34686         * doc/functions/getdelim.texi: Update list of platforms lacking the
34687         function.
34688         * doc/functions/getline.texi: Likewise.
34689
34690 2007-09-09  Jim Meyering  <jim@meyering.net>
34691
34692         * lib/hash.c (hash_initialize): Detect calloc failure.
34693         Reported by Bruno Haible.
34694
34695 2007-09-09  Bruno Haible  <bruno@clisp.org>
34696
34697         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
34698         malloc or realloc fails.
34699
34700 2007-09-09  Bruno Haible  <bruno@clisp.org>
34701
34702         * modules/getcwd (Depends-on): Add malloc-posix.
34703         * modules/glob (Depends-on): Likewise.
34704         * modules/putenv (Depends-on): Likewise.
34705         * modules/strdup (Depends-on): Likewise.
34706         * modules/getdelim (Depends-on): Add realloc-posix.
34707         * modules/read-file (Depends-on): Likewise.
34708
34709 2007-09-09  Bruno Haible  <bruno@clisp.org>
34710
34711         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
34712         (gl_FUNC_MALLOC_POSIX): Require it.
34713         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
34714         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
34715         * modules/realloc (Files): Add m4/malloc.m4.
34716         * modules/calloc (Files): Likewise.
34717
34718 2007-09-09  Bruno Haible  <bruno@clisp.org>
34719
34720         * modules/malloc-posix: New file.
34721         * modules/malloc (Depends-on): Add malloc-posix.
34722         * lib/malloc.c: Include errno.h.
34723         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
34724         and a POSIX-compatible malloc into a single function. Set ENOMEM
34725         when returning NULL.
34726         * m4/malloc.m4: New file.
34727         * doc/functions/malloc.texi: Mention the malloc-posix module.
34728         * lib/stdlib_.h (malloc): New declaration.
34729         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
34730         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
34731         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
34732         and HAVE_MALLOC_POSIX.
34733
34734 2007-09-09  Bruno Haible  <bruno@clisp.org>
34735
34736         * modules/realloc-posix: New file.
34737         * modules/realloc (Depends-on): Add realloc-posix.
34738         * lib/realloc.c: Include errno.h.
34739         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
34740         and a POSIX-compatible realloc into a single function. Set ENOMEM
34741         when returning NULL.
34742         * m4/realloc.m4: New file.
34743         * doc/functions/realloc.texi: Mention the realloc-posix module.
34744         * lib/stdlib_.h (realloc): New declaration.
34745         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
34746         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
34747         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
34748         and HAVE_REALLOC_POSIX.
34749
34750 2007-09-09  Bruno Haible  <bruno@clisp.org>
34751
34752         * modules/calloc-posix: New file.
34753         * modules/calloc (Depends-on): Add calloc-posix.
34754         * lib/calloc.c: Include errno.h.
34755         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
34756         and a POSIX-compatible calloc into a single function. Set ENOMEM
34757         when returning NULL.
34758         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
34759         * doc/functions/calloc.texi: Mention the calloc-posix module.
34760         * lib/stdlib_.h (calloc): New declaration.
34761         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
34762         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
34763         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
34764         and HAVE_CALLOC_POSIX.
34765
34766 2007-09-09  Bruno Haible  <bruno@clisp.org>
34767
34768         Allow for modules to show an arbitrary notice.
34769         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
34770         * gnulib-tool: New option --extract-notice.
34771         (func_usage): Document it.
34772         (sed_extract_prog): Update.
34773         (func_get_notice): New function.
34774         (func_modules_notice): New function.
34775         (func_import, func_create_testdir): Invoke it.
34776         Suggested by Jim Meyering.
34777
34778 2007-09-09  Bruno Haible  <bruno@clisp.org>
34779
34780         * gnulib-tool: New options --verbose, --quiet.
34781         (func_usage): Document them.
34782         (verbose): New variable.
34783         (func_execute_command): New function.
34784         (func_import): Don't show the module list and the file list if
34785         $verbose < 0.
34786         (func_create_testdir): Likewise. Use func_execute_command.
34787         (func_create_megatestdir): Use func_execute_command.
34788
34789 2007-09-08  Bruno Haible  <bruno@clisp.org>
34790
34791         * gnulib-tool (func_import): Prefer rsync over wget when available,
34792         for fetching the PO files.
34793
34794 2007-09-08  Bruno Haible  <bruno@clisp.org>
34795
34796         * posix-modules: New file. Portions copied from gnulib-tool.
34797         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
34798
34799 2007-09-08  Jim Meyering  <jim@meyering.net>
34800
34801         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
34802         * lib/fpending.h: Rename from __fpending.h.
34803         * lib/fpending.c: Rename from __fpending.c.
34804         Include "fpending.h", not "__fpending.h".
34805         * lib/__fpending.h, lib/__fpending.c: Remove files.
34806         * modules/fpending (Files): Reflect new file names.
34807         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
34808
34809 2007-09-08  Bruno Haible  <bruno@clisp.org>
34810
34811         * m4/inttypes-h.m4: Remove stub file.
34812
34813 2007-09-07  Simon Josefsson  <simon@josefsson.org>
34814
34815         * doc/headers/stdint.texi: Discuss #include_next issue.
34816
34817 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
34818
34819         * build-aux/bootstrap: Remove obsolete comment about wget --help.
34820
34821 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34822
34823         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
34824         in variable name.
34825
34826 2007-09-03  Jim Meyering  <jim@meyering.net>
34827
34828         New module: git-version-gen.
34829         * modules/git-version-gen: New file.
34830
34831         Import changes from coreutils for bootstrap script.
34832
34833         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
34834
34835         bootstrap: uses rsync to download the .po files
34836         * build-aux/bootstrap (po_download_command_format): New global.
34837         (download_po_files): Use rsync.
34838         (update_po_files): Don't remove .po files after download,
34839         so future rsync runs can take advantage of the copies.
34840
34841         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
34842
34843         Solve the unnecessary-.po-file-regeneration problem once and for all.
34844         * build-aux/bootstrap (download_po_files): New function, renamed from
34845         get_translations.  Now, downloads, but doesn't update LINGUAS.
34846         (update_po_files): New function.
34847
34848         bootstrap: Ignore more.
34849         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
34850         uniwidth to e.g., lib/.gitignore.
34851         (slurp): Handle the sys_stat_.h -> sys mapping, too.
34852
34853         * build-aux/bootstrap: New setting: vc_ignore.
34854         (insert_sorted_if_absent): Create $file if absent.
34855         Adapt to new, possibly empty, list: $vc_ignore.
34856
34857         bootstrap: generate more ignorable names
34858         * build-aux/bootstrap (slurp): When generating ignorable names,
34859         also map .sin to .sed, .gperf to .c, and .y to .c.
34860
34861 2007-09-03  Jim Meyering  <jim@meyering.net>
34862
34863         * build-aux/git-version-gen: New file, from coreutils.  For details, see
34864         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
34865
34866 2007-09-02  Bruno Haible  <bruno@clisp.org>
34867
34868         Fix mis-recognition of 'mcs' on QNX 6.
34869         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
34870         output contains the string "Mono".
34871         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
34872         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
34873
34874 2007-09-01  Bruno Haible  <bruno@clisp.org>
34875
34876         Fix collision between uniwidth/* and linebreak modules.
34877         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
34878         u32_width): Remove declarations.
34879         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
34880         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
34881         streq3, streq2, streq1, streq0): Remove functions.
34882         (STREQ): Remove macro.
34883         (is_cjk_encoding): Remove function.
34884         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
34885         (uc_width, u8_width, u16_width, u32_width): Remove functions.
34886         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
34887         * NEWS: Document the change.
34888
34889 2007-09-01  Bruno Haible  <bruno@clisp.org>
34890
34891         * lib/streq.h: Add double-inclusion guard.
34892
34893 2007-09-01  Karl Berry  <karl@gnu.org>
34894
34895         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
34896
34897 2007-08-28  Jim Meyering  <jim@meyering.net>
34898
34899         Rename mreadlink_with_size to areadlink_with_size.
34900         * NEWS: Document the change.
34901         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
34902         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
34903         * lib/mreadlink.h: Rename this to...
34904         * lib/areadlink.h: ...this.
34905         * modules/mreadlink-with-size: Rename this to...
34906         * modules/areadlink-with-size: ...this.
34907         * lib/canonicalize.c: Reflect the renaming.
34908         * modules/canonicalize: Likewise.
34909
34910 2007-08-26  Bruno Haible  <bruno@clisp.org>
34911
34912         * gnulib-tool (func_import): When deciding which files to remove,
34913         consider also dangling symbolic links.
34914         Reported by Eric Blake.
34915
34916 2007-08-26  Bruno Haible  <bruno@clisp.org>
34917
34918         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
34919
34920 2007-08-23  Simon Josefsson  <simon@josefsson.org>
34921
34922         * lib/readline.c: Don't include getline.h, the prototype is now
34923         found in stdio.h.
34924
34925 2007-08-23  Jim Meyering  <jim@meyering.net>
34926
34927         Getdelim touchup.
34928         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
34929         around the funlockfile call, since funlockfile never sets errno.
34930         Don't set errno upon failed realloc.
34931
34932 2007-08-22  Eric Blake  <ebb9@byu.net>
34933
34934         Getline touchups.
34935         * lib/getdelim.c (getdelim): Revert regression that required *n to
34936         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
34937         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
34938         getdelim, rather than whether implementation is missing.
34939         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
34940         * lib/stdio_.h (getline): Also declare if replacement is
34941         required.
34942         * doc/functions/getdelim.texi: New file.
34943         * doc/functions/getline.texi: Likewise.
34944         * doc/gnulib.texi (Function Substitutes): Add new files.
34945         Reported by Bruno Haible.
34946
34947 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
34948
34949         * users.txt: Add Guile.
34950
34951 2007-08-22  Eric Blake  <ebb9@byu.net>
34952
34953         * tests/test-getdelim.c (main): Use remove, not unlink.
34954         * tests/test-getline.c (main): Likewise.
34955
34956         Move getline and getdelim into stdio.h, per POSIX 200x.
34957         * modules/getline (Files): Remove getline.h.
34958         (Depends-on): Add stdio.
34959         (configure.ac): Add module indicator.
34960         * modules/getdelim (Files): Remove getdelim.h.
34961         (Depends-on): Add stdio.
34962         (configure.ac): Add module indicator.
34963         * modules/stdio (Makefile.am): Work with new indicators.
34964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
34965         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
34966         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
34967         * lib/getdelim.h: Delete.
34968         * lib/getline.h: Delete.
34969         * lib/stdio_.h (getdelim, getline): Declare.
34970         * modules/getdelim-tests: New module.
34971         * modules/getline-tests: Likewise.
34972         * tests/test-getdelim.c: New file.
34973         * tests/test-getline.c: Likewise.
34974         * NEWS: Document the change.
34975         * lib/getline.c: Update choice of header.
34976         * lib/csharpcomp.c: Likewise.
34977         * lib/getpass.c: Likewise.
34978         * lib/javacomp.c: Likewise.
34979         * lib/javaversion.c: Likewise.
34980         * lib/yesno.c: Likewise.
34981         * lib/getdelim.c: Likewise.
34982         (getdelim): Set errno on failure, and avoid memory leak.
34983
34984 2007-08-19  Bruno Haible  <bruno@clisp.org>
34985
34986         * modules/closein (Depends-on): Add freadahead.
34987         * lib/closein.c: Include freadahead.h.
34988         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
34989         is zero.
34990
34991 2007-08-19  Bruno Haible  <bruno@clisp.org>
34992
34993         * modules/freadahead-tests: New file.
34994         * tests/test-freadahead.sh: New file.
34995         * tests/test-freadahead.c: New file.
34996
34997         * modules/freadahead: New file.
34998         * lib/freadahead.h: New file.
34999         * lib/freadahead.c: New file.
35000         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
35001         fbufmode, fpurge, freadable, fwritable.
35002
35003 2007-08-19  Eric Blake  <ebb9@byu.net>
35004
35005         Test yesno in combination with closein.
35006         * lib/yesno.c (yesno): Document use of stdin.
35007         * modules/yesno-tests (Files): New module.
35008         * tests/test-yesno.c (main): New file.
35009         * tests/test-yesno.sh: Likewise.
35010
35011 2007-08-19  Bruno Haible  <bruno@clisp.org>
35012
35013         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
35014         * lib/fseeko.c (rpl_fseeko): Likewise.
35015         * lib/fseterr.c (fseterr): Likewise.
35016
35017 2007-08-19  Bruno Haible  <bruno@clisp.org>
35018
35019         * tests/test-lseek.c (main): Disable a test for BeOS.
35020         * doc/functions/lseek.texi: Document the BeOS bug.
35021
35022 2007-08-19  Bruno Haible  <bruno@clisp.org>
35023             Eric Blake  <ebb9@byu.net>
35024
35025         * lib/lseek.c: Include <sys/stat.h>.
35026         (rpl_lseek): Add workaround code also for Unix platforms.
35027         Needed for BeOS.
35028         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
35029         * doc/functions/lseek.texi: Document BeOS definiency.
35030
35031 2007-08-18  Bruno Haible  <bruno@clisp.org>
35032
35033         * modules/fstrcmp-tests: New file.
35034         * tests/test-fstrcmp.c: New file.
35035
35036 2007-08-18  Bruno Haible  <bruno@clisp.org>
35037
35038         * modules/fstrcmp: New file, from GNU gettext with modifications.
35039         * lib/fstrcmp.h: New file, from GNU gettext.
35040         * lib/fstrcmp.c: New file, from GNU gettext.
35041         * MODULES.html.sh (String handling): Add fstrcmp.
35042
35043 2007-08-18  Bruno Haible  <bruno@clisp.org>
35044
35045         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
35046         'bool'.
35047         (diag, compareseq): Remove const from the ctxt argument.
35048         (USE_HEURISTIC): Undefine at the end.
35049
35050 2007-08-18  Jim Meyering  <jim@meyering.net>
35051
35052         New file: lib/idcache.h
35053         * NEWS: Mention the addition.
35054         * modules/idcache (Files): Add lib/idcache.h
35055         * lib/idcache.c: Include "idcache.h".
35056         Don't include <sys/types.h>.
35057         Add a FIXME comment.
35058         Move file-scoped "static" declarations to the top.
35059         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
35060
35061 2007-08-17  Bruno Haible  <bruno@clisp.org>
35062         and Paul Eggert  <eggert@cs.ucla.edu>
35063
35064         * MODULES.html.sh: Add diffseq.
35065         * modules/diffseq: New file.
35066         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
35067         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
35068
35069 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
35070
35071         Import changes from coreutils for bootstrap script.
35072
35073         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
35074
35075         * build-aux/bootstrap (slurp): Work even in environments where
35076         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
35077         current code does not slurp files whose names start with ".", and
35078         this looks like it might be a troublesome area.
35079
35080         2007-07-11  Jim Meyering  <jim@meyering.net>
35081
35082         If there's a GPL vN copyright comment, require that N == 3.
35083
35084         2007-07-08  Jim Meyering  <jim@meyering.net>
35085
35086         Run the coreutils-specific code only if tests/Makefile.am.in exists.
35087         * build-aux/bootstrap (mam_template): Move definition out of loop.
35088
35089         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
35090
35091         * build-aux/bootstrap (symlink_to_dir): Rename function from
35092         symlink_to_gnulib.  Add a directory parameter.  Update all
35093         callers.
35094         (cp_mark_as_generated): Also check for -- and link to -- files in
35095         gl/.
35096
35097         2007-07-08  Jim Meyering  <jim@meyering.net>
35098
35099         Adapt to deeper hierarchy in gnulib.
35100         * build-aux/bootstrap (symlink_to_dir): If the destination
35101         directory doesn't exist, create it. This is required at least for
35102         "lib/uniwidth/cjk.h".
35103
35104         2007-05-15  Jim Meyering  <jim@meyering.net>
35105
35106         * build-aux/bootstrap: Now that generated Makefile.am files
35107         are no longer under version control, they must be created at
35108         bootstrap time.
35109
35110 2007-08-14  Ben Pfaff  <blp@gnu.org>
35111
35112         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
35113
35114 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
35115
35116         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
35117         given the changes below.
35118         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
35119         even on hosts that have padding bits beyond the supported 64.
35120
35121 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
35122
35123         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
35124         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
35125         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
35126         depends on it.
35127         (xstrtol_error): Remove.
35128         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
35129         but with a different signature.
35130         (ATTRIBUTE_NORETURN, __attribute__): New macros.
35131         * lib/xstrtol-error.c: Include exitfail.h.
35132         (xstrtol_fatal): New function, with a different signature from the
35133         old xstrtol_error, so that the caller need not worry about passing
35134         in an exit status, or about storage management of the option argument.
35135         (xstrtol_error): Now a static function.  Redo signature to
35136         implement xstrtol_fatal.  Output the correct number of hyphens in
35137         front of the option so that the caller need not worry about
35138         storage management.
35139         (N_): New macro.
35140         (_): Remove; not used now.
35141         * modules/xstrtol: Depend on getopt.
35142         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
35143         of old STRTOL_FATAL_ERROR macro.
35144         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
35145         of test program.
35146         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
35147         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
35148
35149 2007-08-08  Eric Blake  <ebb9@byu.net>
35150
35151         * lib/xstrtol-error.c: Add missing include.
35152
35153         Move xstrtol messages into gnulib domain, when --pobase is used.
35154         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
35155         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
35156         * modules/xstrtol (Files): Distribute new file.
35157         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
35158         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
35159         * tests/test-xstrtol.c: ...into new file.
35160         * tests/test-xstrtoul.c: Also test xstrtoul.
35161         * tests/test-xstrtoimax.c: Also test xstrtoimax.
35162         * tests/test-xstrtoumax.c: Also test xstrtoumax.
35163         * tests/test-xstrtol.sh: Drive the tests.
35164         * tests/test-xstrtoimax.sh: Likewise.
35165         * tests/test-xstrtoumax.sh: Likewise.
35166         * modules/xstrtol-tests: New module.
35167         * modules/xstrtoimax-tests: Likewise.
35168         * modules/xstrtoumax-tests: Likewise.
35169
35170 2007-08-08  Jim Meyering  <jim@meyering.net>
35171
35172         New function: mfile_name_concat.
35173         * lib/filenamecat.c (mfile_name_concat): New function, just like
35174         file_name_concat, but return NULL upon failure rather than exiting
35175         with a diagnostic.
35176         * lib/filenamecat.h: Declare it.
35177
35178 2007-08-07  Bruno Haible  <bruno@clisp.org>
35179
35180         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
35181         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
35182         warning from gcc.
35183         Reported by Eric Blake.
35184
35185 2007-08-07  Simon Josefsson  <simon@josefsson.org>
35186
35187         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
35188         * modules/crypto/arcfour (License): Likewise.
35189         * modules/crypto/des-tests (License): Likewise.
35190         * modules/crypto/gc-arctwo-tests (License): Likewise.
35191         * modules/crypto/gc-des-tests (License): Likewise.
35192         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
35193         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
35194         * modules/crypto/gc-md2-tests (License): Likewise.
35195         * modules/crypto/gc-md4-tests (License): Likewise.
35196         * modules/crypto/gc-md5-tests (License): Likewise.
35197         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
35198         * modules/crypto/gc-rijndael-tests (License): Likewise.
35199         * modules/crypto/gc-sha1-tests (License): Likewise.
35200         * modules/crypto/gc-tests (License): Likewise.
35201         * modules/crypto/hmac-md5 (License): Likewise.
35202         * modules/crypto/hmac-sha1 (License): Likewise.
35203         * modules/crypto/md2-tests (License): Likewise.
35204         * modules/crypto/md4-tests (License): Likewise.
35205         * modules/crypto/md5 (License): Likewise.
35206         * modules/crypto/rijndael (License): Likewise.
35207         * modules/crypto/sha1 (License): Likewise.
35208         * modules/memxor (License): Likewise.
35209
35210 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
35211         and Bruno Haible  <bruno@clisp.org>
35212
35213         * NEWS: Describe interface changes to human, xstrtol.
35214         * lib/human.h: Include <xstrtol.h>.
35215         (human_options): Return enum strtol_error, not int.  Remove
35216         bool arg; take int * instead.
35217         * lib/human.c: Don't include "gettext.h".
35218         (_): Remove; no longer used.
35219         Don't include <xstrtol.h>, since human.h does it.
35220         (human_options): Adjust to abovementioned interface changes.
35221         Do not report error to stderr; that's now the caller's
35222         responsibility.
35223         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
35224         interface change.
35225         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
35226         Str, Argument_type_string.  All uses changed.  Put " argument"
35227         in diagnostics to make them clearer.  Change wording of suffix
35228         message for clarity.
35229         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
35230         Argument_type_string.
35231         (STRTOL_FATAL_WARN): Remove; no longer used.
35232         * modules/human (Depends-on): Remove gettext-h.
35233
35234 2007-08-06  Simon Josefsson  <simon@josefsson.org>
35235
35236         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
35237
35238 2007-07-31  Bruno Haible  <bruno@clisp.org>
35239
35240         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
35241         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
35242         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
35243
35244 2007-07-31  Bruno Haible  <bruno@clisp.org>
35245
35246         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
35247         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
35248
35249 2007-07-30  Bruno Haible  <bruno@clisp.org>
35250
35251         * modules/base64 (License): Use the synonymous term "LGPLv2+".
35252         * modules/c-ctype (License): Likewise.
35253         * modules/c-strcase (License): Likewise.
35254         * modules/check-version (License): Likewise.
35255         * modules/iconv (License): Likewise.
35256         * modules/iconv_open (License): Likewise.
35257         * modules/read-file (License): Likewise.
35258         * modules/striconv (License): Likewise.
35259         * modules/strverscmp (License): Likewise.
35260         * modules/vasprintf (License): Likewise.
35261         * modules/crypto/des (License): Likewise.
35262         * modules/crypto/gc (License): Likewise.
35263         * modules/crypto/gc-arcfour (License): Likewise.
35264         * modules/crypto/gc-arctwo (License): Likewise.
35265         * modules/crypto/gc-des (License): Likewise.
35266         * modules/crypto/gc-hmac-md5 (License): Likewise.
35267         * modules/crypto/gc-hmac-sha1 (License): Likewise.
35268         * modules/crypto/gc-md2 (License): Likewise.
35269         * modules/crypto/gc-md4 (License): Likewise.
35270         * modules/crypto/gc-md5 (License): Likewise.
35271         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
35272         * modules/crypto/gc-random (License): Likewise.
35273         * modules/crypto/gc-rijndael (License): Likewise.
35274         * modules/crypto/gc-sha1 (License): Likewise.
35275         * modules/crypto/md2 (License): Likewise.
35276         * modules/crypto/md4 (License): Likewise.
35277
35278 2007-07-30  Jim Meyering  <jim@meyering.net>
35279
35280         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
35281         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
35282         it has valid stat data.  This bug would cause du not to count the
35283         sizes of inaccessible directories.
35284         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
35285         in <http://bugzilla.redhat.com/250077>.
35286
35287 2007-07-25  Peter O'Gorman  <peter@pogma.com>
35288             Bruno Haible  <bruno@clisp.org>
35289
35290         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
35291         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
35292         #include_next, gives a diagnostic about it, but reports no error in
35293         the exit code.
35294         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
35295
35296 2007-07-24  Ben Pfaff  <blp@gnu.org>
35297
35298         Improve name: "count-one-bits" is better than "popcount".
35299         * MODULES.html.sh: Update name.
35300         * lib/popcount.h: Renamed lib/count-one-bits.h.
35301         (popcount): Renamed count_one_bits.
35302         (popcountl): Renamed count_one_bits_l.
35303         (popcountll): Renamed count_one_bits_ll.
35304         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
35305         * modules/popcount: Renamed module/count-one-bits.
35306         * modules/popcount-tests: Renamed module/count-one-bits-tests.
35307         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
35308
35309 2007-07-23  Ben Pfaff  <blp@gnu.org>
35310
35311         * lib/popcount.h (popcount32): Reduce size of constants, to allow
35312         better code generation, and add U to large constants to avoid
35313         warnings, in non-GCC case.
35314         Suggested by Bruno Haible.
35315
35316 2007-07-23  Ben Pfaff  <blp@gnu.org>
35317
35318         * lib/popcount.h: Use verify_true instead of if...abort.
35319         * modules/popcount: Depend on verify module.
35320         Suggested by Jim Meyering.
35321
35322 2007-07-23  Bruno Haible  <bruno@clisp.org>
35323
35324         * gnulib-tool (func_import): Create a .cvsignore file also when the
35325         directory is not yet in CVS but the toplevel directory is. When
35326         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
35327         Reported by Karl Berry.
35328
35329 2007-07-22  Ben Pfaff  <blp@gnu.org>
35330
35331         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
35332         case.
35333         Suggested by Eric Blake.
35334
35335 2007-07-22  Ben Pfaff  <blp@gnu.org>
35336
35337         New module: popcount.
35338         * MODULES.html.sh: Add popcount.
35339         * modules/popcount: New file.
35340         * modules/popcount-tests: New file.
35341         * tests/test-popcount.c: New file.
35342         * lib/popcount.h: New file.
35343         * m4/popcount.m4: New file.
35344
35345 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
35346
35347         * build-aux/announce-gen: Update to GPLv3.
35348
35349         * build-aux/config.guess: Update from config.
35350
35351 2007-07-21  Bruno Haible  <bruno@clisp.org>
35352
35353         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
35354         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
35355
35356 2007-07-20  Jim Meyering  <jim@meyering.net>
35357
35358         * check-module: Diagnose a self-dependency.
35359
35360 2007-07-19  Bruno Haible  <bruno@clisp.org>
35361
35362         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
35363         empty.
35364         Reported by Eric Blake.
35365
35366 2007-07-18  Bruno Haible  <bruno@clisp.org>
35367
35368         * gnulib-tool: New options --po-base, --po-domain.
35369         (func_usage): Document them.
35370         (pobase, po_domain): New variables.
35371         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
35372         DEFAULT_TEXT_DOMAIN.
35373         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
35374         (func_import): Consider pobase and po_domain. Create a po/ directory.
35375         (func_create_testdir): Set pobase and po_domain to empty.
35376         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
35377         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
35378
35379 2007-07-18  Bruno Haible  <bruno@clisp.org>
35380
35381         * gnulib-tool (func_get_automake_snippet): Synthesize also an
35382         EXTRA_DIST augmentation for files in build-aux/.
35383
35384 2007-07-16  Bruno Haible  <bruno@clisp.org>
35385
35386         * modules/lseek (License): Use the synonymous term "LGPLv2+".
35387         * modules/getdelim (License): Likewise.
35388
35389 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35390
35391         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
35392         * modules/d-type (License): Likewise.
35393         * modules/extensions (License): Likewise.
35394         * modules/fnmatch (License): Likewise.
35395         * modules/fseeko (License): Likewise.
35396         * modules/getaddrinfo (License): Likewise.
35397         * modules/getline (License): Likewise.
35398         * modules/getlogin_r (License): Likewise.
35399         * modules/getpass (License): Likewise.
35400         * modules/gettimeofday (License): Likewise.
35401         * modules/glob (License): Likewise.
35402         * modules/inet_ntop (License): Likewise.
35403         * modules/malloc (License): Likewise.
35404         * modules/malloca (License): Likewise.
35405         * modules/memmem (License): Likewise.
35406         * modules/mempcpy (License): Likewise.
35407         * modules/memset (License): Likewise.
35408         * modules/minmax (License): Likewise.
35409         * modules/mktime (License): Likewise.
35410         * modules/netinet_in (License): Likewise.
35411         * modules/pathmax (License): Likewise.
35412         * modules/poll (License): Likewise.
35413         * modules/regex (License): Likewise.
35414         * modules/snprintf (License): Likewise.
35415         * modules/stdbool (License): Likewise.
35416         * modules/stdint (License): Likewise.
35417         * modules/stdio (License): Likewise.
35418         * modules/strcase (License): Likewise.
35419         * modules/strcasestr (License): Likewise.
35420         * modules/strdup (License): Likewise.
35421         * modules/string (License): Likewise.
35422         * modules/strndup (License): Likewise.
35423         * modules/strnlen (License): Likewise.
35424         * modules/strpbrk (License): Likewise.
35425         * modules/strptime (License): Likewise.
35426         * modules/strsep (License): Likewise.
35427         * modules/sys_select (License): Likewise.
35428         * modules/sys_socket (License): Likewise.
35429         * modules/sys_stat (License): Likewise.
35430         * modules/sys_time (License): Likewise.
35431         * modules/time (License): Likewise.
35432         * modules/time_r (License): Likewise.
35433         * modules/timegm (License): Likewise.
35434         * modules/unistd (License): Likewise.
35435         * modules/vsnprintf (License): Likewise.
35436         * modules/wctype (License): Likewise.
35437
35438 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35439
35440         * modules/argz (License): LGPLv2+.
35441
35442 2007-07-15  Karl Berry  <karl@gnu.org>
35443
35444         * doc/gnulib.texi: revise node structure per new fdl.texi.
35445
35446 2007-07-14  Bruno Haible  <bruno@clisp.org>
35447
35448         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
35449         the output file.
35450         * lib/uniname/uninames.h: Regenerated.
35451
35452 2007-07-14  Karl Berry  <karl@gnu.org>
35453
35454         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
35455         omitting sectioning and index commands.
35456
35457 2007-07-13  Bruno Haible  <bruno@clisp.org>
35458
35459         New gnulib-tool option --more-symlinks.
35460         * gnulib-tool (func_usage): Document --more-symlinks.
35461         (do_copyrights): New variable.
35462         Recognize option --more-symlinks.
35463         (func_import): Don't add a copyright notice transform to
35464         sed_transform_lib_file if do_copyrights is empty.
35465
35466 2007-07-13  Bruno Haible  <bruno@clisp.org>
35467
35468         * lib/vasnprintf.c (decimal_point_char): Define also if
35469         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
35470         && !NEED_PRINTF_DIRECTIVE_A.
35471         Reported by Clemens Koller <clemens.koller@anagramm.de> via
35472         Gary V. Vaughan <gary@gnu.org>.
35473
35474 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
35475
35476         * lib/inttypes_.h: Undo previous change, since it was fixed
35477         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
35478
35479 2007-07-13  Bruno Haible  <bruno@clisp.org>
35480
35481         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
35482         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
35483
35484 2007-07-13  Jim Meyering  <jim@meyering.net>
35485
35486         df: Don't fail for Tru64's "file-on-file mount".
35487         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
35488         so we fall through and use statfs instead.  Details here:
35489         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
35490         Reported by Albert Chin.
35491
35492 2007-07-13  Bruno Haible  <bruno@clisp.org>
35493
35494         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
35495         * modules/configmake (License): Likewise.
35496         * modules/gettext (License): Likewise.
35497         * modules/gettext-h (License): Likewise.
35498         * modules/include_next (License): Likewise.
35499         * modules/link-warning (License): Likewise.
35500         * modules/localcharset (License): Likewise.
35501         * modules/localename (License): Likewise.
35502         * modules/lock (License): Likewise.
35503         * modules/relocatable-lib-lgpl (License): Likewise.
35504         * modules/size_max (License): Likewise.
35505         * modules/vasnprintf (License): Likewise.
35506         * modules/wchar (License): Likewise.
35507         * modules/xsize (License): Likewise.
35508
35509 2007-07-13  Bruno Haible  <bruno@clisp.org>
35510
35511         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
35512         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
35513
35514 2007-07-12  Bruno Haible  <bruno@clisp.org>
35515
35516         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
35517         in the modules files.
35518
35519 2007-07-11  Karl Berry  <karl@gnu.org>
35520
35521         * MODULES.html.sh (func_module): use
35522          sed -e '\|^'"${includefile}"'$|d'
35523          instead of /.../d, to avoid errors on $includefile's containing /.
35524
35525 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
35526
35527         * gnulib-tool (func_import): Avoid duplication of --avoid
35528         statements
35529         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
35530         names to `_' in variable names.
35531
35532 2007-07-10  Eric Blake  <ebb9@byu.net>
35533
35534         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
35535         * NEWS: Document this change.
35536
35537 2007-07-08  Bruno Haible  <bruno@clisp.org>
35538
35539         Update to Unicode 5.0.
35540         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
35541         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
35542         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
35543         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
35544         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
35545         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
35546         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
35547         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
35548         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
35549         U+10A3F, U+1D242..U+1D244.
35550         (nonspacing_table_ind): Update.
35551         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
35552         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
35553
35554 2007-07-08  Bruno Haible  <bruno@clisp.org>
35555
35556         Update to Unicode 5.0.
35557         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
35558         code transform. Extend the name index field of unicode_name_to_code and
35559         unicode_code_to_name from 16 to 24 bits.
35560         * lib/uniname/uniname.c (unicode_character_name,
35561         unicode_name_character): Add the range 0x12xxx to the code transform.
35562         * lib/uniname/uninames.h: Regenerated.
35563         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
35564
35565 2007-07-07  Bruno Haible  <bruno@clisp.org>
35566
35567         * modules/wcwidth-tests: New file.
35568         * tests/test-wcwidth.c: New file.
35569
35570         Work around MacOS X wcwidth() bug.
35571         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
35572         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
35573         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
35574         original wcwidth in non-UTF-8 locales.
35575         * modules/wcwidth (Depends-on): Add localcharset, streq,
35576         uniwidth/width.
35577         * doc/functions/wcwidth.texi: Update.
35578
35579 2007-07-07  Bruno Haible  <bruno@clisp.org>
35580
35581         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
35582         (wcwidth): New declaration.
35583         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
35584         macros.
35585         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
35586         here. Prepare for creating <wchar.h> unconditionally.
35587         * modules/wchar (Depends-on): Add link-warning.
35588         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
35589         REPLACE_WCWIDTH, and GL_LINK_WARNING.
35590         * lib/wcwidth.h: Remove file.
35591         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
35592         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
35593         * modules/wcwidth (Files): Remove lib/wcwidth.h.
35594         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
35595         (Include): Replace wcwidth.h with <wchar.h>.
35596         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
35597         * lib/mbchar.h: Don't include wcwidth.h.
35598         * lib/mbswidth.c: Likewise.
35599         * NEWS: Mention the change.
35600
35601 2007-07-07  Bruno Haible  <bruno@clisp.org>
35602
35603         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
35604         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
35605         definition with an external declaration.
35606         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
35607         defined as a function. Remove AC_C_INLINE requirement.
35608         * modules/wcwidth (Files): Add lib/wcwidth.c.
35609         (Makefile.am): Remove redundant statement.
35610
35611 2007-07-07  Bruno Haible  <bruno@clisp.org>
35612
35613         * MODULES.html.sh (Unicode string functions): Add the new modules.
35614
35615         * tests/uniwidth/test-u32-strwidth.c: New file.
35616         * modules/uniwidth/u32-strwidth-tests: New file.
35617
35618         * lib/uniwidth/u32-strwidth.c: New file.
35619         * modules/uniwidth/u32-strwidth: New file.
35620
35621         * tests/uniwidth/test-u16-strwidth.c: New file.
35622         * modules/uniwidth/u16-strwidth-tests: New file.
35623
35624         * lib/uniwidth/u16-strwidth.c: New file.
35625         * modules/uniwidth/u16-strwidth: New file.
35626
35627         * tests/uniwidth/test-u8-strwidth.c: New file.
35628         * modules/uniwidth/u8-strwidth-tests: New file.
35629
35630         * lib/uniwidth/u8-strwidth.c: New file.
35631         * modules/uniwidth/u8-strwidth: New file.
35632
35633         * tests/uniwidth/test-u32-width.c: New file.
35634         * modules/uniwidth/u32-width-tests: New file.
35635
35636         * lib/uniwidth/u32-width.c: New file.
35637         * modules/uniwidth/u32-width: New file.
35638
35639         * tests/uniwidth/test-u16-width.c: New file.
35640         * modules/uniwidth/u16-width-tests: New file.
35641
35642         * lib/uniwidth/u16-width.c: New file.
35643         * modules/uniwidth/u16-width: New file.
35644
35645         * tests/uniwidth/test-u8-width.c: New file.
35646         * modules/uniwidth/u8-width-tests: New file.
35647
35648         * lib/uniwidth/u8-width.c: New file.
35649         * modules/uniwidth/u8-width: New file.
35650
35651         * tests/uniwidth/test-uc_width.c: New file.
35652         * modules/uniwidth/width-tests: New file.
35653
35654         * lib/uniwidth/width.c: New file, from GNU libiconv.
35655         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
35656         * modules/uniwidth/width: New file.
35657
35658         * lib/uniwidth.h: New file, from GNU libiconv.
35659         * modules/uniwidth/base: New file.
35660
35661 2007-07-07  Bruno Haible  <bruno@clisp.org>
35662
35663         * lib/uniname.h: New file, from GNU gettext.
35664         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
35665         * lib/uniname/uninames.h: New file, from GNU gettext.
35666         * lib/uniname/uniname.c: New file, from GNU gettext.
35667         * tests/uniname/test-uninames.sh: New file.
35668         * tests/uniname/test-uninames.c: New file, from GNU gettext.
35669         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
35670         * modules/uniname/base: New file.
35671         * modules/uniname/uniname: New file.
35672         * modules/uniname/uniname-tests: New file.
35673         * MODULES.html.sh (Unicode string functions): Add the new modules.
35674
35675 2007-07-06  Bruno Haible  <bruno@clisp.org>
35676
35677         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
35678
35679 2007-07-06  Bruno Haible  <bruno@clisp.org>
35680
35681         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
35682         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
35683         includes <cygwin/sys_time.h> which includes <sys/select.h> which
35684         include <sys/time.h>.
35685         Reported by Eric Blake.
35686
35687 2007-07-06  Eric Blake  <ebb9@byu.net>
35688
35689         Fix testing canonicalize on cygwin.
35690         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
35691         Revert patch from 2007-06-19.
35692         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
35693         canonicalize module is also in use.
35694         * tests/test-canonicalize.c: New file.
35695         * tests/test-canonicalize.sh: Likewise.
35696         * modules/canonicalize-tests: Likewise.
35697
35698 2007-07-06  Jim Meyering  <jim@meyering.net>
35699
35700         * lib/getugroups.c (getugroups): Detect getgrent failure.
35701         Adjust comment to reflect reality: this function may return -1.
35702
35703 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35704
35705         * build-aux/bootstrap (TP_URL,get_translations): Update to use
35706         the new TP address.
35707         (usage): Fix typo
35708         (gnulib_mk): New variable.
35709
35710 2007-07-05  Jim Meyering  <jim@meyering.net>
35711
35712         Don't let endgrent clobber errno, no matter how improbable.
35713         * lib/getugroups.c (getugroups): Save and restore errno around
35714         endgrent call.
35715
35716         Close the group DB even when failing with 2^31 or more members.
35717         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
35718
35719 2007-07-04  Jim Meyering  <jim@meyering.net>
35720
35721         * lib/getugroups.h: New file.
35722         * lib/getugroups.c: Include "getugroups.h".
35723         Remove uses of "register" keyword.
35724         Move local variable, "cp", down into scope where used.
35725         Give "username" parameter the "const" attribute.
35726         * modules/getugroups (Files): Add lib/getugroups.h
35727
35728 2007-07-04  Karl Berry  <karl@gnu.org>
35729
35730         * MODULES.html.sh (func_all_modules): Complete rename of
35731         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
35732
35733 2007-07-02  Bruno Haible  <bruno@clisp.org>
35734
35735         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
35736         mode, when inttypes.h comes from gnulib.
35737         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
35738
35739 2007-07-02  Simon Josefsson  <simon@josefsson.org>
35740
35741         * NEWS: Mention lgpl module name change.
35742
35743         * modules/lgpl-2.1: Renamed from lgpl.
35744
35745         * NEWS: Mention gpl module name change.
35746
35747         * modules/gpl-3.0: New file, based on gpl-2.0.
35748
35749         * modules/gpl-2.0: Renamed from gpl.
35750
35751         * modules/gpl: Fix filename, doc/gpl.texi is now found at
35752         doc/gpl-2.0.texi.
35753
35754 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
35755
35756         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
35757         #define __STDC_LIMIT_MACROS temporarily while including
35758         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
35759         Problem reported by Joel E. Denny in
35760         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
35761
35762 2007-07-01  Bruno Haible  <bruno@clisp.org>
35763
35764         * lib/unistdio.h: New file.
35765         * lib/unistdio/u-asnprintf.h: New file.
35766         * lib/unistdio/u-asprintf.h: New file.
35767         * lib/unistdio/u-printf-args.c: New file.
35768         * lib/unistdio/u-printf-args.h: New file.
35769         * lib/unistdio/u-printf-parse.h: New file.
35770         * lib/unistdio/u-snprintf.h: New file.
35771         * lib/unistdio/u-sprintf.h: New file.
35772         * lib/unistdio/u-vasprintf.h: New file.
35773         * lib/unistdio/u-vsnprintf.h: New file.
35774         * lib/unistdio/u-vsprintf.h: New file.
35775         * lib/unistdio/ulc-asnprintf.c: New file.
35776         * lib/unistdio/ulc-asprintf.c: New file.
35777         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
35778         * lib/unistdio/ulc-printf-parse.c: New file.
35779         * lib/unistdio/ulc-snprintf.c: New file.
35780         * lib/unistdio/ulc-sprintf.c: New file.
35781         * lib/unistdio/ulc-vasnprintf.c: New file.
35782         * lib/unistdio/ulc-vasprintf.c: New file.
35783         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
35784         * lib/unistdio/ulc-vsnprintf.c: New file.
35785         * lib/unistdio/ulc-vsprintf.c: New file.
35786         * lib/unistdio/u8-asnprintf.c: New file.
35787         * lib/unistdio/u8-asprintf.c: New file.
35788         * lib/unistdio/u8-printf-parse.c: New file.
35789         * lib/unistdio/u8-snprintf.c: New file.
35790         * lib/unistdio/u8-sprintf.c: New file.
35791         * lib/unistdio/u8-vasnprintf.c: New file.
35792         * lib/unistdio/u8-vasprintf.c: New file.
35793         * lib/unistdio/u8-vsnprintf.c: New file.
35794         * lib/unistdio/u8-vsprintf.c: New file.
35795         * lib/unistdio/u8-u8-asnprintf.c: New file.
35796         * lib/unistdio/u8-u8-asprintf.c: New file.
35797         * lib/unistdio/u8-u8-snprintf.c: New file.
35798         * lib/unistdio/u8-u8-sprintf.c: New file.
35799         * lib/unistdio/u8-u8-vasnprintf.c: New file.
35800         * lib/unistdio/u8-u8-vasprintf.c: New file.
35801         * lib/unistdio/u8-u8-vsnprintf.c: New file.
35802         * lib/unistdio/u8-u8-vsprintf.c: New file.
35803         * lib/unistdio/u16-asnprintf.c: New file.
35804         * lib/unistdio/u16-asprintf.c: New file.
35805         * lib/unistdio/u16-printf-parse.c: New file.
35806         * lib/unistdio/u16-snprintf.c: New file.
35807         * lib/unistdio/u16-sprintf.c: New file.
35808         * lib/unistdio/u16-vasnprintf.c: New file.
35809         * lib/unistdio/u16-vasprintf.c: New file.
35810         * lib/unistdio/u16-vsnprintf.c: New file.
35811         * lib/unistdio/u16-vsprintf.c: New file.
35812         * lib/unistdio/u16-u16-asnprintf.c: New file.
35813         * lib/unistdio/u16-u16-asprintf.c: New file.
35814         * lib/unistdio/u16-u16-snprintf.c: New file.
35815         * lib/unistdio/u16-u16-sprintf.c: New file.
35816         * lib/unistdio/u16-u16-vasnprintf.c: New file.
35817         * lib/unistdio/u16-u16-vasprintf.c: New file.
35818         * lib/unistdio/u16-u16-vsnprintf.c: New file.
35819         * lib/unistdio/u16-u16-vsprintf.c: New file.
35820         * lib/unistdio/u32-asnprintf.c: New file.
35821         * lib/unistdio/u32-asprintf.c: New file.
35822         * lib/unistdio/u32-printf-parse.c: New file.
35823         * lib/unistdio/u32-snprintf.c: New file.
35824         * lib/unistdio/u32-sprintf.c: New file.
35825         * lib/unistdio/u32-vasnprintf.c: New file.
35826         * lib/unistdio/u32-vasprintf.c: New file.
35827         * lib/unistdio/u32-vsnprintf.c: New file.
35828         * lib/unistdio/u32-vsprintf.c: New file.
35829         * lib/unistdio/u32-u32-asnprintf.c: New file.
35830         * lib/unistdio/u32-u32-asprintf.c: New file.
35831         * lib/unistdio/u32-u32-snprintf.c: New file.
35832         * lib/unistdio/u32-u32-sprintf.c: New file.
35833         * lib/unistdio/u32-u32-vasnprintf.c: New file.
35834         * lib/unistdio/u32-u32-vasprintf.c: New file.
35835         * lib/unistdio/u32-u32-vsnprintf.c: New file.
35836         * lib/unistdio/u32-u32-vsprintf.c: New file.
35837         * tests/unistdio/test-ulc-asnprintf1.c: New file.
35838         * tests/unistdio/test-ulc-asnprintf1.h: New file.
35839         * tests/unistdio/test-ulc-printf1.h: New file.
35840         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
35841         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
35842         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
35843         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
35844         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
35845         * tests/unistdio/test-ulc-vasprintf1.c: New file.
35846         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
35847         * tests/unistdio/test-ulc-vsprintf1.c: New file.
35848         * tests/unistdio/test-u8-asnprintf1.c: New file.
35849         * tests/unistdio/test-u8-asnprintf1.h: New file.
35850         * tests/unistdio/test-u8-printf1.h: New file.
35851         * tests/unistdio/test-u8-vasnprintf1.c: New file.
35852         * tests/unistdio/test-u8-vasnprintf2.c: New file.
35853         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
35854         * tests/unistdio/test-u8-vasnprintf3.c: New file.
35855         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
35856         * tests/unistdio/test-u8-vasprintf1.c: New file.
35857         * tests/unistdio/test-u8-vsnprintf1.c: New file.
35858         * tests/unistdio/test-u8-vsprintf1.c: New file.
35859         * tests/unistdio/test-u16-asnprintf1.c: New file.
35860         * tests/unistdio/test-u16-asnprintf1.h: New file.
35861         * tests/unistdio/test-u16-printf1.h: New file.
35862         * tests/unistdio/test-u16-vasnprintf1.c: New file.
35863         * tests/unistdio/test-u16-vasnprintf2.c: New file.
35864         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
35865         * tests/unistdio/test-u16-vasnprintf3.c: New file.
35866         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
35867         * tests/unistdio/test-u16-vasprintf1.c: New file.
35868         * tests/unistdio/test-u16-vsnprintf1.c: New file.
35869         * tests/unistdio/test-u16-vsprintf1.c: New file.
35870         * tests/unistdio/test-u32-asnprintf1.c: New file.
35871         * tests/unistdio/test-u32-asnprintf1.h: New file.
35872         * tests/unistdio/test-u32-printf1.h: New file.
35873         * tests/unistdio/test-u32-vasnprintf1.c: New file.
35874         * tests/unistdio/test-u32-vasnprintf2.c: New file.
35875         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
35876         * tests/unistdio/test-u32-vasnprintf3.c: New file.
35877         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
35878         * tests/unistdio/test-u32-vasprintf1.c: New file.
35879         * tests/unistdio/test-u32-vsnprintf1.c: New file.
35880         * tests/unistdio/test-u32-vsprintf1.c: New file.
35881         * modules/unistdio/base: New file.
35882         * modules/unistdio/u-printf-args: New file.
35883         * modules/unistdio/ulc-asnprintf: New file.
35884         * modules/unistdio/ulc-asprintf: New file.
35885         * modules/unistdio/ulc-fprintf: New file.
35886         * modules/unistdio/ulc-printf-parse: New file.
35887         * modules/unistdio/ulc-snprintf: New file.
35888         * modules/unistdio/ulc-sprintf: New file.
35889         * modules/unistdio/ulc-vasnprintf: New file.
35890         * modules/unistdio/ulc-vasprintf: New file.
35891         * modules/unistdio/ulc-vfprintf: New file.
35892         * modules/unistdio/ulc-vsnprintf: New file.
35893         * modules/unistdio/ulc-vsprintf: New file.
35894         * modules/unistdio/u8-asnprintf: New file.
35895         * modules/unistdio/u8-asprintf: New file.
35896         * modules/unistdio/u8-printf-parse: New file.
35897         * modules/unistdio/u8-snprintf: New file.
35898         * modules/unistdio/u8-sprintf: New file.
35899         * modules/unistdio/u8-vasnprintf: New file.
35900         * modules/unistdio/u8-vasprintf: New file.
35901         * modules/unistdio/u8-vsnprintf: New file.
35902         * modules/unistdio/u8-vsprintf: New file.
35903         * modules/unistdio/u8-u8-asnprintf: New file.
35904         * modules/unistdio/u8-u8-asprintf: New file.
35905         * modules/unistdio/u8-u8-snprintf: New file.
35906         * modules/unistdio/u8-u8-sprintf: New file.
35907         * modules/unistdio/u8-u8-vasnprintf: New file.
35908         * modules/unistdio/u8-u8-vasprintf: New file.
35909         * modules/unistdio/u8-u8-vsnprintf: New file.
35910         * modules/unistdio/u8-u8-vsprintf: New file.
35911         * modules/unistdio/u16-asnprintf: New file.
35912         * modules/unistdio/u16-asprintf: New file.
35913         * modules/unistdio/u16-printf-parse: New file.
35914         * modules/unistdio/u16-snprintf: New file.
35915         * modules/unistdio/u16-sprintf: New file.
35916         * modules/unistdio/u16-vasnprintf: New file.
35917         * modules/unistdio/u16-vasprintf: New file.
35918         * modules/unistdio/u16-vsnprintf: New file.
35919         * modules/unistdio/u16-vsprintf: New file.
35920         * modules/unistdio/u16-u16-asnprintf: New file.
35921         * modules/unistdio/u16-u16-asprintf: New file.
35922         * modules/unistdio/u16-u16-snprintf: New file.
35923         * modules/unistdio/u16-u16-sprintf: New file.
35924         * modules/unistdio/u16-u16-vasnprintf: New file.
35925         * modules/unistdio/u16-u16-vasprintf: New file.
35926         * modules/unistdio/u16-u16-vsnprintf: New file.
35927         * modules/unistdio/u16-u16-vsprintf: New file.
35928         * modules/unistdio/u32-asnprintf: New file.
35929         * modules/unistdio/u32-asprintf: New file.
35930         * modules/unistdio/u32-printf-parse: New file.
35931         * modules/unistdio/u32-snprintf: New file.
35932         * modules/unistdio/u32-sprintf: New file.
35933         * modules/unistdio/u32-vasnprintf: New file.
35934         * modules/unistdio/u32-vasprintf: New file.
35935         * modules/unistdio/u32-vsnprintf: New file.
35936         * modules/unistdio/u32-vsprintf: New file.
35937         * modules/unistdio/u32-u32-asnprintf: New file.
35938         * modules/unistdio/u32-u32-asprintf: New file.
35939         * modules/unistdio/u32-u32-snprintf: New file.
35940         * modules/unistdio/u32-u32-sprintf: New file.
35941         * modules/unistdio/u32-u32-vasnprintf: New file.
35942         * modules/unistdio/u32-u32-vasprintf: New file.
35943         * modules/unistdio/u32-u32-vsnprintf: New file.
35944         * modules/unistdio/u32-u32-vsprintf: New file.
35945         * modules/unistdio/ulc-asnprintf-tests: New file.
35946         * modules/unistdio/ulc-vasnprintf-tests: New file.
35947         * modules/unistdio/ulc-vasprintf-tests: New file.
35948         * modules/unistdio/ulc-vsnprintf-tests: New file.
35949         * modules/unistdio/ulc-vsprintf-tests: New file.
35950         * modules/unistdio/u8-asnprintf-tests: New file.
35951         * modules/unistdio/u8-vasnprintf-tests: New file.
35952         * modules/unistdio/u8-vasprintf-tests: New file.
35953         * modules/unistdio/u8-vsnprintf-tests: New file.
35954         * modules/unistdio/u8-vsprintf-tests: New file.
35955         * modules/unistdio/u16-asnprintf-tests: New file.
35956         * modules/unistdio/u16-vasnprintf-tests: New file.
35957         * modules/unistdio/u16-vasprintf-tests: New file.
35958         * modules/unistdio/u16-vsnprintf-tests: New file.
35959         * modules/unistdio/u16-vsprintf-tests: New file.
35960         * modules/unistdio/u32-asnprintf-tests: New file.
35961         * modules/unistdio/u32-vasnprintf-tests: New file.
35962         * modules/unistdio/u32-vasprintf-tests: New file.
35963         * modules/unistdio/u32-vsnprintf-tests: New file.
35964         * modules/unistdio/u32-vsprintf-tests: New file.
35965         * MODULES.html.sh (Unicode string functions): Add the new modules.
35966
35967 2007-07-01  Bruno Haible  <bruno@clisp.org>
35968
35969         * lib/sprintf.c (sprintf): Limit the available length estimation,
35970         to avoid address wraparound.
35971         * lib/vsprintf.c (vsprintf): Likewise.
35972         * modules/sprintf-posix (Dependencies): Add stdint.
35973         * modules/vsprintf-posix (Dependencies): Likewise.
35974
35975 2007-07-01  Bruno Haible  <bruno@clisp.org>
35976
35977         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
35978         Windows PATH as well. Conservative double-quoting. Comments.
35979
35980 2007-07-01  Bruno Haible  <bruno@clisp.org>
35981             Eric Blake  <ebb9@byu.net>
35982             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35983
35984         * gnulib-tool (self_abspathname): Fix algorithm to cope with
35985         empty components in $PATH, denoting '.'.
35986
35987 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35988
35989         * gnulib-tool: Fix indentation.
35990         (func_create_megatestdir): Likewise.
35991         Report by Bruno Haible.
35992
35993 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35994
35995         Sync from Automake.
35996         * build-aux/gnupload: Fix shell portability issues with for loops.
35997         Report by Karl Berry.
35998
35999 2007-06-29  Simon Josefsson  <simon@josefsson.org>
36000
36001         * build-aux/maint.mk (POURL): Use translationproject.org.
36002
36003 2007-06-27  Simon Josefsson  <simon@josefsson.org>
36004             Bruno Haible  <bruno@clisp.org>
36005
36006         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
36007         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
36008         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
36009         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
36010         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
36011
36012 2007-06-27  Bruno Haible  <bruno@clisp.org>
36013
36014         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
36015         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
36016
36017 2007-06-26  Karl Berry  <karl@gnu.org>
36018
36019         * MODULES.html.sh: remove xreadlink-with-size.
36020
36021 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
36022
36023         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
36024         method that I hope also handles the double-include problem noted
36025         by Bruno Haible in
36026         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
36027
36028 2007-06-23  Bruno Haible  <bruno@clisp.org>
36029
36030         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36031         Don't let the 'mostlyclean' target fail if the last subdirectory could
36032         not be removed.
36033         Reported by Karl Berry.
36034
36035 2007-06-23  Bruno Haible  <bruno@clisp.org>
36036
36037         * gnulib-tool (echo): Add a speedier workaround for ksh.
36038         * tests/test-echo.sh: Likewise.
36039
36040 2007-06-23  Bruno Haible  <bruno@clisp.org>
36041
36042         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
36043         * tests/test-echo.sh: Likewise.
36044
36045 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36046
36047         * gnulib-tool (IFS): Initialize early, so we don't set it to
36048         empty later.
36049         (self_abspathname): Rewrite algorithm to set it, reindent.
36050         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
36051         (func_create_megatestdir): Merge some sed scripts.
36052
36053 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
36054
36055         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
36056         exposed by Sun Studio 11 cc on Solaris 8.
36057
36058 2007-06-22  Bruno Haible  <bruno@clisp.org>
36059
36060         * gnulib-tool (echo): Ensure the echo primitive does not interpret
36061         backslashes.
36062         * tests/test-echo.sh: New file.
36063
36064 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36065
36066         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
36067         simplify `sed_replace_build_aux' scripts, they are portable but
36068         echoing them with `echo' is not.
36069         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
36070
36071 2007-06-21  Karl Berry  <karl@gnu.org>
36072
36073         * config/srclist.txt: guess we can't handle the licenses via
36074         srclist at the moment.
36075
36076 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
36077
36078         * MODULES.html.sh: Add include_next.
36079         * modules/include_next: New file.
36080
36081 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
36082
36083         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
36084         INCLUDE_NEXT.
36085         (gl_CHECK_NEXT_HEADERS): New macro.
36086         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
36087         the obsolescent gl_ABSOLUTE_HEADER.
36088         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
36089         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
36090         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
36091         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36092         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
36093         * m4/math_h.m4 (gl_MATH_H): Likewise.
36094         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
36095         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36096         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
36097         * m4/stdint.m4 (gl_STDINT_H): Likewise.
36098         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
36099         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
36100         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
36101         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36102         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36103         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
36104         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
36105         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36106         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
36107         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36108         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36109         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36110         * m4/inttypes.m4 (gl_INTTYPES_H): Define
36111         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
36112         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
36113         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
36114         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
36115         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
36116         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
36117         * lib/float_.h: Likewise.
36118         * lib/inttypes_.h: Likewise.
36119         * lib/math_.h: Likewise.
36120         * lib/search_.h: Likewise.
36121         * lib/signal_.h: Likewise.
36122         * lib/stdint_.h: Likewise.
36123         * lib/stdio_.h: Likewise.
36124         * lib/stdlib_.h: Likewise.
36125         * lib/string_.h: Likewise.
36126         * lib/sys_stat_.h: Likewise.
36127         * lib/sys_time_.h: Likewise.
36128         * lib/time_.h: Likewise.
36129         * lib/unistd_.h: Likewise.
36130         * lib/wchar_.h: Likewise.
36131         * lib/wctype_.h: Likewise.
36132         * lib/dirent_.h: Likewise.
36133         * lib/iconv_.h: Likewise.
36134         * lib/locale_.h: Likewise.
36135         * lib/netinet_in_.h: Likewise.
36136         * lib/sys_select_.h: Likewise.
36137         * lib/sys_socket_.h: Likewise.
36138         * lib/sysexits_.h: Likewise.
36139         * modules/fcntl (Depends-on): Depend on include_next, not
36140         absolute_header.
36141         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
36142         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
36143         * modules/fchdir: Likewise.
36144         * modules/float: Likewise.
36145         * modules/iconv_open: Likewise.
36146         * modules/inttypes: Likewise.
36147         * modules/locale: Likewise.
36148         * modules/math: Likewise.
36149         * modules/netinet_in: Likewise.
36150         * modules/search: Likewise.
36151         * modules/signal: Likewise.
36152         * modules/stdint: Likewise.
36153         * modules/stdio: Likewise.
36154         * modules/stdlib: Likewise.
36155         * modules/string: Likewise.
36156         * modules/sys_select: Likewise.
36157         * modules/sys_socket: Likewise.
36158         * modules/sys_stat: Likewise.
36159         * modules/sys_time: Likewise.
36160         * modules/sysexits: Likewise.
36161         * modules/time: Likewise.
36162         * modules/unistd: Likewise.
36163         * modules/wchar: Likewise.
36164         * modules/wctype: Likewise.
36165         * modules/sys_stat: Change maintainer to "all".
36166         * modules/unistd: Likewise.
36167
36168 2007-06-20  Karl Berry  <karl@gnu.org>
36169
36170         * config/srclist.txt: track www changes in license files.
36171
36172 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
36173
36174         * build-aux/bootstrap: Remove stray dot.
36175         Make sure build_aux settings are honored when linking
36176         gnulib_extra_files.
36177
36178 2007-06-19  Eric Blake  <ebb9@byu.net>
36179
36180         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
36181         Allow compilation on cygwin.
36182
36183 2007-06-19  Jim Meyering  <jim@meyering.net>
36184
36185         xreadlink-with-size: Remove module.  No longer used.
36186         Ex-callers now use xreadlink or mreadlink-with-size.
36187         * modules/xreadlink-with-size: Remove module.
36188         * lib/xreadlink-with-size.c: Remove file.
36189         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
36190         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
36191         just before the function definition *is* accurate.
36192
36193         Eliminate one way canonicalize_filename_mode could exit.
36194         * lib/canonicalize.c (canonicalize_filename_mode):
36195         Use mreadlink_with_size, not xreadlink_with_size.
36196
36197 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
36198
36199         Detect porting problems to FreeBSD/arm, which has time_t wider than
36200         long int.  Original problem reported for GNU diff by Xin Li in
36201         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
36202         * modules/getdate (Depends-on): Add intprops, verify.
36203         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
36204         is an integer type no wider than long int.
36205
36206 2007-06-18  Jim Meyering  <jim@meyering.net>
36207
36208         New module: mreadlink-with-size.
36209         * MODULES.html.sh: Add mreadlink-with-size.
36210         * modules/mreadlink-with-size: New module
36211         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
36212         not xreadlink-with-size.
36213         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
36214
36215 2007-06-16  Bruno Haible  <bruno@clisp.org>
36216
36217         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
36218         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
36219         Reported by Gary V. Vaughan <gary@gnu.org>.
36220
36221 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
36222
36223         Revamp lchown so that it lives in unistd.h where it belongs.
36224         * lib/lchown.h: Remove.
36225         * lib/dirchownmod.c: Don't include lib/lchown.h.
36226         * lib/fchownat.c: Likewise.
36227         * lib/openat.c: Likewise.
36228         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
36229         does not follow symlinks.
36230         (EOPNOTSUPP): Define if not defined.
36231         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
36232         is defined to 0.
36233         (lchown): New decl.
36234         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
36235         Do not check for lchown decl.
36236         Set REPLACE_LCHOWN.
36237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
36238         REPLACE_LCHOWN.
36239         * modules/chown: Make it clear it follows symlinks.
36240         * modules/lchown: Make it clear it doesn't follow symlinks.
36241         (Files): Remove lib/lchown.h
36242         (Depends-on): Add unistd.
36243         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
36244         (Include): Include <unistd.h>, not "lchown.h".
36245         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
36246         REPLACE_LCHOWN.
36247
36248 2007-06-15  Jim Meyering  <jim@meyering.net>
36249
36250         Change license (GPL to LGPL) of fsusage and dependents.
36251         * modules/fsusage (License): Change to LGPL.
36252         * modules/full-read (License): Likewise.
36253         * modules/full-write (License): Likewise.
36254         * modules/safe-read (License): Likewise.
36255         * modules/safe-write (License): Likewise.
36256
36257 2007-06-14  Ben Pfaff  <blp@gnu.org>
36258
36259         Missing part of allocsa -> malloca transition.
36260         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
36261         gl_MALLOCA.
36262
36263 2007-06-12  Bruno Haible  <bruno@clisp.org>
36264
36265         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
36266         to ia64, x86_64, i386.
36267         Reported by Eric Blake.
36268
36269 2007-06-12  Bruno Haible  <bruno@clisp.org>
36270
36271         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
36272         cross-compiling to x86_64.
36273
36274 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
36275
36276         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
36277         glitch reported by Ralf Wildenhues in
36278         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
36279
36280         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
36281         Vin Shelton.
36282
36283 2007-06-11  Bruno Haible  <bruno@clisp.org>
36284
36285         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
36286         replacement string.
36287         Reported by Eric Blake.
36288
36289 2007-06-10  Bruno Haible  <bruno@clisp.org>
36290
36291         Prepare vasnprintf code for use with Unicode strings.
36292         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
36293         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
36294         TYPE_U32_STRING.
36295         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
36296         a_u32_string variants.
36297         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
36298         * lib/printf-args.c: Don't include config.h and the specification
36299         header if PRINTF_FETCHARGS is already defined.
36300         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
36301         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
36302         TYPE_U16_STRING, TYPE_U32_STRING.
36303         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
36304         u16_directive, u16_directives, u32_directive, u32_directives): New
36305         types.
36306         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
36307         New declarations.
36308         * lib/printf-parse.c: Don't include config.h and the specification
36309         header if PRINTF_PARSE is already defined. Eliminate the set of
36310         parameters for WIDE_CHAR_VERSION; the user of this file must provide
36311         them now. Include c-ctype.h.
36312         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
36313         directive and CHAR_T_ONLY_ASCII.
36314         * lib/vasnprintf.c: Don't include config.h and the specification header
36315         if VASNPRINTF is already defined.
36316         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
36317         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
36318         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
36319         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
36320         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
36321         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
36322         code accordingly.
36323         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
36324         pad_ourselves also in this case, with the 'c' and 's' directives, and
36325         with a different notion of "width".
36326         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
36327
36328 2007-06-10  Bruno Haible  <bruno@clisp.org>
36329
36330         * modules/unistr/u32-mbsnlen: New file.
36331         * lib/unistr/u32-mbsnlen.c: New file.
36332
36333         * modules/unistr/u16-mbsnlen: New file.
36334         * lib/unistr/u16-mbsnlen.c: New file.
36335
36336         * modules/unistr/u8-mbsnlen: New file.
36337         * lib/unistr/u8-mbsnlen.c: New file.
36338
36339         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
36340         declarations.
36341
36342 2007-06-10  Bruno Haible  <bruno@clisp.org>
36343
36344         * lib/string_.h (mbsnlen): New declaration.
36345         * lib/mbsnlen.c: New file.
36346         * m4/mbsnlen.m4: New file.
36347         * modules/mbsnlen: New file.
36348         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
36349         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
36350         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
36351
36352 2007-06-10  Bruno Haible  <bruno@clisp.org>
36353
36354         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
36355
36356 2007-06-10  Bruno Haible  <bruno@clisp.org>
36357
36358         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
36359         * lib/mbuiter.h: Likewise.
36360
36361 2007-06-10  Bruno Haible  <bruno@clisp.org>
36362
36363         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
36364         declaration.
36365
36366 2007-06-10  Karl Berry  <karl@gnu.org>
36367
36368         * config/srclist.txt: remove gettext entries, Bruno prefers
36369         to update individually.
36370
36371 2007-06-10  Bruno Haible  <bruno@clisp.org>
36372
36373         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
36374         'maxlen'. Ensure only length + width bytes are allocated, not
36375         length + 1 + width.
36376
36377 2007-06-09  Bruno Haible  <bruno@clisp.org>
36378
36379         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
36380         (CHAR_T): Remove macro.
36381         (VASNPRINTF): Update.
36382
36383 2007-06-09  Bruno Haible  <bruno@clisp.org>
36384
36385         * MODULES.html.sh (Unicode string functions): Add the new modules.
36386
36387         * modules/uniconv/u32-conv-to-enc: New file.
36388         * lib/uniconv/u32-conv-to-enc.c: New file.
36389         * modules/uniconv/u32-conv-to-enc-tests: New file.
36390         * tests/uniconv/test-u32-conv-to-enc.c: New file.
36391
36392         * modules/uniconv/u16-conv-to-enc: New file.
36393         * lib/uniconv/u16-conv-to-enc.c: New file.
36394         * lib/uniconv/u-conv-to-enc.h: New file.
36395         * modules/uniconv/u16-conv-to-enc-tests: New file.
36396         * tests/uniconv/test-u16-conv-to-enc.c: New file.
36397
36398         * modules/uniconv/u8-conv-to-enc: New file.
36399         * lib/uniconv/u8-conv-to-enc.c: New file.
36400         * modules/uniconv/u8-conv-to-enc-tests: New file.
36401         * tests/uniconv/test-u8-conv-to-enc.c: New file.
36402
36403         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
36404         u32_conv_to_encoding): New declarations.
36405
36406 2007-06-09  Bruno Haible  <bruno@clisp.org>
36407
36408         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
36409
36410 2007-06-09  Bruno Haible  <bruno@clisp.org>
36411
36412         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
36413         * modules/malloca: Renamed from modules/allocsa, updated.
36414         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
36415         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
36416         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
36417         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
36418         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
36419         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
36420         * modules/xmalloca: Renamed from modules/xallocsa, updated.
36421         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
36422         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
36423         * modules/c-strcasestr (Depends-on): Update.
36424         * lib/c-strcasestr.c: Update.
36425         * modules/c-strstr (Depends-on): Update.
36426         * lib/c-strstr.c: Update.
36427         * modules/canonicalize-lgpl (Depends-on): Update.
36428         * lib/canonicalize-lgpl.c: Update.
36429         * modules/clean-temp (Depends-on): Update.
36430         * lib/clean-temp.c: Update.
36431         * modules/csharpcomp (Depends-on): Update.
36432         * lib/csharpcomp.c: Update.
36433         * modules/csharpexec (Depends-on): Update.
36434         * lib/csharpexec.c: Update.
36435         * modules/javacomp (Depends-on): Update.
36436         * lib/javacomp.c: Update.
36437         * modules/javaexec (Depends-on): Update.
36438         * lib/javaexec.c: Update.
36439         * modules/mbscasestr (Depends-on): Update.
36440         * lib/mbscasestr.c: Update.
36441         * modules/mbsstr (Depends-on): Update.
36442         * lib/mbsstr.c: Update.
36443         * modules/setenv (Depends-on): Update.
36444         * lib/setenv.c: Update.
36445         * modules/strcasestr (Depends-on): Update.
36446         * lib/strcasestr.c: Update.
36447         * modules/striconveha (Depends-on): Update.
36448         * lib/striconveha.c: Update.
36449         * modules/relocatable-prog-wrapper (Files): Update.
36450         * lib/relocwrapper.c: Update.
36451         * build-aux/install-reloc: Update.
36452         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
36453
36454 2007-06-08  Bruno Haible  <bruno@clisp.org>
36455
36456         Port to uClibc.
36457         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
36458         * lib/fpurge.c (fpurge): Likewise.
36459         * lib/freading.c (freading): Likewise.
36460         * lib/fseeko.c (rpl_fseeko): Likewise.
36461         * lib/fseterr.c (fseterr): Likewise.
36462         * lib/fwriting.c (fwriting): Likewise.
36463         * tests/test-fflush.c (main): Avoid a failure on uClibc.
36464
36465 2007-06-08  Bruno Haible  <bruno@clisp.org>
36466
36467         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
36468         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
36469         * modules/gettext (Files): Add m4/intlmacosx.m4.
36470
36471 2007-06-07  Bruno Haible  <bruno@clisp.org>
36472
36473         * modules/localename-tests: New file.
36474         * tests/test-localename.c: New file.
36475
36476         New module 'localename'.
36477         * lib/localename.h: New file.
36478         * lib/localename.c: New file, from GNU gettext.
36479         * m4/localename.m4: New file.
36480         * modules/localename: New file.
36481
36482 2007-06-07  Bruno Haible  <bruno@clisp.org>
36483
36484         Work around the lack of <wchar.h> on some builds of uClibc.
36485         * doc/headers/wchar.texi: Update.
36486         * lib/wchar_.h: Include <wchar.h> only if it exists.
36487         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
36488         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
36489         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
36490         doesn't exist.
36491         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
36492         * modules/mbfile (Depends-on): Add wchar.
36493         * modules/mbiter (Depends-on): Likewise.
36494         * modules/mbuiter (Depends-on): Likewise.
36495         Reported by Simon Josefsson.
36496
36497 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
36498
36499         Work around problem reported by Steven M. Schweda in
36500         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
36501         Tru64 5.1B with the Compaq compiler environment installed declares
36502         an 'isblank' function but does not define it in the C library.
36503         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
36504         * lib/regex_internal.h (isblank): Likewise.
36505         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
36506         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
36507
36508 2007-06-05  Bruno Haible  <bruno@clisp.org>
36509
36510         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
36511         ia64.
36512         * modules/printf-safe: New file.
36513         * modules/fprintf-posix (Depends-on): Add printf-safe.
36514         * modules/printf-posix (Depends-on): Likewise.
36515         * modules/snprintf-posix (Depends-on): Likewise.
36516         * modules/sprintf-posix (Depends-on): Likewise.
36517         * modules/vasnprintf-posix (Depends-on): Likewise.
36518         * modules/vasprintf-posix (Depends-on): Likewise.
36519         * modules/vfprintf-posix (Depends-on): Likewise.
36520         * modules/vprintf-posix (Depends-on): Likewise.
36521         * modules/vsnprintf-posix (Depends-on): Likewise.
36522         * modules/vsprintf-posix (Depends-on): Likewise.
36523         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
36524         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
36525         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
36526         "no" on i386, x86_64, ia64.
36527         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
36528         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
36529         on i386, x86_64, ia64.
36530         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
36531         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
36532         on i386, x86_64, ia64.
36533         * tests/test-vasnprintf-posix.c: Include float.h.
36534         (LDBL80_WORDS): New macro.
36535         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
36536         on i386, x86_64, ia64.
36537         * tests/test-vasprintf-posix.c: Include float.h.
36538         (LDBL80_WORDS): New macro.
36539         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
36540         on i386, x86_64, ia64.
36541         * tests/test-snprintf-posix.c: Include float.h.
36542         * tests/test-sprintf-posix.c: Likewise.
36543         * tests/test-vsnprintf-posix.c: Likewise.
36544         * tests/test-vsprintf-posix.c: Likewise.
36545
36546 2007-06-05  Bruno Haible  <bruno@clisp.org>
36547
36548         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
36549         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
36550         non-IEEE numbers on i386, x86_64, ia64.
36551         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
36552         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
36553         * tests/test-isnanl.h: Include float.h.
36554         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
36555
36556 2007-06-05  Bruno Haible  <bruno@clisp.org>
36557
36558         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
36559         also the %a / %A. Handle the %a / %A code before this extra handling.
36560
36561 2007-06-05  Bruno Haible  <bruno@clisp.org>
36562
36563         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
36564         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
36565
36566 2007-06-05  Bruno Haible  <bruno@clisp.org>
36567
36568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
36569         typo in variable name.
36570
36571 2007-06-05  Eric Blake  <ebb9@byu.net>
36572
36573         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
36574         Reported by Simon Josefsson.
36575
36576 2007-06-04  Bruno Haible  <bruno@clisp.org>
36577
36578         Avoid test failures on some PowerPC platforms.
36579         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
36580         Define differently for PowerPC.
36581         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
36582         Reported by Gary V. Vaughan <gary@gnu.org>.
36583
36584 2007-06-02  Bruno Haible  <bruno@clisp.org>
36585
36586         Fix test-stdint failure on FreeBSD/ia64.
36587         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
36588         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
36589         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
36590         * doc/headers/stdint.texi: Update.
36591
36592 2007-06-01  Bruno Haible  <bruno@clisp.org>
36593
36594         * tests/test-binary-io.c (main): Pass a third argument to open().
36595         Reported by Gary V. Vaughan <gary@gnu.org>.
36596
36597 2007-06-01  Bruno Haible  <bruno@clisp.org>
36598
36599         * doc/functions/frexpl.texi: Update for mingw.
36600
36601 2007-06-01  Bruno Haible  <bruno@clisp.org>
36602
36603         * tests/test-lseek.c (main): Disable test of errno for invalid third
36604         argument.
36605         * doc/functions/lseek.texi: Update.
36606         Reported by Gary V. Vaughan <gary@gnu.org>.
36607
36608 2007-05-28  Bruno Haible  <bruno@clisp.org>
36609
36610         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
36611
36612 2007-05-31  Eric Blake  <ebb9@byu.net>
36613
36614         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
36615         cross compiling.
36616
36617 2007-05-30  Eric Blake  <ebb9@byu.net>
36618         and Bruno Haible  <bruno@clisp.org>
36619
36620         Work around mingw test failures exposed by m4-1.4.9b.
36621         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
36622         * tests/test-unistd.c: Disable uid_t and git_t tests for the
36623         moment.
36624
36625 2007-05-30  Bruno Haible  <bruno@clisp.org>
36626
36627         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
36628         assuming that they are closed. Needed on HP-UX 11.
36629
36630 2007-05-29  Bruno Haible  <bruno@clisp.org>
36631
36632         Fix a problem with #include_next.
36633         * lib/dirent_.h: Split the double-inclusion guard.
36634         * lib/fcntl_.h: Likewise.
36635         * lib/float_.h: Likewise.
36636         * lib/iconv_.h: Likewise.
36637         * lib/inttypes_.h: Likewise.
36638         * lib/locale_.h: Likewise.
36639         * lib/math_.h: Likewise.
36640         * lib/netinet_in_.h: Likewise.
36641         * lib/search_.h: Likewise.
36642         * lib/signal_.h: Likewise.
36643         * lib/stdint_.h: Likewise.
36644         * lib/stdio_.h: Likewise.
36645         * lib/stdlib_.h: Likewise.
36646         * lib/string_.h: Likewise.
36647         * lib/sys_select_.h: Likewise.
36648         * lib/sys_socket_.h: Likewise.
36649         * lib/sys_stat_.h: Likewise.
36650         * lib/sys_time_.h: Likewise.
36651         * lib/sysexits_.h: Likewise.
36652         * lib/time_.h: Likewise.
36653         * lib/unistd_.h: Likewise.
36654         * lib/wchar_.h: Likewise.
36655         * lib/wctype_.h: Likewise.
36656
36657 2007-05-29  Bruno Haible  <bruno@clisp.org>
36658
36659         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
36660         for the moment.
36661
36662 2007-05-29  Bruno Haible  <bruno@clisp.org>
36663
36664         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
36665         invocation.
36666         Reported by Eric Blake.
36667
36668 2007-05-29  Bruno Haible  <bruno@clisp.org>
36669
36670         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
36671         compiling case.
36672
36673 2007-05-29  Eric Blake  <ebb9@byu.net>
36674             Bruno Haible  <bruno@clisp.org>
36675
36676         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
36677         cross compiles.
36678
36679 2007-05-28  Eric Blake  <ebb9@byu.net>
36680
36681         * modules/closein-tests (test_closein_LDADD): Support test on
36682         cygwin with libtool.
36683
36684 2007-05-28  Bruno Haible  <bruno@clisp.org>
36685
36686         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
36687         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36688         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36689         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36690         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36691         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36692         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36693         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36694         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36695
36696 2007-05-28  Eric Blake  <ebb9@byu.net>
36697
36698         Unconditionally include <config.h> in unit tests.
36699         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
36700         * tests/test-allocsa.c, tests/test-arcfour.c,
36701         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
36702         tests/test-array_list.c, tests/test-array_oset.c,
36703         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
36704         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
36705         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
36706         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
36707         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
36708         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
36709         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
36710         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
36711         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
36712         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
36713         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
36714         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
36715         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
36716         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
36717         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
36718         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
36719         test-md5.c, test-memmem.c, test-printf-posix.c,
36720         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
36721         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
36722         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
36723         test-strcasestr.c, test-striconv.c, test-striconveh.c,
36724         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
36725         test-vasnprintf-posix2.c, test-vasnprintf.c,
36726         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
36727         test-vfprintf-posix.c, test-vprintf-posix.c,
36728         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
36729         test-xvasprintf.c: Likewise.
36730
36731 2007-05-28  Bruno Haible  <bruno@clisp.org>
36732
36733         * gnulib-tool (func_import): Remember the --with-tests command-line
36734         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
36735         Reported by Eric Blake.
36736
36737 2007-05-28  Bruno Haible  <bruno@clisp.org>
36738
36739         * modules/ftell-tests: New file.
36740         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
36741         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
36742
36743         * lib/ftell.c: New file.
36744         * modules/ftell: New file.
36745         * m4/ftell.m4: New file.
36746         * doc/functions/ftell.texi: Update.
36747         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
36748         REPLACE_FTELL.
36749         * lib/stdio_.h (rpl_ftell): New declaration.
36750         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
36751         REPLACE_FTELL.
36752
36753 2007-05-28  Eric Blake  <ebb9@byu.net>
36754
36755         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
36756
36757 2007-05-28  Bruno Haible  <bruno@clisp.org>
36758
36759         * modules/fseek-tests: New file.
36760         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
36761         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
36762
36763         * lib/fseek.c: New file.
36764         * modules/fseek: New file.
36765         * m4/fseek.m4: New file.
36766         * doc/functions/fseek.texi: Update.
36767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
36768         REPLACE_FSEEK.
36769         * lib/stdio_.h (rpl_fseek): New declaration.
36770         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
36771         REPLACE_FSEEK.
36772
36773 2007-05-28  Bruno Haible  <bruno@clisp.org>
36774
36775         * lib/stdio_.h (fflush): More comments.
36776
36777 2007-05-28  Bruno Haible  <bruno@clisp.org>
36778
36779         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
36780         runtime test.
36781
36782 2007-05-28  Eric Blake  <ebb9@byu.net>
36783
36784         Improve lseek module.
36785         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
36786         * lib/unistd_.h (lseek): Scale back link warning message.
36787         * tests/test-lseek.c: Beef up test.
36788         * tests/test-lseek.sh: Exercise more facets of lseek.
36789         Reported by Bruno Haible.
36790
36791 2007-05-28  Bruno Haible  <bruno@clisp.org>
36792
36793         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
36794         to define.
36795
36796 2007-05-27  Bruno Haible  <bruno@clisp.org>
36797
36798         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
36799
36800 2007-05-27  Bruno Haible  <bruno@clisp.org>
36801
36802         * modules/openmp: New file.
36803         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
36804         Noah Misch.
36805
36806 2007-05-26  Bruno Haible  <bruno@clisp.org>
36807
36808         * modules/chdir-long (Depends-on): Add fchdir.
36809         * modules/chdir-safer (Depends-on): Likewise.
36810         * modules/fts (Depends-on): Likewise.
36811         * modules/fts-lgpl (Depends-on): Likewise.
36812         * modules/openat (Depends-on): Likewise.
36813         * modules/savewd (Depends-on): Likewise.
36814
36815 2007-05-24  Eric Blake  <ebb9@byu.net>
36816
36817         Fix lseek on mingw.
36818         * modules/lseek: New module.
36819         * m4/lseek.m4: New file.
36820         * lib/lseek.c: New file.
36821         * modules/lseek-tests: New file.
36822         * tests/test-lseek.c: New file.
36823         * tests/test-lseek.sh: New file.
36824         * MODULES.html.sh: Document lseek module.
36825         * modules/fflush (Depends-on): Add lseek, fseeko.
36826         * modules/fseeko (Depends-on): Likewise.
36827         * modules/ftello (Depends-on): Likewise.
36828         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
36829         broken.
36830         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
36831         broken.
36832         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
36833         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
36834         * lib/ftello.c (rpl_ftello): Likewise.
36835         * tests/test-fseeko.c (main): Test this.
36836         * tests/test-fseeko.sh: Likewise.
36837         * tests/test-ftello.c (main): Likewise.
36838         * tests/test-ftello.sh: Likewise.
36839         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
36840         implies replacing fseek.
36841         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
36842         HAVE_FTELLO.
36843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
36844         * modules/unistd (Makefile.am): Likewise.
36845         * lib/unistd_.h (lseek): Declare a replacement.
36846         * doc/functions/lseek.texi (lseek): Document this fix.
36847         * doc/functions/fseek.texi (fseek): Likewise.
36848         * doc/functions/ftell.texi (ftell): Likewise.
36849
36850 2007-05-24  Bruno Haible  <bruno@clisp.org>
36851
36852         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
36853         in the printed representation of a NaN.
36854         * tests/test-vasprintf-posix.c (test_function): Likewise.
36855         * tests/test-snprintf-posix.h (test_function): Likewise.
36856         * tests/test-sprintf-posix.h (test_function): Likewise.
36857         Reported by Eric Blake.
36858
36859 2007-05-23  Eric Blake  <ebb9@byu.net>
36860
36861         Fix fseeko/ftello on cygwin 1.5.24.
36862         * doc/functions/fseeko.texi (fseeko): Document the fix.
36863         * doc/functions/ftello.texi (ftello): Document the fix.
36864         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
36865         * doc/functions/stdout.text (stdout): New file.
36866         * doc/functions/stderr.text (stderr): New file.
36867         * doc/gnulib.texi (Function Substitutes): Use new files.
36868         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
36869         prior to 1.7.0.
36870         * tests/test-ftello.c (main): Likewise for ftello.
36871         * tests/test-fseeko.sh: New file.
36872         * tests/test-ftello.sh: New file.
36873         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
36874         with seekable stdin.
36875         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
36876         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
36877         (gl_REPLACE_FSEEKO): New macro.
36878         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
36879         * modules/fseeko (Files): Distribute fseeko.c.
36880         * modules/ftello (Files): Distribute ftello.c.
36881         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
36882         mode.
36883         * lib/ftello.c (rpl_ftello): New file.
36884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
36885         fseeko, ftello.
36886         (gl_STDIN_LARGE_OFFSET): New macro.
36887         * modules/stdio (Makefile.am): Perform the replacement.
36888         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
36889
36890 2007-05-23  Bruno Haible  <bruno@clisp.org>
36891
36892         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
36893         GNULIB_POSIXCHECK is defined.
36894
36895 2007-05-21  Bruno Haible  <bruno@clisp.org>
36896
36897         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
36898         Check also the output for NaN arguments. When cross-compiling, guess
36899         no on IRIX.
36900         * lib/vasnprintf.c: Update comments.
36901         * tests/test-vasnprintf-posix.c (strisnan): New function.
36902         (test_function): Use it.
36903         * tests/test-vasprintf-posix.c (strisnan): New function.
36904         (test_function): Use it.
36905         * tests/test-snprintf-posix.h (strisnan): New function.
36906         (test_function): Use it.
36907         * tests/test-sprintf-posix.h (strisnan): New function.
36908         (test_function): Use it.
36909         Reported by Eric Blake.
36910
36911 2007-05-20  Bruno Haible  <bruno@clisp.org>
36912
36913         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
36914         numbers that fails on BeOS.
36915         * doc/functions/frexpl.texi: Update.
36916
36917 2007-05-20  Jim Meyering  <jim@meyering.net>
36918
36919         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
36920         forced upon us by glibc-2.6.
36921
36922 2007-05-20  Bruno Haible  <bruno@clisp.org>
36923
36924         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
36925         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
36926         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
36927         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
36928         NEED_PRINTF_INFINITE.
36929         (is_infinitel): New function.
36930         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
36931         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
36932         gl_PREREQ_VASNPRINTF_INFINITE.
36933         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
36934         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36935         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
36936         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
36937         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
36938         gl_PREREQ_VASNPRINTF_INFINITE.
36939         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36940         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36941         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36942         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36943         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36944         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36945         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36946         * doc/functions/fprintf.texi: Update.
36947         * doc/functions/printf.texi: Update.
36948         * doc/functions/snprintf.texi: Update.
36949         * doc/functions/sprintf.texi: Update.
36950         * doc/functions/vfprintf.texi: Update.
36951         * doc/functions/vprintf.texi: Update.
36952         * doc/functions/vsnprintf.texi: Update.
36953         * doc/functions/vsprintf.texi: Update.
36954
36955 2007-05-20  Bruno Haible  <bruno@clisp.org>
36956
36957         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
36958         was not found in libc.
36959         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
36960
36961 2007-05-20  Bruno Haible  <bruno@clisp.org>
36962
36963         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
36964         printed as "-nan" instead of "nan".
36965         * tests/test-vasprintf-posix.c (test_function): Likewise.
36966         * tests/test-snprintf-posix.h (test_function): Likewise.
36967         * tests/test-sprintf-posix.h (test_function): Likewise.
36968         Needed for HP-UX 11.
36969
36970 2007-05-20  Jim Meyering  <jim@meyering.net>
36971
36972         Fix buggy test for the fchownat-deref bug.
36973         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
36974         symlink required for the run-test.  Without it, this test would
36975         always declare that fchownat doesn't work, and client code would
36976         unnecessarily use the replacement function with fixed libc.
36977         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
36978         Reported by Greg Schafer.
36979
36980 2007-05-19  Bruno Haible  <bruno@clisp.org>
36981
36982         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
36983         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
36984         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
36985         Needed for IRIX 6.5 and Solaris 2.5.1.
36986
36987 2007-05-19  Bruno Haible  <bruno@clisp.org>
36988
36989         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
36990         (test_function): Skip tests involving -0.0 on platforms where
36991         -0.0 = 0.0.
36992         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
36993         (test_function): Skip tests involving -0.0 on platforms where
36994         -0.0 = 0.0.
36995         * tests/test-snprintf-posix.h (have_minus_zero): New function.
36996         (test_function): Skip tests involving -0.0 on platforms where
36997         -0.0 = 0.0.
36998         * tests/test-sprintf-posix.h (have_minus_zero): New function.
36999         (test_function): Skip tests involving -0.0 on platforms where
37000         -0.0 = 0.0.
37001         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
37002         tests.
37003         * tests/test-printf-posix.h (test_function): Likewise.
37004         * tests/test-printf-posix.output: Remove all -0.0 related results.
37005         Needed for IRIX 6.5.
37006
37007 2007-05-19  Bruno Haible  <bruno@clisp.org>
37008
37009         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
37010         printed as "nan0x7fffffff" instead of "nan".
37011         * tests/test-vasprintf-posix.c (test_function): Likewise.
37012         * tests/test-snprintf-posix.h (test_function): Likewise.
37013         * tests/test-sprintf-posix.h (test_function): Likewise.
37014         * tests/test-fprintf-posix.h (NaN): Remove macro.
37015         (test_function): Remove all NaN related tests.
37016         * tests/test-printf-posix.h (NaN): Remove macro.
37017         (test_function): Remove all NaN related tests.
37018         * tests/test-printf-posix.output: Remove all NaN related results.
37019         Needed for IRIX 6.5.
37020
37021 2007-05-19  Bruno Haible  <bruno@clisp.org>
37022
37023         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
37024         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
37025
37026 2007-05-19  Bruno Haible  <bruno@clisp.org>
37027
37028         * lib/float_.h: New file.
37029         * m4/float_h.m4: New file.
37030         * modules/float: New file.
37031         * modules/isnanl (Dependencies): Add float.
37032         * modules/isnanl-nolibm (Dependencies): Likewise.
37033         * modules/mathl (Dependencies): Likewise.
37034         * modules/printf-frexpl (Dependencies): Likewise.
37035         * modules/signbit (Dependencies): Likewise.
37036         * modules/vasnprintf (Dependencies): Likewise.
37037         * doc/headers/float.texi: Update.
37038
37039 2007-05-19  Jim Meyering  <jim@meyering.net>
37040
37041         * lib/utimens.c (gl_futimens): Rename from futimens,
37042         now that glibc-2.6 declares futimens.
37043         * lib/utimens.h: Likewise.
37044
37045 2007-05-19  Bruno Haible  <bruno@clisp.org>
37046
37047         Avoid test failures on mingw.
37048         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
37049         * tests/test-printf-posix.sh: Likewise.
37050         * tests/test-vfprintf-posix.sh: Likewise.
37051         * tests/test-vprintf-posix.sh: Likewise.
37052
37053 2007-05-19  Bruno Haible  <bruno@clisp.org>
37054
37055         Fix *printf result for NaN, Inf, -0.0 on mingw.
37056         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
37057         * lib/vasnprintf.c: Include math.h and isnan.h.
37058         (is_infinite_or_zero): New function.
37059         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
37060         values in the %f, %F, %e, %E, %g, %G directives.
37061         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
37062         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37063         gl_PRINTF_INFINITE and test its result. Invoke
37064         gl_PREREQ_VASNPRINTF_INFINITE.
37065         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37066         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37067         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37068         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37069         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37070         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37071         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37072         * doc/functions/fprintf.texi: Update.
37073         * doc/functions/printf.texi: Update.
37074         * doc/functions/snprintf.texi: Update.
37075         * doc/functions/sprintf.texi: Update.
37076         * doc/functions/vfprintf.texi: Update.
37077         * doc/functions/vprintf.texi: Update.
37078         * doc/functions/vsnprintf.texi: Update.
37079         * doc/functions/vsprintf.texi: Update.
37080
37081 2007-05-19  Bruno Haible  <bruno@clisp.org>
37082
37083         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
37084         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
37085         Instead of multiplying with 10^k, set extra_zeroes to k.
37086         (scale10_round_long_double): Remove function.
37087
37088 2007-05-18  Bruno Haible  <bruno@clisp.org>
37089
37090         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
37091         introduced on 2007-05-06.
37092
37093 2007-05-18  Bruno Haible  <bruno@clisp.org>
37094
37095         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
37096         %g directives.
37097         * tests/test-vasprintf-posix.c (test_function): Likewise.
37098         * tests/test-snprintf-posix.h (test_function): Likewise.
37099         * tests/test-sprintf-posix.h (test_function): Likewise.
37100
37101 2007-05-18  Bruno Haible  <bruno@clisp.org>
37102
37103         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
37104         (strmatch): New function.
37105         (test_function): Test the %f directive on numbers of various exponents.
37106         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
37107         (strmatch): New function.
37108         (test_function): Test the %f directive on numbers of various exponents.
37109         * tests/test-snprintf-posix.h (strmatch): New function.
37110         (test_function): Test the %f directive on numbers of various exponents.
37111         * tests/test-sprintf-posix.h (strmatch): New function.
37112         (test_function): Test the %f directive on numbers of various exponents.
37113         * tests/test-snprintf-posix.c (SIZEOF): New macro.
37114         * tests/test-sprintf-posix.c (SIZEOF): New macro.
37115         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
37116         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
37117
37118 2007-05-18  Bruno Haible  <bruno@clisp.org>
37119
37120         Add support for 'long double' number output.
37121         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
37122         * lib/vasnprintf.c: Include math.h and float+.h.
37123         (mp_limb_t): New type.
37124         (GMP_LIMB_BITS): New macro.
37125         (mp_twolimb_t): New type.
37126         (GMP_TWOLIMB_BITS): New macro.
37127         (mpn_t): New type.
37128         (multiply, divide, convert_to_decimal, decode_long_double,
37129         scale10_round_long_double, scale10_round_decimal_long_double,
37130         floorlog10l): New functions.
37131         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
37132         for the %f, %F, %e, %E, %g, %G directives.
37133         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
37134         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37135         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
37136         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
37137         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37138         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37139         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37140         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37141         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37142         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37143         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37144         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
37145         * modules/snprintf-posix (Depends-on): Likewise.
37146         * modules/sprintf-posix (Depends-on): Likewise.
37147         * modules/vasnprintf-posix (Depends-on): Likewise.
37148         * modules/vasprintf-posix (Depends-on): Likewise.
37149         * modules/vfprintf-posix (Depends-on): Likewise.
37150         * modules/vsnprintf-posix (Depends-on): Likewise.
37151         * modules/vsprintf-posix (Depends-on): Likewise.
37152         * modules/vasnprintf (Files): Add lib/float+.h.
37153         * doc/functions/fprintf.texi: Update.
37154         * doc/functions/printf.texi: Update.
37155         * doc/functions/snprintf.texi: Update.
37156         * doc/functions/sprintf.texi: Update.
37157         * doc/functions/vfprintf.texi: Update.
37158         * doc/functions/vprintf.texi: Update.
37159         * doc/functions/vsnprintf.texi: Update.
37160         * doc/functions/vsprintf.texi: Update.
37161
37162 2007-05-18  Bruno Haible  <bruno@clisp.org>
37163
37164         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
37165
37166 2007-05-18  Bruno Haible  <bruno@clisp.org>
37167
37168         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
37169         for printing 64-bit integers. Needed for mingw.
37170
37171 2007-05-18  Bruno Haible  <bruno@clisp.org>
37172
37173         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
37174         gl_FUNC_FREXPL_WORKS.
37175         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
37176
37177 2007-05-18  Bruno Haible  <bruno@clisp.org>
37178
37179         * modules/frexpl-nolibm-tests: New file.
37180
37181         * modules/frexpl-nolibm: New file.
37182         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
37183
37184 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
37185
37186         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
37187         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
37188         GCC 4.2, which otherwise issues a lot of warnings.
37189         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
37190         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
37191         Likewise.
37192         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
37193         * modules/iconv_open (iconv.h): Likewise.
37194         * modules/locale (locale.h): Likewise.
37195         * modules/netinet_in (netinet/in.h): Likewise.
37196         * modules/sys_select (sys_select.h): Likewise.
37197         * modules/sys_socket (sys/socket.h): Likewise.
37198         * modules/sys_stat (sys/stat.h): Likewise.
37199         * modules/sysexits (sysexits.h): Likewise.
37200         * modules/unistd (unistd.h): Likewise.
37201
37202 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37203
37204         * modules/closein-tests (Makefile.am): Distribute
37205         `test-closein.sh'.
37206
37207 2007-05-17  Bruno Haible  <bruno@clisp.org>
37208
37209         * tests/test-printf-posix.output: Renamed from
37210         tests/test-fprintf-posix.out.
37211         * modules/fprintf-posix-tests: Update.
37212         * modules/printf-posix-tests: Update.
37213         * modules/vfprintf-posix-tests: Update.
37214         * modules/vprintf-posix-tests: Update.
37215         * tests/test-fprintf-posix.sh: Update.
37216         * tests/test-printf-posix.sh: Update.
37217         * tests/test-vfprintf-posix.sh: Update.
37218         * tests/test-vprintf-posix.sh: Update.
37219         Reported by Ralf Wildenhues.
37220
37221 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
37222
37223         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
37224         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
37225         GCC 4.2, which otherwise issues a lot of warnings.
37226         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
37227         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
37228         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
37229         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
37230         it should no longer be needed.
37231         * lib/string_.h: Likewise.
37232         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
37233         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
37234         * modules/inttypes (inttypes.h): Likewise.
37235         * modules/math (math.h): Likewise.
37236         * modules/search (search.h): Likewise.
37237         * modules/signal (signal.h): Likewise.
37238         * modules/stdint (stdint.h): Likewise.
37239         * modules/stdio (stdio.h): Likewise.
37240         * modules/stdlib (stdlib.h): Likewise.
37241         * modules/string (string.h): Likewise.
37242         * modules/sys_time (sys/time.h): Likewise.
37243         * modules/time (time.h): Likewise.
37244         * modules/wchar (wchar.h): Likewise.
37245         * modules/wctype (wtype.h): Likewise.
37246
37247 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
37248
37249         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
37250
37251 2007-05-13  Bruno Haible  <bruno@clisp.org>
37252
37253         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
37254         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37255         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
37256         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
37257         (gl_PREREQ_STRTOK_R): Don't require it here.
37258
37259 2007-05-13  Bruno Haible  <bruno@clisp.org>
37260
37261         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
37262         when used in C++ mode.
37263
37264 2007-05-12  Bruno Haible  <bruno@clisp.org>
37265
37266         * lib/linebuffer.h: Tweak doc.
37267         * lib/linebuffer.c: Likewise.
37268
37269 2007-05-12  James Youngman  <jay@gnu.org>
37270
37271         * lib/linebuffer.c (readlinebuffer_delim): New function,
37272         like readlinebuffer, but use a caller-specified delimiter.
37273         (readlinebuffer): Just call readlinebuffer_delim with '\n'
37274         as the delimiter.
37275         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
37276
37277 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37278
37279         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
37280         * modules/openat (Files): Remove openat-die.c.
37281         (Depends-on): Add openat-die.
37282         * modules/openat-die: New module.
37283
37284 2007-05-06  Bruno Haible  <bruno@clisp.org>
37285
37286         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
37287         Update with info about Cygwin.
37288         * doc/functions/fprintf.texi: Update.
37289         * doc/functions/printf.texi: Update.
37290         * doc/functions/snprintf.texi: Update.
37291         * doc/functions/sprintf.texi: Update.
37292         * doc/functions/vfprintf.texi: Update.
37293         * doc/functions/vprintf.texi: Update.
37294         * doc/functions/vsnprintf.texi: Update.
37295         * doc/functions/vsprintf.texi: Update.
37296         Reported by Eric Blake.
37297
37298 2007-05-06  Bruno Haible  <bruno@clisp.org>
37299
37300         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
37301         padding ourselves for the floating-point directives.
37302         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
37303         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
37304         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
37305         gl_PRINTF_FLAG_ZERO and test its result. Invoke
37306         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
37307         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37308         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
37309         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37310         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37311         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37312         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37313         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37314         * tests/test-snprintf-posix.h (test_function): Also check the width
37315         and some flags in the %f directive.
37316         * tests/test-sprintf-posix.h (test_function): Likewise.
37317         * tests/test-vasnprintf-posix.c (test_function): Likewise.
37318         * tests/test-vasprintf-posix.c (test_function): Likewise.
37319         * doc/functions/fprintf.texi: Update.
37320         * doc/functions/printf.texi: Update.
37321         * doc/functions/snprintf.texi: Update.
37322         * doc/functions/sprintf.texi: Update.
37323         * doc/functions/vfprintf.texi: Update.
37324         * doc/functions/vprintf.texi: Update.
37325         * doc/functions/vsnprintf.texi: Update.
37326         * doc/functions/vsprintf.texi: Update.
37327
37328 2007-05-06  Bruno Haible  <bruno@clisp.org>
37329
37330         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
37331         pass the ' flag character to sprintf or snprintf.
37332         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
37333         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
37334         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
37335         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
37336         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
37337         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37338         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
37339         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37340         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37341         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37342         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37343         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37344         * tests/test-snprintf-posix.h (test_function): Also check the grouping
37345         flag.
37346         * tests/test-sprintf-posix.h (test_function): Likewise.
37347         * tests/test-vasnprintf-posix.c (test_function): Likewise.
37348         * tests/test-vasprintf-posix.c (test_function): Likewise.
37349         * doc/functions/fprintf.texi: Update.
37350         * doc/functions/printf.texi: Update.
37351         * doc/functions/snprintf.texi: Update.
37352         * doc/functions/sprintf.texi: Update.
37353         * doc/functions/vfprintf.texi: Update.
37354         * doc/functions/vprintf.texi: Update.
37355         * doc/functions/vsnprintf.texi: Update.
37356         * doc/functions/vsprintf.texi: Update.
37357
37358 2007-05-01  Bruno Haible  <bruno@clisp.org>
37359
37360         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
37361
37362 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
37363
37364         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
37365         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
37366
37367 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
37368
37369         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
37370         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
37371         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
37372
37373 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
37374
37375         * lib/argp-help.c (struct hol_entry): New member `ord'.
37376         (HOL_ENTRY_PTRCMP): Use ord for comparison
37377         (hol_sort): Initialize ord.
37378
37379 2007-05-01  Bruno Haible  <bruno@clisp.org>
37380
37381         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
37382         Reported by Eric Blake.
37383         * doc/gnulib.texi (Function Substitutes): Update.
37384
37385 2007-05-01  Bruno Haible  <bruno@clisp.org>
37386
37387         * doc/functions.texi: Remove file, now redundant through
37388         doc/functions/*.texi.
37389
37390 2007-05-01  Bruno Haible  <bruno@clisp.org>
37391
37392         * modules/argp (Depends-on): Add sleep.
37393
37394 2007-05-01  Bruno Haible  <bruno@clisp.org>
37395
37396         * modules/sleep-tests: New file.
37397         * tests/test-sleep.c: New file.
37398
37399         * modules/sleep: New file.
37400         * lib/sleep.c: New file.
37401         * m4/sleep.m4: New file.
37402         * lib/unistd_.h (sleep): New declaration.
37403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
37404         HAVE_SLEEP.
37405         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
37406         * doc/functions/sleep.texi: Document the sleep module.
37407
37408 2007-05-01  Bruno Haible  <bruno@clisp.org>
37409
37410         * lib/sigprocmask.h: Remove file.
37411         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
37412         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
37413         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
37414         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
37415         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
37416         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
37417         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
37418         HAVE_SIGSET_T as a shell variable.
37419         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
37420         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
37421         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
37422         (Depends-on): Add signal. Remove verify.
37423         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
37424         (Include): Mention <signal.h> instead of sigprocmask.h.
37425         * NEWS: Mention the change.
37426         * lib/fatal-signal.c: Don't include sigprocmask.h.
37427
37428 2007-05-01  Bruno Haible  <bruno@clisp.org>
37429
37430         * modules/signal: New file.
37431         * lib/signal_.h: New file.
37432         * m4/signal_h.m4: New file.
37433
37434 2007-05-01  Bruno Haible  <bruno@clisp.org>
37435
37436         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
37437         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
37438         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
37439         HAVE_WCTYPE_CTMP_BUG into wctype.h.
37440
37441 2007-05-01  Bruno Haible  <bruno@clisp.org>
37442
37443         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
37444         configure time.
37445         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
37446         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
37447         * modules/sys_stat (Makefile.am): Substitute their values into
37448         sys/stat.h.
37449
37450 2007-05-01  Bruno Haible  <bruno@clisp.org>
37451
37452         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
37453         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
37454         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
37455
37456 2007-05-01  Bruno Haible  <bruno@clisp.org>
37457
37458         * doc/header/assert.texi: Undo last change: don't mention the gnulib
37459         'assert' module here.
37460
37461 2007-05-01  Bruno Haible  <bruno@clisp.org>
37462
37463         * doc/functions/*.texi: New files.
37464         * doc/functions/google-ranking.txt: New file.
37465         * doc/gnulib.texi (Function Substitutes): New chapter.
37466         (ctime, inet_ntoa): Remove sections.
37467         * doc/ctime.texi: Remove file.
37468         * doc/inet_ntoa.texi: Remove file.
37469         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
37470         dependencies.
37471         (%.info): New rule, specifying a --reference-limit.
37472
37473 2007-05-01  Bruno Haible  <bruno@clisp.org>
37474
37475         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
37476
37477 2007-05-01  Bruno Haible  <bruno@clisp.org>
37478
37479         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
37480         the portability of 'mkdir' to mingw systems.
37481
37482 2007-05-01  Bruno Haible  <bruno@clisp.org>
37483
37484         * doc/headers/google-ranking.txt: New file.
37485
37486 2007-04-30  Eric Blake  <ebb9@byu.net>
37487
37488         Prefer fseeko to fseek.
37489         * modules/getpass (Depends-on): Add fseeko.
37490         * lib/getpass.c (getpass): Use fseeko, not fseek.
37491
37492 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
37493
37494         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
37495         assumes the sorting is stable, while most qsort implementations
37496         are not.  Use argument addresses to ensure they never compare as
37497         equal.
37498
37499         * tests/test-argp-2.sh (usage-indent test): Fix output
37500         (func_compare): Restore diff options
37501         * tests/test-argp.c: Restore #include "progname.h"
37502
37503 2007-04-29  Bruno Haible  <bruno@clisp.org>
37504
37505         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
37506         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
37507         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
37508         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37509         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
37510         (configure.ac): Define CHECK_SNPRINTF_POSIX.
37511         (TESTS, check_PROGRAMS): Add test-snprintf.
37512         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
37513         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
37514         (TESTS, check_PROGRAMS): Add test-vsnprintf.
37515         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
37516         assertions that fail on HP-UX, OSF/1, or IRIX.
37517         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
37518
37519 2007-04-29  Bruno Haible  <bruno@clisp.org>
37520
37521         * MODULES.html.sh (posix_functions): Remove 'contents'.
37522
37523 2007-04-29  Karl Berry  <karl@gnu.org>
37524
37525         * config/srclist.txt (gendocs_template_min): new entry.
37526
37527 2007-04-29  Bruno Haible  <bruno@clisp.org>
37528
37529         Work around fpurge bug on BSD systems.
37530         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
37531         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
37532         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
37533         fpurge to rpl_fpurge if the system already has this function.
37534         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
37535         the case where the system already has this function. Correct invariants
37536         on BSD systems.
37537         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
37538         BSD systems.
37539
37540 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
37541
37542         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
37543         proposed by Sven Verdoolaege.
37544
37545         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
37546         options.
37547         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
37548         (usage and help tests): Update
37549
37550 2007-04-29  Bruno Haible  <bruno@clisp.org>
37551
37552         * tests/test-fflush.c (main): Use a file of size 17, not 10.
37553         Print more information in case of failure. Disable a test on BeOS.
37554
37555 2007-04-29  Bruno Haible  <bruno@clisp.org>
37556
37557         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
37558         This helps debugging on systems on which no gdb is available.
37559
37560 2007-04-29  Bruno Haible  <bruno@clisp.org>
37561
37562         * lib/freading.h: Improve comments.
37563         * lib/fwriting.h: Likewise.
37564         * tests/test-freading.c (main): Don't check freading immediately after
37565         repositioning. Needed for glibc.
37566
37567 2007-04-29  Bruno Haible  <bruno@clisp.org>
37568
37569         * lib/freading.c (freading): Trivial simplification.
37570
37571 2007-04-28  Bruno Haible  <bruno@clisp.org>
37572
37573         * tests/test-fwriting.c (main): Also test the interaction between
37574         fflush and fwriting.
37575         * modules/fwriting-tests (Depends-on): Add fflush.
37576
37577         * tests/test-freading.c (main): Also test the interaction between
37578         fflush and freading.
37579         * modules/freading-tests (Depends-on): Add fflush.
37580
37581 2007-04-28  Bruno Haible  <bruno@clisp.org>
37582
37583         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
37584         fseeko and ftello.
37585         Suggested by Eric Blake.
37586
37587 2007-04-28  Jim Meyering  <jim@meyering.net>
37588
37589         Avoid false-negative in gl_STDINT_H's C99 conformance test.
37590         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
37591         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
37592
37593 2007-04-27  Eric Blake  <ebb9@byu.net>
37594
37595         * doc/headers/assert.texi (assert.h): Document assert module use.
37596
37597 2007-04-27  Bruno Haible  <bruno@clisp.org>
37598
37599         * doc/headers/*.texi: New files.
37600         * doc/gnulib.texi (Header File Substitutes): New chapter.
37601         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
37602         dependencies.
37603         (standards.info ,standards.html, standards.dvi): Update dependencies.
37604         (mostlyclean, clean): New targets.
37605
37606 2007-04-27  Bruno Haible  <bruno@clisp.org>
37607
37608         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
37609         * modules/sysexits (Files, Makefile.am): Update.
37610
37611         * lib/sys_socket_.h: Renamed from lib/socket_.h.
37612         * modules/sys_socket (Files, Makefile.am): Update.
37613
37614         * lib/sys_stat_.h: Renamed from lib/stat_.h.
37615         * modules/sys_stat (Files, Makefile.am): Update.
37616
37617 2007-04-27  Eric Blake  <ebb9@byu.net>
37618
37619         * lib/freading.h: Improve comments.
37620         * lib/fwriting.h: Likewise.
37621         * lib/fflush.c: Likewise.
37622
37623         Fix closein for mingw.
37624         * modules/closein-tests: Add tests for closein.
37625         * tests/test-closein.c: New file.
37626         * tests/test-closein.sh: Likewise.
37627         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
37628         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
37629
37630 2007-04-27  Bruno Haible  <bruno@clisp.org>
37631
37632         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
37633         version is < 6.
37634         * lib/math_.h [__DECC]: Likewise.
37635         * lib/stdio_.h [__DECC]: Likewise.
37636         * lib/stdlib_.h [__DECC]: Likewise.
37637         * lib/string_.h [__DECC]: Likewise.
37638         * lib/time_.h [__DECC]: Likewise.
37639         * lib/wchar_.h [__DECC]: Likewise.
37640         * lib/wctype_.h [__DECC]: Likewise.
37641
37642 2007-04-27  Bruno Haible  <bruno@clisp.org>
37643
37644         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
37645
37646 2007-04-27  Bruno Haible  <bruno@clisp.org>
37647
37648         * lib/fflush.c: Add comments.
37649         * modules/fpurge-tests (Depends-on): Add fflush.
37650         * modules/freadable-tests (Depends-on): Likewise.
37651         * modules/fwritable-tests (Depends-on): Likewise.
37652
37653 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
37654
37655         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
37656         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
37657         Report by Bruno Haible <bruno@clisp.org>.
37658
37659 2007-04-26  Eric Blake  <ebb9@byu.net>
37660
37661         Fix fflush on mingw.
37662         * modules/fflush (Depends-on): Add freading.
37663         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
37664         but unread data.
37665
37666 2007-04-26  Eric Blake  <ebb9@byu.net>
37667         and Bruno Haible  <bruno@clisp.org>
37668
37669         Implement freading and fwriting.
37670         * lib/freading.c: New file.
37671         * lib/freading.h: Likewise.
37672         * m4/freading.m4: Likewise.
37673         * modules/freading: Likewise.
37674         * modules/freading-tests: Likewise.
37675         * tests/test-freading.c: Likewise.
37676         * lib/fwriting.c: New file.
37677         * lib/fwriting.h: Likewise.
37678         * m4/fwriting.m4: Likewise.
37679         * modules/fwriting: Likewise.
37680         * modules/fwriting-tests: Likewise.
37681         * tests/test-fwriting.c: Likewise.
37682         * MODULES.html.sh (File stream based Input/Output): Mention them.
37683
37684 2007-04-26  Bruno Haible  <bruno@clisp.org>
37685
37686         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
37687         'long' when we assume it.
37688         Suggested by Eric Blake.
37689
37690 2007-04-26  Bruno Haible  <bruno@clisp.org>
37691
37692         Ensure fseeko, ftello are declared on glibc systems.
37693         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
37694         * modules/fseeko (configure.ac-early): Likewise.
37695         * modules/ftello (configure.ac-early): Likewise.
37696         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
37697         AC_FUNC_FSEEKO for this.
37698         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
37699         (gl_CHECK_FSEEKO): Remove macro.
37700
37701 2007-04-26  Bruno Haible  <bruno@clisp.org>
37702
37703         * tests/test-fflush.c (main): Also check the ftell result after
37704         fflush and fseek/fseeko.
37705         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
37706         file descriptor position cache in the stream.
37707         * lib/fseeko.c (rpl_fseeko): Likewise.
37708
37709 2007-04-26  Bruno Haible  <bruno@clisp.org>
37710
37711         * modules/fflush-tests (Depends-on): Add fseeko.
37712
37713 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
37714             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37715
37716         * lib/argz_.h: ensure error_t definition is obtained in same
37717         mechanism system argz.h would have.
37718         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
37719         argz facilities are known bad.  Err on the side of caution if
37720         cross-compiling.
37721
37722 2007-04-25  Eric Blake  <ebb9@byu.net>
37723
37724         * lib/fpurge.c (includes): Use stdlib.h for free.
37725         * tests/test-fflush.c (main): Also test fflush-fseeko.
37726
37727 2007-04-25  Bruno Haible  <bruno@clisp.org>
37728
37729         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
37730         * lib/fseeko.c: New file.
37731         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
37732         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
37733         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
37734         gl_FUNC_FSEEKO.
37735         (gl_FUNC_FSEEKO): Invoke it.
37736         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
37737         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
37738         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
37739
37740 2007-04-25  Bruno Haible  <bruno@clisp.org>
37741
37742         * modules/fflush (Depends-on): Add ftello.
37743
37744 2007-04-25  Bruno Haible  <bruno@clisp.org>
37745
37746         * modules/ftello-tests: New file.
37747         * tests/test-ftello.c: New file.
37748
37749         * modules/ftello: New file.
37750         * m4/ftello.m4: New file.
37751         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
37752         HAVE_FTELLO.
37753         * lib/stdio_.h (ftello): New declaration.
37754         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
37755         HAVE_FTELLO.
37756
37757 2007-04-25  Bruno Haible  <bruno@clisp.org>
37758
37759         * modules/fseeko-tests: New file.
37760         * tests/test-fseeko.c: New file.
37761
37762         * modules/fseeko: New file.
37763         * m4/fseeko.m4: New file.
37764         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
37765         HAVE_FSEEKO.
37766         * lib/stdio_.h (fseeko): New declaration.
37767         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
37768         HAVE_FSEEKO.
37769
37770 2007-04-25  Bruno Haible  <bruno@clisp.org>
37771
37772         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
37773
37774 2007-04-25  Bruno Haible  <bruno@clisp.org>
37775
37776         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
37777         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
37778         * tests/test-unistd.c: Likewise.
37779         * tests/test-fcntl.c: Likewise.
37780
37781 2007-04-23  Eric Blake  <ebb9@byu.net>
37782
37783         * lib/fflush.c: Fix missing include.
37784         Reported by Bruno Haible.
37785
37786 2007-04-23  Bruno Haible  <bruno@clisp.org>
37787
37788         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
37789         Reported by Eric Blake.
37790
37791 2007-04-23  Bruno Haible  <bruno@clisp.org>
37792
37793         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
37794
37795 2007-04-23  Bruno Haible  <bruno@clisp.org>
37796
37797         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
37798
37799 2007-04-23  Bruno Haible  <bruno@clisp.org>
37800
37801         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
37802         Needed on HP-UX 11.
37803
37804 2007-04-16  Eric Blake  <ebb9@byu.net>
37805
37806         Make fflush rely on fpurge.
37807         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
37808         open coding all variants.
37809         * modules/fflush (Depends-on): Add fpurge and unistd.
37810         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
37811         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
37812
37813         Fix --with-tests compilation on cygwin.
37814         * modules/argmatch-tests (Makefile.am): List gnulib library first
37815         in LDADD.
37816         * modules/argp-tests (Makefile.am): Likewise.
37817         * modules/array-list-tests (Makefile.am): Likewise.
37818         * modules/array-oset-tests (Makefile.am): Likewise.
37819         * modules/avltree-list-tests (Makefile.am): Likewise.
37820         * modules/avltree-oset-tests (Makefile.am): Likewise.
37821         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37822         * modules/carray-list-tests (Makefile.am): Likewise.
37823         * modules/dirname-tests (Makefile.am): Likewise.
37824         * modules/frexp-tests (Makefile.am): Likewise.
37825         * modules/isnanl-tests (Makefile.am): Likewise.
37826         * modules/linked-list-tests (Makefile.am): Likewise.
37827         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37828         * modules/lock-tests (Makefile.am): Likewise.
37829         * modules/rbtree-list-tests (Makefile.am): Likewise.
37830         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37831         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37832         * modules/tls-tests (Makefile.am): Likewise.
37833         * modules/tsearch-tests (Makefile.am): Likewise.
37834         * modules/xvasprintf-tests (Makefile.am): Likewise.
37835
37836         Fix fpurge for cygwin.
37837         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
37838         value.
37839         * modules/fpurge-tests (Depends-on): Clean up trash.
37840
37841 2007-04-16  Simon Josefsson  <simon@josefsson.org>
37842
37843         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
37844
37845         * m4/autobuild.m4: Re-indent.
37846
37847 2007-04-13  Bruno Haible  <bruno@clisp.org>
37848
37849         * modules/fpurge-tests: New file.
37850         * tests/test-fpurge.c: New file.
37851
37852         * modules/fpurge: New file.
37853         * lib/fpurge.h: New file.
37854         * lib/fpurge.c: New file.
37855         * m4/fpurge.m4: New file.
37856
37857 2007-04-13  Bruno Haible  <bruno@clisp.org>
37858
37859         * modules/fbufmode-tests: New file.
37860         * tests/test-fbufmode.c: New file.
37861
37862         * modules/fbufmode: New file.
37863         * lib/fbufmode.h: New file.
37864         * lib/fbufmode.c: New file.
37865         * m4/fbufmode.m4: New file.
37866
37867 2007-04-13  Bruno Haible  <bruno@clisp.org>
37868
37869         * modules/fwritable-tests: New file.
37870         * tests/test-fwritable.c: New file.
37871
37872         * modules/fwritable: New file.
37873         * lib/fwritable.h: New file.
37874         * lib/fwritable.c: New file.
37875         * m4/fwritable.m4: New file.
37876
37877 2007-04-13  Bruno Haible  <bruno@clisp.org>
37878
37879         * modules/freadable-tests: New file.
37880         * tests/test-freadable.c: New file.
37881
37882         * modules/freadable: New file.
37883         * lib/freadable.h: New file.
37884         * lib/freadable.c: New file.
37885         * m4/freadable.m4: New file.
37886
37887 2007-04-13  Bruno Haible  <bruno@clisp.org>
37888
37889         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
37890         MOSTLYCLEANFILES.
37891
37892 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
37893
37894         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
37895         gzip bootstrap.conf to avoid dragging in i18n machinery.
37896         (gnulib_tool_option): Use it.
37897
37898 2007-04-13  Bruno Haible  <bruno@clisp.org>
37899
37900         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
37901         %F directives.
37902         * tests/test-vasprintf-posix.c (test_function): Likewise.
37903         * tests/test-snprintf-posix.h (test_function): Likewise.
37904         * tests/test-sprintf-posix.h (test_function): Likewise.
37905         * tests/test-fprintf-posix.h (test_function): Likewise.
37906         * tests/test-printf-posix.h (test_function): Likewise.
37907         * tests/test-fprintf-posix.out: Likewise.
37908
37909 2007-04-13  Bruno Haible  <bruno@clisp.org>
37910
37911         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
37912         * modules/tls-tests (configure.ac): Likewise.
37913         Reported by Arto C. Nirkko <anirkko@insel.ch>.
37914
37915 2007-04-13  Bruno Haible  <bruno@clisp.org>
37916
37917         * lib/tls.c (glthread_tls_get): Fix return type.
37918         Patch by Arto C. Nirkko <anirkko@insel.ch>.
37919
37920 2007-04-12  Eric Blake  <ebb9@byu.net>
37921
37922         * modules/gettime (Depends-on): Remove gettime.
37923         Reported by Dmitry V. Levin.
37924
37925 2007-04-12  Bruno Haible  <bruno@clisp.org>
37926
37927         * modules/fflush (Include): Mention <stdio.h>.
37928         * modules/strtoimax (Include): Mention <inttypes.h>.
37929         * modules/strtoumax (Include): Likewise.
37930
37931 2007-04-12  Eric Blake  <ebb9@byu.net>
37932
37933         * .cvsignore: New file.
37934         * .gitignore: Likewise.
37935
37936 2007-04-12  Bruno Haible  <bruno@clisp.org>
37937
37938         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
37939         not before, since $(LDADD) often contains libgnu.a.
37940         * modules/striconv-tests (test_striconv_LDADD): Likewise.
37941         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
37942         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
37943         Needed on Cygwin.
37944
37945 2007-04-12  Eric Blake  <ebb9@byu.net>
37946
37947         Work around glibc's failure to flush stdin on fclose.
37948         * lib/closein.c (close_stdin): Flush stdin before closing.
37949
37950         Work around glibc's failure to reset seekable stdin on exit.
37951         * modules/closein: New module.
37952         * lib/closein.c: New file.
37953         * lib/closein.h: Likewise.
37954         * m4/closein.m4: Likewise.
37955         * MODULES.html.sh (File stream based Input/Output): Document it.
37956
37957 2007-04-12  Simon Josefsson  <simon@josefsson.org>
37958
37959         * gnulib-tool: Rename generated 'autobuild' script to
37960         'do-autobuild' in --create-megatestdir output.
37961
37962         * doc/gnulib.texi (Build robot for gnulib): Fix.
37963
37964 2007-04-12  Simon Josefsson  <simon@josefsson.org>
37965
37966         * modules/sysexits (Depends-on): Add absolute-header.
37967
37968 2007-04-12  Eric Blake  <ebb9@byu.net>
37969
37970         No need to preserve errno on success.
37971         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
37972         Reported by Bruno Haible.
37973
37974 2007-04-12  Simon Josefsson  <simon@josefsson.org>
37975
37976         * MODULES.html.sh (Support for maintaining and releasing
37977         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
37978
37979 2007-04-12  Simon Josefsson  <simon@josefsson.org>
37980
37981         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
37982
37983 2007-04-12  Simon Josefsson  <simon@josefsson.org>
37984
37985         * modules/autobuild: New module.
37986
37987         * m4/autobuild.m4: New file.
37988
37989 2007-04-11  Bruno Haible  <bruno@clisp.org>
37990
37991         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
37992         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
37993         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
37994         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
37995         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37996         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
37997         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
37998         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
37999         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38000         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38001         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
38002         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38003         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38004         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
38005         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38006         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38007         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
38008         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38009         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38010         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
38011         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38012         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38013         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
38014         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38015         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38016         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
38017         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38018         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38019         Reported by Eric Blake.
38020
38021 2007-04-11  Bruno Haible  <bruno@clisp.org>
38022
38023         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
38024
38025 2007-04-10  Bruno Haible  <bruno@clisp.org>
38026
38027         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
38028         for NaN and Infinity. Needed on FreeBSD 6.1.
38029         * tests/test-vasnprintf-posix.c (test_function): Undo last change
38030         regarding results for "%010a" of Infinity and NaN.
38031         * tests/test-vasprintf-posix.c (test_function): Likewise.
38032         * tests/test-snprintf-posix.h (test_function): Likewise.
38033         * tests/test-sprintf-posix.h (test_function): Likewise.
38034         * tests/test-fprintf-posix.h (test_function): Likewise.
38035         * tests/test-printf-posix.h (test_function): Likewise.
38036         * tests/test-fprintf-posix.out: Likewise.
38037
38038 2007-04-10  Bruno Haible  <bruno@clisp.org>
38039
38040         * modules/locale-tests: New file.
38041         * tests/test-locale.c: New file.
38042
38043         * modules/locale: New file.
38044         * lib/locale_.h: New file.
38045         * m4/locale_h.m4: New file.
38046
38047 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
38048             Bruno Haible  <bruno@clisp.org>
38049
38050         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
38051         be determined, test for availability of the copysignf, copysign,
38052         copysignl functions.
38053         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
38054         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
38055         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
38056
38057 2007-04-09  Eric Blake  <ebb9@byu.net>
38058
38059         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
38060         * modules/stdio (Makefile.am): Support fflush.
38061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38062         * modules/fflush: New file.
38063         * lib/fflush.c: Likewise.
38064         * m4/fflush.m4: Likewise.
38065         * modules/fflush-tests: New test.
38066         * tests/test-fflush.c: Likewise.
38067         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
38068
38069 2007-04-06  Bruno Haible  <bruno@clisp.org>
38070
38071         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
38072         (VASNPRINTF): Use signbit for faster determination whether to print a
38073         minus sign.
38074         * modules/vasnprintf (Files): Remove lib/float+.h.
38075         * modules/fprintf-posix (Depends-on): Add signbit.
38076         * modules/snprintf-posix (Depends-on): Likewise.
38077         * modules/sprintf-posix (Depends-on): Likewise.
38078         * modules/vasnprintf-posix (Depends-on): Likewise.
38079         * modules/vasprintf-posix (Depends-on): Likewise.
38080         * modules/vfprintf-posix (Depends-on): Likewise.
38081         * modules/vsnprintf-posix (Depends-on): Likewise.
38082         * modules/vsprintf-posix (Depends-on): Likewise.
38083
38084 2007-04-06  Bruno Haible  <bruno@clisp.org>
38085
38086         * tests/test-frexp.c (main): Test also the sign bit of zero results.
38087         * tests/test-frexpl.c (main): Likewise.
38088         * tests/test-ldexpl.c (main): Likewise.
38089         * modules/frexp-tests (Depends-on): Add signbit.
38090         * modules/frexpl-tests (Depdends-on): Likewise.
38091         * modules/ldexpl-tests (Depdends-on): Likewise.
38092
38093 2007-04-06  Bruno Haible  <bruno@clisp.org>
38094
38095         * modules/signbit-tests: New file.
38096         * tests/test-signbit.c: New file.
38097
38098         * modules/signbit: New file.
38099         * lib/signbitf.c: New file.
38100         * lib/signbitd.c: New file.
38101         * lib/signbitl.c: New file.
38102         * m4/signbit.m4: New file.
38103         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
38104         (signbit): New macro.
38105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
38106         REPLACE_SIGNBIT.
38107         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
38108         REPLACE_FREXPL into math.h.
38109
38110 2007-04-06  Bruno Haible  <bruno@clisp.org>
38111
38112         * modules/isnanf-nolibm-tests: New file.
38113         * tests/test-isnanf.c: New file.
38114
38115         * modules/isnanf-nolibm: New file.
38116         * lib/isnanf.h: New file.
38117         * lib/isnanf.c: New file.
38118         * lib/isnan.c: Consider the USE_FLOAT macro.
38119         * m4/isnanf.m4: New file.
38120
38121 2007-04-06  Bruno Haible  <bruno@clisp.org>
38122
38123         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
38124         (Link): New section.
38125
38126         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
38127
38128 2007-04-06  Bruno Haible  <bruno@clisp.org>
38129
38130         Assume the 'long double' type.
38131         * m4/longdouble.m4: Remove file.
38132         * config/srclist.txt: Don't mention longdouble.m4.
38133         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
38134         * lib/float+.h: Likewise.
38135         * lib/frexp.c: Likewise.
38136         * lib/printf-args.h: Likewise.
38137         * lib/printf-args.c: Likewise.
38138         * lib/printf-frexp.c: Likewise.
38139         * lib/printf-parse.c: Likewise.
38140         * lib/vasnprintf.c: Likewise.
38141         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
38142         * m4/intl.m4: Likewise.
38143         * m4/isnanl.m4: Likewise.
38144         * m4/printf.m4: Likewise.
38145         * m4/printf-frexpl.m4: Likewise.
38146         * m4/vasnprintf.m4: Likewise.
38147         * modules/allocsa (Files): Remove m4/longdouble.m4.
38148         * modules/gettext (Files): Likewise.
38149         * modules/relocatable-prog-wrapper (Files): Likewise.
38150         * modules/vasnprintf (Files): Likewise.
38151         * modules/isnanl (Files): Likewise.
38152         (Include): Simplify.
38153         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
38154         (Include): Simplify.
38155         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
38156         (Include): Simplify.
38157         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
38158         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38159         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
38160         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38161         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
38162         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38163         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
38164         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38165         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
38166         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38167         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
38168         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38169         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
38170         * tests/test-isnanl.c: Likewise.
38171         * tests/test-snprintf-posix.h: Likewise.
38172         * tests/test-sprintf-posix.h: Likewise.
38173         * tests/test-vasnprintf-posix.c: Likewise.
38174         * tests/test-vasnprintf-posix2.c: Likewise.
38175         * tests/test-vasprintf-posix.c: Likewise.
38176
38177 2007-04-06  Bruno Haible  <bruno@clisp.org>
38178
38179         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
38180         * lib/math_.h [__DECC]: Include the overridden include file through
38181         #include_next, outside the double-inclusion guard.
38182         * lib/stdio_.h [__DECC]: Likewise.
38183         * lib/stdlib_.h [__DECC]: Likewise.
38184         * lib/string_.h [__DECC]: Likewise.
38185         * lib/time_.h [__DECC]: Likewise.
38186         * lib/wchar_.h [__DECC]: Likewise.
38187         * lib/wctype_.h [__DECC]: Likewise.
38188         * lib/inttypes_.h [__DECC]: Likewise.
38189         Reported by Albert Chin <china@thewrittenword.com> in
38190         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
38191
38192 2007-04-04  Eric Blake  <ebb9@byu.net>
38193
38194         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
38195         1.5.x.
38196
38197 2007-04-04  Bruno Haible  <bruno@clisp.org>
38198
38199         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
38200         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
38201
38202 2007-04-04  Bruno Haible  <bruno@clisp.org>
38203
38204         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
38205         results for "%010a" of Infinity and NaN.
38206         * tests/test-vasprintf-posix.c (test_function): Likewise.
38207         * tests/test-snprintf-posix.h (test_function): Likewise.
38208         * tests/test-sprintf-posix.h (test_function): Likewise.
38209         * tests/test-fprintf-posix.h (test_function): Remove these tests.
38210         * tests/test-printf-posix.h (test_function): Likewise.
38211         * tests/test-fprintf-posix.out: Update.
38212         Needed for FreeBSD 6.1.
38213
38214 2007-04-04  Bruno Haible  <bruno@clisp.org>
38215
38216         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
38217         directly used by the gnulib modules nor by gnulib-tool.
38218
38219 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
38220
38221         * DEPENDENCIES: Give overall description of version dependency
38222         desirability.  Use more-typical names for apps.
38223         Add shell, coreutils, diffutils, grep, tar, gzip.
38224
38225 2007-04-04  Simon Josefsson  <simon@josefsson.org>
38226
38227         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
38228
38229 2007-04-04  Karl Berry  <karl@gnu.org>
38230
38231         * MODULES.html.sh (func_module): missing '.
38232
38233 2007-04-03  Bruno Haible  <bruno@clisp.org>
38234
38235         * modules/argmatch-tests (Makefile.am): New variable
38236         test_argmatch_LDADD.
38237         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
38238         * modules/array-list-tests (Makefile.am): New variable
38239         test_array_list_LDADD.
38240         * modules/array-oset-tests (Makefile.am): New variable
38241         test_array_oset_LDADD.
38242         * modules/avltree-list-tests (Makefile.am): New variable
38243         test_avltree_list_LDADD.
38244         * modules/avltree-oset-tests (Makefile.am): New variable
38245         test_avltree_oset_LDADD.
38246         * modules/avltreehash-list-tests (Makefile.am): New variable
38247         test_avltreehash_list_LDADD.
38248         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
38249         test_canonicalize_lgpl_LDADD.
38250         * modules/carray-list-tests (Makefile.am): New variable
38251         test_carray_list_LDADD.
38252         * modules/dirname-tests (Makefile.am): New variable
38253         test_dirname_LDADD.
38254         * modules/linked-list-tests (Makefile.am): New variable
38255         test_linked_list_LDADD.
38256         * modules/linkedhash-list-tests (Makefile.am): New variable
38257         test_linkedhash_list_LDADD.
38258         * modules/rbtree-list-tests (Makefile.am): New variable
38259         test_rbtree_list_LDADD.
38260         * modules/rbtree-oset-tests (Makefile.am): New variable
38261         test_rbtree_oset_LDADD.
38262         * modules/rbtreehash-list-tests (Makefile.am): New variable
38263         test_rbtreehash_list_LDADD.
38264         * modules/xvasprintf-tests (Makefile.am): New variable
38265         test_xvasprintf_LDADD.
38266         Reported by Eric Blake.
38267
38268 2007-04-03  Eric Blake  <ebb9@byu.net>
38269
38270         * DEPENDENCIES: Weaken m4 requirements.
38271
38272 2007-04-03  Bruno Haible  <bruno@clisp.org>
38273
38274         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
38275         * modules/isnanl-tests (configure.ac): Likewise.
38276
38277 2007-04-03  Ben Pfaff  <blp@gnu.org>
38278
38279         * modules/iconv_open: Add $(srcdir)/ to source directory
38280         references in Makefile fragments that call gperf, to fix VPATH
38281         builds.
38282
38283 2007-04-03  Bruno Haible  <bruno@clisp.org>
38284
38285         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
38286         * lib/ldexpl.c: Undo last change.
38287
38288 2007-04-03  Bruno Haible  <bruno@clisp.org>
38289
38290         * modules/printf-frexpl (Depends-on): Undo last change.
38291         (Files): Add m4/ldexpl.m4.
38292
38293 2007-04-03  Bruno Haible  <bruno@clisp.org>
38294
38295         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
38296         * modules/isnanl (Link): New section.
38297
38298         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
38299         * modules/frexp (Link): New section.
38300
38301         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
38302         * modules/frexpl (Link): New section.
38303
38304         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
38305         * modules/ldexpl (Link): New section.
38306
38307 2007-04-03  Bruno Haible  <bruno@clisp.org>
38308
38309         * modules/TEMPLATE-EXTENDED: New file.
38310         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
38311
38312 2007-04-03  Bruno Haible  <bruno@clisp.org>
38313
38314         * DEPENDENCIES: New file.
38315         Suggested by Simon Josefsson.
38316
38317 2007-04-03  Bruno Haible  <bruno@clisp.org>
38318
38319         * doc/gnulib.texi: Escape @.
38320
38321 2007-04-03  James Youngman  <jay@gnu.org>
38322         and Paul Eggert  <eggert@cs.ucla.edu>
38323
38324         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
38325         birthtime on all systems that have birthtime, not just those which
38326         use st_birthtimensec rather than st_birthtim.  Putting zero in
38327         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
38328         that the birth time is not available for files on an NFS mount.
38329
38330 2007-04-03  Simon Josefsson  <simon@josefsson.org>
38331
38332         * modules/memxor: Move back from crypto/, suggested by Bruno.
38333         * modules/crypto/hmac-sha1: Fix memxor dependency.
38334
38335         * modules/crypto/gc: Moved from ../.
38336
38337 2007-04-02  Eric Blake  <ebb9@byu.net>
38338
38339         * lib/ldexpl.c (includes): Avoid libm.
38340
38341         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
38342
38343 2007-04-02  Bruno Haible  <bruno@clisp.org>
38344
38345         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
38346         on IRIX.
38347
38348 2007-04-02  Bruno Haible  <bruno@clisp.org>
38349
38350         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
38351         x86 or x86_64 platforms running MacOS X.
38352         Reported by Ryan Schmidt <@ryandesign.com>.
38353
38354 2007-04-02  Bruno Haible  <bruno@clisp.org>
38355
38356         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
38357         i386.
38358
38359 2007-04-01  Simon Josefsson  <simon@josefsson.org>
38360
38361         * modules/crypto/arcfour: Moved from ../.
38362         * modules/crypto/arcfour-tests: Moved from ../.
38363         * modules/crypto/arctwo: Moved from ../.
38364         * modules/crypto/arctwo-tests: Moved from ../.
38365         * modules/crypto/des: Moved from ../.
38366         * modules/crypto/des-tests: Moved from ../.
38367         * modules/crypto/gc-arcfour: Moved from ../.
38368         * modules/crypto/gc-arcfour-tests: Moved from ../.
38369         * modules/crypto/gc-arctwo: Moved from ../.
38370         * modules/crypto/gc-arctwo-tests: Moved from ../.
38371         * modules/crypto/gc-des: Moved from ../.
38372         * modules/crypto/gc-des-tests: Moved from ../.
38373         * modules/crypto/gc-hmac-md5: Moved from ../.
38374         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
38375         * modules/crypto/gc-hmac-sha1: Moved from ../.
38376         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
38377         * modules/crypto/gc-md2: Moved from ../.
38378         * modules/crypto/gc-md2-tests: Moved from ../.
38379         * modules/crypto/gc-md4: Moved from ../.
38380         * modules/crypto/gc-md4-tests: Moved from ../.
38381         * modules/crypto/gc-md5: Moved from ../.
38382         * modules/crypto/gc-md5-tests: Moved from ../.
38383         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
38384         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
38385         * modules/crypto/gc-random: Moved from ../.
38386         * modules/crypto/gc-rijndael: Moved from ../.
38387         * modules/crypto/gc-rijndael-tests: Moved from ../.
38388         * modules/crypto/gc-sha1: Moved from ../.
38389         * modules/crypto/gc-sha1-tests: Moved from ../.
38390         * modules/crypto/gc-tests: Moved from ../.
38391         * modules/crypto/hmac-md5: Moved from ../.
38392         * modules/crypto/hmac-md5-tests: Moved from ../.
38393         * modules/crypto/hmac-sha1: Moved from ../.
38394         * modules/crypto/hmac-sha1-tests: Moved from ../.
38395         * modules/crypto/md2: Moved from ../.
38396         * modules/crypto/md2-tests: Moved from ../.
38397         * modules/crypto/md4: Moved from ../.
38398         * modules/crypto/md4-tests: Moved from ../.
38399         * modules/crypto/md5: Moved from ../.
38400         * modules/crypto/md5-tests: Moved from ../.
38401         * modules/crypto/memxor: Moved from ../.
38402         * modules/crypto/rijndael: Moved from ../.
38403         * modules/crypto/rijndael-tests: Moved from ../.
38404         * modules/crypto/sha1: Moved from ../.
38405
38406 2007-03-30  James Youngman  <jay@gnu.org>
38407
38408         * tests/test-stat-time.c (prepare_test): use chmod() rather than
38409         rename() to change the ctime of a file (because ctime is unaffected
38410         by rename on jfs2 on AIX 5.1).
38411         (main): Start by doing cleanup, in case a previous run failed leaving
38412         test files behind.
38413
38414 2007-03-31  Bruno Haible  <bruno@clisp.org>
38415
38416         Support old proprietary implementations of iconv.
38417         * modules/iconv_open: New file.
38418         * lib/iconv_.h: New file.
38419         * m4/iconv_h.m4: New file.
38420         * lib/iconv_open.c: New file.
38421         * lib/iconv_open-aix.gperf: New file.
38422         * lib/iconv_open-hpux.gperf: New file.
38423         * lib/iconv_open-irix.gperf: New file.
38424         * lib/iconv_open-osf.gperf: New file.
38425         * m4/iconv_open.m4: New file.
38426         * modules/linebreak (Depends-on): Add iconv_open.
38427         * modules/striconv (Depends-on): Likewise.
38428         * modules/striconveh (Depends-on): Likewise.
38429         * modules/unicodeio (Depends-on): Likewise.
38430         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
38431         (iconv_t)(-1).
38432         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
38433         conversion if cd is (iconv_t)(-1).
38434         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
38435         is not possible.
38436
38437 2007-03-31  Bruno Haible  <bruno@clisp.org>
38438
38439         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
38440         work on Solaris either. Protect also second use of "autodetect_jp".
38441
38442 2007-03-31  Bruno Haible  <bruno@clisp.org>
38443
38444         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
38445         the function is not present.
38446
38447 2007-03-31  Bruno Haible  <bruno@clisp.org>
38448
38449         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
38450         the function is not present.
38451
38452 2007-03-31  Bruno Haible  <bruno@clisp.org>
38453
38454         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
38455         a bug in HP-UX iconv_open().
38456
38457 2007-03-31  Bruno Haible  <bruno@clisp.org>
38458
38459         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
38460         (Mathematics <math.h>): New section, add fpieee.
38461         (Input/output <stdio.h>): Add fseterr.
38462         (Mathematics <math.h>): New section, add printf-frexp.
38463         (Container data structures): Add sublist.
38464         (Core language properties): Add fpucw, inline.
38465         (Functions for greatest-width integer types <inttypes.h>): Add
38466         imaxabs, imaxdiv, inttypes.
38467         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
38468         isnanl-nolibm, ldexp.
38469         (Mathematics <math.h>): New section, add printf-frexpl.
38470         (Support for systems lacking POSIX:2001): Add fprintf-posix,
38471         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
38472         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
38473         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
38474         (Unicode string functions): Add unistr/u*-mbtoucr.
38475         (Java): Add javacomp-script, javaexec-script.
38476         (C#): Add csharpcomp-script, csharpexec-script.
38477         (Support for building libraries and executables): Add havelib,
38478         relocatable-*.
38479         (Support for maintaining and releasing projects): Renamed from
38480         'Support for maintaining and release projects'. Add announce-gen.
38481
38482 2007-03-31  Bruno Haible  <bruno@clisp.org>
38483
38484         * README: Talk primarily about git.
38485         (git and CVS): Renamed from CVS.
38486         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
38487         gnulib is available through git.
38488         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
38489
38490 2007-03-30  Bruno Haible  <bruno@clisp.org>
38491
38492         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
38493         * lib/poll_.h: Likewise.
38494         * lib/stat_.h: Likewise.
38495         * lib/sys_time_.h: Likewise.
38496         * lib/sysexit_.h: Likewise.
38497         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
38498         * lib/stdbool_.h: Likewise.
38499         * lib/byteswap_.h: Add double-inclusion guard.
38500
38501 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
38502
38503         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
38504
38505 2007-03-30  Karl Berry  <karl@gnu.org>
38506
38507         * config/srclist-update: double space after USA in the license
38508         substitution, since that's how it's usually (?) written.
38509
38510 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
38511
38512         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
38513         reported by Bruno Haible.
38514
38515 2007-03-29  Bruno Haible  <bruno@clisp.org>
38516
38517         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
38518         a bug in AIX iconv().
38519
38520 2007-03-29  Bruno Haible  <bruno@clisp.org>
38521
38522         * modules/ldexpl-tests: New file.
38523         * tests/test-ldexpl.c: New file.
38524
38525 2007-03-29  Bruno Haible  <bruno@clisp.org>
38526
38527         * lib/ldexpl.c: Include fpucw.h.
38528         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
38529         multiplication.
38530         * modules/ldexpl (Depends-on): Add fpucw.
38531
38532 2007-03-29  Bruno Haible  <bruno@clisp.org>
38533
38534         * modules/ldexpl: New file.
38535         * m4/ldexpl.m4: New file.
38536         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
38537         set.
38538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
38539         REPLACE_LDEXPL.
38540         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
38541         REPLACE_LDEXPL.
38542         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
38543         gl_FUNC_LDEXPL_WORKS.
38544         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
38545         * modules/mathl (Files): Remove lib/ldexpl.c.
38546         (Depends-on): Add ldexpl.
38547
38548 2007-03-29  Bruno Haible  <bruno@clisp.org>
38549
38550         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
38551
38552 2007-03-29  Bruno Haible  <bruno@clisp.org>
38553
38554         * tests/test-striconveh.c (main): Don't assume that a direct conversion
38555         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
38556         and possibly also HP-UX.
38557         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
38558         work on AIX, IRIX, HP-UX, OSF/1.
38559         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
38560         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
38561         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
38562         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
38563         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
38564         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
38565
38566 2007-03-29  Bruno Haible  <bruno@clisp.org>
38567
38568         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
38569
38570 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
38571
38572         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
38573         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
38574
38575 2007-03-29  Eric Blake  <ebb9@byu.net>
38576
38577         * lib/acl-internal.h: Remove redundant include.
38578         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
38579         Cygwin when a file is locked.
38580
38581 2007-03-29  Bruno Haible  <bruno@clisp.org>
38582
38583         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
38584         file.
38585         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
38586
38587 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
38588
38589         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
38590         try to remove a parent directory if the child couldn't be removed
38591         (except for the first rmdir, which could fail because the child
38592         doesn't exist).  Problem reported by Jeff Blaine in
38593         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
38594
38595 2007-03-28  Bruno Haible  <bruno@clisp.org>
38596
38597         * lib/striconveh.c (utf8conv_carefully): New function.
38598         (mem_cd_iconveh_internal): Invoke it.
38599
38600 2007-03-28  Bruno Haible  <bruno@clisp.org>
38601
38602         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
38603         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
38604         input.
38605         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
38606         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
38607         unistr/u8-uctomb.
38608
38609 2007-03-28  Bruno Haible  <bruno@clisp.org>
38610
38611         * modules/unistr/u8-mbtoucr: New file.
38612         * lib/unistr/u8-mbtoucr.c: New file.
38613         * modules/unistr/u16-mbtoucr: New file.
38614         * lib/unistr/u16-mbtoucr.c: New file.
38615         * modules/unistr/u16-mbtoucr: New file.
38616         * lib/unistr/u16-mbtoucr.c: New file.
38617         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
38618
38619 2007-03-27  Simon Josefsson  <simon@josefsson.org>
38620             Bruno Haible  <bruno@clisp.org>
38621
38622         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
38623         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
38624         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
38625
38626         * m4/stdio_h.m4: Add stubs for vasprintf too.
38627
38628         * modules/stdio: Support vasprintf in sed command.
38629
38630         * modules/vasprintf: Depend on stdio for prototypes.  Remove
38631         vasprintf.h.  Add stdio module indicator.
38632
38633         * lib/stdio_.h: Declare asprintf and vasprintf, based on
38634         vasprintf.h.
38635
38636         * lib/vasprintf.h: File removed.
38637
38638         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
38639         * lib/vasprintf.c: Ditto.
38640         * lib/xvasprintf.c: Ditto.
38641         * tests/test-vasprintf-posix.c: Ditto.
38642         * tests/test-vasprintf.c: Ditto.
38643
38644 2007-03-27  Bruno Haible  <bruno@clisp.org>
38645
38646         Make vasnprintf multithread-safe.
38647         * lib/vasnprintf.c (decimal_point_char): New function.
38648         (VASNPRINTF): Use it.
38649         Suggested by Simon Josefsson.
38650
38651 2007-03-27  Eric Blake  <ebb9@byu.net>
38652
38653         Support sub-second birthtime on cygwin.
38654         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
38655         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
38656         (get_stat_birthtime): Also work with st_birthtim.
38657
38658 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
38659
38660         * lib/stat-time.h (USE_BIRTHTIME): Remove.
38661         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
38662         (get_stat_birthtime_ns): Do not try to use "spare" fields.
38663         (get_stat_birthtime_ns): Simplify compile-time tests.
38664         (get_stat_birthtime): Change the API to look like
38665         get_stat_mtime etc., except return a negative tv_nsec on error.
38666         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
38667         Don't check for "spare" fields.
38668         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
38669         or for struct stat.st_birthtime, as these tests aren't used.
38670         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
38671
38672 2007-03-27  Bruno Haible  <bruno@clisp.org>
38673
38674         * lib/stat-time.h: Include <sys/stat.h>.
38675
38676 2007-03-27  James Youngman  <jay@gnu.org>
38677
38678         * lib/stat-time.h (get_stat_birthtime): New function for
38679           retrieving st_birthtime as provided by UFS2 (hence *BSD).
38680         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
38681           and its variants.
38682         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
38683         * modules/stat-time-test: New file.
38684         * tests/test-stat-time.c: New test, devised by Bruno Haible.
38685
38686 2007-03-26  Bruno Haible  <bruno@clisp.org>
38687
38688         Better support of signalling NaNs.
38689         * lib/atanl.c: Include isnanl.h.
38690         (atanl): Perform test for NaN at the beginning of the function and
38691         through a call to isnanl.
38692         * lib/cosl.c: Include isnanl.h.
38693         (cosl): Perform test for NaN at the beginning of the function and
38694         through a call to isnanl.
38695         * lib/ldexpl.c: Include isnanl.h.
38696         (ldexpl): Perform test for NaN through a call to isnanl.
38697         * lib/logl.c: Include isnanl.h.
38698         (logl): Perform test for NaN at the beginning of the function and
38699         through a call to isnanl.
38700         * lib/sinl.c: Include isnanl.h.
38701         (sinl): Perform test for NaN at the beginning of the function and
38702         through a call to isnanl.
38703         * lib/sqrtl.c: Include isnanl.h.
38704         (sqrtl): Perform test for NaN at the beginning of the function and
38705         through a call to isnanl.
38706         * lib/tanl.c: Include isnanl.h.
38707         (tanl): Perform test for NaN at the beginning of the function and
38708         through a call to isnanl.
38709         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
38710         * modules/mathl (Depends-on): Add isnanl.
38711
38712 2007-03-26  Eric Blake  <ebb9@byu.net>
38713
38714         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
38715         regression in logic sense of previous patch.
38716
38717 2007-03-26  Bruno Haible  <bruno@clisp.org>
38718
38719         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
38720         unportable shell command "if ! ...".
38721         Reported by Ralf Wildenhues.
38722
38723 2007-03-25  Bruno Haible  <bruno@clisp.org>
38724
38725         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
38726         <sysexits.h> file, and only add EX_CONFIG.
38727         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
38728         absolute file name and whether it is sufficient. Substitute also
38729         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
38730         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
38731         ABSOLUTE_SYSEXITS_H into sysexits.h.
38732
38733 2007-03-25  Bruno Haible  <bruno@clisp.org>
38734
38735         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
38736         hints is NULL.
38737
38738 2007-03-25  Bruno Haible  <bruno@clisp.org>
38739
38740         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
38741         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
38742
38743 2007-03-25  Bruno Haible  <bruno@clisp.org>
38744
38745         * lib/vasnprintf.c: Include langinfo.h.
38746         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
38747         multithread-safe.
38748         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
38749         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
38750         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38751         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38752         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38753         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38754         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38755         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
38756         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38757         Reported by Simon Josefsson.
38758
38759 2007-03-25  Bruno Haible  <bruno@clisp.org>
38760
38761         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
38762         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
38763         * modules/vasnprintf (Depends-on): Add stdint.
38764
38765 2007-03-25  Bruno Haible  <bruno@clisp.org>
38766
38767         * modules/fpieee: New file.
38768         * m4/fpieee.m4: New file.
38769         * modules/isnan-nolibm (Depends-on): Add fpieee.
38770         * modules/isnanl-nolibm (Depends-on): Add fpieee.
38771         * modules/isnanl (Depends-on): Add fpieee.
38772
38773 2007-03-25  Bruno Haible  <bruno@clisp.org>
38774
38775         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
38776
38777 2007-03-25  Bruno Haible  <bruno@clisp.org>
38778
38779         Avoid test failures on IRIX 6.5.
38780         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
38781         (main): Use it.
38782         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
38783         macros.
38784         (main): Use them.
38785
38786 2007-03-25  Bruno Haible  <bruno@clisp.org>
38787
38788         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
38789         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
38790         exists but doesn't work.
38791         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
38792         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
38793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
38794         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
38795
38796 2007-03-25  Bruno Haible  <bruno@clisp.org>
38797
38798         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
38799         returns inf. Needed on IRIX 6.5.
38800
38801 2007-03-25  Bruno Haible  <bruno@clisp.org>
38802
38803         * tests/test-frexpl.c: Include isnanl-nolibm.h.
38804         (main): Use isnanl instead of x != x idiom.
38805         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
38806
38807         * tests/test-frexp.c: Include isnan.h.
38808         (main): Use isnan instead of x != x idiom.
38809         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
38810
38811 2007-03-25  Bruno Haible  <bruno@clisp.org>
38812
38813         * tests/test-frexp.c (NaN): New function/macro.
38814         (main): Use it instead of 0.0 / 0.0.
38815         * tests/test-isnan.c (NaN): New function/macro.
38816         (main): Use it instead of 0.0 / 0.0.
38817         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
38818         (test_function): Use it instead of 0.0 / 0.0.
38819         * tests/test-vasprintf-posix.c (NaN): New function/macro.
38820         (test_function): Use it instead of 0.0 / 0.0.
38821         * tests/test-snprintf-posix.h (NaN): New function/macro.
38822         (test_function): Use it instead of 0.0 / 0.0.
38823         * tests/test-sprintf-posix.h (NaN): New function/macro.
38824         (test_function): Use it instead of 0.0 / 0.0.
38825         * tests/test-fprintf-posix.h (NaN): New function/macro.
38826         (test_function): Use it instead of 0.0 / 0.0.
38827         * tests/test-printf-posix.h (NaN): New function/macro.
38828         (test_function): Use it instead of 0.0 / 0.0.
38829
38830         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
38831
38832 2007-03-25  Bruno Haible  <bruno@clisp.org>
38833
38834         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
38835
38836 2007-03-25  Bruno Haible  <bruno@clisp.org>
38837
38838         * lib/regexec.c (merge_state_with_log): Make static.
38839
38840 2007-03-25  Bruno Haible  <bruno@clisp.org>
38841
38842         * lib/trigl.c (kernel_rem_pio2): Make static.
38843
38844 2007-03-25  Bruno Haible  <bruno@clisp.org>
38845
38846         * lib/sincosl.c (sincosl_table): Make static.
38847
38848 2007-03-25  Bruno Haible  <bruno@clisp.org>
38849
38850         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
38851         if the compiler does not support C99.
38852
38853 2007-03-25  Bruno Haible  <bruno@clisp.org>
38854
38855         * modules/time (Makefile.am): Ensure all rule action lines start with a
38856         tab.
38857
38858 2007-03-24  Bruno Haible  <bruno@clisp.org>
38859
38860         * modules/tsearch-tests: New file.
38861         * tests/test-tsearch.sh: New file.
38862         * tests/test-tsearch.c: New file, mostly copied from glibc.
38863
38864         * modules/search-tests: New file.
38865         * tests/test-search.c: New file.
38866
38867         * modules/search: New file.
38868         * lib/search_.h: New file, incorporating lib/tsearch.h.
38869         * m4/search_h.m4: New file.
38870         * lib/tsearch.h: Remove file.
38871         * lib/tsearch.c: Include search.h instead of tsearch.h.
38872         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
38873         HAVE_TSEARCH.
38874         * modules/tsearch (Files): Remove lib/tsearch.h.
38875         (Depends-on): Add search.
38876         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
38877         (Include): Change tsearch.h into search.h.
38878
38879 2007-03-24  Bruno Haible  <bruno@clisp.org>
38880
38881         * modules/fpucw: New file.
38882         * lib/fpucw.h: New file.
38883         * lib/frexp.c: Include fpucw.h.
38884         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
38885         (FUNC): Use them.
38886         * lib/printf-frexp.c: Include fpucw.h.
38887         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
38888         (FUNC): Use them.
38889         * lib/vasnprintf.c: Include fpucw.h.
38890         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
38891         'long double' calculations.
38892         * tests/test-frexpl.c: Include fpucw.h.
38893         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
38894         * tests/test-printf-frexpl.c: Include fpucw.h.
38895         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
38896         * modules/frexpl (Depends-on): Add fpucw.
38897         * modules/printf-frexpl (Depends-on): Likewise.
38898         * modules/fprintf-posix (Depends-on): Likewise.
38899         * modules/snprintf-posix (Depends-on): Likewise.
38900         * modules/sprintf-posix (Depends-on): Likewise.
38901         * modules/vasnprintf-posix (Depends-on): Likewise.
38902         * modules/vasprintf-posix (Depends-on): Likewise.
38903         * modules/vfprintf-posix (Depends-on): Likewise.
38904         * modules/vsnprintf-posix (Depends-on): Likewise.
38905         * modules/vsprintf-posix (Depends-on): Likewise.
38906         * modules/frexpl-tests (Depends-on): Likewise.
38907         * modules/printf-frexpl-tests (Depends-on): Likewise.
38908
38909 2007-03-24  Bruno Haible  <bruno@clisp.org>
38910
38911         * lib/float+.h: New file.
38912         * lib/isnan.c: Include float+.h.
38913         (SIZE): New macro.
38914         (FUNC): Compare only SIZE bytes of the value.
38915         * lib/vasnprintf.c: Include float+.h.
38916         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
38917         SIZEOF_LDBL or SIZEOF_DBL bytes.
38918         * modules/isnan-nolibm (Files): Add lib/float+.h.
38919         * modules/isnanl-nolibm (Files): Add lib/float+.h.
38920         * modules/isnanl (Files): Add lib/float+.h.
38921         * modules/vasnprintf (Files): Add lib/float+.h.
38922
38923 2007-03-24  Bruno Haible  <bruno@clisp.org>
38924
38925         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
38926         include isnanl-nolibm.h.
38927
38928 2007-03-24  Bruno Haible  <bruno@clisp.org>
38929
38930         * tests/test-read-file.c (main): Don't produce spurious output for
38931         expected situations. Make the test fail if it encountered unexpected
38932         results.
38933
38934 2007-03-24  Bruno Haible  <bruno@clisp.org>
38935
38936         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
38937         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
38938
38939 2007-03-24  Bruno Haible  <bruno@clisp.org>
38940
38941         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
38942
38943 2007-03-24  Bruno Haible  <bruno@clisp.org>
38944
38945         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
38946         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
38947
38948         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
38949         * modules/utf8-ucs4: Turn into a symbolic link to module
38950         unistr/u8-mbtouc.
38951
38952         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
38953         utf8-ucs4-unsafe.
38954         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
38955         unistr/u8-mbtouc-unsafe.
38956
38957         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
38958         * modules/utf16-ucs4: Turn into a symbolic link to module
38959         unistr/u16-mbtouc.
38960
38961         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
38962         utf16-ucs4-unsafe.
38963         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
38964         unistr/u16-mbtouc-unsafe.
38965
38966         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
38967         * modules/ucs4-utf8: Turn into a symbolic link to module
38968         unistr/u8-ubtomb.
38969
38970         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
38971         * modules/ucs4-utf16: Turn into a symbolic link to module
38972         unistr/u16-ubtomb.
38973
38974 2007-03-24  Bruno Haible  <bruno@clisp.org>
38975
38976         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
38977         Enable the function only if HAVE_INLINE.
38978         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
38979         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
38980         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
38981         Enable the function only if HAVE_INLINE.
38982         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
38983         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
38984         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
38985         Enable the function only if HAVE_INLINE.
38986         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
38987         Enable the function only if HAVE_INLINE.
38988         * modules/utf8-ucs4: Update.
38989         * modules/utf8-ucs4-unsafe: Update.
38990         * modules/utf16-ucs4: Update.
38991         * modules/utf16-ucs4-unsafe: Update.
38992         * modules/ucs4-utf8: Update.
38993         * modules/ucs4-utf16: Update.
38994
38995 2007-03-24  Bruno Haible  <bruno@clisp.org>
38996
38997         * lib/utf8-ucs4.h: Remove file.
38998         * lib/utf8-ucs4-unsafe.h: Remove file.
38999         * lib/utf16-ucs4.h: Remove file.
39000         * lib/utf16-ucs4-unsafe.h: Remove file.
39001         * lib/ucs4-utf8.h: Remove file.
39002         * lib/ucs4-utf16.h: Remove file.
39003         * lib/unistr.h: Include their previous contents.
39004         * m4/utf-ucs4.m4: Remove file.
39005         * m4/ucs4-utf.m4: Remove file.
39006         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
39007         (Depends-on): Add unistr/base.
39008         (configure.ac): Remove gl_UTF_UCS4.
39009         (Makefile.am): Update.
39010         (Include): Change to unistr.h.
39011         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
39012         (Depends-on): Add unistr/base.
39013         (configure.ac): Remove gl_UTF_UCS4.
39014         (Makefile.am): Update.
39015         (Include): Change to unistr.h.
39016         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
39017         (Depends-on): Add unistr/base.
39018         (configure.ac): Remove gl_UTF_UCS4.
39019         (Makefile.am): Update.
39020         (Include): Change to unistr.h.
39021         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
39022         (Depends-on): Add unistr/base.
39023         (configure.ac): Remove gl_UTF_UCS4.
39024         (Makefile.am): Update.
39025         (Include): Change to unistr.h.
39026         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
39027         (Depends-on): Add unistr/base.
39028         (configure.ac): Remove gl_UCS4_UTF.
39029         (Makefile.am): Update.
39030         (Include): Change to unistr.h.
39031         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
39032         (Depends-on): Add unistr/base.
39033         (configure.ac): Remove gl_UCS4_UTF.
39034         (Makefile.am): Update.
39035         (Include): Change to unistr.h.
39036         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
39037         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
39038         utf8-ucs4-unsafe.h.
39039         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
39040         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
39041         utf16-ucs4-unsafe.h.
39042         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
39043         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
39044         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
39045         * lib/unistr/u8-strchr.c: Likewise.
39046         * lib/unistr/u8-strrchr.c: Likewise.
39047         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
39048         * lib/unistr/u16-strchr.c: Likewise.
39049         * lib/unistr/u16-strrchr.c: Likewise.
39050         * lib/striconveh.c: Update.
39051         * lib/linebreak.c: Update.
39052
39053 2007-03-24  Bruno Haible  <bruno@clisp.org>
39054
39055         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
39056         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
39057
39058 2007-03-22  Bruno Haible  <bruno@clisp.org>
39059
39060         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
39061
39062 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
39063
39064         * MODULES.html.sh (File system functions): New module write-any-file.
39065         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
39066         * m4/write-any-file.m4: New files.
39067
39068 2007-03-23  Eric Blake  <ebb9@byu.net>
39069
39070         * gnulib-tool: Rearrange space-tab sequences, since some editors
39071         like to eat them.
39072
39073 2007-03-23  Eric Blake  <ebb9@byu.net>
39074
39075         * lib/version-etc.c (version_etc_va): Update license wording to
39076         be more concise.  Recommended by Richard Stallman.
39077
39078 2007-03-22  Bruno Haible  <bruno@clisp.org>
39079
39080         * lib/poll.c (MSG_PEEK): New fallback definition.
39081
39082 2007-03-22  Bruno Haible  <bruno@clisp.org>
39083
39084         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
39085         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
39086         (main): Update.
39087         Fixes a compilation error on BeOS.
39088
39089 2007-03-22  Bruno Haible  <bruno@clisp.org>
39090
39091         * modules/frexpl-tests: New file.
39092         * tests/test-frexpl.c: New file.
39093
39094         * modules/frexpl: New file.
39095         * m4/frexpl.m4: New file.
39096         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
39097         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
39098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
39099         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
39100         (Depends-on): Add frexpl. Remove isnanl-nolibm.
39101         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
39102
39103 2007-03-22  Bruno Haible  <bruno@clisp.org>
39104
39105         * lib/frexpl.c: Share code with lib/frexp.c.
39106         * modules/mathl (Files): Add lib/frexp.c.
39107         (Depends-on): Add isnanl-nolibm.
39108
39109 2007-03-22  Bruno Haible  <bruno@clisp.org>
39110
39111         * modules/printf-frexp (Files): Add m4/frexp.m4.
39112         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
39113         only if the found frexp function actually works.
39114
39115 2007-03-22  Bruno Haible  <bruno@clisp.org>
39116
39117         * lib/frexp.c: Remove older implementation that uses divisions.
39118
39119 2007-03-21  Bruno Haible  <bruno@clisp.org>
39120
39121         * modules/frexp-tests: New file.
39122         * tests/test-frexp.c: New file.
39123
39124         * modules/frexp: New file.
39125         * lib/frexp.c: New file.
39126         * m4/frexp.m4: New file.
39127         * lib/math_.h (frexp): New declaration.
39128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
39129         REPLACE_FREXP.
39130         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
39131
39132 2007-03-21  Bruno Haible  <bruno@clisp.org>
39133
39134         * modules/isnanl-tests: New file.
39135         * tests/test-isnanl.c: New file.
39136
39137         * modules/isnanl: New file.
39138         * lib/isnanl.h: New file.
39139         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
39140         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
39141         gl_FUNC_ISNANL_WORKS.
39142         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
39143         New macros.
39144
39145 2007-03-21  Bruno Haible  <bruno@clisp.org>
39146
39147         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
39148         lib/isnanl.h.
39149         (Include): Update.
39150         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
39151         * lib/vasnprintf.c: Update.
39152         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
39153         tests/test-isnanl.h, remove tests/test-isnanl.c.
39154         (Makefile.am): Update.
39155         * tests/test-isnanl-nolibm.c: New file.
39156         * tests/test-isnanl.h: New file.
39157         * tests/test-isnanl.c: Remove file.
39158
39159 2007-03-21  Jim Meyering  <jim@meyering.net>
39160
39161         When trying to open ".", treat ESTALE like EACCES.
39162         * lib/savewd.c (savewd_save): Resort to forking not just upon
39163         failure with EACCES, but also when errno is ESTALE.
39164
39165 2007-03-20  Bruno Haible  <bruno@clisp.org>
39166
39167         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
39168         Needed on AIX 5.1. Reported by Matthew Woehlke.
39169
39170 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39171
39172         Suggestions by Bruno Haible:
39173         * lib/acl-internal.h: Include "gettext.h" rather than rolling
39174         our own.
39175         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
39176         * modules/acl (Depends-on): Add gettext.
39177
39178 2007-03-19  Bruno Haible  <bruno@clisp.org>
39179
39180         * modules/iconvme: Remove file.
39181         * lib/iconvme.h: Remove file.
39182         * lib/iconvme.c: Remove file.
39183         * m4/iconvme.m4: Remove file.
39184
39185 2007-03-19  Bruno Haible  <bruno@clisp.org>
39186
39187         * doc/relocatable-maint.texi: Break long shell script line.
39188         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
39189
39190 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39191
39192         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
39193         handle file_has_acl.
39194         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
39195         * lib/acl.c: Move header inclusions and related macro defns into
39196         lib/acl-internal.h.
39197         (S_ISLNK): Remove defn, since that's now done for us.
39198         (file_has_acl): Move to lib/file-has-acl.c.
39199         Call acl_trivial if available.  This is the crucial part of the fix.
39200         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
39201         shared within the library.  Rewrite a bit, partly to make it compatible
39202         with the GNU coding style.
39203         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
39204         Remove unnecessary double-quotes.
39205         Don't test for acl_to_text; the build will catch that.
39206         Replace acl_entries if it doesn't exist and it is needed.
39207         Check for -lsec and acl_trivial (as used on Solaris 10).
39208         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
39209         lib/file-has-acl.c.
39210         (Depends-on): Add sys_stat, for S_ISLNK.
39211
39212 2007-03-19  Ben Pfaff  <blp@gnu.org>
39213
39214         * doc/gnulib.texi: Fix typos.
39215         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
39216
39217 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39218
39219         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
39220         If size is zero here, buf must be zero.
39221
39222 2007-03-19  Simon Josefsson  <simon@josefsson.org>
39223
39224         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
39225         <bruno@clisp.org>.
39226
39227 2007-03-18  Bruno Haible  <bruno@clisp.org>
39228
39229         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
39230         Suggested by Eric Blake.
39231
39232 2007-03-18  Ben Pfaff  <blp@gnu.org>
39233
39234         * doc/relocatable.texi: Recommend using as prefix a directory
39235         that does not exist and will never be created.  Based on
39236         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
39237         and others.
39238
39239 2007-03-17  Bruno Haible  <bruno@clisp.org>
39240
39241         * lib/fchownat.c: Include lchown.h.
39242
39243 2007-03-17  Bruno Haible  <bruno@clisp.org>
39244
39245         Fix endless loop when the given allocated size was > INT_MAX.
39246         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
39247         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
39248         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
39249         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
39250         * lib/sprintf.c (sprintf): Likewise.
39251
39252 2007-03-17  Bruno Haible  <bruno@clisp.org>
39253
39254         * tests/test-argp-2.sh (func_compare): Output a context diff.
39255
39256 2007-03-17  Bruno Haible  <bruno@clisp.org>
39257
39258         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
39259         locale's decimal-point character.
39260
39261 2007-03-17  Bruno Haible  <bruno@clisp.org>
39262
39263         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
39264         before comparing it. Needed because on some platforms (e.g. x86) a
39265         'long double' occupies less bytes than sizeof (long double).
39266
39267 2007-03-17  Bruno Haible  <bruno@clisp.org>
39268
39269         * tests/test-crc.c (main): Make printf statements 64-bit clean.
39270         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
39271         * tests/test-getaddrinfo.c (simple): Likewise.
39272         * tests/test-read-file.c (main): Likewise.
39273
39274 2007-03-17  Bruno Haible  <bruno@clisp.org>
39275
39276         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
39277
39278 2007-03-17  Bruno Haible  <bruno@clisp.org>
39279
39280         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
39281         unused variable.
39282
39283 2007-03-17  Bruno Haible  <bruno@clisp.org>
39284
39285         * tests/test-c-strcasecmp.c: Include c-strcase.h.
39286         * tests/test-c-strncasecmp.c: Likewise.
39287
39288 2007-03-17  Bruno Haible  <bruno@clisp.org>
39289
39290         * modules/stdlib (Depends-on): Add unistd.
39291         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
39292         Needed for MacOS X 10.3.
39293
39294 2007-03-17  Bruno Haible  <bruno@clisp.org>
39295
39296         * lib/unistr/u-strdup.h: Include <stdlib.h>.
39297
39298 2007-03-17  Bruno Haible  <bruno@clisp.org>
39299
39300         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
39301
39302 2007-03-17  Bruno Haible  <bruno@clisp.org>
39303
39304         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
39305         to reflect files copied from gnulib (with or without modifications).
39306         Suggested by Jim Meyering.
39307
39308 2007-03-17  Eric Blake  <ebb9@byu.net>
39309
39310         * NEWS: Document stdlib change from 2007-02-18.
39311
39312 2007-03-17  Jim Meyering  <jim@meyering.net>
39313
39314         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
39315         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
39316         someone uses a name containing shell meta-characters.
39317         Reported by Alfred M. Szmidt.
39318
39319         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
39320
39321 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
39322
39323         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
39324         and copy gettext configuration files only if configure.ac contains
39325         a use of AM_GNU_GETTEXT_VERSION.
39326
39327 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
39328
39329         * build-aux/bootstrap (gnulib_name): New variable.
39330         (gnulib_tool_options): Use it.
39331
39332 2007-03-13  Simon Josefsson  <simon@josefsson.org>
39333
39334         * tests/test-des.c: Use new namespace.
39335
39336 2007-03-15  Bruno Haible  <bruno@clisp.org>
39337
39338         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
39339         Reported by James Youngman <jay@gnu.org>.
39340
39341 2007-03-15  Bruno Haible  <bruno@clisp.org>
39342
39343         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
39344         declared prototype. Needed with cc on OSF/1 5.1.
39345
39346 2007-03-15  Bruno Haible  <bruno@clisp.org>
39347
39348         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
39349         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
39350         (struct gl_list_implementation): Add dispose_fn argument to the
39351         'create_empty', 'create' methods.
39352         (struct gl_list_impl_base): Add field 'dispose_fn'.
39353         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
39354         argument.
39355         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
39356         dispose_fn argument.
39357         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
39358         dispose_fn on the dropped values.
39359         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
39360         dispose_fn argument.
39361         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
39362         dropped values.
39363         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
39364         (gl_tree_remove_node): Call dispose_fn on the dropped value.
39365         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
39366         (gl_tree_remove_node): Call dispose_fn on the dropped value.
39367         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
39368         argument.
39369         (gl_tree_list_free): Call dispose_fn on the dropped values.
39370         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
39371         the dropped values.
39372         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
39373         Add dispose_fn argument.
39374         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
39375         Call dispose_fn on the dropped values.
39376         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
39377         Add dispose_fn argument.
39378         (gl_sublist_create): Initialize the 'dispose_fn' field.
39379         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
39380         * tests/test-array_list.c (main): Update.
39381         * tests/test-carray_list.c (main): Update.
39382         * tests/test-avltree_list.c (main): Update.
39383         * tests/test-rbtree_list.c (main): Update.
39384         * tests/test-avltreehash_list.c (main): Update.
39385         * tests/test-rbtreehash_list.c (main): Update.
39386         * tests/test-linked_list.c (main): Update.
39387         * tests/test-linkedhash_list.c (main): Update.
39388         * tests/test-array_oset.c (main): Update.
39389
39390 2007-03-15  Bruno Haible  <bruno@clisp.org>
39391
39392         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
39393         (gl_oset_create_empty): Add dispose_fn argument.
39394         (struct gl_oset_implementation): Add dispose_fn argument to
39395         'create_empty' method.
39396         (struct gl_oset_impl_base): Add dispose_fn field.
39397         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
39398         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
39399         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
39400         values.
39401         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
39402         (gl_tree_oset_free): Call dispose_fn on the dropped values.
39403         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
39404         dropped value.
39405         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
39406         dropped value.
39407         * tests/test-array_oset.c (main): Update.
39408         * tests/test-avltree_oset.c (main): Update.
39409         * tests/test-rbtree_oset.c (main): Update.
39410         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
39411
39412 2007-03-13  Bruno Haible  <bruno@clisp.org>
39413
39414         * tests/test-stdbool.c (i): Update after last patch.
39415
39416 2007-03-12  Bruno Haible  <bruno@clisp.org>
39417
39418         * lib/quotearg.c: Include <wctype.h> early, before the definition of
39419         the iswprint macro. Needed on Solaris 2.5.1.
39420
39421 2007-03-12  Bruno Haible  <bruno@clisp.org>
39422
39423         * tests/test-printf-frexp.c (main): Declare x as volatile.
39424
39425 2007-03-12  Simon Josefsson  <simon@josefsson.org>
39426
39427         * doc/gnulib.texi (Build robot for gnulib): New section.
39428
39429 2007-03-12  Jim Meyering  <jim@meyering.net>
39430
39431         * build-aux/bootstrap: New file.
39432         * build-aux/bootstrap.conf: New file, from coreutils.
39433
39434 2007-03-11  Bruno Haible  <bruno@clisp.org>
39435
39436         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
39437
39438 2007-03-12  Simon Josefsson  <simon@josefsson.org>
39439
39440         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
39441         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
39442         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
39443
39444 2007-03-11  Bruno Haible  <bruno@clisp.org>
39445
39446         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
39447         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
39448
39449 2007-03-11  Bruno Haible  <bruno@clisp.org>
39450
39451         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
39452         formula. Needed for SunPRO C 5.0.
39453
39454 2007-03-11  Bruno Haible  <bruno@clisp.org>
39455
39456         * modules/long-options (Depends-on): Add getopt.
39457
39458 2007-03-11  Bruno Haible  <bruno@clisp.org>
39459
39460         * modules/modechange (Depends-on): Add stdbool.
39461
39462 2007-03-11  Bruno Haible  <bruno@clisp.org>
39463
39464         * modules/i-ring (Depends-on): Add stdbool.
39465
39466 2007-03-11  Bruno Haible  <bruno@clisp.org>
39467
39468         * modules/gc-des (Depends-on): Add stdbool.
39469
39470 2007-03-11  Bruno Haible  <bruno@clisp.org>
39471
39472         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
39473
39474 2007-03-11  Bruno Haible  <bruno@clisp.org>
39475
39476         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
39477
39478 2007-03-11  Bruno Haible  <bruno@clisp.org>
39479
39480         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
39481
39482 2007-03-11  Bruno Haible  <bruno@clisp.org>
39483
39484         * lib/vasnprintf.c (sprintf): Undefine.
39485
39486 2007-03-11  Bruno Haible  <bruno@clisp.org>
39487
39488         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
39489         initializers in SunPRO C and Compaq C compilers.
39490
39491 2007-03-11  Bruno Haible  <bruno@clisp.org>
39492
39493         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
39494         decrementing code ANSI C compliant.
39495
39496 2007-03-11  Bruno Haible  <bruno@clisp.org>
39497
39498         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
39499         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
39500
39501 2007-03-11  Bruno Haible  <bruno@clisp.org>
39502
39503         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
39504         <stdbool.h> substitute doesn't pass.
39505
39506 2007-03-11  Bruno Haible  <bruno@clisp.org>
39507
39508         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
39509
39510 2007-03-11  Bruno Haible  <bruno@clisp.org>
39511
39512         * gnulib-tool (func_create_megatestdir): Create also an autobuild
39513         script, for submission to autobuild.josefsson.org.
39514
39515 2007-03-10  Bruno Haible  <bruno@clisp.org>
39516
39517         * modules/canonicalize-lgpl-tests: New file.
39518         * tests/test-canonicalize-lgpl.sh: New file.
39519         * tests/test-canonicalize-lgpl.c: New file.
39520
39521         * modules/c-strcase-tests: New file.
39522         * tests/test-c-strcase.sh: New file.
39523         * tests/test-c-strcasecmp.c: New file.
39524         * tests/test-c-strncasecmp.c: New file.
39525
39526         * modules/atexit-tests: New file.
39527         * tests/test-atexit.sh: New file.
39528         * tests/test-atexit.c: New file.
39529
39530 2007-03-10  Bruno Haible  <bruno@clisp.org>
39531
39532         * tests/test-binary-io.sh: Use temporary filenames that are not so
39533         likely to clash with those of other tests (in a parallel make).
39534         * tests/test-binary-io.c: Likewise.
39535
39536 2007-03-10  Bruno Haible  <bruno@clisp.org>
39537
39538         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
39539         fallback; use #error instead.
39540         Suggested by Simon Josefsson.
39541
39542 2007-03-10  Bruno Haible  <bruno@clisp.org>
39543
39544         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
39545         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
39546         first and the last.
39547
39548 2007-03-10  Bruno Haible  <bruno@clisp.org>
39549
39550         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
39551
39552 2007-03-10  Bruno Haible  <bruno@clisp.org>
39553
39554         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
39555         "make distcheck".
39556         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
39557         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
39558         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
39559
39560 2007-03-10  Bruno Haible  <bruno@clisp.org>
39561
39562         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
39563         variable.
39564         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
39565         variable.
39566
39567 2007-03-09  Eric Blake  <ebb9@byu.net>
39568         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
39569
39570         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
39571         types are not being provided by gnulib.
39572         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
39573         types are supported.
39574
39575 2007-03-10  Bruno Haible  <bruno@clisp.org>
39576
39577         * lib/stdio_.h (__attribute__): New macro.
39578         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
39579         vsprintf): Specify __attribute__ __format__ for GCC.
39580         Suggested by Eric Blake.
39581
39582 2007-03-09  Bruno Haible  <bruno@clisp.org>
39583
39584         * modules/printf-posix-tests: New file.
39585         * tests/test-printf-posix.sh: New file.
39586         * tests/test-printf-posix.c: New file.
39587
39588         * modules/printf-posix: New file.
39589         * lib/printf.c: New file.
39590         * m4/printf-posix-rpl.m4: New file.
39591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
39592         REPLACE_PRINTF.
39593         * lib/stdio_.h (printf): New declaration.
39594         (format, __format__, ____printf____, ____scanf____, ____strftime____,
39595         ____strfmon____): New macros.
39596         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
39597         REPLACE_PRINTF.
39598
39599 2007-03-09  Bruno Haible  <bruno@clisp.org>
39600
39601         * tests/test-vasnprintf-posix2.sh: New file.
39602         * tests/test-vasnprintf-posix2.c: New file.
39603         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
39604         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
39605         (Makefile.am): Activate test-vasnprintf-posix2.sh.
39606
39607         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
39608         a locale dependent decimal point, rather than always '.'.
39609
39610 2007-03-09  Eric Blake  <ebb9@byu.net>
39611
39612         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
39613         spite of platforms like Tandem/NSK that define it to -1.
39614
39615 2007-03-08  Bruno Haible  <bruno@clisp.org>
39616
39617         * modules/vprintf-posix-tests: New file.
39618         * tests/test-vprintf-posix.sh: New file.
39619         * tests/test-vprintf-posix.c: New file.
39620         * tests/test-printf-posix.h: New file.
39621
39622         * modules/vprintf-posix: New file.
39623         * lib/vprintf.c: New file.
39624         * m4/vprintf-posix.m4: New file.
39625         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
39626         REPLACE_VPRINTF.
39627         * lib/stdio_.h (vprintf): New declaration.
39628         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
39629         REPLACE_VPRINTF.
39630
39631 2007-03-08  Bruno Haible  <bruno@clisp.org>
39632
39633         * modules/fprintf-posix-tests: New file.
39634         * tests/test-fprintf-posix.sh: New file.
39635         * tests/test-fprintf-posix.c: New file.
39636
39637         * modules/fprintf-posix: New file.
39638         * lib/fprintf.c: New file.
39639         * m4/fprintf-posix.m4: New file.
39640         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
39641         REPLACE_FPRINTF.
39642         * lib/stdio_.h (fprintf): New declaration.
39643         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
39644         REPLACE_FPRINTF.
39645
39646 2007-03-08  Bruno Haible  <bruno@clisp.org>
39647
39648         * modules/vfprintf-posix-tests: New file.
39649         * tests/test-vfprintf-posix.sh: New file.
39650         * tests/test-vfprintf-posix.c: New file.
39651         * tests/test-fprintf-posix.h: New file.
39652         * tests/test-fprintf-posix.out: New file.
39653
39654         * modules/vfprintf-posix: New file.
39655         * lib/vfprintf.c: New file.
39656         * m4/vfprintf-posix.m4: New file.
39657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
39658         REPLACE_VFPRINTF.
39659         * lib/stdio_.h (vfprintf): New declaration.
39660         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
39661         REPLACE_VFPRINTF.
39662
39663 2007-03-08  Bruno Haible  <bruno@clisp.org>
39664
39665         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
39666
39667 2007-03-08  Bruno Haible  <bruno@clisp.org>
39668
39669         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
39670         instead of 'expr' invocations.
39671         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39672         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39673         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39674         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39675         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39676         Suggested by Paul Eggert.
39677
39678 2007-03-08  Bruno Haible  <bruno@clisp.org>
39679
39680         * modules/fseterr-tests: New file.
39681         * tests/test-fseterr.c: New file.
39682
39683         * modules/fseterr: New file.
39684         * lib/fseterr.h: New file.
39685         * lib/fseterr.c: New file.
39686
39687 2007-03-08  Bruno Haible  <bruno@clisp.org>
39688
39689         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
39690         * lib/getopt_.h: Likewise.
39691         * lib/mbswidth.h: Likewise.
39692         * lib/setenv.h: Likewise.
39693         * lib/vasnprintf.h: Likewise.
39694         * lib/vasprintf.h: Likewise.
39695         * lib/verror.h: Likewise.
39696         * lib/xsetenv.h: Likewise.
39697         * lib/xvasprintf.h: Likewise.
39698
39699 2007-03-08  Jim Meyering  <jim@meyering.net>
39700
39701         * users.txt: Add parted.
39702
39703         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
39704
39705 2007-03-07  Bruno Haible  <bruno@clisp.org>
39706
39707         * m4/printf.m4: Make the shell script snippets copy&pastable.
39708
39709 2007-03-02  Bruno Haible  <bruno@clisp.org>
39710
39711         * lib/netinet_in_.h: New file.
39712         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
39713         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
39714         * modules/netinet_in (Files): Add lib/netinet_in_.h.
39715         (Depends-on): Add absolute-header.
39716         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
39717         into netinet/in.h.
39718
39719 2007-03-03  Bruno Haible  <bruno@clisp.org>
39720
39721         * lib/sys_select_.h: New file.
39722         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
39723         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
39724         * modules/sys_select (Files): Add lib/sys_select_.h.
39725         (Depends-on): Add absolute-header.
39726         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
39727         into sys/select.h.
39728
39729 2007-03-02  Bruno Haible  <bruno@clisp.org>
39730
39731         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
39732         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
39733         values.
39734         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
39735         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
39736         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
39737         * modules/sys_socket (Depends-on): Add absolute-header.
39738         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
39739         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
39740         (Include): Remove requirement of inclusion of <sys/types.h>.
39741
39742 2007-03-02  Bruno Haible  <bruno@clisp.org>
39743
39744         * lib/byteswap_.h (bswap_32): Fix formula.
39745
39746 2007-03-06  Bruno Haible  <bruno@clisp.org>
39747
39748         * modules/sprintf-posix-tests: New file.
39749         * tests/test-sprintf-posix.c: New file.
39750
39751         * modules/sprintf-posix: New file.
39752         * lib/sprintf.c: New file.
39753         * m4/sprintf-posix.m4: New file.
39754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
39755         REPLACE_SPRINTF.
39756         * lib/stdio_.h (sprintf): New declaration.
39757         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
39758         REPLACE_SPRINTF.
39759
39760 2007-03-06  Bruno Haible  <bruno@clisp.org>
39761
39762         * modules/vsprintf-posix-tests: New file.
39763         * tests/test-vsprintf-posix.c: New file.
39764         * tests/test-sprintf-posix.h: New file.
39765
39766         * modules/vsprintf-posix: New file.
39767         * lib/vsprintf.c: New file.
39768         * m4/vsprintf-posix.m4: New file.
39769         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
39770         REPLACE_VSPRINTF.
39771         * lib/stdio_.h (vsprintf): New declaration.
39772         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
39773         REPLACE_VSPRINTF.
39774
39775 2007-03-06  Bruno Haible  <bruno@clisp.org>
39776
39777         * modules/vsnprintf (Depend-on): Remove minmax.
39778
39779 2007-03-06  Bruno Haible  <bruno@clisp.org>
39780
39781         * modules/snprintf-posix-tests: New file.
39782         * tests/test-snprintf-posix.c: New file.
39783
39784         * modules/snprintf-posix: New file.
39785         * m4/snprintf-posix.m4: New file.
39786         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
39787         gl_FUNC_SNPRINTF.
39788         (gl_FUNC_SNPRINTF): Invoke it.
39789         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
39790         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
39791         is set.
39792         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
39793
39794 2007-03-06  Bruno Haible  <bruno@clisp.org>
39795
39796         * modules/vsnprintf-posix-tests: New file.
39797         * tests/test-vsnprintf-posix.c: New file.
39798         * tests/test-snprintf-posix.h: New file.
39799
39800         * modules/vsnprintf-posix: New file.
39801         * m4/vsnprintf-posix.m4: New file.
39802         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
39803         gl_FUNC_VSNPRINTF.
39804         (gl_FUNC_VSNPRINTF): Invoke it.
39805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
39806         * lib/stdio_.h (vsnprintf): Define as a replacement if
39807         REPLACE_VSNPRINTF is set.
39808         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
39809
39810 2007-03-06  Bruno Haible  <bruno@clisp.org>
39811
39812         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
39813         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
39814
39815 2007-03-06  Bruno Haible  <bruno@clisp.org>
39816
39817         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
39818         (asinl): Declare also if HAVE_DECL_ASINL is set.
39819         (atanl): Declare also if HAVE_DECL_ATANL is set.
39820         (ceill): Declare also if HAVE_DECL_CEILL is set.
39821         (cosl): Declare also if HAVE_DECL_COSL is set.
39822         (expl): Declare also if HAVE_DECL_EXPL is set.
39823         (floorl): Declare also if HAVE_DECL_FLOORL is set.
39824         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
39825         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
39826         (logl): Declare also if HAVE_DECL_LOGL is set.
39827         (sinl): Declare also if HAVE_DECL_SINL is set.
39828         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
39829         (tanl): Declare also if HAVE_DECL_TANL is set.
39830         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
39831         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
39832         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
39833         declaration of frexpl, ldexpl.
39834         * modules/printf-frexpl (Depends-on): Add math.
39835         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
39836
39837 2007-03-05  Bruno Haible  <bruno@clisp.org>
39838
39839         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
39840         frexpl and ldexpl are declared.
39841         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
39842
39843 2007-03-05  Bruno Haible  <bruno@clisp.org>
39844
39845         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
39846         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
39847
39848 2007-03-05  Bruno Haible  <bruno@clisp.org>
39849
39850         * lib/stdio_.h: Include <stddef.h>.
39851
39852 2007-03-05  Bruno Haible  <bruno@clisp.org>
39853
39854         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
39855
39856 2007-03-05  Bruno Haible  <bruno@clisp.org>
39857
39858         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
39859         NetBSD 4, from Ralf Wildenhues.
39860
39861 2007-03-04  Bruno Haible  <bruno@clisp.org>
39862
39863         * lib/vasprintf.h: Update #if logic for the case when the functions
39864         exist but are overridden.
39865
39866 2007-03-04  Bruno Haible  <bruno@clisp.org>
39867
39868         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
39869         implementations: glibc-2.4 and MacOS X 10.3.
39870         * tests/test-vasnprintf-posix.c (test_function): Test also the case
39871         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
39872         * tests/test-vasprintf-posix.c (test_function): Likewise.
39873
39874 2007-03-04  Bruno Haible  <bruno@clisp.org>
39875
39876         * modules/vasprintf-posix-tests: New file.
39877         * tests/test-vasprintf-posix.c: New file.
39878
39879         * modules/vasprintf-posix: New file.
39880         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
39881         defined.
39882         * m4/vasprintf-posix.m4: New file.
39883         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
39884         gl_FUNC_VASPRINTF.
39885         (gl_FUNC_VASPRINTF): Invoke it.
39886         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
39887         here.
39888         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
39889
39890 2007-03-04  Bruno Haible  <bruno@clisp.org>
39891
39892         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
39893         REPLACE_GETTIMEOFDAY.
39894         * modules/sys_time (Makefile.am): Likewise.
39895         * m4/sys_time_h.m4: Likewise.
39896         * m4/gettimeofday.m4: Likewise.
39897
39898 2007-03-04  Bruno Haible  <bruno@clisp.org>
39899
39900         * modules/vasnprintf-posix-tests: New file.
39901         * tests/test-vasnprintf-posix.c: New file.
39902
39903         * modules/vasnprintf-posix: New file.
39904         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
39905         printf-frexpl.h.
39906         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
39907         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
39908         REPLACE_VASNPRINTF is defined.
39909         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
39910         gl_FUNC_VASNPRINTF.
39911         (gl_FUNC_VASNPRINTF): Invoke it.
39912         * m4/vasnprintf-posix.m4: New file.
39913         * m4/printf.m4: New file.
39914
39915 2007-03-04  Bruno Haible  <bruno@clisp.org>
39916
39917         Compile progreloc.c only if --enable-relocatable is specified.
39918         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
39919         if --enable-relocatable was specified.
39920         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
39921         lib_SOURCES.
39922
39923 2007-03-04  Jim Meyering  <jim@meyering.net>
39924
39925         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
39926         Use it consistently, rather than enumerating errno constants.
39927
39928 2007-03-04  Bruno Haible  <bruno@clisp.org>
39929
39930         * modules/xvasprintf-tests: New file.
39931         * tests/test-xvasprintf.c: New file.
39932
39933         * modules/vasprintf-tests: New file.
39934         * tests/test-vasprintf.c: New file.
39935
39936         * modules/vasnprintf-tests: New file.
39937         * tests/test-vasnprintf.c: New file.
39938
39939         * modules/vsnprintf-tests: New file.
39940         * tests/test-vsnprintf.c: New file.
39941
39942         * modules/snprintf-tests: New file.
39943         * tests/test-snprintf.c: New file.
39944
39945 2007-03-04  Bruno Haible  <bruno@clisp.org>
39946
39947         Compile relocatable.c only if --enable-relocatable is specified.
39948         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
39949         gl_RELOCATABLE_LIBRARY.
39950         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
39951         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
39952         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
39953         gl_RELOCATABLE_LIBRARY.
39954         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
39955         (Makefile.am): Remove lib_SOURCES.
39956         * modules/relocatable-lib-lgpl (configure.ac): Invoke
39957         gl_RELOCATABLE_LIBRARY.
39958         (Makefile.am): Remove lib_SOURCES.
39959         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
39960         always.
39961         * modules/relocatable-prog-wrapper (configure.ac): Invoke
39962         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
39963
39964 2007-03-04  Bruno Haible  <bruno@clisp.org>
39965
39966         * modules/argmatch-tests: New file.
39967         * tests/test-argmatch.c: New file.
39968
39969         * tests/test-allocsa.c (main): Halve the number of loop runs.
39970
39971         * modules/alloca-opt-tests: New file.
39972         * tests/test-alloca-opt.c: New file.
39973
39974 2007-03-04  Jim Meyering  <jim@meyering.net>
39975
39976         Work around difference between Linux ACLs and Solaris 10 ZFS.
39977         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
39978         for EINVAL.
39979
39980 2007-03-03  Bruno Haible  <bruno@clisp.org>
39981
39982         * modules/relocatable-prog (Depends-on): Add back progreloc's
39983         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
39984
39985 2007-03-03  Bruno Haible  <bruno@clisp.org>
39986
39987         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
39988         * modules/relocatable-lib: New file.
39989
39990 2007-03-03  Bruno Haible  <bruno@clisp.org>
39991
39992         * modules/relocatable-prog: Renamed from modules/relocatable.
39993         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
39994
39995 2007-03-03  Bruno Haible  <bruno@clisp.org>
39996
39997         * modules/relocatable-script (Files): Add doc/relocatable.texi,
39998         m4/relocatable-lib.m4.
39999         (Depends-on): Remove 'relocatable'.
40000         (configure.ac): Add gl_RELOCATABLE_NOP.
40001
40002 2007-03-03  Bruno Haible  <bruno@clisp.org>
40003
40004         * modules/relocatable-prog-wrapper: New file.
40005         * modules/relocatable (Depends-on): Add it. Remove all other
40006         dependencies except progname.
40007         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
40008
40009         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
40010         (gl_FUNC_STRERROR): Nop.
40011         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
40012
40013         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
40014         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
40015
40016         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
40017         (gl_FUNC_READLINK): Update.
40018
40019         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
40020
40021 2007-03-03  Bruno Haible  <bruno@clisp.org>
40022
40023         * lib/xreadlink.c: Include <unistd.h> unconditionally.
40024         * modules/xreadlink (Depends-on): Add unistd.
40025         * modules/xreadlink-with-size (Depends-on): Likewise.
40026
40027 2007-03-03  Bruno Haible  <bruno@clisp.org>
40028
40029         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
40030         extracted from gt_FUNC_SETENV.
40031         (gt_FUNC_SETENV): Remove macro.
40032         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
40033         remove gt_FUNC_SETENV.
40034
40035 2007-03-03  Bruno Haible  <bruno@clisp.org>
40036
40037         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
40038         ENABLE_RELOCATABLE here.
40039         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
40040
40041 2007-03-03  Bruno Haible  <bruno@clisp.org>
40042
40043         * modules/rbtreehash-list-tests (Depends-on): Add progname.
40044         * tests/test-rbtreehash_list.c: Include progname.h.
40045         (main): Call set_program_name.
40046
40047         * modules/rbtree-oset-tests (Depends-on): Add progname.
40048         * tests/test-rbtree_oset.c: Include progname.h.
40049         (main): Call set_program_name.
40050
40051         * modules/rbtree-list-tests (Depends-on): Add progname.
40052         * tests/test-rbtree_list.c: Include progname.h.
40053         (main): Call set_program_name.
40054
40055         * modules/linked-list-tests (Depends-on): Add progname.
40056         * tests/test-linked_list.c: Include progname.h.
40057         (main): Call set_program_name.
40058
40059 2007-03-03  Bruno Haible  <bruno@clisp.org>
40060
40061         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
40062         All uses of __restrict changed to _Restrict_.
40063         * lib/glob_.h (__restrict): Remove macro.
40064
40065 2007-03-02  Bruno Haible  <bruno@clisp.org>
40066
40067         * modules/gettext (configure.ac): Require gettext infrastructure
40068         from version 0.16.1.
40069
40070 2007-03-02  Bruno Haible  <bruno@clisp.org>
40071
40072         * modules/linkedhash-list-tests (Depends-on): Add progname.
40073         * tests/test-linkedhash_list.c: Include progname.h.
40074         (main): Call set_program_name.
40075
40076         * modules/carray-list-tests (Depends-on): Add progname.
40077         * tests/test-carray_list.c: Include progname.h.
40078         (main): Call set_program_name.
40079
40080         * modules/avltreehash-list-tests (Depends-on): Add progname.
40081         * tests/test-avltreehash_list.c: Include progname.h.
40082         (main): Call set_program_name.
40083
40084         * modules/avltree-oset-tests (Depends-on): Add progname.
40085         * tests/test-avltree_oset.c: Include progname.h.
40086         (main): Call set_program_name.
40087
40088         * modules/avltree-list-tests (Depends-on): Add progname.
40089         * tests/test-avltree_list.c: Include progname.h.
40090         (main): Call set_program_name.
40091
40092         * modules/array-oset-tests (Depends-on): Add progname.
40093         * tests/test-array_oset.c: Include progname.h.
40094         (main): Call set_program_name.
40095
40096         * modules/array-list-tests (Depends-on): Add progname.
40097         * tests/test-array_list.c: Include progname.h.
40098         (main): Call set_program_name.
40099
40100         * modules/argp-tests (Depends-on): Add progname.
40101         * tests/test-argp.c: Include argp.h first. Include progname.h.
40102         (main): Call set_program_name.
40103
40104 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
40105
40106         * doc/gnulib-tool.texi (Initial import): Reword description of
40107         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
40108         limited effect even if defined after the first system include.
40109
40110 2007-03-01  Bruno Haible  <bruno@clisp.org>
40111
40112         * build-aux/config.libpath: Update to libtool-1.5.22.
40113         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40114
40115 2007-03-01  Bruno Haible  <bruno@clisp.org>
40116
40117         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
40118         foo_CFLAGS.
40119         Reported by Ralf Wildenhues.
40120
40121 2007-03-01  Bruno Haible  <bruno@clisp.org>
40122
40123         * build-aux/install-reloc: Remove object files left over by some
40124         compilers.
40125         Reported by Ralf Wildenhues.
40126
40127 2007-03-01  Bruno Haible  <bruno@clisp.org>
40128
40129         * build-aux/install-reloc: Break long lines.
40130
40131 2007-03-01  Bruno Haible  <bruno@clisp.org>
40132
40133         * doc/relocatable.texi: Document that it may not work on OpenBSD.
40134         Reported by Ralf Wildenhues.
40135
40136 2007-03-01  Bruno Haible  <bruno@clisp.org>
40137
40138         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
40139         include ordering constraints.
40140
40141 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
40142
40143         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
40144         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
40145         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
40146         as another example.
40147         * lib/time_.h: Fix misspelling.
40148         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40149         Require gl_HEADER_TIME_H_DEFAULTS.
40150         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
40151         * m4/time_r.m4 (gl_TIME_R): Likewise.
40152         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
40153
40154 2007-03-01  Bruno Haible  <bruno@clisp.org>
40155
40156         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
40157         * m4/utimens.m4 (gl_UTIMENS): Likewise.
40158
40159 2007-03-01  Jim Meyering  <jim@meyering.net>
40160
40161         * modules/xreadlink (Maintainer): Add my name.
40162         * modules/xreadlink-with-size (Depends-on): Alphabetize.
40163
40164 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
40165             Bruno Haible  <bruno@clisp.org>
40166
40167         * build-aux/install-reloc: Compile also c-ctype.c.
40168         * build-aux/relocatable.sh.in: New file.
40169         * doc/relocatable.texi: New file.
40170         * doc/relocatable-maint.texi: New file.
40171         * doc/gnulib.texi: Include relocatable-maint.texi.
40172         * lib/progreloc.c: Include unistd.h unconditionally.
40173         * lib/relocwrapper.c: Include unistd.h unconditionally.
40174         Include c-ctype.h.
40175         (add_dotbin): Use c_tolower.
40176         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
40177         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
40178         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
40179         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
40180         to m4/relocatable-lib.m4.
40181         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
40182         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
40183         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
40184         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
40185         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
40186         * modules/relocatable: New file.
40187         * modules/relocatable-lib: New file.
40188         * modules/relocatable-script: New file.
40189
40190 2007-02-28  Bruno Haible  <bruno@clisp.org>
40191
40192         Import --enable-relocatable infrastructure.
40193         * build-aux/config.libpath: New file, from GNU gettext.
40194         * build-aux/install-reloc: New file, from GNU gettext.
40195         * build-aux/reloc-ldflags: New file, from GNU gettext.
40196         * lib/relocatable.h: New file, from GNU gettext.
40197         * lib/relocatable.c: New file, from GNU gettext.
40198         * lib/relocwrapper.c: New file, from GNU gettext.
40199         * m4/relocatable.m4: New file, from GNU gettext.
40200
40201 2007-02-28  Bruno Haible  <bruno@clisp.org>
40202
40203         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
40204
40205         * modules/xreadlink: New file, from GNU gettext with modifications.
40206         * lib/xreadlink.c: New file, from GNU gettext.
40207         * lib/xreadlink.h: Add comments.
40208         (xreadlink): New declaration.
40209
40210         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
40211         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
40212         lib/xreadlink-with-size.c.
40213         (configure.ac): Remove gl_XREADLINK invocation.
40214         (Makefile.am): Augment lib_SOURCES.
40215         * m4/xreadlink.m4: Remove file.
40216         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
40217         (xreadlink_with_size): Renamed from xreadink.
40218         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
40219         * modules/canonicalize (Depends-on): Replace xreadlink with
40220         xreadlink-with-size.
40221         * lib/canonicalize.c (canonicalize_filename_mode): Update.
40222
40223 2007-02-25  Jim Meyering  <jim@meyering.net>
40224
40225         * build-aux/announce-gen: When complaining about excess arguments,
40226         list them.
40227
40228 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
40229
40230         * README: Document signed integer overflow situation more
40231         accurately.
40232
40233 2007-02-25  Bruno Haible  <bruno@clisp.org>
40234
40235         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
40236         'a' or 'A' conversion.
40237
40238 2007-02-25  Bruno Haible  <bruno@clisp.org>
40239
40240         * modules/filename: Renamed from modules/pathname.
40241         (Files): Replace lib/pathname.h with lib/filename.h. Replace
40242         lib/concatpath.c with lib/concat-filename.c.
40243         (Makefile.am): Update.
40244         (Include): Replace pathname.h with filename.h.
40245         * lib/filename.h: Renamed from lib/pathname.h.
40246         (concatenated_filename): Renamed from concatenated_pathname.
40247         * lib/concat-filename.c: Renamed from lib/concatpath.c.
40248         (concatenated_filename): Renamed from concatenated_pathname.
40249         * lib/findprog.c: Include filename.h instead of pathname.h.
40250         (find_in_path): Update.
40251         * lib/javacomp.c: Include filename.h instead of pathname.h.
40252         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
40253         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
40254         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
40255         is_oldgcj_14_13_usable, is_javac_usable): Update.
40256         * lib/javaexec.c: Include filename.h instead of pathname.h.
40257         (execute_java_class): Update.
40258         * modules/findprog: Update.
40259         * modules/javacomp: Update.
40260         * modules/javaexec: Update.
40261         * MODULES.html.sh (File system functions): Add 'filename', remove
40262         'pathname'.
40263
40264 2007-02-25  Bruno Haible  <bruno@clisp.org>
40265
40266         * modules/printf-frexpl-tests: New file.
40267         * tests/test-printf-frexpl.c: New file.
40268
40269         * modules/printf-frexpl: New file.
40270         * lib/printf-frexpl.h: New file.
40271         * lib/printf-frexpl.c: New file.
40272         * m4/printf-frexpl.m4: New file.
40273
40274 2007-02-25  Bruno Haible  <bruno@clisp.org>
40275
40276         * modules/printf-frexp-tests: New file.
40277         * tests/test-printf-frexp.c: New file.
40278
40279         * modules/printf-frexp: New file.
40280         * lib/printf-frexp.h: New file.
40281         * lib/printf-frexp.c: New file.
40282         * m4/printf-frexp.m4: New file.
40283
40284 2007-02-25  Bruno Haible  <bruno@clisp.org>
40285
40286         Assume automake >= 1.10 for the tests.
40287         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
40288         * modules/arctwo-tests: Likewise.
40289         * modules/argp-tests: Likewise.
40290         * modules/avltree-list-tests: Likewise.
40291         * modules/avltree-oset-tests: Likewise.
40292         * modules/avltreehash-list-tests: Likewise.
40293         * modules/carray-list-tests: Likewise.
40294         * modules/crc-tests: Likewise.
40295         * modules/des-tests: Likewise.
40296         * modules/gc-arcfour-tests: Likewise.
40297         * modules/gc-arctwo-tests: Likewise.
40298         * modules/gc-des-tests: Likewise.
40299         * modules/gc-hmac-md5-tests: Likewise.
40300         * modules/gc-hmac-sha1-tests: Likewise.
40301         * modules/gc-md2-tests: Likewise.
40302         * modules/gc-md4-tests: Likewise.
40303         * modules/gc-md5-tests: Likewise.
40304         * modules/gc-pbkdf2-sha1-tests: Likewise.
40305         * modules/gc-rijndael-tests: Likewise.
40306         * modules/gc-sha1-tests: Likewise.
40307         * modules/gc-tests: Likewise.
40308         * modules/getaddrinfo-tests: Likewise.
40309         * modules/hmac-md5-tests: Likewise.
40310         * modules/hmac-sha1-tests: Likewise.
40311         * modules/linked-list-tests: Likewise.
40312         * modules/linkedhash-list-tests: Likewise.
40313         * modules/lock-tests: Likewise.
40314         * modules/md2-tests: Likewise.
40315         * modules/md4-tests: Likewise.
40316         * modules/md5-tests: Likewise.
40317         * modules/rbtree-list-tests: Likewise.
40318         * modules/rbtree-oset-tests: Likewise.
40319         * modules/rbtreehash-list-tests: Likewise.
40320         * modules/read-file-tests: Likewise.
40321         * modules/rijndael-tests: Likewise.
40322         * modules/stdint-tests: Likewise.
40323         * modules/tls-tests: Likewise.
40324
40325 2007-02-24  Bruno Haible  <bruno@clisp.org>
40326
40327         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
40328         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
40329         function; instead check whether isnan with a double argument links.
40330         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
40331         function; instead check whether isnan with a 'long double' argument
40332         links.
40333         Reported by Eric Blake <ebb9@byu.net>.
40334
40335 2007-02-24  Bruno Haible  <bruno@clisp.org>
40336
40337         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
40338         defined.
40339         * lib/isnanl.c: Remove all code. Just include isnan.c.
40340         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
40341
40342 2007-02-25  Jim Meyering  <jim@meyering.net>
40343
40344         Avoid conflicting types for 'unsetenv' on FreeBSD.
40345         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
40346         conflicting with FreeBSD's (5.0 and 6.1) function declaration
40347         in stdlib.h.
40348
40349 2007-02-24  Bruno Haible  <bruno@clisp.org>
40350
40351         * modules/isnanl-nolibm-tests: New file.
40352         * tests/test-isnanl.c: New file.
40353
40354         * modules/isnanl-nolibm: New file.
40355         * lib/isnanl.h: New file.
40356         * lib/isnanl.c: New file.
40357         * m4/isnanl.m4: New file.
40358
40359 2007-02-24  Bruno Haible  <bruno@clisp.org>
40360
40361         * modules/isnan-nolibm-tests: New file.
40362         * tests/test-isnan.c: New file.
40363
40364         * modules/isnan-nolibm: New file.
40365         * lib/isnan.h: New file.
40366         * lib/isnan.c: New file.
40367         * m4/isnan.m4: New file.
40368
40369 2007-02-24  Bruno Haible  <bruno@clisp.org>
40370
40371         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
40372         assume that an exponent fits in 20 bits.
40373
40374 2007-02-24  Jim Meyering  <jim@meyering.net>
40375
40376         * m4/regex.m4: Update the description of the configure-time option,
40377         --without-included-regex, to state accurately what the defaults are,
40378         and perhaps to give people an idea why using this option is risky.
40379
40380 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
40381
40382         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
40383         loops on small arguments.  This attempts to avoid the problem
40384         Bruno Haible reported for AIX 4.3.2 in
40385         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
40386
40387 2007-02-23  Bruno Haible  <bruno@clisp.org>
40388
40389         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
40390         Needed for help2man.
40391
40392 2007-02-23  Karl Berry  <karl@gnu.org>
40393
40394         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
40395         exists, foo.h should be cvs-ignored, not committed.
40396
40397 2007-02-23  Eric Blake  <ebb9@byu.net>
40398
40399         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
40400         * lib/stat-time.h (includes): Likewise.
40401         * lib/utimecmp.c (includes): Likewise.
40402         * lib/utimens.h (includes): Likewise.
40403         * lib/getdate.y (includes): Also include "timespec.h" for use
40404         internal to the module.
40405         * modules/utimens (Depends-on): Revert yesterday's patch.
40406         * modules/nanosleep (Depends-on): Add missing dependency.
40407
40408 2007-02-22  Bruno Haible  <bruno@clisp.org>
40409
40410         * lib/glob.c: Don't include getlogin_r.h.
40411
40412 2007-02-22  Jim Meyering  <jim@meyering.net>
40413
40414         * modules/utimens (Depends-on): Add timespec, required for
40415         utimens.h's inclusion of timespec.h.
40416
40417 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
40418
40419         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
40420         long unreadable paths in GNU/Linux.  Problem reported by Andreas
40421         Schwab in
40422         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
40423         I'll try to think of a better way to fix the Solaris problem.
40424
40425         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
40426         like glibc; on Solaris 10, it fails with errno == EINVAL.
40427         POSIX says the behavior is unspecified if the first argument is NULL,
40428         so play it safe and never pass NULL to the system getcwd.
40429
40430 2007-02-21  Jim Meyering  <jim@meyering.net>
40431
40432         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
40433         of gettimeofday.  It would conflict with the one now always
40434         provided via sys_time_.h.  Reported by Matthew Woehlke, as
40435         an IRIX 6.5 build failure.
40436
40437 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
40438
40439         Minor fixups to port to Solaris 10 with Sun C 5.8.
40440         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
40441         * modules/getcwd (Depends-on): Add dirfd.
40442         * lib/putenv.c (putenv): #undef it.
40443         (rpl_putenv): New decl.
40444         (malloc, free): Include <stdlib.h> rather than prototyping separately.
40445
40446 2007-02-20  Bruno Haible  <bruno@clisp.org>
40447
40448         * modules/stdio-tests: New file.
40449         * tests/test-stdio.c: New file.
40450
40451         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
40452         (Depends-on): Add stdio.
40453         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
40454         (Include): Use <stdio.h> instead of vsnprintf.h.
40455         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
40456         HAVE_DECL_VSNPRINTF.
40457         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
40458
40459         * modules/snprintf (Files): Remove lib/snprintf.h.
40460         (Depends-on): Add stdio.
40461         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
40462         (Include): Use <stdio.h> instead of snprintf.h.
40463         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
40464         HAVE_DECL_SNPRINTF.
40465         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
40466         * lib/getaddrinfo.c: Likewise.
40467
40468         * modules/stdio: New file.
40469         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
40470         * lib/snprintf.h: Remove file.
40471         * lib/vsnprintf.h: Remove file.
40472         * lib/.cppi-disable: Remove snprintf.h.
40473         * m4/stdio_h.m4: New file.
40474         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
40475
40476 2007-02-20  Jim Meyering  <jim@meyering.net>
40477
40478         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
40479         used by e.g., mingw.  From Bruno Haible.
40480
40481 2007-02-19  Bruno Haible  <bruno@clisp.org>
40482
40483         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
40484         warnings.
40485         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40486
40487 2007-02-19  Bruno Haible  <bruno@clisp.org>
40488
40489         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
40490         from mingw users.
40491
40492 2007-02-19  Bruno Haible  <bruno@clisp.org>
40493
40494         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
40495         warnings.
40496         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
40497
40498 2007-02-19  Jim Meyering  <jim@meyering.net>
40499
40500         Don't use FD after a successful "fdopendir (fd)".
40501         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
40502         Reset it by calling dirfd on the just-obtained DIR*.
40503
40504         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
40505         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
40506
40507 2007-02-18  Bruno Haible  <bruno@clisp.org>
40508
40509         * lib/readlink.c: Include <unistd.h>.
40510         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
40511         HAVE_READLINK.
40512         * modules/readlink (Depends-on): Add unistd.
40513         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40514         (Include): Add <unistd.h>.
40515
40516         * lib/getlogin_r.h: Remove file.
40517         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
40518         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
40519         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
40520         HAVE_DECL_GETLOGIN_R.
40521         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
40522         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40523         (Include): Use <unistd.h> instead of getlogin_r.h.
40524
40525         * lib/getcwd.h: Remove file.
40526         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
40527         * lib/xgetcwd.c: Likewise.
40528         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
40529         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
40530         * modules/getcwd (Files): Remove lib/getcwd.h.
40531         (Depends-on): Add unistd.
40532         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40533         (Include): Use <unistd.h> instad of getcwd.h.
40534
40535         * lib/ftruncate.c: Include <unistd.h> first.
40536         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
40537         Set HAVE_FTRUNCATE.
40538         * modules/ftruncate (Depends-on): Add unistd.
40539         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40540
40541         * lib/fchdir.c: Include <unistd.h> first.
40542         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
40543         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
40544         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
40545         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40546         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
40547
40548         * lib/dup2.c: Include <unistd.h> first.
40549         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
40550         HAVE_DUP2.
40551         * modules/dup2 (Depends-on): Add unistd.
40552         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40553
40554         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
40555         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
40556         REPLACE_CHOWN. Don't define chown as a macro here.
40557         * modules/chown (Depends-on): Add unistd.
40558         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40559
40560         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
40561         Add definition for GL_LINK_WARNING.
40562         (chown, dup2): New declarations.
40563         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
40564         link warning.
40565         (ftruncate): New declaration.
40566         (getcwd): New declaration, taken from old getcwd.h.
40567         (getlogin_r): New declaration, taken from old getlogin_r.h.
40568         (readlink): New declaration.
40569         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
40570         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
40571         (gl_PREREQ_UNISTD): Remove macro.
40572         (gl_UNISTD_MODULE_INDICATOR): New macro.
40573         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
40574         many new variables. Don't set UNISTD_H.
40575         * modules/unistd (Description): Change.
40576         (Depends-on): Add link-warning.
40577         (configure.ac): Update.
40578         (Makefile.am): Create unistd.h always. Substitute many new variables
40579         into it.
40580
40581 2007-02-18  Bruno Haible  <bruno@clisp.org>
40582
40583         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
40584         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
40585         HAVE_GETSUBOPT.
40586         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
40587         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
40588         * lib/getsubopt.h: Remove file.
40589         * modules/getsubopt (Files): Remove lib/getsubopt.h.
40590         (Depends-on): Add stdlib.
40591         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40592         (Includes): Use <stdlib.h> instead of getsubopt.h.
40593         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
40594         Set HAVE_GETSUBOPT.
40595         * lib/getsubopt.c: Don't include getsubopt.h.
40596
40597 2007-02-18  Bruno Haible  <bruno@clisp.org>
40598
40599         * modules/fchdir (Depends-on): Add dup2.
40600
40601 2007-02-18  Bruno Haible  <bruno@clisp.org>
40602
40603         * lib/stdlib_.h: Handle glibc's special invocation convention
40604         specially.
40605
40606 2007-02-18  Bruno Haible  <bruno@clisp.org>
40607
40608         * modules/stdlib-tests: New file.
40609         * tests/test-stdlib.c: New file.
40610
40611         * modules/mkstemp (Files): Remove lib/mkstemp.h.
40612         (Depends-on): Add stdlib.
40613         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40614         (Includes): Use <stdlib.h> instead of mkstemp.h.
40615         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
40616         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
40617         * lib/mkstemp.c: Don't include mkstemp.h.
40618         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
40619         * lib/stdlib--.h: Don't include mkstemp.h.
40620
40621         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
40622         (Depends-on): Add stdlib.
40623         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40624         (Includes): Use <stdlib.h> instead of mkdtemp.h.
40625         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
40626         HAVE_MKDTEMP.
40627         * lib/mkdtemp.c: Don't include mkdtemp.h.
40628         * lib/clean-temp.c: Don't include mkdtemp.h.
40629
40630         * modules/exit (Files): Remove lib/exit.h.
40631         (Depends-on): Add stdlib.
40632         (Makefile.am): Remove lib_SOURCES.
40633         (Include): Use <stdlib.h> instead of exit.h.
40634         * lib/argmatch.c: Don't include exit.h.
40635         * lib/execute.c: Likewise.
40636         * lib/pagealign_alloc.c: Likewise.
40637         * lib/pipe.c: Likewise.
40638         * lib/wait-process.c: Likewise.
40639         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
40640         * lib/exitfail.c: Likewise.
40641         * lib/savewd.c: Likewise.
40642         * lib/xsetenv.c: Likewise.
40643
40644         * modules/stdlib: New file.
40645         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
40646         and extra comments about mkstemp().
40647         * lib/exit.h: Remove file.
40648         * lib/mkdtemp.h: Remove file.
40649         * lib/mkstemp.h: Remove file.
40650         * m4/stdlib_h.m4: New file.
40651         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
40652
40653 2007-02-18  Bruno Haible  <bruno@clisp.org>
40654
40655         * modules/math-tests: New file.
40656         * tests/test-math.c: New file.
40657
40658         * modules/math: New file.
40659         * modules/mathl (Files): Remove lib/mathl.h.
40660         (Depends-on): Add math.
40661         (Makefile.am): Don't mention mathl.h.
40662         (Include): Use <math.h> instead of mathl.h.
40663         * lib/math_.h: New file.
40664         * lib/mathl.h: Remove file.
40665         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
40666         mathl.h.
40667         * lib/asinl.c: Likewise.
40668         * lib/atanl.c: Likewise.
40669         * lib/ceill.c: Likewise.
40670         * lib/cosl.c: Likewise.
40671         * lib/expl.c: Likewise.
40672         * lib/floorl.c: Likewise.
40673         * lib/frexpl.c: Likewise.
40674         * lib/ldexpl.c: Likewise.
40675         * lib/logl.c: Likewise.
40676         * lib/sincosl.c: Likewise.
40677         * lib/sinl.c: Likewise.
40678         * lib/sqrtl.c: Likewise.
40679         * lib/tanl.c: Likewise.
40680         * lib/trigl.c: Likewise.
40681         * m4/math_h.m4: New file.
40682         * MODULES.html.sh (Mathematics): Add math.
40683
40684 2007-02-17  Bruno Haible  <bruno@clisp.org>
40685
40686         * modules/wctype-tests: New file.
40687         * tests/test-wctype.c: New file.
40688
40689         * modules/wchar-tests: New file.
40690         * tests/test-wchar.c: New file.
40691
40692         * modules/unistd-tests: New file.
40693         * tests/test-unistd.c: New file.
40694
40695         * modules/time-tests: New file.
40696         * tests/test-time.c: New file.
40697
40698         * modules/sysexits-tests: New file.
40699         * tests/test-sysexits.c: New file.
40700
40701         * modules/sys_time-tests: New file.
40702         * tests/test-sys_time.c: New file.
40703
40704         * modules/sys_stat-tests: New file.
40705         * tests/test-sys_stat.c: New file.
40706
40707         * modules/sys_socket-tests: New file.
40708         * tests/test-sys_socket.c: New file.
40709
40710         * modules/sys_select-tests: New file.
40711         * tests/test-sys_select.c: New file.
40712
40713         * modules/string-tests: New file.
40714         * tests/test-string.c: New file.
40715
40716         * modules/stdbool-tests: New file.
40717         * tests/test-stdbool.c: New file.
40718
40719         * modules/netinet_in-tests: New file.
40720         * tests/test-netinet_in.c: New file.
40721
40722         * modules/inttypes-tests: New file.
40723         * tests/test-inttypes.c: New file.
40724
40725         * modules/fcntl-tests: New file.
40726         * tests/test-fcntl.c: New file.
40727
40728         * modules/byteswap-tests: New file.
40729         * tests/test-byteswap.c: New file.
40730
40731         * modules/arpa_inet-tests: New file.
40732         * tests/test-arpa_inet.c: New file.
40733
40734 2007-02-17  Bruno Haible  <bruno@clisp.org>
40735
40736         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
40737         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
40738         if the corresponding module is not enabled. Emit link warnings if
40739         the function is used nevertheless.
40740         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
40741         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
40742         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
40743         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
40744         * modules/inttypes (Depends-on): Add link-warning.
40745         (Makefile.am): Copy the contents of build-aux/link-warning.h into
40746         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
40747         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
40748         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
40749         * modules/imaxdiv (configure.ac): Likewise.
40750         * modules/strtoimax (configure.ac): Likewise.
40751         * modules/strtoumax (configure.ac): Likewise.
40752
40753 2007-02-17  Bruno Haible  <bruno@clisp.org>
40754
40755         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
40756         gl_STRING_MODULE_INDICATOR_DEFAULTS.
40757         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
40758         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
40759
40760 2007-02-17  Bruno Haible  <bruno@clisp.org>
40761
40762         * modules/link-warning: New file.
40763         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
40764         * lib/string_.h (GL_LINK_WARNING): Remove definition.
40765         * modules/string (Depends-on): Add link-warning.
40766         (Makefile.am): Copy the contents of build-aux/link-warning.h into
40767         string.h.
40768         * MODULES.html.sh (Support for building libraries and executables): Add
40769         link-warning.
40770
40771 2007-02-17  Bruno Haible  <bruno@clisp.org>
40772
40773         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
40774         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
40775         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
40776         long lines.
40777
40778 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
40779             Bruno Haible  <bruno@clisp.org>
40780
40781         * modules/tmpfile: New file.
40782         * lib/tmpfile.c: New file.
40783         * m4/tmpfile.m4: New file.
40784         * MODULES.html.sh (func_all_modules): New section "Input/output".
40785
40786 2007-02-15  Bruno Haible  <bruno@clisp.org>
40787
40788         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
40789         (supports_delete_on_close): New function.
40790         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
40791
40792 2007-02-14  Bruno Haible  <bruno@clisp.org>
40793
40794         * modules/mbspcasecmp-tests: New file.
40795         * tests/test-mbspcasecmp.sh: New file.
40796         * tests/test-mbspcasecmp.c: New file.
40797
40798         New module mbspcasecmp.
40799         * modules/mbspcasecmp: New file.
40800         * lib/mbspcasecmp.c: New file.
40801         * lib/string_.h (strncasecmp): Change warning message.
40802         (mbspcasecmp): New declaration.
40803         * m4/mbspcasecmp.m4: New file.
40804         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
40805         GNULIB_MBSPCASECMP.
40806         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
40807         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
40808
40809 2007-02-14  Bruno Haible  <bruno@clisp.org>
40810
40811         * modules/mbsncasecmp-tests: New file.
40812         * tests/test-mbsncasecmp.sh: New file.
40813         * tests/test-mbsncasecmp.c: New file.
40814
40815         New module mbsncasecmp.
40816         * modules/mbsncasecmp: New file.
40817         * lib/mbsncasecmp.c: New file.
40818         * lib/string_.h (mbsncasecmp): New declaration.
40819         * m4/mbsncasecmp.m4: New file.
40820         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
40821         GNULIB_MBSNCASECMP.
40822         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
40823         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
40824
40825 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
40826
40827         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
40828         Verify that it doesn't overlap with our flags.
40829         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
40830         do not have the desired effect in multibyte locales; instead, use
40831         mbscasecmp.
40832         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
40833         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
40834         we don't require GNU fnmatch ourselves (if our users require it, they
40835         should do so explicitly).
40836
40837         Fix regex code so it doesn't rely on strcasecmp.
40838         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
40839         Otherwise, include gnulib's langinfo.h.
40840         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
40841         undesirable behavior in non-C locales.  Instead, rely on localecharset.
40842         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
40843         * modules/regex (FILES): Remove m4/codeset.m4.
40844         (Depends-on): Add localcharset.  Remove strcase.
40845
40846 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40847
40848         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
40849         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
40850
40851 2007-02-13  Bruno Haible  <bruno@clisp.org>
40852
40853         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
40854         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40855
40856 2007-02-12  Bruno Haible  <bruno@clisp.org>
40857
40858         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
40859         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
40860         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
40861         time warning rather than a link error.
40862
40863 2007-02-12  Bruno Haible  <bruno@clisp.org>
40864
40865         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
40866         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
40867         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40868
40869 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
40870
40871         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
40872         args, not 2.
40873
40874 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
40875
40876         New module 'time', so that apps can include <time.h> as per
40877         POSIX and GNU instead of separate include files like time_r.h
40878         and timegm.h.  This implementation tries out a simpler approach
40879         for replacing decls in standard include files (as compared to
40880         the string module), somewhat as an experiment.
40881
40882         * config/srclist.txt: Comment out mktime.c for now.
40883         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
40884         since it doesn't apply any more.  Use generic wording instead.
40885         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
40886         'time'.
40887         * lib/time_.h, m4/time_h.m4, modules/time: New files.
40888         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
40889         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
40890         Don't include <sys/types.h>; no longer needed since we assume C89.
40891         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
40892         * lib/strftime.c: Likewise.
40893         * lib/time_r.c: Likewise.
40894         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
40895         * lib/nanosleep.c: Include <time.h> first, to check interface.
40896         * lib/strptime.c: Likewise.
40897         * lib/time_r.c: Likewise.
40898         * lib/timegm.c: Likewise.
40899         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
40900         needed.
40901         * lib/timegm.c: Don't include timegm.h; no longer needed.
40902         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
40903         time.h now handles any problems in that area.
40904         (struct timespec, nanosleep): Remove; time.h now arranges for these.
40905         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
40906         that time.h defines struct timespec.
40907         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
40908         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
40909         handles that.
40910         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
40911         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
40912         needed.  Set REPLACE_LOCALTIME.
40913         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
40914         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
40915         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
40916         nanosleep; time_h.m4 now does that.  Don't require
40917         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
40918         module handles this now.
40919         * modules/getdate (Depends-on): Remove timespec.  Add time.
40920         * modules/nanosleep (Depends-on): Likewise.
40921         * modules/stat-time (Depends-on): Likewise.
40922         * modules/nanosleep (Include): Include time.h, not timespec.h.
40923         * modules/strptime (Files): Remove lib/strptime.h.
40924         (Depends-on): Add extensions, time.
40925         (Include): Include time.h, not strptime.h.
40926         * modules/time_r (Files): Remove lib/time_r.h.
40927         (Depends-on): Add time.
40928         (Include): Include time.h, not time_r.h.
40929         * modules/timegm: Likewise.
40930         * modules/timespec (Description): Now does timespec-related decls
40931         of our own, instead of struct timespec itself.
40932         (Depends-on): Add time; remove extensions.
40933         (Maintainer): Add self.
40934         * modules/utimecmp (Depends-on): Add time; remove timespec.
40935         * modules/utimens (Depends-on): Likewise.
40936         * modules/xnanosleep (Depends-on): Likewise.
40937
40938 2007-02-11  Bruno Haible  <bruno@clisp.org>
40939
40940         * lib/c-strstr.c: Include allocsa.h.
40941         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
40942         * lib/c-strcasestr.c: Include allocsa.h.
40943         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
40944         * lib/strcasestr.c: Include allocsa.h.
40945         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
40946         * lib/mbsstr.c: Include allocsa.h.
40947         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
40948         allocsa/freesa instead of malloc/free.
40949         * lib/mbscasestr.c: Include allocsa.h.
40950         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
40951         allocsa/freesa instead of malloc/free.
40952         * modules/c-strstr (Depends-on): Add allocsa.
40953         * modules/c-strcasestr (Depends-on): Likewise.
40954         * modules/strcasestr (Depends-on): Likewise.
40955         * modules/mbsstr (Depends-on): Likewise.
40956         * modules/mbscasestr (Depends-on): Likewise.
40957
40958 2007-02-11  Bruno Haible  <bruno@clisp.org>
40959
40960         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
40961
40962         * modules/mbsspn-tests: New file.
40963         * tests/test-mbsspn.sh: New file.
40964         * tests/test-mbsspn.c: New file.
40965
40966 2007-02-11  Bruno Haible  <bruno@clisp.org>
40967
40968         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
40969
40970         * modules/mbspbrk-tests: New file.
40971         * tests/test-mbspbrk.sh: New file.
40972         * tests/test-mbspbrk.c: New file.
40973
40974 2007-02-11  Bruno Haible  <bruno@clisp.org>
40975
40976         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
40977         unneeded cast.
40978
40979         * modules/mbscspn-tests: New file.
40980         * tests/test-mbscspn.sh: New file.
40981         * tests/test-mbscspn.c: New file.
40982
40983 2007-02-11  Bruno Haible  <bruno@clisp.org>
40984
40985         * modules/mbscasecmp-tests: New file.
40986         * tests/test-mbscasecmp.sh: New file.
40987         * tests/test-mbscasecmp.c: New file.
40988
40989 2007-02-11  Bruno Haible  <bruno@clisp.org>
40990
40991         Ensure O(n) worst-case complexity of mbscasestr.
40992         * lib/mbscasestr.c: Include stdbool.h.
40993         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
40994         functions.
40995         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
40996         the bookkeeping indicates that it's worth it.
40997         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
40998
40999         * modules/mbscasestr-tests: New file.
41000         * tests/test-mbscasestr1.c: New file.
41001         * tests/test-mbscasestr2.sh: New file.
41002         * tests/test-mbscasestr2.c: New file.
41003         * tests/test-mbscasestr3.sh: New file.
41004         * tests/test-mbscasestr3.c: New file.
41005         * tests/test-mbscasestr4.sh: New file.
41006         * tests/test-mbscasestr4.c: New file.
41007         * m4/locale-tr.m4: New file.
41008
41009 2007-02-11  Bruno Haible  <bruno@clisp.org>
41010
41011         Ensure O(n) worst-case complexity of mbsstr.
41012         * lib/mbsstr.c: Include stdbool.h.
41013         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
41014         functions.
41015         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
41016         bookkeeping indicates that it's worth it.
41017         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
41018
41019         * modules/mbsstr-tests: New file.
41020         * tests/test-mbsstr1.c: New file.
41021         * tests/test-mbsstr2.sh: New file.
41022         * tests/test-mbsstr2.c: New file.
41023         * tests/test-mbsstr3.sh: New file.
41024         * tests/test-mbsstr3.c: New file.
41025         * m4/locale-fr.m4: New file.
41026
41027 2007-02-11  Bruno Haible  <bruno@clisp.org>
41028
41029         * lib/mbsrchr.c (mbsrchr): Fix bug.
41030
41031         * modules/mbsrchr-tests: New file.
41032         * tests/test-mbsrchr.sh: New file.
41033         * tests/test-mbsrchr.c: New file.
41034
41035 2007-02-11  Bruno Haible  <bruno@clisp.org>
41036
41037         * lib/mbschr.c (mbschr): Fix bug.
41038
41039         * modules/mbschr-tests: New file.
41040         * tests/test-mbschr.sh: New file.
41041         * tests/test-mbschr.c: New file.
41042         * m4/locale-zh.m4: New file.
41043
41044 2007-02-11  Bruno Haible  <bruno@clisp.org>
41045
41046         Support for copying multibyte string iterators.
41047         * lib/mbiter.h: Include <string.h>.
41048         (mbiter_multi_copy): New function.
41049         (mbi_copy): New macro.
41050         * lib/mbuiter.h: Include <string.h>.
41051         (mbuiter_multi_copy): New function.
41052         (mbui_copy): New macro.
41053
41054 2007-02-11  Bruno Haible  <bruno@clisp.org>
41055
41056         New module mbslen.
41057         * modules/mbslen: New file.
41058         * lib/mbslen.c: New file.
41059         * lib/string_.h (mbslen): New declaration.
41060         * m4/mbslen.m4: New file.
41061         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41062         GNULIB_MBSLEN.
41063         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
41064         * MODULES.html.sh (Internationalization functions): Add mbslen.
41065
41066 2007-02-11  Bruno Haible  <bruno@clisp.org>
41067
41068         Ensure O(n) worst-case complexity of strcasestr substitute.
41069         * lib/strcasestr.c: Include stdbool.h.
41070         (knuth_morris_pratt): New function.
41071         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
41072         bookkeeping indicates that it's worth it.
41073         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
41074
41075         * modules/strcasestr-tests: New file.
41076         * tests/test-strcasestr.c: New file.
41077
41078 2007-02-11  Bruno Haible  <bruno@clisp.org>
41079
41080         Ensure O(n) worst-case complexity of c_strcasestr.
41081         * lib/c-strcasestr.c: Include stdbool.h, string.h.
41082         (knuth_morris_pratt): New function.
41083         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
41084         the bookkeeping indicates that it's worth it.
41085         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
41086
41087         * modules/c-strcasestr-tests: New file.
41088         * tests/test-c-strcasestr.c: New file.
41089
41090 2007-02-11  Bruno Haible  <bruno@clisp.org>
41091
41092         Ensure O(n) worst-case complexity of c_strstr.
41093         * lib/c-strstr.c: Include stdbool.h, string.h.
41094         (knuth_morris_pratt): New function.
41095         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
41096         bookkeeping indicates that it's worth it.
41097         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
41098
41099         * lib/c-strstr.c: Complete rewrite for maintainability.
41100
41101         * modules/c-strstr-tests: New file.
41102         * tests/test-c-strstr.c: New file.
41103
41104 2007-02-11  Bruno Haible  <bruno@clisp.org>
41105
41106         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
41107         5.2.1 and earlier, whereby \055 was treated just like the range
41108         delimiter '-'.
41109         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
41110
41111 2007-02-08  Bruno Haible  <bruno@clisp.org>
41112
41113         * modules/regex (Depends-on): Add stdbool.
41114         Reported by Dalibor Topic <robilad@kaffe.org>.
41115
41116 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
41117
41118         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
41119         Prefer returning from main to exiting from it.
41120         Remove unnecessary parens after sizeof.
41121
41122 2007-02-05  Bruno Haible  <bruno@clisp.org>
41123
41124         New module mbssep.
41125         * modules/mbssep: New file.
41126         * lib/mbssep.c: New file.
41127         * lib/string_.h (strsep): Add a conditional link warning.
41128         (mbssep): New declaration.
41129         * m4/mbssep.m4: New file.
41130         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41131         GNULIB_MBSSEP.
41132         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
41133         * MODULES.html.sh (Internationalization functions): Add mbssep.
41134
41135 2007-02-05  Bruno Haible  <bruno@clisp.org>
41136
41137         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
41138         Optimize search in case of 1 delimiter.
41139
41140 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
41141
41142         * lib/acl.h: Include sys/types.h before sys/acl.h.
41143
41144 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
41145
41146         Merge upstream fix for glibc bugzilla #3957:
41147
41148         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
41149
41150         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
41151         bit for RE_HAT_LISTS_NOT_NEWLINE.
41152         (build_charclass_op): Remove bogus comment.
41153
41154 2007-02-05  Simon Josefsson  <simon@josefsson.org>
41155
41156         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
41157
41158 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
41159
41160         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
41161         * lib/memmem.c [!defined _LIBC]: Include config.h.
41162
41163 2007-02-04  Bruno Haible  <bruno@clisp.org>
41164
41165         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
41166         warning message.
41167
41168 2007-02-04  Bruno Haible  <bruno@clisp.org>
41169
41170         New module mbstok_r.
41171         * modules/mbstok_r: New file.
41172         * lib/mbstok_r.c: New file.
41173         * lib/string_.h (strtok_r): Change argument names to match the
41174         comments. Add a conditional link warning.
41175         (mbstok_r): New declaration.
41176         * m4/mbstok_r.m4: New file.
41177         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41178         GNULIB_MBSTOK_R.
41179         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
41180         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
41181
41182 2007-02-04  Bruno Haible  <bruno@clisp.org>
41183
41184         New module mbsspn.
41185         * modules/mbsspn: New file.
41186         * lib/mbsspn.c: New file.
41187         * lib/string_.h (strspn): Add a conditional link warning.
41188         (mbsspn): New declaration.
41189         * m4/mbsspn.m4: New file.
41190         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41191         GNULIB_MBSSPN.
41192         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
41193         * MODULES.html.sh (Internationalization functions): Add mbsspn.
41194
41195 2007-02-04  Bruno Haible  <bruno@clisp.org>
41196
41197         New module mbspbrk.
41198         * modules/mbspbrk: New file.
41199         * lib/mbspbrk.c: New file.
41200         * lib/string_.h (strpbrk): Add a conditional link warning.
41201         (mbspbrk): New declaration.
41202         * m4/mbspbrk.m4: New file.
41203         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41204         GNULIB_MBSPBRK.
41205         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
41206         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
41207
41208 2007-02-04  Bruno Haible  <bruno@clisp.org>
41209
41210         New module mbscspn.
41211         * modules/mbscspn: New file.
41212         * lib/mbscspn.c: New file.
41213         * lib/string_.h (strcspn): Add a conditional link warning.
41214         (mbscspn): New declaration.
41215         * m4/mbscspn.m4: New file.
41216         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41217         GNULIB_MBSCSPN.
41218         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
41219         * MODULES.html.sh (Internationalization functions): Add mbscspn.
41220
41221 2007-02-04  Bruno Haible  <bruno@clisp.org>
41222
41223         New module mbscasestr, reduced goal of strcasestr.
41224         * modules/mbscasestr: New file.
41225         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
41226         (mbscasestr): Renamed from strcasestr.
41227         * lib/strcasestr.c: Don't include mbuiter.h.
41228         (strcasestr): Remove support for multibyte locales.
41229         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
41230         Change the conditional link warning.
41231         (mbscasestr): New declaration.
41232         * m4/mbscasestr.m4: New file.
41233         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
41234         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
41235         REPLACE_STRCASESTR.
41236         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
41237         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41238         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
41239         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
41240         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
41241         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
41242         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
41243         (Depends-on): Remove mbuiter.
41244         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
41245
41246 2007-02-04  Bruno Haible  <bruno@clisp.org>
41247
41248         Simplify handling of strncasecmp.
41249         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
41250         the conditional link warning.
41251         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41252         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
41253         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
41254         * modules/strcase (configure.ac): Don't invoke
41255         gl_STRING_MODULE_INDICATOR.
41256         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
41257
41258 2007-02-04  Bruno Haible  <bruno@clisp.org>
41259
41260         New module mbscasecmp, reduced goal of strcasecmp.
41261         * modules/mbscasecmp: New file.
41262         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
41263         (mbscasecmp): Renamed from strcasecmp.
41264         * lib/strcasecmp.c: Don't include mbuiter.h.
41265         (strcasecmp): Remove support for multibyte locales.
41266         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
41267         Change the conditional link warning.
41268         (mbscasecmp): New declaration.
41269         * m4/mbscasecmp.m4: New file.
41270         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
41271         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
41272         REPLACE_STRCASECMP.
41273         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
41274         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41275         GNULIB_MBSCASECMP.
41276         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
41277         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
41278         * modules/strcase (Files): Remove m4/mbrtowc.m4.
41279         (Depends-on): Remove mbuiter.
41280         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
41281
41282 2007-02-04  Bruno Haible  <bruno@clisp.org>
41283
41284         New module mbsstr. Remove module strstr.
41285         * modules/mbsstr: New file.
41286         * modules/strstr: Remove file.
41287         * lib/mbsstr.c: Renamed from lib/strstr.c.
41288         (mbsstr): Renamed from strstr.
41289         * lib/string_.h (strstr): Remove declaration. Change the conditional
41290         link warning.
41291         (mbsstr): New declaration.
41292         * m4/mbsstr.m4: New file.
41293         * m4/strstr.m4: Remove file.
41294         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
41295         REPLACE_STRSTR.
41296         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
41297         Don't initialize GNULIB_STRSTR.
41298         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
41299         substitute GNULIB_STRSTR and REPLACE_STRSTR.
41300         * MODULES.html.sh (Internationalization functions): Add mbsstr.
41301         (Support for systems lacking ANSI C 89): Remove strstr.
41302
41303 2007-02-04  Bruno Haible  <bruno@clisp.org>
41304
41305         New module mbsrchr.
41306         * modules/mbsrchr: New file.
41307         * lib/mbsrchr.c: New file.
41308         * lib/string_.h (strrchr): Add a conditional link warning.
41309         (mbsrchr): New declaration.
41310         * m4/mbsrchr.m4: New file.
41311         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41312         GNULIB_MBSRCHR.
41313         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
41314         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
41315
41316 2007-02-04  Bruno Haible  <bruno@clisp.org>
41317
41318         New module mbschr.
41319         * modules/mbschr: New file.
41320         * lib/mbschr.c: New file.
41321         * lib/string_.h (strchr): Add a conditional link warning.
41322         (mbschr): New declaration.
41323         * m4/mbschr.m4: New file.
41324         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41325         GNULIB_MBSCHR.
41326         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
41327         * MODULES.html.sh (Internationalization functions): Add mbschr.
41328
41329 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
41330
41331         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
41332
41333         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
41334
41335 2007-02-04  Bruno Haible  <bruno@clisp.org>
41336
41337         New module description section 'configure.ac-early'.
41338         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
41339         (func_get_autoconf_early_snippet): New function.
41340         (func_import, func_create_testdir): Use it. Remove special cases for
41341         modules 'extensions' and 'lock'.
41342         * modules/extensions (configure.ac-early): Require
41343         gl_USE_SYSTEM_EXTENSIONS.
41344         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
41345
41346 2007-02-04  Bruno Haible  <bruno@clisp.org>
41347
41348         Make use of gcj-4.3's -fsource and -ftarget option.
41349         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
41350         and if so try the options -fsource and -ftarget.
41351         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
41352         source_version, ftarget_option, target_version arguments.
41353         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
41354         (is_envjavac_oldgcj_14_14_usable): Renamed from
41355         is_envjavac_gcj_14_14_usable.
41356         (is_envjavac_oldgcj_14_13_usable): Renamed from
41357         is_envjavac_gcj_14_13_usable.
41358         (is_gcj_present): Update.
41359         (is_gcj_43, is_gcj43_usable): New functions.
41360         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
41361         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
41362         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
41363         try the options -fsource and -ftarget.
41364
41365 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
41366
41367         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
41368         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
41369         larger value.
41370
41371 2007-02-03  Jim Meyering  <jim@meyering.net>
41372
41373         Give tools a better chance to allocate space for very large buffers.
41374         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
41375
41376         Make pwd and readlink work also when run with an unreadable parent dir
41377         on systems with openat support.
41378         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
41379         provided getcwd function, even when we have openat support.
41380         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
41381
41382 2007-02-02  Bruno Haible  <bruno@clisp.org>
41383
41384         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
41385         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
41386         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
41387         portability problems if one of these functions is only used on specific
41388         platforms.
41389         Reported by Paul Eggert.
41390
41391 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
41392
41393         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
41394         is causing more trouble than it's curing.
41395         * lib/regex_internal.h (__mempcpy): Remove.
41396         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
41397         (and make the code a tad smaller to boot).
41398         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
41399
41400 2007-02-02  Jim Meyering  <jim@meyering.net>
41401
41402         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
41403         section, not in the Makefile.am: one.
41404
41405 2007-02-02  Eric Blake  <ebb9@byu.net>
41406
41407         * lib/strchrnul.c: Always include config.h first.
41408
41409         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
41410         gnulib strstr is not necessary here.
41411
41412 2007-02-02  Simon Josefsson  <simon@josefsson.org>
41413
41414         * m4/socklen.m4: Fix typo.
41415
41416 2007-02-02  Eric Blake  <ebb9@byu.net>
41417
41418         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
41419         * modules/netinet_in (Makefile.am): Likewise.
41420
41421 2007-02-01  Bruno Haible  <bruno@clisp.org>
41422
41423         * lib/string_.h (GL_LINK_WARNING): New macro.
41424         (strcasecmp, strstr, strcasestr): If provided by the system,
41425         conditionally define as a macro that leads to a warning instead of to
41426         an error.
41427         (strncasecmp): Conditionally define as a macro that leads to a warning.
41428
41429 2007-02-01  Karl Berry  <karl@gnu.org>
41430
41431         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
41432
41433 2007-02-01  Bruno Haible  <bruno@clisp.org>
41434
41435         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
41436         renamings.
41437
41438 2007-02-01  Eric Blake  <ebb9@byu.net>
41439
41440         * modules/regex (Depends-on): Revert dependence on mempcpy.
41441         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
41442         module's definition of mempcpy.
41443         Reported by Paul Eggert.
41444
41445 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
41446
41447         * lib/string_.h: If the gnulib module XYZ is not present, undefine
41448         the symbol XYZ before redefining it.  This fixes a problem with
41449         programs that don't use XYZ, when compiled on systems that define
41450         XYZ to something else.
41451
41452 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
41453
41454         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
41455         occurs when "mkdir -m foo" creates a setgid directory that is (1)
41456         writeable to group or other and (2) is intended to have a special
41457         mode bit that is set or cleared.  In such a case, the directory
41458         should be neither group- nor other-writeable until the special
41459         mode bits are right.
41460
41461 2007-01-31  Eric Blake  <ebb9@byu.net>
41462
41463         * modules/mountlist (Depends-on): Add strstr.
41464
41465         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
41466         bug.
41467         * modules/string (Makefile.am): Remove redundant replacement.
41468         * modules/regex (Depends-on): Add mempcpy.
41469
41470 2007-01-31  Bruno Haible  <bruno@clisp.org>
41471
41472         New module description field 'Link'.
41473         * gnulib-tool (func_usage): Document --extract-link-directive.
41474         (sed_extract_prog): Recognize 'Link' directive.
41475         (func_get_link_directive): New function.
41476         (func_import): Show summary of link directives.
41477         Handle --extract-link-directive option.
41478         * modules/acl (Link): New section.
41479         * modules/clock-time (Link): New section.
41480         * modules/euidaccess (Link): New section.
41481         * modules/gettext (Link): New section.
41482         * modules/iconv (Link): New section.
41483         * modules/lock (Link): New section.
41484         * modules/nanosleep (Link): New section.
41485         * modules/readline (Link): New section.
41486
41487 2007-01-27  Bruno Haible  <bruno@clisp.org>
41488
41489         Enforce the use of gnulib modules for unportable <string.h> functions.
41490         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
41491         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
41492         (gl_HEADER_STRING_H_BODY): Require it.
41493         * lib/string_.h: If the gnulib module XYZ is not present, redefine
41494         the symbol XYZ to one that gives a link error.
41495         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
41496         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
41497         * modules/mempcpy (configure.ac): Likewise.
41498         * modules/memrchr (configure.ac): Likewise.
41499         * modules/stpcpy (configure.ac): Likewise.
41500         * modules/stpncpy (configure.ac): Likewise.
41501         * modules/strcase (configure.ac): Likewise.
41502         * modules/strcasestr (configure.ac): Likewise.
41503         * modules/strchrnul (configure.ac): Likewise.
41504         * modules/strdup (configure.ac): Likewise.
41505         * modules/strndup (configure.ac): Likewise.
41506         * modules/strnlen (configure.ac): Likewise.
41507         * modules/strpbrk (configure.ac): Likewise.
41508         * modules/strsep (configure.ac): Likewise.
41509         * modules/strstr (configure.ac): Likewise.
41510         * modules/strtok_r (configure.ac): Likewise.
41511
41512 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
41513
41514         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
41515
41516 2007-01-30  Jim Meyering  <jim@meyering.net>
41517
41518         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
41519
41520 2007-01-29  Bruno Haible  <bruno@clisp.org>
41521
41522         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
41523         * lib/execute.c: Likewise.
41524         * lib/pipe.c: Likewise.
41525         * lib/printf-args.h: Likewise.
41526         * lib/printf-args.c: Likewise.
41527         * lib/printf-parse.c: Likewise.
41528         * lib/vasnprintf.c: Likewise.
41529
41530 2007-01-29  Eric Blake  <ebb9@byu.net>
41531
41532         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
41533         declaration.
41534
41535 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
41536
41537         * lib/strptime.h (strptime): Use 'restrict' for args where
41538         POSIX requires this.
41539         * lib/strptime.c (strptime): Likewise.
41540         Change license notice from LGPL to GPL, since gnulib-tool will
41541         change this as needed.
41542         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
41543         defined.
41544         Include "strptime.h" first, to check interface.
41545         Do not #undef _LIBC and _NL_CURRENT.
41546         Do not include <stdlib.h>; no longer needed.
41547         Include "time_r.h" and declare ptime_locale_status
41548         only if _LIBC is not defined.
41549         (__P): Remove unused macro.
41550         (match_string): Bring back glibc version, but use it only if _LIBC
41551         is defined.
41552         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
41553         Remove unnecessary assertion and abort() call.
41554         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
41555         * m4/strptime.m4: Fix serial number comment.
41556         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
41557         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
41558         (Depends-on): Add time_r.
41559
41560 2007-01-29  Bruno Haible  <bruno@clisp.org>
41561
41562         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41563         strptime.
41564         * modules/strptime (Depends-on): Add stdbool.
41565         * lib/strptime.h: Include <time.h> always. Add comments.
41566
41567 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41568
41569         * modules/strptime: New file.
41570         * lib/strptime.h: New file.
41571         * lib/strptime.c: New file.
41572         * m4/strptime.m4: New file.
41573
41574 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
41575
41576         * MODULES.html.sh: New module mpsort.
41577         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
41578
41579         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
41580         a circularity problem with HP-UX ia64 reported by Bob Proulx in
41581         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
41582         All uses changed.
41583         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
41584         All uses changed.
41585         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
41586         to _Restrict_.
41587         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
41588         the parameter matches the prototype.
41589
41590 2007-01-28  Jim Meyering  <jim@meyering.net>
41591
41592         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
41593         sys/time.h here, reverting that part of the previous patch:
41594         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
41595
41596 2007-01-28  Bruno Haible  <bruno@clisp.org>
41597
41598         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
41599         value of $(SYS_TIME_H).
41600         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
41601         remove it conditionally, too. [added by Jim Meyering]
41602         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
41603         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
41604         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
41605         GETTIMEOFDAY_REPLACEMENT to 1.
41606
41607 2007-01-28  Bruno Haible  <bruno@clisp.org>
41608
41609         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
41610         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
41611         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
41612         Set UNISTD_H instead of UNISTD_H2.
41613         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
41614
41615 2007-01-28  Bruno Haible  <bruno@clisp.org>
41616
41617         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
41618         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
41619
41620 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41621
41622         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
41623         (func_create_testdir): Ensure C locale for `grep' and `tr'
41624         character ranges.
41625         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
41626         ACLOCAL_AMFLAGS parsing state machine.
41627
41628 2007-01-27  Bruno Haible  <bruno@clisp.org>
41629
41630         * modules/unistr/base: Update.
41631
41632 2007-01-27  Bruno Haible  <bruno@clisp.org>
41633
41634         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
41635         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
41636         * modules/unistr/u32-mbtouc-unsafe: Renamed from
41637         modules/unistr/u32-mbtouc.
41638         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
41639         * lib/unistr.h: Update.
41640         * lib/linebreak.c: Update.
41641         * modules/unistr/u32-mbtouc: Renamed from
41642         modules/unistr/u32-mbtouc-safe.
41643         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
41644         * lib/unistr.h: Update.
41645         * lib/unistr/u32-to-u8.c: Update.
41646         * lib/unistr/u32-to-u16.c: Update.
41647
41648 2007-01-27  Bruno Haible  <bruno@clisp.org>
41649
41650         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
41651         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
41652         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
41653         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
41654         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
41655         * modules/unistr/u16-mbtouc-unsafe: Renamed from
41656         modules/unistr/u16-mbtouc.
41657         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
41658         * lib/unistr.h: Update.
41659         * lib/linebreak.c: Update.
41660         * modules/linebreak: Update.
41661         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
41662         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
41663         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
41664         * modules/unistr/u16-mbtouc: Renamed from
41665         modules/unistr/u16-mbtouc-safe.
41666         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
41667         * lib/unistr.h: Update.
41668         * lib/unistr/u16-to-u8.c: Update.
41669         * modules/unistr/u16-to-u8: Update.
41670         * lib/unistr/u16-to-u32.c: Update.
41671         * modules/unistr/u16-to-u32: Update.
41672
41673 2007-01-27  Bruno Haible  <bruno@clisp.org>
41674
41675         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
41676         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
41677         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
41678         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
41679         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
41680         * modules/unistr/u8-mbtouc-unsafe: Renamed from
41681         modules/unistr/u8-mbtouc.
41682         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
41683         * lib/unistr.h: Update.
41684         * lib/striconveh.c: Update.
41685         * modules/striconveh: Update.
41686         * lib/linebreak.c: Update.
41687         * modules/linebreak: Update.
41688         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
41689         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
41690         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
41691         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
41692         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
41693         * lib/unistr.h: Update.
41694         * lib/striconveh.c: Update.
41695         * modules/striconveh: Update.
41696         * lib/unistr/u8-to-u16.c: Update.
41697         * modules/unistr/u8-to-u16: Update.
41698         * lib/unistr/u8-to-u32.c: Update.
41699         * modules/unistr/u8-to-u32: Update.
41700
41701 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41702
41703         Sync from Libtool.
41704         * lib/argz.c: Do not include strings.h nor memory.h, include
41705         string.h unconditionally.  Patch by Simon Josefsson.
41706
41707 2007-01-27  Bruno Haible  <bruno@clisp.org>
41708
41709         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
41710         from gl_HEADER_STRING_H_BODY.
41711         (gl_HEADER_STRING_H_BODY): Require it.
41712         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
41713         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
41714         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
41715         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
41716         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41717         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
41718         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41719         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
41720         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
41721         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41722         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
41723         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
41724         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
41725         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41726         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
41727
41728 2007-01-27  Bruno Haible  <bruno@clisp.org>
41729
41730         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
41731         check_PROGRAMS into noinst_PROGRAMS.
41732         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
41733         check_PROGRAMS in this case.
41734         (func_import): Set for_test to false.
41735         (func_create_testdir): Set for_test to true.
41736
41737 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
41738             Bruno Haible  <bruno@clisp.org>
41739
41740         * modules/strcasestr (Files): Remove lib/strcasestr.h.
41741         (Depends-on): Add string.
41742         (Includes): Use <string.h> instead of strcasestr.h.
41743         * modules/string (Makefile.am): Also substitute the value of
41744         REPLACE_STRCASESTR.
41745         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
41746         assume strcasestr is declared in <string.h> not <strings.h>. Also
41747         set REPLACE_STRCASESTR.
41748         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
41749         REPLACE_STRCASESTR.
41750         * lib/strcasestr.h: Remove file.
41751         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
41752         * lib/string_.h (strcasestr): New declaration.
41753
41754 2007-01-27  Bruno Haible  <bruno@clisp.org>
41755
41756         * lib/string_.h: Use 'extern'.
41757
41758 2007-01-27  Jim Meyering  <jim@meyering.net>
41759
41760         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
41761         of set-but-not-used local, "q".
41762
41763         * lib/mempcpy.c: Include <config.h> before <string.h>.
41764         This fixes a compilation error on HP-UX, due to the system's
41765         "restrict"-using mempcpy prototype.
41766
41767 2007-01-26  Bruno Haible  <bruno@clisp.org>
41768
41769         Small optimization.
41770         * lib/javacomp.c: Include c-strstr.h.
41771          (is_envjavac_gcj): Use c_strstr instead of strstr.
41772         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
41773
41774 2007-01-26  Bruno Haible  <bruno@clisp.org>
41775
41776         * MODULES.html.sh (Unicode string functions): Add the new modules.
41777
41778         * modules/uniconv/u32-strconv-to-locale: New file.
41779         * lib/uniconv/u32-strconv-to-locale.c: New file.
41780
41781         * modules/uniconv/u16-strconv-to-locale: New file.
41782         * lib/uniconv/u16-strconv-to-locale.c: New file.
41783
41784         * modules/uniconv/u8-strconv-to-locale: New file.
41785         * lib/uniconv/u8-strconv-to-locale.c: New file.
41786
41787         * modules/uniconv/u32-strconv-from-locale: New file.
41788         * lib/uniconv/u32-strconv-from-locale.c: New file.
41789
41790         * modules/uniconv/u16-strconv-from-locale: New file.
41791         * lib/uniconv/u16-strconv-from-locale.c: New file.
41792
41793         * modules/uniconv/u8-strconv-from-locale: New file.
41794         * lib/uniconv/u8-strconv-from-locale.c: New file.
41795
41796         * modules/uniconv/u32-strconv-to-enc: New file.
41797         * lib/uniconv/u32-strconv-to-enc.c: New file.
41798         * modules/uniconv/u32-strconv-to-enc-tests: New file.
41799         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
41800
41801         * modules/uniconv/u16-strconv-to-enc: New file.
41802         * lib/uniconv/u16-strconv-to-enc.c: New file.
41803         * lib/uniconv/u-strconv-to-enc.h: New file.
41804         * modules/uniconv/u16-strconv-to-enc-tests: New file.
41805         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
41806
41807         * modules/uniconv/u8-strconv-to-enc: New file.
41808         * lib/uniconv/u8-strconv-to-enc.c: New file.
41809         * modules/uniconv/u8-strconv-to-enc-tests: New file.
41810         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
41811
41812         * modules/uniconv/u32-strconv-from-enc: New file.
41813         * lib/uniconv/u32-strconv-from-enc.c: New file.
41814         * modules/uniconv/u32-strconv-from-enc-tests: New file.
41815         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
41816
41817         * modules/uniconv/u16-strconv-from-enc: New file.
41818         * lib/uniconv/u16-strconv-from-enc.c: New file.
41819         * modules/uniconv/u16-strconv-from-enc-tests: New file.
41820         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
41821
41822         * modules/uniconv/u8-strconv-from-enc: New file.
41823         * lib/uniconv/u8-strconv-from-enc.c: New file.
41824         * lib/uniconv/u-strconv-from-enc.h: New file.
41825         * modules/uniconv/u8-strconv-from-enc-tests: New file.
41826         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
41827
41828         * modules/uniconv/u32-conv-from-enc: New file.
41829         * lib/uniconv/u32-conv-from-enc.c: New file.
41830         * modules/uniconv/u32-conv-from-enc-tests: New file.
41831         * tests/uniconv/test-u32-conv-from-enc.c: New file.
41832
41833         * modules/uniconv/u16-conv-from-enc: New file.
41834         * lib/uniconv/u16-conv-from-enc.c: New file.
41835         * lib/uniconv/u-conv-from-enc.h: New file.
41836         * modules/uniconv/u16-conv-from-enc-tests: New file.
41837         * tests/uniconv/test-u16-conv-from-enc.c: New file.
41838
41839         * modules/uniconv/u8-conv-from-enc: New file.
41840         * lib/uniconv/u8-conv-from-enc.c: New file.
41841         * modules/uniconv/u8-conv-from-enc-tests: New file.
41842         * tests/uniconv/test-u8-conv-from-enc.c: New file.
41843
41844         * modules/uniconv/base: New file.
41845         * lib/uniconv.h: New file.
41846
41847 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
41848
41849         * doc/gnulib-tool.texi (Initial import): Update to match current
41850         behavior with strdup module.
41851         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
41852         * lib/memmem.h: Remove; all uses removed.  This is now done
41853         by <string.h>.
41854         * lib/mempcpy.h: Likewise.
41855         * lib/memrchr.h: Likewise.
41856         * lib/stpcpy.h: Likewise.
41857         * lib/stpncpy.h: Likewise.
41858         * lib/strcase.h: Likewise.
41859         * lib/strchrnul.h: Likewise.
41860         * lib/strdup.h: Likewise.
41861         * lib/strndup.h: Likewise.
41862         * lib/strnlen.h: Likewise.
41863         * lib/strpbrk.h: Likewise.
41864         * lib/strsep.h: Likewise.
41865         * lib/strstr.h: Likewise.
41866         * lib/strtok_r.h: Likewise.
41867         * lib/string_.h: New file.
41868         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
41869         Rely on <string.h> instead.
41870         * lib/canon-host.c: Likewise.
41871         * lib/chdir-long.c: Likewise.
41872         * lib/concatpath.c: Likewise.
41873         * lib/exclude.c: Likewise.
41874         * lib/fchdir.c: Likewise.
41875         * lib/getaddrinfo.c: Likewise.
41876         * lib/getcwd.c: Likewise.
41877         * lib/getsubopt.c: Likewise.
41878         * lib/glob.c: Likewise.
41879         * lib/hard-locale.c: Likewise.
41880         * lib/iconvme.c: Likewise.
41881         * lib/javacomp.c: Likewise.
41882         * lib/mempcpy.c: Likewise.
41883         * lib/memrchr.c: Likewise.
41884         * lib/regex_internal.h: Likewise.
41885         * lib/stpncpy.c: Likewise.
41886         * lib/strcasecmp.c: Likewise.
41887         * lib/strchrnul.c: Likewise.
41888         * lib/strdup.c: Likewise.
41889         * lib/striconv.c: Likewise.
41890         * lib/striconveh.c: Likewise.
41891         * lib/striconveha.c: Likewise.
41892         * lib/strncasecmp.c: Likewise.
41893         * lib/strndup.c: Likewise.
41894         * lib/strnlen.c: Likewise.
41895         * lib/strsep.c: Likewise.
41896         * lib/strstr.c: Likewise.
41897         * lib/strtok_r.c: Likewise.
41898         * lib/userspec.c: Likewise.
41899         * lib/w32spawn.h: Likewise.
41900         * lib/xstrndup.c: Likewise.
41901         * lib/mountlist.c (strstr): Remove decl.
41902         * m4/string_h.m4: New file.
41903         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
41904         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
41905         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
41906         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
41907         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
41908         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
41909         Set REPLACE_STRCASECMP if necessary.
41910         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
41911         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
41912         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
41913         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
41914         HAVE_DECL_STRDUP if necessary.
41915         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
41916         since gl_FUNC_STRNDUP does that now.
41917         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
41918         Check for decl here...
41919         (gl_PREREQ_STRNLEN): ... not here.
41920         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
41921         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
41922         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
41923         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
41924         necessary.
41925         * modules/string: New file.
41926         * modules/memmem (Files): Remove special-purpose include file.
41927         (Depends-on): Add string.
41928         (Include): Include <string.h>, not the removed file.
41929         * modules/mempcpy: Likewise.
41930         * modules/memrchr: Likewise.
41931         * modules/stpcpy: Likewise.
41932         * modules/stpncpy: Likewise.
41933         * modules/strcase: Likewise.
41934         * modules/strchrnul: Likewise.
41935         * modules/strdup: Likewise.
41936         * modules/strndup: Likewise.
41937         * modules/strnlen: Likewise.
41938         * modules/strpbrk: Likewise.
41939         * modules/strsep: Likewise.
41940         * modules/strstr: Likewise.
41941         * modules/strtok_r: Likewise.
41942         * tests/test-dirname.c: Don't include "strdup.h", since
41943         <string.h> now suffices.
41944         * tests/test-memmem.c: Don't include "memmem.h", since
41945         <string.h> now suffices.
41946
41947 2007-01-25  Bruno Haible  <bruno@clisp.org>
41948
41949         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
41950         *resultp is 0.
41951
41952         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
41953         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
41954         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
41955         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
41956
41957         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
41958         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
41959         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
41960         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
41961         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
41962         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
41963
41964 2007-01-24  Bruno Haible  <bruno@clisp.org>
41965
41966         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
41967         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
41968         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
41969         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
41970         gl_FUNC_FTS_CORE.
41971         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
41972         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
41973         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41974         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
41975         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
41976         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
41977         gl_FUNC_FCHOWNAT.
41978         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
41979         gl_FUNC_STRFTIME.
41980         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
41981         Reported by Ralf Wildenhues.
41982
41983 2007-01-24  Bruno Haible  <bruno@clisp.org>
41984
41985         Drop AC_REQUIRE calls that are redundant with the module dependencies.
41986         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
41987         gl_GETADDRINFO.
41988         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
41989         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
41990         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
41991
41992 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
41993
41994         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
41995         Don't use 'exit'; just return from 'main'.
41996         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
41997
41998         * lib/fnmatch_.h: Readjust white space and comments to match
41999         glibc, to avoid spurious diffs.
42000
42001 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42002
42003         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
42004         2004-12-01 change by Jakub Jelinek, since this code won't compile
42005         if !LIBC.  Problem reported by Bob Proulx.
42006
42007 2007-01-23  Bruno Haible  <bruno@clisp.org>
42008
42009         * lib/striconveh.c: Include c-strcaseeq.h.
42010         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
42011         * modules/striconveh (Depends-on): Add c-strcaseeq.
42012
42013 2007-01-23  Bruno Haible  <bruno@clisp.org>
42014
42015         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
42016
42017         * modules/c-strcaseeq: New file.
42018         * lib/c-strcaseeq.h: New file.
42019
42020         * modules/streq: New file.
42021         * lib/streq.h: New file.
42022
42023 2007-01-23  Bruno Haible  <bruno@clisp.org>
42024
42025         * modules/striconveha-tests: New file.
42026         * tests/test-striconveha.c: New file.
42027
42028         * lib/striconveha.h: Include <stdbool.h>.
42029         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
42030         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
42031         (mem_iconveha_notranslit): Renamed from mem_iconveha.
42032         (mem_iconveha): New function.
42033         (str_iconveha_notranslit): Renamed from str_iconveha.
42034         (str_iconveha): New function.
42035         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
42036         c-strcase.
42037
42038 2007-01-23  Bruno Haible  <bruno@clisp.org>
42039
42040         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
42041         encodings without forgiving before trying any encoding with handler.
42042         (str_iconveha): Try all encodings without forgiving before trying any
42043         encoding with handler.
42044
42045 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42046
42047         Import the following changes from libc.
42048
42049         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
42050
42051         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
42052
42053         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
42054
42055         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
42056         normal_bracket label.
42057
42058         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
42059
42060         [BZ #361]
42061         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
42062         to normal_bracket after fetching the next character.
42063
42064 2007-01-22  Bruno Haible  <bruno@clisp.org>
42065
42066         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
42067         argument.
42068         * lib/striconveh.c (iconv_carefully_1): New function.
42069         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
42070         argument.
42071         (str_cd_iconveh): Update.
42072         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
42073         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
42074         * tests/test-striconveh.c (MAGIC): New macro.
42075         (new_offsets): New function.
42076         (main): Test call with and without offsets.
42077
42078 2007-01-22  Bruno Haible  <bruno@clisp.org>
42079
42080         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
42081         * modules/sys_select (Makefile.am): Likewise.
42082         * modules/sys_socket (Makefile.am): Likewise.
42083         * modules/sys_time (Makefile.am): Likewise.
42084
42085 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
42086
42087         * modules/gettimeofday (License): Change from GPL to LGPL, since
42088         gettimeofday is a library function.
42089
42090 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42091
42092         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
42093
42094 2007-01-21  Bruno Haible  <bruno@clisp.org>
42095
42096         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
42097
42098 2007-01-21  Bruno Haible  <bruno@clisp.org>
42099
42100         * modules/striconveha: New file.
42101         * lib/striconveha.h: New file.
42102         * lib/striconveha.c: New file.
42103         * MODULES.html.sh (Internationalization functions): Add striconveha.
42104         * lib/striconv.c (str_iconv): Optimize the case of an empty input
42105         string.
42106         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
42107
42108 2007-01-21  Bruno Haible  <bruno@clisp.org>
42109
42110         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
42111         * lib/striconveh.c (str_iconveh): Likewise.
42112
42113 2007-01-21  Bruno Haible  <bruno@clisp.org>
42114
42115         * lib/striconveh.h (mem_iconveh): New declaration.
42116         * lib/striconveh.c (mem_iconveh): New function.
42117         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
42118
42119 2007-01-21  Bruno Haible  <bruno@clisp.org>
42120
42121         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
42122
42123         * lib/striconveh.h (mem_cd_iconveh): Change specification.
42124         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
42125         original result buffer.
42126         (str_cd_iconveh): Update.
42127         * tests/test-striconveh.c (main): Update.
42128
42129         * lib/striconv.h (mem_cd_iconv): Change specification.
42130         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
42131         result buffer.
42132         (str_cd_iconv): Update.
42133         * tests/test-striconv.c (main): Update.
42134
42135 2007-01-21  Bruno Haible  <bruno@clisp.org>
42136
42137         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
42138
42139 2007-01-20  Jim Meyering  <jim@meyering.net>
42140
42141         * lib/userspec.c (parse_with_separator): If a user or group string
42142         starts with "+", skip the corresponding name-to-ID look-up, since
42143         such a look-up must fail: user and group names may not include "+".
42144
42145 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
42146
42147         * lib/poll.c: Include sys/time.h and time.h unconditionally,
42148         since we now assume the sys_time module.
42149         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
42150         check for sys/time.h; no longer needed.
42151         * modules/poll (Depends-on): Depend on sys_time.
42152
42153 2007-01-18  Bruno Haible  <bruno@clisp.org>
42154
42155         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
42156         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
42157
42158         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
42159         gettimeofday.
42160
42161         * tests/test-gettimeofday.c: Include <time.h>.
42162         (dummy): Remove variable.
42163
42164         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
42165         gl_HEADER_SYS_TIME_H.
42166         (gl_HEADER_SYS_TIME_H): New macro.
42167
42168         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
42169         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42170         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
42171         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
42172         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42173         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
42174         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
42175         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42176         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
42177         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
42178         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42179
42180         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
42181         last change; it caused a compilation error when cross-compiling to
42182         Cygwin.
42183
42184 2007-01-18  Jim Meyering  <jim@meyering.net>
42185
42186         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
42187         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
42188         than the race-prone "test -d sys || mkdir sys".
42189         (configure.ac): Use AC_PROG_MKDIR_P.
42190         * modules/sys_select: Likewise.
42191         * modules/sys_socket: Likewise.
42192         * modules/sys_time: Likewise.
42193
42194 2007-01-18  Eric Blake  <ebb9@byu.net>
42195
42196         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
42197         replace gettimeofday.
42198         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
42199         name, to avoid infinite recursion.
42200
42201 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
42202
42203         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
42204         module sys_time.
42205         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
42206         assume timespec.h defines struct timeval.
42207         * lib/settime.c: Likewise.
42208         * lib/utimens.c: Likewise.
42209         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
42210         since we now assume the gettimeofday module.
42211         * lib/tempname.c (__gen_tempname): Likewise.
42212         * lib/gettimeofday.h: Remove.
42213         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
42214         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
42215         Include <time.h>, for 'time()'.
42216         (localtime_buffer_addr): Also use this workaround if
42217         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
42218         to simplify the uses.  All uses changed.
42219         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
42220         that #undef is inside {}, and 'const' follows type name consistently.
42221         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
42222         (gettimeofday): Do not use the maximum possible value for
42223         tv->tv_usec, since that might break usages other than ls.c.
42224         Instead, we'll leave ls.c alone.  This undoes today's patch
42225         by Bruno.  Add a compile-time warning for 1s-clock resolution;
42226         we've never observed the problem but might as well keep the
42227         canary.
42228         * lib/nanosleep.c: Include timespec.h first, for interface check.
42229         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
42230         now assume the sys_time module.
42231         * lib/tempname.c: Likewise.
42232         * lib/timespec.h: Likewise.
42233         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
42234         needed.
42235         * lib/strftime.c: Likewise.
42236         * lib/timespec.h: Likewise.
42237         * lib/posixtm.c: Include posixtm.h first, for interface check.
42238         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
42239         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
42240         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
42241         * lib/sys_time_.h: New file.
42242         * lib/timespec.h (struct timespec): Use long int, not long.
42243         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
42244         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
42245         Remove obsolescent call to AC_HEADER_TIME.
42246         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
42247         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42248         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
42249         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
42250         Likewise.
42251         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
42252         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
42253         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
42254         into the sys_time module.  Check for gettimeofday just once.
42255         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
42256         for gettimeofday signature to just check the signature.  Merely
42257         compile it, since linking doesn't test signature.  Improve test for
42258         whether gettimeofday.o is actually needed.
42259         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
42260         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
42261         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
42262         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42263         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
42264         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
42265         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
42266         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
42267         than worrying about sys/time.h.
42268         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42269         Don't bother worrying about TIME_WITH_SYS_TIME.
42270         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
42271         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
42272         * m4/sys_time_h.m4: New file.
42273         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
42274         Don't include sys/time.h.  Return from main rather than exiting.
42275         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
42276         all uses changed.
42277         * modules/gethrxtime (Depends-on): Add sys_time.
42278         * modules/gettime (Depends-on): Likewise.
42279         * modules/gettimeofday (Depends-on): Likewise.
42280         * modules/nanosleep (Depends-on): Likewise.
42281         * modules/settime (Depends-on): Likewise.
42282         * modules/tempname (Depends-on): Likewise.
42283         * modules/utimens (Depends-on): Likewise.
42284         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
42285         (Include:) Change back to <sys/time.h>.
42286         (Maintainer:) Add self.
42287         * modules/sys_time: New file.
42288         * modules/tempname (Depends-on): Add gettimeofday.
42289         * tests/test-gettimeofday.c: Include <sys/time.h>
42290         rather than gettimeofday.h.
42291
42292 2007-01-17  Bruno Haible  <bruno@clisp.org>
42293
42294         * gnulib-tool (func_get_license): Revert last patch. Instead, let
42295         the license default to GPL.
42296         (func_create_testdir): Don't complain if a module is LGPL and its
42297         tests module depends on GPLed modules.
42298
42299 2007-01-17  Bruno Haible  <bruno@clisp.org>
42300
42301         * lib/gettimeofday.c (gettimeofday): Add code for the case
42302         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
42303         maximum possible value for tv->tv_usec, rather than the minimum one.
42304
42305 2005-10-08  Martin Lambers  <marlam@marlam.de>
42306 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42307 2007-01-16  Bruno Haible  <bruno@clisp.org>
42308
42309         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
42310         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
42311         gl_FUNC_GETTIMEOFDAY.
42312         (Include): Add gettimeofday.h.
42313         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
42314         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
42315         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
42316         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
42317         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
42318         * lib/gettimeofday.h: New file.
42319         * lib/gettimeofday.c: Include <sys/timeb.h>.
42320         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
42321         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42322         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
42323         fall back on time().
42324
42325         * tests/test-gettimeofday.c: New file.
42326         * modules/gettimeofday-tests: New file.
42327
42328 2007-01-16  Eric Blake  <ebb9@byu.net>
42329
42330         * modules/fnmatch (Depends-on): Depend on wchar.
42331         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
42332         * m4/fnmatch.m4: Likewise.
42333         * modules/mbchar (Makefile.am): Assume <wchar.h>.
42334         * m4/mbchar.m4: Likewise.
42335         * modules/mbswidth (Depends-on): Depend on wchar.
42336         * lib/mbswidth.c: Assume <wchar.h>.
42337         * m4/mbswidth.m4: Likewise.
42338         * modules/quotearg (Depends-on): Depend on wchar.
42339         * lib/quotearg.c: Assume <wchar.h>.
42340         * m4/quotearg.m4: Likewise.
42341         * modules/regex (Depends-on): Depend on wchar.
42342         * lib/regex_internal.h: Assume <wchar.h>.
42343         * m4/regex.m4: Likewise.
42344         * modules/stdint (Depends-on): Depend on wchar.
42345         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
42346         * m4/stdint.m4: Likewise.
42347         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
42348         * modules/strftime (Depends-on): Depend on wchar.
42349         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
42350         * modules/strtol (Depends-on): Depend on wchar.
42351         * lib/strtol.c: Assume <wchar.h>.
42352         * modules/wcwidth (Depends-on): Depend on wchar.
42353         * lib/wcwidth.h: Assume <wchar.h>.
42354         * m4/wcwidth.m4: Likewise.
42355
42356 2007-01-16  Bruno Haible  <bruno@clisp.org>
42357
42358         * modules/csharpexec-script: New, created from...
42359         * modules/csharpexec: ... this.
42360
42361 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
42362
42363         * modules/javaexec-script: New, created from...
42364         * modules/javaexec: ... this.
42365
42366 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42367
42368         * modules/poll (Dependencies): Add sys_select.
42369
42370 2007-01-15  Jim Meyering  <jim@meyering.net>
42371
42372         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
42373         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
42374         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
42375         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
42376
42377 2007-01-15  Bruno Haible  <bruno@clisp.org>
42378
42379         * modules/striconveh: New file.
42380         * lib/striconveh.h: New file.
42381         * lib/striconveh.c: New file.
42382         * MODULES.html.sh (Internationalization functions): Add striconveh.
42383
42384         * modules/striconveh-tests: New file.
42385         * tests/test-striconveh.c: New file.
42386
42387 2007-01-15  Bruno Haible  <bruno@clisp.org>
42388
42389         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
42390         not from GNU libiconv or GNU libc.
42391
42392 2007-01-15  Bruno Haible  <bruno@clisp.org>
42393
42394         * doc/gnulib-intro.texi (Copyright): Explain the different license
42395         terms for module descriptions, autoconf macros, tests, documentation.
42396
42397 2007-01-14  Bruno Haible  <bruno@clisp.org>
42398
42399         * modules/striconv-tests: New file.
42400         * tests/test-striconv.c: New file.
42401
42402 2007-01-14  Bruno Haible  <bruno@clisp.org>
42403
42404         * modules/iconv-tests: New file.
42405         * tests/test-iconv.c: New file.
42406
42407 2007-01-14  Bruno Haible  <bruno@clisp.org>
42408
42409         * gnulib-tool (func_get_license): For test modules, use the license of
42410         the main module.
42411
42412 2007-01-14  Bruno Haible  <bruno@clisp.org>
42413
42414         * modules/iconv (Include): Clarify that <iconv.h> can only be included
42415         if iconv is found to exist.
42416
42417 2007-01-14  Bruno Haible  <bruno@clisp.org>
42418
42419         * modules/c-ctype-tests: New file.
42420         * tests/test-c-ctype.c: New file.
42421
42422 2007-01-14  Bruno Haible  <bruno@clisp.org>
42423
42424         * modules/binary-io-tests: New file.
42425         * tests/test-binary-io.sh: New file.
42426         * tests/test-binary-io.c: New file.
42427
42428 2007-01-14  Bruno Haible  <bruno@clisp.org>
42429
42430         * modules/array-oset-tests: New file.
42431         * tests/test-array_oset.c: New file.
42432
42433 2007-01-14  Bruno Haible  <bruno@clisp.org>
42434
42435         * modules/array-list-tests: New file.
42436         * tests/test-array_list.c: New file.
42437
42438 2007-01-14  Bruno Haible  <bruno@clisp.org>
42439
42440         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
42441         and make.
42442         Reported by Simon Josefsson in
42443         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
42444
42445 2007-01-14  Bruno Haible  <bruno@clisp.org>
42446
42447         * modules/allocsa-tests: New file.
42448         * tests/test-allocsa.c: New file.
42449
42450 2007-01-14  Bruno Haible  <bruno@clisp.org>
42451
42452         * modules/fchdir (Depends-on): Add absolute-header.
42453         * modules/unistd (Depends-on): Likewise.
42454
42455 2006-12-30  Bruno Haible  <bruno@clisp.org>
42456
42457         * modules/fchdir: New file.
42458         * modules/unistd (Files): Add lib/unistd_.h.
42459         (Makefile.am): Generate unistd.h from unistd_.h.
42460         * lib/fchdir.c: New file.
42461         * lib/dirent_.h: New file.
42462         * lib/unistd_.h: New file.
42463         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
42464         * m4/fchdir.m4: New file.
42465         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
42466         (gl_HEADER_UNISTD): Invoke it.
42467         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
42468         function.
42469         * lib/backupfile.c (opendir, closedir): Undefine.
42470         * lib/chown.c (open, close): Undefine.
42471         * lib/clean-temp.c (open, close): Undefine.
42472         * lib/copy-file.c (open, close): Undefine.
42473         * lib/execute.c (open, close): Undefine.
42474         * lib/fsusage.c (open, close): Undefine.
42475         * lib/gc-gnulib.c (open, close): Undefine.
42476         * lib/getcwd.c (opendir, closedir): Undefine.
42477         * lib/glob.c (opendir, closedir): Undefine.
42478         * lib/javacomp.c (open, close): Undefine.
42479         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
42480         * lib/openat-proc.c (open, close): Undefine.
42481         * lib/pagealign_alloc.c (open, close): Undefine.
42482         * lib/pipe.c (open, close): Undefine.
42483         * lib/progreloc.c (open, close): Undefine.
42484         * lib/savedir.c (opendir, closedir): Undefine.
42485         * lib/utime.c (open, close): Undefine.
42486         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
42487
42488 2007-01-10  Bruno Haible  <bruno@clisp.org>
42489
42490         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
42491
42492 2007-01-12  Eric Blake  <ebb9@byu.net>
42493
42494         Provide a robust <wchar.h>.  Further simplifications are now
42495         possible in other modules, but not included here.
42496         * modules/wchar: New module.
42497         * m4/wchar.m4: New file.
42498         * lib/wchar_.h: Likewise.
42499         * modules/mbchar (Depends-on): Depend on wchar, as the first use
42500         of the new module.
42501         * MODULES.html.sh (Extended multibyte and wide character utilities):
42502         New section.
42503
42504 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
42505
42506         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
42507         to a reasonable default for memory allocation.
42508         (xreadlink): Don't allocate a huge buffer, to work around a buggy
42509         file system that reports garbage st_size values for symlinks.
42510         Problem reported by Liyang Hu.
42511
42512 2007-01-11  Simon Josefsson  <simon@josefsson.org>
42513
42514         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
42515         Emacs .#* auto-save files).
42516
42517 2007-01-11  Bruno Haible  <bruno@clisp.org>
42518
42519         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
42520         directory.
42521
42522 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
42523
42524         Use @...@ consistently in lib/wctype_.h.
42525         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
42526         on it being set to 1 or 0.
42527         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
42528         go back to AC_SUBSTing it.
42529         * modules/wctype (Makefile.am): Undo previous change.
42530
42531 2007-01-10  Eric Blake  <ebb9@byu.net>
42532
42533         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
42534         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
42535         * modules/wctype (Makefile.am): Likewise.
42536         Reported by Chris McGuire.
42537
42538 2007-01-10  Jim Meyering  <jim@meyering.net>
42539
42540         fts.c: a small readability/maintainability improvement
42541         * lib/fts.c (fts_read): Make this code slightly more readable and
42542         maintainable by hoisting the "sp->fts_cur = p" assignments to
42543         immediately follow the statements that set P.  Derived from
42544         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
42545
42546 2007-01-10  Eric Blake  <ebb9@byu.net>
42547
42548         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
42549         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
42550         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
42551         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42552         Reported by Chris McGuire.
42553
42554 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42555
42556         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
42557         in sed script.
42558
42559 2007-01-09  Bruno Haible  <bruno@clisp.org>
42560
42561         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
42562         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
42563         variables.
42564         (func_module): Use them.
42565
42566 2007-01-09  Bruno Haible  <bruno@clisp.org>
42567
42568         * modules/unistr/base: New file.
42569         * lib/unistr.h: New file.
42570
42571         * modules/unistr/u8-to-u16: New file.
42572         * lib/unistr/u8-to-u16.c: New file.
42573
42574         * modules/unistr/u8-to-u32: New file.
42575         * lib/unistr/u8-to-u32.c: New file.
42576
42577         * modules/unistr/u16-to-u8: New file.
42578         * lib/unistr/u16-to-u8.c: New file.
42579
42580         * modules/unistr/u16-to-u32: New file.
42581         * lib/unistr/u16-to-u32.c: New file.
42582
42583         * modules/unistr/u32-to-u8: New file.
42584         * lib/unistr/u32-to-u8.c: New file.
42585
42586         * modules/unistr/u32-to-u16: New file.
42587         * lib/unistr/u32-to-u16.c: New file.
42588
42589         * modules/unistr/u8-check: New file.
42590         * modules/unistr/u16-check: New file.
42591         * modules/unistr/u32-check: New file.
42592         * lib/unistr/u8-check.c: New file.
42593         * lib/unistr/u16-check.c: New file.
42594         * lib/unistr/u32-check.c: New file.
42595
42596         * modules/unistr/u8-chr: New file.
42597         * modules/unistr/u16-chr: New file.
42598         * modules/unistr/u32-chr: New file.
42599         * lib/unistr/u8-chr.c: New file.
42600         * lib/unistr/u16-chr.c: New file.
42601         * lib/unistr/u32-chr.c: New file.
42602
42603         * modules/unistr/u8-cmp: New file.
42604         * modules/unistr/u16-cmp: New file.
42605         * modules/unistr/u32-cmp: New file.
42606         * lib/unistr/u8-cmp.c: New file.
42607         * lib/unistr/u16-cmp.c: New file.
42608         * lib/unistr/u32-cmp.c: New file.
42609
42610         * modules/unistr/u8-cpy: New file.
42611         * modules/unistr/u16-cpy: New file.
42612         * modules/unistr/u32-cpy: New file.
42613         * lib/unistr/u8-cpy.c: New file.
42614         * lib/unistr/u16-cpy.c: New file.
42615         * lib/unistr/u32-cpy.c: New file.
42616         * lib/unistr/u-cpy.h: New file.
42617
42618         * modules/unistr/u8-cpy-alloc: New file.
42619         * modules/unistr/u16-cpy-alloc: New file.
42620         * modules/unistr/u32-cpy-alloc: New file.
42621         * lib/unistr/u8-cpy-alloc.c: New file.
42622         * lib/unistr/u16-cpy-alloc.c: New file.
42623         * lib/unistr/u32-cpy-alloc.c: New file.
42624         * lib/unistr/u-cpy-alloc.h: New file.
42625
42626         * modules/unistr/u8-endswith: New file.
42627         * modules/unistr/u16-endswith: New file.
42628         * modules/unistr/u32-endswith: New file.
42629         * lib/unistr/u8-endswith.c: New file.
42630         * lib/unistr/u16-endswith.c: New file.
42631         * lib/unistr/u32-endswith.c: New file.
42632         * lib/unistr/u-endswith.h: New file.
42633
42634         * modules/unistr/u8-mblen: New file.
42635         * modules/unistr/u16-mblen: New file.
42636         * modules/unistr/u32-mblen: New file.
42637         * lib/unistr/u8-mblen.c: New file.
42638         * lib/unistr/u16-mblen.c: New file.
42639         * lib/unistr/u32-mblen.c: New file.
42640
42641         * modules/unistr/u8-mbtouc: New file.
42642         * modules/unistr/u16-mbtouc: New file.
42643         * modules/unistr/u32-mbtouc: New file.
42644         * lib/unistr/u8-mbtouc.c: New file.
42645         * lib/unistr/u16-mbtouc.c: New file.
42646         * lib/unistr/u32-mbtouc.c: New file.
42647
42648         * modules/unistr/u8-mbtouc-safe: New file.
42649         * modules/unistr/u16-mbtouc-safe: New file.
42650         * modules/unistr/u32-mbtouc-safe: New file.
42651         * lib/unistr/u8-mbtouc-safe.c: New file.
42652         * lib/unistr/u16-mbtouc-safe.c: New file.
42653         * lib/unistr/u32-mbtouc-safe.c: New file.
42654
42655         * modules/unistr/u8-move: New file.
42656         * modules/unistr/u16-move: New file.
42657         * modules/unistr/u32-move: New file.
42658         * lib/unistr/u8-move.c: New file.
42659         * lib/unistr/u16-move.c: New file.
42660         * lib/unistr/u32-move.c: New file.
42661         * lib/unistr/u-move.h: New file.
42662
42663         * modules/unistr/u8-next: New file.
42664         * modules/unistr/u16-next: New file.
42665         * modules/unistr/u32-next: New file.
42666         * lib/unistr/u8-next.c: New file.
42667         * lib/unistr/u16-next.c: New file.
42668         * lib/unistr/u32-next.c: New file.
42669
42670         * modules/unistr/u8-prev: New file.
42671         * modules/unistr/u16-prev: New file.
42672         * modules/unistr/u32-prev: New file.
42673         * lib/unistr/u8-prev.c: New file.
42674         * lib/unistr/u16-prev.c: New file.
42675         * lib/unistr/u32-prev.c: New file.
42676
42677         * modules/unistr/u8-set: New file.
42678         * modules/unistr/u16-set: New file.
42679         * modules/unistr/u32-set: New file.
42680         * lib/unistr/u8-set.c: New file.
42681         * lib/unistr/u16-set.c: New file.
42682         * lib/unistr/u32-set.c: New file.
42683         * lib/unistr/u-set.h: New file.
42684
42685         * modules/unistr/u8-startswith: New file.
42686         * modules/unistr/u16-startswith: New file.
42687         * modules/unistr/u32-startswith: New file.
42688         * lib/unistr/u8-startswith.c: New file.
42689         * lib/unistr/u16-startswith.c: New file.
42690         * lib/unistr/u32-startswith.c: New file.
42691         * lib/unistr/u-startswith.h: New file.
42692
42693         * modules/unistr/u8-stpcpy: New file.
42694         * modules/unistr/u16-stpcpy: New file.
42695         * modules/unistr/u32-stpcpy: New file.
42696         * lib/unistr/u8-stpcpy.c: New file.
42697         * lib/unistr/u16-stpcpy.c: New file.
42698         * lib/unistr/u32-stpcpy.c: New file.
42699         * lib/unistr/u-stpcpy.h: New file.
42700
42701         * modules/unistr/u8-stpncpy: New file.
42702         * modules/unistr/u16-stpncpy: New file.
42703         * modules/unistr/u32-stpncpy: New file.
42704         * lib/unistr/u8-stpncpy.c: New file.
42705         * lib/unistr/u16-stpncpy.c: New file.
42706         * lib/unistr/u32-stpncpy.c: New file.
42707         * lib/unistr/u-stpncpy.h: New file.
42708
42709         * modules/unistr/u8-strcat: New file.
42710         * modules/unistr/u16-strcat: New file.
42711         * modules/unistr/u32-strcat: New file.
42712         * lib/unistr/u8-strcat.c: New file.
42713         * lib/unistr/u16-strcat.c: New file.
42714         * lib/unistr/u32-strcat.c: New file.
42715         * lib/unistr/u-strcat.h: New file.
42716
42717         * modules/unistr/u8-strchr: New file.
42718         * modules/unistr/u16-strchr: New file.
42719         * modules/unistr/u32-strchr: New file.
42720         * lib/unistr/u8-strchr.c: New file.
42721         * lib/unistr/u16-strchr.c: New file.
42722         * lib/unistr/u32-strchr.c: New file.
42723
42724         * modules/unistr/u8-strcmp: New file.
42725         * modules/unistr/u16-strcmp: New file.
42726         * modules/unistr/u32-strcmp: New file.
42727         * lib/unistr/u8-strcmp.c: New file.
42728         * lib/unistr/u16-strcmp.c: New file.
42729         * lib/unistr/u32-strcmp.c: New file.
42730
42731         * modules/unistr/u8-strcpy: New file.
42732         * modules/unistr/u16-strcpy: New file.
42733         * modules/unistr/u32-strcpy: New file.
42734         * lib/unistr/u8-strcpy.c: New file.
42735         * lib/unistr/u16-strcpy.c: New file.
42736         * lib/unistr/u32-strcpy.c: New file.
42737         * lib/unistr/u-strcpy.h: New file.
42738
42739         * modules/unistr/u8-strcspn: New file.
42740         * modules/unistr/u16-strcspn: New file.
42741         * modules/unistr/u32-strcspn: New file.
42742         * lib/unistr/u8-strcspn.c: New file.
42743         * lib/unistr/u16-strcspn.c: New file.
42744         * lib/unistr/u32-strcspn.c: New file.
42745         * lib/unistr/u-strcspn.h: New file.
42746
42747         * modules/unistr/u8-strdup: New file.
42748         * modules/unistr/u16-strdup: New file.
42749         * modules/unistr/u32-strdup: New file.
42750         * lib/unistr/u8-strdup.c: New file.
42751         * lib/unistr/u16-strdup.c: New file.
42752         * lib/unistr/u32-strdup.c: New file.
42753         * lib/unistr/u-strdup.h: New file.
42754
42755         * modules/unistr/u8-strlen: New file.
42756         * modules/unistr/u16-strlen: New file.
42757         * modules/unistr/u32-strlen: New file.
42758         * lib/unistr/u8-strlen.c: New file.
42759         * lib/unistr/u16-strlen.c: New file.
42760         * lib/unistr/u32-strlen.c: New file.
42761         * lib/unistr/u-strlen.h: New file.
42762
42763         * modules/unistr/u8-strmblen: New file.
42764         * modules/unistr/u16-strmblen: New file.
42765         * modules/unistr/u32-strmblen: New file.
42766         * lib/unistr/u8-strmblen.c: New file.
42767         * lib/unistr/u16-strmblen.c: New file.
42768         * lib/unistr/u32-strmblen.c: New file.
42769
42770         * modules/unistr/u8-strmbtouc: New file.
42771         * modules/unistr/u16-strmbtouc: New file.
42772         * modules/unistr/u32-strmbtouc: New file.
42773         * lib/unistr/u8-strmbtouc.c: New file.
42774         * lib/unistr/u16-strmbtouc.c: New file.
42775         * lib/unistr/u32-strmbtouc.c: New file.
42776
42777         * modules/unistr/u8-strncat: New file.
42778         * modules/unistr/u16-strncat: New file.
42779         * modules/unistr/u32-strncat: New file.
42780         * lib/unistr/u8-strncat.c: New file.
42781         * lib/unistr/u16-strncat.c: New file.
42782         * lib/unistr/u32-strncat.c: New file.
42783         * lib/unistr/u-strncat.h: New file.
42784
42785         * modules/unistr/u8-strncmp: New file.
42786         * modules/unistr/u16-strncmp: New file.
42787         * modules/unistr/u32-strncmp: New file.
42788         * lib/unistr/u8-strncmp.c: New file.
42789         * lib/unistr/u16-strncmp.c: New file.
42790         * lib/unistr/u32-strncmp.c: New file.
42791
42792         * modules/unistr/u8-strncpy: New file.
42793         * modules/unistr/u16-strncpy: New file.
42794         * modules/unistr/u32-strncpy: New file.
42795         * lib/unistr/u8-strncpy.c: New file.
42796         * lib/unistr/u16-strncpy.c: New file.
42797         * lib/unistr/u32-strncpy.c: New file.
42798         * lib/unistr/u-strncpy.h: New file.
42799
42800         * modules/unistr/u8-strnlen: New file.
42801         * modules/unistr/u16-strnlen: New file.
42802         * modules/unistr/u32-strnlen: New file.
42803         * lib/unistr/u8-strnlen.c: New file.
42804         * lib/unistr/u16-strnlen.c: New file.
42805         * lib/unistr/u32-strnlen.c: New file.
42806         * lib/unistr/u-strnlen.h: New file.
42807
42808         * modules/unistr/u8-strpbrk: New file.
42809         * modules/unistr/u16-strpbrk: New file.
42810         * modules/unistr/u32-strpbrk: New file.
42811         * lib/unistr/u8-strpbrk.c: New file.
42812         * lib/unistr/u16-strpbrk.c: New file.
42813         * lib/unistr/u32-strpbrk.c: New file.
42814         * lib/unistr/u-strpbrk.h: New file.
42815
42816         * modules/unistr/u8-strrchr: New file.
42817         * modules/unistr/u16-strrchr: New file.
42818         * modules/unistr/u32-strrchr: New file.
42819         * lib/unistr/u8-strrchr.c: New file.
42820         * lib/unistr/u16-strrchr.c: New file.
42821         * lib/unistr/u32-strrchr.c: New file.
42822
42823         * modules/unistr/u8-strspn: New file.
42824         * modules/unistr/u16-strspn: New file.
42825         * modules/unistr/u32-strspn: New file.
42826         * lib/unistr/u8-strspn.c: New file.
42827         * lib/unistr/u16-strspn.c: New file.
42828         * lib/unistr/u32-strspn.c: New file.
42829         * lib/unistr/u-strspn.h: New file.
42830
42831         * modules/unistr/u8-strstr: New file.
42832         * modules/unistr/u16-strstr: New file.
42833         * modules/unistr/u32-strstr: New file.
42834         * lib/unistr/u8-strstr.c: New file.
42835         * lib/unistr/u16-strstr.c: New file.
42836         * lib/unistr/u32-strstr.c: New file.
42837         * lib/unistr/u-strstr.h: New file.
42838
42839         * modules/unistr/u8-strtok: New file.
42840         * modules/unistr/u16-strtok: New file.
42841         * modules/unistr/u32-strtok: New file.
42842         * lib/unistr/u8-strtok.c: New file.
42843         * lib/unistr/u16-strtok.c: New file.
42844         * lib/unistr/u32-strtok.c: New file.
42845         * lib/unistr/u-strtok.h: New file.
42846
42847         * modules/unistr/u8-uctomb: New file.
42848         * modules/unistr/u16-uctomb: New file.
42849         * modules/unistr/u32-uctomb: New file.
42850         * lib/unistr/u8-uctomb.c: New file.
42851         * lib/unistr/u16-uctomb.c: New file.
42852         * lib/unistr/u32-uctomb.c: New file.
42853
42854         * MODULES.html.sh (Unicode string functions): Add the new modules.
42855
42856 2007-01-08  Bruno Haible  <bruno@clisp.org>
42857
42858         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
42859         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
42860         subdirectories.
42861
42862 2007-01-08  Karl Berry  <karl@gnu.org>
42863
42864         * doc/error.texi: mention that main() fns must set program_name
42865         when progname is used.
42866
42867 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
42868
42869         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
42870         WCTYPE_H is empty, for the benefit of builds from non-distclean
42871         directories.  Problem reported by Eric Blake in
42872         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
42873
42874 2007-01-08  Bruno Haible  <bruno@clisp.org>
42875
42876         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
42877         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
42878         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
42879         PROVIDE_CANONICALIZE_FILENAME_MODE.
42880         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
42881
42882 2007-01-08  Bruno Haible  <bruno@clisp.org>
42883
42884         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
42885         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
42886         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
42887         * lib/fts.c: Likewise.
42888         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
42889
42890 2006-12-25  Bruno Haible  <bruno@clisp.org>
42891
42892         * modules/utf8-ucs4-safe: New file.
42893         * lib/utf8-ucs4-safe.h: New file.
42894         * lib/unistr/utf8-ucs4-safe.c: New file.
42895
42896         * modules/utf16-ucs4-safe: New file.
42897         * lib/utf16-ucs4-safe.h: New file.
42898         * lib/unistr/utf16-ucs4-safe.c: New file.
42899
42900         * MODULES.html.sh (Unicode string functions): Add the new modules.
42901
42902 2007-01-08  Bruno Haible  <bruno@clisp.org>
42903
42904         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
42905         (Depends-on): Add unitypes.
42906         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
42907         (u8_mbtouc_aux): Move out to separate file.
42908         (u8_mbtouc): Use ucs4_t, uint8_t types.
42909         * lib/unistr/utf8-ucs4.c: New file.
42910
42911         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
42912         (Depends-on): Add unitypes.
42913         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
42914         (u16_mbtouc_aux): Move out to separate file.
42915         (u16_mbtouc): Use ucs4_t, uint16_t types.
42916         * lib/unistr/utf16-ucs4.c: New file.
42917
42918         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
42919         (Depends-on): Add unitypes.
42920         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
42921         (u8_uctomb_aux): Move out to separate file.
42922         (u8_uctomb): Use ucs4_t, uint8_t types.
42923         * lib/unistr/ucs4-utf8.c: New file.
42924
42925         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
42926         (Depends-on): Add unitypes.
42927         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
42928         (u16_uctomb_aux): Move out to separate file.
42929         (u16_uctomb): Use ucs4_t, uint16_t types.
42930         * lib/unistr/ucs4-utf16.c: New file.
42931
42932 2006-12-25  Bruno Haible  <bruno@clisp.org>
42933
42934         * modules/unitypes: New file.
42935         * lib/unitypes.h: New file.
42936         * MODULES.html.sh (func_all_modules): New section "Unicode string
42937         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
42938         this section. Add unitypes.
42939
42940 2007-01-08  Bruno Haible  <bruno@clisp.org>
42941
42942         Avoid variable names that conflict with those from libtool.
42943         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
42944         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
42945         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
42946         library_names_spec to acl_library_names_spec, hardcode_* to
42947         acl_hardcode_*.
42948         Reported by Ralf Wildenhues.
42949
42950 2007-01-08  Bruno Haible  <bruno@clisp.org>
42951
42952         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
42953         definition.
42954         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
42955         definition.
42956         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
42957         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
42958         definition.
42959         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
42960         definition.
42961         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
42962         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
42963         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
42964         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
42965         definition.
42966         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
42967         definition.
42968         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
42969         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
42970         GC_USE_<algorithm>.
42971         * lib/gc-libgcrypt.c: Likewise.
42972         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
42973         * modules/gc-arctwo (configure.ac): Likewise.
42974         * modules/gc-des (configure.ac): Likewise.
42975         * modules/gc-hmac-md5 (configure.ac): Likewise.
42976         * modules/gc-hmac-sha1 (configure.ac): Likewise.
42977         * modules/gc-md2 (configure.ac): Likewise.
42978         * modules/gc-md4 (configure.ac): Likewise.
42979         * modules/gc-md5 (configure.ac): Likewise.
42980         * modules/gc-random (configure.ac): Likewise.
42981         * modules/gc-rijndael (configure.ac): Likewise.
42982         * modules/gc-sha1 (configure.ac): Likewise.
42983
42984 2007-01-08  Bruno Haible  <bruno@clisp.org>
42985
42986         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
42987         macro definition.
42988         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
42989         definition.
42990         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
42991         definition.
42992         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
42993         * modules/fcntl-safer (configure.ac): Likewise.
42994         * modules/fopen-safer (configure.ac): Likewise.
42995         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
42996         GNULIB_FWRITEERROR macro definition.
42997
42998 2007-01-08  Bruno Haible  <bruno@clisp.org>
42999
43000         * m4/gnulib-common.m4: New file.
43001         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
43002         (func_get_filelist): Add m4/gnulib-common.m4.
43003
43004 2007-01-08  Bruno Haible  <bruno@clisp.org>
43005
43006         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
43007         command.
43008
43009 2007-01-08  Jim Meyering  <jim@meyering.net>
43010
43011         Use a more robust test for a "can't happen" condition.
43012         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
43013         narrowed the st_size value.  Presuming the "can't happen" condition
43014         is true, that narrowing could conceivably convert an invalid st_size
43015         value into a valid one.  Instead, use a change based on Matthew
43016         Woehlke's original patch.
43017
43018         Slight readability improvement: use an assert-like macro
43019         in place of literal "abort ()" uses.
43020         * lib/fts.c (fts_assert): Define.
43021         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
43022         Use this macro instead of a bare 'abort'.
43023
43024 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
43025
43026         Don't worry about using IRIX 5.3's wctype.h broken definitions;
43027         simply work around them.
43028         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
43029         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
43030         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
43031         declaring.
43032         Don't bother to define as macros, since the standard doesn't require it.
43033         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
43034         longer worry about IRIX 5.3.
43035         (HAVE_WCTYPE_CTMP_BUG): Remove.
43036
43037 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
43038
43039         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
43040         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
43041         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43042         Problems reported by Georg Schwarz for IRIX 5.3.
43043
43044         * gnulib-tool (autoconf_minversion): Take the maximum version number
43045         found, not the minimum.  Problem reported by James Youngman.
43046
43047 2007-01-03  Karl Berry  <karl@gnu.org>
43048
43049         * doc/error.texi: new file, explaining interaction with progname.
43050         * doc/gnulib.texi: include it.  Update copyright.
43051
43052 2007-01-03  Simon Josefsson  <simon@josefsson.org>
43053
43054         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
43055         AC_CANONICAL_HOST, to improve autobuild outputs.
43056
43057 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
43058             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43059
43060         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
43061         sockets, server sockets, and other file descriptors.  Count errors
43062         to compute the return value.  Reorder the code a bit to be easier
43063         to follow.  Don't set event bits that were not requested (except
43064         POLLERR and POLLHUP).
43065
43066 2007-01-01  Bruno Haible  <bruno@clisp.org>
43067
43068         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
43069
43070 2007-01-03  Jim Meyering  <jim@meyering.net>
43071
43072         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
43073
43074 2007-01-02  Bruno Haible  <bruno@clisp.org>
43075
43076         * modules/settime (Include): Require timespec.h.
43077         * modules/nanosleep (Include): Likewise.
43078
43079 2007-01-01  Bruno Haible  <bruno@clisp.org>
43080
43081         * gnulib-tool (func_emit_copyright_notice): Bump year.
43082         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
43083
43084 2007-01-01  Bruno Haible  <bruno@clisp.org>
43085
43086         Improve support for OpenBSD.
43087         * build-aux/config.rpath (libname_spec): Export.
43088         (library_names_spec): New variable. Export.
43089         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
43090         library_names_spec from the config.rpath output. Locate shared library
43091         through the name pattern in library_names_spec.
43092
43093 2007-01-01  Eric Blake  <ebb9@byu.net>
43094
43095         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
43096
43097 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
43098
43099         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
43100         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
43101         assume the C locale, and avoid an "eval" that could cause trouble.
43102         Problem with SORT reported by Bob Proulx.
43103
43104         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
43105         Define.  Trivial patch from Henning Nielsen Lund, originally
43106         sent to bug-grep@gnu.org today.
43107
43108 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43109
43110         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
43111         struct stat.  Problem reported by Henning Nielsen Lund.
43112         * lib/acl.c: Include acl.h first, to check interface.  Don't
43113         bother to include sys/types.h and sys/stat.h again.
43114
43115 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
43116
43117         Import the following change from libc; problem reported by
43118         Sven Verdoolaege.
43119
43120         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
43121
43122         [BZ #1373]
43123         * lib/argp.h: Remove __NTH for __argp_usage inline function.
43124
43125 2006-12-28  Jim Meyering  <jim@meyering.net>
43126
43127         * build-aux/announce-gen: Do not assume that the package
43128         builds any of tar.gz, tar.bz2, and .xdelta files.
43129         Suggestion from Simon Josefsson.
43130
43131 2006-12-28  Simon Josefsson  <simon@josefsson.org>
43132
43133         * modules/announce-gen: New file.
43134
43135 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
43136
43137         * lib/mbchar.h: Just include <wctype.h>; the wctype module
43138         handles its gotchas now.
43139         * lib/mbswidth.c: Likewise.
43140         * lib/wcwidth.h: Likewise.
43141         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
43142         and iswcntrl; the wctype module does this stuff now.
43143         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43144         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43145         * modules/mbchar (Depends-on): Add wctype.
43146         * modules/mbswidth (Depends-on): Likewise.
43147         * modules/wcwidth (Depends-on): Likewise.
43148
43149 2006-12-27  Eric Blake  <ebb9@byu.net>
43150
43151         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
43152         module uses more than what <wctype.h> is required to provide.
43153
43154 2006-12-26  Eric Blake  <ebb9@byu.net>
43155
43156         * gnulib-tool (sed_extract_prog): Avoid space-tab.
43157
43158 2006-12-26  Eric Blake  <ebb9@byu.net>
43159
43160         * modules/absolute-header: New module.
43161         * modules/fcntl (Depends-on): Depend on it.
43162         * modules/inttypes (Depends-on): Likewise.
43163         * modules/stdint (Depends-on): Likewise.
43164         * modules/sys_stat (Depends-on): Likewise.
43165         * modules/wctype (Depends-on): Likewise.
43166         * MODULES.html.sh (Support for building libraries and
43167         executables): Document it.
43168
43169 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43170
43171         * gnulib-tool (SED): Remove, undoing previous change.
43172         The problem was that it broke coreutils on Solaris, because
43173         "sed --posix" leaked into a makefile.
43174         (sed): New alias, if 'alias' and GNU sed.
43175
43176 2006-12-24  Jim Meyering  <jim@meyering.net>
43177
43178         Work around an fchownat bug in glibc-2.4:
43179         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
43180         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
43181         in spite of the -P option.
43182         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
43183         New macros.
43184         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
43185         * modules/openat (Files): Add lib/fchownat.c.
43186         * lib/openat.c (fchownat): Don't define here.  Move to...
43187         * lib/fchownat.c: ...this new file.
43188
43189 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
43190
43191         Fix bug reported by Bruno Haible in
43192         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
43193         where quotearg.c didn't compile on Mac OS X 10.2 because it
43194         lacks <wchar.h> and wint_t.
43195         * lib/wctype_.h (__wctype_wint_t): New type.
43196         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
43197         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
43198         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
43199         Arg is now of type __wctype_wint_t, not wint_t.
43200         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
43201         substitute HAVE_WINT_T.
43202         * modules/wctype (Files): Add m4/wint_t.m4.
43203         (wctype.h): Substitute HAVE_WINT_T.
43204
43205 2006-12-23  Bruno Haible  <bruno@clisp.org>
43206
43207         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
43208
43209 2006-12-23  Bruno Haible  <bruno@clisp.org>
43210
43211         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
43212         S_ISLNK.
43213         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
43214         mingw.
43215
43216 2006-12-22  Bruno Haible  <bruno@clisp.org>
43217
43218         * lib/copy-file.c: Include acl.h.
43219         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
43220         Close the file descriptors only after being done with copy_acl.
43221         * modules/copy-file (Depends-on): Add acl.
43222
43223 2006-12-22  Bruno Haible  <bruno@clisp.org>
43224
43225         * gnulib-tool (SED): New variable.
43226         Use $SED instead of sed everywhere.
43227
43228 2006-12-22  Bruno Haible  <bruno@clisp.org>
43229
43230         * modules/no-c++: New file.
43231         * m4/no-c++.m4: New file.
43232         * MODULES.html.sh (Support for building libraries and executables):
43233         Add no-c++.
43234
43235 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
43236
43237         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43238         Include <limits.h>, and use its INT_MAX to rewrite the
43239         j loop so that it does not overflow 'int'.  Problem reported by
43240         Ralf Wildenhues in
43241         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
43242         Play it safe by shifting left by 1 rather than multiplying by 2,
43243         as GCC is less likely to optimize this away when the value
43244         is signed (when it assumes overflow leads to undefined behavior).
43245         Also, don't assume time_t uses two's complement.
43246
43247 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
43248
43249         * MODULES.html.sh: New module wctype.
43250         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
43251         * lib/fnmatch.c: Don't bother to include <wchar.h> before
43252         <wctype.h>, since the new wctype module should fix this.
43253         * lib/quotearg.c: Include <wctype.h> unconditionally, since
43254         the wctype module should arrange for it.
43255         * lib/regex_internal.h: Likewise.
43256         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
43257         since the wctype module should handle this now.
43258         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
43259         * modules/fnmatch (Depends-on): Add wctype.
43260         * modules/quotearg (Depends-on): Likewise.
43261         * modules/regex (Depends-on): Likewise.
43262
43263 2006-12-19  Bruno Haible  <bruno@clisp.org>
43264
43265         * lib/strdup.h [C++]: Wrap definitions in extern "C".
43266         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
43267
43268 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43269
43270         * modules/savewd (Depends-on): Fix dependency on fcntl.
43271
43272 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43273
43274         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
43275         conforms to C99, rather than relying on the user's environment
43276         setting of STDINT_H.
43277
43278 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43279         and Eric Blake  <ebb9@byu.net>
43280
43281         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
43282         This is more consistent with the other defines here.
43283         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
43284         Port to z/OS.  Problem reported by Paul Gilmartin.
43285         Change local vars to use gl_ prefix rather than ac_.
43286         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
43287         with other defines.
43288         * modules/double-slash-root: New module.
43289         * modules/dirname (Files): Remove m4/double-slash-root.m4.
43290         (Depends-on): Add double-slash-root.
43291         * MODULES.html.sh (File system functions): Mention new module.
43292
43293 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
43294
43295         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
43296         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
43297         This is for the benefit of gzip, which doesn't do i18n.
43298
43299 2006-12-12  Jim Meyering  <jim@meyering.net>
43300
43301         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
43302         Reported by Andreas Schwab <schwab@suse.de>.
43303
43304 2006-12-12  Bruno Haible  <bruno@clisp.org>
43305
43306         Merge these changes.
43307         2006-09-05  Bruno Haible  <bruno@clisp.org>
43308         * lib/iconvme.c (iconv_string): No need to save and restore errno when
43309         iconv_alloc succeeded.
43310         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
43311         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
43312         test for " && dest " at the end - dest is always != NULL there. Call
43313         iconv with 4xNULL arguments initially, to reset the state. Call iconv
43314         with 2xNULL arguments, also to flush the state storage. Handle the
43315         IRIX iconv behaviour. Realloc the final result, to throw away unused
43316         memory.
43317
43318 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
43319
43320         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
43321         and fchmodat unconditionally, since glibc 2.4 has them.
43322         Problem reported by Arkadiusz Miskiewicz.
43323
43324 2006-12-10  Bruno Haible  <bruno@clisp.org>
43325
43326         * gnulib-tool (func_import): Show the include files only for those
43327         modules that are copied and specified.
43328         Reported by Karl Berry.
43329
43330 2006-12-08  Jim Meyering  <jim@meyering.net>
43331
43332         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
43333         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
43334
43335         * build-aux/announce-gen: Add two new options, both optional:
43336         --bootstrap-tools=TOOL_LIST
43337               a comma-separated list of tools, e.g.,
43338               autoconf,automake,bison,gnulib
43339         --gnulib-snapshot-date=DATE
43340               if gnulib is in the bootstrap tool list,
43341               then report this as the snapshot date.
43342               If not specified, use the current date/time.
43343               If you specify a date here, be sure it's UTC.
43344
43345 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43346
43347         * tests/test-argp-2.sh: Fix test to match actual output.
43348         (func_compare): Fix sed script to be portable.
43349
43350 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
43351
43352         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
43353         workaround for this case.  It is not autoconfigured now; offhand
43354         it's hard to see how to autoconfigure it.
43355
43356 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
43357
43358         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
43359         a directory that is about to be chowned.  Such a directory's
43360         initial file permissions should permit the owner only and this
43361         should not be changed until after the chown, since the group and
43362         other bits would be incorrect if they granted permission before
43363         the chown.
43364
43365         Fix porting problem for iswctype reported by Georg Schwarz in:
43366         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
43367         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
43368         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
43369         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
43370         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
43371
43372 2006-12-03  Jim Meyering  <jim@meyering.net>
43373
43374         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
43375         p->fts_statp may not yet be defined.
43376         (fts_read): Instead, set it in the caller, once p->fts_statp is
43377         sure to be defined, and corresponds to a top-level directory.
43378         This bug made du -x fail.  Here's the coreutils test case:
43379         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
43380         Reported by Mike Frysinger.
43381
43382 2006-12-01  Jim Meyering  <jim@meyering.net>
43383
43384         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
43385         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
43386         Reported by Simon Josefsson.
43387
43388 2006-11-30  Jim Meyering  <jim@meyering.net>
43389
43390         * m4/warning.m4: Use the all-permissive copyright notice
43391         recommended by RMS (rather than LGPL).
43392         * m4/vararrays.m4: Likewise.
43393         * m4/flexmember.m4: Likewise.
43394
43395 2006-11-29  Bruno Haible  <bruno@clisp.org>
43396
43397         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
43398         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
43399         using +=.
43400         Reported by Simon Josefsson <simon@josefsson.org>.
43401
43402 2006-11-28  James Youngman <jay@gnu.org>
43403
43404         * README: Advise users that they might find the bug-gnulib@gnu.org
43405         and autotools-announce@gnu.org mailing lists useful.
43406
43407 2006-11-28  Bruno Haible  <bruno@clisp.org>
43408
43409         * m4/ptrdiff_max.m4: Remove file.
43410
43411 2006-11-21  Bruno Haible  <bruno@clisp.org>
43412
43413         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
43414         _AC_COMPUTE_INT.
43415         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
43416         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
43417         _AC_COMPUTE_INT.
43418         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
43419         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
43420         _AC_COMPUTE_INT.
43421         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
43422
43423 2006-11-28  Jim Meyering  <jim@meyering.net>
43424
43425         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
43426         warning from "gcc -Wshadow" about shadowing the builtin.
43427
43428 2006-11-27  Bruno Haible  <bruno@clisp.org>
43429
43430         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
43431         _AC_COMPUTE_INT.
43432         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
43433
43434 2006-11-27  Bruno Haible  <bruno@clisp.org>
43435             Paul Eggert  <eggert@cs.ucla.edu>
43436
43437         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
43438
43439 2006-11-26  Bruno Haible  <bruno@clisp.org>
43440
43441         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
43442         noinst_LTLIBRARIES.
43443
43444 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
43445             Bruno Haible  <bruno@clisp.org>
43446
43447         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
43448         if compiling with "gcc -ansi".
43449
43450 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
43451
43452         Fix some incompatibilities with gcc -ansi -pedantic.
43453         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
43454         if compiling pedantically with GCC, unless it's C99 or later.
43455         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
43456         it mishandles gcc -ansi -pedantic as well.
43457         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
43458         if gcc -pedantic.
43459         * lib/regexec.c (check_node_accept_bytes): Don't use auto
43460         initializers for struct if -pedantic, unless it's C99 or later.
43461
43462 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
43463
43464         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
43465         Don't close an fd more than once. Identical atimes indicate
43466         success, not failure.
43467
43468 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
43469
43470         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
43471
43472 2006-11-23  Jim Meyering  <jim@meyering.net>
43473
43474         * build-aux/announce-gen: New file.  From coreutils.
43475
43476 2006-11-22  Jim Meyering  <jim@meyering.net>
43477
43478         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
43479         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
43480         (fts_read): Use a temporary to narrow the overused st_size member
43481         before using it in a switch statement.  Reported by Matthew Woehlke.
43482
43483         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
43484         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43485
43486 2006-11-20  Bruno Haible  <bruno@clisp.org>
43487
43488         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
43489         changequote instead of pairs of brackets.
43490         Reported by Andreas Schwab <schwab@suse.de>.
43491
43492 2006-11-21  Jim Meyering  <jim@meyering.net>
43493
43494         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
43495         so as to remain compatible with older compilers.
43496         Patch from Michael Deutschmann.
43497
43498 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
43499
43500         * MODULES.html.sh (File system functions): Add openat.
43501
43502         * lib/openat.h (rpl_fstatat): New macro, if
43503         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
43504         (fstatat): Define to rpl_fstatat under the same conditions,
43505         unless COMPILING_FSTATAT.
43506         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
43507         seems to have the bug.
43508         * lib/fstatat.c: New file.
43509         * modules/openat (Files): Add it.
43510
43511 2006-11-20  Bruno Haible  <bruno@clisp.org>
43512
43513         * Makefile: New file.
43514
43515 2006-11-20  Jim Meyering  <jim@meyering.net>
43516
43517         The beginnings of syntax-related checks for gnulib.
43518         * lib/Makefile: New file.
43519         * lib/t-idcache: New script.  Ensure that the two halves of
43520         idcache.c stay in sync.
43521
43522         * lib/idcache.c: Adjust comments in user- and group- portions to
43523         be more accurate, and to be consistent with one another.
43524
43525 2006-11-20  Jim Meyering  <jim@meyering.net>
43526
43527         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
43528         continue using the flexible array member (thus, this module performs
43529         half as many malloc calls), with the addition that...
43530         (getgroup, getuser): Consistently record a non-match via an empty
43531         "name" string, and map an empty string match to a NULL return value.
43532         * modules/idcache (Depends-on): Re-add flexmember.
43533
43534         * lib/idcache.c (getuser): Remove all uses of the register keyword.
43535         (getuidbyname, getgroup, getgidbyname): Likewise.
43536
43537         Use cleaner syntax: NULL rather than 0.
43538         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
43539
43540 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
43541
43542         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
43543         It mishandled the case where the group was missing.
43544         Problem reported by Greg Schafer.
43545         * modules/idcache: Likewise.
43546
43547 2006-11-18  Jim Meyering  <jim@meyering.net>
43548
43549         * check-module (%exempt_header): Add exception for some
43550         conditionally-included headers.
43551
43552         * modules/i-ring (Depends-on): Add verify.
43553         (License): Change to LGPL.
43554
43555 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43556
43557         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
43558         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
43559         and inttostr.h.  Use snprintf rather than uinttostr, so that
43560         LGPLed code doesn't depend on GPLed.
43561
43562 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
43563
43564         * modules/inline (License): Change from GPL to LGPL.
43565
43566 2006-11-17  Jim Meyering  <jim@meyering.net>
43567
43568         * modules/d-type (License): Switch to LGPL.
43569
43570 2006-11-15  Bruno Haible  <bruno@clisp.org>
43571
43572         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
43573
43574 2006-11-15  Eric Blake  <ebb9@byu.net>
43575
43576         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
43577         the module dependency.
43578
43579 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43580             Bruno Haible  <bruno@clisp.org>
43581
43582         * gnulib-tool (func_create_testdir): Add license consistency check.
43583
43584 2006-11-15  Eric Blake  <ebb9@byu.net>
43585
43586         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
43587         random "(cached)" in configure output.
43588
43589 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43590
43591         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
43592         test for conforming inttypes.h is both announced and cached.
43593
43594         * MODULES.html.sh (seen_modules, seen_files): New variables.
43595         (func_module): Rewrite to use a few less gnulib-tool and sed
43596         invocations.  Avoid a couple of quadratic algorithms for ...
43597         (missed_modules, missed_files): ... these, with ...
43598         (func_append, func_tmpdir): ... these new functions, from
43599         gnulib-tool.  Analogously, install traps for cleanup.
43600
43601         * tests/test-gc.c (main): Remove unused variables.
43602         * tests/test-read-file.c: Include stdlib.h, for 'free'.
43603
43604 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
43605
43606         * modules/inttostr (License): Change to LGPL.
43607
43608 2006-11-14  Eric Blake  <ebb9@byu.net>
43609
43610         * modules/tempname (License): Change to LGPL.
43611
43612 2006-11-14  Eric Blake  <ebb9@byu.net>
43613
43614         * doc/functions.texi (Function Portability): *printf functions on
43615         Cygwin now understand all POSIX size specifiers.
43616
43617 2006-11-14  Bruno Haible  <bruno@clisp.org>
43618
43619         * modules/c-ctype (License): Change to LGPL.
43620
43621 2006-11-12  Bruno Haible  <bruno@clisp.org>
43622
43623         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
43624         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
43625         for GNOME libraries, for which the include files are installed in
43626         subdirectories of $prefix/include.
43627
43628 2006-11-12  Bruno Haible  <bruno@clisp.org>
43629
43630         * m4/lib-link.m4: Require at least autoconf-2.54.
43631         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
43632         name to underscores for the --with option.
43633
43634 2006-11-13  Bruno Haible  <bruno@clisp.org>
43635
43636         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
43637         the tests directory.
43638         Reported by Ralf Wildenhues.
43639
43640 2006-11-13  Bruno Haible  <bruno@clisp.org>
43641
43642         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
43643         (func_emit_initmacro_end): Undo the override here.
43644         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
43645         Works around the famous automake error in coreutils.
43646
43647 2006-11-13  Eric Blake  <ebb9@byu.net>
43648
43649         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
43650         element, not its node.
43651
43652 2006-11-12  Bruno Haible  <bruno@clisp.org>
43653
43654         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
43655         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
43656
43657 2006-11-12  Bruno Haible  <bruno@clisp.org>
43658
43659         * gnulib-tool: New option --local-symlink.
43660         (func_usage): Document it.
43661         (lsymbolic): New variable.
43662         (func_import, func_create_testdir): If --symlink was not specified,
43663         test whether --local-symlink was specified and the file comes from
43664         the local_gnulib_dir.
43665
43666 2006-11-12  Bruno Haible  <bruno@clisp.org>
43667
43668         * gnulib-tool (func_ln): New function.
43669         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
43670
43671 2006-11-12  Bruno Haible  <bruno@clisp.org>
43672
43673         Finish support for source files in subdirectories.
43674         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
43675         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
43676         AUTOMAKE_OPTIONS.
43677         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
43678
43679 2006-11-12  Bruno Haible  <bruno@clisp.org>
43680
43681         * gnulib-tool (func_get_automake_snippet): Synthesize also an
43682         EXTRA_lib_SOURCES augmentation.
43683         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
43684
43685 2006-11-12  Jim Meyering  <jim@meyering.net>
43686
43687         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
43688         file descriptors.  This also averts a failure on systems with
43689         native openat support when a traversed directory lacks "x" access.
43690         * lib/fts_.h: Include "i-ring.h"
43691         (struct FTS) [fts_fd_ring]: New member.
43692         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
43693         (FCHDIR): Add parentheses.
43694         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
43695         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
43696         When descending, rather than simply closing the previous
43697         fts_cwd_fd value, push that file descriptor onto the ring.
43698         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
43699         (fts_open): Initialize the new fd_ring member.
43700         (fts_close): Clear the ring.
43701         (fts_safe_changedir): When possible, use our new fd_ring to skip
43702         the diropen and fstat and dev/ino comparison that would normally
43703         accompany a virtual `chdir ("..")'.
43704
43705         * modules/fts (Depends-on): Add i-ring.
43706         * modules/i-ring: New module.
43707         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
43708         * m4/i-ring.m4: New file.
43709
43710 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43711
43712         * gnulib-tool (func_create_testdir): Fix replacement of
43713         `build-aux' in configure.ac.  Run autotools in gltests
43714         subdirectory.
43715         (func_create_testdir, func_create_megatestdir, test): There is
43716         no need for '--force' in most autotool invocations in a new
43717         tree.  Actually fail the whole test if any of the tools, or the
43718         configure or make stages fail.
43719
43720         Sync from Automake.
43721         * build-aux/gnupload: Revert last change.  Add pointer to upload
43722         instructions of the GNU Maintenance Instructions.
43723         Suggestion by Karl Berry.
43724
43725 2006-11-10  Jim Meyering  <jim@meyering.net>
43726
43727         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
43728
43729 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
43730
43731         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
43732         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
43733         (bind_textdomain_codeset) [! ENABLE_NLS]:
43734         Evaluate all the arguments.  That way, callers get compatible behavior
43735         if the arguments have side effects.  Also, it avoids some GCC
43736         diagnostics in some cases; Joel E. Denny reported problems when Bison
43737         was configured with --enable-gcc-warnigs.
43738
43739 2006-11-10  Jim Meyering  <jim@meyering.net>
43740
43741         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
43742         relevant options in CFLAGS (like -O, -fno-inline) are taken into
43743         account.
43744
43745 2006-11-10  Jim Meyering  <jim@meyering.net>
43746
43747         * modules/inline: New file/module.
43748         * modules/xalloc (Files): Remove m4/inline.m4.
43749         (Depends-on): Add inline, instead.
43750         * modules/oset: Likewise.
43751         * modules/list: Likewise.
43752
43753 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
43754
43755         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
43756         Problem reported by Matthew Woehlke.
43757
43758 2006-11-09  Bruno Haible  <bruno@clisp.org>
43759
43760         * lib/tempname.c (gen_tempname): Remove variant that invokes
43761         __gen_tempname.
43762         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
43763         __gen_tempname.
43764
43765 2006-11-08  Bruno Haible  <bruno@clisp.org>
43766
43767         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
43768         to 'yes' instead of 'cross-compiling'.
43769
43770 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
43771
43772         * lib/quotearg.h (quotearg_free): New decl.
43773         * lib/quotearg.c (quotearg_free): New function.
43774         (slot0, nslots, slotvec0, slotvec):
43775         Now file-scope so that quotearg_free can get at them.
43776
43777 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43778
43779         Sync from Automake.
43780         * build-aux/gnupload: Add missing 'gnu' to example URL.
43781         Report by Karl Berry.
43782
43783 2006-11-08  Bruno Haible  <bruno@clisp.org>
43784
43785         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
43786         Suggested by Paul Eggert.
43787
43788 2006-11-08  Jim Meyering  <jim@meyering.net>
43789
43790         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
43791         It's already included if !_LIBC.
43792         (fts_safe_changedir): Add a comment.
43793
43794 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
43795
43796         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
43797         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
43798         Matthew Woehlke.
43799
43800         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
43801         definitions up, to avoid colliding with change below.
43802         (static_inline) [HAVE_INLINE]: New macro.
43803         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
43804         Provide extern decls when !HAVE_INLINE.  Do not define unless
43805         static_inline is defined, either by us or by xmalloc.c.  Use
43806         static_inline rather than static inline.
43807         (XCALLOC): Optimize sizeof(T) = 1 case.
43808         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
43809
43810 2006-11-07  Bruno Haible  <bruno@clisp.org>
43811
43812         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
43813         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
43814         AC_C_INLINE.
43815         * modules/xalloc (Files): Add m4/inline.m4.
43816
43817 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43818
43819         * README: Fix typo.
43820         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
43821         (Miscellanous Notes): ...from this.
43822
43823 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
43824
43825         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
43826         Mention that offsetof should be used instead of sizeof.
43827         From Bruno Haible.
43828
43829 2006-11-07  Bruno Haible  <bruno@clisp.org>
43830
43831         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
43832
43833 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
43834
43835         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
43836         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
43837         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
43838         (gl_tree_add_before, gl_tree_add_after):
43839         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
43840         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
43841         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
43842         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
43843         (gl_linked_add_after, gl_linked_add_at): Likewise.
43844         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
43845         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
43846         (gl_tree_add_before, gl_tree_add_after): Likewise.
43847         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
43848         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
43849         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
43850
43851 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43852
43853         * lib/gl_oset.h: Use C comment style, not C++ comment style.
43854
43855 2006-11-06  Bruno Haible  <bruno@clisp.org>
43856
43857         * m4/inline.m4: New file.
43858         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
43859         * modules/list (Files): Add m4/inline.m4.
43860         * modules/oset (Files): Likewise.
43861
43862 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
43863
43864         * lib/idcache.c: Include <stddef.h>, for offsetof.
43865         (struct userid.name): Change from char * to a flexible array member.
43866         All uses changed.
43867         * modules/idcache (Depends-on): Add flexmember.
43868
43869         * MODULES.html.sh (Core language properties): New module flexmember.
43870         * modules/flexmember, m4/flexmember.m4: New files.
43871
43872         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
43873         inline functions that are identical with the old xnmalloc_inline,
43874         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
43875         that we can avoid some unnecessary integer multiplications and
43876         divisions in the common case where the element size is known at
43877         compile time.
43878         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
43879         needed.
43880         (xnboundedmalloc): Remove.
43881         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
43882         arguments, for consistency with rest of this header.
43883         (xcharalloc): Rewrite using XNMALLOC.
43884         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
43885         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
43886         versions have been moved to lib/xalloc.h and renamed to be the
43887         non-*_inline versions.
43888         (xmalloc, xrealloc): Implement without reference to the xnmalloc
43889         and xnrealloc functions, since those functions are now inline and
43890         now call us.
43891         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
43892         renaming described above.
43893         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
43894         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
43895         captures the dependency in AC_C_INLINE.
43896
43897         New module canonicalize-lgpl, proposed by Charles Wilson in
43898         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
43899         with a few small changes afterwards.
43900         * MODULES.html.sh (File system functions): New module
43901         canonicalize-lgpl.
43902         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
43903         and canonicalize_file_name.
43904         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
43905         * modules/canonicalize-lgpl: New files.
43906
43907 2006-11-05  Bruno Haible  <bruno@clisp.org>
43908
43909         * gnulib-tool (func_import, func_create_testdir): Create directories
43910         also for files in subdirectories of lib/.
43911
43912 2006-11-05  Bruno Haible  <bruno@clisp.org>
43913
43914         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
43915         ANSI C compliant.
43916
43917 2006-11-03  Bruno Haible  <bruno@clisp.org>
43918
43919         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
43920         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
43921         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
43922         (xnboundedmalloc): New inline function.
43923         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
43924         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
43925         xmalloc.
43926         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
43927         xmalloc.
43928         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
43929         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
43930         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
43931         xmalloc.
43932         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
43933         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
43934         xmalloc.
43935         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
43936         gl_tree_add_after): Use XMALLOC instead of xmalloc.
43937         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
43938         xmalloc.
43939         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
43940         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
43941         gl_tree_add_after): Use XMALLOC instead of xmalloc.
43942         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
43943         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
43944         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
43945         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
43946
43947 2006-11-03  Bruno Haible  <bruno@clisp.org>
43948
43949         * lib/c-ctype.h [C++]: Define functions without name mangling.
43950         * lib/fwriteerror.h [C++]: Likewise.
43951         * lib/gcd.h [C++]: Likewise.
43952         * lib/linebreak.h [C++]: Likewise.
43953
43954 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
43955
43956         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
43957         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
43958         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
43959         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43960         Check for functions and headers just once.
43961         Check for declaration of canonicalize_file_name.
43962         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
43963
43964 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
43965
43966         * gnulib-tool (func_import): Fix typo in actioncmd.
43967
43968 2006-11-02  Bruno Haible  <bruno@clisp.org>
43969
43970         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
43971         newline sequence in the Makefile.am snippet as a space, like "make"
43972         does.
43973         Reported by Roger Persson <perrog@gmail.com>.
43974
43975 2006-11-01  Bruno Haible  <bruno@clisp.org>
43976
43977         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
43978         already declared in <string.h>.
43979         * lib/strcase.h (strncasecmp): Don't declare it if yes.
43980
43981 2006-11-01  Bruno Haible  <bruno@clisp.org>
43982
43983         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
43984         * lib/strcase.h: Include <string.h>.
43985         (strcasecmp): Define to rpl_strcasecmp here.
43986
43987 2006-11-01  Bruno Haible  <bruno@clisp.org>
43988
43989         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
43990
43991 2006-11-01  Eric Blake  <ebb9@byu.net>
43992
43993         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
43994
43995         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
43996
43997 2006-10-29  Bruno Haible  <bruno@clisp.org>
43998
43999         Make it compile in C++ mode.
44000         * lib/full-write.c (full_rw): Add a cast.
44001
44002 2006-11-01  Bruno Haible  <bruno@clisp.org>
44003
44004         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
44005         be POSIX compliant.
44006         Reported by Roger Persson <perrog@gmail.com>.
44007
44008 2006-11-01  Eric Blake  <ebb9@byu.net>
44009
44010         * lib/getopt_.h: Fix comments.
44011
44012 2006-10-31  Eric Blake  <ebb9@byu.net>
44013
44014         * modules/tmpdir (Depends-on): Add sys_stat.
44015         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
44016         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
44017         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
44018         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
44019         tempname.
44020
44021 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
44022
44023         Avoid some C++ diagnostics reported by Bruno Haible.
44024         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
44025         xmalloc.
44026         (quotearg_alloc): Use xcharalloc rather than xmalloc.
44027         (struct slotvec): Move to top level.
44028         (quotearg_n_options): Rewrite to avoid xmalloc.
44029         * lib/xalloc.h (xcharalloc): New function.
44030         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
44031         [defined __cplusplus]: Add function template that provides result
44032         type propagation.  This part of the change is from Bruno Haible.
44033
44034 2006-10-29  Bruno Haible  <bruno@clisp.org>
44035
44036         Make it compile in C++ mode.
44037         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
44038         * lib/strnlen1.c (strnlen1): Cast memchr result.
44039         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
44040         * lib/clean-temp.c (string_equals, string_hash): Add casts.
44041         (create_temp_dir): Rename local variable 'template'.
44042         (compile_csharp_using_sscli): Add cast.
44043         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
44044         * lib/findprog.c (find_in_path): Likewise.
44045         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
44046         * lib/wait-process.c (register_slave_subprocess): Likewise.
44047
44048 2006-10-22  Bruno Haible  <bruno@clisp.org>
44049
44050         * modules/tsearch: New file.
44051         * lib/tsearch.h: New file.
44052         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
44053         * m4/tsearch.m4: New file.
44054         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
44055
44056 2006-10-29  Eric Blake  <ebb9@byu.net>
44057
44058         * lib/arcfour.c: Assume config.h.
44059         * lib/arctwo.c: Likewise.
44060         * lib/base64.c: Likewise.
44061         * lib/check-version.c: Likewise.
44062         * lib/crc.c: Likewise.
44063         * lib/des.c: Likewise.
44064         * lib/gc-gnulib.c: Likewise.
44065         * lib/gc-libgcrypt.c: Likewise.
44066         * lib/gc-pbkdf2-sha1.c: Likewise.
44067         * lib/getaddrinfo.c: Likewise.
44068         * lib/getdelim.c: Likewise.
44069         * lib/getline.c: Likewise.
44070         * lib/hmac-md5.c: Likewise.
44071         * lib/hmac-sha1.c: Likewise.
44072         * lib/iconvme.c: Likewise.
44073         * lib/md2.c: Likewise.
44074         * lib/md4.c: Likewise.
44075         * lib/memxor.c: Likewise.
44076         * lib/read-file.c: Likewise.
44077         * lib/readline.c: Likewise.
44078         * lib/rijndael-alg-fst.c: Likewise.
44079         * lib/rijndael-api-fst.c: Likewise.
44080         * lib/xgetdomainname.c: Likewise.
44081
44082 2006-10-28  Eric Blake  <ebb9@byu.net>
44083
44084         * lib/xstrndup.c: Assume config.h.
44085
44086 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
44087
44088         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
44089         stat-macros.h is now for our own macros, whereas stat_h is for
44090         macros in the <sys/stat.h> name space.
44091         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
44092         (STAT_MACROS_H): Remove.
44093         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
44094         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
44095         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
44096         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
44097         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
44098         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
44099         Move these macros to ...
44100         * lib/stat_.h: here.  Don't include stat-macros.h.
44101         * lib/canonicalize.c: Don't include stat-macros.h.
44102         * lib/chown.c: Likewise.
44103         * lib/euidaccess.c: Likewise.
44104         * lib/file-type.c: Likewise.
44105         * lib/filemode.c: Likewise.
44106         * lib/glob.c: Likewise.
44107         * lib/isapipe.c: Likewise.
44108         * lib/lchown.c: Likewise.
44109         * lib/lstat.c: Likewise.
44110         * lib/mkdir-p.c: Likewise.
44111         * lib/rmdir.c: Likewise.
44112         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
44113         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
44114         unless mkdir isn't declared, to speed up 'configure'.
44115         Always create sys/stat.h, since it's unlikely any real sys/stat.h
44116         would define all the S_* symbols.
44117         * modules/canonicalize (Depends-on):
44118         Depend on sys_stat, not stat-macros.
44119         * modules/chown: Likewise.
44120         * modules/euidaccess: Likewise.
44121         * modules/filemode: Likewise.
44122         * modules/file-type: Likewise.
44123         * modules/glob: Likewise.
44124         * modules/isapipe: Likewise.
44125         * modules/lchown: Likewise.
44126         * modules/lstat: Likewise.
44127         * modules/mkancesdirs: Likewise.
44128         * modules/rmdir: Likewise.
44129         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
44130         * modules/modechange: Likewise.
44131         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
44132         (configure.ac): Remove gl_STAT_MACROS.
44133         * modules/sys_stat (Depends-on): Remove stat-macros.
44134
44135 2006-10-27  Bruno Haible  <bruno@clisp.org>
44136
44137         * m4/signed.m4: Remove file.
44138         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
44139         invocation.
44140         * modules/vasnprintf (Files): Remove m4/signed.m4.
44141
44142 2006-10-27  Bruno Haible  <bruno@clisp.org>
44143
44144         Update to GNU gettext 0.16.
44145         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
44146         m4/inttypes-h.m4, m4/signed.m4.
44147         * m4/gettext.m4: Update to GNU gettext 0.16.
44148         * m4/intl.m4: New file, from GNU gettext.
44149         * m4/intldir.m4: New file, from GNU gettext.
44150         * config/srclist.txt: Update
44151
44152 2006-10-27  Eric Blake  <ebb9@byu.net>
44153
44154         * MODULES.html.sh: Document tempname.
44155         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
44156         dependencies.
44157         (Files): Move lib/tempname.c...
44158         * modules/tempname: ...to this new module.
44159         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
44160         (gl_PREREQ_TEMPNAME): Move...
44161         * m4/tempname.m4: ...to this new file.
44162         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
44163         * modules/sys_stat (Depends-on): Add stat-macros.
44164         * lib/stat_.h (includes): Pick up stat macros.
44165         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
44166         if stat macros are broken.
44167         * lib/tempname.c (includes): No need to include "stat-macros.h".
44168         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
44169         (direxists, __path_search) [!_LIBC]: Don't compile these in
44170         gnulib; the tmpdir module covers that.
44171         * lib/tempname.h: New file.
44172
44173 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
44174
44175         * COPYING: Explain how gnulib-tool converts licence headers.
44176         Almost all wording by Eric Blake.
44177
44178 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
44179
44180         * lib/mbchar.h (is_basic_table): Make read-only.
44181         * lib/mbchar.c (is_basic_table): Likewise.
44182         Reported by John Darrington.
44183
44184 2006-10-25  Bruno Haible  <bruno@clisp.org>
44185
44186         * lib/progname.h (set_program_name): Undefine before defining.
44187
44188 2006-10-25  Bruno Haible  <bruno@clisp.org>
44189
44190         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
44191         false for non-gcc C++ compilers.
44192         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
44193
44194 2006-10-24  Bruno Haible  <bruno@clisp.org>
44195
44196         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
44197         iconv implementations like Irix iconv.
44198
44199 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44200
44201         * modules/vararrays: New file.
44202         * m4/vararrays.m4: New file, taken from diffutils.
44203         * MODULES.html.sh: New module vararrays.
44204
44205 2006-10-24  Karl Berry  <karl@gnu.org>
44206
44207         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
44208         Don't call GNU Unix.
44209
44210 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44211
44212         * users.txt: Add Libtool.
44213
44214         Sync from Libtool:
44215
44216         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44217
44218         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
44219         to gnulib's policy of including config.h unconditionally.
44220
44221 2006-10-24  Bruno Haible  <bruno@clisp.org>
44222
44223         * modules/wcwidth (Files): Add m4/wint_t.m4.
44224         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
44225         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
44226
44227 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44228
44229         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
44230         to pacify GCC with some -W flags enabled.  Problem reported by
44231         Bruno Haible.
44232
44233 2006-10-24  Jim Meyering  <jim@meyering.net>
44234
44235         * MODULES.html.sh: Remove uinttostr.  It's not a module.
44236         Reported by Karl Berry.
44237
44238 2006-10-23  Bruno Haible  <bruno@clisp.org>
44239
44240         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
44241
44242 2006-10-24  Bruno Haible  <bruno@clisp.org>
44243
44244         * lib/gl_list.h: Use C comment style, not C++ comment style.
44245
44246 2006-10-23  Eric Blake  <ebb9@byu.net>
44247
44248         * lib/getaddrinfo.c (includes): Add missing include.
44249
44250 2006-10-23  Bruno Haible  <bruno@clisp.org>
44251             Paul Eggert  <eggert@cs.ucla.edu>
44252
44253         Ability to rename obstack_free.
44254         * lib/obstack.h (__obstack_free): New macro. Declare instead of
44255         obstack_free.
44256         (obstack_free): Invoke the __obstack_free macro.
44257         * lib/obstack.c (obstack_free): Use __obstack_free macro.
44258
44259 2006-10-23  Bruno Haible  <bruno@clisp.org>
44260             Paul Eggert  <eggert@cs.ucla.edu>
44261
44262         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
44263         __argc, __argv from the declaration. (They are defined as macros on
44264         mingw.)
44265
44266 2006-10-22  Bruno Haible  <bruno@clisp.org>
44267
44268         * doc/gnulib-intro.texi: New file.
44269         * doc/gnulib.texi: Include it.
44270
44271 2006-10-21  Bruno Haible  <bruno@clisp.org>
44272
44273         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
44274         "Introduction", "Miscellanous Notes", "Particular Modules".
44275
44276 2006-10-21  Bruno Haible  <bruno@clisp.org>
44277
44278         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44279         Change mostlyclean-local rule to avoid sh syntax error from bash
44280         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
44281
44282 2006-10-23  Jim Meyering  <jim@meyering.net>
44283
44284         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
44285         in place of snprintf.
44286
44287         * modules/inttostr (Files): Add lib/uinttostr.c.
44288         * lib/uinttostr.c (inttostr): New file/function.
44289         * lib/inttostr.h (uinttostr): Declare.
44290         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
44291         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
44292         Add uinttostr.
44293         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
44294
44295 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
44296
44297         * lib/canonicalize.c (ELOOP): Define if not already defined.
44298         Problem reported by Bruno Haible in
44299         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
44300
44301 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
44302
44303         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
44304         Problem reported by Perry Smith and Ville Laurikari.
44305
44306         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
44307         uses.
44308
44309 2006-10-19  Bruno Haible  <bruno@clisp.org>
44310
44311         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
44312         for mingw.
44313
44314 2006-10-19  Bruno Haible  <bruno@clisp.org>
44315
44316         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
44317         Needed for mingw.
44318
44319 2006-10-19  Bruno Haible  <bruno@clisp.org>
44320
44321         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
44322
44323 2006-10-19  Bruno Haible  <bruno@clisp.org>
44324
44325         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
44326         it.
44327
44328 2006-10-19  Bruno Haible  <bruno@clisp.org>
44329
44330         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
44331         invocation.
44332
44333 2006-10-19  Bruno Haible  <bruno@clisp.org>
44334
44335         * gnulib-tool (func_create_testdir): Don't include ftruncate and
44336         mountlist by default.
44337
44338 2006-10-16  Bruno Haible  <bruno@clisp.org>
44339
44340         * lib/c-strstr.c: Include c-strstr.h.
44341
44342 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
44343
44344         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
44345         in a slash.
44346
44347 2006-10-18  Bruno Haible  <bruno@clisp.org>
44348
44349         * lib/lock.h [C++]: Wrap definitions in extern "C".
44350
44351 2006-10-18  Bruno Haible  <bruno@clisp.org>
44352
44353         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
44354         gl_LIBOBJS list.
44355
44356 2006-10-18  Bruno Haible  <bruno@clisp.org>
44357
44358         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
44359
44360 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
44361
44362         * lib/xstrtol.h: Include gettext.h.
44363         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
44364         Problem reported by Eric Blake.
44365         * modules/xstrtol (Depends-on): Add gettext-h.
44366
44367 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
44368
44369         * lib/strftime.c (advance): New macro.
44370         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
44371         incomplete type, so you can't add 0 to it.  Problem and patch
44372         reported by Eelco Dolstra for dietlibc.
44373
44374 2006-10-18  Jim Meyering  <jim@meyering.net>
44375
44376         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
44377         type for a local, and rename it: s/up/user_proc/.
44378
44379 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
44380
44381         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
44382         READ_UTMP_USER_PROCESS.
44383         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
44384
44385 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
44386
44387         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
44388         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
44389
44390 2006-10-17  Eric Blake  <ebb9@byu.net>
44391
44392         * lib/sigprocmask.c (sigprocmask): Fix typo.
44393
44394         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
44395
44396         * modules/clean-temp (Makefile.am): Don't add to make output...
44397         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
44398         config.h.
44399
44400 2006-10-17  Bruno Haible  <bruno@clisp.org>
44401
44402         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
44403         differently if DEFAULT_TEXT_DOMAIN is set.
44404
44405 2006-10-16  Bruno Haible  <bruno@clisp.org>
44406
44407         * lib/clean-temp.c: Include fwriteerror.h.
44408
44409 2006-10-16  Bruno Haible  <bruno@clisp.org>
44410
44411         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
44412
44413 2006-10-16  Bruno Haible  <bruno@clisp.org>
44414
44415         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
44416         * lib/sigprocmask.h: Include <sys/types.h>.
44417         (sigset_t): Use the system's definition if present.
44418
44419 2006-10-17  Eric Blake  <ebb9@byu.net>
44420
44421         * lib/xvasprintf.c (includes): Assume config.h.
44422         * lib/xasprintf.c (includes): Likewise.
44423
44424 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44425
44426         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
44427         at least as wide as intmax_t.
44428
44429 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
44430
44431         (Imported from Automake.)
44432         * build-aux/gnupload: Update to version 1.1 of directive file.
44433
44434 2006-10-16  Eric Blake  <ebb9@byu.net>
44435
44436         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
44437         match Automake 1.10a.
44438
44439 2006-10-14  Bruno Haible  <bruno@clisp.org>
44440
44441         * modules/sigprocmask: New file.
44442         * lib/sigprocmask.h: New file.
44443         * lib/sigprocmask.c: New file.
44444         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
44445         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
44446         request sigprocmask.o.
44447         (gl_PREREQ_SIGPROCMASK): New macro.
44448         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
44449         (Depends-on): Add sigprocmask.
44450         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
44451         gt_SIGNALBLOCKING. Test for 'raise' only once.
44452         * lib/fatal-signal.c: Include sigprocmask.h.
44453         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
44454         unblock_fatal_signals): Define always.
44455         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44456         sigprocmask.
44457
44458 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
44459
44460         Sync from Automake.
44461         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
44462         which incorrectly sets the mode of an existing destination
44463         directory.  In some cases the unpatched install-sh could do the
44464         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
44465         system.  We hope this is rare in practice, but it's clearly worth
44466         fixing.  Problem reported by Alex Unleashed in
44467         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
44468         Also, don't bother to check for -m bugs unless we're using -m;
44469         suggested by Stepan Kasal.
44470
44471 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44472
44473         Sync from Automake.
44474         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
44475         `-c' flag, so they appear at the same position as in %FASTDEP%
44476         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
44477         which ignores unknown options only after the first non-option.
44478         Bug report against M4 by Nelson H. F. Beebe.
44479
44480 2006-10-13  Jim Meyering  <jim@meyering.net>
44481
44482         Fix a bug in yesterday's change.
44483         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
44484         p->fts_statp->st_dev would be used uninitialized.
44485         Ensures that we always call fts_stat on the very first entry.
44486         Miklos Szeredi reported that find -xdev stopped working.
44487
44488 2006-10-12  Bruno Haible  <bruno@clisp.org>
44489
44490         * gnulib-tool (func_get_automake_snippet): Append an automatically
44491         computed EXTRA_DIST augmentation.
44492         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
44493         * modules/alloca-opt (Makefile.am): Likewise.
44494         * modules/allocsa (Makefile.am): Likewise.
44495         * modules/arcfour (Makefile.am): Likewise.
44496         * modules/arctwo (Makefile.am): Likewise.
44497         * modules/argmatch (Makefile.am): Likewise.
44498         * modules/argz (Makefile.am): Likewise.
44499         * modules/atexit (Makefile.am): Likewise.
44500         * modules/backupfile (Makefile.am): Likewise.
44501         * modules/byteswap (Makefile.am): Likewise.
44502         * modules/c-strtod (Makefile.am): Likewise.
44503         * modules/c-strtold (Makefile.am): Likewise.
44504         * modules/calloc (Makefile.am): Likewise.
44505         * modules/canon-host (Makefile.am): Likewise.
44506         * modules/canonicalize (Makefile.am): Likewise.
44507         * modules/chdir-long (Makefile.am): Likewise.
44508         * modules/chdir-safer (Makefile.am): Likewise.
44509         * modules/check-version (Makefile.am): Likewise.
44510         * modules/chown (Makefile.am): Likewise.
44511         * modules/cloexec (Makefile.am): Likewise.
44512         * modules/close-stream (Makefile.am): Likewise.
44513         * modules/closeout (Makefile.am): Likewise.
44514         * modules/crc (Makefile.am): Likewise.
44515         * modules/csharpexec (Makefile.am): Likewise.
44516         * modules/cycle-check (Makefile.am): Likewise.
44517         * modules/des (Makefile.am): Likewise.
44518         * modules/dev-ino (Makefile.am): Likewise.
44519         * modules/dirfd (Makefile.am): Likewise.
44520         * modules/dirname (Makefile.am): Likewise.
44521         * modules/dup2 (Makefile.am): Likewise.
44522         * modules/eealloc (Makefile.am): Likewise.
44523         * modules/error (Makefile.am): Likewise.
44524         * modules/euidaccess (Makefile.am): Likewise.
44525         * modules/exclude (Makefile.am): Likewise.
44526         * modules/exitfail (Makefile.am): Likewise.
44527         * modules/fcntl-safer (Makefile.am): Likewise.
44528         * modules/fcntl (Makefile.am): Likewise.
44529         * modules/file-type (Makefile.am): Likewise.
44530         * modules/fileblocks (Makefile.am): Likewise.
44531         * modules/filemode (Makefile.am): Likewise.
44532         * modules/filenamecat (Makefile.am): Likewise.
44533         * modules/fnmatch (Makefile.am): Likewise.
44534         * modules/fopen-safer (Makefile.am): Likewise.
44535         * modules/fpending (Makefile.am): Likewise.
44536         * modules/fprintftime (Makefile.am): Likewise.
44537         * modules/free (Makefile.am): Likewise.
44538         * modules/fsusage (Makefile.am): Likewise.
44539         * modules/ftruncate (Makefile.am): Likewise.
44540         * modules/fts (Makefile.am): Likewise.
44541         * modules/gc-arcfour (Makefile.am): Likewise.
44542         * modules/gc-des (Makefile.am): Likewise.
44543         * modules/gc-hmac-md5 (Makefile.am): Likewise.
44544         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
44545         * modules/gc-md4 (Makefile.am): Likewise.
44546         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
44547         * modules/gc-sha1 (Makefile.am): Likewise.
44548         * modules/gc (Makefile.am): Likewise.
44549         * modules/getaddrinfo (Makefile.am): Likewise.
44550         * modules/getcwd (Makefile.am): Likewise.
44551         * modules/getdelim (Makefile.am): Likewise.
44552         * modules/getdomainname (Makefile.am): Likewise.
44553         * modules/getgroups (Makefile.am): Likewise.
44554         * modules/gethostname (Makefile.am): Likewise.
44555         * modules/gethrxtime (Makefile.am): Likewise.
44556         * modules/getline (Makefile.am): Likewise.
44557         * modules/getloadavg (Makefile.am): Likewise.
44558         * modules/getlogin_r (Makefile.am): Likewise.
44559         * modules/getndelim2 (Makefile.am): Likewise.
44560         * modules/getopt (Makefile.am): Likewise.
44561         * modules/getpagesize (Makefile.am): Likewise.
44562         * modules/getpass-gnu (Makefile.am): Likewise.
44563         * modules/getpass (Makefile.am): Likewise.
44564         * modules/getsubopt (Makefile.am): Likewise.
44565         * modules/gettime (Makefile.am): Likewise.
44566         * modules/gettimeofday (Makefile.am): Likewise.
44567         * modules/getugroups (Makefile.am): Likewise.
44568         * modules/getusershell (Makefile.am): Likewise.
44569         * modules/glob (Makefile.am): Likewise.
44570         * modules/group-member (Makefile.am): Likewise.
44571         * modules/hard-locale (Makefile.am): Likewise.
44572         * modules/hash (Makefile.am): Likewise.
44573         * modules/hmac-md5 (Makefile.am): Likewise.
44574         * modules/hmac-sha1 (Makefile.am): Likewise.
44575         * modules/human (Makefile.am): Likewise.
44576         * modules/idcache (Makefile.am): Likewise.
44577         * modules/imaxabs (Makefile.am): Likewise.
44578         * modules/imaxdiv (Makefile.am): Likewise.
44579         * modules/inet_ntop (Makefile.am): Likewise.
44580         * modules/inet_pton (Makefile.am): Likewise.
44581         * modules/intprops (Makefile.am): Likewise.
44582         * modules/inttostr (Makefile.am): Likewise.
44583         * modules/inttypes (Makefile.am): Likewise.
44584         * modules/isapipe (Makefile.am): Likewise.
44585         * modules/javaversion (Makefile.am): Likewise.
44586         * modules/lchmod (Makefile.am): Likewise.
44587         * modules/lchown (Makefile.am): Likewise.
44588         * modules/localcharset (Makefile.am): Likewise.
44589         * modules/long-options (Makefile.am): Likewise.
44590         * modules/lstat (Makefile.am): Likewise.
44591         * modules/malloc (Makefile.am): Likewise.
44592         * modules/mathl (Makefile.am): Likewise.
44593         * modules/mbchar (Makefile.am): Likewise.
44594         * modules/md2 (Makefile.am): Likewise.
44595         * modules/md4 (Makefile.am): Likewise.
44596         * modules/md5 (Makefile.am): Likewise.
44597         * modules/memcasecmp (Makefile.am): Likewise.
44598         * modules/memchr (Makefile.am): Likewise.
44599         * modules/memcmp (Makefile.am): Likewise.
44600         * modules/memcoll (Makefile.am): Likewise.
44601         * modules/memcpy (Makefile.am): Likewise.
44602         * modules/memmem (Makefile.am): Likewise.
44603         * modules/memmove (Makefile.am): Likewise.
44604         * modules/mempcpy (Makefile.am): Likewise.
44605         * modules/memrchr (Makefile.am): Likewise.
44606         * modules/memset (Makefile.am): Likewise.
44607         * modules/memxor (Makefile.am): Likewise.
44608         * modules/mkancesdirs (Makefile.am): Likewise.
44609         * modules/mkdir-p (Makefile.am): Likewise.
44610         * modules/mkdir (Makefile.am): Likewise.
44611         * modules/mkdtemp (Makefile.am): Likewise.
44612         * modules/mkstemp (Makefile.am): Likewise.
44613         * modules/mktime (Makefile.am): Likewise.
44614         * modules/modechange (Makefile.am): Likewise.
44615         * modules/mountlist (Makefile.am): Likewise.
44616         * modules/nanosleep (Makefile.am): Likewise.
44617         * modules/obstack (Makefile.am): Likewise.
44618         * modules/openat (Makefile.am): Likewise.
44619         * modules/pagealign_alloc (Makefile.am): Likewise.
44620         * modules/pathmax (Makefile.am): Likewise.
44621         * modules/physmem (Makefile.am): Likewise.
44622         * modules/poll (Makefile.am): Likewise.
44623         * modules/posixtm (Makefile.am): Likewise.
44624         * modules/posixver (Makefile.am): Likewise.
44625         * modules/putenv (Makefile.am): Likewise.
44626         * modules/quote (Makefile.am): Likewise.
44627         * modules/quotearg (Makefile.am): Likewise.
44628         * modules/raise (Makefile.am): Likewise.
44629         * modules/read-file (Makefile.am): Likewise.
44630         * modules/readline (Makefile.am): Likewise.
44631         * modules/readlink (Makefile.am): Likewise.
44632         * modules/readtokens (Makefile.am): Likewise.
44633         * modules/readutmp (Makefile.am): Likewise.
44634         * modules/realloc (Makefile.am): Likewise.
44635         * modules/regex (Makefile.am): Likewise.
44636         * modules/rename-dest-slash (Makefile.am): Likewise.
44637         * modules/rename (Makefile.am): Likewise.
44638         * modules/rijndael (Makefile.am): Likewise.
44639         * modules/rmdir (Makefile.am): Likewise.
44640         * modules/rpmatch (Makefile.am): Likewise.
44641         * modules/safe-read (Makefile.am): Likewise.
44642         * modules/safe-write (Makefile.am): Likewise.
44643         * modules/same-inode (Makefile.am): Likewise.
44644         * modules/same (Makefile.am): Likewise.
44645         * modules/save-cwd (Makefile.am): Likewise.
44646         * modules/savedir (Makefile.am): Likewise.
44647         * modules/setenv (Makefile.am): Likewise.
44648         * modules/settime (Makefile.am): Likewise.
44649         * modules/sha1 (Makefile.am): Likewise.
44650         * modules/sig2str (Makefile.am): Likewise.
44651         * modules/snprintf (Makefile.am): Likewise.
44652         * modules/stat-macros (Makefile.am): Likewise.
44653         * modules/stat-time (Makefile.am): Likewise.
44654         * modules/stdbool (Makefile.am): Likewise.
44655         * modules/stdint (Makefile.am): Likewise.
44656         * modules/stdlib-safer (Makefile.am): Likewise.
44657         * modules/stpcpy (Makefile.am): Likewise.
44658         * modules/stpncpy (Makefile.am): Likewise.
44659         * modules/strcase (Makefile.am): Likewise.
44660         * modules/strcasestr (Makefile.am): Likewise.
44661         * modules/strchrnul (Makefile.am): Likewise.
44662         * modules/strcspn (Makefile.am): Likewise.
44663         * modules/strdup (Makefile.am): Likewise.
44664         * modules/strerror (Makefile.am): Likewise.
44665         * modules/strftime (Makefile.am): Likewise.
44666         * modules/strndup (Makefile.am): Likewise.
44667         * modules/strnlen (Makefile.am): Likewise.
44668         * modules/strpbrk (Makefile.am): Likewise.
44669         * modules/strsep (Makefile.am): Likewise.
44670         * modules/strstr (Makefile.am): Likewise.
44671         * modules/strtod (Makefile.am): Likewise.
44672         * modules/strtoimax (Makefile.am): Likewise.
44673         * modules/strtok_r (Makefile.am): Likewise.
44674         * modules/strtol (Makefile.am): Likewise.
44675         * modules/strtoll (Makefile.am): Likewise.
44676         * modules/strtoul (Makefile.am): Likewise.
44677         * modules/strtoull (Makefile.am): Likewise.
44678         * modules/strtoumax (Makefile.am): Likewise.
44679         * modules/strverscmp (Makefile.am): Likewise.
44680         * modules/sys_socket (Makefile.am): Likewise.
44681         * modules/sys_stat (Makefile.am): Likewise.
44682         * modules/sysexits (Makefile.am): Likewise.
44683         * modules/time_r (Makefile.am): Likewise.
44684         * modules/timegm (Makefile.am): Likewise.
44685         * modules/timespec (Makefile.am): Likewise.
44686         * modules/tmpfile-safer (Makefile.am): Likewise.
44687         * modules/trim (Makefile.am): Likewise.
44688         * modules/unistd-safer (Makefile.am): Likewise.
44689         * modules/unlinkdir (Makefile.am): Likewise.
44690         * modules/unlocked-io (Makefile.am): Likewise.
44691         * modules/userspec (Makefile.am): Likewise.
44692         * modules/utime (Makefile.am): Likewise.
44693         * modules/utimecmp (Makefile.am): Likewise.
44694         * modules/utimens (Makefile.am): Likewise.
44695         * modules/vasnprintf (Makefile.am): Likewise.
44696         * modules/vasprintf (Makefile.am): Likewise.
44697         * modules/vsnprintf (Makefile.am): Likewise.
44698         * modules/xalloc (Makefile.am): Likewise.
44699         * modules/xgetcwd (Makefile.am): Likewise.
44700         * modules/xnanosleep (Makefile.am): Likewise.
44701         * modules/xreadlink (Makefile.am): Likewise.
44702         * modules/xstrtod (Makefile.am): Likewise.
44703         * modules/xstrtol (Makefile.am): Likewise.
44704         * modules/xstrtold (Makefile.am): Likewise.
44705         * modules/yesno (Makefile.am): Likewise.
44706         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
44707
44708 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
44709
44710         * modules/error (Makefile.am): Distribute files through
44711         EXTRA_DIST, not lib_SOURCES.
44712
44713 2006-10-12  Eric Blake  <ebb9@byu.net>
44714
44715         * modules/error (Makefile.am): Distribute files in /lib.
44716         * modules/obstack (Makefile.am): Likewise.
44717
44718 2006-10-12  Bruno Haible  <bruno@clisp.org>
44719
44720         * modules/acl (Makefile.am): Distribute all files in lib/ through
44721         EXTRA_DIST.
44722         * modules/arcfour (Makefile.am): Likewise.
44723         * modules/arctwo (Makefile.am): Likewise.
44724         * modules/argmatch (Makefile.am): Likewise.
44725         * modules/argz (Makefile.am): Likewise.
44726         * modules/atexit (Makefile.am): Likewise.
44727         * modules/backupfile (Makefile.am): Likewise.
44728         * modules/c-strtod (Makefile.am): Likewise.
44729         * modules/c-strtold (Makefile.am): Likewise.
44730         * modules/calloc (Makefile.am): Likewise.
44731         * modules/canon-host (Makefile.am): Likewise.
44732         * modules/canonicalize (Makefile.am): Likewise.
44733         * modules/chdir-long (Makefile.am): Likewise.
44734         * modules/chdir-safer (Makefile.am): Likewise.
44735         * modules/check-version (Makefile.am): Likewise.
44736         * modules/chown (Makefile.am): Likewise.
44737         * modules/cloexec (Makefile.am): Likewise.
44738         * modules/close-stream (Makefile.am): Likewise.
44739         * modules/closeout (Makefile.am): Likewise.
44740         * modules/crc (Makefile.am): Likewise.
44741         * modules/cycle-check (Makefile.am): Likewise.
44742         * modules/des (Makefile.am): Likewise.
44743         * modules/dirfd (Makefile.am): Likewise.
44744         * modules/dirname (Makefile.am): Likewise.
44745         * modules/dup2 (Makefile.am): Likewise.
44746         * modules/euidaccess (Makefile.am): Likewise.
44747         * modules/exclude (Makefile.am): Likewise.
44748         * modules/exitfail (Makefile.am): Likewise.
44749         * modules/fcntl-safer (Makefile.am): Likewise.
44750         * modules/file-type (Makefile.am): Likewise.
44751         * modules/fileblocks (Makefile.am): Likewise.
44752         * modules/filemode (Makefile.am): Likewise.
44753         * modules/filenamecat (Makefile.am): Likewise.
44754         * modules/fnmatch (Makefile.am): Likewise.
44755         * modules/fopen-safer (Makefile.am): Likewise.
44756         * modules/fpending (Makefile.am): Likewise.
44757         * modules/fprintftime (Makefile.am): Likewise.
44758         * modules/free (Makefile.am): Likewise.
44759         * modules/fsusage (Makefile.am): Likewise.
44760         * modules/ftruncate (Makefile.am): Likewise.
44761         * modules/fts (Makefile.am): Likewise.
44762         * modules/gc (Makefile.am): Likewise.
44763         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
44764         * modules/getaddrinfo (Makefile.am): Likewise.
44765         * modules/getcwd (Makefile.am): Likewise.
44766         * modules/getdelim (Makefile.am): Likewise.
44767         * modules/getdomainname (Makefile.am): Likewise.
44768         * modules/getgroups (Makefile.am): Likewise.
44769         * modules/gethostname (Makefile.am): Likewise.
44770         * modules/gethrxtime (Makefile.am): Likewise.
44771         * modules/getline (Makefile.am): Likewise.
44772         * modules/getloadavg (Makefile.am): Likewise.
44773         * modules/getlogin_r (Makefile.am): Likewise.
44774         * modules/getopt (Makefile.am): Likewise.
44775         * modules/getpass (Makefile.am): Likewise.
44776         * modules/getpass-gnu (Makefile.am): Likewise.
44777         * modules/getsubopt (Makefile.am): Likewise.
44778         * modules/gettime (Makefile.am): Likewise.
44779         * modules/gettimeofday (Makefile.am): Likewise.
44780         * modules/getugroups (Makefile.am): Likewise.
44781         * modules/getusershell (Makefile.am): Likewise.
44782         * modules/glob (Makefile.am): Likewise.
44783         * modules/group-member (Makefile.am): Likewise.
44784         * modules/hard-locale (Makefile.am): Likewise.
44785         * modules/hash (Makefile.am): Likewise.
44786         * modules/hmac-md5 (Makefile.am): Likewise.
44787         * modules/hmac-sha1 (Makefile.am): Likewise.
44788         * modules/human (Makefile.am): Likewise.
44789         * modules/idcache (Makefile.am): Likewise.
44790         * modules/imaxabs (Makefile.am): Likewise.
44791         * modules/imaxdiv (Makefile.am): Likewise.
44792         * modules/inet_ntop (Makefile.am): Likewise.
44793         * modules/inet_pton (Makefile.am): Likewise.
44794         * modules/inttostr (Makefile.am): Likewise.
44795         * modules/isapipe (Makefile.am): Likewise.
44796         * modules/lchown (Makefile.am): Likewise.
44797         * modules/long-options (Makefile.am): Likewise.
44798         * modules/lstat (Makefile.am): Likewise.
44799         * modules/malloc (Makefile.am): Likewise.
44800         * modules/mathl (Makefile.am): Likewise.
44801         * modules/mbchar (Makefile.am): Likewise.
44802         * modules/md2 (Makefile.am): Likewise.
44803         * modules/md4 (Makefile.am): Likewise.
44804         * modules/md5 (Makefile.am): Likewise.
44805         * modules/memcasecmp (Makefile.am): Likewise.
44806         * modules/memchr (Makefile.am): Likewise.
44807         * modules/memcmp (Makefile.am): Likewise.
44808         * modules/memcoll (Makefile.am): Likewise.
44809         * modules/memcpy (Makefile.am): Likewise.
44810         * modules/memmem (Makefile.am): Likewise.
44811         * modules/memmove (Makefile.am): Likewise.
44812         * modules/mempcpy (Makefile.am): Likewise.
44813         * modules/memrchr (Makefile.am): Likewise.
44814         * modules/memset (Makefile.am): Likewise.
44815         * modules/memxor (Makefile.am): Likewise.
44816         * modules/mkancesdirs (Makefile.am): Likewise.
44817         * modules/mkdir (Makefile.am): Likewise.
44818         * modules/mkdir-p (Makefile.am): Likewise.
44819         * modules/mkdtemp (Makefile.am): Likewise.
44820         * modules/mkstemp (Makefile.am): Likewise.
44821         * modules/mktime (Makefile.am): Likewise.
44822         * modules/modechange (Makefile.am): Likewise.
44823         * modules/mountlist (Makefile.am): Likewise.
44824         * modules/nanosleep (Makefile.am): Likewise.
44825         * modules/openat (Makefile.am): Likewise.
44826         * modules/pagealign_alloc (Makefile.am): Likewise.
44827         * modules/physmem (Makefile.am): Likewise.
44828         * modules/poll (Makefile.am): Likewise.
44829         * modules/posixtm (Makefile.am): Likewise.
44830         * modules/posixver (Makefile.am): Likewise.
44831         * modules/putenv (Makefile.am): Likewise.
44832         * modules/quote (Makefile.am): Likewise.
44833         * modules/quotearg (Makefile.am): Likewise.
44834         * modules/raise (Makefile.am): Likewise.
44835         * modules/read-file (Makefile.am): Likewise.
44836         * modules/readline (Makefile.am): Likewise.
44837         * modules/readlink (Makefile.am): Likewise.
44838         * modules/readtokens (Makefile.am): Likewise.
44839         * modules/readutmp (Makefile.am): Likewise.
44840         * modules/realloc (Makefile.am): Likewise.
44841         * modules/regex (Makefile.am): Likewise.
44842         * modules/rename (Makefile.am): Likewise.
44843         * modules/rename-dest-slash (Makefile.am): Likewise.
44844         * modules/rijndael (Makefile.am): Likewise.
44845         * modules/rmdir (Makefile.am): Likewise.
44846         * modules/rpmatch (Makefile.am): Likewise.
44847         * modules/safe-read (Makefile.am): Likewise.
44848         * modules/safe-write (Makefile.am): Likewise.
44849         * modules/same (Makefile.am): Likewise.
44850         * modules/save-cwd (Makefile.am): Likewise.
44851         * modules/savedir (Makefile.am): Likewise.
44852         * modules/setenv (Makefile.am): Likewise.
44853         * modules/settime (Makefile.am): Likewise.
44854         * modules/sha1 (Makefile.am): Likewise.
44855         * modules/sig2str (Makefile.am): Likewise.
44856         * modules/snprintf (Makefile.am): Likewise.
44857         * modules/stdlib-safer (Makefile.am): Likewise.
44858         * modules/stpcpy (Makefile.am): Likewise.
44859         * modules/stpncpy (Makefile.am): Likewise.
44860         * modules/strcase (Makefile.am): Likewise.
44861         * modules/strcasestr (Makefile.am): Likewise.
44862         * modules/strchrnul (Makefile.am): Likewise.
44863         * modules/strcspn (Makefile.am): Likewise.
44864         * modules/strdup (Makefile.am): Likewise.
44865         * modules/strerror (Makefile.am): Likewise.
44866         * modules/strftime (Makefile.am): Likewise.
44867         * modules/strndup (Makefile.am): Likewise.
44868         * modules/strnlen (Makefile.am): Likewise.
44869         * modules/strpbrk (Makefile.am): Likewise.
44870         * modules/strsep (Makefile.am): Likewise.
44871         * modules/strstr (Makefile.am): Likewise.
44872         * modules/strtod (Makefile.am): Likewise.
44873         * modules/strtoimax (Makefile.am): Likewise.
44874         * modules/strtok_r (Makefile.am): Likewise.
44875         * modules/strtol (Makefile.am): Likewise.
44876         * modules/strtoll (Makefile.am): Likewise.
44877         * modules/strtoul (Makefile.am): Likewise.
44878         * modules/strtoull (Makefile.am): Likewise.
44879         * modules/strtoumax (Makefile.am): Likewise.
44880         * modules/strverscmp (Makefile.am): Likewise.
44881         * modules/time_r (Makefile.am): Likewise.
44882         * modules/timegm (Makefile.am): Likewise.
44883         * modules/tmpfile-safer (Makefile.am): Likewise.
44884         * modules/unistd-safer (Makefile.am): Likewise.
44885         * modules/unlinkdir (Makefile.am): Likewise.
44886         * modules/userspec (Makefile.am): Likewise.
44887         * modules/utime (Makefile.am): Likewise.
44888         * modules/utimecmp (Makefile.am): Likewise.
44889         * modules/utimens (Makefile.am): Likewise.
44890         * modules/vasnprintf (Makefile.am): Likewise.
44891         * modules/vasprintf (Makefile.am): Likewise.
44892         * modules/vsnprintf (Makefile.am): Likewise.
44893         * modules/xalloc (Makefile.am): Likewise.
44894         * modules/xgetcwd (Makefile.am): Likewise.
44895         * modules/xnanosleep (Makefile.am): Likewise.
44896         * modules/xreadlink (Makefile.am): Likewise.
44897         * modules/xstrtod (Makefile.am): Likewise.
44898         * modules/xstrtol (Makefile.am): Likewise.
44899         * modules/xstrtold (Makefile.am): Likewise.
44900         * modules/yesno (Makefile.am): Likewise.
44901
44902 2006-10-12  Jim Meyering  <jim@meyering.net>
44903
44904         * m4/getloadavg.m4: Revert the change below.
44905
44906         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
44907         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
44908         fail with a symlink, which is what coreutils' ./bootstrap now
44909         creates by default.
44910
44911 2006-10-12  Bruno Haible  <bruno@clisp.org>
44912
44913         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
44914         mingw.
44915         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
44916         MSVC and mingw explicitly.
44917
44918 2006-10-11  Simon Josefsson  <jas@extundo.com>
44919             Bruno Haible  <bruno@clisp.org>
44920
44921         Add support for multiple gnulib-tool invocations in the scope of a
44922         single configure.ac file.
44923         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
44924         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
44925         with the same contents as the _LIBADD variable.
44926         (func_emit_initmacro_start, func_emit_initmacro_end,
44927         func_emit_initmacro_done): New functions.
44928         (func_import, func_create_testdir): Invoke them. Allow the identifiers
44929         gl_LIBOBJS and gl_LTLIBOBJS.
44930
44931 2006-10-11  Bruno Haible  <bruno@clisp.org>
44932
44933         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
44934         (func_create_testdir): Don't create po/Makefile.am, don't invoke
44935         autoreconf. Instead, invoke autopoint explicitly but move back the
44936         *.m4 files from gnulib.
44937
44938 2006-10-11  Bruno Haible  <bruno@clisp.org>
44939
44940         * gnulib-tool (func_usage): Make module names after --create-testdir
44941         optional.
44942         (func_create_testdir): If no module was specified, use nearly all
44943         modules.
44944
44945 2006-10-12  Jim Meyering  <jim@meyering.net>
44946
44947         Big performance improvement for fts-based tools that use FTS_NOSTAT.
44948         Avoid spurious inode-mismatch problems on non-POSIX file systems.
44949         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
44950         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
44951         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
44952         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
44953         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
44954         (fts_set_stat_required): New function.
44955         (fts_open): Defer the calls to fts_stat, if possible or requested.
44956         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
44957         into fts_stat itself.
44958         (fts_read): Perform any required (deferred) fts_stat call.
44959         (fts_build): Likewise, for the directory we're about to open and read.
44960         In the readdir loop, carefully decide whether each entry will require
44961         an eventual call to fts_stat, using dirent.d_type info if available.
44962         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
44963         a command line argument into this function.  Update all callers.
44964         Map a return value of FTS_DOT to FTS_D for a command line argument.
44965         * modules/fts (Depends-on): Add d-type.  Alphabetize.
44966         Thanks to Miklos Szeredi for his tenacity and for the initial
44967         bug report about "find" failing on a FUSE-based file system.
44968
44969         * lib/fts.c (fts_open): Use consistent indentation.
44970
44971 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
44972
44973         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
44974         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
44975         reported by Jim Meyering.  All uses of cache variables renamed
44976         to match Autoconf's.
44977         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
44978         the other one.
44979
44980         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
44981         Fix misspelling in diagnostic.
44982
44983 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
44984
44985         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
44986         defined.  Problem reported by Matthew Woehlke.
44987
44988         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
44989         Add support for Tandem NonStop R series.
44990         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
44991         Use new macro.
44992
44993         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
44994         (has_trailing_slash): Omit size arg; all callers changed.
44995         Omit 'inline', since it doesn't help performance and we'd
44996         need to configure it.
44997         Don't count //, ///, etc. as having a trailing slash.
44998         As a side effect, this removes a C99ism reported by Matthew Woehlke.
44999         (rpl_rename_dest_slash): On failure, use rename's errno rather
45000         than (in some cases) an incorrect or junk errno.
45001         Simplify code by removing need to compute length; this does
45002         cause it to make two passes instead of one over the file name,
45003         but it's worth it.
45004
45005         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
45006         change, since Autoconf's version may no longer be appropriate now
45007         that we are using CVS Autoconf's version.  Add support for Tandem.
45008
45009 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45010             Bruno Haible  <bruno@clisp.org>
45011
45012         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
45013         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
45014         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
45015         gl_AC_TYPE_LONG_LONG.
45016
45017         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
45018         instead of HAVE_LONG_LONG.
45019         * lib/printf-args.c (printf_fetchargs): Likewise.
45020         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
45021         * lib/vasnprintf.c (VASNPRINTF): Likewise.
45022         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
45023         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
45024         gl_AC_TYPE_LONG_LONG.
45025
45026 2006-10-11  Bruno Haible  <bruno@clisp.org>
45027
45028         * m4/longlong.m4: Add comments.
45029         * m4/ulonglong.m4: Likewise.
45030
45031 2006-10-10  Bruno Haible  <bruno@clisp.org>
45032
45033         Make it possible to #define stpcpy, strdup to aliases.
45034         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
45035         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
45036
45037 2006-10-10  Bruno Haible  <bruno@clisp.org>
45038
45039         Make it possible to #define gcd to an alias.
45040         * lib/gcd.c: Include config.h.
45041
45042 2006-10-10  Bruno Haible  <bruno@clisp.org>
45043
45044         Make it possible to #define c_isascii to an alias.
45045         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
45046         defined. Undefine the macros before defining them, to avoid gcc
45047         warnings.
45048         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
45049         define NO_C_CTYPE_MACROS early.
45050
45051 2006-10-10  Bruno Haible  <bruno@clisp.org>
45052
45053         Make it possible to #define set_program_name to an alias.
45054         * lib/progname.c: Don't undefine set_program_name; instead, undefine
45055         ENABLE_RELOCATABLE early.
45056
45057 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
45058
45059         Port to Tandem NSK OSS, which has 64-bit signed int but at most
45060         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
45061         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
45062         More generally, don't assume that 64-bit signed int is available
45063         if unsigned int is, and vice versa.
45064         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
45065         unsigned symbols, not on their signed counterparts.
45066         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
45067         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
45068         (UINT64_C, UINTMAX_C):
45069         Likewise.
45070         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
45071         unsigned counterparts.
45072         (Have_long_long, Unsigned): New macros.
45073         (Int): Renamed from INT.
45074         (strtoimax): Use the new macros.
45075         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
45076         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
45077         * modules/inttypes (inttypes.h): Substitute
45078         HAVE_UNSIGNED_LONG_LONG_INT.
45079         * modules/stdint (stdint.h): Likewise.
45080         (Files): Add m4/ulonglong.m4.
45081
45082 2006-10-10  Bruno Haible  <bruno@clisp.org>
45083
45084         Fix a gcc -Wshadow warning.
45085         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
45086         to 'bucket'.
45087         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
45088         gl_linked_indexof_from_to): Likewise.
45089         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
45090         Likewise.
45091         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
45092         Likewise.
45093         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
45094         Reported by Eric Blake.
45095
45096 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
45097
45098         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
45099         for NetBSD.  Problem reported by Bruno Haible.
45100
45101 2006-10-09  Jim Meyering  <jim@meyering.net>
45102
45103         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
45104         Patch from Bruno Haible.
45105
45106 2006-10-09  Jim Meyering  <jim@meyering.net>
45107
45108         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
45109         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
45110         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
45111
45112 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45113
45114         Don't include <config.h> twice; this doesn't work in some cases,
45115         e.g., when config.h has "#define intmax_t long long int" and
45116         we include <config.h>, <inttypes.h>, <config.h> in that order.
45117         Problem reported by Matthew Woehlke in:
45118         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
45119         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
45120         * lib/fts-cycle.c: Don't include config.h.
45121         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
45122         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
45123         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
45124         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
45125         inttypes.h.
45126         * lib/xstrtoumax.c: Likewise.
45127         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
45128         __strtol and the like, so that this module is more like its siblings.
45129         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
45130         Remove; no longer needed now that we assume gnulib inttypes.h.
45131
45132 2006-10-08  Bruno Haible  <bruno@clisp.org>
45133
45134         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
45135         option.
45136
45137 2006-10-07  Jim Meyering  <jim@meyering.net>
45138
45139         * modules/inttypes (inttypes.h): Revert what seems to have been
45140         an inadvertent part of today's change: use "|", not "/" in the
45141         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
45142
45143 2006-10-07  Bruno Haible  <bruno@clisp.org>
45144
45145         * modules/sublist: New file.
45146
45147 2006-10-07  Bruno Haible  <bruno@clisp.org>
45148
45149         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
45150         * modules/argz (argz.h): Likewise.
45151         * modules/arpa_inet (arpa/inet.h): Likewise.
45152         * modules/byteswap (byteswap.h): Likewise.
45153         * modules/configmake (configmake.h): Likewise.
45154         * modules/fcntl (fcntl.h): Likewise.
45155         * modules/fnmatch (fnmatch.h): Likewise.
45156         * modules/getopt (getopt.h): Likewise.
45157         * modules/glob (glob.h): Likewise.
45158         * modules/inttypes (inttypes.h): Likewise.
45159         * modules/netinet_in (netinet/in.h): Likewise.
45160         * modules/poll (poll.h): Likewise.
45161         * modules/stdbool (stdbool.h): Likewise.
45162         * modules/stdint (stdint.h): Likewise.
45163         * modules/sys_select (sys/select.h): Likewise.
45164         * modules/sys_socket (sys/socket.h): Likewise.
45165         * modules/sys_stat (sys/stat.h): Likewise.
45166         * modules/sysexits (sysexits.h): Likewise.
45167         * modules/unistd (unistd.h): Likewise.
45168         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45169         Add a "DO NOT EDIT" comment to the generated file.
45170         (func_import): Likewise for gnulib-comp.m4.
45171
45172 2006-10-07  Bruno Haible  <bruno@clisp.org>
45173
45174         * lib/gl_sublist.h: New file.
45175         * lib/gl_sublist.c: New file.
45176
45177 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
45178
45179         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
45180         name (relative to the original working directory) and the file
45181         name component (relative to the temporary working directory).  All
45182         callers changed.
45183         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
45184         * lib/mkdir-p.c (make_dir_parents): Likewise.
45185         * lib/mkdir-p.h (make_dir_parents): Likewise.
45186
45187 2006-10-06  Eric Blake  <ebb9@byu.net>
45188
45189         Define several macros for use by the clean-temp module.
45190         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
45191         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
45192         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
45193
45194         * lib/clean-temp.h (close_stream_temp): New declaration.
45195         * lib/clean-temp.c (includes): Pull in headers according to what
45196         other modules are in use.
45197         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
45198
45199 2006-10-06  Bruno Haible  <bruno@clisp.org>
45200
45201         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
45202         instead of fopen, fwriteerror.
45203
45204 2006-10-06  Bruno Haible  <bruno@clisp.org>
45205
45206         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
45207         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
45208         int.
45209         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
45210         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
45211         Return an error indicator.
45212         Suggested by Eric Blake.
45213
45214 2006-10-06  Bruno Haible  <bruno@clisp.org>
45215
45216         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
45217         Reported by Eric Blake.
45218
45219 2006-10-06  Bruno Haible  <bruno@clisp.org>
45220
45221         * modules/closeout (Description): Mention stderr too.
45222
45223 2006-10-06  Bruno Haible  <bruno@clisp.org>
45224         and Paul Eggert  <eggert@cs.ucla.edu>
45225
45226         * lib/closeout.c (close_stdout): Also close stderr.
45227         * lib/closeout.h: Update comment.
45228
45229 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
45230
45231         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
45232         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
45233         * lib/dirchownmod.c: Include lchown.h.
45234         * lib/lchown.c: Don't include files that lchown.h now includes.
45235         Don't declare chown, since lchown.h now does that.
45236         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
45237         (lchown): Define to rpl_chown if lchown is declared but
45238         does not exist.  Declare using a prototype if lchown is not
45239         declared.  Add a copyright notice.
45240         * lib/mkstemp.h: Include <unistd.h>.
45241         * lib/openat.c: Include lchown.h.
45242
45243         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
45244         we now test for that separately.
45245         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
45246         rather than O_NOFOLLOW, when testing whether it's possible to
45247         avoid a race condition reliably.
45248         * lib/savewd.c (savewd_chdir): Likewise.
45249
45250         Remove macros that are no longer needed now that stdint.h is
45251         reliable.
45252         * lib/fsusage.c (UINTMAX_MAX): Remove.
45253         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
45254         * lib/utimecmp.c (SIZE_MAX): Remove.
45255
45256         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
45257
45258         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
45259         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
45260         O_NOATIME works.
45261
45262 2006-10-05  Bruno Haible  <bruno@clisp.org>
45263
45264         * lib/gl_list.h (gl_sortedlist_search_from_to,
45265         gl_sortedlist_indexof_from_to): New declarations.
45266         (gl_list_implementation): New fields sortedlist_search_from_to,
45267         sortedlist_indexof_from_to.
45268         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
45269         inline functions.
45270         * lib/gl_list.c (gl_sortedlist_search_from_to,
45271         gl_sortedlist_indexof_from_to): New functions.
45272         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
45273         function.
45274         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
45275         (gl_array_sortedlist_search_from_to): New function.
45276         (gl_array_list_implementation): Update.
45277         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
45278         function.
45279         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
45280         (gl_carray_sortedlist_search_from_to): New function.
45281         (gl_carray_list_implementation): Update.
45282         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
45283         gl_linked_sortedlist_indexof_from_to): New functions.
45284         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
45285         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
45286         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
45287         gl_tree_sortedlist_indexof_from_to): New functions.
45288         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
45289         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
45290         Update.
45291         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
45292         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
45293         Update.
45294
45295 2006-10-05  Bruno Haible  <bruno@clisp.org>
45296
45297         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
45298         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
45299         (struct gl_list_implementation): Add fields search_from_to,
45300         indexof_from_to. Remove fields search, indexof.
45301         (gl_list_search): Use the search_from_to method.
45302         (gl_list_search_from, gl_list_search_from_to): New functions.
45303         (gl_list_indexof): Use the indexof_from_to method.
45304         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
45305         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
45306         (gl_list_search_from, gl_list_search_from_to): New functions.
45307         (gl_list_indexof): Use the indexof_from_to method.
45308         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
45309         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
45310         gl_array_indexof. Add start_index, end_index arguments.
45311         (gl_array_search_from_to): Renamed from gl_array_search. Add
45312         start_index, end_index arguments.
45313         (gl_array_remove, gl_array_list_implementation): Update.
45314         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
45315         gl_carray_indexof. Add start_index, end_index arguments.
45316         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
45317         start_index, end_index arguments.
45318         (gl_carray_remove, gl_carray_list_implementation): Update.
45319         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
45320         gl_linked_search. Add start_index, end_index arguments.
45321         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
45322         start_index, end_index arguments.
45323         (gl_linked_remove): Update.
45324         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
45325         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
45326         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
45327         field to 'size_t'.
45328         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
45329         gl_tree_search. Add start_index, end_index arguments.
45330         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
45331         start_index, end_index arguments.
45332         (gl_tree_remove): Update.
45333         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
45334         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
45335         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
45336         function.
45337         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
45338         gl_tree_search. Add start_index, end_index arguments.
45339         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
45340         start_index, end_index arguments.
45341         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
45342         Update.
45343         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
45344
45345 2006-10-05  Bruno Haible  <bruno@clisp.org>
45346
45347         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
45348
45349         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
45350         fwriteerror_temp): New declarations.
45351         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
45352         (descriptors): New variable.
45353         (cleanup): First, close the descriptors.
45354         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
45355         fclose_temp, fwriteerror_temp): New functions.
45356
45357 2006-10-04  Jim Meyering  <jim@meyering.net>
45358
45359         * lib/fts.c (fts_open): Tiny comment change.
45360
45361 2006-10-04  Bruno Haible  <bruno@clisp.org>
45362
45363         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
45364         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
45365         gl_LOCK_BODY.
45366         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
45367         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
45368         gl_LOCK_EARLY_BODY.
45369         (gl_LOCK): Require gl_LOCK_BODY.
45370
45371 2006-10-04  Bruno Haible  <bruno@clisp.org>
45372
45373         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
45374         (gl_oset_search_atleast): New declaration.
45375         (struct gl_oset_implementation): Add field 'search_atleast'.
45376         (gl_oset_search_atleast): New inline function.
45377         * lib/gl_oset.c (gl_oset_search_atleast): New function.
45378         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
45379         (gl_array_oset_implementation): Update.
45380         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
45381         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
45382         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
45383
45384 2006-10-04  Bruno Haible  <bruno@clisp.org>
45385
45386         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
45387
45388 2006-10-03  Bruno Haible  <bruno@clisp.org>
45389
45390         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
45391         from gl_avltreehash_list_implementation.
45392
45393 2006-10-03  Bruno Haible  <bruno@clisp.org>
45394
45395         * lib/gl_oset.c (gl_oset_add): Fix return type.
45396
45397 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
45398
45399         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
45400
45401 2006-10-02  Eric Blake  <ebb9@byu.net>
45402
45403         * modules/strnlen (Depends-on): Add extensions.
45404
45405 2006-10-02  Eric Blake  <ebb9@byu.net>
45406
45407         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
45408         definition in 2.60+.
45409
45410 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
45411
45412         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
45413         checks.
45414
45415 2006-10-02  Bruno Haible  <bruno@clisp.org>
45416
45417         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
45418         to the AUTOMAKE_OPTIONS.
45419         Reported by Jim Meyering.
45420
45421 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
45422
45423         Work around bug in Solaris 10 /proc file system:
45424         /proc/self/fd/NNN/.. isn't the parent directory of
45425         the directory whose file descriptor is NNN.  This needs to
45426         be worked around at run time, not compile time, since a
45427         program might be built on Solaris 8, where things work, and
45428         run on Solaris 10.
45429         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
45430         to use the following interface instead:
45431         (OPENAT_BUFFER_SIZE): New macro.
45432         (openat_proc_name): New function.
45433         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
45434         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
45435         Likewise.
45436         * lib/openat-proc.c: New file.
45437         * modules/openat (Files): Add lib/openat-proc.c.
45438         (Depends-on): Add same-inode, stdbool.
45439         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
45440
45441 2006-09-29  Bruno Haible  <bruno@clisp.org>
45442
45443         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
45444         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
45445         argument. Set stdout_closed before testing for ferror, not after.
45446         (fwriteerror, fwriteerror_no_ebadf): New functions.
45447
45448 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45449
45450         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
45451
45452 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
45453
45454         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
45455         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
45456
45457 2006-09-28  Jim Meyering  <jim@meyering.net>
45458
45459         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
45460         Include <unistd.h>.
45461
45462 2006-09-28  Bruno Haible  <bruno@clisp.org>
45463
45464         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
45465         * modules/linkedhash-list (Depends-on): Likewise.
45466         * modules/rbtreehash-list (Depends-on): Likewise.
45467
45468 2006-09-28  Bruno Haible  <bruno@clisp.org>
45469
45470         * lib/strndup.h: Simplify the redefinition of strndup.
45471         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
45472         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
45473
45474 2006-09-28  Bruno Haible  <bruno@clisp.org>
45475
45476         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
45477         * lib/gl_linkedhash_list.c: Likewise.
45478         * lib/gl_rbtreehash_list.c: Likewise.
45479
45480 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
45481
45482         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
45483         getaddrinfo.
45484
45485         * lib/__fpending.h: Don't include <stdio_ext.h> unless
45486         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
45487         it causes <stdio_ext.h> to cause a compile-time error.
45488         Problem reported by Nelson H. F. Beebe.
45489         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
45490         of HAVE_DECL___PENDING.
45491
45492         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
45493         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
45494         declaration.
45495
45496 2006-09-27  Jim Meyering  <jim@meyering.net>
45497
45498         This file could end up with a definition for a function
45499         named __strndup, rather than rpl_strndup on a system with
45500         incomplete weak_alias support.
45501         * lib/strndup.c (strndup): Rename from __strndup.
45502         Remove #defines that used to map __strndup to strndup.
45503         Don't use K&R prototypes.
45504         Remove LIBC-related code, since this file is not sync'd with glibc.
45505         * lib/strndup.h: Revamp, accordingly.
45506         * m4/strndup.m4: Modernize.
45507
45508 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
45509
45510         * modules/savewd (Depends-on): Add 'raise'.
45511         * lib/savewd.c: Include <signal.h>, for 'raise'.
45512
45513 2006-09-26  Jim Meyering  <jim@meyering.net>
45514
45515         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
45516         when we detect Darwin 8.7.0's acl_get_file bug.
45517         Rearrange to perform the new (below) run-test while $LIBS
45518         contains any acl-related library.  Set USE_ACL at the end.
45519         (gl_ACL_GET_FILE): New function.
45520
45521 2006-09-26  Eric Blake  <ebb9@byu.net>
45522
45523         * lib/verror.c: Include <config.h> unconditionally.
45524
45525 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
45526
45527         * modules/clock-time (Maintainer): Add self.
45528         * modules/getlogin_r (Depends-on): Add extensions.
45529
45530 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45531
45532         * modules/clock-time: New module.
45533         * modules/nanosleep (Depends-on): Add clock-time.
45534         * modules/gethrxtime (Depends-on): Likewise.
45535         * modules/gettime (Depends-on): Likewise.
45536         * modules/settime (Depends-on): Likewise.
45537
45538         * modules/fts-lgpl: Depend on openat.
45539         * modules/mkancesdirs: Depend on savewd.
45540         * modules/mkdir-p: Likewise.
45541
45542 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45543
45544         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
45545
45546         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
45547         `gl_have_arbitrary_file_name_length_limit' to
45548         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
45549         actually works between configure runs.
45550
45551 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45552             Bruno Haible  <bruno@clisp.org>
45553
45554         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
45555
45556 2006-09-25  Jim Meyering  <jim@meyering.net>
45557
45558         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
45559         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
45560
45561 2006-09-25  Eric Blake  <ebb9@byu.net>
45562
45563         * gnulib-tool (func_import, func_create_testdir): Fix typos in
45564         exec's in 2006-09-18 patch when shuffling fds.
45565
45566 2006-09-25  Bruno Haible  <bruno@clisp.org>
45567
45568         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
45569         Reported by Jim Meyering.
45570
45571 2006-09-24  Jim Meyering  <jim@meyering.net>
45572
45573         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
45574         compare a pointer against a literal "0".  That caused failures with
45575         at least HP-UX's hpcc.
45576
45577 2006-09-22  Simon Josefsson  <jas@extundo.com>
45578
45579         * modules/gc-sha1:
45580         * modules/gc-md4:
45581         * modules/gc-hmac-sha1:
45582         * modules/gc-hmac-md5:
45583         * modules/gc-des:
45584         * modules/gc-arcfour: Distribute more files.
45585
45586 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45587
45588         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
45589         (gl_linked_iterator_from_to): Initialize struct completely.
45590         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
45591         (gl_tree_iterator_from_to): Likewise
45592         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
45593         * lib/gl_array_list.c [lint] (gl_array_iterator)
45594         (gl_array_iterator_from_to): Likewise.
45595         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
45596         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
45597         (gl_carray_iterator_from_to): Likewise.
45598
45599         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
45600         * lib/md4.c (md4_process_block): Remove unused variable.
45601         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
45602         parentheses for clarity.
45603
45604 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45605
45606         * modules/bison-i18n (Depends-on): Add gettext.
45607
45608 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45609
45610         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
45611         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
45612         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
45613         also add missing comma that caused broken test.
45614         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
45615         stdlib.h, for `abort'.
45616         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
45617         variables.
45618         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
45619         include unistd.h if present, for `rmdir'.
45620         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
45621         variables.
45622         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
45623         in the process include standard headers for prototypes.
45624         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
45625         gets declared on GNU/Linux.
45626         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
45627         unistd.h, for `rmdir'.
45628         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
45629
45630         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
45631         always true.
45632         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
45633
45634         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
45635
45636 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45637
45638         * gnulib-tool (func_version): Create output all at once.  This
45639         may help avoid triggering unnecessary SIGPIPEs, and at any
45640         rate it doesn't hurt.
45641
45642 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45643             Bruno Haible  <bruno@clisp.org>
45644
45645         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
45646         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45647         * m4/signed.m4 (bh_C_SIGNED): Likewise.
45648
45649         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
45650         (gl_FUNC_VASPRINTF): Invoke it.
45651
45652 2006-09-22  Bruno Haible  <bruno@clisp.org>
45653
45654         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
45655         getloadavg.c as first argument.
45656
45657 2006-09-22  Bruno Haible  <bruno@clisp.org>
45658
45659         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
45660         at the beginning of the gl_INIT macro.
45661         * modules/getloadavg (configure.ac): Pass $gl_source_base to
45662         gl_GETLOADAVG.
45663
45664 2006-09-22  Bruno Haible  <bruno@clisp.org>
45665
45666         * gnulib-tool (func_create_megatestdir): Don't include the config-h
45667         module.
45668         Suggested by Ralf Wildenhues.
45669
45670 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
45671
45672         Import this patch from libc:
45673
45674         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
45675
45676         * lib/regex_internal.c (re_string_reconstruct): Handle
45677         offset < pstr->valid_raw_len && pstr->offsets_needed case.
45678         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
45679         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
45680         re_string_context_at.
45681
45682         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
45683         now requires it.
45684         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
45685         gl_REGEX now does it for us.
45686         (gl_REGEX): Add test taken from
45687         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
45688
45689         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
45690         Check that large offsets work.  Modernize Autoconf usages.
45691         Prefer "yes" to mean a good thing rather than a bad.
45692         Don't put "#define mkstemp" in config.h, as this might interfere
45693         with standard system headers that "#define mkstemp mkstemp64".
45694
45695         * modules/mkstemp (Depends-on): Add extensions, so that
45696         mkstemp is visible on some platforms.
45697         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
45698         (Include): Change to "mkstemp.h" from <stdlib.h>.
45699         (Files): Add mkstemp.h.
45700
45701         * lib/mkstemp.h: New file, since some standard headers
45702         #define mkstemp.
45703         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
45704         Include "mkstemp.h".
45705         Make the _LIBC code resemble glibc original more,
45706         e.g., use K&R style.
45707         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
45708         (mkstemp): Remove, since mkstemp.h does this for us.
45709         * lib/stdlib--.h: Include mkstemp.h.
45710
45711         Import this patch from libc:
45712
45713         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
45714
45715         * lib/tempname.c (__gen_tempname): Change attempts_min
45716         into a macro.  Use preprocessor to decide how to initialize
45717         attempts [Coverity CID 67].
45718
45719 2006-09-20  Bruno Haible  <bruno@clisp.org>
45720
45721         * lib/mkdtemp.c: Import from libc.
45722         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
45723                 * sysdeps/posix/tempname.c (__gen_tempname): Change
45724                 attempts_min into a macro.  Use preprocessor to decide how to
45725                 initialize attempts [Coverity CID 67].
45726         2001-11-27  Paul Eggert  <eggert@twinsun.com>
45727                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
45728                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
45729
45730 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45731
45732         * gnulib-tool (func_exit): New function, to allow to pass the
45733         exit status portably through the trap.  Use everywhere.
45734         (--help, --version): Signal a write error.
45735         (trap): catch SIGPIPE, for write errors.
45736         Exit at the end of the trap, with the correct exit status.
45737
45738 2006-09-19  Karl Berry  <karl@gnu.org>
45739
45740         * doc/gnulib.texi: note about the license texinfo files.
45741
45742 2006-09-19  Eric Blake  <ebb9@byu.net>
45743
45744         * gnulib-tool: Avoid space-tab.
45745
45746 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
45747
45748         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
45749         that prevented coreutils 6.1 from building.  Problem reported
45750         by Petter Reinholdtsen.
45751
45752 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
45753
45754         * gnulib-tool (avoidlist): Fix typo that broke options like
45755         --avoid=lock that are used by coreutils bootstrap.
45756
45757 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
45758
45759         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
45760         more systematically.
45761
45762 2006-09-18  Jim Meyering  <jim@meyering.net>
45763
45764         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
45765
45766 2006-09-18  Bruno Haible  <bruno@clisp.org>
45767
45768         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
45769
45770 2006-09-18  Bruno Haible  <bruno@clisp.org>
45771
45772         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
45773         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
45774         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
45775         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
45776         * m4/gettext.m4: Require autoconf >= 2.52.
45777         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
45778         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
45779         of gl_cv_header_inttypes_h.
45780
45781 2006-09-18  Bruno Haible  <bruno@clisp.org>
45782
45783         * lib/javaversion.c: Include configmake.h.
45784
45785 2006-09-18  Bruno Haible  <bruno@clisp.org>
45786
45787         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
45788         avoid that the while loops be executed in a subshell.
45789
45790 2006-09-18  Bruno Haible  <bruno@clisp.org>
45791
45792         * MODULES.html.sh (func_module): Break long lines.
45793         Suggested by Bruce Korb <bkorb@gnu.org>.
45794
45795 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45796
45797         Speed up by a factor of 1.12.
45798         * gnulib-tool (nl): New variable.
45799         (func_import): Rewrite include directive extraction to only read each
45800         directive once.
45801
45802 2006-09-17  Bruno Haible  <bruno@clisp.org>
45803
45804         * modules/javaversion (Makefile.am): Remove DEFS setting.
45805         (Depends-on): Add configmake, for PKGDATADIR definition.
45806
45807 2006-09-17  Bruno Haible  <bruno@clisp.org>
45808
45809         * gnulib-tool (func_create_testdir): Rewrite all files at once.
45810
45811 2006-09-17  Bruno Haible  <bruno@clisp.org>
45812
45813         * gnulib-tool (func_append): New function, stolen from libtool.m4.
45814         (func_modules_transitive_closure, func_modules_add_dummy,
45815         func_modules_to_filelist, func_import, func_create_testdir,
45816         func_create_megatestdir, ...): Use it wherever possible.
45817         Suggested by Ralf Wildenhues.
45818
45819 2006-09-16  Karl Berry  <karl@gnu.org>
45820
45821         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
45822         to avoid sectioning errors.
45823         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
45824         [ifinfo]: blank line after @center-ed titles.
45825         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
45826         Spell FSF address consistently with others.
45827         (These changes approved by rms.)
45828
45829 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45830
45831         Speed up by a factor of 1.61.
45832         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
45833         already checked module names again.
45834
45835 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45836
45837         Speed up by a factor of 1.13.
45838         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
45839         for new_files, and the input to func_add_or_update.
45840
45841 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45842
45843         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
45844         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
45845
45846 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
45847
45848         * modules/mkancesdirs (Depends-on): Add fcntl.
45849         * modules/savewd: New file.
45850         * MODULES.html.sh (File system functions): Add savewd.
45851
45852         * modules/configmake (Makefile.am): Add support for the
45853         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
45854
45855 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
45856
45857         * m4/savewd.m4: New file.
45858
45859 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
45860
45861         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
45862         (dirchownmod): New arg FD.  All callers changed.
45863         Use FD rather than opening the directory ourself, as opening is
45864         now the caller's responsibility.
45865         * lib/dirchownmod.h: Likewise.
45866         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
45867         hosts that require <sys/types.h> before <sys/stat.h>.  Include
45868         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
45869         (test_dir): Remove.
45870         (mkancesdirs): Return length of prefix of FILE that has already
45871         been made, or -2 if there is a child doing the work.  Redo
45872         algorithm so that it is O(N) rather than O(N**2).  Optimize away
45873         ".", and treat ".." specially since it might stray back into
45874         already-created areas.  Use a subprocess if necessary.  New arg
45875         WD; all users changed.  MAKE_DIR function should now return 1
45876         if it creates a directory that is not readable.  Return -2 if
45877         a child process is spun off.
45878         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
45879         Adjust signature to match code.
45880         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
45881         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
45882         all users changed.
45883         * lib/savewd.c, lib/savewd.h: New files.
45884
45885 2006-09-15  Jim Meyering  <jim@meyering.net>
45886
45887         * modules/rename-dest-slash: New module.
45888         * MODULES.html.sh (posix_compat): Add it here.
45889
45890         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
45891
45892 2006-09-15  Jim Meyering  <jim@meyering.net>
45893
45894         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
45895         file.
45896
45897         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
45898
45899 2006-09-15  Jim Meyering  <jim@meyering.net>
45900
45901         * lib/rename-dest-slash.c (has_trailing_slash): Use
45902         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
45903         (rpl_rename_dest_slash): Perform the cheaper trailing slash
45904         test before testing whether SRC is a directory.
45905         Suggestions from Bruno Haible.
45906
45907         Avoid a warning about an unused variable.
45908         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
45909         into the #ifdef block where it's used.
45910
45911         * lib/rename-dest-slash.c: New file.
45912
45913 2006-09-14  Bruno Haible  <bruno@clisp.org>
45914
45915         * lib/allocsa.c: Include <config.h> unconditionally.
45916         * lib/asnprintf.c: Likewise.
45917         * lib/asprintf.c: Likewise.
45918         * lib/c-strcasecmp.c: Likewise.
45919         * lib/c-strcasestr.c: Likewise.
45920         * lib/c-strncasecmp.c: Likewise.
45921         * lib/c-strstr.c: Likewise.
45922         * lib/classpath.c: Likewise.
45923         * lib/clean-temp.c: Likewise.
45924         * lib/concatpath.c: Likewise.
45925         * lib/copy-file.c: Likewise.
45926         * lib/csharpcomp.c: Likewise.
45927         * lib/csharpexec.c: Likewise.
45928         * lib/execute.c: Likewise.
45929         * lib/fatal-signal.c: Likewise.
45930         * lib/findprog.c: Likewise.
45931         * lib/fwriteerror.c: Likewise.
45932         * lib/gl_array_list.c: Likewise.
45933         * lib/gl_array_oset.c: Likewise.
45934         * lib/gl_avltree_list.c: Likewise.
45935         * lib/gl_avltree_oset.c: Likewise.
45936         * lib/gl_avltreehash_list.c: Likewise.
45937         * lib/gl_carray_list.c: Likewise.
45938         * lib/gl_linked_list.c: Likewise.
45939         * lib/gl_linkedhash_list.c: Likewise.
45940         * lib/gl_list.c: Likewise.
45941         * lib/gl_oset.c: Likewise.
45942         * lib/gl_rbtree_list.c: Likewise.
45943         * lib/gl_rbtree_oset.c: Likewise.
45944         * lib/gl_rbtreehash_list.c: Likewise.
45945         * lib/imaxabs.c: Likewise.
45946         * lib/imaxdiv.c: Likewise.
45947         * lib/javacomp.c: Likewise.
45948         * lib/javaexec.c: Likewise.
45949         * lib/javaversion.c: Likewise.
45950         * lib/linebreak.c: Likewise.
45951         * lib/localcharset.c: Likewise.
45952         * lib/lock.c: Likewise.
45953         * lib/mbchar.c: Likewise.
45954         * lib/mbswidth.c: Likewise.
45955         * lib/mkdtemp.c: Likewise.
45956         * lib/pipe.c: Likewise.
45957         * lib/printf-args.c: Likewise.
45958         * lib/printf-parse.c: Likewise.
45959         * lib/progname.c: Likewise.
45960         * lib/progreloc.c: Likewise.
45961         * lib/readlink.c: Likewise.
45962         * lib/sh-quote.c: Likewise.
45963         * lib/stpcpy.c: Likewise.
45964         * lib/stpncpy.c: Likewise.
45965         * lib/strcasecmp.c: Likewise.
45966         * lib/strcasestr.c: Likewise.
45967         * lib/strcspn.c: Likewise.
45968         * lib/striconv.c: Likewise.
45969         * lib/strncasecmp.c: Likewise.
45970         * lib/strnlen1.c: Likewise.
45971         * lib/strstr.c: Likewise.
45972         * lib/strtok_r.c: Likewise.
45973         * lib/tls.c: Likewise.
45974         * lib/tmpdir.c: Likewise.
45975         * lib/unicodeio.c: Likewise.
45976         * lib/unsetenv.c: Likewise.
45977         * lib/vasnprintf.c: Likewise.
45978         * lib/vasprintf.c: Likewise.
45979         * lib/wait-process.c: Likewise.
45980         * lib/xallocsa.c: Likewise.
45981         * lib/xsetenv.c: Likewise.
45982         * lib/xstriconv.c: Likewise.
45983
45984 2006-09-13  Simon Josefsson  <jas@extundo.com>
45985
45986         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
45987         that internally, suggested by Ralf Wildenhues
45988         <Ralf.Wildenhues@gmx.de>.
45989
45990 2006-09-13  Simon Josefsson  <jas@extundo.com>
45991
45992         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
45993         @LIBOBJS@.
45994         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45995
45996 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
45997
45998         * lib/_fpending.c: Include <config.h> unconditionally, since we no
45999         longer worry about uses that don't define HAVE_CONFIG_H.
46000         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
46001         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
46002         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
46003         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
46004         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
46005         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
46006         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
46007         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
46008         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
46009         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
46010         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
46011         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
46012         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
46013         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
46014         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
46015         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
46016         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
46017         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
46018         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
46019         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
46020         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
46021         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
46022         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
46023         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
46024         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
46025         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
46026         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
46027         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
46028         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
46029         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
46030         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
46031         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
46032         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
46033         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
46034         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
46035         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
46036         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
46037         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
46038         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
46039         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
46040         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
46041         Likewise.
46042
46043 2006-09-13  Eric Blake  <ebb9@byu.net>
46044
46045         * lib/getopt.c: Fix typo in last commit.
46046
46047 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46048
46049         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
46050         dgettext.
46051
46052 2006-09-12  Jim Meyering  <jim@meyering.net>
46053
46054         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
46055         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
46056         Reported by Nelson H. F. Beebe.
46057
46058 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46059
46060         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
46061         program_invocation_name and program_invocation_short_name are
46062         initialized.
46063         * lib/argp-namefrob.h: Move declarations of program_invocation_name
46064         and program_invocation_short_name to argp.h, so they are visible
46065         to user programs.
46066         * lib/argp.h: Likewise
46067
46068 2006-09-10  Bruno Haible  <bruno@clisp.org>
46069
46070         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
46071         m4/inttypes_h.m4, m4/uintmax_t.m4.
46072
46073 2006-09-10  Bruno Haible  <bruno@clisp.org>
46074
46075         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
46076         gl_AC_TYPE_UINTMAX_T.
46077
46078 2006-09-10  Bruno Haible  <bruno@clisp.org>
46079
46080         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
46081
46082 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46083
46084         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
46085         convention.  Text proposed by Bruno Haible.
46086         (struct argp_option): Document the use of N_() wrappers.
46087
46088         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
46089         '\v', and translate the two parts separately, instead of feeding
46090         the whole string to gettext.  This allows to exclude
46091         '\v' from the strings visible to the translator by writing doc
46092         strings as N_("..") "\v" N_("..").
46093
46094 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
46095
46096         * config/srclist.txt: Undo latest change; the bug was fixed.
46097
46098 2006-09-09  Bruno Haible  <bruno@clisp.org>
46099
46100         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
46101         assignments if building a library without libtool.
46102         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
46103         in func_emit_lib_Makefile_am.
46104         (func_import): When building a static library libfoo.a, arrange to
46105         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
46106         (func_create_testdir): Likewise.
46107         * modules/gc (configure.ac, Makefile.am): If building statically,
46108         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
46109         * modules/iconvme (configure.ac, Makefile.am): Likewise.
46110         * modules/striconv (configure.ac, Makefile.am): Likewise.
46111         Based on a suggestion by Ralf Wildenhues.
46112
46113 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46114
46115         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
46116         Check for unistd.h too, since Autoconf doesn't assume POSIX.
46117         Also:
46118
46119         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46120         Add year_2050_test to catch glibc bug 2821
46121         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
46122
46123         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
46124         Prefer #ifdef to #if.
46125
46126         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
46127         Return from 'main' instead of calling 'exit'.
46128
46129 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46130
46131         * lib/mktime.c (guess_time_tm): Fix bug where mktime
46132         returned the maximum time_t value rather than (time_t) -1.
46133         Problem originally reported by William Bardwell
46134         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
46135
46136         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
46137         Moved to here ...
46138         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
46139         ... from here.
46140
46141 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46142
46143         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
46144         2821 is fixed.
46145
46146 2006-09-08  Jim Meyering  <jim@meyering.net>
46147
46148         Don't make generated files read-only.  That would bother too many
46149         people.  However, do retain the ability to work when targets are
46150         read-only: remove the destination and temporary files before writing
46151         them (when generated via sed or echo), or by using the -f option for
46152         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
46153         * modules/alloca-opt, modules/argz, modules/arpa_inet:
46154         * modules/byteswap, modules/configmake, modules/fcntl:
46155         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
46156         * modules/localcharset, modules/netinet_in, modules/poll:
46157         * modules/stdbool, modules/stdint, modules/sys_select:
46158         * modules/sys_socket, modules/sys_stat, modules/sysexits:
46159
46160 2006-09-08  Jim Meyering  <jim@meyering.net>
46161
46162         Avoid new build failure on FreeBSD 6.0.
46163         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
46164         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
46165         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
46166
46167 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46168
46169         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
46170
46171 2006-09-07  Jim Meyering  <jim@meyering.net>
46172
46173         Fix global typo in last change: use chmod u-w, not chmod u-x.
46174         Spotted by Paul Eggert and Bruce Korb.
46175         * modules/alloca-opt, modules/argz, modules/arpa_inet:
46176         * modules/byteswap, modules/configmake, modules/fcntl:
46177         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
46178         * modules/localcharset, modules/netinet_in, modules/poll:
46179         * modules/stdbool, modules/stdint, modules/sys_select:
46180         * modules/sys_socket, modules/sys_stat, modules/sysexits:
46181
46182 2006-09-06  Jim Meyering  <jim@meyering.net>
46183
46184         Make generated files be read-only.
46185         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
46186         Ensure that each generated file is now read-only.
46187         * modules/argz: Likewise.
46188         * modules/arpa_inet: Likewise.
46189         * modules/byteswap: Likewise.
46190         * modules/configmake: Likewise.
46191         * modules/fcntl: Likewise.
46192         * modules/fnmatch: Likewise.
46193         * modules/getopt: Likewise.
46194         * modules/glob: Likewise.
46195         * modules/inttypes: Likewise.
46196         * modules/netinet_in: Likewise.
46197         * modules/poll: Likewise.
46198         * modules/stdbool: Likewise.
46199         * modules/stdint: Likewise.
46200         * modules/sys_select: Likewise.
46201         * modules/sys_socket: Likewise.
46202         * modules/sys_stat: Likewise.
46203         * modules/sysexits: Likewise.
46204         * modules/localcharset: Same as above, but continue using temporary
46205         file named "t-$@" (why different?) rather than the "$@-t" used
46206         everywhere else.
46207
46208         * modules/sysexits (Makefile.am): Replace literal occurrences
46209         of "sysexit.h" more readable, and more consistent, "$@".
46210
46211 2006-09-06  Bruno Haible  <bruno@clisp.org>
46212
46213         * modules/striconv: New file.
46214         * modules/xstriconv: New file.
46215         * MODULES.html.sh (Internationalization functions): Add striconv,
46216         xstriconv.
46217
46218 2006-09-06  Bruno Haible  <bruno@clisp.org>
46219
46220         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
46221         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
46222         not using libtool correctly.
46223
46224 2006-09-06  Bruno Haible  <bruno@clisp.org>
46225
46226         * lib/striconv.h: New file.
46227         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
46228         iconvstring.c.
46229         * lib/xstriconv.h: New file.
46230         * lib/xstriconv.c: New file.
46231
46232 2006-09-06  Bruno Haible  <bruno@clisp.org>
46233
46234         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
46235         lib_..._LDFLAGS.
46236
46237 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46238
46239         * lib/argz_.h: Sync from Libtool.
46240
46241         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
46242                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46243
46244         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
46245
46246 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
46247
46248         * modules/trim: New file.
46249
46250 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
46251
46252         * lib/trim.h: New file.
46253         * lib/trim.c: New file.
46254
46255 2006-09-05  Bruno Haible  <bruno@clisp.org>
46256
46257         * MODULES.html.sh (String handling): Add trim.
46258
46259 2006-09-04  Karl Berry  <karl@gnu.org>
46260
46261         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
46262         until next release.
46263
46264 2006-09-03  Bruno Haible  <bruno@clisp.org>
46265
46266         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
46267         correctly.
46268
46269 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46270
46271         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
46272         not gl_GETLOADAVG.  Omit unneeded semicolons.
46273         Problems reported by Ralf Wildenhues in
46274         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
46275         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
46276         at the end, which is the usual gnulib style.
46277
46278         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
46279         of doing all the work ourselves.
46280         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
46281         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
46282
46283 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46284
46285         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
46286         Problem reported by Ralf Wildenhues in
46287         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
46288
46289         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
46290         HAVE_STRUCT_STATFS_F_FSTYPENAME.
46291
46292 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46293
46294         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
46295         yesterday's patch by changing test -n to test -z.
46296
46297 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46298
46299         * modules/getloadavg (Files): Add m4/getloadavg.m4.
46300         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
46301         the former is now obsolescent.
46302
46303         * modules/chdir-long (Depends-on): Add fcntl.
46304
46305 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46306
46307         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
46308         obsolescent, and programs should use gnulib instead.
46309         * m4/getloadavg.m4: New file, with contents taken from Autoconf
46310         but with prefixes changed.
46311
46312 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46313
46314         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
46315         or stdbool.h, because they might not exist while configuring.
46316
46317         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
46318         Don't include unistd.h or limits.h; not needed, since chdir-long.h
46319         does that for us.
46320         (O_DIRECTORY): Remove.
46321
46322 2006-08-31  Eric Blake  <ebb9@byu.net>
46323
46324         * gnulib-tool: Don't let emacs change spaces to TAB.
46325
46326 2006-08-31  Bruno Haible  <bruno@clisp.org>
46327
46328         * gnulib-tool: When calling func_import more than once, do it in a
46329         subshell.
46330         Reported by Eric Blake <ebb9@byu.net>.
46331
46332 2006-08-31  Bruno Haible  <bruno@clisp.org>
46333
46334         * gnulib-tool (nl): Remove variable.
46335         (sed_transform_lib_file): Use more robust test for config-h module.
46336         (func_import): Fix typo in 2006-08-25 patch.
46337
46338 2006-08-31  Bruno Haible  <bruno@clisp.org>
46339
46340         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
46341         specified, augment Makefile.am variables instead of assigning them.
46342
46343 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
46344
46345         Work around a bug in both the Linux and SunOS 64-bit kernels:
46346         nanosleep mishandles sleeps for longer than 2**31 seconds.
46347         Problem reported by Frank v Waveren in
46348         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
46349         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
46350         Check for nanosleep bug.
46351         (LIB_NANOSLEEP): Append clock_gettime library if needed.
46352
46353 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
46354
46355         Work around a bug in both the Linux and SunOS 64-bit kernels:
46356         nanosleep mishandles sleeps for longer than 2**31 seconds.
46357         Problem reported by Frank v Waveren in
46358         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
46359         * lib/nanosleep.c (BILLION): New constant.
46360         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
46361         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
46362         implementation.
46363
46364 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
46365
46366         * modules/nanosleep (Depends-on): Add gettime.
46367
46368 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
46369         and Simon Josefsson  <jas@extundo.com>
46370         and Oskar Liljeblad  <oskar@osk.mine.nu>
46371
46372         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
46373         * gnulib-tool (func_import): New license type 'unmodifiable license
46374         text'.
46375         * modules/fdl: Use it.  Longer description.
46376         * module/gpl, module/lgpl: New files.
46377
46378 2006-08-30  Jim Meyering  <jim@meyering.net>
46379
46380         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
46381         shadowing the parameter.
46382
46383 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46384
46385         Sync from Libtool:
46386
46387         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46388
46389         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
46390         sharing with gnulib.  Report by Eric Blake.
46391
46392 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
46393
46394         * modules/isapipe: New file.
46395         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
46396
46397 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
46398
46399         * modules/configmake (Makefile.am): Add a comment, and omit
46400         the CONFIGMAKE_ prefix from generated macro names.  Suggested
46401         by Bruno Haible.
46402
46403 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
46404
46405         * m4/isapipe.m4: New file.
46406
46407 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
46408
46409         * lib/isapipe.c, lib/isapipe.h: New files.
46410
46411 2006-08-29  Jim Meyering  <jim@meyering.net>
46412
46413         * modules/configmake (Makefile.am): Make configmake.h depend on
46414         Makefile.  Otherwise, a stale configmake.h could hang around.
46415
46416 2006-08-29  Eric Blake  <ebb9@byu.net>
46417
46418         * lib/error.c (error_at_line, print_errno_message): Match libc, after
46419         resolution of upstream bug 3044.
46420
46421 2006-08-29  Bruno Haible  <bruno@clisp.org>
46422
46423         * modules/localcharset (Depends-on): Add configmake.
46424         (Makefile.am): Remove setting of LIBDIR through DEFS.
46425
46426 2006-08-29  Bruno Haible  <bruno@clisp.org>
46427
46428         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
46429         defined.
46430
46431 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
46432
46433         * modules/fcntl: New file.
46434         * modules/chdir-safer (Depends-on): Add fcntl.
46435         * modules/fts: Likewise.
46436         * modules/mkdir-p: Likewise.
46437
46438         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
46439         This undoes the most recent change, since we're now addressing the
46440         problem in a different way.
46441
46442         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
46443         into output, since the output might be called Makefile.am even
46444         if $makefile_name is something different.
46445         (func_import): Use $makefile_am rather than
46446         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
46447         empty.
46448
46449         * modules/inttypes (Files): Add m4/inttypes-h.m4.
46450
46451 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
46452
46453         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
46454         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
46455         recent change to stdint.m4, since we're now addressing the problem in a
46456         different way.
46457
46458 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
46459
46460         * m4/fcntl_h.m4: New file.
46461
46462 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
46463
46464         * lib/fcntl_.h: New file.
46465         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
46466         the fcntl module.
46467         * lib/dirchownmod.c: Likewise.
46468         * lib/fts.c: Likewise.
46469
46470         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
46471         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
46472         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
46473         just before including <inttypes.h>, to avoid circular inclusion.
46474
46475 2006-08-28  Jim Meyering  <jim@meyering.net>
46476
46477         * doc/visibility.texi: Actually read and correct the grammar of the
46478         sentence affected by yesterday's change.
46479
46480 2006-08-28  Eric Blake  <ebb9@byu.net>
46481
46482         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
46483         needs wrapper.
46484
46485 2006-08-28  Eric Blake  <ebb9@byu.net>
46486
46487         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
46488
46489 2006-08-28  Eric Blake  <ebb9@byu.net>
46490
46491         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
46492
46493 2006-08-28  Bruno Haible  <bruno@clisp.org>
46494
46495         * modules/c-strstr: New file, from GNU gettext.
46496         * MODULES.html.sh (String handling): Add c-strstr.
46497
46498 2006-08-28  Bruno Haible  <bruno@clisp.org>
46499
46500         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
46501         macros.
46502         Reported by Eric Blake.
46503
46504 2006-08-28  Bruno Haible  <bruno@clisp.org>
46505
46506         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
46507         (VASNPRINTF): Return a string of length > INT_MAX without failing.
46508         * lib/vasprintf.c: Include errno.h, limits.h.
46509         (EOVERFLOW): New fallback definition.
46510         (vasprintf): Test here whether the string length is > INT_MAX.
46511         * lib/vsnprintf.c: Include errno.h, limits.h.
46512         (EOVERFLOW): New fallback definition.
46513         (vsnprintf): Fix bug when generated string was too long for the buffer.
46514         Test here whether the string length is > INT_MAX.
46515
46516 2006-08-28  Bruno Haible  <bruno@clisp.org>
46517
46518         * lib/inttypes_.h (SCNX*): Remove definitions.
46519         Reported by Eric Blake.
46520
46521 2006-08-28  Bruno Haible  <bruno@clisp.org>
46522
46523         * lib/c-strstr.h: New file, from GNU gettext.
46524         * lib/c-strstr.c: New file, from GNU gettext.
46525
46526 2006-08-28  Bruno Haible  <bruno@clisp.org>
46527
46528         * gnulib-tool: Reorder some statements.
46529
46530 2006-08-28  Bruno Haible  <bruno@clisp.org>
46531
46532         * gnulib-tool: New option --makefile-name.
46533         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
46534         $makefile_name.
46535         (func_import): Write $makefile_name to the cache file, and read it from
46536         there unless explicitly specified. Use $makefile_name as file name
46537         instead of Makefile.am. Adjust the recommendations accordingly.
46538
46539 2006-08-28  Bruno Haible  <bruno@clisp.org>
46540
46541         * gnulib-tool (func_verify_module): Check against misapplying patch.
46542
46543 2006-08-28  Bruno Haible  <bruno@clisp.org>
46544
46545         * gnulib-tool (func_relativize, func_relconcat): New functions.
46546         Give an error if --local-dir is given with --update.
46547         Remove trailing slashes from $local_gnulib_dir.
46548         (func_import): Store the relativized $local_gnulib_dir in
46549         gnulib-cache.m4, and read it from there if not specified explicitly.
46550
46551 2006-08-28  Bruno Haible  <bruno@clisp.org>
46552
46553         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
46554         is the current directory. Respect also $local_gnulib_dir.
46555
46556 2006-08-28  Bruno Haible  <bruno@clisp.org>
46557             Simon Josefsson  <jas@extundo.com>
46558
46559         BeOS portability.
46560         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
46561
46562 2006-08-27  Jim Meyering  <jim@meyering.net>
46563
46564         * doc/visibility.texi: Remove duplicate word: "pointer".
46565
46566 2006-08-26  Bruno Haible  <bruno@clisp.org>
46567
46568         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
46569         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
46570         (Makefile.am): Create inttypes.h from inttypes_.h.
46571         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
46572
46573         * modules/imaxabs: New file.
46574
46575         * modules/imaxdiv: New file.
46576
46577 2006-08-26  Bruno Haible  <bruno@clisp.org>
46578
46579         * m4/inttypes.m4: New file.
46580         * m4/_inttypes_h.m4: Remove file.
46581         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
46582         PRI_MACROS_BROKEN.
46583         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
46584
46585         * m4/imaxabs.m4: New file.
46586
46587         * m4/imaxdiv.m4: New file.
46588
46589 2006-08-26  Bruno Haible  <bruno@clisp.org>
46590
46591         * lib/inttypes_.h: New file.
46592         * lib/inttypes.h: Remove file.
46593         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
46594
46595         * lib/imaxabs.c: New file.
46596
46597         * lib/imaxdiv.c: New file.
46598
46599 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
46600
46601         New config-h module, so that "make" output needn't be cluttered
46602         by -DHAVE_CONFIG_H.
46603         * MODULES.html.sh (Support for building libraries and executables):
46604         Add config-h.
46605         * modules/config-h: New file.
46606         * gnulib-tool (nl, sed_transform_lib_file): New vars.
46607         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
46608         the config-h module is used.
46609
46610         New configmake module, so that "make" output needn't be cluttered
46611         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
46612         * MODULES.html.sh (Support for building libraries and executables):
46613         Add configmake.
46614         * modules/configmake: New file.
46615
46616 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
46617
46618         * m4/config-h.m4: New file.
46619
46620 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
46621
46622         * config/srclist.txt: Add elisp-comp.
46623
46624 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
46625
46626         * MODULES.html.sh (Support for building libraries and executables):
46627         Add elisp-comp.
46628         * build-aux/elisp-comp: New file.
46629         * modules/elisp-comp: New file.
46630
46631 2006-08-24  Bruno Haible  <bruno@clisp.org>
46632
46633         * gnulib-tool (func_create_testdir): Use non-default values of
46634         sourcebase and m4base.
46635
46636 2006-08-24  Bruno Haible  <bruno@clisp.org>
46637
46638         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
46639         HTML structure.
46640
46641 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
46642
46643         * modules/openat (Depends-on): Add lchown.
46644
46645 2006-08-23  Bruno Haible  <bruno@clisp.org>
46646
46647         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
46648         of gl_LOCK_EARLY instead of gl_LOCK.
46649
46650 2006-08-23  Bruno Haible  <bruno@clisp.org>
46651
46652         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
46653         on OSF/1 to no.
46654         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
46655
46656 2006-08-23  Bruno Haible  <bruno@clisp.org>
46657
46658         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
46659         as unusable.
46660
46661         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
46662         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
46663         (gl_LOCK): New macro.
46664
46665 2006-08-22  Simon Josefsson  <jas@extundo.com>
46666
46667         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
46668         to md5 module.
46669
46670 2006-08-22  Simon Josefsson  <jas@extundo.com>
46671
46672         * MODULES.html.sh: Add "Support for maintaining and release
46673         projects".
46674
46675         * build-aux/gnupload: New file, from coreutils.
46676
46677 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
46678
46679         Avoid the need for AC_LIBSOURCES in m4 macros.
46680         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
46681         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
46682         * modules/check-version (EXTRA_DIST): Add check-version.h.
46683         * modules/crc (EXTRA_DIST): Add crc.h.
46684         * modules/des (EXTRA_DIST): Add des.h.
46685         * modules/gc (EXTRA_DIST): Add gc.h.
46686         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
46687         * modules/getline (EXTRA_DIST): Add getline.h.
46688         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
46689         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
46690         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
46691         * modules/md2 (EXTRA_DIST): Add md2.h.
46692         * modules/md4 (EXTRA_DIST): Add md4.h.
46693         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
46694         * modules/read-file (EXTRA_DIST): Add read-file.h.
46695         * modules/readline (EXTRA_DIST): Add readline.h.
46696         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
46697         rijndael-api-fst.h.
46698
46699 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
46700
46701         * m4/rijndael.m4 (gl_ARCFOUR):
46702         * m4/arctwo.m4 (gl_ARCTWO):
46703         * m4/check-version.m4 (gl_CHECK_VERSION):
46704         * m4/crc.m4 (gl_CRC):
46705         * m4/des.m4 (gl_DES):
46706         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
46707         * m4/gc.m4 (gl_GC):
46708         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
46709         * m4/getline.m4 (gl_FUNC_GETLINE):
46710         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
46711         * m4/hmac-md5.m4 (gl_HMAC_MD5):
46712         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
46713         * m4/md2.m4 (gl_MD2):
46714         * m4/md4.m4 (gl_MD4):
46715         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
46716         * m4/read-file.m4 (gl_FUNC_READ_FILE):
46717         * m4/readline.m4 (gl_FUNC_READLINE):
46718         * m4/rijndael.m4 (gl_RIJNDAEL):
46719         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
46720         to get the necessary .h files and whatnot.
46721
46722 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
46723
46724         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
46725         gnulib rather than the other way around.
46726         * config/srclistvars.sh (COREUTILS): Remove.
46727
46728 2006-08-22  Jim Meyering  <jim@meyering.net>
46729
46730         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
46731
46732         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
46733
46734 2006-08-22  Eric Blake  <ebb9@byu.net>
46735
46736         * modules/regexprops-generic: New file.
46737         * MODULES.html.sh (Support for building documentation): List it.
46738
46739 2006-08-22  Eric Blake  <ebb9@byu.net>
46740
46741         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
46742         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
46743         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
46744         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
46745
46746 2006-08-22  Bruno Haible  <bruno@clisp.org>
46747
46748         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
46749         and lib_LTLIBRARIES like the other lib_* variables.
46750
46751 2006-08-22  Bruno Haible  <bruno@clisp.org>
46752
46753         * build-aux/x-to-1.in: New file, from GNU gettext.
46754
46755 2006-08-22  Bruno Haible  <bruno@clisp.org>
46756
46757         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
46758         <utmpx.h> exists.
46759
46760 2006-08-22  Bruno Haible  <bruno@clisp.org>
46761
46762         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
46763         <utmpx.h> exists.
46764
46765 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
46766
46767         BeOS portability.
46768         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
46769         exist.
46770         Problem reported by Bruno Haible.
46771
46772 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
46773
46774         Avoid the need for AC_LIBSOURCES in m4 macros.
46775         * modules/acl (EXTRA_DIST): Add acl.h.
46776         * modules/argmatch (Files): Add m4/argmatch.m4.
46777         (configure.ac): Add gl_ARGMATCH.
46778         (EXTRA_DIST): Renamed from lib_SOURCES, for
46779         consistency with the other modules.  Remove argmatch.c.
46780         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
46781         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
46782         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
46783         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
46784         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
46785         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
46786         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
46787         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
46788         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
46789         * modules/closeout (EXTRA_DIST): Add closeout.h.
46790         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
46791         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
46792         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
46793         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
46794         dirname.h; remove basename.c and stripslash.c.
46795         * modules/exclude (EXTRA_DIST): Add exclude.h.
46796         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
46797         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
46798         * modules/file-type (EXTRA_DIST): Add file-type.h.
46799         * modules/filemode (EXTRA_DIST): Add filemode.h.
46800         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
46801         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
46802         * modules/fpending (EXTRA_DIST): Add __fpending.h.
46803         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
46804         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
46805         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
46806         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
46807         * modules/getdate (EXTRA_DIST): Add getdate.c.
46808         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
46809         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
46810         * modules/getpass (EXTRA_DIST): Add getpass.h.
46811         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
46812         * modules/group-member (EXTRA_DIST): Add group-member.h.
46813         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
46814         * modules/hash (EXTRA_DIST): Add hash.h.
46815         * modules/human (EXTRA_DIST): Add human.h.
46816         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
46817         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
46818         * modules/lchown (EXTRA_DIST): Add lchown.h.
46819         * modules/long-options (EXTRA_DIST): Add long-options.h.
46820         * modules/lstat (EXTRA_DIST): Add lstat.h.
46821         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
46822         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
46823         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
46824         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
46825         * modules/memxor (EXTRA_DIST): Add memxor.h.
46826         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
46827         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
46828         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
46829         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
46830         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
46831         * modules/physmem (EXTRA_DIST): Add physmem.h.
46832         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
46833         * modules/posixver (EXTRA_DIST): Add posixver.h.
46834         * modules/quote (EXTRA_DIST): Add quote.h.
46835         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
46836         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
46837         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
46838         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
46839         regex_internal.h regexec.c.
46840         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
46841         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
46842         * modules/same (EXTRA_DIST): Add same.h.
46843         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
46844         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
46845         * modules/savedir (EXTRA_DIST): Add savedir.h.
46846         * modules/sha1 (EXTRA_DIST): Add sha1.h.
46847         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
46848         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
46849         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
46850         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
46851         * modules/strdup (EXTRA_DIST): Add strdup.h.
46852         * modules/strftime (EXTRA_DIST): Add strftime.h.
46853         * modules/strndup (EXTRA_DIST): Add strndup.h.
46854         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
46855         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
46856         * modules/time_r (EXTRA_DIST): Add time_r.h.
46857         * modules/timespec (EXTRA_DIST): Add timespec.h.
46858         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
46859         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
46860         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
46861         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
46862         * modules/userspec (EXTRA_DIST): Add userspec.h.
46863         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
46864         * modules/utimens (EXTRA_DIST): Add utimens.h.
46865         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
46866         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
46867         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
46868         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
46869         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
46870         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
46871         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
46872         * modules/yesno (EXTRA_DIST): Add yesno.h.
46873
46874 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
46875
46876         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
46877
46878         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
46879         * m4/dev-ino.m4, same-inode.m4: Remove.
46880
46881         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
46882         * m4/acl.m4 (AC_FUNC_ACL):
46883         * m4/backupfile.m4 (gl_BACKUPFILE):
46884         * m4/c-strtod.m4 (gl_C99_STRTOLD):
46885         * m4/canon-host.m4 (gl_CANON_HOST):
46886         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
46887         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
46888         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
46889         * m4/cloexec.m4 (gl_CLOEXEC):
46890         * m4/close-stream.m4 (gl_CLOSE_STREAM):
46891         * m4/closeout.m4 (gl_CLOSEOUT):
46892         * m4/dirfd.m4 (gl_FUNC_DIRFD):
46893         * m4/dirname.m4 (gl_DIRNAME):
46894         * m4/exclude.m4 (gl_EXCLUDE):
46895         * m4/exitfail.m4 (gl_EXITFAIL):
46896         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
46897         * m4/file-type.m4 (gl_FILE_TYPE):
46898         * m4/filemode.m4 (gl_FILEMODE):
46899         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
46900         * m4/fpending.m4 (gl_FUNC_FPENDING):
46901         * m4/fprintftime.m4 (gl_FPRINTFTIME):
46902         * m4/fts.m4 (gl_FUNC_FTS):
46903         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
46904         * m4/getdate.m4 (gl_GETDATE):
46905         * m4/gethrxtime.m4 (gl_GETHRXTIME):
46906         * m4/getpagesize.m4 (gl_GETPAGESIZE):
46907         * m4/getpass.m4 (gl_FUNC_GETPASS):
46908         * m4/gettime.m4 (gl_GETTIME):
46909         * m4/getugroups.m4 (gl_GETUGROUPS):
46910         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
46911         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
46912         * m4/hard-locale.m4 (gl_HARD_LOCALE):
46913         * m4/hash.m4 (gl_HASH):
46914         * m4/idcache.m4 (gl_IDCACHE):
46915         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
46916         * m4/lchown.m4 (gl_FUNC_LCHOWN):
46917         * m4/long-options.m4 (gl_LONG_OPTIONS):
46918         * m4/lstat.m4 (gl_FUNC_LSTAT):
46919         * m4/md5.m4 (gl_MD5):
46920         * m4/memcasecmp.m4 (gl_MEMCASECMP):
46921         * m4/memcoll.m4 (gl_MEMCOLL):
46922         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
46923         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
46924         * m4/memxor.m4 (gl_MEMXOR):
46925         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
46926         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
46927         * m4/modechange.m4 (gl_MODECHANGE):
46928         * m4/mountlist.m4 (gl_MOUNTLIST):
46929         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
46930         * m4/openat.m4 (gl_FUNC_OPENAT):
46931         * m4/pathmax.m4 (gl_PATHMAX):
46932         * m4/physmem.m4 (gl_PHYSMEM):
46933         * m4/posixtm.m4 (gl_POSIXTM):
46934         * m4/posixver.m4 (gl_POSIXVER):
46935         * m4/quote.m4 (gl_QUOTE):
46936         * m4/quotearg.m4 (gl_QUOTEARG):
46937         * m4/readtokens.m4 (gl_READTOKENS):
46938         * m4/readutmp.m4 (gl_READUTMP):
46939         * m4/regex.m4 (gl_REGEX):
46940         * m4/safe-read.m4 (gl_SAFE_READ):
46941         * m4/safe-write.m4 (gl_SAFE_WRITE):
46942         * m4/same.m4 (gl_SAME):
46943         * m4/save-cwd.m4 (gl_SAVE_CWD):
46944         * m4/savedir.m4 (gl_SAVEDIR):
46945         * m4/settime.m4 (gl_SETTIME):
46946         * m4/sha1.m4 (gl_SHA1):
46947         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
46948         * m4/stat-macros.m4 (gl_STAT_MACROS):
46949         * m4/stat-time.m4 (gl_STAT_TIME):
46950         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
46951         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
46952         * m4/strdup.m4 (gl_FUNC_STRDUP):
46953         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
46954         * m4/strndup.m4 (gl_FUNC_STRNDUP):
46955         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
46956         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
46957         * m4/time_r.m4 (gl_TIME_R):
46958         * m4/timespec.m4 (gl_TIMESPEC):
46959         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
46960         * m4/unlinkdir.m4 (gl_UNLINKDIR):
46961         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
46962         * m4/userspec.m4 (gl_USERSPEC):
46963         * m4/utimecmp.m4 (gl_UTIMECMP):
46964         * m4/utimens.m4 (gl_UTIMENS):
46965         * m4/xalloc.m4 (gl_XALLOC):
46966         * m4/xgetcwd.m4 (gl_XGETCWD):
46967         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
46968         * m4/xreadlink.m4 (gl_XREADLINK):
46969         * m4/xstrtod.m4 (gl_XSTRTOD):
46970         * m4/yesno.m4 (gl_YESNO):
46971         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
46972         to get the necessary .h files and whatnot.
46973
46974 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
46975             Bruno Haible  <bruno@clisp.org>
46976
46977         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
46978         /bin/sh understanding of '!' conditional negation.
46979
46980 2006-08-21  Jim Meyering  <jim@meyering.net>
46981
46982         * modules/openat (Depends-on): Really alphabetize.
46983
46984         * modules/acl (Depends-on): Add error and quote.
46985
46986         * check-module (find_included_lib_files): Add at-func.c to the
46987         ok-to-include-more-than-once white list.
46988
46989         * modules/openat (Depends-on): Add lstat.  Alphabetize.
46990
46991 2006-08-21  Bruno Haible  <bruno@clisp.org>
46992
46993         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46994         Emit a pkgdata_DATA variable only if some snippets add contents to it.
46995         Reported by Martin Lambers <marlam@marlam.de>.
46996
46997 2006-08-21  Bruno Haible  <bruno@clisp.org>
46998
46999         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
47000         specify an installation location, don't emit a noinst_LIBRARIES or
47001         noinst_LTLIBRARIES assignment.
47002
47003 2006-08-21  Bruno Haible  <bruno@clisp.org>
47004
47005         BeOS portability.
47006         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
47007         BeOS has mbrtowc() but no <wctype.h>.
47008
47009 2006-08-21  Bruno Haible  <bruno@clisp.org>
47010
47011         BeOS portability.
47012         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
47013         exist.
47014
47015 2006-08-21  Bruno Haible  <bruno@clisp.org>
47016
47017         BeOS portability.
47018         * lib/mbchar.h: Include <wctype.h> only if it exists.
47019
47020 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47021
47022         Remove files that are no longer needed by their respective modules.
47023         * m4/obstack.m4: Remove.
47024         * m4/strerror_r.m4: Remove.
47025         * m4/uint32_t.m4: Remove.
47026         * m4/uintptr_t.m4: Remove.
47027         * m4/ullong_max.m4: Remove.
47028         * m4/xstrtoimax.m4: Remove.
47029         * m4/xstrtoumax.m4: Remove.
47030
47031         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
47032         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
47033         dependencies now capture this.
47034
47035         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
47036         Do not use AC_LIBSOURCES, since gnulib modules now do this.
47037         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
47038         * m4/human.m4 (gl_HUMAN): Likewise.
47039         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
47040         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
47041
47042         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
47043
47044         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
47045         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
47046         stdint.
47047         * m4/human.m4 (gl_HUMAN): Likewise.
47048         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
47049         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
47050         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
47051         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
47052         * m4/xstrtol (gl_XSTRTOL): Likewise.
47053
47054         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
47055         AC_TYPE_LONG_LONG_INT.
47056         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
47057         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
47058         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
47059         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
47060
47061         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
47062         on stdbool.
47063
47064         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
47065         (gl_PREREQ_XSTRTOUL): Remove.
47066
47067         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
47068
47069         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
47070         mode.
47071
47072 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47073
47074         Add and change modules to make it easier for coreutils to use
47075         gnulib-tool.
47076         * modules/backupfile (Files): Remove m4/d-ino.m4.
47077         (Depends-on): Add d-ino.
47078         * modules/cycle-check (Depends-on): Add stdint.
47079         (lib_SOURCES): Add cycle-check.h.
47080         * modules/d-ino: New module.
47081         * modules/d-type: New module.
47082         * modules/error (Files): Remove m4/strerror_r.m4.
47083         * modules/filemode (Files): Add m4/st_dm_mode.m4.
47084         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
47085         m4/inttypes_h.m4, m4/uintmax_t.m4.
47086         (Depends-on): Add stdint.
47087         (lib_SOURCES): Add fsusage.h.
47088         * modules/getcwd (Files): Remove d-ino.m4.
47089         (Depends-on): Add d-ino.
47090         * modules/getndelim2 (Depends-on): Add stdint.
47091         * modules/glob (Files): Remove m4/d-type.m4.
47092         (Depends-on): Add d-type.
47093         * modules/host-os: New module.
47094         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
47095         m4/inttypes_h.m4, m4/uintmax_t.m4.
47096         * Depends-on: Add stdint.
47097         (lib_SOURCES): Add human.h.
47098         * modules/inttostr (Files): Remove m4/intmax_t.m4,
47099         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
47100         m4/uintmax_t.m4, m4/ulonglong.m4.
47101         (Depends-on): Add stdint.
47102         (EXTRA_DIST): Add inttostr.h.
47103         * modules/lchmod: New module.
47104         * modules/link-follow: New module.
47105         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
47106         (Depends-on): Add lchmod.
47107         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
47108         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
47109         (Depends-on): Add stdint.
47110         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
47111         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
47112         (Depends-on): Add stdint.
47113         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
47114         * modules/perl: New module.
47115         * modules/regex (Depends-on): Add stdint.
47116         * modules/rmdir-errno: New module.
47117         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
47118         m4/intmax_t.m4.
47119         (Depends-on): Add stdint.
47120         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
47121         m4/uintmax_t.m4.
47122         (Depends-on): Add stdint.
47123         * modules/unlink-busy: New module.
47124         * modules/utimecmp (Depends-on): Add stdint.
47125         * modules/uptime: New module.
47126         * modules/winsz-ioctl: New module.
47127         * modules/winsz-termios: New module.
47128         * modules/xnanosleep (Depends-on): Add nanosleep.
47129         * modules/ullong_max: Remove.
47130         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
47131         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
47132         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
47133         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
47134         (Depends-on): Add inttypes.
47135         (lib_SOURCES): Add xstrtol.h.
47136         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
47137         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
47138         * MODULES.html.sh: Move 'assert' into the assert section.
47139         Move 'dummy' into the linking section.
47140         Remove ullong_max.
47141         Add section for compatibility checks for POSIX:2001 functions,
47142         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
47143         winsz-ioctl, and winsz-termios into it.
47144         Add lchmod.
47145         Add top-level Misc section and put host-os, perl, and uptime
47146         into it.
47147
47148 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47149
47150         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
47151         now assume the stdint module.  Do not include inttypes.h.
47152         * lib/fsusage.h: Likewise.
47153         * lib/getndelim2.c: Likewise.
47154         * lib/human.h: Likewise.
47155         * lib/inttostr.h: Likewise.
47156         * lib/obstack.c: Likewise.
47157         * lib/regex_internal.h: Likewise.
47158         * lib/tempname.c: Likewise.
47159         * lib/utimecmp.c: Likewise.
47160         * lib/xstrtol.h: Likewise.
47161
47162         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
47163
47164         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
47165         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
47166         * lib/xtime.h: Likewise.
47167
47168 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47169
47170         * modules/openat (Files): Add lib/fchmodat.c.
47171         Fixes problem reported by Jay Youngman.
47172
47173 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47174
47175         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
47176         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
47177
47178 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
47179             Bruno Haible  <bruno@clisp.org>
47180
47181         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
47182         and is a script that invokes bison. Tighten the code. Add comments.
47183
47184 2006-08-18  Jim Meyering  <jim@meyering.net>
47185
47186         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
47187         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
47188         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
47189         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
47190
47191 2006-08-18  Bruno Haible  <bruno@clisp.org>
47192
47193         * modules/bison-i18n: New file.
47194         * MODULES.html.sh (Internationalization functions): Add it.
47195
47196 2006-08-18  Bruno Haible  <bruno@clisp.org>
47197
47198         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
47199         sys/statvfs.h. When getmntinfo was found, check its declaration and
47200         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
47201
47202 2006-08-18  Bruno Haible  <bruno@clisp.org>
47203
47204         * m4/bison-i18n.m4: New file, from bison.
47205
47206 2006-08-18  Bruno Haible  <bruno@clisp.org>
47207
47208         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
47209         (ME_DUMMY): Treat "kernfs" as a dummy.
47210         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
47211
47212 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
47213
47214         Update from coreutils.
47215
47216         2006-08-15  Jim Meyering  <jim@meyering.net>
47217
47218         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
47219
47220         2006-01-17  Jim Meyering  <jim@meyering.net>
47221
47222         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
47223
47224         2006-01-11  Jim Meyering  <jim@meyering.net>
47225
47226         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
47227         Check for the lchmod function.
47228
47229 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
47230
47231         Update from coreutils.
47232
47233         * lib/__fpending.h: Add copyright notice.
47234         * lib/fprintftime.h: Likewise.
47235         * lib/savedir.c: Use (C) in copyright notice.
47236         * lib/savedir.h: Likewise.
47237
47238         2006-08-15  Jim Meyering  <jim@meyering.net>
47239
47240         * lib/at-func.c: New file, with the logic of all emulated at-functions.
47241         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
47242         in support of the EXPECTED_ERRNO macro.
47243         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
47244         definitions.  Instead, define the appropriate symbols and include
47245         "at-func.c".
47246         * lib/mkdirat.c (mkdirat): Likewise.
47247         * lib/fchmodat.c (fchmodat): Likewise.
47248         (ENOSYS): Remove definition.
47249         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
47250         it.  Don't include "unistd--.h" -- it wasn't ever used.
47251
47252         2006-01-17  Jim Meyering  <jim@meyering.net>
47253
47254         Rewrite fts.c not to change the current working directory,
47255         by using openat, fstatat, fdopendir, etc..
47256
47257         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
47258         (HAVE_OPENAT_SUPPORT): Define.
47259         [_LIBC] (fchdir): Don't undef or define; no longer used.
47260         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
47261         Now, this `function' always succeeds, and consumes its file descriptor
47262         parameter -- so callers must not close such FDs.  Update callers.
47263         (diropen_fd, opendirat, cwd_advance_fd): New functions.
47264         (diropen): Add parameter, SP.  Adjust all callers.
47265         Implement using diropen_fd, rather than open.
47266         (fts_open): Initialize new member, fts_cwd_fd.
47267         Remove fts_rft-setting code.
47268         (fts_close): Close fts_cwd_fd, if necessary.
47269         (__opendir2): Define in terms of opendir or opendirat,
47270         depending on whether the FST_NOCHDIR flag is set.
47271         (fts_build): Since fts_safe_changedir consumes its FD, and since
47272         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
47273         and close the dup'd file descriptor upon failure.
47274         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
47275         (fts_safe_changedir): Tweak semantics to reflect that this function
47276         now calls cwd_advance_fd and hence consumes its FD argument.
47277         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
47278         [struct FTS] (fts_rft): Remove now-unused member.
47279         [struct FTS] (fts_cycle.state): Improve comment.
47280
47281         * lib/openat.c (openat_needs_fchdir): New function.
47282         * lib/openat.h (openat_needs_fchdir): Declare it.
47283
47284 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
47285
47286         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
47287         Problem and fix reported by Pádraig Brady in
47288         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
47289
47290 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47291
47292         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
47293
47294 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47295
47296         * lib/memcoll.c (memcoll): Optimize for the common case where the
47297         arguments are bytewise equal.
47298
47299 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47300
47301         * doc/regexprops-generic.texi: Add a copyright notice.
47302
47303 2006-08-15  Bruno Haible  <bruno@clisp.org>
47304
47305         * modules/tmpdir (License): Change to LGPL.
47306
47307 2006-08-15  Bruno Haible  <bruno@clisp.org>
47308
47309         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
47310         module.
47311
47312 2006-08-14  Simon Josefsson  <jas@extundo.com>
47313
47314         * config/srclist.txt: Add gnupload.
47315
47316 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47317
47318         Change copyright notice from LGPL 2 to GPL 2, since that's the
47319         standard form used in the gnulib repository.
47320         * tests/test-lock.c: Likewise.
47321         * tests/test-stdint.c: Likewise.
47322         * tests/test-tls.c: Likewise.
47323
47324         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
47325         prelude-manager.  User shorter URLs for GNU projects, without '?'.
47326         Add copyright notice.
47327
47328         * check-module: Add copyright notice.  Output a copyright
47329         notice if "--version" is specified.
47330         * modules/COPYING: New file.
47331         * tests/test-getaddrinfo.c: Add copyright notice.
47332         * tests/test-verify.c: Likewise.
47333
47334 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47335
47336         Change copyright notice from LGPL 2 to GPL 2, since that's the
47337         standard form used in the gnulib repository.
47338         * lib/lock.c: LGPL -> GPL.
47339         * lib/lock.h: Likewise.
47340         * lib/strnlen1.c: Likewise.
47341         * lib/strnlen1.h: Likewise.
47342         * lib/tls.c: Likewise.
47343         * lib/tls.h: Likewise.
47344         * lib/tmpdir.c: Likewise.
47345
47346         * lib/TODO: Remove; this belongs only in coreutils.
47347
47348 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47349
47350         Add copyright notices to long-enough files that lack them, since
47351         otherwise the files aren't clearly free.  Use the same notice that
47352         getdate.texi already uses.
47353         * doc/alloca-opt.texi: Add copyright notice.
47354         * doc/alloca.texi: Likewise.
47355         * doc/ctime.texi: Likewise.
47356         * doc/functions.texi: Likewise.
47357         * doc/gcd.texi: Likewise.
47358         * doc/gnulib-tool.texi: Likewise.
47359         * doc/inet_ntoa.texi: Likewise.
47360         * doc/visibility.texi: Likewise.
47361
47362         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
47363         * doc/quote.texi: Add copyright notice.
47364
47365         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
47366         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
47367         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
47368         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
47369         is now obsolete, and give a pointer to the Sun list.
47370         Add copyright notice.
47371
47372 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47373
47374         * config/srclistvars.sh: Add copyright notice.
47375
47376 2006-08-14  Eric Blake  <ebb9@byu.net>
47377
47378         Import the following change from libc:
47379
47380         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
47381
47382         Upstream bug 2997.
47383         * lib/misc/error.c: Add space between program name and message if file
47384         name is missing.
47385
47386 2006-08-12  Karl Berry  <karl@gnu.org>
47387
47388         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
47389         remove, these originate in gnulib now.
47390
47391 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47392
47393         * doc/Makefile (standards.info standards.html standards.dvi):
47394         Also depend on make-stds.texi.
47395
47396 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
47397
47398         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
47399         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
47400
47401         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
47402         in wchar_t.  Problem reported by Eric Blake.
47403
47404         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
47405         LEN is smaller than SIZE.  Suggested by Bruno Haible.
47406         Also, help the compiler to keep LEN in a register.
47407
47408 2006-08-11  Eric Blake  <ebb9@byu.net>
47409
47410         * users.txt: Sort.  Add tar.
47411
47412 2006-08-11  Bruno Haible  <bruno@clisp.org>
47413
47414         * users.txt: New file.
47415
47416 2006-08-11  Bruno Haible  <bruno@clisp.org>
47417
47418         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
47419         before <wchar.h>. Needed for OSF/1 and BSD/OS.
47420
47421 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47422
47423         * modules/snprintf (Depends-on): Remove minmax.
47424         (Maintainer): Add self and Bruno.
47425
47426 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47427
47428         * lib/.cppi-disable: Add snprintf.h, socket_.h.
47429         * lib/snprintf.c: Include <errno.h> and <limits.h>.
47430         (EOVERFLOW): Define if the system does not.
47431         Do not include "minmax.h"; it wasn't used.
47432         (snprintf): Don't assume size_t promotes to an unsigned type.
47433         Fix bug when generated string was too long for the buffer: the
47434         buffer's contents are supposed to be the initial prefix of the
47435         output.  Don't assume vasnprintf returns EOVERFLOW if the size
47436         exceeds INT_MAX; do the check ourselves.
47437
47438         Import the following changes from libc:
47439
47440         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
47441
47442         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
47443         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
47444         set wc to the byte which couldn't be converted.
47445         (re_string_reconstruct): Don't clear valid_raw_len before calling
47446         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
47447         tip_context using re_string_context_at.
47448
47449         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
47450
47451         * lib/posix/regex.h: g++ still cannot handled [restrict].
47452
47453         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
47454
47455         * lib/posix/regex.h: Remove special handling for VMS.
47456
47457 2006-08-10  Jim Meyering  <jim@meyering.net>
47458
47459         * modules/same-inode: New module.
47460         * modules/dev-ino: New module.
47461         * modules/cycle-check: Depend on these modules, rather than simply
47462         including their .h files.
47463         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
47464         required via m4/cycle-check.m4.
47465         * modules/same: Depend on new same-inode module, rather than
47466         including same-inode.h.
47467         * modules/chdir-safer: New file.
47468
47469         * modules/chown (Depends-on): Add stat-macros.
47470
47471 2006-08-10  Jim Meyering  <jim@meyering.net>
47472
47473         * m4/cycle-check.m4: New file.
47474         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
47475         * m4/dev-ino.m4, m4/same-inode.m4: New files.
47476
47477 2006-08-10  Eric Blake  <ebb9@byu.net>
47478
47479         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
47480         in from original proposal.
47481
47482 2006-08-10  Eric Blake  <ebb9@byu.net>
47483         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47484
47485         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
47486         namespace.
47487
47488 2006-08-10  Bruno Haible  <bruno@clisp.org>
47489
47490         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
47491         as well.
47492
47493 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
47494
47495         Sync from coreutils.
47496
47497         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
47498
47499         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
47500         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
47501
47502 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
47503
47504         * modules/restrict: Remove; no longer needed now that we assume
47505         Autoconf 2.59 or later.
47506         * MODULES.html.sh: Remove 'restrict'.
47507         * modules/argp (Depends-on): Remove 'restrict'.
47508         * modules/base64 (Depends-on): Likewise.
47509         * modules/gc (Depends-on): Likewise.
47510         * modules/getaddrinfo (Depends-on): Likewise.
47511         * modules/glob (Depends-on): Likewise.
47512         * modules/inet_ntop (Depends-on): Likewise.
47513         * modules/inet_pton (Depends-on): Likewise.
47514         * modules/memxor (Depends-on): Likewise.
47515         * modules/regex (Depends-on): Likewise.
47516         * modules/strtok_r (Depends-on): Likewise.
47517         * modules/time_r (Depends-on): Likewise.
47518
47519 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
47520
47521         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
47522         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
47523         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
47524         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
47525         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
47526         * m4/memxor.m4 (gl_MEMXOR): Likewise.
47527         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
47528         gl_C_RESTRICT replaced by AC_C_RESTRICT.
47529
47530         Merge from coreutils.
47531         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
47532         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
47533         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
47534         * m4/time_r.m4 (gl_TIME_R): Likewise.
47535
47536 2006-08-09  Karl Berry  <karl@gnu.org>
47537
47538         * config/srclist.txt: no more gettext-tools, per Bruno.
47539
47540 2006-08-08  Eric Blake  <ebb9@byu.net>
47541
47542         * modules/verror: New module.
47543         * MODULES.html.sh: Document it.
47544
47545 2006-08-08  Eric Blake  <ebb9@byu.net>
47546
47547         * lib/verror.h, lib/verror.c: New files.
47548
47549 2006-08-08  Eric Blake  <ebb9@byu.net>
47550
47551         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
47552         verror_at_line output complies with GNU Coding Standards even when
47553         file is NULL.
47554
47555 2006-08-07  Bruno Haible  <bruno@clisp.org>
47556
47557         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
47558         versions of AIX.
47559         Reported by Ralf Wildenhues.
47560
47561 2006-08-07  Bruno Haible  <bruno@clisp.org>
47562
47563         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
47564         in an AC_DEFUN. Needed so that the autoconf snippets can use
47565         AC_REQUIRE.
47566
47567 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47568
47569         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47570         Initialize pkgdata_DATA.
47571         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
47572         overriding it.
47573
47574 2006-08-06  Eric Blake  <ebb9@byu.net>
47575
47576         * lib/error.h: Fold in some upstream changes from glibc.
47577         * lib/error.c: Likewise.
47578
47579 2006-08-04  Bruno Haible  <bruno@clisp.org>
47580
47581         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47582         Make the mostlyclean-local rule depend on mostlyclean-generic.
47583         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
47584
47585 2006-07-31  Bruno Haible  <bruno@clisp.org>
47586
47587         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
47588         <stdlib.h>, <string.h>.
47589
47590 2006-07-30  Bruno Haible  <bruno@clisp.org>
47591
47592         * modules/readlink (License): Change to LGPL.
47593
47594 2006-07-30  Bruno Haible  <bruno@clisp.org>
47595
47596         * modules/javaversion (Makefile.am): Distribute javaversion.java and
47597         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
47598         set PKGDATADIR to point to it.
47599
47600 2006-07-30  Bruno Haible  <bruno@clisp.org>
47601
47602         * modules/csharpexec (configure.ac): Comment out macro invocation.
47603         * modules/javaexec (configure.ac): Likewise.
47604         * modules/javacomp-script (configure.ac): Likewise.
47605
47606         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
47607
47608 2006-07-30  Bruno Haible  <bruno@clisp.org>
47609
47610         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
47611         linked-list.
47612
47613 2006-07-30  Bruno Haible  <bruno@clisp.org>
47614
47615         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
47616
47617 2006-07-30  Bruno Haible  <bruno@clisp.org>
47618
47619         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47620         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
47621         get removed.
47622
47623 2006-07-29  Bruno Haible  <bruno@clisp.org>
47624
47625         Make it possible for gnulib-tool to work with locally modified or
47626         augmented gnulib repositories.
47627         * gnulib-tool (func_usage): Document --local-dir option.
47628         (local_gnulib_dir): New variable.
47629         Handle --local-dir option.
47630         (func_lookup_file): New function.
47631         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
47632         (func_get_description, func_get_filelist, func_get_description,
47633         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
47634         func_get_automake_snippet, func_get_include_directive,
47635         func_get_license, func_get_maintainer): Use func_lookup_file.
47636         (func_import, func_create_testdir): Use func_lookup_file.
47637
47638 2006-07-29  Bruno Haible  <bruno@clisp.org>
47639
47640         * modules/setenv (Depends-on): Add unistd.
47641
47642 2006-07-29  Bruno Haible  <bruno@clisp.org>
47643
47644         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
47645
47646 2006-07-29  Bruno Haible  <bruno@clisp.org>
47647
47648         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
47649
47650 2006-07-29  Bruno Haible  <bruno@clisp.org>
47651
47652         * gnulib-tool (import, update): If there is no Makefile.am, look at
47653         aclocal.m4, instead of bailing out.
47654
47655 2006-07-29  Bruno Haible  <bruno@clisp.org>
47656
47657         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
47658         Categorize the options by when they are useful.
47659
47660 2006-07-29  Bruno Haible  <bruno@clisp.org>
47661
47662         * gnulib-tool (func_usage): Document option --no-libtool.
47663         Handle option --no-libtool.
47664         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
47665         for changed semantics of $libtool variable.
47666         (func_import): Likewise. If libtool is not used, show this through
47667         an option --no-libtool.
47668         (func_create_testdir): Update.
47669
47670 2006-07-29  Bruno Haible  <bruno@clisp.org>
47671
47672         * gnulib-tool (func_import): Extend error message about missing
47673         --doc-base.
47674
47675 2006-07-29  Bruno Haible  <bruno@clisp.org>
47676
47677         * gnulib-tool (func_import): Don't create the $docbase directory if
47678         there is no file to store there.
47679
47680 2006-07-29  Bruno Haible  <bruno@clisp.org>
47681
47682         * gnulib-tool (autoconf_minversion): If a --dir option is given and
47683         relevant, look for configure.ac there, not in the current directory.
47684         Also use a simple search for AC_PREREQ, not "autoconf --trace".
47685
47686 2006-07-29  Bruno Haible  <bruno@clisp.org>
47687
47688         * gnulib-tool (SORT): New variable.
47689         (func_usage): Undocument --assume-autoconf option.
47690         Remove --assume-autoconf option handling.
47691         (autoconf_minversion): Determine from the contents of configure.ac.
47692         (func_import): Remove autoconf_minversion handling.
47693         Suggested by Eric Blake.
47694
47695 2006-07-29  Bruno Haible  <bruno@clisp.org>
47696
47697         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
47698
47699 2006-07-29  Bruno Haible  <bruno@clisp.org>
47700
47701         * config/srclist.txt (*setenv.[ch]): Remove rules.
47702
47703 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47704
47705         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
47706
47707 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47708
47709         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
47710         arpa/inet.h.
47711
47712 2006-07-28  Simon Josefsson  <jas@extundo.com>
47713
47714         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
47715         * modules/inet_pton (Depends-on): Likewise.
47716
47717 2006-07-28  Simon Josefsson  <jas@extundo.com>
47718
47719         * m4/netinet_in_h.m4: New file.
47720
47721 2006-07-28  Simon Josefsson  <jas@extundo.com>
47722
47723         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
47724         #include's.
47725
47726 2006-07-28  Simon Josefsson  <jas@extundo.com>
47727
47728         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
47729         #include's.
47730
47731 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
47732
47733         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
47734         setgid on directories only if they set these bits.
47735         * lib/modechange.h: Remove obsolete comment about masks.
47736
47737 2006-07-28  Eric Blake  <ebb9@byu.net>
47738
47739         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
47740         macro expansion.
47741
47742 2006-07-28  Bruno Haible  <bruno@clisp.org>
47743
47744         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
47745
47746 2006-07-28  Bruno Haible  <bruno@clisp.org>
47747
47748         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
47749
47750 2006-07-28  Bruno Haible  <bruno@clisp.org>
47751
47752         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
47753         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
47754         Define fallbacks.
47755         Avoids link error on FreeBSD 4.x.
47756         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47757
47758         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
47759         encoding.
47760         * lib/mbswidth.c (iswcntrl): Likewise.
47761
47762 2006-07-27  Bruno Haible  <bruno@clisp.org>
47763
47764         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
47765         test.
47766
47767 2006-07-27  Bruno Haible  <bruno@clisp.org>
47768
47769         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
47770         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
47771         defined.
47772
47773 2006-07-26  Eric Blake  <ebb9@byu.net>
47774
47775         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
47776
47777 2006-07-26  Eric Blake  <ebb9@byu.net>
47778
47779         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
47780         like mingw that lack mkstemp.
47781         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
47782         avoid compilation warning on mingw.
47783
47784 2006-07-26  Bruno Haible  <bruno@clisp.org>
47785
47786         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
47787         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
47788         INT_FAST*_MIN, INTPTR_MIN.
47789
47790 2006-07-25  Bruno Haible  <bruno@clisp.org>
47791
47792         * modules/version-etc (Depends-on): Add stdarg.
47793
47794 2006-07-25  Bruno Haible  <bruno@clisp.org>
47795
47796         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
47797         complex commands.
47798
47799 2006-07-25  Bruno Haible  <bruno@clisp.org>
47800
47801         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
47802         defined in <stdarg.h> or config.h.
47803
47804 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
47805
47806         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
47807         (gl_STDIO_SAFER): Remove.
47808
47809 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
47810
47811         * MODULES.html.sh (File stream based Input/Output):
47812         Add fopen-safer, tmpfile-safer; remove stdio-safer.
47813         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
47814         * modules/fopen-safer, modules/tmpfile-safer: New files.
47815         * modules/stdio-safer: Remove.
47816
47817 2006-07-24  Bruno Haible  <bruno@clisp.org>
47818
47819         * modules/tmpdir: New file.
47820         * MODULES.html.sh (File system functions): Add it.
47821
47822 2006-07-24  Bruno Haible  <bruno@clisp.org>
47823
47824         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
47825         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
47826
47827 2006-07-24  Bruno Haible  <bruno@clisp.org>
47828
47829         * modules/clean-temp: New file.
47830
47831 2006-07-24  Bruno Haible  <bruno@clisp.org>
47832
47833         * m4/tmpdir.m4: New file, from GNU gettext.
47834
47835 2006-07-24  Bruno Haible  <bruno@clisp.org>
47836
47837         * lib/tmpdir.h: New file, from GNU gettext.
47838         * lib/tmpdir.c: New file, from GNU gettext.
47839
47840 2006-07-24  Bruno Haible  <bruno@clisp.org>
47841
47842         * lib/clean-temp.h: New file, from GNU gettext.
47843         * lib/clean-temp.c: New file, from GNU gettext.
47844
47845 2006-07-23  Eric Blake  <ebb9@byu.net>
47846
47847         * modules/stdio-safer (Files): Add tmpfile-safer.c.
47848         (Depends-on): Add binary-io.
47849
47850 2006-07-23  Eric Blake  <ebb9@byu.net>
47851
47852         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
47853
47854 2006-07-23  Eric Blake  <ebb9@byu.net>
47855
47856         * lib/tmpfile-safer.c: New file.
47857         * lib/stdio-safer.h (fopen_safer): Add prototype.
47858         * lib/stdio--.h (tmpfile): Make safer.
47859
47860 2006-07-23  Bruno Haible  <bruno@clisp.org>
47861
47862         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
47863         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
47864         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
47865         gl_linked_remove_at): Use it.
47866
47867 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47868         and Simon Josefsson <jas@extundo.com>
47869
47870         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
47871
47872         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
47873
47874 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
47875
47876         * modules/close-stream: New file.
47877         * modules/closeout (Description): Make it clear that it exits
47878         with a diagnostic on error.
47879         (Depends-on): Add close-stream.  Remove fpending, stdbool.
47880         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
47881
47882 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
47883
47884         * m4/close-stream.m4: New file.
47885
47886 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
47887
47888         * lib/close-stream.c, lib/close-stream.h: New files.
47889
47890 2006-07-22  Bruno Haible  <bruno@clisp.org>
47891
47892         Merge from GNU gettext 0.15.
47893
47894         2006-05-01  Bruno Haible  <bruno@clisp.org>
47895
47896                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
47897
47898         2006-07-22  Bruno Haible  <bruno@clisp.org>
47899
47900                 * modules/javaversion: New file.
47901                 * MODULES.html.sh (Java): Add javaversion.
47902
47903         2006-03-12  Bruno Haible  <bruno@clisp.org>
47904
47905                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
47906
47907         2005-12-04  Bruno Haible  <bruno@clisp.org>
47908
47909                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
47910                 (untested).
47911
47912         2006-06-21  Bruno Haible  <bruno@clisp.org>
47913
47914                 Avoid warnings from recent versions of mcs.
47915                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
47916                 -o, -L, -r any more. Use options documented since mcs-1.0
47917                 instead. Similarly for -g.
47918
47919         2005-12-04  Bruno Haible  <bruno@clisp.org>
47920
47921                 * build-aux/csharpcomp.sh.in: Suffix for resources is
47922                 .resources, not .resource.
47923
47924         2005-07-09  Bruno Haible  <bruno@clisp.org>
47925
47926                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
47927                 add a .dll suffix.
47928                 Reported by Mark Junker <mjscod@gmx.de>.
47929
47930         2006-07-22  Bruno Haible  <bruno@clisp.org>
47931
47932                 * modules/gettext: Upgrade to gettext-0.15.
47933                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
47934                 m4/visibility.m4.
47935                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
47936
47937 2006-07-22  Bruno Haible  <bruno@clisp.org>
47938
47939         Merge from GNU gettext 0.15.
47940
47941         2006-03-25  Bruno Haible  <bruno@clisp.org>
47942
47943                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
47944
47945         2006-07-21  Bruno Haible  <bruno@clisp.org>
47946
47947                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
47948                 "1.1".
47949
47950         2006-05-09  Bruno Haible  <bruno@clisp.org>
47951
47952                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
47953                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
47954                 for the conftestver execution.
47955
47956         2006-05-01  Bruno Haible  <bruno@clisp.org>
47957
47958                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
47959                 optional target-version argument. Verify that the compiler
47960                 groks source of the specified source-version, or add -source
47961                 option as necessary. Verify that the compiler produces
47962                 bytecode in the specified target-version, or add -target and
47963                 -source options as necessary. Make the result of the test
47964                 available as variable CONF_JAVAC. Also log error output in
47965                 config.log.
47966
47967         2006-03-11  Bruno Haible  <bruno@clisp.org>
47968
47969                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
47970
47971         2006-05-09  Bruno Haible  <bruno@clisp.org>
47972
47973                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
47974                 CLASSPATH_SEPARATOR to a semicolon.
47975
47976         2006-03-12  Bruno Haible  <bruno@clisp.org>
47977
47978                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
47979                 available as variable CONF_JAVA, for subsequent autoconf
47980                 tests. Also log error output in config.log.
47981
47982         2006-07-19  Bruno Haible  <bruno@clisp.org>
47983
47984                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
47985                 that getline works on glibc2 systems. Needed to avoid trouble
47986                 in relocatable.c.
47987                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
47988
47989         2005-12-04  Bruno Haible  <bruno@clisp.org>
47990
47991                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
47992                 launcher (untested).
47993
47994         2005-12-04  Bruno Haible  <bruno@clisp.org>
47995
47996                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
47997
47998         2006-07-22  Bruno Haible  <bruno@clisp.org>
47999
48000                 * gettext.m4: Update from GNU gettext-0.15.
48001                 * nls.m4: Likewise.
48002                 * po.m4: Likewise.
48003                 * inttypes-pri.m4: Likewise.
48004                 * inttypes-h.m4: Renamed from inttypes.m4.
48005                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
48006
48007 2006-07-22  Bruno Haible  <bruno@clisp.org>
48008
48009         Merge from GNU gettext 0.15.
48010
48011         2005-07-05  Bruno Haible  <bruno@clisp.org>
48012
48013                 * printf-args.c (printf_fetchargs): Work around broken
48014                 definition of wint_t on mingw.
48015
48016         2005-02-12  Bruno Haible  <bruno@clisp.org>
48017
48018                 * xallocsa.h: Add extern "C" for C++.
48019
48020         2006-05-17  Bruno Haible  <bruno@clisp.org>
48021
48022                 Cygwin portability.
48023                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
48024
48025         2006-04-30  Bruno Haible  <bruno@clisp.org>
48026
48027                 * progreloc.c: Include <mach-o/dyld.h> if available.
48028                 (find_executable): Use _NSGetExecutablePath when possible.
48029
48030         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48031
48032                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
48033                 function.
48034
48035         2005-12-29  Bruno Haible  <bruno@clisp.org>
48036
48037                 * progreloc.c (set_program_name_and_installdir): Fix
48038                 compilation error.
48039
48040         2005-12-04  Bruno Haible  <bruno@clisp.org>
48041
48042                 Cygwin portability.
48043                 * progreloc.c: Include <windows.h> also on Cygwin.
48044                 (find_executable): Add support for Cygwin.
48045                 (set_program_name_and_installdir): Handle also platforms with
48046                 nonempty EXEEXT.
48047
48048         2006-07-11  Bruno Haible  <bruno@clisp.org>
48049
48050                 * javacomp.c: Fix a comment.
48051                 Reported by Jim Meyering.
48052
48053         2006-04-30  Bruno Haible  <bruno@clisp.org>
48054
48055                 * javacomp.h (compile_java_class): Add source_version,
48056                 target_version arguments.
48057                 * javacomp.c: Rewritten to choose only a compiler that
48058                 respects the specified source_version and target_version.
48059
48060         2006-06-27  Bruno Haible  <bruno@clisp.org>
48061
48062                 Assume correct S_ISDIR macro.
48063                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
48064
48065         2006-07-22  Bruno Haible  <bruno@clisp.org>
48066
48067                 * javaversion.h: New file, from GNU gettext.
48068                 * javaversion.c: New file, from GNU gettext.
48069                 * javaversion.java: New file, from GNU gettext.
48070                 * javaversion.class: New file, from GNU gettext.
48071
48072         2006-05-17  Bruno Haible  <bruno@clisp.org>
48073
48074                 Cygwin portability.
48075                 * javaexec.c (execute_java_class): Test for jview program
48076                 also on Cygwin.
48077
48078         2006-04-09  Bruno Haible  <bruno@clisp.org>
48079
48080                 * fatal-signal.c: Don't include string.h.
48081                 (at_fatal_signal): Use a copying loop instead of memcpy.
48082
48083         2005-12-04  Bruno Haible  <bruno@clisp.org>
48084
48085                 * csharpexec.c: Add support for 'clix' launcher (untested).
48086                 (execute_csharp_using_sscli): New function.
48087                 (execute_csharp_program): Call it.
48088
48089         2006-06-21  Bruno Haible  <bruno@clisp.org>
48090
48091                 Avoid warnings from recent versions of mcs.
48092                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
48093                 -o, -L, -r any more. Use options documented since mcs-1.0
48094                 instead. Similarly for -g.
48095
48096         2005-07-09  Bruno Haible  <bruno@clisp.org>
48097
48098                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
48099                 add a .dll suffix.
48100                 Reported by Mark Junker <mjscod@gmx.de>.
48101
48102         2006-06-17  Bruno Haible  <bruno@clisp.org>
48103
48104                 * config.charset: Update for NetBSD 3.0.
48105
48106         2006-05-17  Bruno Haible  <bruno@clisp.org>
48107
48108                 Cygwin portability.
48109                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
48110
48111         2006-05-16  Bruno Haible  <bruno@clisp.org>
48112
48113                 * localcharset.c [CYGWIN]: Include <windows.h>.
48114                 (get_charset_aliases): For Cygwin, return the same CPxxx
48115                 aliases list as under WIN32.
48116                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
48117                 the environment variables. Fall back to GetACP().
48118
48119         2006-04-05  Bruno Haible  <bruno@clisp.org>
48120
48121                 * config.charset: Update Juan Manuel Guerrero's address.
48122
48123         2005-02-12  Bruno Haible  <bruno@clisp.org>
48124
48125                 * allocsa.h: Add extern "C" for C++.
48126
48127         2005-02-10  Bruno Haible  <bruno@clisp.org>
48128
48129                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
48130                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
48131
48132         2006-07-22  Bruno Haible  <bruno@clisp.org>
48133
48134                 * gettext.h: Update to GNU gettext-0.15.
48135
48136 2006-07-22  Bruno Haible  <bruno@clisp.org>
48137
48138         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
48139         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
48140         lib-prefix.m4, longdouble.m4, ssize_t.m4.
48141
48142 2006-07-21  Eric Blake  <ebb9@byu.net>
48143
48144         * modules/stdlib-safer: New file.
48145         * MODULES.html.sh (File stream based Input/Output): Add
48146         stdlib-safer.
48147
48148 2006-07-21  Eric Blake  <ebb9@byu.net>
48149
48150         * lib/stdlib-safer.h: New file from coreutils, required by
48151         stdlib--.h.
48152
48153 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
48154
48155         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
48156
48157 2006-07-20  Bruno Haible  <bruno@clisp.org>
48158
48159         * gnulib-tool: Recognize new option --assume-autoconf.
48160         (autoconf_minversion): New variable.
48161         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
48162
48163 2006-07-20  Bruno Haible  <bruno@clisp.org>
48164
48165         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
48166
48167 2006-07-19  Derek R. Price  <derek@ximbiot.com>
48168
48169         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
48170         Reindent and repaginate.
48171
48172 2006-07-19  Derek Price  <derek@ximbiot.com>
48173
48174         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
48175         Correct grammar.
48176
48177 2006-07-17  Bruno Haible  <bruno@clisp.org>
48178
48179         * modules/list: New file.
48180         * modules/array-list: New file.
48181         * modules/carray-list, modules/carray-list-tests: New files.
48182         * modules/linked-list, modules/linked-list-tests: New files.
48183         * modules/avltree-list, modules/avltree-list-tests: New files.
48184         * modules/rbtree-list, modules/rbtree-list-tests: New files.
48185         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
48186         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
48187         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
48188         * modules/oset: New file.
48189         * modules/array-oset: New file.
48190         * modules/avltree-oset, modules/avltree-oset-tests: New files.
48191         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
48192         * tests/test-carray_list.c: New file.
48193         * tests/test-linked_list.c: New file.
48194         * tests/test-avltree_list.c: New file.
48195         * tests/test-rbtree_list.c: New file.
48196         * tests/test-linkedhash_list.c: New file.
48197         * tests/test-avltreehash_list.c: New file.
48198         * tests/test-rbtreehash_list.c: New file.
48199         * tests/test-avltree_oset.c: New file.
48200         * tests/test-rbtree_oset.c: New file.
48201         * MODULES.html.sh (Container data structures): New section.
48202
48203 2006-07-17  Bruno Haible  <bruno@clisp.org>
48204
48205         * m4/gl_list.m4: New file.
48206
48207 2006-07-17  Bruno Haible  <bruno@clisp.org>
48208
48209         * lib/gl_list.h: New file.
48210         * lib/gl_list.c: New file.
48211         * lib/gl_array_list.h: New file.
48212         * lib/gl_array_list.c: New file.
48213         * lib/gl_carray_list.h: New file.
48214         * lib/gl_carray_list.c: New file.
48215         * lib/gl_linked_list.h: New file.
48216         * lib/gl_linked_list.c: New file.
48217         * lib/gl_anylinked_list1.h: New file.
48218         * lib/gl_anylinked_list2.h: New file.
48219         * lib/gl_avltree_list.h: New file.
48220         * lib/gl_avltree_list.c: New file.
48221         * lib/gl_anyavltree_list1.h: New file.
48222         * lib/gl_anyavltree_list2.h: New file.
48223         * lib/gl_rbtree_list.h: New file.
48224         * lib/gl_rbtree_list.c: New file.
48225         * lib/gl_anyrbtree_list1.h: New file.
48226         * lib/gl_anyrbtree_list2.h: New file.
48227         * lib/gl_anytree_list1.h: New file.
48228         * lib/gl_anytree_list2.h: New file.
48229         * lib/gl_linkedhash_list.h: New file.
48230         * lib/gl_linkedhash_list.c: New file.
48231         * lib/gl_anyhash_list1.h: New file.
48232         * lib/gl_anyhash_list2.h: New file.
48233         * lib/gl_avltreehash_list.h: New file.
48234         * lib/gl_avltreehash_list.c: New file.
48235         * lib/gl_rbtreehash_list.h: New file.
48236         * lib/gl_rbtreehash_list.c: New file.
48237         * lib/gl_anytreehash_list1.h: New file.
48238         * lib/gl_anytreehash_list2.h: New file.
48239
48240         * lib/gl_oset.h: New file.
48241         * lib/gl_oset.c: New file.
48242         * lib/gl_array_oset.h: New file.
48243         * lib/gl_array_oset.c: New file.
48244         * lib/gl_avltree_oset.h: New file.
48245         * lib/gl_avltree_oset.c: New file.
48246         * lib/gl_rbtree_oset.h: New file.
48247         * lib/gl_rbtree_oset.c: New file.
48248         * lib/gl_anytree_oset.h: New file.
48249
48250 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
48251
48252         * m4/mkancesdirs.m4: New file.
48253         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
48254         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
48255         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
48256         it.
48257
48258 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
48259
48260         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
48261         * lib/mkancesdirs.h: New files.
48262         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
48263         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
48264         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
48265         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
48266         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
48267         callers changed.  Revamp internals significantly, by not
48268         attempting to create directories that are temporarily more
48269         permissive than the final results.  Do not attempt to use
48270         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
48271         This removes some race conditions, fixes some bugs, and simplifies
48272         things.  Use new dirchownmod function to do owner and mode changes.
48273         * lib/mkdir-p.h: Likewise.
48274         * lib/modechange.c (octal_to_mode): New function.
48275         (struct mode_change): New member mentioned.
48276         (make_node_op_equals): New arg mentioned.  All callers changed.
48277         (mode_compile): Keep track of which mode bits the user has explicitly
48278         mentioned.
48279         (mode_adjust): New arg DIR, so that we implement the X op correctly.
48280         New arg PMODE_BITS, to keep track of which mode bits the user
48281         mentioned; it treats S_ISUID and S_ISGID speciall.
48282         All callers changed.
48283         * lib/modechange.h: Likewise.
48284
48285 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
48286
48287         * MODULES.html.sh: Add mkancestors.
48288         * modules/mkancesdirs: New module.
48289         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
48290         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
48291         The chdir-safer and afs files are now orphans; I'll remove them
48292         unless someone speaks up.
48293         Add lib/dirchownmod.c, lib/dirchownmod.h.
48294         (Depends-on): Remove alloca, chown, save-cwd, dirname.
48295         Add lchown, mkancesdirs.
48296         (Maintainer): Add self.
48297
48298 2006-07-15  Karl Berry  <karl@gnu.org>
48299
48300         * gnulib-tool: help message wording/arrangement.
48301
48302 2006-07-14  Simon Josefsson  <jas@extundo.com>
48303
48304         * doc/gnulib.texi (Libtool and Windows): New section.
48305
48306 2006-07-12  Simon Josefsson  <jas@extundo.com>
48307
48308         * modules/gendocs (License): Fix license, approved by Karl.
48309
48310 2006-07-12  Eric Blake  <ebb9@byu.net>
48311
48312         * MODULES.html.sh: Add gendocs.
48313
48314 2006-07-11  Eric Blake  <ebb9@byu.net>
48315
48316         * modules/fdl: New module, to install doc/fdl.texi.
48317         * MODULES.html.sh: Add new section for documentation modules.
48318         * gnulib-tool: Avoid space-tab.
48319         (--doc-base): New option, to manage files from doc.
48320
48321 2006-07-11  Eric Blake  <ebb9@byu.net>
48322
48323         * m4/absolute-header.m4: Fix comments to match recent change.
48324
48325 2006-07-11  Eric Blake  <ebb9@byu.net>
48326
48327         * gnulib-tool: List --doc-base before --tests-base.
48328
48329 2006-07-11  Derek R. Price  <derek@ximbiot.com>
48330
48331         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
48332
48333 2006-07-11  Bruno Haible  <bruno@clisp.org>
48334
48335         * README: Mention where to put documentation.
48336
48337 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48338
48339         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
48340
48341 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
48342
48343         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
48344         to stdint.m4.
48345
48346 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
48347
48348         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
48349         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
48350         "no/such/file/stdint.h" when there is no such file, so that
48351         the resulting C code can be parsed by dodgy compilers.
48352         Problems reported by Bob Proulx.
48353
48354 2006-07-10  Derek R. Price  <derek@ximbiot.com>
48355
48356         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
48357         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
48358         macros into the GNU _D_EXACT_NAMLEN.
48359         * lib/savedir.c:  Likewise.
48360         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
48361
48362 2006-07-10  Derek R. Price  <derek@ximbiot.com>
48363         and Paul Eggert  <eggert@cs.ucla.edu>
48364
48365         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
48366         * m4/savedir.m4:
48367         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
48368         macros into the GNU _D_EXACT_NAMLEN.
48369
48370 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
48371
48372         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
48373         around the absolute name, to work around a problem with the HP-UX
48374         11.23 native C compiler, reported by Bob Proulx.
48375
48376 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
48377
48378         * doc/maintain.texi, make-stds.texi: Sync from
48379         <http://savannah.gnu.org/projects/gnustandards>.
48380
48381 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
48382
48383         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
48384
48385 2006-07-09  Jim Meyering  <jim@meyering.net>
48386
48387         * m4/glob.m4: Remove a doubled word in a comment.
48388
48389 2006-07-09  Jim Meyering  <jim@meyering.net>
48390
48391         * lib/argp-pv.c: Remove a doubled word in a comment.
48392         * lib/check-version.c (check_version): Likewise.
48393         * lib/javacomp.c (compile_java_class): Likewise.
48394
48395 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
48396
48397         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
48398         for the benefit of people using Autoconf 2.60.  If you want to
48399         support older Autoconf versions you can copy m4/onceonly_2_57.m4
48400         (or m4/onceonly.m4, if pre-2.57) manually.
48401
48402 2006-07-08  Jim Meyering  <jim@meyering.net>
48403
48404         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
48405         comment.
48406         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
48407         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
48408         comment.
48409
48410 2006-07-08  Jim Meyering  <jim@meyering.net>
48411
48412         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
48413
48414 2006-07-07  Simon Josefsson  <jas@extundo.com>
48415
48416         * tests/test-crc.c: Change expected crc value, the test vector
48417         were probably computed using the old broken crc.c?
48418
48419 2006-07-06  Simon Josefsson  <jas@extundo.com>
48420
48421         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
48422         now the canonical place for the M4 file).
48423
48424         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
48425         from the sys_socket dependency now.
48426
48427         * modules/inet_pton (Files): Ditto.
48428
48429         * modules/inet_ntop (Files): Ditto.
48430
48431 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48432
48433         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
48434         not gl_PREREQ_GETUSERSHELL.
48435
48436 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48437
48438         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
48439         with only one argument, for Autoconf 2.60.
48440         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
48441         expand to nothing, so add a shell command to avoid syntax error.
48442         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
48443
48444 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48445
48446         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
48447
48448 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
48449
48450         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
48451         no longer needed.  Check for isblank decl.
48452         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
48453         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
48454         of existence.
48455
48456 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
48457
48458         * lib/getloadavg.c: Use __VMS, not VMS.
48459         * lib/getopt.c: Likewise.
48460         * lib/getpagesize.h: Likewise.
48461         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
48462         and probably does not work.
48463
48464 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
48465
48466         * lib/.cppi-disable: Add wcwidth.
48467         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
48468         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
48469         (ISGRAPH): Remove.  All uses changed to isgraph.
48470         (FOLD) [!defined _LIBC]: Remove special case.
48471         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
48472         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
48473         HAVE_ISBLANK.
48474         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
48475         case.
48476
48477 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
48478
48479         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
48480         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
48481         brackets.  Other minor changes to suppress some compiler
48482         warnings.
48483
48484 2006-07-06  Derek R. Price  <derek@ximbiot.com>
48485         and Paul Eggert  <eggert@cs.ucla.edu>
48486
48487         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
48488         of invoking obsolescent AC_HEADER_DIRENT macro.
48489         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
48490         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
48491         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
48492         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
48493         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
48494         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
48495         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
48496         * m4/readdir.m4: Remove; no longer needed.
48497
48498 2006-07-06  Derek R. Price  <derek@ximbiot.com>
48499         and Paul Eggert  <eggert@cs.ucla.edu>
48500
48501         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
48502         Don't worry about this obsolete case any more.
48503         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
48504         directories.
48505         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
48506         worry about this obsolete case any more.
48507         * lib/fts.c: Likewise.
48508         * lib/getcwd.c: Likewise.
48509         * lib/glob.h: Likewise.
48510         * lib/savedir.c: Likewise.
48511
48512 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
48513
48514         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
48515         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
48516         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
48517         needed.
48518         All uses removed.
48519         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
48520         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
48521         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
48522         needed.
48523         * m4/getdate.m4 (gl_GETDATE): Likewise.
48524         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
48525         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
48526         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
48527         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
48528         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
48529         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
48530         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
48531         needed.
48532
48533 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
48534
48535         * lib/memcasecmp.c: Include <limits.h>.
48536         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
48537         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
48538         Don't assume isdigit succeeds only on '0' through '9'.
48539
48540 2006-07-05  Eric Blake  <ebb9@byu.net>
48541
48542         * modules/getaddrinfo (Depends-on): Add snprintf.
48543
48544 2006-07-05  Eric Blake  <ebb9@byu.net>
48545
48546         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
48547         to avoid 'header present but could not be compiled' on cygwin.
48548
48549 2006-07-05  Eric Blake  <ebb9@byu.net>
48550
48551         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
48552         missing from netdb.h.
48553         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
48554
48555 2006-07-05  Derek R. Price  <derek@ximbiot.com>
48556
48557         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
48558         no longer needed.
48559         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
48560         * m4/getdate.m4 (gl_GETDATE): Likewise.
48561         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
48562         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
48563         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
48564         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
48565         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
48566
48567 2006-07-05  Derek R. Price  <derek@ximbiot.com>
48568
48569         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
48570         All uses of is_space replaced by isspace.
48571         * lib/exit.h: Don't talk about STDC_HEADERS.
48572         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
48573         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
48574         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
48575         replaced by isprint etc.
48576         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
48577         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
48578         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
48579         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
48580         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
48581         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
48582
48583 2006-07-05  Bruno Haible  <bruno@clisp.org>
48584
48585         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
48586         the function exists, before testing against AIX.
48587         Reported by Martin Lambers <marlam@marlam.de>.
48588
48589 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
48590
48591         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
48592         From Mark D. Baushke.
48593
48594 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
48595
48596         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
48597         to the absolute name, not just one, to bypass Sun C 5.8's
48598         "warning: #include of /usr/include/... may be non-portable".
48599
48600 2006-07-04  Eric Blake  <ebb9@byu.net>
48601
48602         * modules/dirname-tests: New test module.
48603         * tests/test-dirname.c: New file, replacing dirname.c
48604         TEST_DIRNAME section that was recently deleted.
48605
48606 2006-07-04  Bruno Haible  <bruno@clisp.org>
48607
48608         Assume ANSI C header files and <ctype.h> functions.
48609         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
48610         (mbsnwidth): Use isprint, iscntrl instead.
48611
48612 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
48613
48614         Merge from coreutils.
48615         * MODULES.html.sh: Add xstrtold.
48616         * modules/xstrtold: New file.
48617         * modules/cycle-check (Files): Add lib/same-inode.h.
48618         * modules/dirname (Files): Add m4/double-slash-root.m4.
48619         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
48620         * modules/mkdir-p (Files): Add lib/same-inode.h.
48621         * modules/same (Files): Add lib/same-inode.h.
48622
48623 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
48624
48625         * m4/absolute-header.m4: Renamed from full-header-path.m4.
48626         This is to keep the terminology clean; POSIX talks about
48627         "absolute pathnames", not "full pathnames", but the GNU
48628         Coding Standards say to use "path" for something else;
48629         so use "absolute" to keep both sides happy.
48630         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
48631         Set gl_absolute_header, not gl_full_header_path.
48632         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
48633         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
48634         All uses changed.
48635
48636         Merge from coreutils.
48637
48638         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
48639
48640         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
48641         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
48642         want to require the building of c-strtod.o.
48643         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
48644         needs -lm directly.
48645         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
48646
48647         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
48648
48649         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
48650         --as-needed option if available.  Problem reported by Albert Chin in
48651         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
48652         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
48653         cc merely issues a bunch of annoying warnings for --as-needed
48654         (this problem was reported by Bob Proulx).  Also, try linking with
48655         -lm to detect a bug in binutils 2.16 (this problem was reported
48656         by Ralf Wildenhues).
48657
48658         2006-06-18  Jim Meyering  <jim@meyering.net>
48659
48660         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
48661         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
48662         macro.
48663         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
48664         also check for glibc-2.4's abort-inducing bug.
48665
48666         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
48667         Low-probability clean-up should be to use rmdir to get rid of
48668         the just-created directory, not unlink.
48669
48670         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
48671         configure fail, and request a bug report to inform us about it.
48672         Add a comment that, barring reports to the contrary, in 2007 we'll
48673         assume ftruncate is universally available.
48674
48675         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
48676
48677         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
48678
48679         2006-03-12  Jim Meyering  <jim@meyering.net>
48680
48681         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
48682         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
48683         * m4/same.m4 (gl_SAME): Likewise.
48684         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
48685
48686         2006-03-11  Eric Blake  <ebb9@byu.net>
48687
48688         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
48689         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
48690         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
48691         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
48692
48693 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
48694
48695         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
48696         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
48697         reported by Mark D. Baushke, one in
48698         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
48699
48700         Merge from coreutils.
48701
48702         * lib/.cppi-disable: Add stdint_.h.
48703         * lib/.cvsignore: Add stdint.h.
48704
48705         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
48706
48707         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
48708         both double and long double versions.
48709         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
48710         * lib/xstrtold.c: New file.
48711         * lib/xstrtod.h (xstrtold): New decl.
48712
48713         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
48714
48715         * lib/filemode.c (setst): Remove.
48716         (strmode): Rewrite to avoid setst.  This makes the code shorter,
48717         (arguably) clearer, and the generated code is a bit smaller on my
48718         Debian GNU/Linux stable x86 host.
48719
48720         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
48721
48722         * lib/filemode.c: Include "filemode.h" first, to test the interface.
48723         Assume that filemode.h includes sys/types.h and sys/stat.h.
48724         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
48725         (ftypelet): Reorder to put common cases first, for efficiency.
48726         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
48727         to do 'M'.
48728         (strmode): Renamed from mode_string, and now stores 12 bytes instead
48729         of 10, for compatibility with FreeBSD.  All callers changed.
48730         (filemodestring): Now stores 12 bytes instead of 10, and sets file
48731         types that can't be deduced solely from st_mode.  First arg is now a
48732         const pointer.
48733         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
48734         (strmode): Renamed from mode_string.
48735         (filemodestring): New decl.
48736         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
48737         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
48738         needed.
48739         (S_ISPORT, S_ISWHT): New macros, if not already defined.
48740
48741         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
48742
48743         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
48744         fsusage.h now does that.  Include fsusage.h first, to test interface.
48745         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
48746         at most one method (the old code could have generated decls that
48747         didn't conform to C89, not that this was ever exercised).
48748         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
48749
48750         2006-03-19  Jim Meyering  <jim@meyering.net>
48751
48752         Work even in a chroot where d_ino values for entries in "/"
48753         don't match the stat.st_ino values for the same names.
48754         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
48755         number, iterate through all entries again, using lstat instead.
48756         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
48757         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
48758
48759         * lib/getcwd.c (__getcwd): Clarify a comment.
48760         Use memcpy in place of a call to strcpy.
48761
48762         2006-03-12  Jim Meyering  <jim@meyering.net>
48763
48764         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
48765         matches that of the current directory (which we're about to chdir ".."
48766         out of), then save the dev-ino of the parent, instead.
48767
48768         * lib/same-inode.h (SAME_INODE): New file/macro.
48769         * lib/chdir-safer.c (SAME_INODE): Remove definition.
48770         Include "same-inode.h", instead.
48771         * lib/same.c: Likewise.
48772         * lib/cycle-check.h: Include "same-inode.h".
48773         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
48774         * lib/cycle-check.c (SAME_INODE): Remove definition.
48775         * lib/root-dev-ino.h: Include "same-inode.h".
48776
48777         2006-03-11  Eric Blake  <ebb9@byu.net>
48778
48779         * lib/same.c (same_name): s/base_name/last_component/
48780         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
48781         * lib/filenamecat.c (file_name_concat): Likewise.
48782
48783         2006-03-11  Eric Blake  <ebb9@byu.net>,
48784                     Paul Eggert  <eggert@cs.ucla.edu>
48785
48786         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
48787         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
48788         drive prefix.
48789         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
48790         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
48791         (last_component): New method.
48792         * lib/dirname.c (dir_len): Determine when drive letters need a
48793         subsequent slash.  Preserve // when it is special.
48794         (dir_name): Don't append dot when drive letter is absolute.
48795         [TEST_DIRNAME]: Move into a full-blown gnulib test.
48796         * lib/basename.c (base_name): New semantics - malloc the result.
48797         Preserve // when it is special.  Preserve relative files that look
48798         like drive letters.
48799         (base_len): Preserve // when it is special.
48800         (last_component): New method, similar to old base_name semantics.
48801         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
48802         base_name.  Strip redundant slashes from ///.
48803
48804 2006-07-03  Jim Meyering  <jim@meyering.net>
48805
48806         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
48807         macro is used before the first cycle_check call.
48808
48809 2006-07-03  Eric Blake  <ebb9@byu.net>
48810
48811         * modules/dirname (Depends-on): Add xstrndup.
48812
48813 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
48814
48815         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
48816         test cases, so that config.log is a bit easier to follow.
48817
48818 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
48819
48820         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
48821         both are 64 bits, since this seems to be the tradition, and this
48822         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
48823         we ever run into a host that prefers long long to long in this
48824         case, we'll need another configure-time test.  Problem reported by
48825         Jim Meyering.
48826
48827 2006-07-02  Eric Blake  <ebb9@byu.net>
48828
48829         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
48830
48831 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
48832
48833         * modules/inttypes (Depends-on): No longer depends on stdint.
48834         * modules/stdint (Description): Say more about assumptions.
48835         Say that the fast types might differ.  Say macros are used.
48836         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
48837         (Makefile.am): Revise list of substituted symbols to match
48838         new stdint.m4.
48839         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
48840         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
48841         * tests/test-stdint.c (verify_same_types)
48842         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
48843         the code conforms to C99/C89.
48844         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
48845         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
48846
48847 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
48848
48849         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
48850         but fix a bug, by requiring at least 64 bits.
48851         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
48852         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
48853         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
48854         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
48855
48856         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
48857         changes.  Make 2.59 a prerequisite.  Check and substitute for
48858         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
48859         inttypes.h.  Do not use special include files; just use the
48860         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
48861         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
48862         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
48863         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
48864         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
48865         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
48866         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
48867         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
48868         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
48869         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
48870         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
48871         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
48872         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
48873         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
48874         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
48875         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
48876         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
48877         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
48878         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
48879         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
48880         WINT_MAX.  Check for C99 conformance more strictly, by detecting
48881         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
48882         not check for things that C99 does not require, e.g., int8_t.  If
48883         a test isn't needed unless <stdint.h> isn't working, and is
48884         unlikely to be needed for any other reason, then don't do it
48885         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
48886         size_t, since we assume C89 freestanding at least.  Do not check
48887         for sig_atomic_t, wchar_t, or wint_t, since the code now does
48888         the right thing even if the types are not defined.  Instead use:
48889         (gl_STDINT_TYPE_PROPERTIES): New macro.
48890         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
48891         testing whether <sys/types.h> clashes, as Autoconf does this for
48892         us now.  All uses removed.
48893         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
48894         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
48895         (gl_CHECK_TYPE_SAME):
48896         Remove; no longer needed.
48897         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
48898         exists, since we'll return 0 anyway in that case.
48899         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
48900
48901 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
48902
48903         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
48904         possible collision with system files.
48905         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
48906         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
48907         WCHAR_MIN and WCHAR_MAX in this case.
48908         (<stddef.h>): Do not include; no longer needed.
48909         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
48910         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
48911         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
48912         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
48913         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
48914         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
48915         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
48916         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
48917         !defined(__c99))]: Include in this case too, since it's harmless
48918         now.
48919         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
48920         dangerous to do so.
48921         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
48922         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
48923         (_STDINT_MIN, _STDINT_MAX): New macros.
48924         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
48925         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
48926         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
48927         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
48928         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
48929         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
48930         macros, not typedefs; this simplifies things quite a bit.
48931         Use long int for all types narrower than int64_t.
48932         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
48933         Define in terms of long long int or int64_t or long int,
48934         not int64_t or int32_t.  This saves some compile-time testing.
48935         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
48936         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
48937         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
48938         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
48939         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
48940         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
48941         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
48942         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
48943         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
48944         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
48945         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
48946         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
48947         undef any previous version and define our own version, for
48948         simplicity and consistency with the new macros for types.
48949         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
48950         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
48951         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
48952         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
48953         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
48954         @WINT_T_SUFFIX@ to keep things simple here.
48955         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
48956         Simplify by assuming typical 8/16/32/64 host, since we're
48957         already doing that elsewhere anyway.
48958         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
48959         and assume long long int is 64 bits if available.  This
48960         speeds up 'configure'.
48961
48962 2006-07-01  Eric Blake  <ebb9@byu.net>
48963
48964         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
48965         Reported by Andreas Buening.
48966
48967 2006-07-01  Eric Blake  <ebb9@byu.net>
48968
48969         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
48970
48971 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
48972
48973         * lib/getaddrinfo.c: fixed typo
48974
48975 2006-06-29  Jim Meyering  <jim@meyering.net>
48976
48977         * modules/strftime (Maintainer): Add my name, since with the
48978         FPRINTFTIME changes strftime.c has forked from glibc.
48979
48980 2006-06-29  Eric Blake  <ebb9@byu.net>
48981
48982         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
48983
48984 2006-06-29  Eric Blake  <ebb9@byu.net>
48985
48986         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
48987
48988 2006-06-29  Eric Blake  <ebb9@byu.net>
48989
48990         * lib/stat_.h: New file.
48991
48992 2006-06-29  Eric Blake  <ebb9@byu.net>
48993
48994         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
48995         unused static function.
48996
48997 2006-06-29  Eric Blake  <ebb9@byu.net>
48998
48999         * doc/functions.texi (Function Portability): Document missing lstat
49000         on mingw.
49001
49002 2006-06-29  Eric Blake  <ebb9@byu.net>
49003
49004         * MODULES.html.sh: Add sys_stat.
49005         * modules/sys_stat: New module.
49006         * modules/mkstemp (Depends-on): Add sys_stat.
49007
49008 2006-06-29  Derek R. Price  <derek@ximbiot.com>
49009
49010         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
49011
49012 2006-06-29  Derek R. Price  <derek@ximbiot.com>
49013
49014         * m4/c-bs-a.m4: Removed.
49015
49016 2006-06-29  Derek R. Price  <derek@ximbiot.com>
49017
49018         * lib/strftime.c: Assume strftime() exists.
49019
49020 2006-06-29  Derek Price  <derek@ximbiot.com>
49021
49022         * modules/c-bs-a: Removed - \a is C89.
49023         * MODULES.html.sh: Remove c-bs-a.
49024
49025 2006-06-29  Bruno Haible  <bruno@clisp.org>
49026
49027         * modules/wcwidth (License): Change to LGPL.
49028
49029 2006-06-28  Simon Josefsson  <jas@extundo.com>
49030
49031         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
49032         on _WIN32.
49033
49034         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
49035         getnameinfo.
49036
49037 2006-06-28  Simon Josefsson  <jas@extundo.com>
49038
49039         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
49040
49041 2006-06-28  Simon Josefsson  <jas@extundo.com>
49042
49043         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
49044         functions there.  It will succeed on Windows XP, but on Windows
49045         2000 and (presumably) earlier, it will fail, and use the internal
49046         re-implementation.
49047         (use_win32_p): New function.
49048         (getaddrinfo): Use strtoul on servname, to support numeric ports.
49049         Support AI_NUMERICSERV to disable getservbyname.
49050         (getnameinfo): New function, only supports
49051         NI_NUMERICHOST|NI_NUMERICSERV for now.
49052
49053         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
49054         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
49055         getnameinfo.
49056
49057 2006-06-28  Eric Blake  <ebb9@byu.net>
49058
49059         * modules/wcwidth: New file.
49060         * modules/mbchar (Depends-on): Add wcwidth.
49061         * modules/mbswidth (Depends-on): Add wcwidth.
49062         * MODULES.html.sh: Add wcwidth.
49063
49064 2006-06-28  Eric Blake  <ebb9@byu.net>
49065
49066         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
49067         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
49068
49069 2006-06-28  Eric Blake  <ebb9@byu.net>
49070
49071         * lib/xvasprintf.h: Fix comments.
49072
49073 2006-06-28  Eric Blake  <ebb9@byu.net>
49074
49075         * lib/mbchar.h (wcwidth): Include wcwidth.h.
49076         * lib/mbswidth.c (wcwidth): Move from here...
49077         * lib/wcwidth.h: ...to this new file.
49078
49079 2006-06-28  Derek R. Price  <derek@ximbiot.com>
49080
49081         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
49082
49083         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
49084         it's obsolete.
49085         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
49086
49087 2006-06-28  Derek R. Price  <derek@ximbiot.com>
49088
49089         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
49090         Autoconf 2.60 says this stuff was obsolete.
49091
49092 2006-06-28  Bruno Haible  <bruno@clisp.org>
49093
49094         * modules/wcwidth (Files): Add m4/wchar_t.m4.
49095
49096 2006-06-28  Bruno Haible  <bruno@clisp.org>
49097
49098         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
49099         gt_TYPE_WCHAR_T.
49100
49101 2006-06-28  Bruno Haible  <bruno@clisp.org>
49102
49103         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
49104         declaration for wcwidth.
49105         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
49106
49107 2006-06-28  Bruno Haible  <bruno@clisp.org>
49108
49109         * lib/mkdtemp.c [MINGW]: Include <io.h>.
49110         (mkdir): Define using _mkdir.
49111
49112 2006-06-28  Bruno Haible  <bruno@clisp.org>
49113
49114         * lib/getaddrinfo.h: Fix POSIX URL.
49115         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
49116         _WIN32.
49117         (use_win32_p): Make static.
49118         (getaddrinfo): Reject service name if it is empty or does not consist
49119         solely of decimal digits, or if its value is > 65535.
49120         (getnameinfo): Remove useless casts.
49121
49122 2006-06-27  Simon Josefsson  <jas@extundo.com>
49123
49124         * modules/sys_select: New file, suggested by Bruno Haible, Paul
49125         Eggert and Martin Lambers.
49126
49127 2006-06-27  Simon Josefsson  <jas@extundo.com>
49128
49129         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
49130         Eggert and Martin Lambers.
49131
49132 2006-06-27  Bruno Haible  <bruno@clisp.org>
49133
49134         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
49135         result to 0, not to empty.
49136         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
49137
49138 2006-06-27  Bruno Haible  <bruno@clisp.org>
49139
49140         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
49141
49142 2006-06-26  Simon Josefsson  <jas@extundo.com>
49143
49144         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
49145         present.
49146
49147 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
49148
49149         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
49150         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
49151         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
49152
49153 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
49154
49155         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
49156
49157 2006-06-26  Bruno Haible  <bruno@clisp.org>
49158
49159         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
49160
49161 2006-06-26  Bruno Haible  <bruno@clisp.org>
49162
49163         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
49164
49165 2006-06-26  Bruno Haible  <bruno@clisp.org>
49166
49167         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
49168         SGI C compiler in pre-C99 mode.
49169         Suggested by Mark D. Baushke and Larry Jones.
49170
49171 2006-06-26  Bruno Haible  <bruno@clisp.org>
49172
49173         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
49174         WCHAR_MAX.
49175         Reported by Mark D. Baushke and Larry Jones.
49176
49177 2006-06-26  Bruno Haible  <bruno@clisp.org>
49178
49179         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
49180         in pre-C99 mode.
49181         Suggested by Mark D. Baushke and Larry Jones.
49182
49183 2006-06-23  Simon Josefsson  <jas@extundo.com>
49184             Bruno Haible  <bruno@clisp.org>
49185
49186         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
49187         Emit mostlyclean-local rule.
49188         (func_emit_tests_Makefile_am): Likewise.
49189         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
49190
49191 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
49192
49193         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
49194
49195 2006-06-23  Bruno Haible  <bruno@clisp.org>
49196
49197         * tests/test-stdint.c: Update to match ISO C 99 Technical
49198         Corrigendum 1.
49199
49200 2006-06-23  Bruno Haible  <bruno@clisp.org>
49201
49202         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
49203
49204 2006-06-23  Bruno Haible  <bruno@clisp.org>
49205
49206         * lib/stdint_.h: Treat IRIX like OpenBSD.
49207
49208 2006-06-23  Bruno Haible  <bruno@clisp.org>
49209
49210         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
49211         ISO C 99 Technical Corrigendum 1.
49212
49213 2006-06-22  Simon Josefsson  <jas@extundo.com>
49214
49215         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
49216         MinGW.
49217
49218 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
49219
49220         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
49221         needed.  Some compiler complained about some of them.  Problem reported
49222         by Larry Jones in
49223         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
49224
49225 2006-06-21  Simon Josefsson  <jas@extundo.com>
49226
49227         * tests/test-getaddrinfo.c: New file.
49228
49229         * modules/getaddrinfo-tests: New file.
49230
49231         * MODULES.html.sh: Add inet_pton.
49232
49233         * modules/inet_pton: New file.
49234
49235 2006-06-21  Simon Josefsson  <jas@extundo.com>
49236
49237         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
49238         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
49239         of using the (limited) gnulib implementation on Windows XP.
49240
49241         * m4/inet_pton.m4: New file.
49242
49243 2006-06-21  Simon Josefsson  <jas@extundo.com>
49244
49245         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
49246         variable.
49247
49248         * lib/socket_.h: Don't define WINVER.
49249
49250         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
49251         slightly modified to work in gnulib.
49252
49253 2006-06-21  Simon Josefsson  <jas@extundo.com>
49254
49255         * doc/gnulib.texi (Windows sockets): Add.
49256
49257 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
49258
49259         * lib/read-file.c (fread_file): Start with buffer allocation of
49260         0 bytes rather than 1 byte; this simplifies the code.
49261         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
49262         code to free buffer and save/restore errno.
49263         (internal_read_file): Remove unused local.
49264
49265 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
49266
49267         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
49268         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
49269         Problem reported by Denis Excoffier in
49270         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
49271
49272 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49273
49274         * modules/sys_socket, modules/socklen: Include sys/types since
49275         FreeBSD 4.x's sys/socket.h needs it.
49276
49277 2006-06-19  Simon Josefsson  <jas@extundo.com>
49278
49279         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
49280
49281 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
49282
49283         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
49284
49285 2006-06-19  Bruno Haible  <bruno@clisp.org>
49286
49287         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
49288         and FULL_PATH_INTTYPES_H in angle brackets.
49289         Reported by Mark D. Baushke <mdb@gnu.org>.
49290
49291 2006-06-17  Eric Blake  <ebb9@byu.net>
49292
49293         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
49294         errno.
49295
49296 2006-06-17  Bruno Haible  <bruno@clisp.org>
49297
49298         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
49299         <sys/inttypes.h>.
49300
49301 2006-06-17  Bruno Haible  <bruno@clisp.org>
49302
49303         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
49304         whether errno is declared. Assume <errno.h> declares errno.
49305
49306 2006-06-17  Bruno Haible  <bruno@clisp.org>
49307
49308         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
49309
49310 2006-06-17  Bruno Haible  <bruno@clisp.org>
49311
49312         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
49313         problem on Solaris 2.5.1.
49314
49315 2006-06-16  Eric Blake  <ebb9@byu.net>
49316
49317         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
49318         * lib/unicodeio.c [!defined errno]: Likewise.
49319         * lib/strtol.c [!defined errno]: Likewise.
49320         * lib/strtod.c [!defined errno]: Likewise.
49321
49322 2006-06-15  Eric Blake  <ebb9@byu.net>
49323
49324         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
49325
49326 2006-06-15  Eric Blake  <ebb9@byu.net>
49327
49328         * config/srclist.txt (ssize_t.m4): Lose sync.
49329
49330 2006-06-15  Bruno Haible  <bruno@clisp.org>
49331
49332         * modules/stdint (Files): Include m4/full-header-path.m4,
49333         m4/size_max.m4, m4/wchar_t.m4.
49334         (Makefile.am): Many more substitutions.
49335         * modules/stdint-tests: New file.
49336         * tests/test-stdint.c: New file.
49337
49338 2006-06-15  Bruno Haible  <bruno@clisp.org>
49339
49340         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
49341         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
49342         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
49343         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
49344         gl_CHECK_TYPE_SAME): New macros.
49345
49346 2006-06-15  Bruno Haible  <bruno@clisp.org>
49347
49348         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
49349
49350 2006-06-15  Bruno Haible  <bruno@clisp.org>
49351
49352         * lib/stdint_.h: Rewritten to be fully auto-configured.
49353         Fixes bug on HP-UX/IA64.
49354
49355 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
49356
49357         * lib/getdate.y (__attribute__): Don't define if already defined.
49358         Problem reported by Larry Jones.
49359         * lib/utimens.c (__attribute__): Likewise.
49360
49361 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
49362
49363         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
49364         reported by Andreas Schwab.
49365
49366 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49367             Bruno Haible  <bruno@clisp.org>
49368
49369         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
49370         check for the declaration of strnlen and a run test that exposes the
49371         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
49372         rpl_strndup.
49373
49374 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49375             Bruno Haible  <bruno@clisp.org>
49376
49377         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
49378
49379 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49380
49381         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
49382         compile test, for Tru64 4.0D.
49383
49384 2006-05-28  Karl Berry  <karl@gnu.org>
49385
49386         * config/srclist.txt (printf-args.c): lose sync.
49387
49388 2006-05-26  Martin Lambers  <marlam@marlam.de>
49389
49390         * lib/getpass.c: Updates the test for the native W32 API, and adds
49391         missing includes, thus fixing compilation warnings.
49392
49393 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49394
49395         * lib/exclude.c (exclude_fnmatch): New function.
49396         (excluded_file_name): Call exclude_fnmatch.
49397         * lib/exclude.h (excluded_file_name): New prototype
49398
49399 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
49400
49401         * lib/tempname.c (small_open, large_open): New macros.
49402         (__open, __open64) [!_LIBC]: Remove.
49403         (__gen_tempname): Use small_open and large_open instead of __open
49404         and __open64.  This fixes a portability bug on HP-UX 11.11i
49405         reported by Simon Wing-Tang in
49406         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
49407
49408 2006-05-24  Bruno Haible  <bruno@clisp.org>
49409
49410         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
49411         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
49412         Reported by Thorsten Maerz <torte@netztorte.de> via
49413         Aaron Stone <aaron@serendipity.cx>.
49414
49415 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
49416
49417         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
49418         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
49419         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
49420         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
49421         not really conditional on the cache.
49422         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
49423
49424 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
49425
49426         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
49427         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
49428         (my_usleep): Don't mishandle maximum value.
49429
49430 2006-05-19  Jim Meyering  <jim@meyering.net>
49431
49432         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
49433
49434 2006-05-17  Bruno Haible  <bruno@clisp.org>
49435
49436         Cygwin portability.
49437         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
49438
49439 2006-05-17  Bruno Haible  <bruno@clisp.org>
49440
49441         * lib/stdint_.h: Fix recognition of Cygwin.
49442
49443 2006-05-15  Bruno Haible  <bruno@clisp.org>
49444
49445         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
49446         on libtool patch by Ralf Wildenhues.
49447
49448 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
49449
49450         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
49451         test for C99 conformance; (bool) 0.5 is an integer constant
49452         expression, but (bool) -0.5 is not.  Problem reported by Fedor
49453         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
49454
49455 2006-05-11  Simon Josefsson  <jas@extundo.com>
49456
49457         * m4/xvasprintf.m4: Fix obvious typo.
49458
49459 2006-05-11  Jim Meyering  <jim@meyering.net>
49460
49461         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
49462         James Lemley.
49463
49464 2006-05-10  Simon Josefsson  <jas@extundo.com>
49465
49466         * lib/md4.c: Typo fix, update copyright years.
49467         (K1, K2): Don't use L because it turn computations into 64-bit on
49468         64-bit platforms.
49469
49470 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
49471
49472         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
49473         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
49474         unwanted sign propagation, e.g., on hosts with 64-bit int.
49475         There still are some problems with reeelly weird theoretical hosts
49476         (e.g., 33-bit int) but it's not worth worrying about now.
49477         * lib/sha1.c (rol): Likewise.
49478         (K1, K2, K3, K4): Remove unnecessary L suffix.
49479
49480 2006-05-10  Bruno Haible  <bruno@clisp.org>
49481
49482         * lib/des.c: Cast to avoid warnings.
49483
49484 2006-05-09  Bruno Haible  <bruno@clisp.org>
49485
49486         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
49487         (Depends-on): Depend also on xsize, stdarg.
49488         (configure.ac): Add gl_XVASPRINTF.
49489
49490 2006-05-09  Bruno Haible  <bruno@clisp.org>
49491
49492         * m4/xvasprintf.m4: New file.
49493
49494 2006-05-09  Bruno Haible  <bruno@clisp.org>
49495
49496         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
49497         (EOVERFLOW): Define fallback value.
49498         (xstrcat): New function.
49499         (xvasprintf): Recognize the special case of a string concatenation.
49500
49501 2006-05-08  Eric Blake  <ebb9@byu.net>
49502
49503         * gnulib-tool (func_version): Base copyright year on CVS date.
49504         (func_emit_copyright_notice): New function.
49505         (func_emit_lib_Makefile_am): Use it.
49506         (func_emit_tests_Makefile_am): Likewise.
49507         (func_import): Likewise.
49508
49509 2006-05-08  Bruno Haible  <bruno@clisp.org>
49510
49511         * modules/stdarg: New file.
49512         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
49513
49514 2006-05-08  Bruno Haible  <bruno@clisp.org>
49515
49516         * m4/stdarg.m4: New file, from GNU gettext.
49517
49518 2006-05-08  Bruno Haible  <bruno@clisp.org>
49519
49520         * config/srclist.txt (build-aux/config.rpath): different from latest
49521         release.
49522
49523 2006-05-08  Bruno Haible  <bruno@clisp.org>
49524
49525         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
49526
49527 2006-05-05  Jim Meyering  <jim@meyering.net>
49528
49529         * m4/warning.m4: New file, derived from bison's file by the same name.
49530
49531 2006-05-03  Bruno Haible  <bruno@clisp.org>
49532
49533         * lib/stdint_.h: Shorter URL.
49534         * lib/inttypes.h: Likewise.
49535
49536 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
49537
49538         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
49539
49540 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
49541
49542         * lib/verify.h: Document the internals better.  Most of this change
49543         was written by Bruno Haible.
49544
49545 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
49546
49547         * doc/verify.texi: New file, partly based on a proposal by
49548         Bruno Haible.
49549
49550 2006-05-02  Bruno Haible  <bruno@clisp.org>
49551
49552         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
49553         test from here...
49554         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
49555
49556 2006-04-29  Bruno Haible  <bruno@clisp.org>
49557
49558         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
49559         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
49560
49561 2006-04-29  Bruno Haible  <bruno@clisp.org>
49562
49563         * gnulib-tool: Make --update option actually work.
49564
49565 2006-04-29  Bruno Haible  <bruno@clisp.org>
49566
49567         * doc/gcd.texi: New file.
49568         * doc/gnulib.texi: Include it.
49569
49570 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
49571
49572         * lib/getdate.y (get_date): When adding relative date, start with the
49573         initial time, not with the result of the first mktime call.
49574
49575 2006-04-25  Bruno Haible  <bruno@clisp.org>
49576
49577         * gnulib-tool (func_import): Output the include directives in three
49578         blocks, sorted separately.
49579         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49580
49581 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
49582
49583         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
49584         to define main with arguments, for C++.  Reported by Eric Blake.
49585         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
49586         Prefer 'int main ()' to 'int main (void)', for C++.
49587         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
49588         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
49589         for 'main', for C99 and C++.
49590
49591 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
49592
49593         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
49594         Don't assume that exit status -1 is valid.
49595         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
49596         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
49597         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
49598         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
49599         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
49600         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
49601         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
49602         functions can be used without declaring them, or that you can
49603         exit with status -1.
49604         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
49605
49606 2006-04-24  Karl Berry  <karl@gnu.org>
49607
49608         * config/srclist.txt (longdouble.m4): sync lost.
49609
49610 2006-04-24  Eric Blake  <ebb9@byu.net>
49611
49612         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
49613
49614 2006-04-24  Bruno Haible  <bruno@clisp.org>
49615
49616         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
49617         poll() implementation in AIX.
49618         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49619
49620 2006-04-24  Bruno Haible  <bruno@clisp.org>
49621
49622         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
49623         assigned exactly once.
49624
49625 2006-04-23  Claudio Fontana  <claudio@gnu.org>
49626             Bruno Haible  <bruno@clisp.org>
49627
49628         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
49629         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
49630         for AM_CPPFLAGS.
49631
49632 2006-04-23  Bruno Haible  <bruno@clisp.org>
49633
49634         * modules/copy-file: Depend on unistd.
49635         * modules/execute: Likewise.
49636         * modules/fatal-signal: Likewise.
49637         * modules/findprog: Likewise.
49638         * modules/mkdtemp : Likewise.
49639         * modules/pipe: Likewise.
49640         * modules/wait-process: Likewise.
49641
49642 2006-04-23  Bruno Haible  <bruno@clisp.org>
49643
49644         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
49645         condition was already detected.
49646         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49647
49648 2006-04-23  Bruno Haible  <bruno@clisp.org>
49649
49650         * lib/copy-file.c: Include <unistd.h> unconditionally.
49651         * lib/execute.c: Likewise.
49652         * lib/fatal-signal.c: Likewise.
49653         * lib/findprog.c: Likewise.
49654         * lib/mkdtemp.c: Likewise.
49655         * lib/pipe.h: Likewise.
49656         * lib/pipe.c: Likewise.
49657         * lib/wait-process.h: Likewise.
49658
49659 2006-04-23  Bruno Haible  <bruno@clisp.org>
49660
49661         * gnulib-tool (func_usage): Fix --import description. Document
49662         --update.
49663         (func_import): Create temporary file in a temporary directory, if
49664         --dry-run is specified. Silence errors from 'grep' when there are no
49665         m4 files in $m4dir.
49666         (func_create_testdir): Silence errors from 'grep' when there are no
49667         m4 files in $m4dir.
49668         Reported by Karl Berry <karl@freefriends.org>.
49669
49670 2006-04-20  Bruno Haible  <bruno@clisp.org>
49671
49672         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
49673         one argument, so that the code will be portable to Autoconf 2.60.
49674         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
49675         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
49676         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
49677
49678 2006-04-19  Derek Price  <derek@ximbiot.com>
49679             Eric Blake  <ebb9@byu.net>
49680
49681         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
49682         rather than "/full/path.h".  Update comment to match.  Shorten &
49683         generalize m4_translit call via AS_TR_CPP.
49684
49685 2006-04-19  Derek Price  <derek@ximbiot.com>
49686             Eric Blake  <ebb9@byu.net>
49687
49688         * lib/inttypes.h: Correct grammar in comment.
49689
49690 2006-04-18  Derek Price  <derek@ximbiot.com>
49691             Paul Eggert  <eggert@cs.ucla.edu>
49692
49693         * modules/inttypes: New file.
49694         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
49695
49696 2006-04-18  Derek Price  <derek@ximbiot.com>
49697             Paul Eggert  <eggert@cs.ucla.edu>
49698
49699         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
49700         New files.
49701
49702 2006-04-18  Derek Price  <derek@ximbiot.com>
49703             Paul Eggert  <eggert@cs.ucla.edu>
49704
49705         * lib/inttypes.h: New file.
49706         * lib/strtoimax.c: Assume <inttypes.h>.
49707
49708 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
49709
49710         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
49711         isn't mounted.  Problem reported by Kir Kolyshkin.
49712
49713 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
49714
49715         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
49716         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
49717         Derek R. Price.
49718         * lib/regex.h (RE_DUP_MAX): Update comment to match current
49719         implementation.
49720
49721 2006-04-12  Eric Blake  <ebb9@byu.net>
49722
49723         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
49724         is now done automatically by the corresponding Autoconf macro.
49725
49726 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
49727
49728         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
49729         time_r.h.
49730
49731 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
49732
49733         Merge regex changes from libc, removing some of our
49734         POSIX-conformance changes that were rejected and redoing them in a
49735         less-intrusive way.
49736
49737         * lib/regcomp.c (re_compile_internal, init_dfa):
49738         Length arg is now size_t, not Idx.  All uses changed.
49739         (peek_token): Forward decl now says internal_function.
49740         (__re_error_msgid, __re_error_msgid_idx):
49741         Now static rather than extern with attribute_hidden.
49742         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
49743         For some reason libc prefers K&R style defns for external functions.
49744         (regerror) [!defined _LIBC]: Likewise.
49745         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
49746         (seek_collating_symbol_entry, lookup_collation_sequence_value):
49747         (build_range_exp, build_collating_symbol):
49748         Use K&R-style defn.
49749         (re_compile_fastmap): Use '\0' to memset, not 0.
49750         (utf8_sb_map): Make the calculations more obvious.
49751         (init_dfa, parse_bracket_exp, build_charclass_op):
49752         Call calloc and cast result, as glibc does.
49753         (init_word_char, fetch_token, peek_token, peek_token_bracket):
49754         (build_range_exp, build_collating_symbol):
49755         Now internal functions.
49756
49757         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
49758
49759         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
49760         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
49761         Don't depend on VMS; depend on __VMS instead, for POSIX
49762         namespace cleanness.
49763         (regoff_t): Define to ssize_t, not long int.
49764
49765         Remove the REG_ macros named below.  Instead, make the old names
49766         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
49767         __USE_GNU_REGEX.
49768         (REG_BACKSLASH_ESCAPE_IN_LISTS):
49769         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
49770         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
49771         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
49772         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
49773         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
49774         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
49775         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
49776         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
49777         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
49778         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
49779         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
49780         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
49781         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
49782         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
49783         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
49784         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
49785         (REG_NREGS):
49786         Remove.  All uses replaced by the old RE_* names.
49787         (RE_BACKSLASH_ESCAPE_IN_LISTS):
49788         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
49789         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
49790         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
49791         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
49792         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
49793         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
49794         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
49795         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
49796         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
49797         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
49798         Don't bother having these macros be independent of each others'
49799         values, since they no longer exist in the POSIX name space.
49800
49801         Rename the following member names back to their old names,
49802         unless !__USE_GNU_REGEX.  All uses changed back.
49803         (buffer): Renamed from re_buffer.
49804         (allocated): Renamed from re_allocated.
49805         (used): Renamed from re_used.
49806         (syntax): Renamed from re_syntax.
49807         (fastmap): Renamed from re_fastmap.
49808         (translate): Renamed from re_translate.
49809         (can_be_null): Renamed from re_can_be_null.
49810         (regs_allocated): Renamed from re_regs_allocated.
49811         (fastmap_accurate): Renamed from re_fastmap_accurate.
49812         (no_sub): Renamed from re_no_sub.
49813         (not_bol): Renamed from re_not_bol.
49814         (not_eol): Renamed from re_not_eol.
49815         (newline_anchor): Renamed from re_newline_anchor.
49816         (num_regs): Renamed from rm_num_regs.
49817         (start): Renamed from rm_start.
49818         (end): Renamed from rm_end.
49819
49820         (free_state): Move up a bit.
49821
49822         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
49823         #define to be empty.
49824         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
49825         when that is what is intended.
49826         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
49827         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
49828         (MAX): New macro.
49829         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
49830         All uses changed back to re_malloc, etc.  It's now the caller's
49831         responsibility to check for overflow; all callers changed.
49832         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
49833         (re_x2nrealloc): Remove.
49834         (free_state): Remove decl.
49835
49836         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
49837         (re_set_registers, re_exec):
49838         Use K&R-style defn.
49839
49840         2006-01-31  Roland McGrath  <roland@redhat.com>
49841
49842         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
49843         Reported by Mike Frysinger <vapier@gentoo.org>.
49844
49845         2006-01-15  Andreas Jaeger  <aj@suse.de>
49846
49847         [BZ #1950]
49848         * lib/regex_internal.c (re_string_reconstruct): Adjust for
49849         build_wcs_upper_buffer change.
49850         (build_wcs_upper_buffer): Change return type.
49851
49852         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
49853
49854         * lib/regex_internal.h: Include <stdint.h> if available.
49855
49856         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
49857
49858         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
49859
49860         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
49861
49862         * lib/regcomp.c: Adjust for changed secondary hash function.
49863
49864         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
49865
49866         * lib/regex.h: Pretty printing.
49867         Clean up namespace a bit.
49868
49869         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
49870
49871         * lib/regexec.c (update_cur_sifted_state, check_arrival,
49872         check_arrival_add_next_nodes): Avoid using uninitialized variable.
49873
49874         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49875                     Ulrich Drepper  <drepper@redhat.com>
49876
49877         [BZ #1302]
49878         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
49879         changed.
49880         (bitset_word_t): Renamed from bitset_word.  All uses changed.
49881
49882         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
49883
49884         [BZ #281]
49885         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
49886         * lib/regcomp.c: Remove unnecessary uses of
49887         unsigned RE_TRANSLATE_TYPE.
49888         * lib/regex_internal.h: Likewise.
49889         * lib/regex_internal.c: Likewise.
49890         * lib/regexec.c: Likewise.
49891         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
49892
49893         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
49894
49895         * lib/regexec.c (find_recover_state): Remove unnecessary
49896         initialization.
49897         (transit_state_bkref): Make DFA a const pointer.
49898         (get_subexp): Likewise.
49899         (check_arrival): Likewise.
49900         (update_cur_sifted_state): Likewise.
49901         (re_search_internal): Likewise.
49902         (prune_impossible_nodes): Likewise.
49903         (acquire_init_state_context): Likewise.
49904         (proceed_next_node): Likewise.
49905         (set_regs): Likewise.
49906         (free_fail_stack_return): Likewise.
49907         (check_arrival_expand_ecl): Mark DFA parameter as const.
49908         (check_arrival_expand_ecl_sub): Likewise.
49909         (check_subexp_limits): Likewise.
49910         (sub_epsilon_src_nodes):  Likewise.
49911         (add_epsilon_src_nodes):  Likewise.
49912         (merge_state_array): Likewise.
49913         (update_regs): Likewise.
49914         (build_trtable): Likewise.
49915         (sift_states_backward): Mark MCTX parameter as const.
49916         (build_sifted_states): Likewise.
49917         (update_cur_sifted_state): Likewise.
49918         (sift_states_mkref): Likewise.
49919         (check_arrival_expand_ecl): Mark eclosure as const.
49920         (check_dst_limits_calc_pos_1): Likewise.
49921         * lib/regex_internal.h (re_match_context_t): Make dfa a const
49922         pointer.
49923
49924         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
49925
49926         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
49927         (transit_state_sb): Likewise.
49928         (transit_state_mb): Likewise.
49929         (sift_states_iter_mb): Likewise.
49930         (check_arrival_add_next_nodes): Likewise.
49931         (check_node_accept_bytes): Change first parameter to pointer-to-const.
49932         [_LIBC] (re_search_2_stub): Use mempcpy.
49933
49934         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
49935         mbrtowc for very simple UTF-8 case.
49936
49937         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
49938         a pointer-to-const.
49939         (re_acquire_state_context): Likewise.
49940         * lib/regex_internal.h: Adjust prototypes.
49941
49942         * lib/regex.c: Prevent using C++ compilers.
49943
49944         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
49945         (re_acquire_state_context): Likewise.
49946
49947 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
49948
49949         * modules/regex (Depends-on): Add ssize_t.
49950
49951 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
49952
49953         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
49954         translation table.
49955
49956 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
49957
49958         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
49959
49960 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
49961             Bruno Haible  <bruno@clisp.org>
49962
49963         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
49964         <sys/types.h> and <inttypes.h>.
49965
49966 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49967
49968         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
49969         `__error_t_defined', so argp.h will not typedef the former.
49970
49971 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
49972
49973         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
49974         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
49975         glibc names.  Even if glibc is changed to conform to POSIX, the
49976         traditional names will be available anyway, since regex depends on
49977         the extensions module.  Also, fix a longstanding typo in the
49978         implementation of Spencer ERE test #75 from grep 2.3.  Problems
49979         reported by Emanuele Giaquinta.  Also, change sense of cached
49980         variable, so that the message makes sense.
49981
49982 2006-03-24  Simon Josefsson  <jas@extundo.com>
49983
49984         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
49985         including some doc fixes.
49986         (base64_encode_alloc): Fix +1 bug on allocation failures.
49987
49988 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49989
49990         * lib/base64.c (base64_encode): Do not read past end of array with
49991         unsanitized input on systems with CHAR_BIT > 8.
49992
49993 2006-03-24  Eric Blake  <ebb9@byu.net>
49994
49995         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
49996
49997 2006-03-22  Karl Berry  <karl@gnu.org>
49998
49999         * config/srclist.txt (*setenv.[ch]): get from coreutils.
50000         * config/srclistvars.sh (COREUTILS): new var.
50001
50002 2006-03-17  Jim Meyering  <jim@meyering.net>
50003
50004         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
50005         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
50006
50007 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
50008
50009         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
50010         no longer needs it.  Instead, check that regoff_t is as least
50011         as wide as ptrdiff_t.
50012
50013         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
50014         so that our regex.h stays compatible with the installed regex.
50015         This is helpful for installers who configure --without-included-regex.
50016         Problem reported by Emanuele Giaquinta.
50017
50018 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
50019
50020         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
50021         Typedef to long int, not to off_, as POSIX will likely change
50022         in that direction.
50023
50024 2006-03-15  Eric Blake  <ebb9@byu.net>
50025
50026         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
50027
50028 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
50029
50030         * lib/argp-help.c (validate_uparams): Fix typo
50031         * lib/argp-parse.c (argp_default_options): Consistently begin help
50032         messages with a lowercase letter.
50033
50034 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
50035
50036         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
50037         overrun buffers and shouldn't be used (much as gets shouldn't be
50038         used).
50039         * lib/time_r.c (asctime_r, ctime_r): Likewise.
50040
50041 2006-03-08  Simon Josefsson  <jas@extundo.com>
50042
50043         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
50044         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50045
50046 2006-03-08  Simon Josefsson  <jas@extundo.com>
50047
50048         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
50049         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50050
50051 2006-03-08  Simon Josefsson  <jas@extundo.com>
50052
50053         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
50054         signal that configure disabled the device.
50055
50056 2006-03-08  Simon Josefsson  <jas@extundo.com>
50057
50058         * build-aux/maint.mk: Fix refresh-po, to handle no translated
50059         languages.
50060
50061 2006-03-07  Simon Josefsson  <jas@extundo.com>
50062
50063         * modules/getopt (Depends-on): Add unistd.
50064
50065         * modules/unistd: New file.
50066
50067 2006-03-07  Simon Josefsson  <jas@extundo.com>
50068
50069         * modules/gc-random: New file.
50070
50071 2006-03-07  Simon Josefsson  <jas@extundo.com>
50072
50073         * m4/unistd_h.m4: New file.
50074
50075 2006-03-07  Simon Josefsson  <jas@extundo.com>
50076
50077         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
50078         test to be side-effect free by storing the result in the cache
50079         variable gl_cv_lib_readline, and moving the assignment of
50080         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
50081         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50082
50083 2006-03-07  Simon Josefsson  <jas@extundo.com>
50084
50085         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
50086         error on missing devices (the functions will return an error).
50087
50088         * m4/gc.m4: Move random stuff to gc-random.m4
50089
50090 2006-03-07  Simon Josefsson  <jas@extundo.com>
50091
50092         * lib/unistd_.h: New file.
50093
50094 2006-03-07  Simon Josefsson  <jas@extundo.com>
50095
50096         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
50097
50098 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
50099
50100         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
50101         Problem reported by Juan Manuel Guerrero.
50102
50103 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
50104
50105         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
50106         the unistd module.
50107         * lib/getlogin_r.c: Likewise.
50108         * lib/getlogin_r.h: Likewise.
50109         * lib/glob.c: Likewise.
50110         * lib/pagealign_alloc.c: Likewise.
50111         * lib/unistd_.h: Remove; no longer needed.
50112
50113 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
50114
50115         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50116         Add unistd.
50117         * modules/c-stack (Depends-on): Add unistd.
50118         * modules/getlogin_r: Likewise.
50119         * modules/glob: Likewise.
50120         * modules/pagealign_alloc: Likewise.
50121         * modules/unistd (Files): Remove lib/unistd_.h.
50122         (EXTRA_DIST): Remove.
50123         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
50124         need unistd_.h.
50125         (MOSTLYCLEANFILES): Remove unistd.h-t.
50126
50127 2006-03-03  Simon Josefsson  <jas@extundo.com>
50128
50129         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
50130
50131 2006-03-03  Simon Josefsson  <jas@extundo.com>
50132
50133         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
50134         libidn and bison.
50135
50136 2006-03-03  Simon Josefsson  <jas@extundo.com>
50137
50138         * build-aux/maint.mk: Add indent target.
50139
50140 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
50141
50142         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
50143         our replacement poll.h in any case, to avoid a differing
50144         declaration from a system header.  Seen on AIX.
50145
50146 2006-03-01  Simon Josefsson  <jas@extundo.com>
50147
50148         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
50149         <kasal@ucw.cz>.
50150
50151 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50152
50153         * modules/gettime (Depends-on): Add extensions module.
50154         * modules/nanosleep (Depends-on): Likewise.
50155         * modules/settime (Depends-on): Likewise.
50156
50157 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50158
50159         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
50160         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
50161         pedantically.
50162         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
50163         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
50164
50165         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
50166         not "==".  Reported by Ralf Wildenhues.
50167
50168 2006-03-01  Karl Berry  <karl@gnu.org>
50169
50170         * doc/Copyright/request-*: new files, synced from gnuorg.
50171
50172 2006-03-01  Karl Berry  <karl@gnu.org>
50173
50174         * config/srclist.txt (Copyright/*): new entries.
50175
50176 2006-02-28  Simon Josefsson  <jas@extundo.com>
50177
50178         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
50179
50180 2006-02-27  Simon Josefsson  <jas@extundo.com>
50181
50182         * lib/base64.h: Indent #define's.  From Jim Meyering
50183         <jim@meyering.net>.
50184
50185 2006-02-27  Jim Meyering  <jim@meyering.net>
50186
50187         Revert the change of 2006-02-24, so these files can continue
50188         to be sync'd from gettext.
50189         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
50190         of `config.h'.
50191
50192 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
50193
50194         * modules/intprops: New file.
50195         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
50196         Add intprops.
50197         * modules/getloadavg (Files): Remove lib/intprops.h.
50198         (Depends-on): Add intprops.
50199         * modules/human: Likewise.
50200         * modules/inttostr: Likewise.
50201         * modules/openat: Likewise.
50202         * modules/sig2str: Likewise.
50203         * modules/userspec: Likewise.
50204         * modules/utimecmp: Likewise.
50205         * modules/xnanosleep: Likewise.
50206         * modules/xstrtol: Likewise.
50207
50208 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
50209
50210         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
50211         * modules/lock-tests (TESTS): Use $(EXEEXT).
50212         * modules/tls-tests: Likewise.
50213         * modules/argp-tests: Likewise.
50214         (check_PROGRAMS): New var, replacing...
50215         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
50216
50217 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50218
50219         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
50220         `config.h'.
50221
50222 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
50223
50224         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
50225
50226 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50227
50228         Sync from coreutils.
50229         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
50230         gl_CHDIR_SAFER.
50231
50232 2006-02-22  Jim Meyering  <jim@meyering.net>
50233
50234         Sync from coreutils.
50235         * m4/chdir-safer.m4: New file.
50236
50237 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
50238
50239         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
50240         AT_FDCWD exceeds INT_MAX.
50241         * lib/openat.h (AT_FDCWD): Likewise.
50242
50243 2006-02-17  Eric Blake  <address@hidden>
50244
50245         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
50246
50247 2006-02-16  Simon Josefsson  <jas@extundo.com>
50248
50249         * modules/getaddrinfo (Depends-on): Add sys_socket.
50250
50251 2006-02-15  Simon Josefsson  <jas@extundo.com>
50252
50253         * build-aux/maint.mk: Add dsyntax-check rule.
50254
50255 2006-02-15  Eric Blake  <ebb9@byu.net>
50256
50257         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
50258         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
50259         'present but cannot compile' warnings on cygwin.
50260         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
50261         use ws2tcpip.h if sys/socket.h works.
50262         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
50263         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
50264
50265 2006-02-14  Simon Josefsson  <jas@extundo.com>
50266
50267         * modules/maintainer-makefile (Files): Rename.
50268
50269         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
50270         and (the local) Makefile.cfg to maint-cfg.mk.
50271
50272         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
50273         to the latter.
50274
50275         * modules/maintainer-makefile: New module.
50276
50277         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
50278         severaly stripped to make it possible to build it up from scratch
50279         with reliable tests.
50280
50281         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
50282         fixes to permit overriding the default actions when configure and
50283         makefile are not available.
50284
50285 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
50286
50287         Sync from coreutils.
50288         * modules/lstat (Depends-on): Don't depend on xalloc.
50289         (License): Change from GPL to LGPL, since this is now simply a
50290         replacement for a libc function.
50291
50292 2006-02-14  Jim Meyering  <jim@meyering.net>
50293
50294         Sync from coreutils.
50295
50296         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
50297         failure on deficient systems, and simplify gnulib lgpl dependencies.
50298         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
50299         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
50300
50301         * lib/xalloc-die.c: Remove unused definition of N_.
50302
50303 2006-02-14  Jim Meyering  <jim@meyering.net>
50304
50305         Sync from coreutils.
50306         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
50307         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
50308         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
50309         double-quote uses of that variable, to accommodate the rare case in
50310         which getmntent is available in none of the libraries checked.  This
50311         happens at least on FreeBSD 5.0.
50312
50313 2006-02-13  Simon Josefsson  <jas@extundo.com>
50314
50315         * gnulib-tool (Usage): Fix --import, from
50316         karl@freefriends.org (Karl Berry).
50317
50318 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
50319
50320         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
50321
50322 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
50323
50324         * lib/argp-namefrob.h: Restore changes accidentally lost during the
50325         "autoupdate" on 2005-12-12.
50326
50327 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
50328
50329         * modules/closeout (Depends-on): Remove atexit.
50330
50331 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
50332
50333         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
50334         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
50335
50336 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
50337
50338         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
50339         __EXTENSIONS__ if this causes compilation to fail.  Problem
50340         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
50341         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
50342
50343 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
50344
50345         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
50346         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
50347         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
50348         All uses changed.
50349
50350 2006-01-26  Simon Josefsson  <jas@extundo.com>
50351
50352         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
50353         prototype is visible on mingw32.
50354
50355         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
50356         for mingw32.
50357
50358         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
50359         mingw32).
50360
50361 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
50362
50363         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
50364         attempt to open for write; this always fails, at least on POSIX
50365         hosts.  This reinstates the 2006-01-09 change, which was
50366         inadvertently removed.
50367
50368 2006-01-26  Bruno Haible  <bruno@clisp.org>
50369
50370         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
50371         Reported by Paul Eggert.
50372
50373 2006-01-26  Bruno Haible  <bruno@clisp.org>
50374             Paul Eggert  <eggert@cs.ucla.edu>
50375
50376         * lib/stdbool_.h (_Bool)
50377         [(! (defined __cplusplus || defined __BEOS__)
50378           && !defined __GNUC__
50379           && !(defined __HP_cc || defined __xlc__
50380                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
50381                || defined __sgi))]:
50382         #define to signed char in these cases too; this simplifies
50383         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
50384         etc., separately) and makes it more conservative.
50385
50386 2006-01-25  Simon Josefsson  <jas@extundo.com>
50387
50388         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
50389         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
50390         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
50391
50392 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
50393
50394         * lib/argp-namefrob.h: Bugfix. Remove stray #
50395
50396 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
50397
50398         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
50399         so that we test the test.
50400         Check for yet another HP-UX cc bug involving *bool |= bool.
50401
50402 2006-01-25  Karl Berry  <karl@gnu.org>
50403
50404         * config/srclist.txt (vasnprintf.c): sync lost.
50405
50406 2006-01-25  Jim Meyering  <jim@meyering.net>
50407
50408         Sync from the stable (b5) branch of coreutils:
50409
50410         * lib/fts.c (fts_children): Don't let close() clobber errno from
50411         failed fchdir().
50412
50413         * lib/fts.c (fts_stat): When following a symlink-to-directory,
50414         don't necessarily interpret stat-fails+lstat-succeeds as indicating
50415         a dangling symlink.  That can also happen at least for ELOOP.
50416         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
50417         FYI, this bug predates the inclusion of fts.c in coreutils.
50418
50419         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
50420         in their own block, so pre-c99 compilers don't object.
50421
50422         Avoid the double-free (first in fts_read, second in fts_close) that
50423         would occur when an `active' directory is made inaccessible (e.g.,
50424         via chmod a-x) during a traversal.
50425         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
50426         before returning.  Reproduce this failure by
50427         mkdir -p a/b; cd a; chmod a-x . b
50428         Reported by Stavros Passas.
50429
50430 2006-01-25  Jim Meyering  <jim@meyering.net>
50431
50432         * lib/fileblocks.c: Remove more useless parentheses.
50433         * lib/readutmp.h: Likewise.
50434
50435 2006-01-25  Bruno Haible  <bruno@clisp.org>
50436
50437         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
50438         warnings.
50439         Reported by Paul Eggert.
50440
50441 2006-01-25  Bruno Haible  <bruno@clisp.org>
50442
50443         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
50444         rid of a trap command. For Solaris sh.
50445         Reported by Mark D. Baushke <mdb@gnu.org>.
50446
50447 2006-01-24  Simon Josefsson  <jas@extundo.com>
50448
50449         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
50450         Bruno.
50451
50452 2006-01-24  Karl Berry  <karl@gnu.org>
50453
50454         * config/srclist.txt (argp-namefrob.h): sync lost.
50455
50456 2006-01-24  Jim Meyering  <jim@meyering.net>
50457
50458         * modules/openat (Files): Add lib/intprops.h.
50459         From Mark D. Baushke.
50460
50461 2006-01-24  Jim Meyering  <jim@meyering.net>
50462
50463         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
50464         Reported by Mark D. Baushke.
50465
50466 2006-01-24  Jim Meyering  <jim@meyering.net>
50467
50468         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
50469
50470 2006-01-24  Bruno Haible  <bruno@clisp.org>
50471
50472         * modules/strnlen (Maintainer): Change from glibc to all.
50473
50474 2006-01-24  Bruno Haible  <bruno@clisp.org>
50475
50476         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
50477         Patch by Paul Eggert.
50478
50479 2006-01-24  Bruno Haible  <bruno@clisp.org>
50480
50481         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
50482         already has it.
50483         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
50484         2005-11-26.
50485
50486         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
50487         'signed char' to avoid problems with the built-in _Bool type.
50488         Reported by Paul Eggert on 2005-11-26.
50489
50490 2006-01-24  Bruno Haible  <bruno@clisp.org>
50491
50492         * gnulib-tool (func_import): Avoid constructing complicated sed
50493         expressions inside backquote.
50494         Report and solution by Mark D. Baushke <mdb@gnu.org>.
50495
50496 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
50497
50498         These changes imported from libc.
50499         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
50500         test and two separate function calls.
50501         * lib/strndup.c (__strndup): Add libc_hidden_def.
50502
50503 2006-01-23  Simon Josefsson  <jas@extundo.com>
50504
50505         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
50506         Remove the test_*_SOURCES variable: automake infers it by default.
50507         * modules/tls-tests: Likewise.
50508
50509 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
50510
50511         Work around porting bugs reported by Dieter in
50512         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
50513         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
50514         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
50515         Include "getopt.h" first, to check interface.
50516         (getenv): Declare only if defined HAVE_DECL_GETENV &&
50517         !HAVE_DECL_GETENV.
50518         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
50519         (__strndup): Revert to K&R-style function dfns, the glibc style.
50520         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
50521         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
50522         Include strnlen.h first, to get prototype properly.
50523         (strnlen): Renamed from __strnlen.
50524         Remove weak alias.
50525
50526 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
50527
50528         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
50529
50530 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
50531
50532         * config/srclist.txt: Adjust to reflect glibc reorganization.
50533         This affects only comments.
50534
50535 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50536
50537          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
50538          Reported by Bruce Korb <bkorb@gnu.org>.
50539
50540 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
50541
50542         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
50543         to pacify gcc -Wswitch-default.
50544
50545 2006-01-22  Bruno Haible  <bruno@clisp.org>
50546
50547         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
50548         temporary buffer for sprintf, take into account the precision also
50549         for 'd', 'i', 'u', 'o', 'x', 'X'.
50550
50551 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
50552
50553         * modules/argp-tests: New module
50554         * tests/test-argp.c: New file
50555         * tests/test-argp-2.sh: New file
50556
50557 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
50558
50559         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
50560         (__argp_base_name): Removed
50561         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
50562         typo.
50563         (__argp_base_name): Provide macro definition or extern declaration
50564         depending on the configuration
50565
50566 2006-01-20  Simon Josefsson  <jas@extundo.com>
50567
50568         * modules/inet_ntop (Depends-on): Depend on sys_socket.
50569
50570 2006-01-20  Simon Josefsson  <jas@extundo.com>
50571
50572         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
50573
50574 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
50575
50576         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
50577         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
50578         Suggested by Bruno Haible.
50579
50580 2006-01-20  Karl Berry  <karl@gnu.org>
50581
50582         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
50583         until changes propagate, I guess.
50584
50585 2006-01-19  Simon Josefsson  <jas@extundo.com>
50586
50587         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
50588
50589 2006-01-19  Simon Josefsson  <jas@extundo.com>
50590
50591         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
50592
50593 2006-01-19  Simon Josefsson  <jas@extundo.com>
50594
50595         * gnulib-tool: Set check_PROGRAMS.
50596
50597         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
50598         modules/des-tests, modules/gc-arcfour-tests,
50599         modules/gc-arctwo-tests, modules/gc-des-tests,
50600         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
50601         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
50602         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
50603         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
50604         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
50605         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
50606         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
50607         test_*_SOURCES.
50608
50609 2006-01-18  Simon Josefsson  <jas@extundo.com>
50610
50611         * modules/socklen (Depends-on): Depend on sys_socket.
50612
50613 2006-01-18  Simon Josefsson  <jas@extundo.com>
50614
50615         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
50616         modules/des-tests, modules/gc-arcfour-tests,
50617         modules/gc-arctwo-tests, modules/gc-des-tests,
50618         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
50619         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
50620         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
50621         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
50622         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
50623         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
50624         $(EXEEXT) to automake TESTS variable, for mingw32.
50625
50626 2006-01-17  Simon Josefsson  <jas@extundo.com>
50627
50628         * modules/socklen (Include): Need sys/socket.h.
50629
50630 2006-01-17  Bruno Haible  <bruno@clisp.org>
50631
50632         * modules/ssize_t (Include): Add <sys/types.h>.
50633
50634 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
50635
50636         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
50637         it's not portable and it doesn't work with cross-compiles.
50638         Problem reported by Bruno Haible.  Fix missing-$ typo in
50639         'test "gl_cv_ignore_unused_libraries" ...' that prevented
50640         -zignore from being used with Sun's C compiler.
50641
50642 2006-01-12  Simon Josefsson  <jas@extundo.com>
50643
50644         * lib/base64.c: Fix warning, reported by Bruno Haible
50645         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
50646
50647 2006-01-12  Bruno Haible  <bruno@clisp.org>
50648
50649         * modules/ldd: New file.
50650         * build-aux/ldd.sh.in: New file.
50651         * MODULES.html.sh (Support for building libraries and executables): Add
50652         ldd.
50653
50654 2006-01-12  Bruno Haible  <bruno@clisp.org>
50655
50656         * m4/ldd.m4: New file.
50657
50658 2006-01-12  Bruno Haible  <bruno@clisp.org>
50659
50660         * gnulib-tool (func_import, func_create_testdir): Don't go into an
50661         endless loop while replacing $auxdir with build-aux.
50662
50663 2006-01-11  Simon Josefsson  <jas@extundo.com>
50664
50665         * lib/stdint_.h (SIZE_MAX): Add missing (.
50666
50667 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
50668
50669         Sync from coreutils.
50670         * lib/md5.c: Fix commentary typos.
50671         (alignof, UNALIGNED_P): No need for a GCC-specific version.
50672         * lib/md5.h (__attribute__): Remove; unused.
50673         * lib/sha1.c: Fix commentary to match md5 better.
50674         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
50675         so that we don't need to worry about alignment.  All uses changed.
50676         This merges the 2005-10-28 md5 change into sha1.
50677
50678 2006-01-11  Jim Meyering  <jim@meyering.net>
50679
50680         Sync from coreutils.
50681         * lib/md5.c (OP): Fix spacing.
50682
50683 2006-01-11  Bruno Haible  <bruno@clisp.org>
50684
50685         Ensure automatic ordering between gl_LOCK and gl_ARGP.
50686         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
50687         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
50688
50689 2006-01-11  Bruno Haible  <bruno@clisp.org>
50690
50691         Ensure automatic ordering between gl_LOCK and gl_ARGP.
50692         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
50693         the "early" section as well.
50694
50695 2006-01-11  Bruno Haible  <bruno@clisp.org>
50696
50697         Avoid "ar: no archive members specified" error on MacOS X.
50698         * gnulib-tool (func_modules_add_dummy): New function.
50699         (func_import, func_create_testdir): Invoke it.
50700
50701 2006-01-11  Bruno Haible  <bruno@clisp.org>
50702
50703         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
50704         with $auxdir in AC_CONFIG_FILES statements.
50705
50706 2006-01-11  Bruno Haible  <bruno@clisp.org>
50707
50708         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50709         Initialize also noinst_HEADERS to empty.
50710
50711 2006-01-11  Bruno Haible  <bruno@clisp.org>
50712
50713         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
50714         variables.
50715         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
50716         autoreconf.
50717
50718 2006-01-11  Bruno Haible  <bruno@clisp.org>
50719
50720         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
50721         overridable by the user.
50722         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50723
50724 2006-01-10  Simon Josefsson  <jas@extundo.com>
50725
50726         * modules/sys_socket: New file.
50727
50728 2006-01-10  Simon Josefsson  <jas@extundo.com>
50729
50730         * m4/sys_socket_h.m4: New file.
50731
50732 2006-01-10  Simon Josefsson  <jas@extundo.com>
50733
50734         * lib/socket_.h: New file.
50735
50736 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
50737
50738         * modules/readutmp (Maintainer): Add myself.
50739
50740 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
50741
50742         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
50743         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
50744         People who are still concerned with buggy memcmp implementations
50745         can invoke gl_FUNC_MEMCMP themselves.
50746
50747 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
50748
50749         * lib/regex_internal.h (BITSET_WORD_BITS):
50750         Work around a bug in 64-bit PGC (before version 6.1-2), where the
50751         preprocessor mishandles large unsigned values as if they were signed.
50752         Problem reported by Claudio Fontana in
50753         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
50754
50755 2006-01-10  Jim Meyering  <jim@meyering.net>
50756
50757         Avoid the double-free (first in fts_read, second in fts_close) that
50758         would occur when an `active' directory is made inaccessible (e.g.,
50759         via chmod a-x) during a traversal.
50760         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
50761         before returning.  Reproduce this failure by
50762         mkdir -p a/b; cd a; chmod a-x . b
50763         Reported by Stavros Passas.
50764
50765         Sync from coreutils.
50766         * lib/sha1.c: Tweak grammar in a comment.
50767
50768 2006-01-10  Jim Meyering  <jim@meyering.net>
50769
50770         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
50771         Patch by Joerg Sonnenberger.
50772
50773 2006-01-10  Bruno Haible  <bruno@clisp.org>
50774
50775         * modules/readutmp: Depend on module free.
50776         * modules/strtok_r: Depend on module restrict.
50777
50778 2006-01-10  Bruno Haible  <bruno@clisp.org>
50779
50780         * modules/gettext (configure.ac): Add an invocation of
50781         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
50782
50783 2006-01-10  Bruno Haible  <bruno@clisp.org>
50784
50785         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
50786         Reported by Werner Lemberg <wl@gnu.org>.
50787
50788 2006-01-10  Bruno Haible  <bruno@clisp.org>
50789
50790         * lib/localcharset.c: Update from GNU gettext.
50791
50792 2006-01-10  Bruno Haible  <bruno@clisp.org>
50793
50794         * lib/argp.h (__const): Remove macro. Use const instead.
50795         * lib/argp-fmtstream.h (__const): Likewise.
50796         * lib/glob_.h (__const): Remove macro.
50797         * lib/glob-libc.h: Use const instead of __const.
50798
50799 2006-01-10  Bruno Haible  <bruno@clisp.org>
50800
50801         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
50802         variable.
50803         Needed to avoid an automake error regarding the 'gettext' module.
50804
50805 2006-01-09  Simon Josefsson  <jas@extundo.com>
50806
50807         * modules/inet_ntop (Depends-on): Add restrict.
50808
50809 2006-01-09  Simon Josefsson  <jas@extundo.com>
50810
50811         * modules/gc-rijndael-tests (License): Put under LGPL.
50812
50813         * modules/gc-des-tests (License): Likewise.
50814
50815         * modules/gc-arcfour-tests (License): Likewise.
50816
50817         * modules/gc-arctwo-tests (License): Likewise.
50818
50819         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
50820
50821         * modules/gc-hmac-sha1-tests (Files): Likewise.
50822
50823         * modules/gc-hmac-md5-tests (License): Likewise.
50824
50825         * modules/gc-sha1-tests (License): Likewise.
50826
50827         * modules/gc-md5-tests (License): Likewise.
50828
50829         * modules/gc-md4-tests (License): Likewise.
50830
50831         * modules/gc-md2-tests (License): Likewise.
50832
50833         * modules/gc-tests (License): Likewise.
50834
50835         * modules/des-tests (License): Likewise.
50836
50837         * modules/md4-tests (License): Likewise.
50838
50839         * modules/md2-tests (License): Likewise.
50840
50841 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
50842
50843         Sync from coreutils:
50844
50845         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
50846         * modules/lib-ignore: New file.
50847         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
50848         chdir-safer.m4, lchmod.m4.
50849         * modules/openat: Add mkdirat.c, openat-priv.h.
50850
50851 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
50852
50853         Sync from coreutils.
50854         * m4/lib-ignore.m4: New file.
50855         * m4/lchmod.m4: New file.
50856
50857 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
50858
50859         Sync from coreutils.
50860         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
50861         for write access: POSIX says that must fail.
50862         * lib/fts.c (diropen): Likewise.
50863         * lib/save-cwd.c (save_cwd): Likewise.
50864         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
50865         well, for minor improvements on hosts that lack O_DIRECTORY.
50866         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
50867         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
50868         Fall back on chown if open failed with EACCES.
50869
50870         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
50871         Report an error at compile-time if only a 1-second nominal clock
50872         resolution is found.
50873
50874         * lib/lchmod.h: New file.
50875         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
50876         (make_dir_parents): Use lchown rather than chown, and
50877         lchmod rather than chmod.
50878
50879         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
50880         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
50881         "proc" reported by n0dalus.
50882
50883         * lib/mountlist.c: Include <limits.h>.
50884         (dev_from_mount_options)
50885         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
50886         New function.  It no longer assumes "dev=" has the System V meaning
50887         on Linux (since it doesn't).  It also parses "dev=" more carefully.
50888         (read_file_system_list)
50889         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
50890         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
50891         dev= in that case.
50892
50893         * lib/posixtm.h (PDS_PRE_2000): New macro.
50894         * lib/posixtm.c (year): Arg is now syntax_bits rather than
50895         allow_century.  All usages changed.  Reject dates outside the range
50896         1969-1999 if PDS_PRE_2000 is used.
50897
50898 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
50899
50900         Sync from coreutils.
50901         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
50902         (Time of day items): Mention the possibility of leap seconds.
50903         Problem reported by Dr. David Alan Gilbert.
50904
50905 2006-01-09  Jim Meyering  <jim@meyering.net>
50906
50907         Sync from coreutils.
50908
50909         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
50910
50911         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
50912
50913         * lib/modechange.c (mode_compile): Reject an invalid mode string
50914         that starts with an octal digit.  From Andreas Gruenbacher.
50915
50916         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
50917         and dup to open_safer and dup_safer, respectively.
50918         (openat_permissive): Fix typo in comment.
50919
50920         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
50921         "gettext.h"; either no longer needed or are guaranteed by openat.h.
50922         (_): Remove; no longer needed.
50923         (openat): Renamed from rpl_openat; no need for rpl_openat
50924         since openat.h renames openat for us.
50925         Replace most of the body with a call to openat_permissive,
50926         to avoid duplicate code.
50927         Port to (probably hypothetical) environments were mode_t is
50928         wider than int.
50929         (openat_permissive): Require mode arg, so that we can check
50930         types better.  Put it just after flags.  Change cwd failure
50931         indicator from pointer-to-bool to pointer-to-errno-value.
50932         All callers changed.
50933         Invoke openat_save_fail and/or openat_restore_fail if
50934         cwd_errno is null, so that openat can call us.
50935         (openat_permissive, fdopendir, fstatat, unlinkat):
50936         Simplify errno handling to avoid some duplicate code,
50937         as it's OK to set errno on success.
50938         * lib/openat.h: Revamp code so that function macros depend on
50939         __OPENAT_PREFIX only, not also on AT_FDCWD.
50940         (openat_ro): Remove.  Caller changed to use openat_permissive.
50941         (openat_permissive): Now a macro, if not a function.
50942         (openat_restore_fail, openat_save_fail): Now always functions,
50943         since mkdirat needs them even if __OPENAT_PREFIX is defined.
50944
50945         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
50946         and openat.c.
50947         * lib/mkdirat.c: Include openat-priv.h.
50948         Remove definitions of macros defined therein.
50949         * lib/openat.c: Likewise.
50950
50951         * lib/mkdirat.c (mkdirat): New file and function.
50952         * lib/openat.h (mkdirat): Declare.
50953
50954         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
50955
50956         * lib/openat.h (openat_permissive): Declare.
50957         (openat_ro): Define.
50958
50959         * lib/openat.c (EXPECTED_ERRNO): New macro.
50960         (openat_permissive): New function -- used in remove.c rewrite.
50961         (all functions): Set errno just before returning, only if there
50962         was an actual failure.
50963         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
50964
50965         Emulate openat-family functions using Linux's procfs, if possible.
50966         Idea and some code based on Ulrich Drepper's glibc changes.
50967
50968         * lib/openat.c: (BUILD_PROC_NAME): New macro.
50969         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
50970         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
50971         before falling back on save_cwd and restore_cwd.
50972         (fdopendir, fstatat, unlinkat): Likewise.
50973
50974         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
50975         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
50976
50977         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
50978         as second argument to va_arg.  Otherwise, some versions of gcc
50979         warn that `if this code is reached, the program will abort'.
50980
50981 2006-01-09  Jim Meyering  <jim@meyering.net>
50982
50983         Sync from coreutils.
50984         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
50985         Require openat-priv.h.
50986
50987 2006-01-09  Bruno Haible  <bruno@clisp.org>
50988
50989         * modules/strnlen (Include): Use strnlen.h.
50990
50991 2006-01-09  Bruno Haible  <bruno@clisp.org>
50992
50993         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
50994
50995 2006-01-09  Bruno Haible  <bruno@clisp.org>
50996
50997         * lib/sysexit_.h (EX_OK): New macro.
50998         Suggested by Martin Lambers <marlam@marlam.de>.
50999
51000 2006-01-09  Bruno Haible  <bruno@clisp.org>
51001
51002         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
51003         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
51004
51005 2006-01-09  Bruno Haible  <bruno@clisp.org>
51006
51007         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
51008         numbers.
51009
51010 2006-01-09  Bruno Haible  <bruno@clisp.org>
51011
51012         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
51013         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
51014         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
51015         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
51016
51017 2006-01-09  Bruno Haible  <bruno@clisp.org>
51018
51019         * build-aux/javacomp.sh.in: New file, moved from lib/.
51020         * modules/javacomp-script (Files): Update.
51021         (configure.ac): Add AC_CONFIG_FILES invocation.
51022         (EXTRA_DIST): Remove variable.
51023
51024         * build-aux/javaexec.sh.in: New file, moved from lib/.
51025         * modules/javaexec (Files): Update.
51026         (configure.ac): Add AC_CONFIG_FILES invocation.
51027         (EXTRA_DIST): Remove javaexec.sh.in.
51028
51029         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
51030         * modules/csharpcomp-script (Files): Update.
51031         (configure.ac): Add AC_CONFIG_FILES invocation.
51032         (EXTRA_DIST): Remove variable.
51033
51034         * build-aux/csharpexec.sh.in: New file, moved from lib/.
51035         * modules/csharpexec (Files): Update.
51036         (configure.ac): Add AC_CONFIG_FILES invocation.
51037         (EXTRA_DIST): Remove csharpexec.sh.in.
51038
51039 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
51040
51041         Sync from coreutils.
51042
51043         Add POSIX ACL support
51044         * lib/acl.h (copy_acl, set_acl): Add declarations.
51045         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
51046         systems other than Linux.
51047         (chmod_or_fchmod): New function: use fchmod when possible,
51048         and chmod otherwise.
51049         (file_has_acl): Add a POSIX ACL implementation, with a
51050         Linux-specific subcase.
51051         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
51052         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
51053         acls are unsupported.
51054         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
51055         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
51056         are unsupported.
51057
51058 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
51059
51060         Sync from coreutils.
51061         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
51062
51063 2006-01-07  Bruno Haible  <bruno@clisp.org>
51064
51065         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
51066         gl_EARLY.
51067
51068 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51069
51070         * lib/strftime.c (tzname): Don't declare if it is already #defined.
51071         Problem reported for Mingw by Mark Junker.
51072
51073 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51074
51075         * README: Gnulib normally doesn't generate a tarball.
51076
51077 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
51078
51079         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
51080         long int, not int, for nanosecond counts, so that people who are
51081         used to POSIX struct timespec won't be surprised.  Reported by Jim
51082         Meyering.
51083
51084 2005-12-28  Bruno Haible  <bruno@clisp.org>
51085
51086         * build-aux/config.rpath: Update from GNU gettext.
51087
51088 2005-12-16  Jim Meyering  <jim@meyering.net>
51089
51090         * modules/fprintftime: New module.
51091         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
51092
51093 2005-12-16  Jim Meyering  <jim@meyering.net>
51094
51095         * m4/fprintftime.m4: New file.
51096
51097 2005-12-16  Jim Meyering  <jim@meyering.net>
51098
51099         * lib/fprintftime.c, lib/fprintftime.h: New files.
51100
51101 2005-12-15  Simon Josefsson  <jas@extundo.com>
51102
51103         * modules/socklen (configure.ac): Fix M4 macro name, to align with
51104         new m4/socklen.m4.
51105
51106 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51107
51108         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
51109         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
51110
51111 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51112
51113         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
51114         * lib/argp-help.c (fill_in_uparams): Check if the constructed
51115         struct uparams is valid. Fall back to the default values if it is
51116         not.
51117
51118 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51119
51120         * modules/argp (Files): Add argp-pin.c
51121         (Depends-on): dirname
51122         (lib_SOURCES): Add argp-pin.c
51123
51124 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51125
51126         * m4/argp.m4:  Check if program_invocation_name and
51127         program_invocation_short_name are declared and define appropriate
51128         macros if they are not.
51129
51130 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51131
51132         * lib/argp-help.c (__argp_base_name): New function
51133         (__argp_short_program_name): Rewrite using __argp_base_name
51134         * lib/argp-namefrob.h: Define program_invocation_name and
51135         program_invocation_short_name if requested
51136         (__argp_base_name): Add prototype
51137         * lib/argp-parse.c (argp_def): Use gettext wrappers
51138         (argp_default_parser): Use __argp_base_name
51139         * lib/argp-pin.c: New file. Defines program_invocation_name and
51140         program_invocation_short_name on systems that lack them.
51141
51142 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
51143
51144         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
51145         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
51146         porting problem reported by Georg Schwarz in
51147         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
51148
51149 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
51150
51151         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
51152         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
51153         porting problem reported by Georg Schwarz in
51154         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
51155
51156 2005-12-05  Bruno Haible  <bruno@clisp.org>
51157
51158         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
51159         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
51160         Reported by Mark Junker <mjscod@gmx.de>.
51161
51162 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
51163
51164         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
51165         Use implementation from Albert Chin, with some
51166         comments/corrections by Stepan Kasal and myself.
51167
51168 2005-12-02  Bruno Haible  <bruno@clisp.org>
51169
51170         * gnulib-tool (func_import): Accept GPLed build tool modules when
51171         --lgpl is given.
51172         * modules/csharpcomp-script: New file.
51173         * modules/csharpcomp: Depend on it.
51174         * modules/javacomp-script: New file.
51175         * modules/javacomp: Depend on it.
51176         Suggested by Simon Josefsson.
51177
51178 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
51179
51180         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
51181         statement, to work around an HP-UX 10.20 compiler bug reported by
51182         Peter O'Gorman.
51183
51184 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
51185
51186         * modules/savedir (Depends-on): Add openat.
51187
51188 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
51189
51190         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
51191         (uintmax_t) [defined uintmax_t]: Do not declare.
51192         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
51193         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
51194         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
51195         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
51196         sake of portability to weird hosts that C allows (though we don't
51197         know of any practical examples).
51198
51199         * lib/savedir.h (fdsavedir): New decl.
51200         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
51201         contains most of the former guts of savedir.
51202         (savedir): Use savedirstream.
51203         Include "openat.h".
51204
51205 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
51206
51207         * modules/obstack (Files): Add m4/ulonglong.m4.
51208         Problem reported by Davide Angelocola.
51209
51210 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
51211
51212         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
51213         coreutils no longer futzes with rounding modes.
51214
51215 2005-11-14  Jim Meyering  <jim@meyering.net>
51216
51217         * lib/mkstemp-safer.c: Include <config.h>, required for possible
51218         replacement of mkstemp.
51219
51220 2005-11-10  Simon Josefsson  <jas@extundo.com>
51221
51222         * lib/readline.c: Remove EOL.
51223
51224 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
51225
51226         * modules/gethrxtime (Depends-on): Add gettime.
51227
51228 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
51229
51230         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
51231         or gettimeofday; no longer needed.
51232
51233 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
51234
51235         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
51236         time business.
51237         (gethrxtime) [! (HAVE_NANOUPTIME
51238         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
51239         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
51240         our own approximation.
51241
51242 2005-11-08  Eric Blake  <ebb9@byu.net>
51243
51244         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
51245
51246 2005-11-08  Eric Blake  <ebb9@byu.net>
51247
51248         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
51249
51250 2005-11-04  Bruno Haible  <bruno@clisp.org>
51251
51252         * gnulib-tool: Implement --update mode.
51253
51254 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
51255
51256         Fix porting problem reported by Theodoros V. Kalamatianos.
51257         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
51258         Don't assume that futimes failing means we must fail.
51259
51260 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
51261
51262         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
51263         variables to suggest the intended function of the PATH_MAX check.
51264
51265 2005-10-30  Kean Johnston  <jkj@sco.com>
51266
51267         Trivial changes to support SCO systems.
51268         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
51269         as PATH_MAX.
51270         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
51271         where __ptr is null when no I/O is pending.
51272
51273 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
51274
51275         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
51276         leave errno alone.  Problem reported by Dmitry V. Levin.
51277
51278 2005-10-28  Simon Josefsson  <jas@extundo.com>
51279
51280         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
51281         Test more.
51282
51283         * tests/test-gc-md2.c, tests/test-md2.c: New files.
51284
51285         * modules/md2, modules/md2-tests: New files.
51286
51287 2005-10-28  Simon Josefsson  <jas@extundo.com>
51288
51289         * m4/inet_ntop.m4: More tests.
51290
51291         * m4/gc-md2.m4, md2.m4: New file.
51292
51293 2005-10-28  Simon Josefsson  <jas@extundo.com>
51294
51295         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
51296         "restrict" keywords, as per POSIX.  Protect the function
51297         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
51298         Don't use K&R prototypes.  Check the sprintf return values.
51299         Re-define EAFNOSUPPORT if not present.  Indent.
51300
51301         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
51302         suggested by Bruno Haible <bruno@clisp.org>.
51303
51304         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
51305
51306         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
51307
51308         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
51309         libgcrypt).
51310
51311         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
51312
51313         * lib/md2.h, lib/md2.c: New files.
51314
51315 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
51316
51317         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
51318         errno alone.  Problem reported by Frederic Jolliton.
51319
51320 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
51321
51322         * modules/verify (License): Change from GPL to LGPL.  This is a
51323         tiny module and there are apparently near-equivalents that are
51324         under the BSD license.
51325
51326 2005-10-24  Simon Josefsson  <jas@extundo.com>
51327
51328         * modules/sha1: Relicense to LGPL.
51329
51330 2005-10-24  Simon Josefsson  <jas@extundo.com>
51331
51332         * lib/md4.h: Shrink buffer size, now that we changed the type.
51333
51334 2005-10-23  Simon Josefsson  <jas@extundo.com>
51335
51336         * gnulib-tool (func_import): Fix --tests-base.
51337
51338 2005-10-22  Simon Josefsson  <jas@extundo.com>
51339
51340         * modules/arcfour (Depends-on): Need stdint.
51341
51342 2005-10-22  Simon Josefsson  <jas@extundo.com>
51343
51344         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
51345         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
51346
51347 2005-10-22  Simon Josefsson  <jas@extundo.com>
51348
51349         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
51350         suggested by Bruno Haible <bruno@clisp.org>.
51351
51352 2005-10-22  Simon Josefsson  <jas@extundo.com>
51353
51354         * lib/crc.h: Include stddef.h, for size_t.
51355
51356 2005-10-22  Simon Josefsson  <jas@extundo.com>
51357
51358         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
51359         arcfour_context struct (simplify test vector testing in GNU
51360         Shishi).
51361
51362 2005-10-21  Simon Josefsson  <jas@extundo.com>
51363
51364         * modules/des, modules/des-tests: New files.
51365
51366         * modules/gc-des, modules/gc-des-tests: New files.
51367
51368         * tests/test-des.c, tests/test-gc-des.c: New file.
51369
51370 2005-10-21  Simon Josefsson  <jas@extundo.com>
51371
51372         * modules/arctwo, modules/arctwo-tests: New files.
51373
51374         * tests/test-arctwo.c: New file.
51375
51376         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
51377
51378         * tests/test-gc-arctwo.c: New file.
51379
51380 2005-10-21  Simon Josefsson  <jas@extundo.com>
51381
51382         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
51383         Bruno Haible <bruno@clisp.org>.
51384
51385         * m4/gc-des.m4: New file.
51386
51387 2005-10-21  Simon Josefsson  <jas@extundo.com>
51388
51389         * m4/arctwo.m4: New file.
51390
51391         * m4/gc-arctwo.m4: New file.
51392
51393 2005-10-21  Simon Josefsson  <jas@extundo.com>
51394
51395         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
51396         block.
51397
51398 2005-10-21  Simon Josefsson  <jas@extundo.com>
51399
51400         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
51401         <bruno@clisp.org>.
51402
51403         * lib/hmac-sha1.c (hmac_sha1): Likewise.
51404
51405         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
51406         Bruno Haible <bruno@clisp.org>.
51407
51408         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
51409         <bruno@clisp.org>.
51410
51411 2005-10-21  Simon Josefsson  <jas@extundo.com>
51412
51413         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
51414
51415 2005-10-21  Simon Josefsson  <jas@extundo.com>
51416
51417         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
51418
51419 2005-10-21  Simon Josefsson  <jas@extundo.com>
51420
51421         * lib/des.h, lib/des.c: New files.
51422
51423         * lib/gc-gnulib.c: Support DES.c
51424
51425 2005-10-21  Simon Josefsson  <jas@extundo.com>
51426
51427         * lib/arctwo.h, lib/arctwo.c: New files.
51428
51429         * lib/gc-gnulib.c: Support ARCTWO.
51430
51431 2005-10-21  Simon Josefsson  <jas@extundo.com>
51432
51433         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
51434         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51435
51436 2005-10-21  Simon Josefsson  <jas@extundo.com>
51437
51438         * gnulib-tool (func_import, func_create_testdir): Define automake
51439         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
51440         Makefile.am snippet),
51441         suggested by Bruno Haible <bruno@clisp.org>.
51442
51443         * modules/gc (Makefile.am): Use it.
51444
51445 2005-10-21  Bruno Haible  <bruno@clisp.org>
51446
51447         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
51448         patch.
51449
51450 2005-10-19  Simon Josefsson  <jas@extundo.com>
51451
51452         * tests/test-gc-rijndael.c: New file.
51453
51454         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
51455
51456 2005-10-19  Simon Josefsson  <jas@extundo.com>
51457
51458         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
51459         interface too.
51460
51461 2005-10-19  Simon Josefsson  <jas@extundo.com>
51462
51463         * tests/test-gc-arcfour.c: New file.
51464
51465         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
51466
51467 2005-10-19  Simon Josefsson  <jas@extundo.com>
51468
51469         * modules/gc-md4, modules/gc-md4-tests: New file.
51470
51471         * tests/test-gc-md4.c: New file.
51472
51473 2005-10-19  Simon Josefsson  <jas@extundo.com>
51474
51475         * m4/gc-md4.m4: New file.
51476
51477 2005-10-19  Simon Josefsson  <jas@extundo.com>
51478
51479         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
51480         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
51481         <kasal@ucw.cz>.
51482
51483 2005-10-19  Simon Josefsson  <jas@extundo.com>
51484
51485         * m4/gc-arcfour.m4: New file.
51486
51487         * m4/gc-rijndael.m4: New file.
51488
51489 2005-10-19  Simon Josefsson  <jas@extundo.com>
51490
51491         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
51492
51493 2005-10-19  Simon Josefsson  <jas@extundo.com>
51494
51495         * lib/gc-gnulib.c: Support ARCFOUR.
51496
51497 2005-10-19  Simon Josefsson  <jas@extundo.com>
51498
51499         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
51500         support.
51501
51502         * lib/gc.h: Add ECB enum type.
51503
51504         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
51505
51506 2005-10-18  Simon Josefsson  <jas@extundo.com>
51507
51508         * tests/test-md5.c: New file.
51509
51510         * modules/md5-tests: New file.
51511
51512 2005-10-18  Simon Josefsson  <jas@extundo.com>
51513
51514         * tests/test-md4.c: New file.
51515
51516         * modules/md4, modules/md4-tests: New files.
51517
51518 2005-10-18  Simon Josefsson  <jas@extundo.com>
51519
51520         * m4/md4.m4: New file.
51521
51522 2005-10-18  Simon Josefsson  <jas@extundo.com>
51523
51524         * lib/md4.h, lib/md4.c: New files, based on md5.?.
51525
51526 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
51527
51528         * gnulib-tool (func_create_testdir): Omit the second check whether
51529         BUILT_SOURCES in nonempty.
51530
51531 2005-10-17  Simon Josefsson  <jas@extundo.com>
51532
51533         * tests/test-rijndael.c: New file.
51534
51535 2005-10-17  Simon Josefsson  <jas@extundo.com>
51536
51537         * modules/sha1: Depend on stdint instead of md5.
51538
51539         * modules/md5: Depend on stdint, remove uint32_t.
51540
51541 2005-10-17  Simon Josefsson  <jas@extundo.com>
51542
51543         * modules/gc-sha1-tests: New file.
51544
51545         * tests/test-gc-sha1.c: New file.
51546
51547 2005-10-17  Simon Josefsson  <jas@extundo.com>
51548
51549         * m4/md5.m4: Remove call to uint32_t.m4.
51550
51551 2005-10-17  Simon Josefsson  <jas@extundo.com>
51552
51553         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
51554
51555         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
51556         md5.h.
51557
51558         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
51559
51560         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
51561
51562 2005-10-17  Simon Josefsson  <jas@extundo.com>
51563
51564         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
51565
51566 2005-10-17  Simon Josefsson  <jas@extundo.com>
51567
51568         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
51569
51570 2005-10-17  Simon Josefsson  <jas@extundo.com>
51571
51572         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
51573
51574         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
51575
51576 2005-10-17  Bruno Haible  <bruno@clisp.org>
51577
51578         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
51579         that it can also be used in a test.
51580
51581 2005-10-16  Bruno Haible  <bruno@clisp.org>
51582
51583         * gnulib-tool (func_emit_tests_Makefile_am): Also define
51584         TESTS_ENVIRONMENT, so that individual tests can augment it.
51585
51586         * gnulib-tool (func_create_testdir): Use an intermediate target for
51587         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
51588         macros, like $(ALLOCA_H), which cannot be passed through the command
51589         line.
51590
51591 2005-10-15  Simon Josefsson  <jas@extundo.com>
51592
51593         * modules/rijndael-tests: New file.
51594
51595         * modules/rijndael: New file.
51596
51597 2005-10-15  Simon Josefsson  <jas@extundo.com>
51598
51599         * m4/rijndael.m4: New file.
51600
51601 2005-10-15  Simon Josefsson  <jas@extundo.com>
51602
51603         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
51604
51605         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
51606
51607 2005-10-14  Simon Josefsson  <jas@extundo.com>
51608
51609         * tests/test-arcfour.c: New file.
51610
51611         * modules/arcfour, modules/arcfour-tests: New files.
51612
51613 2005-10-14  Simon Josefsson  <jas@extundo.com>
51614
51615         * m4/arcfour.m4: New file.
51616
51617 2005-10-14  Simon Josefsson  <jas@extundo.com>
51618
51619         * lib/arcfour.h, lib/arcfour.c: New files.
51620
51621 2005-10-14  Roland McGrath  <roland@redhat.com>
51622
51623         Import from libc.  [BZ #1331]
51624         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
51625         macro argument.
51626         Reported by Matej Vela <vela@debian.org>.
51627
51628 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
51629
51630         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
51631         include <wchar.h>; no longer needed.
51632
51633 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
51634
51635         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
51636
51637 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
51638         and  Ulrich Drepper  <drepper@redhat.com>
51639
51640         Import from libc.
51641         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
51642         instead of inline stream orientation test and two separate
51643         function calls.  Pay no attention to USE_IN_LIBIO.
51644
51645 2005-10-13  Simon Josefsson  <jas@extundo.com>
51646
51647         * modules/gc-hmac-md5-tests: New file.
51648
51649         * tests/test-gc-hmac-sha1.c: New file.
51650
51651         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
51652
51653         * modules/gc-hmac-md5-tests: New file.
51654
51655         * tests/test-gc-md5.c: New file.
51656
51657         * modules/gc-md5-tests: New file.
51658
51659 2005-10-13  Simon Josefsson  <jas@extundo.com>
51660
51661         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
51662         Move memory allocation outside of loop.
51663
51664 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
51665
51666         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
51667         intermediate directory is in a read-only file system.  Problem
51668         reported by Eric Blake.
51669
51670 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
51671
51672         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
51673
51674 2005-10-12  Simon Josefsson  <jas@extundo.com>
51675
51676         * tests/test-hmac-sha1.c: New file.
51677
51678         * modules/hmac-sha1-tests: New file.
51679
51680         * modules/hmac-sha1: New file.
51681
51682 2005-10-12  Simon Josefsson  <jas@extundo.com>
51683
51684         * modules/gc-sha1: New file.
51685
51686 2005-10-12  Simon Josefsson  <jas@extundo.com>
51687
51688         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
51689
51690         * tests/test-gc-pbkdf2-sha1.c: New file.
51691
51692 2005-10-12  Simon Josefsson  <jas@extundo.com>
51693
51694         * modules/gc-md5, modules/gc-hmac-md5: New files.
51695
51696         * modules/gc (Files): Remove md5, memxor and hmac files.
51697
51698 2005-10-12  Simon Josefsson  <jas@extundo.com>
51699
51700         * m4/gc-pbkdf2-sha1.m4: New file.
51701
51702         * m4/gc-hmac-sha1.m4: New file.
51703
51704         * m4/gc-sha1: New file.
51705
51706         * m4/hmac-sha1.m4: New file.
51707
51708 2005-10-12  Simon Josefsson  <jas@extundo.com>
51709
51710         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
51711
51712         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
51713
51714 2005-10-12  Simon Josefsson  <jas@extundo.com>
51715
51716         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
51717         suggested by Bruno Haible <bruno@clisp.org>.
51718
51719 2005-10-12  Simon Josefsson  <jas@extundo.com>
51720
51721         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
51722
51723 2005-10-12  Simon Josefsson  <jas@extundo.com>
51724
51725         * lib/gc-pbkdf2-sha1.c: New file.
51726
51727         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
51728
51729 2005-10-12  Simon Josefsson  <jas@extundo.com>
51730
51731         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
51732
51733         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
51734
51735 2005-10-12  Simon Josefsson  <jas@extundo.com>
51736
51737         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
51738         GC_USE_HMAC_MD5, respectively.
51739
51740         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
51741         (gc_md5): Fix typo.
51742
51743         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
51744
51745         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
51746
51747         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
51748
51749 2005-10-12  Bruno Haible  <bruno@clisp.org>
51750
51751         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
51752         Reported by Stepan Kasal <kasal@ucw.cz>.
51753
51754 2005-10-11  Simon Josefsson  <jas@extundo.com>
51755
51756         * tests/test-crc.c: New file.
51757
51758         * modules/crc, modules/crc-tests: New files.
51759
51760 2005-10-11  Simon Josefsson  <jas@extundo.com>
51761
51762         * m4/crc.m4: New file.
51763
51764 2005-10-11  Simon Josefsson  <jas@extundo.com>
51765
51766         * lib/gc.h: Add gc_hash and gc_hash_buffer.
51767
51768         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
51769
51770         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
51771
51772 2005-10-11  Simon Josefsson  <jas@extundo.com>
51773
51774         * lib/crc.h, lib/crc.c: New files.
51775
51776         * lib/gc.h (gc_hash_buffer): Add doc.
51777
51778 2005-10-11  Bruno Haible  <bruno@clisp.org>
51779
51780         * modules/c-strcasestr: New file.
51781         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
51782
51783 2005-10-11  Bruno Haible  <bruno@clisp.org>
51784
51785         * modules/c-strcase: New file.
51786         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
51787
51788 2005-10-11  Bruno Haible  <bruno@clisp.org>
51789
51790         * lib/strcasecmp.c: Include limits.h.
51791         (strcasecmp): Avoid integer overflow on exotic platforms.
51792         * lib/strncasecmp.c: Include limits.h.
51793         (strncasecmp): Avoid integer overflow on exotic platforms.
51794         Reported by Paul Eggert.
51795
51796 2005-10-11  Bruno Haible  <bruno@clisp.org>
51797
51798         * lib/c-strcasestr.h: New file, from GNU gettext.
51799         * lib/c-strcasestr.c: New file, from GNU gettext.
51800
51801 2005-10-11  Bruno Haible  <bruno@clisp.org>
51802
51803         * lib/c-strcase.h: New file, from GNU gettext.
51804         * lib/c-strcasecmp.c: New file, from GNU gettext.
51805         * lib/c-strncasecmp.c: New file, from GNU gettext.
51806
51807 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
51808
51809         * modules/mempcpy (License): GPL -> LGPL.
51810         * modules/strchrnul (License): Likewise.
51811         * modules/sysexits (License): Likewise.
51812
51813 2005-10-08  Simon Josefsson  <jas@extundo.com>
51814
51815         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
51816
51817 2005-10-07  Simon Josefsson  <jas@extundo.com>
51818
51819         * m4/memxor.m4: Remove gl_C_RESTRICT call.
51820
51821 2005-10-06  Simon Josefsson  <jas@extundo.com>
51822
51823         * tests/test-hmac-md5.c: New file.
51824
51825         * modules/hmac-md5-tests: New file.
51826
51827         * modules/hmac-md5: New file.
51828
51829 2005-10-06  Simon Josefsson  <jas@extundo.com>
51830
51831         * m4/hmac-md5.m4: New file.
51832
51833         * m4/memxor.m4: Require gl_C_RESTRICT.
51834
51835 2005-10-06  Simon Josefsson  <jas@extundo.com>
51836
51837         * lib/memxor.c (memxor): Avoid casts and warnings.
51838
51839 2005-10-06  Simon Josefsson  <jas@extundo.com>
51840
51841         * lib/hmac-md5.c: New file.
51842
51843         * lib/hmac.h: New file.
51844
51845 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
51846
51847         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
51848         promotes to int, not unsigned int, to catch the AIX 5.3
51849         compiler bug.
51850
51851 2005-10-05  Simon Josefsson  <jas@extundo.com>
51852
51853         * modules/memxor: New file.
51854
51855         * modules/iconv (Files): Move config.rpath to havelib, it is used
51856         there.
51857
51858         * modules/havelib (Files): Add config.rpath.
51859
51860 2005-10-05  Simon Josefsson  <jas@extundo.com>
51861
51862         * m4/memxor.m4: New file.
51863
51864 2005-10-05  Simon Josefsson  <jas@extundo.com>
51865
51866         * lib/memxor.c (memxor): Fix compiler error.
51867
51868         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
51869         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
51870
51871         * lib/memxor.h, lib/memxor.c: New files.
51872
51873         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
51874         we assume all systems have it, suggested by Jim Meyering
51875         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
51876         any systems lack sys/socket.h; mingw32 is known to lack it, but we
51877         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
51878         same reasons.
51879
51880 2005-10-05  Simon Josefsson  <jas@extundo.com>
51881
51882         * config/srclist.txt: Add glibc bug 1423 for md5.h.
51883
51884 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
51885
51886         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
51887         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
51888         needed, since the source code now assumes these .h files.
51889
51890 2005-10-05  Derek Price  <derek@ximbiot.com>
51891
51892         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
51893
51894 2005-10-05  Bruno Haible  <bruno@clisp.org>
51895
51896         * modules/stdint (License): Change to LGPL.
51897
51898 2005-10-04  Simon Josefsson  <jas@extundo.com>
51899
51900         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
51901         D. Baushke" <mdb@gnu.org>.
51902
51903 2005-10-04  Bruno Haible  <bruno@clisp.org>
51904
51905         * lib/verify.h (verify_true): Provide alternative definition for C++.
51906
51907 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
51908
51909         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
51910         (SSIZE_MAX): New macro, if not already defined.
51911         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
51912         than 2 GiB.
51913
51914 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
51915
51916         Sync from coreutils.
51917         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
51918         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
51919         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
51920         ULLONG_MAX doesn't work with 2.7.2.1.
51921
51922 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
51923
51924         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
51925         From Ben Pfaff.
51926
51927         * modules/exclude (Depends-on): Depend on verify.
51928         * modules/strtoimax (Depends-on): Likewise.
51929         * modules/utimecmp (Depends-on): Likewise.
51930
51931 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
51932
51933         * lib/exclude.c: Include verify.h.
51934         (verify): Remove.  All callers changed to use verify.h's version.
51935         * lib/strtoimax.c: Likewise.
51936         * lib/utimecmp.c: Likewis.e
51937
51938         Sync from coreutils.
51939         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
51940         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
51941         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
51942         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
51943         bother returning ENOSYS if settimeofday or stime fails; just let
51944         them return whatever errno they want to return.
51945         * lib/utimens.c: Include unistd.h, for dup2.
51946         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
51947         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
51948
51949 2005-10-02  Jim Meyering  <jim@meyering.net>
51950
51951         Sync from coreutils.
51952         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
51953         from glibc-2.2.5 that fails for read-only files.
51954
51955 2005-10-02  Jim Meyering  <jim@meyering.net>
51956
51957         Sync from coreutils.
51958         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
51959         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
51960         `#if HAVE_CONFIG_H'.
51961         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
51962         Remove AT_FDCWD test.
51963         Do not consume the fd unless successful.
51964         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
51965         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
51966         block, so that we don't even try to compile it if settimeofday is
51967         available.  This works around a compilation failure on OSF1 V5.1,
51968         due to stime requiring a `long int*' while tv_sec is `int'.
51969
51970 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
51971
51972         Sync from coreutils.
51973         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
51974         against `yes', rather than just testing for nonempty.
51975
51976 2005-10-01  Simon Josefsson  <jas@extundo.com>
51977
51978         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
51979         and Darwin.
51980
51981         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
51982         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
51983         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
51984         freeaddrinfo and gai_strerror are declared by the POSIX headers.
51985         Check if struct addrinfo is declared.
51986
51987 2005-10-01  Simon Josefsson  <jas@extundo.com>
51988
51989         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
51990         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
51991         AI_* and EAI_* definitions.  Protect function declarations.
51992
51993 2005-10-01  Jim Meyering  <jim@meyering.net>
51994
51995         Sync from coreutils.
51996
51997         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
51998         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
51999         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
52000         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
52001         in the inet and nsl libraries.  Required on Solaris 5.7.
52002
52003 2005-10-01  Jim Meyering  <jim@meyering.net>
52004
52005         Sync from coreutils.
52006         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
52007         in the inet and nsl libraries.  Required on Solaris 5.7.
52008
52009 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
52010
52011         * lib/getdelim.c (getdelim): Remove unused variables.
52012
52013 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
52014
52015         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
52016         so that the code works even with ancient cpp.  Portability problem
52017         with GCC 2.7.2.1 reported by Thomas M.Ott.
52018
52019 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
52020
52021         * modules/regex (Depends-on): Add strcase.
52022
52023         * modules/gethostname (Licence): Change from GPL to LGPL, since
52024         gethostname.c is a trivial implementation of a standard library
52025         function.
52026         * modules/poll (License): Change from GPL to LGPL, since it's
52027         derived from LGPL code.
52028
52029 2005-09-27  Jim Meyering  <jim@meyering.net>
52030
52031         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
52032         HAVE_CONFIG_H.
52033
52034         * lib/intprops.h (signed_type_or_expr__): Define.
52035         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
52036         for unsigned types.
52037
52038 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
52039
52040         * lib/verify.h (verify_expr): Remove, replacing with:
52041         (verify_true): New macro that returns true instead of void.
52042         (verify_type__): Remove.
52043         (verify): Use verify_true rather than verify_type__.
52044
52045 2005-09-26  Bruno Haible  <bruno@clisp.org>
52046
52047         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
52048         is necessary.
52049         (lib_SOURCES): Remove mbchar.c.
52050         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
52051         (Files): Add m4/mbrtowc.m4.
52052         * modules/mbiter: Likewise.
52053         * modules/mbuiter: Likewise.
52054
52055 2005-09-26  Bruno Haible  <bruno@clisp.org>
52056
52057         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
52058         compile mbchar.c if they are not both present.
52059         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
52060         * m4/mbiter.m4 (gl_MBITER): Likewise.
52061         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
52062         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
52063         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
52064
52065 2005-09-25  Jim Meyering  <jim@meyering.net>
52066
52067         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
52068         also uses socklen_t.
52069
52070 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
52071
52072         * lib/utimens.c (ENOSYS): Define if not already defined.
52073         (futimens): Support having a null PATH if the file descriptor
52074         is nonnegative.
52075
52076         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
52077         Remove.
52078         (__attribute): Define to empty unless GCC 3.1 or later.
52079         This works around a core dump on OpenBSD 3.4, which has GCC
52080         2.95.3, which dumps core when given __attribute__(()).  It also
52081         simplifies other tests, since we really don't want to bother with
52082         worrying about which ancient version of GCC supported what.
52083         Original problem reported by Yoann Vandoorselaere, with part of
52084         the fix suggested by Derek Price.
52085
52086 2005-09-24  Jim Meyering  <jim@meyering.net>
52087
52088         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
52089         so we can once again use a positive bitfield width of 1 -- now we
52090         don't have to explain why we were using a bitfield width of 2.
52091
52092 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
52093
52094         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
52095         and similarly for the other external symbols.  Problem reported
52096         by James Gallager.
52097
52098         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
52099         bug reported by Jim Meyering.
52100
52101         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
52102         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
52103         not needed, since socklen is a prerequisite module.
52104
52105 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
52106
52107         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
52108         Problem reported by Eric Blake.
52109         (getaddrinfo): Initialize se so that it's not garbage.
52110         Redo internal storage allocation so that it doesn't make unportable
52111         assumptions about alignment.
52112         Fix a memory leak.
52113
52114         * lib/utimens.c (futimens): Use futimesat if available.
52115         Prefer it to futimes since it doesn't have the futimes bug.
52116
52117         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
52118         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
52119         Instead, declare a function that returns a pointer to an array,
52120         and use verify_type__ to declare the size of the array.
52121         Problem and germ of a solution reported by Bruno Haible.
52122         (verify_type__): Use 2, not 1, for bitfield size, to avoid
52123         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
52124
52125 2005-09-23  Jim Meyering  <jim@meyering.net>
52126
52127         Sync from coreutils.
52128         Correct build failure (socklen_t not defined) on at least
52129         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
52130         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
52131
52132 2005-09-23  Jim Meyering  <jim@meyering.net>
52133
52134         * modules/getaddrinfo (Depends-on): Add socklen.
52135
52136 2005-09-23  Bruno Haible  <bruno@clisp.org>
52137
52138         * tests/test-verify.c: New file.
52139
52140 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
52141
52142         Sync from coreutils.
52143
52144         * modules/argmatch (Depends-on): Add verify.
52145         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
52146         unistd-safer.
52147         * modules/save-cwd (Depends-on): Likewise.
52148
52149         * modules/openat (Files): Add lib/openat-die.c.
52150         (Depends-on): Remove error, exitfail.
52151         Add dirname.
52152
52153         * modules/verify: New file.
52154         * MODULES.html.sh (Diagnostics <assert.h>): New section,
52155         with "verify" module.
52156
52157 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
52158
52159         Sync from coreutils.
52160
52161         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
52162         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
52163         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
52164         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
52165         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
52166         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
52167         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
52168         Don't bother checking for string.h, stdlib.h, unistd.h.
52169         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
52170         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
52171         module's job.
52172         * m4/jm-macros.m4 (gl_MACROS): Likewise.
52173         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
52174
52175         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
52176         (gl_GETDATE): Use it.
52177
52178         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
52179
52180 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
52181
52182         Sync from coreutils.
52183
52184         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
52185         stat-time.h.
52186         * lib/argmatch.h: Include verify.h
52187         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
52188         (ARGMATCH_ASSERT): Remove; unused.
52189         * lib/canonicalize.c: Assume STDC_HEADERS.
52190         * lib/exclude.c: Include "strcase.h".
52191         * lib/regex_internal.h [!defined _LIBC]: Likewise.
52192         * lib/getusershell.c: Include stdio--.h rather than stdio.h
52193         and stdio-safer.h.
52194         (getusershell): Call fopen, not fopen_safer.
52195         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
52196         Do not include unistd-safer.h.
52197         (save_cwd): Don't call fd_safer; no longer needed
52198         now that we include fcntl--.h.
52199
52200         * lib/getdate.y (relative_time): New type.
52201         (RELATIVE_TIME_0): New constant.
52202         (parser_control): Use relative_time instead of doing it ourselves.
52203         (%union): Add new relative_time rel member.
52204         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
52205         Now typeless.
52206         (relunit, relunit_snumber): Now of type rel.
52207         (zone, rel, relunit, get_date): Adjust to above changes.
52208
52209         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
52210         Do not include unistd-safer.h.
52211         (getloadavg): Don't call fd_safer; no longer needed
52212         now that we include fcntl--.h.
52213
52214         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
52215         (make_dir_parents): Treat ENOSYS like EEXIST.
52216
52217         Improve quality of diagnostics on restore_cwd failure.
52218         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
52219         (make_dir_parents): Last arg is now int * (for errno), not bool *.
52220         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
52221         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
52222         each time through the loop.  Do not diagnose restore_cwd failure;
52223         that is the caller's job (and perhaps the caller does not care).
52224
52225         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
52226         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
52227         If the file already exists but is not a directory, don't bother
52228         to try to make its parents.
52229         Close potential file descriptor leak if we can't chdir("/") (!).
52230         Don't always return true if chdir($PWD) fails; return true only
52231         if the requested action was done successfully (except for the
52232         chdir($PWD)).
52233         Don't log final directory unless we actually made it.
52234         Refactor to avoid duplicate code to fix up permissions.
52235         Don't attempt to fix up parent permissions if chdir($PWD) fails.
52236
52237         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
52238         to make it a bit faster and (I hope) clearer.
52239         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
52240         Fix bug in formats like %2N.
52241
52242         * lib/verify.h: New file.
52243
52244 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
52245
52246         Sync from coreutils.
52247         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
52248
52249 2005-09-22  Jim Meyering  <jim@meyering.net>
52250
52251         Sync from coreutils.
52252
52253         * m4/lstat.m4 (gl_FUNC_LSTAT):
52254         Use AC_LIBSOURCES to require lstat.c and lstat.h.
52255         Remove obsolete comment.
52256         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
52257         * m4/xstrtod.m4: Likewise.
52258
52259         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
52260
52261 2005-09-22  Jim Meyering  <jim@meyering.net>
52262
52263         Sync from coreutils.
52264
52265         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
52266
52267         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
52268         the .tm_year member, since otherwise gcc-4.0 would now warn about
52269         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
52270
52271         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
52272         order to avoid an unsuppressible warning from gcc on 64-bit systems.
52273
52274         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
52275         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
52276         when run in a time zone for which daylight savings time is in effect
52277         for the starting date.
52278
52279         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
52280         stop us from restricting permissions of just-created absolute-named
52281         directories.
52282         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
52283         to restore initial working directory.
52284         * lib/mkdir-p.c (make_dir_parents): New parameter:
52285         different_working_dir, to tell caller if/when we change the working
52286         directory and are unable to return to the initial one.
52287         * lib/mkdir-p.h (make_dir_parents): Update prototype.
52288         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
52289         `return false'.  This fixes a bug introduced on 2004-07-30.
52290
52291         * lib/openat.c (fdopendir): Be sure to close the supplied
52292         file descriptor before returning.  This makes our replacement
52293         implementation a little closer to Solaris's, where fdopendir
52294         ties the file descriptor to the returned DIR* pointer.
52295         * lib/openat.c (unlinkat): New function.
52296         * lib/openat.h (unlinkat): Add prototype.
52297         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
52298         (openat_restore_fail): Rename from openat_restore_die.
52299         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
52300
52301         Provide an alternative to exiting immediately upon save_cwd or
52302         restore_cwd failure.  Now, an application can arrange e.g.,
52303         to perform a longjump in that case.
52304         * lib/openat.c: Include dirname.h.
52305         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
52306         (rpl_openat, fdopendir, fstatat): Call openat_save_die
52307         and openat_restore_die rather than calling error directly.
52308         Don't include "error.h" or "exitfail.h"; they're no longer needed.
52309
52310         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
52311         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
52312         define.
52313
52314         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
52315         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
52316                             int utc, int nanoseconds);
52317         Background:
52318         date should not have to allocate a megabyte of virtual memory to
52319         handle a format argument like +%1048575T.  When implemented with
52320         strftime, it must allocate such a buffer, use strftime to fill it
52321         in, print it, then free it.
52322         With fprintftime, it simply prints everything and exits.
52323         With no need for memory allocation, that's one fewer way to fail.
52324         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
52325         optional field width, not before, so we accept %9:z, not %:9z.
52326         (my_strftime): Be sure to use L_('x') for literals.
52327
52328         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
52329         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
52330         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
52331         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
52332         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
52333         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
52334         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
52335         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
52336         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
52337         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
52338         * lib/xgethostname.c, lib/xreadlink.c:
52339         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
52340
52341         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
52342         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
52343         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
52344         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
52345         and don't include <sys/file.h>).
52346
52347 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
52348
52349         Sync from coreutils.
52350
52351         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
52352         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
52353         [!LDAV_DONE]: Avoid unused variable warning.
52354
52355 2005-09-21  Bruno Haible  <bruno@clisp.org>
52356
52357         * lib/unicodeio.h (unicode_to_mb): New declaration.
52358
52359 2005-09-20  Derek Price  <derek@ximbiot.com>
52360
52361         * lib/getaddrinfo.c: Don't include <netdb.h> included from
52362         getaddrinfo.h.
52363
52364 2005-09-20  Bruno Haible  <bruno@clisp.org>
52365
52366         * gnulib-tool: Remove trailing slashes from the values specified for
52367         --source-base, --m4-base, --tests-base, --aux-dir.
52368         Suggested by Simon Josefsson <jas@extundo.com>.
52369
52370 2005-09-20  Bruno Haible  <bruno@clisp.org>
52371
52372         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
52373         func_modules_to_filelist, func_import, func_create_testdir): Make all
52374         sorting results locale-independent, so that gnulib-cache.m4 doesn't
52375         change when gnulib-tool is invoked in a different locale.
52376
52377 2005-09-19  Simon Josefsson  <jas@extundo.com>
52378
52379         * m4/socklen.m4: Fix typo.
52380
52381 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52382
52383         Use a consistent style for including <config.h>.
52384         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
52385         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
52386         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
52387         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
52388         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
52389         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
52390         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
52391         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
52392         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
52393         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
52394         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
52395         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
52396         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
52397         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
52398         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
52399         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
52400         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
52401         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
52402         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
52403         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
52404         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
52405         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
52406         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
52407         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
52408         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
52409         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
52410         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
52411         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
52412         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
52413         lib/xstrtoumax.c, lib/yesno.c:
52414         Standardize inclusion of config.h.
52415         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
52416         lib/inttostr.h:  Removed inclusion of config.h from header files.
52417         * lib/inttostr.c:  Adjusted in-tree users.
52418         * lib/timespec.h: Remove superfluous warning to include config.h.
52419         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
52420         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
52421         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
52422         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
52423         config.h with HAVE_CONFIG_H.
52424
52425 2005-09-19  Jim Meyering  <jim@meyering.net>
52426
52427         * modules/pathmax (License): Change to LGPL.
52428
52429 2005-09-19  Derek Price  <derek@ximbiot.com>
52430
52431         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
52432
52433 2005-09-19  Bruno Haible  <bruno@clisp.org>
52434
52435         * gnulib-tool (import): Provide default for --tests-base.
52436
52437 2005-09-19  Bruno Haible  <bruno@clisp.org>
52438
52439         * doc/quote.texi: New file, extracted from gnulib.texi.
52440         * doc/ctime.texi: New file, extracted from gnulib.texi.
52441         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
52442         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
52443         * doc/gnulib.texi: Include them.
52444
52445 2005-09-18  Bruno Haible  <bruno@clisp.org>
52446
52447         Portability fix.
52448         * gnulib-tool (func_readlink): New function.
52449         (func_ln_if_changed): Use it.
52450
52451 2005-09-18  Bruno Haible  <bruno@clisp.org>
52452
52453         * gnulib-tool: Support --with-tests also with --import.
52454         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
52455         (func_import): Use variables $testsbase and $inctests. Emit a
52456         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
52457         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
52458         SUBDIRS += $testsdir.
52459         (func_create_testdir): Update.
52460
52461 2005-09-18  Bruno Haible  <bruno@clisp.org>
52462
52463         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
52464         instead of $dry_run.
52465         (func_cp_if_changed, func_mv_if_changed): Remove functions.
52466         (func_ln_if_changed): Don't handle dry-run here.
52467         (func_import): In dry-run mode, detect more precisely which actions
52468         would be performed, and don't use "...ing" verbs.
52469
52470 2005-09-18  Bruno Haible  <bruno@clisp.org>
52471
52472         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
52473         (func_import): Use join on two temporary files instead of three nested
52474         loops, in order to determine which files are new or old.
52475
52476 2005-09-18  Bruno Haible  <bruno@clisp.org>
52477
52478         * gnulib-tool (func_import): Comment out code that spits out the
52479         new files with --dry-run.
52480
52481 2005-09-18  Bruno Haible  <bruno@clisp.org>
52482
52483         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
52484
52485 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
52486
52487         * lib/stat-time.h: New file.
52488         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
52489         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
52490         in a different way.
52491         (timespec_cmp): New function.
52492         * lib/utimecmp.c: Include stat-time.h.
52493         (SYSCALL_RESOLUTION): Depend on whether various struct stat
52494         members exist, not on the obsolescent ST_MTIM_NSEC.
52495         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
52496
52497 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
52498
52499         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
52500
52501 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
52502
52503         * MODULES.html.sh (File system functions): Add stat-time.
52504         * modules/stat-time: New file.
52505         * modules/timespec (Files): Remove m4/st_mtim.m4; this
52506         is now done in a different way, by the stat-time module.
52507         * modules/utimecmp (Depends-on): Add stat-time.
52508
52509 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52510
52511         * m4/st_mtim.m4: Remove.  Superseded by...
52512         * m4/stat-time.m4: New file.
52513         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
52514         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
52515
52516 2005-09-15  Derek Price  <derek@ximbiot.com>
52517
52518         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
52519
52520 2005-09-15  Derek Price  <derek@ximbiot.com>
52521
52522         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
52523         * lib/regex_internal.c: Ditto, using this...
52524         (__GNUC_PREREQ): ...new macro.
52525         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
52526         using...
52527         (__GNUC_PREREQ): ...this new macro.
52528
52529         * lib/strstr.h: Include string.h. Define strstr as a macro here.
52530
52531 2005-09-15  Derek Price  <derek@ximbiot.com>
52532             Paul Eggert  <eggert@cs.ucla.edu>
52533
52534         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
52535         changes, consolidating in...
52536         * lib/regex_internal.h: ...this file.
52537
52538 2005-09-13  Jim Meyering  <jim@meyering.net>
52539
52540         * lib/canon-host.c: Filter through gnu indent and reword comments
52541         slightly.
52542         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
52543
52544 2005-09-13  Derek Price  <derek@ximbiot.com>
52545
52546         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
52547         failure.
52548         Reported by Jim Meyering  <jim@meyering.net>.
52549
52550 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52551
52552         * lib/base64.c: Typo.
52553         (base64_encode): Put b64str in initialized data section.
52554
52555 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
52556
52557         Merge glibc and coreutils changes into gnulib, plus a few
52558         extra fixes.
52559         * lib/md5.c: Use #error rather than a string.
52560         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
52561         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
52562         (__attribute__): Define to empty for non recent-GCC.
52563         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
52564         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
52565         Renamed from their non-__ counterparts, with new macros replacing
52566         them if not _LIBC.  Add __THROW attribute.
52567         (rol): Remove.
52568         (struct md5_ctx): Align buffer if using GCC.
52569         * lib/sha1.h (struct sha1_ctx): Likewise.
52570         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
52571         The old name was backwards.
52572         (NOTSWAP): Remove; not used.
52573         (rol): New macro, moved here from md5.h.
52574         (sha1_process_block): Remove a FIXME that doesn't make sense.
52575
52576 2005-09-12  Derek Price  <derek@ximbiot.com>
52577
52578         Return usable errors from canon-host.
52579         * lib/canon-host.h: New file.
52580         * lib/canon-host.c (canon_host): Wrap...
52581         (canon_host_r): ...this new function, which now relies exclusively on
52582         getaddrinfo.
52583         (ch_strerror): New function.
52584         (last_cherror): New global.
52585         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
52586         interface.
52587         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
52588         void *.
52589         (freeaddrinfo): Free ai->ai_canonname when set.
52590
52591 2005-09-12  Derek Price  <derek@ximbiot.com>
52592
52593         Make canon-host require getaddrinfo.
52594         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
52595         AC_LIBSOURCE canon-host.h.  Call...
52596         (gl_PREREQ_CANON_HOST): ...this new function, which requires
52597         gl_GETADDRINFO.
52598         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
52599
52600 2005-09-12  Derek Price  <derek@ximbiot.com>
52601
52602         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
52603         LGPL.
52604         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
52605
52606 2005-09-12  Derek Price  <derek@ximbiot.com>
52607
52608         * lib/gai_strerror.c: Include config.h when available.  Include
52609         getaddrinfo.h before other headers to test interface.
52610         Reported by Larry Jones <lawrence.jones@ugs.com>.
52611
52612 2005-09-12  Derek Price  <derek@ximbiot.com>
52613             Paul Eggert  <eggert@cs.ucla.edu>
52614
52615         * modules/glob (Files): Add glob-libc.h.
52616
52617 2005-09-12  Derek Price  <derek@ximbiot.com>
52618             Paul Eggert  <eggert@cs.ucla.edu>
52619
52620         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
52621         glob_.h, glob-libc.h.
52622         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
52623
52624 2005-09-12  Derek Price  <derek@ximbiot.com>
52625             Paul Eggert  <eggert@cs.ucla.edu>
52626
52627         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
52628         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
52629         protecting things that should be done only in gnulib contexts.
52630         * lib/glob_.h: New file, containing only the glob things needed for
52631         gnulib.
52632         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
52633         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
52634         (glob, globfree, glob_pattern_p): Now defined simply in terms of
52635         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
52636         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
52637         and to respect the namespace rules better.
52638
52639 2005-09-08  Simon Josefsson  <jas@extundo.com>
52640
52641         * modules/socklen: New file.
52642
52643 2005-09-08  Simon Josefsson  <jas@extundo.com>
52644
52645         * m4/socklen.m4: New file.
52646
52647 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52648
52649         * modules/utimens (Files): Add m4/utimbuf.m4, since
52650         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
52651         Reported by Sergey Poznyakoff.
52652
52653 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52654
52655         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
52656         definitions, since that's the preferred style in glibc.
52657         Fix a minor spacing issue, and update copyright notice to match
52658         glibc's.
52659
52660 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52661
52662         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
52663
52664 2005-09-06  Simon Josefsson  <jas@extundo.com>
52665
52666         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
52667         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
52668
52669 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
52670
52671         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
52672         warning.
52673
52674 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
52675
52676         * config/srclist.txt: Add glibc bug 1302.
52677
52678 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
52679
52680         Change bitset word type from unsigned int to unsigned long int,
52681         as this has better performance on typical 64-bit hosts.
52682         Port bitset code to hosts with unusual word sizes.
52683         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
52684         (build_collating_symbol):
52685         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
52686         argument is a bitset.  This is merely a style issue, but it makes
52687         it clearer that an entire array is expected.
52688         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
52689         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
52690         Port to the case where bitset_word is not the same as unsigned int.
52691         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
52692         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
52693         Likewise.
52694         * lib/regexec.c (check_dst_limits_calc_pos_1,
52695         check_subexp_matching_top):
52696         (build_trtable, group_nodes_into_DFAstates):
52697         Likewise.
52698         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
52699         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
52700         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
52701         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
52702         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
52703         * lib/regcomp.c (optimize_subexps, lower_subexp):
52704         Work even if bitset_word has holes in its bitwise representation.
52705         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
52706         * lib/regexec.c (check_dst_limits_calc_pos_1,
52707         check_subexp_matching_top):
52708         Likewise.
52709         * lib/regex_internal.c (re_string_reconstruct):
52710         Don't assume UCHAR_MAX == 255.
52711         * lib/regex_internal.h (bitset_set_all): Likewise.
52712         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
52713         All uses changed.
52714         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
52715         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
52716         All uses changed.
52717         (BITSET_WORD_MAX): New macro.
52718         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
52719         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
52720         (bitset_empty, bitset_copy):
52721         Prefer sizeof (bitset) to multiplying it out ourselves.
52722         (bitset_not_merge): Remove; unused.
52723         (bitset_contain): Return bool, not unsigned int with one bit on.
52724         All callers changed.
52725         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
52726         alignment than re_node_set; do this by defining a new internal
52727         type struct dests_alloc and using it to allocate memory.
52728
52729 2005-09-05  Bruno Haible  <bruno@clisp.org>
52730
52731         * gnulib-tool (func_import): Fix comparison in handling of symbolic
52732         links.
52733
52734 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
52735
52736         * modules/size_max (Makefile.am): Add size_max.h
52737
52738 2005-09-04  Derek Price  <derek@ximbiot.com>
52739
52740         * gnulib-tool (func_import): Fix reversed $symbolic logic.
52741
52742 2005-09-03  Simon Josefsson  <jas@extundo.com>
52743
52744         * gnulib-tool: Fix typo.
52745
52746 2005-09-03  Simon Josefsson  <jas@extundo.com>
52747
52748         * config/srclist.txt: Add glibc bug 1293.
52749
52750 2005-09-03  Derek Price  <derek@ximbiot.com>
52751
52752         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
52753         From Larry Jones <lawrence.jones@ugs.com>.
52754
52755 2005-09-02  Simon Josefsson  <jas@extundo.com>
52756
52757         * modules/socklen: New file.
52758
52759 2005-09-02  Simon Josefsson  <jas@extundo.com>
52760
52761         * modules/havelib: New module.
52762
52763         * modules/gettext, modules/iconv, modules/lock, modules/readline:
52764         Use havelib.
52765
52766 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
52767
52768         Check for arithmetic overflow when calculating sizes, to prevent
52769         some buffer-overflow issues.  These patches are conservative, in the
52770         sense that when I couldn't determine whether an overflow was possible,
52771         I inserted a run-time check.
52772         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
52773         macros.
52774         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
52775         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
52776         (re_xnrealloc, re_x2nrealloc): New inline functions.
52777         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
52778         parse_bracket_exp):
52779         (build_equiv_class, build_charclass): Check for arithmetic overflow
52780         in size expression calculations.
52781         * lib/regex_internal.c (re_string_realloc_buffers):
52782         (build_wcs_upper_buffer, re_node_set_add_intersect):
52783         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
52784         (re_dfa_add_node, register_state): Likewise.
52785         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
52786         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
52787         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
52788         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
52789
52790 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
52791
52792         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
52793         m4/ulonglong.m4.  Problem reported by Martin Lambers.
52794
52795 2005-09-02  Bruno Haible  <bruno@clisp.org>
52796
52797         Support for lib vs. lib64 distinction on biarch platforms.
52798         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
52799         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
52800         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
52801
52802 2005-09-02  Bruno Haible  <bruno@clisp.org>
52803
52804         * gnulib-tool (import): In the other first-use case, provide defaults
52805         as well.
52806
52807 2005-09-02  Bruno Haible  <bruno@clisp.org>
52808
52809         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
52810         patches not yet found in the latest gettext release.
52811
52812 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
52813
52814         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
52815         to avoid a collision with bits/local_lim.h in glibc.
52816         All uses changed.  Problem reported by Dmitry V. Levin in
52817         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
52818
52819         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
52820         bugs in int versus size_t comparisons.
52821         (re_string_context_at): Fix bug where the code assumed that
52822         Idx is signed.
52823
52824         Use bool where appropriate.
52825         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
52826         All callers changed.
52827         (calc_eclosure_iter): Likewise, for ROOT arg.
52828         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
52829         (build_charclass_op): Likewise, for NON_MATCH arg.
52830         * lib/regex_internal.c (re_string_allocate, re_string_construct):
52831         (re_string_construct_common): Likewise, for ICASE arg.
52832         * lib/regexec.c (re_search_2_stub, re_search_stub):
52833         Likewise, for RET_LEN arg.
52834         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
52835         (set_regs): Likewise, for FL_BACKTRACK arg.
52836         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
52837         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
52838         (calc_eclosure_iter, parse_bracket_exp):
52839         Use bool for internal variables that are booleans.
52840         * lib/regexec.c (re_search_internal, check_matching,
52841         proceed_next_node):
52842         (set_regs, build_sifted_states, sift_states_bkref):
52843         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
52844         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
52845         (find_collation_sequence_value):
52846         Likewise.
52847         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
52848         (re_node_set_compare):
52849         Return bool, not int. All callers changed.
52850         * lib/regexec.c (check_halt_node_context, check_dst_limits):
52851         (build_trtable, check_node_accept): Likewise.
52852         * lib/regex_internal.h: Include stdbool.h.
52853
52854         Fix bugs uncovered when converting to bool.
52855         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
52856         failure instead of charging ahead blindly.
52857         * lib/regex_internal.c (register_state): Likewise.
52858         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
52859         for freeing internal storage.
52860         (group_nodes_into_DFA_states): Use unsigned int, not int, for
52861         bitset pieces used as boolean, to avoid undefined behavior
52862         on hosts that do int overflow checking.
52863
52864 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
52865
52866         * config/srclist.txt: Add glibc bugs 1285-1287.
52867
52868 2005-09-01  Jim Meyering  <jim@meyering.net>
52869
52870         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
52871         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
52872         Require gl_STAT_MACROS, too.
52873
52874 2005-09-01  Bruno Haible  <bruno@clisp.org>
52875
52876         * gnulib-tool (import): In the first-use case, provide defaults.
52877
52878 2005-09-01  Bruno Haible  <bruno@clisp.org>
52879
52880         * gnulib-tool (func_import): Remove the .tmp files.
52881
52882 2005-09-01  Bruno Haible  <bruno@clisp.org>
52883
52884         * gnulib-tool (func_import): Fix handling of symbolic links.
52885
52886 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
52887
52888         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
52889         old glibc regex code mishandles strings longer than 2**31 bytes.
52890         This patch fixes this when the regex code is used in gnulib
52891         (i.e., outside glibc).
52892
52893         This patch should not affect the use of the regex code inside
52894         glibc.  No doubt this problem also needs to be handled for glibc
52895         as well, but the result will be an incompatible change to the
52896         glibc ABI, and the old ABI will have to be supported too.  That
52897         can be the the subject for another patch.
52898
52899         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
52900         governing whether the rest of this patch is active.  By default,
52901         the macro is disabled and the patch has no effect.
52902         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
52903         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
52904         (struct re_pattern_buffer, re_search, re_search_2, re_match):
52905         (re_match_2, re_set_registers): Use the new types.
52906         * lib/regex_internal.h (Idx, re_hashval_t): New types.
52907         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
52908         New macros.
52909         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
52910         (re_string_context_at, bin_tree_t, re_dfastate_t):
52911         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
52912         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
52913         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
52914         (re_string_char_size_at, re_string_wchar_at):
52915         (re_string_elem_size_at):
52916         Use the new types and macros to port to 64-bit hosts.
52917         Use unsigned types for internal values, so that the code
52918         mostly works even for arrays larger than SSIZE_MAX.
52919         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
52920         (search_duplicated_node, calc_eclosure_iter, fetch_number):
52921         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
52922         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
52923         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
52924         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
52925         (calc_inveclosure, parse_dup_op, build_range_exp):
52926         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
52927         (fetch_number, create_token_tree, mark_opt_subexp):
52928         Likewise.
52929         * lib/regex_internal.c (re_string_construct_common,
52930         create_ci_newstate):
52931         (create_cd_newstate, re_string_allocate, re_string_construct):
52932         (re_string_realloc_buffers, build_wcs_upper_buffer):
52933         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
52934         (re_string_reconstruct, re_string_peek_byte_case):
52935         (re_string_fetch_byte_case, re_string_context_at):
52936         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
52937         (re_node_set_init_copy, re_node_set_add_intersect):
52938         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
52939         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
52940         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
52941         (re_acquire_state, re_acquire_state_context, register_state):
52942         Likewise.
52943         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
52944         search_cur_bkref_entry):
52945         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
52946         (re_search_internal, re_search_2_stub, re_search_stub)
52947         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
52948         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
52949         (update_cur_sifted_state, check_dst_limits):
52950         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
52951         (check_subexp_limits, sift_states_bkref, merge_state_array):
52952         (check_subexp_matching_top, get_subexp, get_subexp_sub):
52953         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
52954         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
52955         (expand_bkref_cache, check_node_accept_bytes):
52956         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
52957         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
52958         (acquire_init_state_context, check_halt_node_context):
52959         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
52960         (sift_states_backward, clean_state_log_if_needed):
52961         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
52962         (find_recover_state, transit_state_sb, transit_state_mb):
52963         (transit_state_bkref, build_trtable, match_ctx_clean):
52964         Likewise.
52965         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
52966         to work around an assumption that REG_MISSING is negative.
52967
52968         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
52969         (seek_collating_symbol_entry) [defined _LIBC]:
52970         (lookup_collation_sequence_value) [defined _LIBC]:
52971         (build_range_exp, build_collating_symbol) [defined _LIBC]:
52972         Use prototypes rather than old-style function definitions.
52973         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
52974         (transit_state_sb) [0]:
52975         (find_collation_sequence_value) [defined _LIBC]: Likewise.
52976
52977         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
52978         rm_eo.
52979
52980         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
52981         (optimize_subexps, lower_subexp):
52982         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
52983         since the signed shift might overflow.  Use 1u<<31 instead.
52984         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
52985         Likewise.
52986         * lib/regexec.c (check_dst_limits_calc_pos_1,
52987         check_subexp_matching_top): Likewise.
52988
52989         * lib/regcomp.c (optimize_subexps, lower_subexp):
52990         Use CHAR_BIT rather than 8, for clarity.
52991         * lib/regexec.c (check_dst_limits_calc_pos_1):
52992         (check_subexp_matching_top): Likewise.
52993         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
52994         have to worry about portability issues when shifting it left.
52995         Remove no-longer-needed test for table_size > 0.
52996         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
52997         in a word, as the resulting behavior is undefined.
52998         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
52999         in one case, a <= should have been an <, and in another case the
53000         whole test was missing.
53001         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
53002         the standard name CHAR_BIT.
53003         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
53004         this is not true on one's complement and signed-magnitude hosts.
53005
53006         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
53007         next_last_offset.
53008         (struct re_dfa_t): Remove unused member states_alloc.
53009         * lib/regcomp.c (init_dfa): Don't initialize unused members.
53010
53011 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53012
53013         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
53014         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
53015         and large-file glibc and in 32-bit large-file Solaris.
53016
53017 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53018
53019         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
53020         lengths fit in regoff_t; this isn't true if regoff_t is the same
53021         width as size_t.
53022         * lib/regex.c (re_search_internal): 5th arg is LAST_START
53023         (= START + RANGE) instead of RANGE.  This avoids overflow
53024         problems when regoff_t is the same width as size_t.
53025         All callers changed.
53026         (re_search_2_stub): Check for overflow when adding the
53027         sizes of the two strings.
53028         (re_search_stub): Check for overflow when adding START
53029         to RANGE; if it occurs, substitute the extreme value.
53030
53031 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53032
53033         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
53034
53035 2005-08-31  Jim Meyering  <jim@meyering.net>
53036
53037         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
53038         a pointer-to-const.
53039         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
53040         (register_state): Likewise.
53041         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
53042         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
53043         (group_nodes_into_DFAstates): Likewise.
53044
53045 2005-08-31  Jim Meyering  <jim@meyering.net>
53046
53047         * check-module: Add a FIXME comment.
53048
53049 2005-08-31  Eric Blake  <ebb9@byu.net>
53050
53051         * modules/unistd-safer (Files): Add unistd--.h.
53052         * modules/stdio-safer (Files): Add stdio--.h.
53053
53054 2005-08-31  Derek Price  <derek@ximbiot.com>
53055
53056         * lib/getdelim.c (getdelim): Return EOF on EOF.
53057         Reported by Larry Jones <lawrence.jones@ugs.com>.
53058
53059 2005-08-31  Bruno Haible  <bruno@clisp.org>
53060
53061         Avoid unnecessary diffs in the generated lib/Makefile.am.
53062         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
53063         the generated files.
53064         (func_import): Don't set cmd.
53065
53066 2005-08-31  Bruno Haible  <bruno@clisp.org>
53067
53068         * lib/strstr.c: Include <stddef.h>, for NULL.
53069         * lib/strcasestr.c: Likewise.
53070         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53071
53072 2005-08-31  Bruno Haible  <bruno@clisp.org>
53073
53074         * gnulib-tool: New option --macro-prefix.
53075         (func_import): Use macro_prefix.
53076         (import): Handle option --macro-prefix.
53077
53078 2005-08-31  Bruno Haible  <bruno@clisp.org>
53079
53080         * gnulib-tool (import): Rename most ac_* variables to cached_*.
53081         Also use new variables cached_lgpl, cached_libtool.
53082
53083 2005-08-31  Bruno Haible  <bruno@clisp.org>
53084
53085         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
53086         always instantiating them.
53087
53088 2005-08-31  Bruno Haible  <bruno@clisp.org>
53089
53090         * gnulib-tool (func_import): Read the previous cached settings
53091         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
53092         earlier added by gnulib but are now dropped. Warn when a gnulib file
53093         overwrites a non-gnulib file.
53094
53095 2005-08-31  Bruno Haible  <bruno@clisp.org>
53096
53097         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
53098         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
53099         projects that don't keep autogenerated files in CVS. Put into
53100         actioncmd only the specified modules, not the transitive closure.
53101
53102 2005-08-31  Bruno Haible  <bruno@clisp.org>
53103
53104         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
53105         Create directories that shall be filled.
53106         (import): Don't look for gl_* macros in configure.ac. Recurse across
53107         all directories containing a gnulib-cache.m4 files, if meaningful.
53108
53109 2005-08-31  Bruno Haible  <bruno@clisp.org>
53110
53111         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
53112         (import): Set seen_libtool when we see gl_LIBTOOL.
53113
53114 2005-08-31  Bruno Haible  <bruno@clisp.org>
53115
53116         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
53117         declaration macro definitions from generated gnulib.m4.
53118
53119 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
53120
53121         * lib/iconvme.h: Add prototype for iconv_alloc.
53122
53123 2005-08-29  Simon Josefsson  <jas@extundo.com>
53124
53125         * lib/iconvme.c: Fix errno.
53126
53127 2005-08-29  Bruno Haible  <bruno@clisp.org>
53128
53129         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
53130         that it works when the directory contains spaces.
53131
53132 2005-08-29  Bruno Haible  <bruno@clisp.org>
53133
53134         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
53135
53136 2005-08-29  Bruno Haible  <bruno@clisp.org>
53137
53138         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
53139         Emit more advice.
53140
53141 2005-08-29  Bruno Haible  <bruno@clisp.org>
53142         and Stepan Kasal  <kasal@ucw.cz>
53143
53144         * check-module: If more parameters are given, check each of them
53145         separately; add more exceptions, as noted by Jim Meyering.
53146         (check_module): New procedure.
53147         (%exempt_header): Now contains all exceptions.
53148
53149 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
53150
53151         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
53152
53153 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
53154
53155         * lib/iconvme.c: Split iconv_string into iconv_alloc.
53156
53157 2005-08-28  Bruno Haible  <bruno@clisp.org>
53158
53159         * m4/gnulib-tool.m4: New file.
53160
53161 2005-08-27  Jim Meyering  <jim@meyering.net>
53162
53163         * modules/unistd-safer (Files): Add pipe-safer.c.
53164         * modules/fcntl-safer (Files): Add creat-safer.c.
53165
53166 2005-08-27  Jim Meyering  <jim@meyering.net>
53167
53168         * m4/stdlib-safer.m4: New file.  From coreutils.
53169         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
53170         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
53171         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
53172         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
53173         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
53174
53175 2005-08-27  Jim Meyering  <jim@meyering.net>
53176
53177         * lib/fopen-safer.c: Merge minor changes from coreutils.
53178         * lib/dup-safer.c: Likewise.
53179         * lib/fd-safer.c: Likewise.
53180
53181         Merge from coreutils.
53182         * lib/stdio--.h: New file.
53183         * lib/stdlib--.h: New file.
53184         * lib/mkstemp-safer.c: New file.
53185
53186         GNU tar needs these.
53187         * lib/pipe-safer.c: New file.
53188         * lib/creat-safer.c: New file.
53189         * lib/fcntl--.h (creat): Define to creat_safer.
53190         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
53191         * lib/unistd--.h (pipe): Define to pipe_safer.
53192         * lib/unistd-safer.h: Declare pipe_safer.
53193
53194 2005-08-26  Simon Josefsson  <jas@extundo.com>
53195
53196         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
53197         Haible <bruno@clisp.org>.
53198
53199 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
53200
53201         * lib/regex_internal.h: Remove all references to
53202         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
53203         or better.
53204         (bitset_not, bitset_merge, bitset_not_merge):
53205         (bitset_mask, re_string_allocate, re_string_construct):
53206         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
53207         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
53208         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
53209         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
53210         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
53211         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
53212         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
53213         (re_acquire_state_context):
53214         Remove unnecessary forward decls.
53215         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
53216         Put __attribute at function definition,
53217         now that the function decl has been removed.
53218         * lib/regex_internal.c (re_string_peek_byte_case):
53219         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
53220         Likewise.
53221
53222 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
53223
53224         * m4/regex.m4: Add AC_PREREQ(2.50).
53225         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
53226
53227 2005-08-25  Simon Josefsson  <jas@extundo.com>
53228
53229         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
53230         __fsetlocking.
53231
53232 2005-08-25  Simon Josefsson  <jas@extundo.com>
53233
53234         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
53235         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
53236         GLIBC specific code.
53237
53238 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53239
53240         Make regex safe for g++.  This fixes one real bug (an "err"
53241         that should have been "*err").  g++ problem reported by
53242         Sam Steingold.
53243         * lib/regex_internal.h (re_calloc): New macro, consistent with
53244         re_malloc etc.  All callers of calloc changed to use re_calloc.
53245         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
53246         not int.  All callers changed.
53247         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
53248         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
53249         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
53250         (find_recover_state): Change "err" to "*err"; this fixes what
53251         appears to be a real bug.
53252         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
53253         versus int.
53254
53255 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53256
53257         * modules/regex (Depends-on): Add malloc, since the code
53258         assumes that !malloc(0) means failure.
53259
53260 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53261
53262         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
53263
53264         alloca modernization/simplification for regex.
53265         * lib/regex.c: Remove portability cruft for alloca.  This no longer
53266         needs to be at the start of the file, and can be moved into
53267         regex_internal.h and simplified.
53268         * lib/regex_internal.h: Include <alloca.h>.
53269         (__libc_use_alloca) [!defined _LIBC]: New macro.
53270         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
53271         now works outside glibc.
53272
53273 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53274
53275         * config/srclist.txt: Add glibc bugs 1241, 1245.
53276
53277 2005-08-25  Jim Meyering  <jim@meyering.net>
53278
53279         * lib/open-safer.c: Include <config.h>.
53280         Otherwise, we'd lose LARGEFILE support in any file using
53281         e.g. "fcntl--.h"
53282
53283 2005-08-25  Bruno Haible  <bruno@clisp.org>
53284
53285         * m4/minmax.m4: Require autoconf 2.52.
53286         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
53287         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
53288         alternatives of translit over the alphabet.
53289         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
53290
53291 2005-08-24  Simon Josefsson  <jas@extundo.com>
53292
53293         * tests/test-getpass.c: New file.
53294
53295 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53296
53297         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
53298         for GNU regex features.
53299
53300 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53301
53302         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
53303         * lib/regex.h (regerror): Likewise.
53304
53305         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
53306         requires this.  (The code never needed it.)
53307
53308         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
53309         All uses of recently-renamed identifiers changed to use the new,
53310         POSIX-compliant names.  The code will build and run just fine
53311         without these changes, but it's better to eat our own dog food
53312         and use the standard-conforming names.
53313
53314         * lib/regex.h: Fix a multitude of POSIX name space violations.
53315         These changes have an effect only for programs that define
53316         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
53317         do not change anything for programs compiled in the normal way.
53318         Also, there is no effect on the ABI.
53319
53320         (_REGEX_SOURCE): New macro.
53321         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
53322         defined and _GNU_SOURCE is not; this fixes a name space violation.
53323
53324         Rename the following macros to obey POSIX requirements.
53325         The old names are still visible as macros if _REGEX_SOURCE is defined.
53326         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
53327         RE_BACKSLASH_ESCAPE_IN_LISTS.
53328         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
53329         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
53330         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
53331         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
53332         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
53333         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
53334         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
53335         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
53336         (REG_INTERVALS): renamed from RE_INTERVALS.
53337         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
53338         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
53339         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
53340         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
53341         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
53342         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
53343         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
53344         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
53345         RE_UNMATCHED_RIGHT_PAREN_ORD.
53346         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
53347         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
53348         (REG_DEBUG): renamed from RE_DEBUG.
53349         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
53350         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
53351         unusual, since we can't clash with the POSIX REG_ICASE.
53352         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
53353         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
53354         (REG_NO_SUB): renamed from RE_NO_SUB.
53355         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
53356         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
53357         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
53358         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
53359         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
53360         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
53361         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
53362         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
53363         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
53364         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
53365         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
53366         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
53367         RE_SYNTAX_POSIX_MINIMAL_BASIC.
53368         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
53369         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
53370         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
53371         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
53372         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
53373         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
53374         (REG_FIXED): Renamed from REGS_FIXED.
53375         (REG_NREGS): Renamed from RE_NREGS.
53376
53377         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
53378         of other REG_* macros, since POSIX says the user is allowed to
53379         #undef these macros selectively.
53380
53381         (reg_errcode_t): Update comment stating what other tables need
53382         to be consistent.
53383
53384         Rename the following enum values to obey POSIX requirements.
53385         The old names are still visible as macros.
53386         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
53387         is not defined, since GNU is supposed to be a superset of POSIX as
53388         much as possible, and since we want reg_errcode_t to be a signed
53389         type for implementation consistency.
53390         (_REG_NOERROR): Renamed from REG_NOERROR.
53391         (_REG_NOMATCH): Renamed from REG_NOMATCH.
53392         (_REG_BADPAT): Renamed from REG_BADPAT.
53393         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
53394         (_REG_ECTYPE): Renamed from REG_ECTYPE.
53395         (_REG_EESCAPE): Renamed from REG_EESCAPE.
53396         (_REG_ESUBREG): Renamed from REG_ESUBREG.
53397         (_REG_EBRACK): Renamed from REG_EBRACK.
53398         (_REG_EPAREN): Renamed from REG_EPAREN.
53399         (_REG_EBRACE): Renamed from REG_EBRACE.
53400         (_REG_BADBR): Renamed from REG_BADBR.
53401         (_REG_ERANGE): Renamed from REG_ERANGE.
53402         (_REG_ESPACE): Renamed from REG_ESPACE.
53403         (_REG_BADRPT): Renamed from REG_BADRPT.
53404         (_REG_EEND): Renamed from REG_EEND.
53405         (_REG_ESIZE): Renamed from REG_ESIZE.
53406         (_REG_ERPAREN): Renamed from REG_ERPAREN.
53407         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
53408         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
53409         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
53410         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
53411
53412         (_REG_RE_NAME, _REG_RM_NAME): New macros.
53413         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
53414         changed.  But support the old name if the new one is not defined
53415         and if _REGEX_SOURCE.
53416
53417         Change the following member names in struct re_pattern_buffer.
53418         The old names are still supported if !_REGEX_SOURCE.
53419         The new names are always supported, regardless of _REGEX_SOURCE.
53420         (re_buffer): Renamed from buffer.
53421         (re_allocated): Renamed from allocated.
53422         (re_used): Renamed from used.
53423         (re_syntax): Renamed from syntax.
53424         (re_fastmap): Renamed from fastmap.
53425         (re_translate): Renamed from translate.
53426         (re_can_be_null): Renamed from can_be_null.
53427         (re_regs_allocated): Renamed from regs_allocated.
53428         (re_fastmap_accurate): Renamed from fastmap_accurate.
53429         (re_no_sub): Renamed from no_sub.
53430         (re_not_bol): Renamed from not_bol.
53431         (re_not_eol): Renamed from not_eol.
53432         (re_newline_anchor): Renamed from newline_anchor.
53433
53434         Change the following member names in struct re_registers.
53435         The old names are still supported if !_REGEX_SOURCE.
53436         The new names are always supported, regardless of _REGEX_SOURCE.
53437         (rm_num_regs): Renamed from num_regs.
53438         (rm_start): Renamed from start.
53439         (rm_end): Renamed from end.
53440
53441         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
53442         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
53443         Prepend __ to parameter names.
53444
53445         Undo yesterday's changes.
53446
53447 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53448
53449         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
53450         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
53451         lib/regex.c.
53452
53453 2005-08-24  Jim Meyering  <jim@meyering.net>
53454
53455         Sync from coreutils.
53456         * m4/fcntl-safer.m4: New file.
53457
53458         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
53459         and object files for this module.
53460
53461 2005-08-24  Jim Meyering  <jim@meyering.net>
53462
53463         Sync from coreutils.
53464         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
53465
53466 2005-08-24  Jim Meyering  <jim@meyering.net>
53467
53468         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
53469         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
53470
53471 2005-08-24  Jim Meyering  <jim@meyering.net>
53472
53473         * modules/fcntl-safer: New module.
53474         * modules/fts (Depends-on): Add fcntl-safer.
53475         * MODULES.html.sh (File descriptor based Input/Output):
53476         Add fcntl-safer.
53477
53478 2005-08-24  Bruno Haible  <bruno@clisp.org>
53479
53480         Support for unit test modules.
53481         * modules/README: Mention tests modules.
53482         * modules/TEMPLATE-TESTS: New file.
53483         * gnulib-tool: New options --extract-tests-module, --with-tests and
53484         --tests-base (unused for the moment).
53485         (testsbase, inctests): New variables.
53486         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
53487         (func_verify_module): Exclude TEMPLATE-TESTS.
53488         (func_verify_nontests_module, func_verify_tests_module): New functions.
53489         (func_get_dependencies): Add implicit dependency for tests modules.
53490         (func_get_tests_module): New function.
53491         (func_modules_transitive_closure): When --with-tests was specified,
53492         include the unit tests as well, unless explicitly avoided.
53493         (func_emit_lib_Makefile_am): Ignore the tests modules here.
53494         (func_emit_tests_Makefile_am): New function.
53495         (func_create_testdir): When --with-tests was specified, emit a
53496         tests/ directory.
53497         * MODULES.html.sh (Future developments): Update.
53498
53499 2005-08-24  Bruno Haible  <bruno@clisp.org>
53500
53501         * modules/tls-tests: New file.
53502         * tests/test-tls.c: New file, from GNU gettext.
53503
53504 2005-08-24  Bruno Haible  <bruno@clisp.org>
53505
53506         * modules/lock-tests: New file.
53507         * tests/test-lock.c: New file, from GNU gettext.
53508
53509 2005-08-24  Bruno Haible  <bruno@clisp.org>
53510
53511         * lib/lock.h: Add multiple inclusion guard.
53512         * lib/tls.h: Add multiple inclusion guard.
53513
53514 2005-08-24  Bruno Haible  <bruno@clisp.org>
53515
53516         * gnulib-tool: Add support for the --aux-dir option to
53517         --create-testdir, --create-megatestdir, --test, --megatest.
53518         (func_create_testdir, func_create_megatestdir): Optionally emit a
53519         AC_CONFIG_AUX_DIR directive.
53520         (create-testdir, create-megatestdir, test, megatest): Provide a
53521         default value for $auxdir.
53522
53523 2005-08-24  Bruno Haible  <bruno@clisp.org>
53524
53525         * gnulib-tool (import): Use compound statement instead of subshell
53526         where possible.
53527
53528 2005-08-24  Bruno Haible  <bruno@clisp.org>
53529
53530         * gnulib-tool (import): Change --aux-dir default to "build-aux".
53531
53532 2005-08-24  Bruno Haible  <bruno@clisp.org>
53533
53534         * gnulib-tool (func_version): Update.
53535
53536 2005-08-24  Bruno Haible  <bruno@clisp.org>
53537
53538         * gnulib-tool (func_import, func_create_testdir,
53539         func_create_megatestdir): Quote all autoconf macro arguments.
53540
53541 2005-08-24  Bruno Haible  <bruno@clisp.org>
53542
53543         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
53544         option --force, because --force causes the aclocal.m4 of each
53545         subdirectory to be newer than the corresponding config.h.in.
53546
53547 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
53548
53549         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
53550         All contents moved to gl_REGEX.
53551         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
53552         assume that it does.
53553
53554 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
53555
53556         * lib/regex.h (REG_NOSYS)
53557         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
53558         Define, since POSIX requires it as of 2001.
53559         (_REG_ENOSYS)
53560         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
53561         New private symbol, used to keep the enum signed in all cases.
53562         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
53563         Youngman in
53564         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
53565
53566         * lib/regex_internal.c (re_string_skip_chars, register_state):
53567         (calc_state_hash):
53568         Remove forward decls; no longer needed now that we use prototypes.
53569         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
53570         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
53571         (clean_state_log_if_needed): Likewise.
53572
53573 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
53574
53575         * config/srclist.txt: Add glibc bugs 1231-1233.
53576
53577 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53578
53579         Fix problems reported by Sam Steingold in
53580         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
53581         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
53582         assumed that reg_errcode_t is a signed type, which is not
53583         necessarily true if _XOPEN_SOURCE is not defined.
53584         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
53585         since some compilers warn about it otherwise.
53586
53587 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53588
53589         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
53590         (init_word_char, create_initial_state, duplicate_node_closure):
53591         (fetch_token, peek_token_bracket, build_range_exp):
53592         (build_collating_symbol): Remove forward decls; no longer needed
53593         now that we use prototypes.
53594
53595         * lib/regcomp.c:
53596         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
53597         (re_compile_fastmap_iter, regcomp, regerror, regfree):
53598         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
53599         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
53600         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
53601         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
53602         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
53603         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
53604         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
53605         (build_range_exp, build_collating_symbol, parse_bracket_exp):
53606         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
53607         (build_charclass, build_charclass_op, fetch_number, create_tree):
53608         (create_token_tree, mark_opt_subexp, duplicate_tree):
53609         Use prototypes rather than old-style definitions.
53610
53611         * lib/regex_internal.c:
53612         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
53613         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
53614         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
53615         (re_string_reconstruct, re_string_peek_byte_case):
53616         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
53617         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
53618         (re_node_set_init_copy, re_node_set_add_intersect):
53619         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
53620         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
53621         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
53622         (re_acquire_state, re_acquire_state_context, register_state):
53623         (create_ci_newstate, create_cd_newstate, free_state):
53624         Likewise.
53625         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
53626         re_search_2):
53627         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
53628         (re_search_internal, prune_impossible_nodes):
53629         (acquire_init_state_context, check_matching, static):
53630         (check_halt_node_context, check_halt_state_context, proceed_next_node):
53631         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
53632         (update_regs, sift_states_backward, build_sifted_states):
53633         (clean_state_log_if_needed, merge_state_array):
53634         (update_cur_sifted_state, add_epsilon_src_nodes):
53635         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
53636         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
53637         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
53638         (find_recover_state, check_subexp_matching_top, transit_state_mb):
53639         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
53640         (check_arrival, check_arrival_add_next_nodes):
53641         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
53642         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
53643         (check_node_accept_bytes, check_node_accept, extend_buffers):
53644         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
53645         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
53646         (sift_ctx_init):
53647         Likewise.
53648
53649         * lib/regex_internal.h:
53650         (re_string_allocate, re_string_construct, re_string_reconstruct):
53651         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
53652         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
53653         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
53654         (re_string_context_at, re_string_peek_byte_case):
53655         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
53656         is defined, since we now use prototypes always.
53657
53658         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
53659         C89 or better.  All uses removed.
53660
53661 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53662
53663         * config/srclist.txt: Add glibc bugs 1220-1227.
53664
53665 2005-08-20  Jim Meyering  <jim@meyering.net>
53666
53667         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
53668         of unused local, dfa.
53669
53670 2005-08-20  Bruno Haible  <bruno@clisp.org>
53671
53672         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
53673
53674 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53675
53676         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
53677         (re_node_set_insert_last, re_dfa_add_node):
53678         Rename local variables to avoid GCC shadowing warnings.
53679
53680 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53681
53682         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
53683         [defined lint]: Suppress bogus uninitialized-variable warnings.
53684
53685         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
53686         and let the caller return REG_ESPACE if out of space.  This
53687         removes an uninitialied-variable warning with GCC 4.0.1, and also
53688         avoids taking the address of a local variable.  All callers
53689         changed.
53690
53691 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53692
53693         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
53694         $LIBCSRC/posix/regexec.c.
53695         Add glibc bug 1217 for regcomp.c.
53696
53697 2005-08-19  Jim Meyering  <jim@meyering.net>
53698
53699         * lib/regexec.c (proceed_next_node): Redo local variables to
53700         avoid GCC shadowing warnings.
53701
53702 2005-08-18  Bruno Haible  <bruno@clisp.org>
53703
53704         * lib/strstr.c (strstr): Fix return value in multibyte case.
53705         * lib/strcasestr.c (strcasestr): Likewise.
53706
53707 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
53708
53709         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
53710
53711 2005-08-17  Jim Meyering  <jim@meyering.net>
53712
53713         Make the %s format (seconds since the epoch) work for a negative
53714         number and when used with a zero-padded field width, e.g. %015s.
53715
53716         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
53717         label so that it precedes the code to set `digits'.  Otherwise,
53718         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
53719         print `00-22'.  Now, it prints `-0022', as it should.
53720
53721 2005-08-17  Bruno Haible  <bruno@clisp.org>
53722
53723         * modules/strstr (Files): Add m4/mbrtowc.m4.
53724         (Depends-on): Add mbuiter.
53725
53726 2005-08-17  Bruno Haible  <bruno@clisp.org>
53727
53728         * modules/strcasestr: New file.
53729         * MODULES.html.sh (String handling, based on ANSI C 89): Add
53730         strcasestr.
53731
53732 2005-08-17  Bruno Haible  <bruno@clisp.org>
53733
53734         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
53735
53736 2005-08-17  Bruno Haible  <bruno@clisp.org>
53737
53738         * modules/mbuiter: New file.
53739         * MODULES.html.sh (Extended multibyte and wide character utilities):
53740         Add mbuiter.
53741
53742 2005-08-17  Bruno Haible  <bruno@clisp.org>
53743
53744         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
53745         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
53746
53747 2005-08-17  Bruno Haible  <bruno@clisp.org>
53748
53749         * m4/strcasestr.m4: New file.
53750
53751 2005-08-17  Bruno Haible  <bruno@clisp.org>
53752
53753         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
53754         * lib/strstr.c: Completely rewritten, with multibyte locale support.
53755
53756 2005-08-17  Bruno Haible  <bruno@clisp.org>
53757
53758         * lib/strcasestr.h: New file.
53759         * lib/strcasestr.c: New file.
53760
53761 2005-08-17  Bruno Haible  <bruno@clisp.org>
53762
53763         * lib/strcasecmp.c: Use mbuiter.h.
53764
53765 2005-08-17  Bruno Haible  <bruno@clisp.org>
53766
53767         * lib/mbuiter.h: New file.
53768
53769 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
53770
53771         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
53772         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
53773         and gl_GETOPT are both invoked via different paths (as happens
53774         with GNU tar CVS because it uses both argp and getopt), the former
53775         wins.
53776
53777 2005-08-16  Bruno Haible  <bruno@clisp.org>
53778
53779         * modules/tls: New file.
53780         * MODULES.html.sh (Multithreading): Add tls.
53781
53782 2005-08-16  Bruno Haible  <bruno@clisp.org>
53783
53784         * modules/strnlen1: New file.
53785         * MODULES.html.sh (String handling): Add strnlen1.
53786
53787 2005-08-16  Bruno Haible  <bruno@clisp.org>
53788
53789         * modules/strcase (Files): Add m4/mbrtowc.m4.
53790         (Depends-on): Add strnlen1, mbchar.
53791
53792 2005-08-16  Bruno Haible  <bruno@clisp.org>
53793
53794         * modules/mbiter: New file.
53795         * MODULES.html.sh (Extended multibyte and wide character utilities):
53796         Add mbiter.
53797
53798 2005-08-16  Bruno Haible  <bruno@clisp.org>
53799
53800         * modules/mbfile: New file.
53801         * MODULES.html.sh (Extended multibyte and wide character utilities):
53802         Add mbfile.
53803
53804 2005-08-16  Bruno Haible  <bruno@clisp.org>
53805
53806         * modules/mbchar: New file.
53807         * MODULES.html.sh (Extended multibyte and wide character utilities):
53808         New section.
53809
53810 2005-08-16  Bruno Haible  <bruno@clisp.org>
53811
53812         * m4/tls.m4: New file, from GNU gettext.
53813
53814 2005-08-16  Bruno Haible  <bruno@clisp.org>
53815
53816         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
53817         always.
53818         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
53819
53820 2005-08-16  Bruno Haible  <bruno@clisp.org>
53821
53822         * m4/mbiter.m4: New file.
53823
53824 2005-08-16  Bruno Haible  <bruno@clisp.org>
53825
53826         * m4/mbfile.m4: New file.
53827
53828 2005-08-16  Bruno Haible  <bruno@clisp.org>
53829
53830         * m4/mbchar.m4: New file.
53831
53832 2005-08-16  Bruno Haible  <bruno@clisp.org>
53833
53834         * lib/tls.h: New file, from GNU gettext.
53835         * lib/tls.c: New file, from GNU gettext.
53836
53837 2005-08-16  Bruno Haible  <bruno@clisp.org>
53838
53839         * lib/strnlen1.h: New file.
53840         * lib/strnlen1.c: New file.
53841
53842 2005-08-16  Bruno Haible  <bruno@clisp.org>
53843
53844         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
53845         (mbi_init): Update.
53846         (mbi_avail, mbi_advance): Let the iteration end before the terminating
53847         NUL byte, not after it.
53848
53849 2005-08-16  Bruno Haible  <bruno@clisp.org>
53850
53851         * lib/strcase.h (strcasecmp): Add note in comments.
53852         * lib/strncasecmp.c: Use code from strcasecmp.c.
53853         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
53854         (strcasecmp): Work correctly in multibyte locales.
53855
53856 2005-08-16  Bruno Haible  <bruno@clisp.org>
53857
53858         * lib/mbiter.h: New file.
53859
53860 2005-08-16  Bruno Haible  <bruno@clisp.org>
53861
53862         * lib/mbfile.h: New file.
53863
53864 2005-08-16  Bruno Haible  <bruno@clisp.org>
53865
53866         * lib/mbchar.h: New file.
53867         * lib/mbchar.c: New file.
53868
53869 2005-08-16  Bruno Haible  <bruno@clisp.org>
53870
53871         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
53872         the valid ones. Makes the comparison operations transitive:
53873         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
53874         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
53875
53876 2005-08-15  Simon Josefsson  <jas@extundo.com>
53877
53878         * modules/ssize_t (License): Change to 'unlimited'.
53879
53880         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
53881
53882 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53883
53884         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
53885         Add comments for each pending glibc patch.
53886
53887 2005-08-15  Bruno Haible  <bruno@clisp.org>
53888
53889         * lib/regex.h (__restrict_arr): Don't define to __restrict if
53890         __cplusplus is defined.
53891
53892 2005-08-14  Jim Meyering  <jim@meyering.net>
53893
53894         Sync from coreutils.
53895
53896         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
53897         Use the hash-table-based cycle-detection code not just when
53898         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
53899         Reported by James Youngman in
53900         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
53901         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
53902         FTS_TIGHT_CYCLE_CHECK.
53903         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
53904         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
53905         once again.
53906         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
53907         * lib/fts.c (fd_safer): Remove decl.
53908         Include fcntl--.h rather than unistd-safer.h
53909         (fts_safe_changedir): Don't call fd_safer; no longer needed
53910         now that we include fcntl--.h.
53911
53912 2005-08-12  Simon Josefsson  <jas@extundo.com>
53913
53914         * modules/getndelim2: Use ssize_t module.
53915         * modules/getnline: Likewise.
53916         * modules/safe-read: Likewise.
53917         * modules/xreadlink: Likewise.
53918
53919         * modules/ssize_t: New file.
53920
53921 2005-08-12  Simon Josefsson  <jas@extundo.com>
53922
53923         * m4/readline.m4: Look for termcap, curses or ncurses if required.
53924
53925 2005-08-12  Simon Josefsson  <jas@extundo.com>
53926
53927         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53928         ssize_t.
53929
53930 2005-08-12  Simon Josefsson  <jas@extundo.com>
53931
53932         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
53933         readline, getdelim and check_version.
53934         (Support for systems lacking ISO C 99: Sizes of integer types):
53935         Add size_max.
53936
53937 2005-08-12  Bruno Haible  <bruno@clisp.org>
53938
53939         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
53940
53941 2005-08-11  Simon Josefsson  <jas@extundo.com>
53942
53943         * modules/readline: New file.
53944
53945         * modules/strnlen (Files): Add strnlen.h.
53946
53947 2005-08-11  Simon Josefsson  <jas@extundo.com>
53948
53949         * m4/readline.m4: New file.
53950
53951 2005-08-11  Simon Josefsson  <jas@extundo.com>
53952
53953         * lib/readline.h, readline.c: New file.
53954
53955 2005-08-11  Simon Josefsson  <jas@extundo.com>
53956
53957         * doc/gnulib.texi (Initial import, Finishing touches): Mention
53958         gl_AVOID.
53959
53960 2005-08-11  Bruno Haible  <bruno@clisp.org>
53961
53962         * lib/strnlen.h (strnlen): Change parameter name to match comment.
53963
53964 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
53965
53966         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
53967
53968 2005-08-10  Simon Josefsson  <jas@extundo.com>
53969
53970         * tests/test-iconvme.c: New file.
53971
53972 2005-08-10  Simon Josefsson  <jas@extundo.com>
53973
53974         * m4/strnlen.m4: New file.
53975
53976         * m4/strndup.m4: Don't check for strnlen declaration, done in
53977         strnlen.m4.
53978
53979 2005-08-10  Simon Josefsson  <jas@extundo.com>
53980
53981         * lib/strndup.c: Use strnlen.h.
53982
53983         * lib/strnlen.h: New file.
53984
53985 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53986
53987         * README: Typos.
53988
53989 2005-08-02  Simon Josefsson  <jas@extundo.com>
53990
53991         * modules/readline: New file.
53992
53993 2005-08-02  Simon Josefsson  <jas@extundo.com>
53994
53995         * modules/getdelim: New file.
53996
53997         * modules/getline: Rewrite, don't use getndelim2.
53998
53999 2005-08-02  Simon Josefsson  <jas@extundo.com>
54000
54001         * m4/getline.m4: Separate out getdelim stuff into separate module.
54002
54003         * m4/getdelim.m4: New file.
54004
54005 2005-08-02  Simon Josefsson  <jas@extundo.com>
54006
54007         * lib/getline.h, getline.c: Rewrite.
54008
54009         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
54010
54011 2005-07-31  Bruno Haible  <bruno@clisp.org>
54012
54013         * lib/lock.h (gl_lock_initializer): New macro.
54014         (gl_lock_define_initialized): Use it.
54015         (gl_rwlock_initializer): New macro.
54016         (gl_rwlock_define_initialized): Use it.
54017         (gl_recursive_lock_initializer): New macro.
54018         (gl_recursive_lock_define_initialized): Use it.
54019
54020 2005-07-30  Karl Berry  <karl@gnu.org>
54021
54022         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
54023         Report from Ben Pfaff, regarding getopt.
54024
54025 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
54026
54027         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
54028         normal way.
54029         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
54030         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
54031         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
54032         (gl_GETOPT): Use the new macros.  Most of the implementation
54033         is moved to the new macros.  This is for programs like Emacs
54034         that don't want all the functionality of gl_GETOPT.
54035
54036 2005-07-26  Bruno Haible  <bruno@clisp.org>
54037
54038         * m4/lock.m4: Update from GNU gettext.
54039
54040 2005-07-26  Bruno Haible  <bruno@clisp.org>
54041
54042         * lib/lock.h: Update from GNU gettext.
54043         * lib/lock.c: Update from GNU gettext.
54044
54045 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
54046
54047         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
54048         obsolescent AC_TRY_RUN.  Include the default includes files, for
54049         'exit'.
54050
54051 2005-07-24  Bruno Haible  <bruno@clisp.org>
54052
54053         * modules/visibility: New file.
54054         * MODULES.html.sh (Misc): Add visibility.
54055
54056 2005-07-24  Bruno Haible  <bruno@clisp.org>
54057
54058         * m4/visibility.m4: New file.
54059
54060 2005-07-24  Bruno Haible  <bruno@clisp.org>
54061
54062         * doc/visibility.texi: New file.
54063
54064 2005-07-22  Bruno Haible  <bruno@clisp.org>
54065
54066         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
54067         $(ALLOCA_H), redundant through BUILT_SOURCES.
54068         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
54069         redundant through BUILT_SOURCES.
54070         * modules/byteswap (Makefile.am): Remove explicit dependency on
54071         $(BYTESWAP_H), redundant through BUILT_SOURCES.
54072         * modules/fnmatch (Makefile.am): Remove explicit dependency on
54073         $(FNMATCH_H), redundant through BUILT_SOURCES.
54074         * modules/getopt (Makefile.am): Remove explicit dependency on
54075         $(GETOPT_H), redundant through BUILT_SOURCES.
54076         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
54077         redundant through BUILT_SOURCES.
54078         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
54079         redundant through BUILT_SOURCES.
54080         * modules/stdbool (Makefile.am): Remove explicit dependency on
54081         $(STDBOOL_H), redundant through BUILT_SOURCES.
54082         * modules/stdint (Makefile.am): Remove explicit dependency on
54083         $(STDINT_H), redundant through BUILT_SOURCES.
54084         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
54085         Remove explicit dependency on $(SYSEXITS_H).
54086         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
54087
54088 2005-07-18  Simon Josefsson  <jas@extundo.com>
54089
54090         * lib/check-version.c (check_version): Accept identical versions too.
54091
54092 2005-07-18  Bruno Haible  <bruno@clisp.org>
54093
54094         * modules/lock: New file.
54095         * MODULES.html.sh (Multithreading): New section.
54096
54097 2005-07-18  Bruno Haible  <bruno@clisp.org>
54098
54099         * m4/lock.m4: New file, from GNU gettext.
54100
54101 2005-07-18  Bruno Haible  <bruno@clisp.org>
54102
54103         * lib/lock.h: New file, from GNU gettext.
54104         * lib/lock.c: New file, from GNU gettext.
54105
54106 2005-07-18  Bruno Haible  <bruno@clisp.org>
54107
54108         * lib/lock.h (gl_once_t): New type.
54109         (gl_once_define, gl_once): New macros.
54110         * lib/lock.c (fresh_once): New variable.
54111         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
54112         functions.
54113
54114 2005-07-16  Simon Josefsson  <jas@extundo.com>
54115
54116         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
54117         workaround, suggested by Bruno.
54118
54119 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
54120
54121         * modules/xalloc (Depends-on): Add xalloc-die.
54122         * modules/xvasprintf (Depends-on): Add xalloc-die.
54123
54124 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
54125
54126         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
54127         with a minor change.
54128
54129 2005-07-15  Bruno Haible  <bruno@clisp.org>
54130
54131         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
54132         When using lib/poll.c, define poll as rpl_poll.
54133
54134 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
54135
54136         * modules/argp (Depends-on): Remove unlocked-io.
54137
54138 2005-07-14  Derek Price  <derek@ximbiot.com>
54139
54140         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
54141         for glob symlink bug.
54142
54143 2005-07-14  Bruno Haible  <bruno@clisp.org>
54144
54145         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
54146         Instead, test for *_unlocked function declarations directly.
54147
54148 2005-07-11  Simon Josefsson  <jas@extundo.com>
54149
54150         * modules/size_max: New file.
54151
54152         * modules/xsize: Depend on size_max module for size_max.m4.
54153
54154 2005-07-11  Simon Josefsson  <jas@extundo.com>
54155
54156         * lib/size_max.h: New file.
54157
54158 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
54159
54160         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
54161         copyright symbol and the year.
54162         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
54163         (version_etc_va): Use parameterized copyright notice.
54164         Reword to conform to the current GNU coding standards.
54165
54166 2005-07-11  Karl Berry  <karl@gnu.org>
54167
54168         * doc/gnulib.texi (Quoting): new node.
54169         (Initial import): more info, from Patrice.
54170
54171 2005-07-11  Bruno Haible  <bruno@clisp.org>
54172
54173         * gnulib-tool (func_usage): Document option --avoid.
54174         (Command line options): Handle --avoid.
54175         (func_acceptable): New function.
54176         (func_modules_transitive_closure): Use it.
54177
54178 2005-07-11  Bruno Haible  <bruno@clisp.org>
54179
54180         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
54181         Reported by Jim Meyering.
54182
54183 2005-07-10  Bruno Haible  <bruno@clisp.org>
54184
54185         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
54186         Needed when size_t is smaller than 'unsigned int'.
54187         Reported by Paul Eggert.
54188
54189 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54190
54191         * modules/argp (Depends-on): Add unlocked-io
54192
54193 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54194
54195         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
54196         block of defines.
54197
54198 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
54199
54200         * config/srclist.txt: Comment out regcomp.c, since we have a porting
54201         fix now.
54202
54203 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
54204         and Paul Eggert  <eggert@cs.ucla.edu>
54205
54206         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
54207         in wint_t, not wchar_t.  Remove now-unnecessary cast.
54208
54209 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
54210
54211         * modules/regex (Files): Add lib/regex_internal.c,
54212         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
54213         (Depends-on): Add extensions.
54214         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
54215
54216 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
54217
54218         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
54219         pathconf.
54220         * m4/same.m4 (gl_SAME): Likewise.
54221         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
54222
54223         * m4/regex.m4: Adjust to new libc regex implementation.
54224         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
54225         all the .c and .h parts of (the new) regex.
54226         Quote the m4 stuff better.
54227         Check for RE_ICASE bug of old gnulib.
54228         Check for REG_STARTEND of recent libc.
54229         Rename local variables from jm_* to gl_*.
54230         Quote operand of "test -f".
54231         Say "recent enough" version of libc, not "version 2".
54232         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
54233         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
54234         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
54235         Remove check for btowc, isascii.
54236         Require AM_LANGINFO_CODESET.
54237
54238 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
54239
54240         * lib/regex.c, regex.h: Sync from libc.
54241         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
54242         * lib/regexec.c:
54243         New files, synced from libc, except that regex_internal.h
54244         currently has a small porting fix.
54245
54246 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
54247
54248         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
54249         regex_internal.c, regexec.c.
54250         Add regex_internal.h too, but as a comment, since the libc version
54251         is currently broken in gnulib mode.
54252
54253 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
54254
54255         Support programs like Emacs that use gnulib but not gettext.
54256         * MODULES.html.sh (Internationalization functions): Add gettext-h.
54257         * modules/gettext-h: New file.
54258         * modules/gettext (Files): Remove lib/gettext.h.
54259         (Depends-on): Add gettext-h.
54260         (Makefile.am): Remove lib_SOURCES.
54261         * modules/argmatch, modules/c-stack, modules/closeout:
54262         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
54263         * modules/execute, modules/file-type, modules/getaddrinfo:
54264         * modules/getopt, modules/human, modules/javacomp:
54265         * modules/javaexec, modules/mkdir-p, modules/obstack:
54266         * modules/openat, modules/pagealign_alloc, modules/pipe:
54267         * modules/quotearg, modules/regex, modules/rpmatch:
54268         * modules/unicodeio, modules/userspec, modules/version-etc:
54269         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
54270         * modules/xsetenv:
54271         Depend on gettext-h, not gettext.
54272
54273 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
54274
54275         * gnulib-tool (func_import): Add support for 'public domain' license.
54276         * modules/alloca, modules/atexit, modules/memmove:
54277         Now public domain, not GPL.
54278         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
54279         * modules/realloc, modules/strerror, modules/strtod:
54280         Now LGPL, not GPL.
54281
54282 2005-07-05  Bruno Haible  <bruno@clisp.org>
54283
54284         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
54285         autoconf CVS. Needed for mingw.
54286
54287 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
54288
54289         Remove the dependency of the strftime module on the tzset module.
54290         * modules/strftime (Depends-on): Remove dependency on tzset.
54291
54292 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
54293
54294         Remove the dependency of the strftime module on the tzset module.
54295         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
54296         gl_FUNC_TZSET_CLOBBER.
54297
54298 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
54299
54300         Remove the dependency of the strftime module on the tzset module.
54301         * lib/strftime.c (my_strftime)
54302         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
54303         Copy the input structure, to work around some of the bug with
54304         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
54305         Solaris releases, you should also use the tzset module, but we won't
54306         require it as a dependency any more since we don't want LGPLed code
54307         to depend on GPLed code.
54308
54309 2005-07-02  Jim Meyering  <jim@meyering.net>
54310
54311         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
54312         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
54313         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
54314         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
54315
54316 2005-07-02  Jim Meyering  <jim@meyering.net>
54317
54318         * lib/backupfile.c (backup_args): Change a `0' to NULL.
54319
54320 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54321
54322         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
54323         declares only 'struct timespec;' (!).
54324
54325 2005-07-01  Jim Meyering  <jim@meyering.net>
54326
54327         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
54328         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
54329         * lib/save-cwd.c, tempname.c:
54330         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
54331         and don't include <sys/file.h>).
54332
54333 2005-06-29  Jim Meyering  <jim@meyering.net>
54334
54335         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
54336         type name.  Use the variable name instead.
54337         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
54338         Likewise.
54339
54340 2005-06-28  Simon Josefsson  <jas@extundo.com>
54341
54342         * modules/check-version (Files): Add check-version.m4.
54343
54344 2005-06-28  Simon Josefsson  <jas@extundo.com>
54345
54346         * m4/check-version.m4: New file, suggested by Jim Meyering
54347         <jim@meyering.net>.
54348
54349 2005-06-28  Simon Josefsson  <jas@extundo.com>
54350
54351         * lib/check-version.h, lib/check-version.c: New files.
54352
54353 2005-06-28  Simon Josefsson  <jas@extundo.com>
54354
54355         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
54356         collision with global variable.  Better indentation.  Don't
54357         increment buffer pointer beyond buffer end.  Based on comments
54358         from Paul Eggert <eggert@cs.ucla.edu>.
54359
54360         * lib/base64.h: Indent.
54361
54362 2005-06-28  Simon Josefsson  <jas@extundo.com>
54363
54364         * doc/gnulib.texi (Library version handling): New section.
54365
54366 2005-06-28  Jim Meyering  <jim@meyering.net>
54367
54368         * check-module (find_included_lib_files): Hard-code another
54369         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
54370         but modules/fts-lgpl (correctly) does not list those files.
54371
54372         * modules/canonicalize (Files): Add lib/pathmax.h.
54373
54374 2005-06-25  Simon Josefsson  <jas@extundo.com>
54375
54376         * modules/check-version: New file.
54377
54378 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
54379
54380         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
54381         initializer of struct addrinfo, as an indication that we don't
54382         care how many members the structure has.
54383
54384 2005-06-24  Derek Price  <derek@ximbiot.com>
54385         and Bruno Haible  <bruno@clisp.org>
54386
54387         Remove stat module & update lstat.
54388         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
54389         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54390         * m4/stat.m4: Remove this file.
54391
54392 2005-06-24  Derek Price  <derek@ximbiot.com>
54393         and Bruno Haible  <bruno@clisp.org>
54394
54395         Remove stat module & update lstat.
54396         * lib/stat.c: Remove this file...
54397         (slash_aware_lstat): ...moving this content and its support...
54398         * lib/lstat.c (rpl_lstat): ...into here.
54399         * lib/lstat.h: New file.
54400
54401 2005-06-24  Derek Price  <derek@ximbiot.com>
54402         and Bruno Haible  <bruno@clisp.org>
54403
54404         Remove stat module & update lstat.
54405         * config/srclist.txt (libc sources): Remove stat.
54406
54407 2005-06-24  Derek Price  <derek@ximbiot.com>
54408         and Bruno Haible  <bruno@clisp.org>
54409
54410         Remove stat module & update lstat.
54411         * MODULES.html.sh (stat): Remove.
54412         * MODULES.html: Regenerated.
54413         * modules/lstat (Description): Correct function name.
54414         (Files): Add "lstat.h".
54415         (Depends-on): Remove stat, add xalloc, stat-macros.
54416         * modules/stat: Remove this file.
54417         (Include): Add "lstat.h", remove <sys/stat.h>.
54418
54419 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54420
54421         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
54422         (ranged_convert): Don't save conversion in a temporary struct.
54423         This causes a warning with GCC 4.0.0, and anyway in the typical
54424         case it's not worth the extra 100 bytes or so of code.
54425         (ranged_convert, __mktime_internal): When calling a function via a
54426         pointer P, use P () rather than (*P) (), as we now assume C89 or
54427         better.
54428
54429 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54430
54431         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
54432         "who -r" failed to give output.  Problem reported by Tim Waugh.
54433
54434         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
54435         (xcalloc): Use it to avoid needless tests.
54436         Problem reported by Jim Meyering.
54437
54438 2005-06-20  Derek Price  <derek@ximbiot.com>
54439
54440         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
54441         unnecessary for Autoconfs > 2.59c.
54442
54443 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54444
54445         * lib/argp.h (__option_is_short): Check upper limit of
54446         __key. Isprint() requires its argument to have the value
54447         of an unsigned char or EOF.
54448
54449 2005-06-16  Jim Meyering  <jim@meyering.net>
54450
54451         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
54452         when either N or S is zero.
54453
54454 2005-06-16  Derek Price  <derek@ximbiot.com>
54455
54456         * m4/bison.m4: Declare YACC & YFLAGS precious.
54457
54458 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
54459
54460         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
54461         multibyte string or pattern, fall back on unibyte matching.
54462         Problem reported by James Youngman.
54463
54464 2005-06-08  Bruno Haible  <bruno@clisp.org>
54465
54466         * modules/csharpcomp: New file.
54467         * MODULES.html.sh (C#): Add csharpcomp.
54468
54469 2005-06-08  Bruno Haible  <bruno@clisp.org>
54470
54471         * m4/csharpcomp.m4: New file, from GNU gettext.
54472
54473 2005-06-08  Bruno Haible  <bruno@clisp.org>
54474
54475         * lib/csharpcomp.h: New file, from GNU gettext.
54476         * lib/csharpcomp.c: New file, from GNU gettext.
54477         * lib/csharpcomp.sh.in: New file, from GNU gettext.
54478
54479 2005-06-08  Bruno Haible  <bruno@clisp.org>
54480
54481         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
54482         warning on mingw.
54483
54484 2005-06-07  Derek Price  <derek@ximbiot.com>
54485
54486         Sync from CVS.
54487         * lib/glob_.h: Indent nested #ifdef.
54488
54489 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
54490
54491         Sync from coreutils.
54492         Use "file name" when talking about file names, instead of "filename"
54493         or "path", as per the GNU coding standards.
54494         * lib/mkdir-p.c: Renamed from makepath.c.
54495         (make_dir_parents): Renamed from make_path.  All callers changed.
54496         * lib/mkdir-p.h: Likewise.  All includers changed.
54497         * lib/filenamecat.c: Renamed from path-concat.c.
54498         (file_name_concat): Renamed from path_concat.  All callers changed.
54499         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
54500         * lib/filenamecat.h: Likewise.  All includers changed.
54501         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
54502         in comments or local variable names.
54503         * lib/basename.c: Likewise.
54504         * lib/canonicalize.c, canonicalize.h: Likewise.
54505         * lib/dirname.c, dirname.h: Likewise.
54506         * lib/euidaccess.c: Likewise.
54507         * lib/exclude.c: Likewise
54508         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
54509         * lib/fsusage.c, fsuage.h: Likewise.
54510         * lib/fts.c, fts_.h: Likewise.
54511         * lib/getcwd.c: Likewise.
54512         * lib/getloadavg.c: Likewise.
54513         * lib/mkstemp.c: Likewise.
54514         * lib/mountlist.c, mountlist.h: Likewise.
54515         * lib/openat.c, openat.h: Likewise.
54516         * lib/readlink-stub.c: Likewise.
54517         * lib/readutmp.c, readutmp.h: Likewise.
54518         * lib/rename.c: Likewise.
54519         * lib/rmdir.c: Likewise.
54520         * lib/same.c: Likewise.
54521         * lib/savedir.c: Likewise.
54522         * lib/stripslash.c: Likewise.
54523         * lib/tempname.c: Likewise.
54524         * lib/xreadlink.c: Likewise.
54525         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
54526         All uses changed.
54527         * lib/exclude.h: Likewise.
54528
54529         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
54530         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
54531         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
54532         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
54533         * lib/pathmax.h: Include <limits.h> unconditionally, since other
54534         files have been getting away with it for years (MORE/BSD 4.3
54535         is extinct now).
54536         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
54537         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
54538
54539         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
54540         Define to 256, not 255, as per modern POSIX.
54541
54542 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
54543
54544         Sync from coreutils.
54545         Use "file name" when talking about file names, instead of "filename"
54546         or "path", as per the GNU coding standards.
54547         * MODULES.html.sh: mkdir-p renamed from makepath.
54548         filenamecat renamed from path-concat.
54549         * modules/filenamecat: Renamed from modules/path-concat.
54550         (Files): filenamecat.h and filenamecat.c renamed from
54551         path-concat.h and path-concat.c.
54552         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
54553         (Include): filenamecat.h, not path-concat.h.
54554         * modules/mkdir-p: Renamed from modules/makepath.
54555         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
54556         makepath.c.
54557         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
54558         (Include): mkdir-p.h, not makepath.h.
54559
54560 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
54561
54562         Sync from coreutils.
54563         * m4/mkdir-p.m4: Renamed from makepath.m4.
54564         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
54565         Rename files from makepath.c to mkdir-p.c, and from
54566         makepath.h to mkdir-p.h.
54567         * m4/filenamecat.m4: Renamed from path-concat.m4.
54568         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
54569         Rename files from path-concat.c to filenamecat.c,
54570         and from path-concat.h to filenamecat.h.
54571         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
54572         "file name" in local variables or comments.
54573         * m4/rename.m4: Likewise.
54574
54575 2005-06-01  Bruno Haible  <bruno@clisp.org>
54576
54577         * modules/csharpexec: New file.
54578         * MODULES.html.sh (C#): New section.
54579
54580 2005-06-01  Bruno Haible  <bruno@clisp.org>
54581
54582         * m4/csharp.m4: New file, from GNU gettext.
54583         * m4/csharpexec.m4: New file, from GNU gettext.
54584
54585 2005-06-01  Bruno Haible  <bruno@clisp.org>
54586
54587         * lib/csharpexec.h: New file, from GNU gettext.
54588         * lib/csharpexec.c: New file, from GNU gettext.
54589         * lib/csharpexec.sh.in: New file, from GNU gettext.
54590
54591 2005-05-31  Derek Price  <derek@ximbiot.com>
54592             Paul Eggert  <eggert@cs.ucla.edu>
54593
54594         Sync from cvs.
54595         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
54596
54597 2005-05-31  Derek Price  <derek@ximbiot.com>
54598             Paul Eggert  <eggert@cs.ucla.edu>
54599
54600         Sync from cvs.
54601         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
54602
54603 2005-05-29  Derek Price  <derek@ximbiot.com>
54604
54605         * config/srclist.txt (glob_.h, glob.c): Add these files.
54606
54607 2005-05-29  Derek Price  <derek@ximbiot.com>
54608
54609         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
54610         * modules/glob: New file.
54611         * modules/getlogin_r: Add link to POSIX spec in description.
54612
54613 2005-05-29  Derek Price  <derek@ximbiot.com>
54614             Paul Eggert  <eggert@cs.ucla.edu>
54615
54616         * m4/glob.m4: New file.
54617
54618 2005-05-29  Derek Price  <derek@ximbiot.com>
54619             Paul Eggert  <eggert@cs.ucla.edu>
54620
54621         * lib/glob_.h, lib/glob.c: New files.
54622
54623 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
54624
54625         * modules/fts (Files): Remove m4/inttypes-pri.m4.
54626         * modules/fts-lgpl (Depends-on): Remove gettext.
54627
54628 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
54629
54630         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
54631         and don't require gt_INTTYPES_PRI.
54632
54633 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
54634
54635         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
54636
54637         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
54638         the configuration hassle isn't worth it.
54639         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
54640         (LONGEST_MODIFIER, PRIuMAX): Remove.
54641
54642 2005-05-27  Bruno Haible  <bruno@clisp.org>
54643
54644         * lib/getlogin_r.h: Remove second include of <stddef.h>.
54645
54646 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
54647
54648         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
54649         _POSIX_PTHREAD_SEMANTICS for Solaris.
54650
54651 2005-05-25  Derek Price  <derek@ximbiot.com>
54652
54653         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
54654
54655 2005-05-25  Derek Price  <derek@ximbiot.com>
54656             Paul Eggert  <eggert@cs.ucla.edu>
54657
54658         * modules/getlogin_r, m4/getlogin_r.m4: New files.
54659         * lib/getlogin_r.c, getlogin_r.h: New files.
54660
54661 2005-05-25  Bruno Haible  <bruno@clisp.org>
54662             Derek Price  <derek@ximbiot.com>
54663
54664         * lib/getlogin_r.h: Simplify API documentation.
54665
54666 2005-05-23  Derek Price  <derek@ximbiot.com>
54667
54668         * modules/minmax (Files): Add m4/minmax.m4.
54669         (configure.ac): Add gl_MINMAX.
54670
54671 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
54672
54673         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
54674         so that unistd-safer.h (GPL'ed code) need not be included.
54675
54676 2005-05-22  Bruno Haible  <bruno@clisp.org>
54677
54678         * m4/minmax.m4: New file.
54679         Based on a patch by Derek Price <derek@ximbiot.com>.
54680
54681 2005-05-22  Bruno Haible  <bruno@clisp.org>
54682
54683         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
54684         (INT64_MIN): Fix definition.
54685         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
54686
54687         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
54688         NEED_SIGNED_INT_TYPES.
54689
54690         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
54691         HAVE_SYSTEM_INTTYPES.
54692
54693 2005-05-22  Bruno Haible  <bruno@clisp.org>
54694
54695         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
54696         Also include <sys/param.h> if it defines MIN, MAX.
54697         Based on a patch by Derek Price <derek@ximbiot.com>.
54698
54699 2005-05-21  Jim Meyering  <jim@meyering.net>
54700
54701         * modules/fts (Files): Add m4/inttypes-pri.m4.
54702         (Depends-on): Add lstat and remove gettext.  Alphabetize.
54703
54704 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54705
54706         New fts module.
54707         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
54708         (setup_dir, free_dir): New functions.
54709         (enter_dir, leave_dir): Define trivial
54710         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
54711         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
54712         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
54713         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
54714         Move to fts-cycle.c.
54715         (fts_open): Use setup_dir.
54716         (fts_close): Use free_dir.
54717         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
54718         This adds a label and some gotos, but the alternatives were messier.
54719         Check for memory allocation failure when entering a dir.
54720         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
54721         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
54722         (FTS): New member fts_cycle, that is a union that contains the
54723         old active_dir_ht and cycle_state.  All uses changed to mention
54724         fts_cycle.ht and fts_cycle.state.
54725         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
54726         fts.c, with the following changes:
54727         (setup_dir, free_dir): New functions.
54728         (enter_dir): Now returns bool.  Return true if successful, false
54729         if memory exhausted.  All callers changed.
54730         Do not bother partly cleaning up on
54731         memory allocation failure; that is free_dir's job.
54732         However, free ad if hash_insert fails, to avoid memory leak.
54733         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
54734         fts->fts_options to see which union member to use.
54735
54736 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54737
54738         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
54739         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
54740
54741 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54742
54743         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
54744
54745 2005-05-20  Jim Meyering  <jim@meyering.net>
54746
54747         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
54748         Now a macro, to pacify GCC.
54749
54750 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
54751
54752         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
54753         of -1.
54754
54755 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
54756
54757         * lib/chown.c (rpl_chown): Return -1 on failure.
54758
54759 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
54760
54761         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
54762         Don't check for stddef.h.
54763         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
54764         don't use its results.
54765         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
54766         since we include them unconditionally.  Don't require
54767         AM_STDBOOL_H, since stdbool is a prerequisite.
54768         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
54769         since we assume C89 or better.
54770         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
54771         as we don't use their results.
54772         Don't check for fchdir, memmove, memset, strrchr, as we use
54773         them unconditionally.
54774         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
54775         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
54776
54777 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
54778
54779         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
54780         Include <stddef.h> unconditionally, since we assume C89 now.
54781         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
54782         * lib/fts.c: Include fts_.h first, to check interface.
54783         Do not include intprops.h; no longer needed.
54784         Include cycle-check.h and hash.h, since fts_.h no longer does.
54785         Remove unnecessary casts of closedir to void.
54786         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
54787         decide whether to decrement nlinks.
54788         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
54789         (FTS): Use struct hash_table * instead of Hash_table, so that
54790         we no longer need to include hash.h here.
54791
54792 2005-05-18  Jim Meyering  <jim@meyering.net>
54793
54794         * modules/dirfd (License): Change to LGPL.  Most of the code
54795         is already in the public domain.
54796
54797 2005-05-18  Jim Meyering  <jim@meyering.net>
54798
54799         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
54800         Reported by Yoann Vandoorselaere.
54801
54802 2005-05-17  Jim Meyering  <jim@meyering.net>
54803
54804         * m4/fts.m4: New file, from coreutils.
54805
54806 2005-05-17  Jim Meyering  <jim@meyering.net>
54807
54808         * lib/fts.c, lib/fts_.h: New files, from coreutils.
54809
54810 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
54811
54812         Sync from coreutils.
54813         * m4/unlinkdir.m4: New file.
54814
54815 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
54816
54817         Sync from coreutils.
54818         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
54819         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
54820         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
54821         White space changes only.
54822         * lib/makepath.c (make_path): Port to hosts where leading "//" is
54823         special.
54824         * lib/yesno.c: Include getline.h, not ctype.h.
54825         (yesno): Don't remove leading white space; POSIX doesn't allow it.
54826         Use getline to remove arbitrary restriction on response length.
54827
54828 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
54829
54830         * config/srclist-update: Spell out "Street" in FSF postal
54831         mail address; this is the style the FSF seems to prefer.
54832
54833         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
54834         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
54835         this updates FSF postal mail address.
54836
54837         Sync from coreutils.
54838         * modules/unlinkdir: New file.
54839         * modules/yesno (Depends-on): Add getline.
54840         * MODULES.html.sh (File system functions): Add unlinkdir.
54841
54842 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54843
54844         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
54845         lib/strsep.h:
54846         Change the initial comment to refer to GPL, not LGPL.
54847         gnulib-tool will change it to LGPL as needed.
54848
54849         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
54850         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
54851         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
54852         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
54853         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
54854         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
54855         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
54856         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
54857         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
54858         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
54859         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
54860         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
54861         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
54862         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
54863         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
54864         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
54865         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
54866         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
54867         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
54868         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
54869         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
54870         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
54871         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
54872         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
54873         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
54874         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
54875         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
54876         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
54877         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
54878         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
54879         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
54880         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
54881         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
54882         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
54883         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
54884         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
54885         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
54886         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
54887         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
54888         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
54889         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
54890         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
54891         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
54892         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
54893         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
54894         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
54895         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
54896         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
54897         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
54898         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
54899         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
54900         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
54901         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
54902         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
54903         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
54904         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
54905         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
54906         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
54907         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
54908         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
54909         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
54910         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
54911         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
54912         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
54913         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
54914         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
54915         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
54916         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
54917         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
54918         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
54919         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
54920         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
54921         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
54922         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
54923         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
54924         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
54925         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
54926         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
54927         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
54928         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
54929         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
54930         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
54931         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
54932         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
54933         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
54934         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
54935         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
54936         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
54937         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
54938         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
54939         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
54940         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
54941         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
54942         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
54943         lib/yesno.c, lib/yesno.h:
54944         Update FSF postal mail address.
54945
54946 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54947
54948         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
54949         tests/test-memmem.c, tests/test-stpncpy.c:
54950         Update FSF postal mail address.
54951
54952 2005-05-13  Bruno Haible  <bruno@clisp.org>
54953
54954         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
54955         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
54956         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
54957         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
54958         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
54959         Add support for 64-bit integers in the MSVC compiler.
54960
54961 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54962
54963         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
54964
54965 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
54966
54967         * gnulib-tool (func_import): Sort and uniquify recommended includes.
54968
54969 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
54970
54971         * doc/getdate.texi (General date syntax): Don't say that date
54972         date --iso-8601=ns generates acceptable dates; it doesn't yet.
54973         Problem reported by Nic Ferrier.
54974
54975 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54976
54977         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
54978         specified in ai_socktype. Fix invalid ai_protocol
54979         check. ai_protocol is usually set to 0 or depending on
54980         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
54981         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
54982         ai_socktype / ai_protocol in the returned addrinfo structure.
54983
54984 2005-05-10  Simon Josefsson  <jas@extundo.com>
54985
54986         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
54987         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54988
54989 2005-05-10  Karl Berry  <karl@gnu.org>
54990
54991         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
54992         (from http://www.gnu.org/licenses).
54993         * doc/COPYING.LIB: also rename to COPYING.LESSER.
54994         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
54995         fdl.texi suffices.
54996
54997 2005-05-10  Karl Berry  <karl@gnu.org>
54998
54999         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
55000         (COPYING.DOC): remove.
55001
55002         * config/srclist-update: new FSF address.
55003
55004 2005-05-10  Derek Price  <derek@ximbiot.com>
55005
55006         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
55007         possible.
55008
55009 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55010             Bruno Haible  <bruno@clisp.org>
55011
55012         * modules/inet_ntop: New file.
55013         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55014         inet_ntop.
55015
55016 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55017             Bruno Haible  <bruno@clisp.org>
55018
55019         * m4/inet_ntop.m4: New file.
55020
55021 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55022             Bruno Haible  <bruno@clisp.org>
55023
55024         * lib/inet_ntop.h: New file.
55025         * lib/inet_ntop.c: New file, from glibc with modifications.
55026
55027 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
55028
55029         * modules/time_r (License): Change to LGPL.
55030         * modules/extensions (License): Change to LGPL.  Actually,
55031         the license is more permissive than that, but currently gnulib-tool
55032         doesn't know how to handle more-permissive licenses.
55033
55034         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
55035         Problem reported by Dave Love.
55036
55037 2005-05-08  Jim Meyering  <jim@meyering.net>
55038
55039         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
55040         blank.
55041
55042 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55043
55044         * modules/argmatch (Depends-on): Add stdbool.
55045         * modules/backupfile (Depends-on): Likewise.
55046         * modules/chdir-long (Depends-on): Likewise.
55047         * modules/closeout (Depends-on): Likewise.
55048         * modules/cycle-check (Depends-on): Likewise.
55049         * modules/dirname (Depends-on): Likewise.
55050         * modules/fnmatch (Depends-on): Likewise.
55051         * modules/fsusage (Depends-on): Likewise.
55052         * modules/fwriteerror (Depends-on): Likewise.
55053         * modules/getcwd (Depends-on): Likewise.
55054         * modules/getloadavg (Depends-on): Likewise.
55055         * modules/hard-locale (Depends-on): Likewise.
55056         * modules/makepath (Depends-on): Likewise.
55057         * modules/mountlist (Depends-on): Likewise.
55058         * modules/nanosleep (Depends-on): Likewise.
55059         * modules/posixtm (Depends-on): Likewise.
55060         * modules/quotearg (Depends-on): Likewise.
55061         * modules/readtokens (Depends-on): Likewise.
55062         * modules/readtokens0 (Depends-on): Likewise.
55063         * modules/readutmp (Depends-on): Likewise.
55064         * modules/save-cwd (Depends-on): Likewise.
55065         * modules/strftime (Depends-on): Likewise.
55066         * modules/userspec (Depends-on): Likewise.
55067         * modules/utimecmp (Depends-on): Likewise.
55068         * modules/xgetcwd (Depends-on): Likewise.
55069         * modules/xnanosleep (Depends-on): Likewise.
55070         * modules/xstrtod (Depends-on): Likewise.
55071         * modules/yesno (Depends-on): Likewise.
55072
55073 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
55074
55075         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
55076         needless checks.
55077
55078 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
55079
55080         Merge from coreutils.  Among other things,
55081         add bulletproofing for cases where stdin, stdout, or stderr are closed.
55082         * lib/fd-safer.c: New file.
55083         * lib/fcntl-safer.h, open-safer.c: Remove.
55084         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
55085         * lib/dup-safer.c: Include unistd-safer.h first.
55086         Don't include errno.h.
55087         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
55088         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
55089         * lib/file-type.c: Rely on file-type.h change.
55090         * lib/getloadavg.c: Include unistd-safer.h.
55091         (getloadavg): Use safer open.
55092         * lib/getusershell.c: Include "stdio-safer.h".
55093         (getusershell): Use safer fopen.
55094         * lib/long-options.c (long_options): Use NULL rather than 0.
55095         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
55096         'free'.
55097         * lib/modechange.c: Likewise.
55098         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
55099         (MODE_DONE): New constant.
55100         (struct mode_change): Remove 'next' member.
55101         (make_node_op_equals): New function; like the old one of the
55102         same name, except it allocates an array.
55103         (mode_compile, mode_create_from_ref): Use it.
55104         (mode_compile): Allocate result as an array, not a linked list.
55105         Parse octal string ourself, so that we catch mistakes like "+0".
55106         (mode_adjust): Arg is an array, not a linked list.
55107         * lib/modechange.c: Include stat-macros.h, xalloc.h.
55108         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
55109         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
55110         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
55111         Remove.  This is now stat-macros.h's job.
55112         (talloc): Remove.  All callers replaced by xalloc, so that
55113         our invokers don't have to worry about reporting memory failures.
55114         (make_node_op_equals): Remove.
55115         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
55116         New constants.
55117         (struct mode_change): Moved here from modechange.h.
55118         (mode_append_entry): Remove.
55119         (mode_compile): Remove MASKED_OPS arg, since it encouraged
55120         apps to have incorrect behavior.  Use simpler algorithm for head
55121         and tail.  Don't futz with umask; that's now the job of mode_adjust.
55122         Detect more invalid usages rather than having somewhat-random behavior.
55123         Don't insert an "a=" action, as that leads to incorrect behavior.
55124         (mode_compile, mode_create_from_ref): Return NULL on error instead
55125         of an enum, since now there's only one way to have an error.  All
55126         callers changed.
55127         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
55128         at the correct time.  Simplify calculation of "+u" and its ilk.
55129         Don't mishandle "+X".
55130         (mode_free): Remove "register" and localize decls.
55131         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
55132         (struct mode_change): Move to modechange.c; callers don't
55133         need to see this stuff.
55134         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
55135         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
55136         (mode_change, mode_adjust): Reflect the new signatures noted above.
55137         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
55138         that might redefine system include files.
55139         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
55140         (my_usleep): Use NULL rather than (void *) 0.
55141         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
55142         Use siginterrupt to specify that system calls should be interrupted.
55143         (rpl_nanosleep): Move initialization of suspended closer to call of
55144         my_usleep.
55145         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
55146         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
55147         (desirable_utmp_entry): New function.
55148         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
55149         using x2nrealloc, to simplify logic.
55150         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
55151         size calculation.  Do not assume utmp file is a regular file.
55152         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
55153         (READ_UTMP_CHECK_PIDS): New constant.
55154         * lib/save-cwd.c: Include unistd-safer.h.
55155         (save_cwd): Use fd_safer.
55156         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
55157         [!_LIBC] Include "stat-macros.h" instead.
55158         * lib/unistd-safer.h (fd_safer): New decl.
55159
55160 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
55161
55162         * modules/getloadavg (Depends-on): Add unistd-safer.
55163         * modules/getusershell (Depends-on): Add stdio-safer.
55164         * modules/lstat (Depends-on): Remove xalloc.
55165         * modules/mkstemp (Depends-on): Add stat-macros.
55166         * modules/modechange (Depends-on): Remove xstrtol.
55167         Add stat-macros, xalloc.
55168         * modules/save-cwd (Depends-on): Add unistd-safer.
55169         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
55170         * modules/unistd-safer (Files): Add lib/fd-safer.c
55171         (Makefile.am): Remove lib_SOURCES.
55172
55173         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
55174         Remove fcntl-safer; unistd-safer supersedes it.
55175
55176 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
55177
55178         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
55179         AC_HEADER_STAT.
55180         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
55181         (gl_PREREQ_CHOWN): Remove.
55182         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
55183         it.  Don't require AC_HEADER_STAT.
55184         (gl_PREREQ_LSTAT): Remove.
55185         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
55186         Don't require AC_HEADER_STAT.
55187         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
55188         (gl_PREREQ_RMDIR): Remove.
55189         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
55190         mention stat-macros.h or AC_HEADER_STAT, since we'll make
55191         the stat-macros module a prerequisite.
55192         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
55193         * m4/filemode.m4 (gl_FILEMODE): Likewise.
55194         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
55195         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
55196         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
55197         variable names.
55198         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
55199         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
55200         variable prefixes.
55201         * m4/fcntl-safer.m4: Remove.
55202         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
55203         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
55204         Invoke gl_PREREQ_FD_SAFER.
55205         (gl_PREREQ_FD_SAFER): New macro.
55206         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
55207         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
55208         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
55209         Remove duplicate call to AC_LIBOBJ(readutmp).
55210         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
55211
55212         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
55213         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
55214
55215 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
55216
55217         * MODULES.html.sh (Misc): Add byteswap.
55218
55219 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
55220
55221         * modules/getcwd (Depends-on): Add extensions.
55222         * modules/openat (Depends-on): Likewise.
55223
55224 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
55225
55226         * modules/byteswap: New file.
55227
55228 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
55229
55230         * m4/byteswap.m4: New file.
55231
55232 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
55233
55234         * lib/byteswap_.h: New file.
55235
55236 2005-04-25  Karl Berry  <karl@gnu.org>
55237
55238         * m4/gettext.m4: Update from GNU gettext 0.14.4.
55239
55240 2005-04-25  Albert Chin  <china@thewrittenword.com>
55241
55242         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
55243         Toolkit C bug.
55244
55245 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
55246
55247         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
55248         (func_ln_if_changed) Remove forcibly for no error message
55249         in case file does not exist.
55250
55251 2005-04-19  Simon Josefsson  <jas@extundo.com>
55252
55253         * gnulib-tool (Options): Make --symlink mean --symbolic.
55254
55255 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
55256
55257         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
55258
55259 2005-04-16  Simon Josefsson  <jas@extundo.com>
55260
55261         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
55262
55263 2005-04-15  Simon Josefsson  <jas@extundo.com>
55264
55265         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
55266
55267 2005-04-15  Simon Josefsson  <jas@extundo.com>
55268
55269         * gnulib-tool: Rename --symlink to --symbolic.
55270
55271 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
55272
55273         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
55274         symbolic links to files instead of copying/moving.  Add --aux-dir,
55275         specifying directory relative --dir where auxiliary build tools
55276         are placed.
55277
55278 2005-04-14  Bruno Haible  <bruno@clisp.org>
55279
55280         * modules/allocsa (License): Change to LGPL.
55281         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55282
55283 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
55284
55285         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
55286         that "UTC +1 second" continues to work.  Problem reported
55287         by Dmitry V. Levin.
55288         (relunit_snumber): New rule.
55289         (relunit): Use it.
55290
55291 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
55292
55293         * lib/getdate.y (universal_time_zone_table): New constant.
55294         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
55295         universal_time_zone_table.
55296         (lookup_zone): Prefer universal_time_zone_table to
55297         local_time_zone_table, so that "GMT" time stamps are allowed in
55298         London during the summer.  Problem reported by Ian Abbott.
55299
55300 2005-04-12  Jim Meyering  <jim@meyering.net>
55301
55302         * lib/human.c (humblock): Set *options even when returning due to
55303         xstrtoumax conversion failure.  Thanks to a used-uninitialized
55304         warning from gcc-4.
55305
55306 2005-04-09  Jim Meyering  <jim@meyering.net>
55307
55308         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
55309         -Wuninitialized: initialize tm0.tm_year.
55310
55311 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
55312
55313         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
55314         count, since there's no maximum.  All uses changed.
55315         Add member dsts_seen.
55316         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
55317         not being INT_MAX.
55318         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
55319         Use pc_rels_seen to decide whther a date is absolute.
55320
55321         * lib/getdate.y (number): Don't overwrite year.
55322         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
55323         check.
55324
55325 2005-04-02  Simon Josefsson  <jas@extundo.com>
55326
55327         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
55328         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
55329
55330 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
55331
55332         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
55333         where no absolute path name can be longer than PATH_MAX.
55334
55335 2005-03-27  Jim Meyering  <jim@meyering.net>
55336
55337         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
55338
55339 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
55340
55341         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
55342         "one's complement" -> "ones' complement" in comment, as per Knuth.
55343         "value of type" -> "type or expression" in comment.
55344         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
55345
55346 2005-03-26  Jim Meyering  <jim@meyering.net>
55347
55348         Comment nits.
55349         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
55350         Correct typos: s/or/of/.
55351
55352 2005-03-26  Jim Meyering  <jim@meyering.net>
55353
55354         * modules/check-include-files: Move to ../ and rename to...
55355         * check-module: ...this.
55356
55357 2005-03-25  Jim Meyering  <jim@meyering.net>
55358
55359         * modules/xvasprintf (Files): Add xalloc.h.
55360
55361 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
55362
55363         * modules/gettext (Files): config/config.rpath ->
55364         build-aux/config.rpath
55365         * modules/iconv (Files): Likewise.
55366         Problem reported by Oskar Liljeblad.
55367
55368 2005-03-23  Jim Meyering  <jim@meyering.net>
55369
55370         * modules/check-include-files: New script to check for
55371         missing dependencies, multiple includes, etc.
55372
55373         * modules/c-strtold (Depends-on): Add xalloc.
55374         * modules/c-strtod (Depends-on): Add xalloc.
55375         * modules/hash (Depends-on): Add xalloc.
55376         (Files): Remove lib/xalloc.h.
55377
55378         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
55379         * modules/userspec (Files): Add lib/inttostr.h.
55380
55381 2005-03-23  Jim Meyering  <jim@meyering.net>
55382
55383         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
55384
55385 2005-03-22  Jim Meyering  <jim@meyering.net>
55386
55387         * modules/stat-macros: New module.
55388         * modules/canonicalize, modules/euidaccess, modules/file-type,
55389         * modules/filemode, modules/lchown, modules/makepath,
55390         * modules/rmdir, modules/stat: Depend on new stat-macros module
55391         rather than listing lib/stat-macros.h manually.
55392         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
55393
55394 2005-03-22  Jim Meyering  <jim@meyering.net>
55395
55396         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
55397
55398 2005-03-22  Bruno Haible  <bruno@clisp.org>
55399
55400         * config/srclist.txt: Replace target directory 'config' with
55401         'build-aux'.
55402         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
55403         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
55404         ../build-aux/.
55405
55406 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
55407
55408         * modules/chdir-long (Depends-on): Add mempcpy.
55409
55410         * modules/acl, modules/backupfile, modules/c-strtod,
55411         modules/c-strtold, modules/canon-host, modules/canonicalize,
55412         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
55413         modules/exclude, modules/exitfail, modules/file-type,
55414         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
55415         modules/getdate, modules/getline, modules/getpagesize,
55416         modules/getpass, modules/getugroups, modules/group-member,
55417         modules/hard-locale, modules/hash, modules/human, modules/idcache,
55418         modules/inttostr, modules/long-options, modules/makepath,
55419         modules/md5, modules/memcasecmp, modules/memcoll,
55420         modules/modechange, modules/mountlist, modules/path-concat,
55421         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
55422         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
55423         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
55424         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
55425         modules/strftime, modules/strndup, modules/strverscmp,
55426         modules/timespec, modules/unlocked-io, modules/userspec,
55427         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
55428         modules/yesno:
55429         Remove lib_SOURCES line from Makefile.am section, as this is now
55430         done automatically by the corresponding Autoconf macro.
55431
55432 2005-03-21  Jim Meyering  <jim@meyering.net>
55433
55434         Changes imported from coreutils.
55435
55436         * lib/cycle-check.c: Don't include xalloc.h.
55437
55438         * lib/path-concat.c: Don't include assert.h.
55439         (path_concat): Remove assertion that would have triggered
55440         for ABASE starting with more than one slash.
55441         Reported by Andreas Schwab.
55442
55443         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
55444         properly when ABASE is an absolute file name.
55445         Correct the description of this function.
55446         Include <assert.h>.
55447         Add an assertion and a test driver.
55448         This fixes a bug introduced on 2004-07-02.
55449         Andreas Schwab reported the resulting failure of cp --parents:
55450         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
55451
55452 2005-03-21  Jim Meyering  <jim@meyering.net>
55453
55454         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
55455         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
55456
55457 2005-03-21  Jim Meyering  <jim@meyering.net>
55458         and  Paul Eggert  <eggert@cs.ucla.edu>
55459
55460         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
55461         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
55462         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
55463         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
55464         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
55465         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
55466         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
55467         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
55468         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
55469         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
55470         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
55471         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
55472         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
55473         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
55474         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
55475         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
55476         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
55477         for these modules.
55478
55479 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
55480
55481         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
55482         (which shouldn't happen), generate nothing instead of returning 0
55483         immediately, so that nstrftime (NULL, ...) doesn't return 0.
55484
55485 2005-03-16  Bruno Haible  <bruno@clisp.org>
55486
55487         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
55488         HAVE_LONGLONG_64BIT.
55489
55490 2005-03-16  Bruno Haible  <bruno@clisp.org>
55491
55492         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
55493         HAVE_LONGLONG_64BIT.
55494
55495 2005-03-16  Bruno Haible  <bruno@clisp.org>
55496
55497         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
55498         HAVE_LONGLONG_64BIT.
55499
55500 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
55501
55502         * lib/strftime.c (my_strftime): Prepend space to format so that we can
55503         reliably distinguish strftime failure from empty output on POSIX
55504         hosts.
55505
55506 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
55507
55508         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
55509         (iconv_string): Don't guess a size-zero buffer, as that might cause
55510         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
55511         result would be 'too large', where 'too large' is (heuristically)
55512         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
55513         overflow concerns.  This will prevent some unwanted malloc failures
55514         when the inputs are very large.
55515
55516 2005-03-15  Karl Berry  <karl@gnu.org>
55517
55518         * config/srclist.txt (config.rpath): from gettext.
55519         * config/config.rpath: update.
55520
55521 2005-03-15  Bruno Haible  <bruno@clisp.org>
55522
55523         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
55524         to 'negate'.
55525
55526         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
55527         variable.
55528
55529         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
55530         results.
55531
55532 2005-03-14  Simon Josefsson  <jas@extundo.com>
55533
55534         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
55535         <fx@gnu.org>.
55536
55537 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
55538
55539         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
55540         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
55541         intprops.h.
55542         * lib/strtol.c: Likewise.
55543
55544 2005-03-14  Jim Meyering  <jim@meyering.net>
55545
55546         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
55547         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
55548         to be nonzero so that we (and caller) can detect the difference
55549         between a valid zero-length expansion and an error return, even
55550         when the underlying strftime fails before writing anything into
55551         that location.
55552
55553 2005-03-14  Bruno Haible  <bruno@clisp.org>
55554
55555         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
55556         Update from GNU gettext 0.14.3.
55557
55558 2005-03-10  Jim Meyering  <jim@meyering.net>
55559
55560         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
55561
55562 2005-03-10  Jim Meyering  <jim@meyering.net>
55563
55564         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
55565         so that this module works on systems without fchdir.
55566
55567 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
55568
55569         Factor int-properties macros into a single file, except for
55570         glibc-related files.
55571         * lib/intprops.h: New file.
55572         * lib/getloadavg.c: Include it instead of limits.h.
55573         (INT_STRLEN_BOUND): Remove.
55574         * lib/human.c: Include intprops.h.
55575         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
55576         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
55577         302/1000.
55578         * lib/inttostr.h: Include intprops.h instead of limits.h.
55579         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
55580         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
55581         for consistency with intprops.h.
55582         (time_t_is_integer, twos_complement_arithmetic): Use them.
55583         * lib/sig2str.h: Include <signal.h>, intprops.h.
55584         (INT_STRLEN_BOUND): Remove.
55585         * lib/strftime.c (TYPE_SIGNED): Remove.
55586         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
55587         * lib/strtol.c: Adjust comments to match intprops.h.
55588         * lib/userspec.c: Include intprops.h.
55589         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
55590         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
55591         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
55592         instead of rolling our own expressions.
55593         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
55594
55595         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
55596         instead of int.
55597         (my_strftime): Do not mishandle years close to INT_MAX, by doing
55598         the right thing even if adding 1900 would overflow.  Similarly
55599         for tm_mon + 1 and tm_yday + 1.
55600         Make %Y always equivalent to %C%y, and similarly for %G and %g.
55601         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
55602         (DO_SIGNED_NUMBER): New macro.
55603         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
55604
55605 2005-03-07  Bruno Haible  <bruno@clisp.org>
55606
55607         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
55608
55609 2005-03-07  Bruno Haible  <bruno@clisp.org>
55610
55611         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
55612
55613 2005-03-04  Derek R. Price  <derek@ximbiot.com>
55614
55615         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
55616         (func_import): Only replace files via --import when they have actually
55617         changed.
55618
55619 2005-03-03  Derek R. Price  <derek@ximbiot.com>
55620
55621         * m4/mmap-anon.m4: New file.
55622         * m4/pagealign_alloc.m4: New file.
55623
55624 2005-03-03  Derek R. Price  <derek@ximbiot.com>
55625             Bruno Haible  <bruno@clisp.org>
55626
55627         * modules/pagealign_alloc: New file.
55628         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
55629
55630 2005-03-03  Derek R. Price  <derek@ximbiot.com>
55631             Bruno Haible  <bruno@clisp.org>
55632
55633         * lib/pagealign_alloc.h: New file.
55634         * lib/pagealign_alloc.c: New file.
55635
55636 2005-03-03  Bruno Haible  <bruno@clisp.org>
55637
55638         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
55639         Use an all-permissive copyright notice, recommended by RMS.
55640
55641 2005-03-02  Bruno Haible  <bruno@clisp.org>
55642
55643         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
55644         of AIX, the replacement has to be done only after <string.h> is
55645         included, therefore not in config.h. stpncpy.h does the replacement,
55646         and stpncpy.c uses it.
55647
55648 2005-03-02  Bruno Haible  <bruno@clisp.org>
55649
55650         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
55651         stpncpy.c uses it.
55652
55653 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55654
55655         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
55656         The workaround isn't strictly needed for POSIX conformance, and
55657         it's too much of a pain to configure and maintain.  We'll ask
55658         people to fix their kernels instead.
55659         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
55660         (NANOSLEEP_BUG_WORKAROUND): Remove.
55661         (xnanosleep): Remove the workaround.
55662
55663 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55664
55665         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
55666         Reported by Derek Price.
55667         (Include): Add "timespec.h".
55668
55669         * modules/xnanosleep (Depends-on): Remove gethrxtime.
55670
55671 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55672
55673         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
55674         to detect nanosleep bug.
55675
55676 2005-03-01  Bruno Haible  <bruno@clisp.org>
55677
55678         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
55679
55680 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
55681
55682         * modules/gethrxtime: New file.
55683         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
55684         (Depends-on): Add gethrxtime.
55685         (configure.ac): Add gl_XNANOSLEEP.
55686         (Makefile.am): Remove lib_SOURCES line.
55687
55688 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
55689
55690         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
55691         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
55692
55693 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
55694
55695         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
55696         * lib/timespec.h (gettime): Return void, since it always
55697         succeeds now.  All uses changed.
55698         * lib/gettime.c (gettime) Likewise.
55699         [HAVE_NANOTIME]: Prefer nanotime.
55700         Assume gettimeofday succeeds, as POSIX requires.
55701         Assime time () succeeds, since other code already does.
55702         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
55703         (timespec_subtract): Remove.
55704         (NANOSLEEP_BUG_WORKAROUND): New constant.
55705         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
55706         things considerably.  Use it only on GNU/Linux hosts, since the
55707         workaround shouldn't be needed elsewhere.
55708
55709 2005-02-24  Bruno Haible  <bruno@clisp.org>
55710
55711         * modules/gettext (Files): Add m4/glibc2.m4.
55712
55713 2005-02-24  Bruno Haible  <bruno@clisp.org>
55714
55715         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
55716         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
55717         * m4/progtest.m4:
55718         Update from GNU gettext 0.14.2.
55719         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
55720
55721 2005-02-24  Bruno Haible  <bruno@clisp.org>
55722
55723         * lib/localcharset.c: Update from GNU gettext 0.14.2.
55724         * lib/config.charset: Update from GNU gettext 0.14.2.
55725
55726 2005-02-24  Bruno Haible  <bruno@clisp.org>
55727
55728         * lib/gettext.h: Update from GNU gettext 0.14.2.
55729
55730 2005-02-23  Simon Josefsson  <jas@extundo.com>
55731
55732         * m4/iconvme.m4: New file.
55733
55734 2005-02-23  Jim Meyering  <jim@meyering.net>
55735
55736         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
55737         change.
55738         Thanks to Bruno Haible for catching it.
55739
55740 2005-02-22  Simon Josefsson  <jas@extundo.com>
55741
55742         * modules/iconvme: New file.
55743
55744         * MODULES.html.sh: Add iconvme.
55745
55746 2005-02-22  Simon Josefsson  <jas@extundo.com>
55747
55748         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
55749
55750 2005-02-22  Simon Josefsson  <jas@extundo.com>
55751
55752         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
55753
55754 2005-02-22  Jim Meyering  <jim@meyering.net>
55755
55756         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
55757         s/ifndef/ifdef/.
55758
55759 2005-02-20  Neil Conway  <neilc@samurai.com>
55760
55761         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
55762         returned by OSX/Darwin if the specified buffer is not large
55763         enough for the hostname.
55764
55765 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55766
55767         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
55768         pass it to _help, otherwise the latter coredumps trying to
55769         dereference state.root_argp.
55770
55771 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
55772
55773         * modules/chdir-long (Depends-on): Add memrchr.
55774         * modules/memrchr (Files): Add lib/memrchr.h.
55775         (Include): "memrchr.h".
55776
55777 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
55778
55779         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
55780
55781 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
55782
55783         * lib/memrchr.h: New file.
55784         * lib/chdir-long.c: Include it.
55785         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
55786         Don't bother including stddef.h.
55787
55788 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
55789
55790         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
55791         inclusion.
55792         Include <sys/types.h>, for dev_t.
55793         (ME_DUMMY, ME_REMOTE): Move from here....
55794         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
55795         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
55796         Dmitry V. Levin.
55797         Include mountlist.h first, to test the interface.
55798
55799 2005-01-29  Bruno Haible  <bruno@clisp.org>
55800
55801         * lib/progname.c (program_name): Initialize.
55802         Needed when linking statically on MacOS X.
55803
55804 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
55805
55806         Sync from coreutils.
55807         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
55808         (Depends-on): Add c-strtod.
55809         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
55810
55811 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
55812
55813         Sync from coreutils.
55814         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
55815
55816         Remove files that are specific to coreutils.
55817         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
55818
55819 2005-01-28  Bruno Haible  <bruno@clisp.org>
55820
55821         * modules/javacomp: New file.
55822         * MODULES.html.sh (Java): Add javacomp.
55823
55824 2005-01-28  Bruno Haible  <bruno@clisp.org>
55825
55826         * m4/javacomp.m4: New file, from GNU gettext.
55827
55828 2005-01-28  Bruno Haible  <bruno@clisp.org>
55829
55830         * lib/javacomp.sh.in: New file, from GNU gettext.
55831         * lib/javacomp.h: New file, from GNU gettext.
55832         * lib/javacomp.c: New file, from GNU gettext.
55833
55834 2005-01-26  Simon Josefsson  <jas@extundo.com>
55835
55836         * lib/gai_strerror.c: Use GPL in header.
55837
55838 2005-01-26  Bruno Haible  <bruno@clisp.org>
55839
55840         * modules/javaexec: New file.
55841         * MODULES.html.sh (Java): Add javaexec.
55842
55843 2005-01-26  Bruno Haible  <bruno@clisp.org>
55844
55845         * m4/javaexec.m4: New file, from GNU gettext.
55846
55847 2005-01-26  Bruno Haible  <bruno@clisp.org>
55848
55849         * lib/javaexec.sh.in: New file, from GNU gettext.
55850         * lib/javaexec.h: New file, from GNU gettext.
55851         * lib/javaexec.c: New file, from GNU gettext.
55852
55853 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55854
55855         * modules/lchown (Depends-on): Remove lchown.h
55856
55857 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55858
55859         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
55860         must be defined if the header file was not found, in order
55861         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
55862
55863 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55864
55865         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
55866         initializers for struct pentry_state.
55867         (__argp_error): Check return value of __asprintf
55868         (__argp_failure): Translate error message
55869
55870         * lib/argp-parse.c: Removed braces around the expansion of N_()
55871
55872 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55873
55874         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
55875         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
55876         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
55877         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
55878         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
55879         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
55880         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
55881         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
55882         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
55883         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
55884         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
55885         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
55886         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
55887         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
55888         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
55889         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
55890         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
55891         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
55892         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
55893         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
55894         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
55895         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
55896         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
55897         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
55898         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
55899         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
55900         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
55901         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
55902         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
55903         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
55904         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
55905         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
55906         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
55907         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
55908         xstrtol.m4, xstrtoumax.m4, yesno.m4:
55909         Use an all-permissive copyright notice, recommended by RMS.
55910
55911 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
55912
55913         * modules/chdir-long (Depends-on): Remove mempcpy.
55914
55915 2005-01-21  Jim Meyering  <jim@meyering.net>
55916
55917         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
55918         same value as for Solaris 9.
55919
55920         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
55921         component length.  This included changing the parameter to be
55922         of type `char *' rather than `char const *'.
55923         * lib/chdir-long.h (chdir_long): Update prototype.
55924
55925         * lib/openat.c (fdopendir, fstatat): New functions.
55926         * lib/openat.h: Include headers required for use of DIR and struct
55927         stat.
55928         [AT_SYMLINK_NOFOLLOW]: Define.
55929         (fdopendir, fstatat): Add prototypes.
55930
55931 2005-01-21  Bruno Haible  <bruno@clisp.org>
55932
55933         * modules/classpath: New file.
55934         * MODULES.html.sh (Java): Add classpath.
55935
55936 2005-01-21  Bruno Haible  <bruno@clisp.org>
55937
55938         * lib/classpath.h: New file, from GNU gettext.
55939         * lib/classpath.c: New file, from GNU gettext.
55940
55941 2005-01-20  Simon Josefsson  <jas@extundo.com>
55942
55943         * modules/version-etc-fsf: New file.
55944
55945 2005-01-20  Simon Josefsson  <jas@extundo.com>
55946
55947         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
55948         * lib/version-etc.c: Remove version_etc_copyright.
55949         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
55950         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
55951
55952 2005-01-20  Simon Josefsson  <jas@extundo.com>
55953
55954         * lib/base64.h (isbase64): Add.
55955
55956         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
55957         using a unsigned prototype, don't inline.
55958         (base64_decode): Use it.
55959
55960 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
55961
55962         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
55963         it.
55964
55965 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
55966
55967         * lib/save-cwd.c (save_cwd): Remove code to support the case
55968         where fchdir is missing or flaky.
55969
55970 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
55971
55972         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
55973
55974 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
55975
55976         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
55977         AC_LIBSOURCES now does this.
55978         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
55979         with new ullong_max module.
55980
55981 2005-01-19  Bruno Haible  <bruno@clisp.org>
55982
55983         * modules/sh-quote: New file.
55984         * MODULES.html.sh (Executing programs): Add sh-quote.
55985
55986 2005-01-19  Bruno Haible  <bruno@clisp.org>
55987
55988         * lib/sh-quote.h: New file, from GNU gettext.
55989         * lib/sh-quote.c: New file, from GNU gettext.
55990
55991 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
55992
55993         Merge from coreutils.
55994         * m4/ullong_max.m4: New file.
55995         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
55996         (gl_MACROS): Assume localeconv exists.
55997
55998 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
55999
56000         Merge changes from coreutils, as described below in several
56001         changelogs dated today.
56002
56003         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
56004         (O_DIRECTORY): Remove; not needed here, since "." must be
56005         a directory.  All uses removed.
56006         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
56007         universal on Suns, and we also need to test for IRIX.
56008         Revamp code to use 'if' rather than '#if'.
56009         Avoid unnecessary comparison of cwd->desc to 0.
56010
56011         * lib/utimens.c (futimens): Robustify the previous patch, by checking
56012         for known valid error numbers rather than observed invalid ones.
56013
56014 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56015
56016         * modules/ullong_max: New file.
56017
56018         * modules/chdir-long, modules/openat: New files.
56019         * modules/save-cwd (Depends-on): Depend on chdir-long.
56020         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
56021
56022 2005-01-18  Jim Meyering  <jim@meyering.net>
56023
56024         Merge from coreutils.
56025         * m4/chdir-long.m4, m4/openat.m4: New files.
56026         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
56027         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
56028         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
56029         is sane and DOES follow symlinks.  Besides, testing 20 different
56030         systems found no broken chown implementations.
56031         Prompted by a change in rsync's copy of this macro.
56032         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
56033
56034         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
56035
56036         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
56037         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
56038         NULL-means-set-to-current-time semantics.
56039         Remove temporary file immediately, rather than waiting
56040         for configure's at-exit trap code to do it.
56041
56042 2005-01-18  Jim Meyering  <jim@meyering.net>
56043
56044         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56045
56046         * lib/utimens.c (futimens): Account for the fact that futimes
56047         can also fail with errno == ENOSYS or errno == ENOENT.
56048         Patch from Dmitry V. Levin.
56049
56050         Change the name of the robust chdir function from chdir to chdir_long.
56051         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
56052         (restore_cwd): Use chdir_long, not chdir.
56053         * lib/chdir-long.c: Renamed from chdir.c.
56054         * lib/chdir-long.h: Renamed from chdir.h.
56055         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
56056         Hurd.
56057
56058 2005-01-18  Bruno Haible  <bruno@clisp.org>
56059
56060         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
56061         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
56062         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
56063         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
56064         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
56065         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
56066         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
56067         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
56068         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
56069         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
56070         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
56071         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
56072         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
56073         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
56074         Use an all-permissive copyright notice, recommended by RMS.
56075
56076 2005-01-18  Bob Proulx  <bob@proulx.com>
56077
56078         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
56079         simplify offsetof() macro construct to avoid compile failure with
56080         native HP-UX 11.0 ANSI C compiler.
56081
56082 2005-01-17  Bruno Haible  <bruno@clisp.org>
56083
56084         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
56085         redundant because stpncpy.m4 takes care of it.
56086
56087 2005-01-17  Bruno Haible  <bruno@clisp.org>
56088
56089         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
56090
56091 2005-01-17  Bruno Haible  <bruno@clisp.org>
56092
56093         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
56094         used.
56095
56096 2005-01-17  Bruno Haible  <bruno@clisp.org>
56097
56098         * lib/fwriteerror.h (fwriteerror): Change specification to include
56099         fclose.
56100         * lib/fwriteerror.c: Include <stdbool.h>.
56101         (fwriteerror): At the end, close the file stream. Record whether
56102         stdout was already closed.
56103
56104 2005-01-17  Bruno Haible  <bruno@clisp.org>
56105
56106         * lib/execute.c (environ): Declare if needed.
56107         * lib/pipe.c (environ): Likewise.
56108         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
56109
56110 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56111
56112         * modules/argp: Depend on vsnprintf
56113
56114 2005-01-10  Jim Meyering  <jim@meyering.net>
56115
56116         * modules/closeout (Depends-on): Add atexit.
56117
56118 2005-01-06  Bruno Haible  <bruno@clisp.org>
56119
56120         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
56121
56122 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56123
56124         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
56125         definitions to be after all include files, to avoid collisions.
56126         Problem reported by Bob Proulx.
56127
56128 2005-01-04  Jim Meyering  <jim@meyering.net>
56129
56130         Changes imported from coreutils.
56131         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
56132         as the mkstemp template, use a temporary directory and an
56133         8.3-friendly template to avoid trouble on systems like DJGPP.
56134         Reported by Juan M. Guerrero via Stepan Kasal.
56135         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
56136         close. Remove the temporary directory right away, rather than waiting
56137         for configure's at-exit trap code to do it.
56138         Suggestion from Stepan Kasal.
56139
56140 2005-01-01  Simon Josefsson  <jas@extundo.com>
56141
56142         * gnulib-tool: Print #include directives when --import'ing.
56143
56144 2004-12-28  Simon Josefsson  <jas@extundo.com>
56145
56146         * tests/test-base64.c: Include required header files.  Remove
56147         unused variables.
56148
56149 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56150
56151         * modules/error (Depends-on): Remove gettext.
56152
56153 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56154
56155         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
56156         not needed.  This removes a dependency on the gettext module.
56157         [defined _LIBC]: Do not include <libintl.h>; not needed.
56158
56159 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
56160
56161         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
56162         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
56163
56164 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
56165
56166         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
56167         HAVE_DECL_STRTOLD.
56168
56169 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56170
56171         * modules/getdate (Depends-on): Remove alloca-opt.
56172
56173 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56174
56175         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
56176
56177 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56178
56179         * lib/argp-parse.c: Include <stddef.h>.
56180         (alignof, alignto): New macros.
56181         (parser_init): Don't assume that void * is aligned sufficiently
56182         for struct option.
56183
56184         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
56185         need to extend the stack.
56186         (YYINITDEPTH): New macro, so that the initial stack isn't overly
56187         large.
56188
56189 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56190
56191         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
56192
56193 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
56194
56195         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
56196         (2004-10-24) change.  Apparently this was a false alarm.
56197
56198         * modules/getdate: Depend on alloca-opt, not alloca.
56199
56200 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
56201
56202         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
56203         Remove now-obsolete comment about AIX.
56204         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
56205         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
56206         (YYMAXDEPTH): New macro.
56207
56208 2004-12-18  Simon Josefsson  <jas@extundo.com>
56209
56210         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
56211
56212 2004-12-18  Bruno Haible  <bruno@clisp.org>
56213
56214         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
56215
56216 2004-12-18  Bruno Haible  <bruno@clisp.org>
56217
56218         * lib/fatal-signal.c (fatal_signals): Make non-const.
56219         (init_fatal_signals): New function.
56220         (uninstall_handlers, install_handlers): Ignore signals that were set to
56221         SIG_IGN.
56222         (at_fatal_signal): Call init_fatal_signals.
56223         (init_fatal_signal_set): Likewise. Ignore signals that were set to
56224         SIG_IGN.
56225         Reported by Paul Eggert.
56226
56227 2004-12-18  Bruno Haible  <bruno@clisp.org>
56228
56229         * doc/alloca.texi: New file.
56230         * doc/alloca-opt.texi: New file.
56231
56232 2004-12-17  Jim Meyering  <jim@meyering.net>
56233
56234         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
56235         Otherwise, install-sh could exit with improper exit status when
56236         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
56237
56238 2004-12-16  Simon Josefsson  <jas@extundo.com>
56239
56240         * tests/test-base64.c: Add license.
56241
56242 2004-12-15  Stepan Kasal  <address@hidden>
56243
56244         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
56245
56246 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
56247
56248         * modules/getcwd (Files): Add m4/d-ino.m4.
56249         Suggested by Mark D. Baushke.
56250
56251 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
56252
56253         * lib/getdate.y (textint): New member "negative".
56254         (time_zone_hhmm): New function.
56255         Expect 14 shift-reduce conflicts, not 13.
56256         (o_colon_minutes): New rule.
56257         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
56258         (yylex): Set the "negative" member of signed numbers.
56259
56260 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
56261
56262         * doc/getdate.texi (Time of day items, Time zone items):
56263         Describe new formats +00:00, UTC+00:00.
56264
56265 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
56266
56267         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
56268         spurious "-l"s.  Problem reported by Stepan Kasal.
56269
56270 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
56271
56272         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
56273         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
56274
56275 2004-12-04  Simon Josefsson  <jas@extundo.com>
56276
56277         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
56278         Vandoorselaere <yoann@prelude-ids.org>.
56279
56280 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
56281
56282         Changes imported from coreutils.
56283         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
56284         exist.
56285         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
56286
56287 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
56288
56289         Changes imported from coreutils.
56290         * lib/hard-locale.c: Assume <locale.h> exists.
56291         Include "strdup.h".
56292         (GLIBC_VERSION): New macro.
56293         (hard_locale): Assume setlocale exists.
56294         Rewrite to avoid #ifdef.
56295         Use strdup rather than malloc + strcpy.
56296         * lib/human.c: Assume <locale.h> exists.
56297         (human_readable): Assume localeconv exists.
56298
56299 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
56300
56301         * modules/hard-locale (Depends-on): Add strdup.
56302
56303 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
56304
56305         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
56306         convert T2, not T.  (Imported from libc.)
56307
56308 2004-11-30  Simon Josefsson  <jas@extundo.com>
56309
56310         * modules/restrict (License): Change to LGPL.
56311
56312 2004-11-30  Simon Josefsson  <jas@extundo.com>
56313
56314         * m4/restrict.m4: Add copyright and copying conditions.
56315
56316 2004-11-30  Simon Josefsson  <jas@extundo.com>
56317
56318         * m4/base64.m4: New file.
56319
56320 2004-11-30  Simon Josefsson  <jas@extundo.com>
56321
56322         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
56323         base64.
56324
56325         * tests/test-base64.c: New file.
56326
56327         * modules/base64: New file.
56328
56329 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
56330
56331         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
56332         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
56333
56334         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
56335
56336 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
56337
56338         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
56339         (__getcwd.c): Don't restore errno; glibc doesn't.
56340         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
56341         first, falling back to our code only if its results look suspicious.
56342         Ensure that the resulting buffer is only as large as necessary.
56343
56344         * lib/readutmp.c: Include readutmp.h first.
56345         Include <errno.h>, since readutmp.h no longer does that.
56346         * lib/readutmp.h: Don't include <errno.h>,
56347         <sys/param.h>, <time.h>; not needed to establish interface.
56348         (errno): Remove decl.
56349         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
56350         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
56351         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
56352
56353 2004-11-28  Simon Josefsson  <jas@extundo.com>
56354
56355         * lib/base64.h, base64.c: New file.
56356
56357 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
56358
56359         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
56360
56361 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
56362
56363         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
56364         (Depends-on): Remove pathmax, same.  Add mempcpy.
56365         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
56366         (Makefile.am): Append getcwd.h to lib_SOURCES.
56367         (Include): Add getcwd.h.
56368         (Maintainer): Change from Jim Meyering to "all, glibc",
56369         since getdate now uses intended-for-glibc code.
56370         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
56371         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
56372
56373 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
56374
56375         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
56376         HP's ANSI C compiler.
56377         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
56378         Declaring int functions causes warnings on some modern systems and
56379         shouldn't be needed to compile on ancient ones.
56380         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
56381         defined.
56382
56383         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
56384         with the following changes.
56385         (__set_errno): Parenthesize properly.
56386         Include <stdbool.h>.
56387         (MIN, MAX, MATCHING_INO): New macros.
56388         (__getcwd): Define with prototype, not K&R form.
56389         Use heuristics to allocate default buffer on stack if possible.
56390         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
56391         behavior, and to avoid the PATH_MAX limit when computing
56392         ../../../../...
56393         Use MATCHING_INO to compare inode number to file.
56394         Check for arithmetic overflow in size calculations.
56395         Fix bug in reallocation of dot array that caused getcwd to fail
56396         on directories nested deeper than 75.
56397         Be more careful about saving errno on error.
56398         Do not use realloc; use only free+malloc, as this is a bit
56399         more flexible and avoids a needless copy operation.
56400         Do not inspect st_dev and st_ino for symbolic links; POSIX
56401         doesn't specify the latter.
56402         Check for closedir errors.
56403         Avoid needless casts.
56404         Use "#ifdef weak_alias" around weak_alias, to be like other
56405         glibc code.
56406         The following changes to getcwd.c have effect only when used in
56407         gnulib; they have no effect inside glibc proper.
56408         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
56409         as alloca isn't used.
56410         (alloca, __alloca): Likewise.
56411         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
56412         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56413         unconditionally, as gnulib assumes C89 or better.
56414         Do not include <sys/param.h>.
56415         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
56416         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
56417         better.
56418         (NULL) [!defined NULL]: Remove; we assume C89 or better.
56419         Include <dirent.h> in a way that is compatible with modern Autoconf.
56420         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
56421         New macros, if not already defined.
56422         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
56423         Use "_LIBC", not "defined _LIBC", for consistency.
56424         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
56425         a mempcpy module.
56426         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
56427         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
56428         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
56429         credit only to Jim Meyering and adjust the copyright dates.
56430         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
56431         <stdlib.h>, <unistd.h>, "pathmax.h".
56432         Instead, include "xgetcwd.h" (first) and "getcwd.h".
56433         (INITIAL_BUFFER_SIZE): Remove.
56434         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
56435
56436 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
56437
56438         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
56439         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
56440         Use the _ONCE methods, for efficiency.
56441         Check for fcntl.h.  In test program, include <errno.h>
56442         and <fcntl.h> if available.  Remove old K&R cruft from
56443         test program.  Check for common errors in GNU/Linux,
56444         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
56445         don't do AC_LIBOBJ, as that's getcwd.m4's job.
56446         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
56447         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
56448         name accordingly.
56449         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
56450         accommodate new getcwd.c.
56451         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
56452         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
56453         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
56454         that's all we need now.
56455
56456 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56457
56458         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
56459         argp-parse.c depends on getopt internals, that means we should
56460         always use our getopt, to be on the safe side.
56461         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
56462         order not to spoil the result of an eventual previous invocation
56463         of gl_GETOPT_SUBSTITUTE.
56464
56465 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56466
56467         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
56468         redefinition warnings. To avoid them, include the defines
56469         in `#if !defined __need_getopt ... #endif'. The only place
56470         where __getopt_argv_const is used is in definitions
56471         of getopt_long and getopt_long_only below, which are as well
56472         protected by `#ifndef __need_getopt'.
56473         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
56474         __need_getopt after including <stdio.h> and <unistd.h> These
56475         headers might have defined it.
56476
56477 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
56478
56479         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
56480
56481 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
56482
56483         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
56484         (futimens): New function, which uses futimes if available.
56485         (futimens, utimens): Support timespec==NULL, with same semantics
56486         as utime and utimens.
56487         * lib/utimens.h (futimens): New decl.
56488
56489 2004-11-23  Jim Meyering  <jim@meyering.net>
56490
56491         * lib/getopt_.h: Remove trailing blanks.
56492
56493 2004-11-23  Jim Meyering  <jim@meyering.net>
56494
56495         * lib/__fpending.c: Add comment.
56496
56497 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
56498
56499         * modules/canonicalize (Depends-on): Add xreadlink.
56500         Problem reported by James Youngman.
56501
56502 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56503
56504         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
56505         New macros.
56506         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
56507         optopt): Use them instead of invoking ## directly; otherwise, the
56508         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
56509
56510 2004-11-19  Bruno Haible  <bruno@clisp.org>
56511
56512         * lib/strtok_r.c: Move comments from here...
56513         * lib/strtok_r.h: ... to here.
56514
56515 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
56516
56517         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
56518         implementations that mishandle size_t overflow.
56519
56520 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
56521
56522         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
56523         might fail.  Problem reported by Yoann Vandoorselaere.
56524         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
56525         implementations that mishandle size_t overflow.
56526
56527 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56528
56529         * modules/canon-host (Depends-on): Add strdup.
56530
56531 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56532
56533         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
56534
56535 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56536
56537         * lib/canon-host.c: Include "strdup.h".
56538         (canon_host): Use getaddrinfo if available, so that IPv6 works.
56539         Use strdup instead of malloc/strcpy to duplicate strings.
56540
56541         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
56542         (human_space_before_unit): New constant.
56543         * lib/human.c (human_readable): Support it.
56544
56545         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
56546         (xgetcwd): Set errno correctly when failing.
56547         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
56548         the failure is actually due to a PATH_MAX problem.
56549
56550         Further getopt changes to make it more likely that glibc will
56551         buy the changes back.
56552         * lib/getopt.c (POSIXLY_CORRECT): New constant.
56553         (getopt): Use it, so to preserve glibc semantic
56554         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
56555         when compiling for libc.
56556         * lib/getopt_.h (__getopt_argv_const): Bring it back.
56557         (getopt_long, getopt_long_only): Use it.
56558
56559         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
56560         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
56561         (getopt): Argv is now char * const *, as per standard.
56562         (_getopt_internal_r, _getopt_internal): Argv is now char **,
56563         not char *__getopt_argv_const *.
56564         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
56565         _getopt_long_only_r): Likewise.
56566         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
56567         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
56568         _getopt_long_r, _getopt_long_only_r): Likewise.
56569         * lib/getopt_.h (__getopt_argv_const): Remove.
56570         (getopt): Argv is now char * const *, as per standard.
56571
56572         * lib/getdate.y (tORDINAL): New token.
56573         (day, relunit): Allow it for relative times.
56574         (relative_time_table): Use tORDINAL for ordinals.
56575
56576 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56577
56578         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
56579         Document that "second" isn't allowed as an ordinal number.
56580
56581 2004-11-16  Jim Meyering  <jim@meyering.net>
56582
56583         * modules/closeout (Depends-on): Add fpending.
56584
56585 2004-11-15  Jim Meyering  <jim@meyering.net>
56586
56587         * lib/closeout.c: Include "__fpending.h" once again.
56588         Include <stdbool.h>.
56589         (close_stdout): Don't fail just because stdout was closed initially,
56590         since some programs don't write to stdout in the normal course of
56591         operation (other than --version and --help), and we don't want this
56592         function to make e.g. `touch file >&-' fail.
56593         But do fail if it was closed and someone has tried to write to it.
56594         E.g., `printf foo >&-' must fail.
56595
56596 2004-11-13  Jim Meyering  <jim@meyering.net>
56597
56598         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
56599
56600 2004-11-12  Simon Josefsson  <jas@extundo.com>
56601
56602         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
56603         small doc fix is still pending.
56604
56605 2004-11-11  Simon Josefsson  <jas@extundo.com>
56606
56607         * modules/strtok_r: New file.
56608
56609         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56610         strtok_r.
56611
56612 2004-11-11  Simon Josefsson  <jas@extundo.com>
56613
56614         * m4/strtok_r.m4: New file.
56615
56616         * m4/getopt.m4: Replace opterr.
56617
56618 2004-11-11  Simon Josefsson  <jas@extundo.com>
56619
56620         * lib/strtok_r.h, strtok_r.c: New file.
56621
56622 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
56623
56624         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
56625         of replacing opterr, getopt, etc.  This should handle the
56626         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
56627
56628 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
56629
56630         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
56631         we can stop lying to compilers about the constness of argv when we
56632         are compiled outside glibc.
56633         (getopt, getopt_long, getopt_long_only): Use it.
56634         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
56635         _getopt_internal, getopt): Likewise.
56636         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
56637         _getopt_long_only_r): Likewise.
56638         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
56639         _getopt_long_r, _getopt_long_only_r): Likewise.
56640
56641         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
56642         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
56643         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
56644         the other external symbols.
56645         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
56646         declaration, since the above renaming now works around collisions.
56647
56648 2004-11-11  Jim Meyering  <jim@meyering.net>
56649
56650         * lib/linebreak.c: Remove trailing blanks.
56651         * lib/alloca_.h: Likewise.
56652         * lib/acosl.c: Likewise.
56653         * lib/euidaccess.c: Likewise.
56654         * lib/allocsa.h: Likewise.
56655
56656 2004-11-10  Simon Josefsson  <jas@extundo.com>
56657
56658         * m4/getaddrinfo.m4: New file.
56659
56660 2004-11-10  Simon Josefsson  <jas@extundo.com>
56661
56662         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
56663
56664 2004-11-10  Simon Josefsson  <jas@extundo.com>
56665
56666         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56667         getaddrinfo.
56668
56669         * modules/getaddrinfo: New file.
56670
56671 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56672
56673         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
56674
56675 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56676
56677         * lib/mktime.c (SHR): New macro, which is a portable
56678         substitute for >> that should work even on Crays.
56679         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
56680         Problem reported by Mark D. Baushke in
56681         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
56682         * lib/getdate.y (SHR): Likewise.
56683         (tm_diff): Use it.
56684         * lib/strftime.c (SHR): Likewise.
56685         (tm_diff): Use it.
56686         * lib/quotearg.c (struct quoting_options): Use unsigned int for
56687         quote_these_too, so that right shifts are well defined.  All uses
56688         changed.
56689
56690 2004-11-10  Jim Meyering  <jim@meyering.net>
56691
56692         Ensure that no close failure goes unreported.
56693         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
56694         return early when it seems there's nothing to flush.
56695         Don't include __fpending.h.
56696
56697 2004-11-10  Jim Meyering  <jim@meyering.net>
56698
56699         * modules/closeout (Depends-on): Remove fpending.
56700
56701 2004-11-10  Jim Meyering  <jim@meyering.net>
56702
56703         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
56704
56705 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56706
56707         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
56708         gl_FUNC_STRFTIME.
56709         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
56710         and AC_REQUIRE when possible, to avoid duplicate checks.
56711         Check for <wchar.h>.
56712
56713 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56714
56715         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
56716
56717 2004-11-09  Bruno Haible  <bruno@clisp.org>
56718
56719         * m4/sockpfaf.m4: New file.
56720
56721 2004-11-05  Bruno Haible  <bruno@clisp.org>
56722
56723         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
56724         Reported by Mark D. Baushke <mdb@cvshome.org>.
56725
56726 2004-11-04  Bruno Haible  <bruno@clisp.org>
56727
56728         2004-09-11  Bruno Haible  <bruno@clisp.org>
56729                 * allocsa.valgrind: New file.
56730         2004-02-06  Bruno Haible  <bruno@clisp.org>
56731                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
56732                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
56733                 Reported by Christopher Seip <chris.seip@hp.com>.
56734
56735 2004-11-04  Bruno Haible  <bruno@clisp.org>
56736
56737         * modules/allocsa (Files): Add lib/allocsa.valgrind.
56738         (Makefile.am): Distribute it.
56739
56740 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
56741
56742         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
56743         with errno == ERANGE if the buffer is too small.
56744         Problem reported by Mark D. Baushke.
56745
56746 2004-11-03  Albert Chin  <china@thewrittenword.com>
56747             Paul Eggert  <eggert@cs.ucla.edu>
56748
56749         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
56750         equivalent, substitute $ac_type for equivalent type rather than
56751         blindly using uint32_t *always* which won't work if uint32_t is not
56752         available.  Define _UINT32_T to work around typedef of uint32_t if
56753         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
56754         2.5.1.
56755
56756 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
56757
56758         * m4/jm-macros.m4: Sync from coreutils.
56759         (gl_MACROS): Check for mbrlen, for pathchk.
56760         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
56761
56762 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
56763
56764         * lib/xreadlink.c (MAXSIZE): New macro.
56765         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
56766         size does not exceed MAXSIZE.  Avoid cast.
56767         As suggested by Mark D. Baushke in
56768         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
56769         if readlink fails with buffer size just under MAXSIZE, try again
56770         with MAXSIZE.
56771
56772 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
56773
56774         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
56775
56776 2004-11-02  Derek R. Price  <derek@ximbiot.com>
56777         and  Paul Eggert  <eggert@cs.ucla.edu>
56778
56779         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
56780         (get_date): Overparenthesize to avoid GCC warning.
56781
56782 2004-11-02  Bruno Haible  <bruno@clisp.org>
56783
56784         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
56785         returns void.
56786
56787 2004-11-02  Bruno Haible  <bruno@clisp.org>
56788
56789         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
56790         function returns void.
56791
56792 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
56793
56794         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
56795         fflush_unlocked, flockfile, funlockfile, funlockfile,
56796         fputs_unlocked, putc_unlocked.
56797
56798 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
56799
56800         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
56801         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
56802         already declared.
56803
56804 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
56805
56806         * modules/getdate (Files): Add doc/getdate.texi.
56807         (Depends-on): Add setenv, xalloc.
56808
56809 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
56810
56811         * lib/getdate.y: Add support for TZ="foo" within a date string.
56812         Fix some bugs near time_t boundaries.  Reject dates with
56813         out-of-range components, e.g., "Sept 31".
56814         Include <stdlib.h>, "setenv.h", "xalloc.h".
56815         (ISDIGIT_LOCALE): Remove; unused.
56816         Note that the TZ and time functions used here are not reentrant.
56817         (mktime_ok, get_tz): New functions.
56818         (TZBUFSIZE): New constant.
56819         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
56820         This requires that we sometimes generate our own TZ="XXX..." setting.
56821
56822 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
56823
56824         * doc/getdate.texi: New file, from coreutils with modifications for
56825         the new TZ parsing.
56826
56827 2004-10-27  Derek R. Price  <derek@ximbiot.com>
56828
56829         * lib/mktime.c (not_equal_tm): Remove redundant check.
56830
56831 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56832
56833         * modules/regex (lib_SOURCES): Add regex.c.
56834         Reported by James Youngman in
56835         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
56836
56837 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56838
56839         * lib/getdate.y: Use Bison 1.875 features, and some minor
56840         code cleanups.  This change does not affect semantics.
56841         Don't include <stdlib.h>; no longer needed.
56842         Don't include unlocked-io.h; only the "#if TEST" code uses
56843         stdio, and performance isn't crucial there.
56844         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
56845         Bison 1.875 features as described below.
56846         All uses of "PC." replaced by "pc->".
56847         (YYSTYPE): Add a forward declaration.
56848         (yylex, yyerror): Use full prototypes in forward decls.
56849         Use "%pure-parser" rather than obsolescent "%pure_parser".
56850         Use %parse-param and %lex-param instead of obsolescent
56851         YYPARSE_PARAM and YYLEX_PARAM.
56852         (meridian_table, month_and_day_table, time_units_table,
56853         relative_time_table, time_zone_table, military_table,
56854         lookup_zone, lookup_word, get_date):
56855         Use NULL instead of 0 where appropriate.
56856         (to_hour): Avoid abort (), to avoid a dependency on
56857         stdlib.h.
56858         (yyerror, yylex): Now accepts parser_control * arg.
56859         (main) [TEST]: Use '\0' rather than 0 for char.
56860
56861 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56862
56863         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
56864
56865 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56866
56867         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
56868         It's now the caller's responsibility to handle the case where
56869         !HAVE_GETPAGESIZE && !defined getpagesize.
56870
56871         * lib/mktime.c (leapyear): Arg is long int, not int.
56872
56873 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
56874
56875         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
56876
56877 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56878
56879         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
56880         missing.  Problem reported by James Youngman.
56881
56882 2004-10-16  Simon Josefsson  <jas@extundo.com>
56883
56884         * gnulib-tool: Fix comments.  Fix parse problem.
56885         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
56886
56887 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
56888
56889         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
56890         implementation of getopt_long.  Problem reported by Alexander Taler in:
56891         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
56892
56893 2004-10-15  Bruno Haible  <bruno@clisp.org>
56894
56895         * gnulib-tool: Untabify. Initialize supplied_libname.
56896         (func_usage): More homogenous output.
56897         (func_modules_transitive_closure, func_modules_to_filelist,
56898         func_emit_lib_Makefile_am): New functions.
56899         (func_import): New function, extracted from big case statement. Use
56900         func_get_license, func_modules_transitive_closure,
56901         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
56902         opt_lgpl. Don't use test -a, as it's not portable.
56903         (func_create_testdir): Use func_modules_transitive_closure,
56904         func_modules_to_filelist, func_emit_lib_Makefile_am.
56905
56906 2004-10-15  Bruno Haible  <bruno@clisp.org>
56907
56908         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
56909
56910 2004-10-15  Bruno Haible  <bruno@clisp.org>
56911
56912         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
56913         the portions belonging to each module.
56914         Suggested by Derek Robert Price <derek@ximbiot.com>.
56915
56916 2004-10-12  Simon Josefsson  <jas@extundo.com>
56917
56918         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
56919         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
56920         to real functions.
56921
56922 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56923
56924         * modules/vsnprintf: New file.
56925
56926 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56927
56928         * m4/vsnprintf.m4: New file.
56929
56930 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56931
56932         * lib/vsnprintf.h: New file.
56933         * lib/vsnprintf.c: New file.
56934
56935 2004-10-11  Bruno Haible  <bruno@clisp.org>
56936
56937         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
56938         vsnprintf.
56939
56940 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
56941
56942         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
56943
56944 2004-10-07  Bruno Haible  <bruno@clisp.org>
56945
56946         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
56947         fits into the provided buffer.
56948
56949 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
56950
56951         * lib/diacrit.c, diacrit.h: Add GPL notice.
56952
56953         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
56954         notice.
56955         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
56956         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
56957         This avoids a potential constant-folding bug.
56958
56959 2004-10-05  Bruno Haible  <bruno@clisp.org>
56960
56961         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
56962         for the declaration of strsep.
56963
56964 2004-10-05  Bruno Haible  <bruno@clisp.org>
56965
56966         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
56967
56968 2004-10-04  Simon Josefsson  <jas@extundo.com>
56969
56970         * modules/memmem: New file.
56971         * tests/test-memmem.c: New file.
56972         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
56973
56974 2004-10-04  Simon Josefsson  <jas@extundo.com>
56975
56976         * m4/memmem.m4: New file.
56977
56978 2004-10-04  Simon Josefsson  <jas@extundo.com>
56979
56980         * lib/memmem.h: New file.
56981         * lib/memmem.c: New file, taken from glibc.
56982
56983 2004-10-04  Simon Josefsson  <jas@extundo.com>
56984
56985         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
56986         '#ifdef USE_UNLOCKED_IO'.
56987
56988 2004-10-04  Simon Josefsson  <jas@extundo.com>
56989
56990         * config/srclist.txt: Add memmem from glibc.
56991
56992 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
56993
56994         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
56995
56996         * modules/argmatch, modules/argp, modules/closeout, modules/error,
56997         modules/exclude, modules/getdate, modules/getline,
56998         modules/getndelim2, modules/getpass, modules/getpass-gnu,
56999         modules/getusershell, modules/linebuffer, modules/md5,
57000         modules/mountlist, modules/posixtm, modules/readtokens,
57001         modules/readutmp, modules/regex, modules/sha1,
57002         modules/version-etc, modules/yesno:
57003         Remove dependency on unlocked-io.
57004
57005 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57006
57007         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
57008
57009         * m4/unlocked-io.m4: Add copyright notice.
57010         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
57011
57012 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57013
57014         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
57015         * lib/xmalloc.c (xmemdup): Likewise.
57016         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
57017         XFREE): Remove these long-obsolescent macros.
57018         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
57019         * lib/xstrdup.c: Remove.
57020
57021         * lib/regex.c (re_comp): Cast gettext return value to char *,
57022         Problem reported by Martin Neitzel via Mark D. Baushke.
57023
57024 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57025
57026         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
57027         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
57028         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
57029         regex.c, sha1.c, version-etc.c, yesno.c:
57030         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
57031         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
57032         the includer's responsibility.
57033
57034         Sync from coreutils.
57035
57036         * lib/modechange.c (mode_compile): Don't decrement a pointer that
57037         points to the start of a string, as the C Standard says the
57038         resulting behavior is undefined.
57039
57040         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
57041         simple -> simple_backups, numbered_existing ->
57042         numbered_existing_backups, numbered -> numbered_backups
57043         to avoid shadowing problems.  All uses changed.
57044         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
57045         * lib/backupfile.c (check_extension, numbered_backup):
57046         Rename locals to avoid shadowing 'basename'.
57047         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
57048         once.
57049
57050         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
57051         * lib/.cvsignore: Add getopt.h.
57052
57053 2004-10-04  Bruno Haible  <bruno@clisp.org>
57054
57055         * modules/README: New file.
57056         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
57057         not a module.
57058
57059 2004-10-02  Jim Meyering  <jim@meyering.net>
57060
57061         * lib/dirfd.h, getpagesize.h: Add copyright notice.
57062
57063 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57064
57065         * modules/strsep: New file.
57066
57067 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57068
57069         * m4/strsep.m4: New file.
57070
57071 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57072
57073         * lib/strsep.h: New file.
57074         * lib/strsep.c: New file.
57075
57076 2004-10-01  Simon Josefsson  <jas@extundo.com>
57077
57078         * lib/snprintf.c (snprintf): Handle size==0.
57079
57080 2004-10-01  Simon Josefsson  <jas@extundo.com>
57081             Bruno Haible  <bruno@clisp.org>
57082
57083         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
57084         (snprintf): Declare 'args'.
57085
57086 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
57087
57088         * lib/snprintf.c: Remove comments as to why each header is needed.
57089
57090 2004-10-01  Bruno Haible  <bruno@clisp.org>
57091
57092         * MODULES.html.sh: Add strsep.
57093
57094 2004-09-30  Simon Josefsson  <jas@extundo.com>
57095
57096         * modules/snprintf: New file.
57097
57098 2004-09-30  Simon Josefsson  <jas@extundo.com>
57099
57100         * m4/snprintf.m4: New file.
57101
57102 2004-09-30  Simon Josefsson  <jas@extundo.com>
57103
57104         * lib/snprintf.h, lib/snprintf.c: New files.
57105
57106 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57107
57108         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
57109         (hol_entry_help): Never translate an empty string.
57110         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
57111         * lib/argp.h (OPTION_NO_TRANS): New option.
57112
57113 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
57114
57115         * modules/argp (Maintainer): Replace Simon Josefsson
57116         by Sergey Poznyakoff.
57117
57118 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
57119
57120         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
57121         changes merged back into glibc.
57122
57123 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
57124
57125         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
57126
57127 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
57128
57129         * lib/xvasprintf.c: Include xalloc.h.
57130         (xvasprintf): Use xalloc_die, not xmalloc_die.
57131
57132 2004-09-29  Bruno Haible  <bruno@clisp.org>
57133
57134         * modules/alloca-opt: New file, derived from modules/alloca.
57135         * modules/allocsa: Depend on alloca-opt instead of alloca.
57136         * modules/setenv: Likewise.
57137         * modules/vasnprintf: Likewise.
57138         * MODULES.html.sh: Add alloca-opt.
57139
57140 2004-09-28  Simon Josefsson  <jas@extundo.com>
57141
57142         * gnulib-tool: New parameter --lgpl, to asseert that modules are
57143         LGPL, and to replace license template from GPL to LGPL.
57144
57145 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
57146
57147         * modules/dummy: Change license to LGPL.
57148
57149 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
57150
57151         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
57152
57153 2004-09-24  Simon Josefsson  <jas@extundo.com>
57154
57155         * modules/minmax (License): Change from GPL to LGPL.
57156
57157 2004-09-23  Simon Josefsson  <jas@extundo.com>
57158
57159         * gnulib-tool (--import): Typo.
57160
57161 2004-09-23  Simon Josefsson  <jas@extundo.com>
57162
57163         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
57164
57165 2004-09-22  Bruno Haible  <bruno@clisp.org>
57166
57167         * modules/*: Add 'License' field.
57168         * gnulib-tool: Accept --extract-license option.
57169         (func_get_license): New function.
57170
57171 2004-09-21  Bruno Haible  <bruno@clisp.org>
57172
57173         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
57174         Reported by Simon Josefsson.
57175
57176 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57177
57178         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
57179         gl_AC_TYPE_LONG_LONG.
57180
57181 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57182
57183         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
57184
57185 2004-09-18  Simon Josefsson  <jas@extundo.com>
57186         and  Paul Eggert  <eggert@cs.ucla.edu>
57187
57188         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
57189         calls with autoreconf.  Define GL_LIB.
57190
57191 2004-09-14  Karl Berry  <karl@gnu.org>
57192
57193         * config/srclist.txt: unsync setenv.c, sigh.
57194
57195 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
57196
57197         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
57198         Problem reported by Bruno Haible in:
57199         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
57200
57201 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
57202
57203         * config/srclist.txt: Comment out argp-pvh.c.
57204
57205 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
57206
57207         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
57208         in case some system header has #define'd it.  Problem reported by
57209         Soeren D. Schulze in
57210         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
57211
57212 2004-09-09  Karl Berry  <karl@gnu.org>
57213
57214         * regex.[ch]: delete from the root.  These were supposed to be
57215                 synced with emacs cvs, but this has not happened for about
57216                 a year, and anyway nothing else uses emacs regex.[ch].
57217                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
57218                 lib/regex[.ch] is untouched.
57219
57220 2004-09-09  Bruno Haible  <bruno@clisp.org>
57221
57222         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
57223
57224 2004-09-09  Bruno Haible  <bruno@clisp.org>
57225
57226         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
57227         modifications.
57228         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
57229
57230 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
57231
57232         * modules/xvasprintf: New file.
57233         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
57234
57235 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
57236
57237         * lib/xvasprintf.h: New file.
57238         * lib/xvasprintf.c: New file.
57239         * lib/xasprintf.c: New file.
57240
57241 2004-09-08  Bruno Haible  <bruno@clisp.org>
57242
57243         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
57244
57245 2004-09-08  Bruno Haible  <bruno@clisp.org>
57246
57247         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
57248         length is > INT_MAX.
57249         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
57250         more.
57251
57252 2004-09-08  Bruno Haible  <bruno@clisp.org>
57253
57254         * lib/stdint_.h: New file, taken from GNU clisp.
57255
57256 2004-09-08  Bruno Haible  <bruno@clisp.org>
57257             Oskar Liljeblad  <oskar@osk.mine.nu>
57258
57259         * modules/stdint: New file.
57260         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
57261
57262 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57263
57264         Import from coreutils.
57265         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
57266         strings on unbounded length.  alloca's performance benefits aren't
57267         that important here.
57268         (V_STRDUP): Remove.
57269         (parse_with_separator): New function, with most of the internals
57270         of the old parse_user_spec.  Allow user to omit both user and group,
57271         for compatibility with FreeBSD.
57272         Clone only the user name, not the entire spec.
57273         Do not set *uid, *gid unless entirely successful.
57274         Avoid memory leak in some failing cases.
57275         Fix regression for USER.GROUP reported by Dmitry V. Levin in
57276         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
57277         (parse_user_spec): Rewrite to use parse_with_separator.
57278
57279 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57280
57281         * modules/userspec: Don't depend on alloca.
57282
57283 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57284
57285         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
57286
57287 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57288
57289         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
57290         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
57291         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
57292
57293 2004-08-16  Simon Josefsson  <jas@extundo.com>
57294
57295         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
57296         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
57297         Add --dry-run for --import.
57298         Let user provided command line parameters override configure.ac
57299         settings.
57300
57301 2004-08-12  Simon Josefsson  <jas@extundo.com>
57302
57303         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
57304         as discussed with Paul Eggert in threads rooted at
57305         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
57306         and
57307         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
57308         Before, the test was empty, and relied on ELIDE_CODE in source
57309         code.)
57310         (gl_PREREQ_GETOPT): New macro.
57311         (gl_GETOPT): Use them.
57312
57313 2004-08-12  Simon Josefsson  <jas@extundo.com>
57314
57315         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
57316         * lib/getopt_.h: Renamed from getopt.h.
57317
57318 2004-08-12  Simon Josefsson  <jas@extundo.com>
57319
57320         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
57321         Change default library name from libfoo to libgnu.
57322         Now, if you have a configure.ac that says:
57323                 gl_SOURCE_BASE(gl)
57324                 gl_M4_BASE(gl/m4)
57325                 gl_MODULES(error getopt etcetera)
57326                 gl_INIT
57327         you can import all you need by running:
57328                 ../gnulib/gnulib-tool --import
57329
57330         * modules/getopt (Files): Rename getopt.h to getopt_.h.
57331         (Makefile.am): Rewrite, use logic from argz.
57332         (Include): Use <getopt.h> instead of "getopt.h".
57333
57334 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
57335
57336         * modules/argp (Files): Add m4/unlocked-io.m4.
57337         (Depends-on): Add extensions.
57338
57339 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
57340
57341         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
57342         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
57343         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
57344         Check for program_invocation_name, program_invocation_short_name,
57345         flockfile, funlockfile, features.h, _getopt_long_only_r.
57346
57347 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
57348
57349         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
57350         its complicated substitute.
57351         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
57352         and program_invocation_name.
57353         (__argp_basename) [!_LIBC]: Remove; the only use was
57354         replaced by its body.
57355         (__argp_short_program_name): Change condition from
57356         !defined __argp_short_program_name to
57357         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
57358         to match argp-namefrob.h.
57359         (__argp_failure): Don't assume strerror_r returns char *.
57360         * lib/argp-parse.c (N_): Define unconditionally.
57361         (argp_default_options): Fill out initializers with 0 to avoid
57362         gcc warnings.
57363
57364 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
57365
57366         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
57367         getopt1.c.
57368
57369 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
57370
57371         Merge from coreutils.
57372
57373         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
57374
57375         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
57376         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
57377
57378 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
57379
57380         Merge from coreutils.
57381
57382         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
57383         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
57384         for Reliant Unix 5.43.
57385
57386         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
57387         (union fooround): Use uintmax_t, not long int.
57388         The rest is a merge from libc:
57389         [defined _LIBC]: Include <shlib-compat.h>.
57390         (_obstack) [defined _LIBC]: Remove after 2.3.4.
57391
57392         * lib/settime.c (settime): Recode to avoid warning with
57393         Sun Forte C 6U2.
57394
57395         * lib/strverscmp.c: Convert to UTF-8.
57396
57397 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
57398
57399         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
57400         m4/uintmax_t.m4.
57401
57402 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57403
57404         * modules/xalloc-die: New file.
57405         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
57406
57407         * modules/md5 (Files): Add m4/uint32_t.m4.
57408         * modules/sha1: Renamed from modules/sha.
57409         (Files):
57410         Rename lib/sha.h to lib/sha1.h.
57411         Rename lib/sha.c to lib/sha1.c.
57412         Rename m4/sha.m4 to m4/sha1.m4.
57413         (lib_SOURCES): Likewise.
57414         (configure.ac): Rename gl_SHA to gl_SHA1.
57415         (Include): sha.h -> sha1.h.
57416
57417 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57418
57419         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
57420         * m4/sha1.m4: Renamed from sha.m4.
57421         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
57422
57423 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57424
57425         * lib/obstack.h (obstack_empty_p):
57426         Don't assume that chunk->contents is suitably aligned.
57427         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
57428         Likewise. Problem reported by Benno in
57429         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
57430
57431         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
57432         readable.  This could be improved further but it'd take some work.
57433
57434 2004-08-08  Simon Josefsson  <jas@extundo.com>
57435
57436         * modules/xgethostname (Depends-on): Remove exit and error (not
57437         used).
57438
57439         * modules/getpass-gnu: Add getpass.h.
57440         (Depends-on): Add stdbool.
57441         * modules/getpass: Add getpass.h.
57442
57443 2004-08-08  Simon Josefsson  <jas@extundo.com>
57444
57445         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
57446         Check getpass declaration.
57447
57448 2004-08-08  Simon Josefsson  <jas@extundo.com>
57449
57450         * lib/xgethostname.c: Don't include error.h (not used).
57451
57452         * lib/getpass.h: Add.
57453         * lib/getpass.c: Include getpass.h first.
57454
57455 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
57456
57457         * lib/xalloc-die.c: New file.
57458         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
57459         All uses removed.
57460         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
57461         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
57462         xalloc-die.c.
57463         (_, N_, xalloc_die): Move to xalloc-die.c.
57464         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
57465         so that we needn't mess with xalloc_msg_memory_exhausted.
57466
57467         * lib/sha1.h: Renamed from sha.h.
57468         (SHA1_H): Renamed from _SHA_H.
57469         (sha1_ctx): Renamed from sha_ctx.
57470         (sha1_init_ctx): Renamed from sha_init_ctx.
57471         (sha1_process_block): Renamed from sha_process_block.
57472         (sha1_process_bytes): Renamed from sha_process_bytes.
57473         (sha1_finish_ctx): Renamed from sha_finish_ctx.
57474         (sha1_read_ctx): Renamed from sha_read_ctx.
57475         (sha1_stream): Renamed from sha_stream.
57476         (sha1_buffer): Renamed from sha_buffer.
57477         * lib/sha1.c: Likewise; renamed from sha.c.
57478         Do not include <sys/types.h>.
57479         Include <stddef.h> rather than <stdlib.h>.
57480
57481 2004-08-08  Bruno Haible  <bruno@clisp.org>
57482
57483         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
57484         FILESYSTEM_PREFIX_LEN.
57485         * lib/progreloc.c: Likewise.
57486         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
57487
57488 2004-08-06  Simon Josefsson  <jas@extundo.com>
57489
57490         * modules/progname (Depends-on): Don't depend on stdbool.
57491
57492 2004-08-06  Simon Josefsson  <jas@extundo.com>
57493
57494         * modules/getsubopt: New file.
57495         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57496         getsubopt.
57497
57498 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57499
57500         More merge from coreutils.
57501
57502         * m4/utimens.m4, m4/utimecmp.m4: New files.
57503         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
57504         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
57505         prereq.m4, sha.m4: Import changes from coreutils.
57506
57507 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57508
57509         More merge from coreutils.
57510         * modules/raise, modules/readtokens0, modules/utimens:
57511         * modules/utimecmp, module/xnanosleep: New files.
57512         * modules/strftime: Add lib/strftime.h.
57513         Change include from <time.h> to "strftime.h".
57514         * modules/yesno: Add lib/yesno.h.
57515         * modules/backupfile: Remove lib/addext.c.
57516         * modules/euidaccess: Add stat-macros.h.
57517         * modules/canonicalize, modules/euidaccess,
57518         modules/filemode, modules/lchown, modules/makepath,
57519         modules/rmdir, modules/stat: Likewise.
57520
57521 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57522
57523         Merge from tar.
57524         * lib/argp-help.c (make_hol, hol_append): Don't assume that
57525         SIZE_MAX is a valid preprocessor constant.
57526         (__argp_basename): Change from "#ifndef _LIBC"
57527         to "#ifndef __argp_short_program_name", so that
57528         we don't compile these functions for tar.
57529
57530         More merges from coreutils.
57531         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
57532         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
57533         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
57534         * lib/addext.c: Remove; no longer needed.
57535         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
57536         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
57537         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
57538         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
57539         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
57540         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
57541         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
57542         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
57543         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
57544         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
57545         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
57546         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
57547         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
57548         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
57549         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
57550         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
57551         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
57552         Import changes from coreutils.
57553
57554 2004-08-05  Simon Josefsson  <jas@extundo.com>
57555
57556         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
57557
57558 2004-08-05  Simon Josefsson  <jas@extundo.com>
57559
57560         * m4/getsubopt.m4: New file.
57561
57562 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
57563
57564         Merge from coreutils.
57565
57566         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
57567         * m4/getcwd-path-max.m4: New files.
57568
57569         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
57570         FILESYSTEM_PREFIX_LEN ->
57571         FILE_SYSTEM_PREFIX_LEN.
57572         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
57573         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
57574         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
57575         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
57576
57577         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
57578         prerequisite modules now handle the DOS stuff.
57579         Don't check for unistd.h.
57580
57581 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
57582
57583         Merge from coreutils.
57584
57585         * lib/.gdb-history: Remove; this doesn't belong here.
57586
57587         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
57588         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
57589         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
57590         * lib/getcwd.c: New files.
57591
57592         * lib/dirname.h: Include <stdbool.h>.
57593         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
57594         for consistency with POSIX terminology.  All uses changed.
57595         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
57596         (strip_trailing_slashes): Use bool for booleans.
57597         * lib/stripslash.c (strip_trailing_slashes): Likewise.
57598
57599         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
57600         sometimes returns a positive errno value even when it succeeds.
57601         (print_errno_message) [!LIBC]: Fall back on strerror if
57602         __strerror_r fails.
57603
57604         * lib/path-concat.c (mempcpy): Don't define if a system header defines
57605         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
57606         (longest_relative_suffix): New function.
57607         (path_concat): Use it.  Assume first argument is not NULL.
57608         Port to DOS.  Omit redundant separators.
57609         Report an error instead of returning NULL.
57610         Use mempcpy instead of memcpy.
57611         (xpath_concat): Remove: not declared or used.
57612
57613         * lib/same.h: Include <stdbool.h>
57614         (same_name): Return bool, not int.
57615         * lib/same.c (same_name): Likewise.
57616         (errno): Don't declare; we assume C89 or better now.
57617
57618         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
57619         if not already defined.
57620
57621         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
57622         * lib/dup-safer.c (errno): Likewise.
57623
57624 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
57625
57626         Merge from coreutils.
57627         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
57628         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
57629         * modules/path-concat: Don't depend on strdup.
57630
57631 2004-08-03  Simon Josefsson  <jas@extundo.com>
57632
57633         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
57634         * lib/progname.h: Don't include stdbool.h.
57635
57636 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
57637
57638         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
57639         * MODULES.html.sh (func_all_modules): Remove fatal.
57640
57641 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
57642
57643         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
57644
57645 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
57646
57647         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
57648         working.
57649
57650 2004-08-02  Simon Josefsson  <jas@extundo.com>
57651
57652         * lib/getsubopt.h: New file, with comments from Bruno Haible.
57653         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
57654         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
57655
57656 2004-08-01  Simon Josefsson  <jas@extundo.com>
57657
57658         * lib/xgetdomainname.c: Include stdlib.h, for free().
57659
57660 2004-07-19  Bruno Haible  <bruno@clisp.org>
57661
57662         * MODULES.html.sh (func_all_modules): Add dummy.
57663
57664 2004-07-16  Simon Josefsson  <jas@extundo.com>
57665
57666         * modules/dummy: New file.
57667
57668 2004-07-16  Simon Josefsson  <jas@extundo.com>
57669
57670         * lib/dummy.c: New file.
57671
57672 2004-07-16  Bruno Haible  <bruno@clisp.org>
57673
57674         * lib/backupfile.h: Add extern "C" for C++.
57675         * lib/closeout.h: Likewise.
57676         * lib/copy-file.h: Likewise.
57677         * lib/findprog.h: Likewise.
57678         * lib/full-write.h: Likewise.
57679         * lib/pathname.h: Likewise.
57680         * lib/progname.h: Likewise.
57681         * lib/stpcpy.h: Likewise.
57682         * lib/stpncpy.h: Likewise.
57683         * lib/strcase.h: Likewise.
57684         * lib/strstr.h: Likewise.
57685         * lib/xalloc.h: Likewise.
57686
57687         * lib/mbswidth.h: Add extern "C" for C++.
57688         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
57689
57690 2004-07-13  Robert Millan  <robertmh@gnu.org>
57691
57692         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
57693
57694 2004-07-09  Simon Josefsson  <jas@extundo.com>
57695
57696         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
57697         failed without this.)
57698
57699 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
57700
57701         * modules/chown (Files): Add lib/fchown-stub.c, since
57702         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
57703
57704 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
57705
57706         * lib/fchown-stub.c: New file.
57707
57708 2004-06-24  Jim Meyering  <jim@meyering.net>
57709
57710         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
57711
57712 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
57713
57714         * modules/argz: Omit "#include".
57715
57716         * MODULES.html.sh (func_all_modules): Add calloc, to match
57717         2004-06-01 addition of calloc module.
57718
57719 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
57720
57721         * m4/argz.m4: New file, which is autoupdated from libtool.
57722
57723 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
57724
57725         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
57726         libtool.
57727
57728 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
57729
57730         * config/srclist-update: Don't insist on "USA." before the
57731         close-comment, as libtool omits the period and puts the */ on a
57732         separate line.
57733         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
57734         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
57735
57736 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
57737
57738         * modules/argz: New file.
57739         * MODULES.html.sh (func_all_modules): Add argz.
57740
57741 2004-06-12  Jim Meyering  <jim@meyering.net>
57742         and  Paul Eggert  <eggert@cs.ucla.edu>
57743
57744         * modules/hash (Files): Add lib/xalloc.h.
57745         * modules/pipe (Depends-on): Add wait-process.
57746         * modules/stat (Depends-on): Add xalloc.
57747         * modules/userspec (Files): Add lib/userspec.h.
57748         * modules/xstrto
57749
57750         Upgrade from gettext-0.13.
57751         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
57752         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
57753         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
57754
57755 2004-06-10  Jim Meyering  <jim@meyering.net>
57756
57757         * lib/calloc.c: New file.
57758
57759 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
57760
57761         * lib/getdate.y (yylex): Allow space between sign and number.
57762         Problem reported by Dan Jacobson.
57763
57764 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
57765
57766         Merge from coreutils CVS.
57767
57768         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
57769         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
57770         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
57771         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
57772         xstrtol.m4: Fix copyright date and/or serial number.
57773
57774         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
57775         See if we need an fchown replacement.
57776         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
57777         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
57778         and use the replacement function if we detect either defect.
57779
57780         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
57781         gl_UTIMECMP.
57782
57783 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
57784         and  Jim Meyering  <jim@meyering.net>
57785
57786         Merge from coreutils CVS.
57787
57788         * lib/stat-macros.h: New file, with contents from file-type.h
57789         and coreutils' system.h.
57790         * lib/file-type.c: Include "stat-macros.h".
57791         * lib/file-type.h (file_type): Move all macro definitions to new file,
57792         stat-macros.h.
57793
57794         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
57795         Wrap old code with this conditional.
57796         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
57797         function that does not dereference symlinks.
57798         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
57799
57800         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
57801         dependency problems.
57802         (xreadlink): Accept new arg SIZE, for efficiency.
57803         All decls and uses changed.
57804         * lib/xreadlink.h: Include <stddef.h>, for size_t.
57805
57806         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
57807         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
57808
57809         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
57810         sysexits.h.
57811
57812 2004-06-01  Jim Meyering  <jim@meyering.net>
57813
57814         * m4/calloc.m4: New file.
57815
57816 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
57817
57818         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
57819         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
57820         Also, fix a typo in a diagnostic.
57821
57822 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
57823
57824         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
57825         or AC_FUNC_REALLOC.
57826
57827 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
57828
57829         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
57830         macros to be defined.
57831         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
57832         the allocator returns NULL because the requested size is zero.
57833
57834 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57835
57836         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
57837         var.  Add comment explaining why libc still defines it.  This
57838         merges the following patch from glibc:
57839         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
57840
57841 2004-05-20  Andreas Schwab  <schwab@suse.de>
57842
57843         * m4/free.m4: Replace free if it not known to work, not the other
57844         way round.
57845
57846 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
57847
57848         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
57849         present in glibc since revision 1.1 of this file.
57850         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
57851         obstack_alignment_mask, obstack_alloc, obstack_base,
57852         obstack_blank, obstack_blank_fast, obstack_chunk_size,
57853         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
57854         obstack_grow0, obstack_init, obstack_int_grow,
57855         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
57856         obstack_next_free, obstack_object_size, obstack_ptr_grow,
57857         obstack_ptr_grow_fast, obstack_room): Remove declarations of
57858         nonexistent functions.
57859
57860 2004-05-18  Karl Berry  <karl@gnu.org>
57861
57862         * config/srclist.txt: break link for vasnprintf.c.
57863
57864 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
57865
57866         Port obstack to the AS/400, where pointers are 16 bytes wide and
57867         you cannot cast an integer to a valid pointer.  This patch is
57868         currently waiting to be integrated into glibc; see
57869         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
57870
57871         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
57872         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
57873         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
57874         (struct obstack): temp member is now a union of a pointer and
57875         an integer, instead of an integer.  All integer uses changed.
57876         This does not affect the physical layout of struct obstack,
57877         except on hosts (like the AS/400) where the size or alignment of
57878         void * is greater than that of ptrdiff_t.
57879         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
57880         __STDC__)]: Store temporary in pointer member of union, not
57881         integer member.
57882         * lib/obstack.c: Include <stddef.h>, for offsetof.
57883         (struct fooalign): Remove; it doesn't need a name.
57884         (union fooround): Change double to long double, and add void *.
57885         (DEFAULT_ALIGNMENT): Use offsetof to compute.
57886         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
57887         not a macro.  Hence the values are always int; so remove all
57888         casts-to-int in uses.
57889
57890 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
57891
57892         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
57893         we can get this patch merged into glibc.
57894
57895 2004-05-17  Derek R. Price  <derek@ximbiot.com>
57896             Paul Eggert  <eggert@cs.ucla.edu>
57897
57898         * m4/argp: Depend on alloca.
57899
57900 2004-05-17  Derek R. Price  <derek@ximbiot.com>
57901             Paul Eggert  <eggert@cs.ucla.edu>
57902
57903         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
57904         freecoding.
57905
57906 2004-05-17  Bruno Haible  <bruno@clisp.org>
57907
57908         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
57909         precision that consists of a '.' followed by an empty digit string.
57910         Patch by Tor Lillqvist <tml@iki.fi>.
57911
57912 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
57913
57914         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
57915         for backward compatibility with older code.  We need our own
57916         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
57917         it under some other name, and our alloca.h will define it.
57918
57919 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
57920             Derek Price  <derek@ximbiot.com>
57921
57922         * lib/alloca.c: Include <alloca.h>, to get our interface.
57923         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
57924         include <alloca.h> first.  Use C89 prototype for alloca; this
57925         requires including <stddef.h> for size_t.  Use extern "C" if C++.
57926         Use #elif for simplicity, since we can assume C89 now.
57927         Don't try to source the system alloca.h since it will not be found
57928         and to prevent recursively including its replacement.
57929         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
57930         * lib/regex.c: Likewise.
57931
57932 2004-05-16  Derek Price  <derek@ximbiot.com>
57933             Paul Eggert  <eggert@cs.ucla.edu>
57934
57935         getline cleanup.  This changes the getndelim2 API: both order of
57936         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
57937         no delimiter).
57938
57939         * lib/getline.c: Don't include stddef.h or stdio.h, since our
57940         interface does that.
57941         (getline): Always use getdelim, so that we don't have two
57942         copies of this code.
57943         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
57944         if available.
57945         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
57946         (GETNDELIM2_MAXIMUM): New macro.
57947         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
57948         instead of the old practice of delim2==0.  All callers changed.
57949         Return -1 on overflow, instead of returning junk.
57950         Do not set *linesize unless allocation succeeds.
57951         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
57952         that we include sys/types.h.
57953         * lib/getnline.h: Likewise.
57954         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
57955         (getndelim2): Reorder arguments.
57956         * lib/getnline.c (getnline, getndelim):
57957         Don't discard the NMAX argument.
57958         (getnline): Invoke getndelim, to avoid code duplication.
57959         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
57960         of (size_t) -1 by callers of the getnline family.
57961
57962 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57963
57964         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
57965         Check for gettimeofday.
57966         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
57967         Check for settimeofday, stime.
57968
57969 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57970
57971         * lib/nanosleep.c (suspended): Change its type from int to
57972         sig_atomic_t volatile.
57973         (first_call): Make it private to rpl_nanosleep, and have it
57974         be zero initially as that's a bit faster.
57975         (my_usleep): Round up fractional times instead of truncating them,
57976         as this is the usual meaning for 'sleep'.
57977
57978         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
57979         doesn't work.
57980         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
57981         (ENOSYS): Define if not defined.
57982         (settime): Fall back on stime if it exists and settimeofday fails.
57983         But don't bother with fallbacks if a method fails with errno == EPERM.
57984
57985 2004-05-11  Jim Meyering  <jim@meyering.net>
57986
57987         Prior to this change, the save_cwd caller required read access to the
57988         current directory on most systems (ones with the fchdir function).
57989
57990         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
57991         fails, try write-only, and finally, resort to using xgetcwd.
57992
57993 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
57994
57995         * lib/obstack.c, obstack.h: Import changes from libc.
57996
57997 2004-04-28  Bruno Haible  <bruno@clisp.org>
57998
57999         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
58000         also implicitly appends .exe to executables.
58001         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
58002         accepts Windows pathnames.
58003         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
58004         Treat Cygwin like Windows, since it now accepts Windows pathnames.
58005         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
58006         Treat Cygwin like Windows, since it now accepts Windows pathnames.
58007         Reported by Derek Robert Price <derek@ximbiot.com>.
58008
58009 2004-04-21  Karl Berry  <karl@gnu.org>
58010
58011         * config/srclist.txt (localcharset.c): break sync.
58012
58013 2004-04-20  Paul Eggert  <eggert@twinsun.com>
58014
58015         * m4/host-os.m4: Add a copyright notice.
58016
58017 2004-04-20  Jim Meyering  <jim@meyering.net>
58018
58019         Change UTILS_ to gl_ in AC_DEFINE'd names.
58020         Change utils_- and jm_-prefixed variables, too.
58021         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
58022         UTILS_FUNC_MKDIR_TRAILING_SLASH.
58023         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
58024
58025         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
58026         Don't emit trailing blanks.
58027         Also rename jm_-prefixed variables to have gl_ prefix.
58028
58029         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
58030         Also rename jm_-prefixed variables to have gl_ prefix.
58031
58032         * m4/jm-macros.m4: Reflect the renamings.
58033         * m4/prereq.m4: Likewise.
58034
58035 2004-04-20  Jim Meyering  <jim@meyering.net>
58036
58037         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
58038         memory.
58039
58040 2004-04-20  Jim Meyering  <jim@meyering.net>
58041             Bruno Haible  <bruno@clisp.org>
58042
58043         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
58044         memory when realloc fails.
58045
58046 2004-04-19  Jim Meyering  <jim@meyering.net>
58047
58048         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
58049         now that readutmp.c may call `free (0)'.
58050
58051 2004-04-19  Bruno Haible  <bruno@clisp.org>
58052
58053         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
58054         * m4/inttypes_h.m4: Likewise.
58055         * m4/stdint_h.m4: Likewise.
58056         * m4/intmax_t.m4: Likewise.
58057         * m4/uintmax_t.m4: Likewise.
58058
58059 2004-04-18  Jim Meyering  <jim@meyering.net>
58060
58061         * m4/prereq.m4: Don't forbid jm_ prefix.
58062
58063         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
58064         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
58065         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
58066         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
58067         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
58068         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
58069         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
58070         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
58071         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
58072         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
58073         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
58074         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
58075         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
58076         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
58077         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
58078         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
58079         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
58080         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
58081         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
58082
58083 2004-04-18  Jim Meyering  <jim@meyering.net>
58084
58085         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
58086         failure, don't leak memory and do call END_UTMP_ENT.
58087
58088 2004-04-16  Jim Meyering  <jim@meyering.net>
58089
58090         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
58091         coreutils' stat program.
58092         (gl_PREREQ): Don't require jm_PREREQ_STAT.
58093
58094 2004-04-11  Paul Eggert  <eggert@twinsun.com>
58095
58096         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
58097         C89.
58098         (CHAR_BIT): Remove, since we assume C89.
58099         Include <stdint.h> if available, as per current Autoconf CVS advice.
58100
58101 2004-03-31  Jim Meyering  <jim@meyering.net>
58102
58103         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
58104         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
58105         * m4/xalloc.m4: Likewise.
58106
58107 2004-03-30  Paul Eggert  <eggert@twinsun.com>
58108
58109         Merge from coreutils.
58110
58111         * m4/inttostr.m4: New file.
58112         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
58113         Require AM_STDBOOL_H and gl_TIMESPEC instead.
58114         Require gl_CLOCK_TIME.
58115         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
58116
58117 2004-03-30  Paul Eggert  <eggert@twinsun.com>
58118
58119         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
58120         not bool, to be more consistent with Unix conventions.
58121         Suggested by Bruno Haible.
58122
58123         Merge from coreutils.
58124
58125         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
58126         * lib/umaxtostr.c: New files.
58127
58128         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
58129         the usual <time.h> dance.
58130         (get_date): Change signature to support fractional time stamps.
58131         All callers changed.
58132         * lib/getdate.y: Include "getdate.h" first, as we can now
58133         assume C89 and don't need to worry about 'const'.
58134         Similarly, include "unlocked-io.h" near start, not in middle.
58135         Include <limits.h>.
58136         (textint.value): Use long int rather than int.
58137         (textint.digits): Use size_t rather than int.
58138         (BILLION, LOG10_BILLION): New constants.
58139         (parser_control): New member rel_ns.  Members day_ordinal,
58140         time_zone, month, day, hour, minutes, rel_year, rel_month,
58141         rel_day, rel_hour, rel_minutes, rel_seconds
58142         are now long int, not int.  Member seconds is now struct timespec,
58143         not int.  New member timespec_seen.  Members dates_seen, days_seen,
58144         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
58145         not int.
58146         (%union.intval): Now long int, not int.
58147         New member timespec.
58148         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
58149         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
58150         (spec): Now is a timespec or an item list.
58151         (timespec, items): New nonterminals.
58152         (time, rel, relunit, number, get_date):
58153         Add support for fractional seconds.
58154         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
58155         (gmtime, localtime, mktime): Remove decls; not needed with C89.
58156         (to_hour): First arg is now long int, not int.
58157         (to_year): Returns long int, not int.
58158         Don't treat year -70 like 70.
58159         (tm_diff): Returns long int, not int.
58160         (lookup_word): Use bool instead of int when appropriate.
58161         (yylex): Use size_t for count, not int.
58162         Detect overflow when parsing large integer constants.
58163         Add support for fractions.
58164         (get_date): Make pointers 'const' if possible.
58165         Use more-portable code to detect integer overflow.
58166         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
58167         Don't use ctime; it's not reliable if the year has >4 digits.
58168
58169         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
58170         This is for compatibility with BSD.
58171
58172         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
58173         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
58174         From coreutils' system.h.
58175
58176         * lib/userspec.c: Don't include "posixver.h".
58177         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
58178         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
58179         compatible extension.  Simplify code by removing a boolean int
58180         that was always nonzero if a string was nonnull.
58181
58182 2004-03-30  Jim Meyering  <jim@meyering.net>
58183
58184         Merge from coreutils.
58185
58186         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
58187         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
58188         on some systems one must include <grp.h> before it.
58189         Reported by Christian Krackowizer.
58190
58191 2004-03-30  Jim Meyering  <jim@meyering.net>
58192
58193         Merge from coreutils.
58194
58195         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
58196
58197         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
58198         an empty input stream.
58199
58200         * lib/readtokens.c: Include <stdbool.h>.
58201         (readtoken): Use `size_t' rather than int/long.
58202         All callers adjusted.
58203         Use `bool' rather than `int' where appropriate.
58204         Use memset rather than an explicit loop.
58205         Use x2nrealloc rather than xrealloc.
58206         Allow the use of `\0' as a delimiter.
58207         (readtokens): Likewise.
58208         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
58209
58210 2004-03-30  Jim Meyering  <jim@meyering.net>
58211
58212         * m4/realloc.m4: Remove file, since now it does no more than
58213         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
58214         the `configure.ac' section of module/realloc.
58215         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
58216
58217 2004-03-30  Bruno Haible  <bruno@clisp.org>
58218
58219         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
58220         nonnull.
58221
58222 2004-03-29  Paul Eggert  <eggert@twinsun.com>
58223
58224         Merge changes to getloadavg.c from coreutils and Emacs.
58225
58226         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
58227         Define to an expression, not to the empty string.
58228         Include cloexec.h and xalloc.h.
58229         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
58230         Use set_cloexec_flag rather than rolling our own.
58231         * lib/cloexec.c, lib/cloexec.h: New files.
58232
58233 2004-03-29  Paul Eggert  <eggert@twinsun.com>
58234
58235         * m4/cloexec.m4: New file.
58236
58237 2004-03-18  Paul Eggert  <eggert@twinsun.com>
58238
58239         * lib/getopt.h: Sync with libc CVS.
58240
58241 2004-03-18  Paul Eggert  <eggert@twinsun.com>
58242             Bruno Haible  <bruno@clisp.org>
58243
58244         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
58245         mbswidth.
58246
58247 2004-03-18  Paul Eggert  <eggert@twinsun.com>
58248             Bruno Haible  <bruno@clisp.org>
58249
58250         * lib/mbswidth.h: Include <wchar.h> only if
58251         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
58252         <wchar.h>.
58253         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
58254
58255 2004-03-09  Paul Eggert  <eggert@twinsun.com>
58256
58257         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
58258         Sync with libc CVS.
58259         * lib/getopt_int.h: New file, also synced from libc.
58260
58261 2004-03-09  Paul Eggert  <eggert@twinsun.com>
58262
58263         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
58264         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
58265         Bring back getopt.c, getopt.h, getopt1.c.
58266
58267 2004-03-07  Paul Eggert  <eggert@twinsun.com>
58268
58269         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
58270         All uses changed.  Check for sa_sigaction member; this fixes
58271         a bug first reported by Jason Andrade in
58272         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
58273
58274 2004-03-07  Paul Eggert  <eggert@twinsun.com>
58275
58276         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
58277         '#if' expressions.  Unlike the code it replaces, it does not
58278         depend on (defined _SC_PAGESIZE).  However, it does depend on
58279         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
58280         first reported by Jason Andrade in
58281         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
58282
58283 2004-02-25  Simon Josefsson  <jas@extundo.com>
58284
58285         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
58286
58287 2004-02-25  Simon Josefsson  <jas@extundo.com>
58288
58289         * lib/strdup.h: New file.
58290         * lib/strdup.c: Include it.
58291         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
58292         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
58293
58294 2004-02-23  Karl Berry  <karl@gnu.org>
58295
58296         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
58297         (from fencepost.gnu.org:/gd/gnuorg).
58298
58299 2004-02-23  Karl Berry  <karl@gnu.org>
58300
58301         * config/srclistvars.sh (GNUORG) [karl]: redefine.
58302         * config/srclist.txt: add maintain/standards documents.
58303
58304 2004-02-18  Bruno Haible  <bruno@clisp.org>
58305
58306         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
58307         Reported by Derek Robert Price <derek@ximbiot.com>.
58308
58309 2004-02-16  Karl Berry  <karl@gnu.org>
58310
58311         * config/mkinstalldirs, install-sh: update from automake.
58312
58313 2004-02-06  Karl Berry  <karl@gnu.org>
58314
58315         * m4/po.m4: update from gettext 0.14.1.
58316
58317 2004-02-06  Karl Berry  <karl@gnu.org>
58318
58319         * lib/config.charset: update from gettext 0.14.1.
58320
58321 2004-02-05  Paul Eggert  <eggert@twinsun.com>
58322
58323         Add comments and code, prompted by suggestions from Bruno Haible
58324         for sh-quote.
58325         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
58326         describing the enum quoting_style values.
58327         * lib/quotearg.c (quotearg_alloc): New function.
58328         (quotearg_buffer_restyled): Treat lone { and } as special.
58329         Treat = as special.  Work around bug with older shells
58330         that "see" a '\' that is really the 2nd byte of a multibyte char.
58331         Quote empty string with shell_quoting_style.
58332
58333 2004-02-03  Bruno Haible  <bruno@clisp.org>
58334
58335         * m4/pipe.m4: New file, from GNU gettext.
58336
58337 2004-02-03  Bruno Haible  <bruno@clisp.org>
58338
58339         * lib/pipe.h: New file, from GNU gettext.
58340         * lib/pipe.c: New file, from GNU gettext.
58341
58342 2004-01-27  Bruno Haible  <bruno@clisp.org>
58343
58344         * m4/execute.m4: New file, from GNU gettext.
58345
58346 2004-01-27  Bruno Haible  <bruno@clisp.org>
58347
58348         * lib/execute.h: New file, from GNU gettext.
58349         * lib/execute.c: New file, from GNU gettext.
58350         * lib/w32spawn.h: New file, from GNU gettext.
58351
58352 2004-01-24  Paul Eggert  <eggert@twinsun.com>
58353
58354         Merge from diffutils.
58355
58356         * lib/file-type.c (file_type): Add typed memory objects.
58357         * lib/file-type.h (S_TYPEISTMO): New macro.
58358
58359         * lib/c-stack.h (c_stack_action): Remove argv argument.
58360         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
58361         (die): Don't calculate message unless segv_action returns.
58362         (get_stack_location, min_address_from_argv, max_address_from_argv,
58363         volatile stack_base, volatile_stack_size): Remove.
58364         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
58365         that every segmentation violation is a stack overflow.  (Ouch!)
58366         See Debian bug 136249 (still outstanding) for more info about why
58367         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
58368
58369 2004-01-24  Paul Eggert  <eggert@twinsun.com>
58370
58371         Exit-status fix from coreutils.
58372
58373         Use exit_failure consistently in place of EXIT_FAILURE,
58374         so that program exit statuses are consistent on failure.
58375
58376         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
58377         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
58378         * lib/argmatch.h: Comment fix to match the above.
58379         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
58380         Now a macro referring to exit_failure, instead of a separate
58381         variable.  Include "exitfail.h" to get it.
58382         * lib/xstrtol.h: Include "exitfail.h".
58383         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
58384
58385         * lib/long-options.c (parse_long_options): Use prototype
58386         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
58387         for clarity.
58388
58389 2004-01-21  Jim Meyering  <jim@meyering.net>
58390
58391         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
58392         so as not to conflict with a different-sized __mktime_internal
58393         function in GNU libc.
58394         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
58395         Problem building statically-linked `ls' reported by Michael Brunnbauer.
58396
58397 2004-01-20  Karl Berry  <karl@gnu.org>
58398
58399         * config/config.guess: update from config.
58400
58401         * config/srclistvars.sh: GNUWWWLICENSES for karl.
58402
58403 2004-01-20  Bruno Haible  <bruno@clisp.org>
58404
58405         Safer stack allocation.
58406         * lib/setenv.c: Include allocsa.h.
58407         (alloca): Remove fallback definition.
58408         (freea): Remove macro.
58409         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
58410         instead of freea.
58411
58412 2004-01-20  Bruno Haible  <bruno@clisp.org>
58413
58414         * m4/eealloc.m4: New file, from GNU gettext.
58415
58416 2004-01-20  Bruno Haible  <bruno@clisp.org>
58417
58418         * m4/allocsa.m4: New file, from GNU gettext.
58419
58420 2004-01-20  Bruno Haible  <bruno@clisp.org>
58421
58422         * lib/xallocsa.h: New file, from GNU gettext.
58423         * lib/xallocsa.c: New file, from GNU gettext.
58424
58425 2004-01-20  Bruno Haible  <bruno@clisp.org>
58426
58427         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
58428
58429 2004-01-20  Bruno Haible  <bruno@clisp.org>
58430
58431         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
58432         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
58433         specially.
58434
58435 2004-01-20  Bruno Haible  <bruno@clisp.org>
58436
58437         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
58438         patch.
58439
58440 2004-01-20  Bruno Haible  <bruno@clisp.org>
58441
58442         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
58443
58444 2004-01-20  Bruno Haible  <bruno@clisp.org>
58445
58446         * lib/eealloc.h: New file.
58447
58448 2004-01-20  Bruno Haible  <bruno@clisp.org>
58449
58450         * lib/binary-io.h: Avoid warnings on Cygwin.
58451
58452 2004-01-20  Bruno Haible  <bruno@clisp.org>
58453
58454         * lib/allocsa.h: New file, from GNU gettext.
58455         * lib/allocsa.c: New file, from GNU gettext.
58456
58457 2004-01-18  Karl Berry  <karl@gnu.org>
58458
58459         * doc/gpl.texi, doc/lgpl.texi: new files.
58460
58461 2004-01-18  Karl Berry  <karl@gnu.org>
58462
58463         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
58464         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
58465
58466 2004-01-15  Paul Eggert  <eggert@twinsun.com>
58467
58468         Merge from coreutils.
58469
58470         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
58471         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
58472         (gl_DEFAULT_POSIX2_VERSION): Move
58473         the documentation from 'configure' into 'config.hin',
58474         so that 'configure --help' isn't burdened by it and
58475         we don't have to worry about its formatting there.
58476         Reword the documentation so that it's more succinct
58477         and can be run together into a single paragraph.
58478         * m4/same.m4 (gl_SAME): Check for pathconf.
58479
58480 2004-01-15  Paul Eggert  <eggert@twinsun.com>
58481
58482         Merge from coreutils.
58483
58484         * lib/posixver.c: Include posixver.h.
58485
58486         * lib/same.c: Include <stdbool.h>, <limits.h>.
58487         (_POSIX_NAME_MAX): Define if not defined.
58488         (MIN): New macro.
58489         (same_name): If file names are silently truncated, report
58490         that the file names are the same if they are the same after
58491         the silent truncation.
58492
58493         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
58494         conversion function.
58495         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
58496         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
58497         longer needed.
58498
58499 2004-01-15  Jim Meyering  <jim@meyering.net>
58500
58501         Merge from coreutils.
58502
58503         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
58504         if no library is required.
58505         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
58506         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
58507         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
58508         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
58509         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
58510         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
58511         value, $ac_cv_search_crypt, if it's "none required".
58512         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
58513         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
58514         not gl_FUNC_GETLOADAVG.
58515         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
58516         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
58517
58518 2004-01-15  Jim Meyering  <jim@meyering.net>
58519
58520         Merge from coreutils.
58521
58522         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
58523         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
58524         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
58525
58526         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
58527         optional configure-time default.
58528
58529         * lib/version-etc.c (version_etc_copyright): Update copyright date.
58530
58531         * lib/xreadlink.c (xreadlink): Correct outdated comment.
58532
58533 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
58534
58535         Merge from coreutils.
58536
58537         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
58538         value, $ac_cv_search_nanosleep, if it's "none required".
58539
58540 2004-01-14  Paul Eggert  <eggert@twinsun.com>
58541
58542         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
58543         with like-named macro in fnmatch.c.
58544         (EXT): Use an internal constant instead.
58545
58546         Merge fnmatch patches from glibc.
58547         * lib/fnmatch.c (mbsinit): Remove define.
58548         Add libc_hidden_ver (__fnmatch, fnmatch).
58549         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
58550         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
58551
58552 2004-01-14  Karl Berry  <karl@gnu.org>
58553
58554         * config/install-sh: update from automake.
58555
58556 2004-01-13  Karl Berry  <karl@gnu.org>
58557
58558         * config/install-sh: update from automake.
58559
58560 2004-01-09  Karl Berry  <karl@gnu.org>
58561
58562         * config/install-sh: update from automake.
58563
58564 2004-01-05  Karl Berry  <karl@gnu.org>
58565
58566         * config/config.{sub,guess}: update from config.
58567
58568 2003-12-31  Karl Berry  <karl@gnu.org>
58569
58570         * config/depcomp: update from automake.
58571
58572 2003-12-14  Karl Berry  <karl@gnu.org>
58573
58574         * lib/config.charset: update from gettext-runtime.
58575
58576 2003-12-03  Paul Eggert  <eggert@twinsun.com>
58577
58578         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
58579         Bug reported by Alfred M. Szmidt.
58580
58581 2003-12-03  Bruno Haible  <bruno@clisp.org>
58582
58583         * m4/gettext.m4: Upgrade from gettext-0.13.
58584         * m4/po.m4: Upgrade from gettext-0.13.
58585         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
58586         * m4/intmax.m4: New file, from gettext-0.13.
58587         * m4/printf-posix.m4: New file, from gettext-0.13.
58588
58589 2003-11-29  Karl Berry  <karl@gnu.org>
58590
58591         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
58592
58593 2003-11-25  Paul Eggert  <eggert@twinsun.com>
58594             Bruno Haible  <bruno@clisp.org>
58595
58596         * lib/printf-parse.h: Don't include sys/types.h.
58597         (ARG_NONE): New macro.
58598         (char_directive): Change type of *arg_index fields to size_t.
58599         * lib/printf-parse.c: Don't include sys/types.h.
58600         (SSIZE_MAX): Remove macro.
58601         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
58602         Remove unnecessary overflow check.
58603         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
58604         fields.
58605
58606 2003-11-25  Bruno Haible  <bruno@clisp.org>
58607
58608         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
58609
58610 2003-11-25  Bruno Haible  <bruno@clisp.org>
58611
58612         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
58613         gt_TYPE_SSIZE_T.
58614
58615 2003-11-24  Paul Eggert  <eggert@twinsun.com>
58616
58617         * modules/alloca: Remove dependency on xalloc.
58618
58619 2003-11-24  Paul Eggert  <eggert@twinsun.com>
58620
58621         * lib/alloca.c: Remove dependency on xalloc module.
58622         (xalloc_die): Remove.
58623         (memory_full) [!defined emacs]: New macro.
58624         [!defined emacs]: Don't include xalloc.h.
58625         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
58626         address arithmetic overflows.  Change datatypes a bit to avoid
58627         unnecessary casts.
58628
58629 2003-11-22  Jim Meyering  <jim@meyering.net>
58630
58631         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
58632         s/size/size_t/.
58633
58634 2003-11-21  Karl Berry  <karl@gnu.org>
58635
58636         * config/config.{sub,guess}: update from config.
58637
58638 2003-11-18  Karl Berry  <karl@gnu.org>
58639
58640         * config/config.{sub,guess}: update from config.
58641
58642         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
58643
58644 2003-11-17  Paul Eggert  <eggert@twinsun.com>
58645
58646         * README: Mention that S+T cannot overflow if S is the size of
58647         an existing object and T is sufficiently small.
58648
58649 2003-11-17  Jim Meyering  <jim@meyering.net>
58650
58651         On systems without utime and without a utimes function capable of
58652         dealing with a NULL struct utimbuf* argument, this utime replacement
58653         could -- in unusual circumstances -- leak a file descriptor.
58654         * lib/utime.c: Include <unistd.h> and <errno.h>.
58655         (utime_null): Be sure to close `fd' and to preserve errno.
58656         Reported by Geoff Collyer via Arnold Robbins.
58657
58658 2003-11-17  Bruno Haible  <bruno@clisp.org>
58659
58660         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
58661         (Depends-on): Add xsize.
58662
58663 2003-11-17  Bruno Haible  <bruno@clisp.org>
58664
58665         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
58666
58667 2003-11-17  Bruno Haible  <bruno@clisp.org>
58668
58669         * lib/vasnprintf.c (alloca): Remove fallback definition.
58670         (freea): Remove definition.
58671         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
58672         Reported by Paul Eggert.
58673
58674 2003-11-16  Paul Eggert  <eggert@twinsun.com>
58675             Bruno Haible  <bruno@clisp.org>
58676
58677         Protect against address arithmetic overflow.
58678         * lib/printf-args.h: Include stddef.h.
58679         (arguments): Change type of field 'count' to size_t.
58680         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
58681         'unsigned int' where appropriate.
58682         * lib/printf-parse.h: Include sys/types.h.
58683         (char_directive): Change type of *arg_index fields to ssize_t.
58684         (char_directives): Change type of fields 'count', max_*_length to
58685         size_t.
58686         * lib/printf-parse.c: Include sys/types.h and xsize.h.
58687         (SSIZE_MAX): Define fallback value.
58688         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
58689         instead of 'int' where appropriate. Check a_allocated, d_allocated
58690         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
58691         * lib/vasnprintf.c: Include xsize.h.
58692         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
58693         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
58694         overflow. Avoid wraparound when converting a width or precision from
58695         decimal to binary.
58696
58697 2003-11-16  Bruno Haible  <bruno@clisp.org>
58698
58699         Update from GNU gettext.
58700         * lib/printf-parse.c: Generalize to it can be compiled for wide
58701         strings.
58702         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
58703         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
58704         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
58705         SNPRINTF): New macros.
58706         Don't include <alloca.h> if the file is used inside libintl.
58707         (local_wcslen): New function, for Solaris 2.5.1.
58708         (VASNPRINTF): Use it instead of wcslen.
58709
58710 2003-11-16  Bruno Haible  <bruno@clisp.org>
58711
58712         * lib/xsize.h (xmax): New function.
58713         (xsum, xsum3, xsum4): Declare as "pure" functions.
58714
58715 2003-11-12  Paul Eggert  <eggert@twinsun.com>
58716
58717         * modules/xalloc (Files): Undo latest change, since xalloc.h
58718         no longer needs SIZE_MAX or PTRDIFF_MAX.
58719
58720 2003-11-12  Paul Eggert  <eggert@twinsun.com>
58721
58722         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
58723         gl_PTRDIFF_MAX.
58724
58725 2003-11-12  Paul Eggert  <eggert@twinsun.com>
58726
58727         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
58728         "return", to pacify some unknown compiler.  Problem reported
58729         by Joerg Schilling.
58730
58731 2003-11-12  Paul Eggert  <eggert@twinsun.com>
58732
58733         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
58734         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
58735         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
58736         heuristic is just as accurate as far as we know, and it removes a
58737         dependency on size_max.m4 and ptrdiff_max.m4.
58738
58739 2003-11-11  Bruno Haible  <bruno@clisp.org>
58740
58741         * modules/xsize (Files): Add m4/size_max.m4.
58742         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
58743
58744 2003-11-11  Bruno Haible  <bruno@clisp.org>
58745
58746         * m4/size_max.m4: New file.
58747         * m4/ptrdiff_max.m4: New file.
58748         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
58749         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
58750         (gl_XALLOC): Invoke it.
58751
58752 2003-11-11  Bruno Haible  <bruno@clisp.org>
58753
58754         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
58755         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
58756         defined.
58757
58758 2003-11-10  Paul Eggert  <eggert@twinsun.com>
58759
58760         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
58761         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
58762         rejected some allocations of exactly SIZE_MAX - 2 bytes.
58763         From Bruno Haible.
58764         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
58765         not (size_t) -1, since it's defined here.
58766
58767 2003-11-09  Karl Berry  <karl@gnu.org>
58768
58769         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
58770
58771 2003-11-06  Paul Eggert  <eggert@twinsun.com>
58772
58773         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
58774         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
58775         Reject sizes of exactly SIZE_MAX bytes.
58776         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
58777         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
58778
58779 2003-11-05  Bruno Haible  <bruno@clisp.org>
58780
58781         * lib/xsize.h: Include limits.h, to avoid a possible collision with
58782         SIZE_MAX defined in <limits.h> on Solaris.
58783
58784 2003-11-04  Jim Meyering  <jim@meyering.net>
58785
58786         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
58787         variable names, rather than @VAR@.
58788         * modules/poll: Likewise.
58789
58790 2003-11-04  Bruno Haible  <bruno@clisp.org>
58791
58792         * modules/xsize: New file.
58793         * modules/linebreak: Depend on xsize.
58794         * MODULES.html.sh (func_all_modules): Add xsize.
58795
58796 2003-11-04  Bruno Haible  <bruno@clisp.org>
58797
58798         * m4/xsize.m4: New file.
58799
58800 2003-11-04  Bruno Haible  <bruno@clisp.org>
58801
58802         * lib/xsize.h: New file.
58803         * lib/linebreak.c: Include xsize.h.
58804         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
58805         argument for overflow.
58806         Suggested by Paul Eggert.
58807
58808 2003-11-03  Karl Berry  <karl@gnu.org>
58809
58810         * config/config.{guess,sub}: update from config.
58811
58812 2003-11-03  Jim Meyering  <jim@meyering.net>
58813
58814         * modules/userspec (lib_SOURCES): Add userspec.h.
58815         (Include): Add "userspec.h".
58816         Improve description.
58817
58818 2003-11-03  Jim Meyering  <jim@meyering.net>
58819
58820         * lib/userspec.c: Include "userspec.h".
58821         * lib/userspec.h: New file.
58822
58823 2003-11-03  Bruno Haible  <bruno@clisp.org>
58824
58825         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
58826
58827 2003-11-03  Bruno Haible  <bruno@clisp.org>
58828
58829         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
58830         available, to avoid (extremely rare) race condition.
58831         Suggested by Paul Eggert.
58832
58833 2003-11-02  Karl Berry  <karl@gnu.org>
58834
58835         * config/srclist.txt (vasprintf.c): sync broken, sigh.
58836
58837 2003-10-31  Paul Eggert  <eggert@twinsun.com>
58838
58839         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
58840         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
58841         (read_filesystem_list): Set and use me_type_malloced.
58842         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
58843         whatever the type happens to be), for brevity and consistency.
58844         Check for size calculation overflow on Alphas running OSF/1.
58845
58846 2003-10-31  Jim Meyering  <jim@meyering.net>
58847
58848         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
58849
58850         * lib/linebuffer.c: Include <string.h> for declaration of memset.
58851
58852 2003-10-30  Paul Eggert  <eggert@twinsun.com>
58853             Bruno Haible  <bruno@clisp.org>
58854
58855         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
58856         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
58857
58858 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
58859
58860         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
58861         netbsd*-gnu*.  Suggested by Robert Millan.
58862
58863 2003-10-29  Paul Eggert  <eggert@twinsun.com>
58864
58865         * modules/group-member: Depend on stdbool.
58866
58867 2003-10-29  Paul Eggert  <eggert@twinsun.com>
58868
58869         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
58870
58871 2003-10-29  Paul Eggert  <eggert@twinsun.com>
58872
58873         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
58874         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
58875         after the 'gnu' in these cases.  This fixes some bugs in the
58876         previous change, and is based on suggestions by Robert Millan.
58877
58878 2003-10-29  Paul Eggert  <eggert@twinsun.com>
58879
58880         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
58881         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
58882         no longer needed.
58883         * lib/quotearg.c (quotearg_n_options): Use it.
58884         * lib/group-member.c: Include <stdbool.h>.
58885         (free_group_info): Arg is now const *; don't free arg.
58886         (get_group_info): Now returns bool and accepts struct group_info *,
58887         rather than returning a malloc'ed struct group_info *.
58888         All uses changed.  Check for overflow in internal size calculation.
58889
58890         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
58891         rather than xmalloc/xrealloc.
58892         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
58893         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
58894         conformance bug: the old code used a pointer after freeing the
58895         storage that it addressed.
58896         * lib/hash.c (hash_initialize): Simplify the code by using
58897         xalloc_oversized rather than doing it by hand.
58898         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
58899         the buffer preserved.  Use free and xmalloc instead.
58900         * lib/quotearg.c (quotearg_n_options): Likewise.
58901         Use a simpler test for size overflow.  Don't use xalloc_oversized
58902         because unsigned int might be wider than size_t (!); this suggests
58903         that we should switch from unsigned int to size_t for slot numbers.
58904
58905 2003-10-28  Paul Eggert  <eggert@twinsun.com>
58906
58907         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
58908         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
58909         NetBSD kernels.  Requested by Richard Stallman.
58910
58911 2003-10-27  Paul Eggert  <eggert@twinsun.com>
58912
58913         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
58914         to allocate the returned structure.  Do not allocate a subarray,
58915         as x2nrealloc will do that.
58916         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
58917         instead of xnrealloc.
58918         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
58919
58920 2003-10-27  Bruno Haible  <bruno@clisp.org>
58921
58922         * lib/stdbool_.h: Better support for BeOS.
58923
58924 2003-10-26  Paul Eggert  <eggert@twinsun.com>
58925
58926         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
58927         now uses inline.
58928
58929 2003-10-26  Paul Eggert  <eggert@twinsun.com>
58930
58931         * lib/xalloc.h (xalloc_oversized): New static inline function, for
58932         callers that want to do their own size-overflow checking.  Include
58933         <stdbool.h>, since xalloc_oversized returns bool.
58934         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
58935         to use xalloc_oversized.
58936
58937         Add two functions x2realloc, x2nrealloc, for programs that grow
58938         arrays dynamically by doubling their sizes.
58939         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
58940         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
58941         New functions.
58942
58943         Port to C99 semantics for 'inline' of external functions.
58944         Bug reported by Bruno Haible.
58945         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
58946         with the old contents of xnmalloc.
58947         (xnmalloc, xmalloc): Use it.
58948         (xnrealloc_inline): New static inline function,
58949         with the old contents of xnrealloc.
58950         (xnrealloc, xrealloc): Use it.
58951
58952         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
58953         that.
58954
58955 2003-10-26  Karl Berry  <karl@gnu.org>
58956
58957         * config/srclist.txt (COPYING.DOC): no longer available from
58958         /gd/gnuorg; don't know where the ultimate source is.
58959
58960 2003-10-25  Paul Eggert  <eggert@twinsun.com>
58961
58962         Fix several address-calculation bugs in the hash modules,
58963         plus some minor code cleanup.
58964
58965         * lib/hash.h: Include <stdbool.h>, for bool.
58966         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
58967         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
58968         hash_get_n_entries, hash_get_max_bucket_length,
58969         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
58970         hash_rehash): Use size_t rather than unsigned.
58971         * lib/hash.c (struct hash_table, hash_get_n_buckets,
58972         hash_get_n_buckets_used, hash_get_n_entries,
58973         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
58974         hash_get_entries, hash_do_for_each, hash_string, is_prime,
58975         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
58976         Likewise.
58977         (SIZE_MAX): Define if not defined.
58978         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
58979         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
58980         hash_print):
58981         Use const * when possible.
58982         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
58983         (check_tuning): Fix bug: if tuning parameters were very close to
58984         0 or 1, rounding errors could have caused subscript violations.
58985         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
58986         (hash_initialize): Add 'fail:' label
58987         to free table and return NULL, and use it to simplify code.
58988         Use calloc rather than clearing the storage ourself.
58989         (hash_initialize, hash_rehash): Check for arithmetic overflow in
58990         buffer size calculations.
58991         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
58992         Include <stddef.h>, for size_t.
58993         * lib/hash-pjw.c (hash_pjw): Likewise.
58994         Switch to method described by Bruno Haible.
58995         Include <limits.h>, for CHAR_BIT.
58996         (SIZE_BITS): New macro.
58997
58998 2003-10-23  Paul Eggert  <eggert@twinsun.com>
58999
59000         * m4/getline.m4 (AM_FUNC_GETLINE):
59001         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
59002         hosts.  Problem reported by Derek Robert Price in
59003         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
59004         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
59005         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
59006
59007 2003-10-21  Paul Eggert  <eggert@twinsun.com>
59008
59009         * lib/getndelim2.c (getndelim2): When size calculation overflows,
59010         ceiling the allocation at NMAX bytes rather than silently
59011         discarding input bytes before NMAX is reached.  This makes
59012         a difference only if NMAX exceeds SIZE_MAX / 2.
59013
59014         * lib/obstack.c: Merge from glibc.
59015         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
59016         Add libc_hidden_def (_obstack_newchunk).
59017         (_obstack_free) [! defined _LIBC]: Remove.
59018         [defined _LIBC]: Make a strong alias from obstack_free, rather than
59019         a clone of the function body.
59020         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
59021         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
59022
59023         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
59024         glibc.
59025         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
59026         arg to memcpy.
59027
59028         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
59029         (obstack_ptr_grow_fast, obstack_int_grow_fast):
59030         Don't use lvalue casts, as GCC plans to remove support for them
59031         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
59032         was also present in the non-GCC version, indicating that this
59033         code had always been buggy and had never been widely used.
59034         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
59035         Use the fast variant of each macro, rather than copying the
59036         definiens of the fast variant; that way, we'll be more likely to
59037         catch future bugs in the fast variants.
59038
59039 2003-10-20  Bruno Haible  <bruno@clisp.org>
59040
59041         * modules/wait-process: New file.
59042         * MODULES.html.sh (func_all_modules): Add wait-process.
59043
59044 2003-10-20  Bruno Haible  <bruno@clisp.org>
59045
59046         * m4/wait-process.m4: New file.
59047
59048 2003-10-20  Bruno Haible  <bruno@clisp.org>
59049
59050         * lib/wait-process.h: New file, from GNU gettext.
59051         * lib/wait-process.c: New file, from GNU gettext.
59052
59053 2003-10-19  Jim Meyering  <jim@meyering.net>
59054
59055         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
59056         HPUX 10.20.
59057
59058 2003-10-18  Karl Berry  <karl@gnu.org>
59059
59060         * config/config.guess: update from config.
59061
59062 2003-10-16  Paul Eggert  <eggert@twinsun.com>
59063
59064         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
59065         (getgroups): First arg is int, not size_t.
59066         Don't let 'free' mangle errno.
59067
59068 2003-10-16  Paul Eggert  <eggert@twinsun.com>
59069
59070         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
59071
59072 2003-10-16  Karl Berry  <karl@gnu.org>
59073
59074         * config/config.{guess,sub}: update from config.
59075
59076 2003-10-16  Jim Meyering  <jim@meyering.net>
59077
59078         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
59079         memcpy.
59080
59081 2003-10-15  Paul Eggert  <eggert@twinsun.com>
59082
59083         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
59084         (SIZE_MAX): Remove.
59085         (new_exclude, add_exclude_file): Initial size no longer needs to
59086         be a power of 2.
59087         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
59088         our own address arithmetic overflow checking.
59089
59090         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
59091         (fnmatch): Do not alloca more than 2000 wide characters;
59092         instead, use malloc for large buffers.
59093         Check for address arithmetic overflow, and return -1
59094         with errno set to ENOMEM in that case.
59095         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
59096         (NEW_PATTERN): Do not alloca more than 8000 bytes;
59097         instead, return -1.  Check for address arithmetic overflow.
59098
59099 2003-10-14  Paul Eggert  <eggert@twinsun.com>
59100
59101         Handle invalid suffixes and overflow independently, so that
59102         callers can treat them independently as needed.  Fix some bugs in
59103         suffix handling, e.g., "100k@" was not diagnosed as an invalid
59104         suffix for a human-readable blocksize.  The major caller-visible
59105         change is the addition of a new
59106         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
59107         that both overflow and suffix chars were found.
59108
59109         * lib/human.c (humblock): Don't check separately for invalid suffix
59110         char; that is xstrtoumax's job (now that its bug is fixed).
59111         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
59112         INTMAX_MAX]: New macros.
59113         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
59114         TYPE_MAXIMUM): New macros.
59115         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
59116         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
59117         if overflow occurs, as it's what __strtol does and it's more useful
59118         in practice.
59119         (__xstrtol): If __strtol reports some error other than ERANGE,
59120         reflect it to the caller as LONGINT_INVALID.  If it reports
59121         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
59122         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
59123         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
59124         value.
59125         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
59126         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
59127         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
59128         [defined UINTMAX_MAX]: New macros.
59129
59130 2003-10-14  Bruno Haible  <bruno@clisp.org>
59131
59132         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
59133
59134 2003-10-14  Bruno Haible  <bruno@clisp.org>
59135
59136         * m4/sig_atomic_t: New file, from GNU gettext.
59137         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
59138
59139 2003-10-14  Bruno Haible  <bruno@clisp.org>
59140
59141         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
59142         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
59143         Also use volatile where needed.
59144
59145 2003-10-12  Paul Eggert  <eggert@twinsun.com>
59146
59147         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
59148         Change maintainer from Bruno Haible to 'all'.
59149
59150 2003-10-12  Paul Eggert  <eggert@twinsun.com>
59151
59152         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
59153
59154 2003-10-12  Paul Eggert  <eggert@twinsun.com>
59155
59156         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
59157         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
59158         and define in terms of the other primitives.
59159         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
59160         (SIZE_MAX): Define if not already defined.
59161         (array_size_overflow): New function.
59162         (xalloc_die): Abort instead of exiting if 'error' returns.
59163         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
59164         (xmalloc, xrealloc): Use them.
59165         (xcalloc): Check for address arithmetic overflow.
59166         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
59167         a bit faster than strcpy.
59168
59169 2003-10-10  Simon Josefsson  <jas@extundo.com>
59170
59171         * modules/argp (Depends-on): Add restrict and strcase.
59172
59173 2003-10-10  Simon Josefsson  <jas@extundo.com>
59174
59175         * m4/argp.m4: Add AC_C_INLINE.
59176
59177 2003-10-08  Paul Eggert  <eggert@twinsun.com>
59178
59179         Merge getpass from libc, plus a few fixes.
59180
59181         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
59182         Include <stdbool.h>.
59183         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
59184         __fsetlocking to empty.
59185         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
59186         do include <bits/libc-lock.h>.
59187         Do not include <fcntl.h>; not needed.
59188         [_LIBC]: Include <wchar.h>.
59189         (NOTCANCEL_MODE): New macro.
59190         (flockfile, funlockfile) [_LIBC]: New macros.
59191         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
59192         [!_LIBC]: New macros.
59193         (call_fclose): New function.
59194         (getpass): Use it.  Save tty stream separately; this simplifies the
59195         code and makes it more reliable if stdin happens to equal stdout.
59196         Invoke __fsetlocking on tty.
59197         Handle thread cancellation if needed.
59198         Namespace cleanup (use __tcgetattr, __getline).
59199         Use bool for Booleans.
59200         [USE_IN_LIBIO]: Handle wide streams.
59201         [!_LIBC]: Unconditionally do the fseek, since we don't know what
59202         stream might go where.
59203
59204         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
59205         doesn't have to include <stdio.h> before us.
59206         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
59207         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
59208         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
59209         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
59210         if not declared, so that we can use getpass.c code from libc without
59211         rewriting it.
59212         (flockfile, ftrylockfile, funlockfile): New macros.
59213
59214 2003-10-08  Paul Eggert  <eggert@twinsun.com>
59215
59216         * modules/getpass: Depend on stdbool.
59217
59218 2003-10-08  Paul Eggert  <eggert@twinsun.com>
59219
59220         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
59221
59222 2003-10-07  Karl Berry  <karl@gnu.org>
59223
59224         * config/config.{guess,sub}: update from config.
59225
59226 2003-10-06  Jim Meyering  <jim@meyering.net>
59227             Bruno Haible  <bruno@clisp.org>
59228
59229         This lets translators provide better translations for the
59230         "Written by ..." part of --version output.
59231         * lib/version-etc.h: Include stdarg.h.
59232         (version_etc_copyright): Declare as readonly.
59233         (version_etc): Make this function variadic with a NULL-terminated list
59234         of author name strings.
59235         (version_etc_va): New declaration.
59236         * lib/version-etc.c: Include stdarg.h, stdlib.h.
59237         (version_etc_copyright): Declare as readonly.
59238         (version_etc_va): New function. Provide a different translatable string
59239         for each possible number of authors < 10. Abbreviate when there are 10
59240         authors or more.
59241         (version_etc): Make this function variadic. Call version_etc_va.
59242         Suggestion from Gary V. Vaughan.
59243
59244         * lib/long-options.h (parse_long_options): Change prototype: the
59245         authors string is moved to the end and becomes variadic.
59246         * lib/long-options.c: Include stdarg.h.
59247         (parse_long_options): Make this function variadic, too.
59248         Call version_etc_va, not version_etc.
59249
59250 2003-10-06  Bruno Haible  <bruno@clisp.org>
59251
59252         * modules/version-etc-2: Remove file.
59253         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
59254
59255 2003-10-06  Bruno Haible  <bruno@clisp.org>
59256
59257         * modules/fatal-signal: New file.
59258         * MODULES.html.sh (func_all_modules): Add fatal-signal.
59259
59260 2003-10-06  Bruno Haible  <bruno@clisp.org>
59261
59262         * m4/fatal-signal.m4: New file.
59263         * m4/signalblocking.m4: New file, from GNU gettext.
59264
59265 2003-10-06  Bruno Haible  <bruno@clisp.org>
59266
59267         * lib/version-etc-2.h: Remove file.
59268         * lib/version-etc-2.c: Remove file.
59269
59270 2003-10-06  Bruno Haible  <bruno@clisp.org>
59271
59272         * lib/fatal-signal.h: New file, from GNU gettext.
59273         * lib/fatal-signal.c: New file, from GNU gettext.
59274
59275 2003-10-05  Paul Eggert  <eggert@twinsun.com>
59276
59277         * README: Rework advice for preventing empty .o files.
59278         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
59279         not <sys/types.h>.
59280
59281 2003-10-04  Karl Berry  <karl@gnu.org>
59282
59283         * lib/argp*: update from libc.
59284
59285 2003-10-04  Karl Berry  <karl@gnu.org>
59286
59287         * config/config.{guess,sub}: update from config.
59288
59289 2003-10-02  Bruno Haible  <bruno@clisp.org>
59290
59291         * modules/lchown (Include): Add lchown.h.
59292         * modules/time_r (Include): Use "..." syntax.
59293         * modules/xgetdomainname (Include): Add xgetdomainname.h.
59294
59295 2003-10-01  Simon Josefsson  <jas@extundo.com>
59296
59297         * MODULES.html.sh (func_all_modules): Move gethostname from section
59298         'based on' to section 'lacking' POSIX:2001.
59299
59300 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
59301
59302         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
59303         to output mode on the same stream.
59304
59305 2003-09-29  Paul Eggert  <eggert@twinsun.com>
59306
59307         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
59308         Fix arg typo in previous patch.
59309
59310 2003-09-28  Jim Meyering  <jim@meyering.net>
59311
59312         * lib/error.c: Correct cpp indentation.
59313
59314 2003-09-27  Paul Eggert  <eggert@twinsun.com>
59315
59316         * modules/free: New file.
59317
59318 2003-09-27  Paul Eggert  <eggert@twinsun.com>
59319
59320         * m4/free.m4: New file.
59321
59322 2003-09-27  Paul Eggert  <eggert@twinsun.com>
59323
59324         * lib/minmax.h (MIN, MAX)
59325         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
59326         Omit the special code that used __typeof__, since we worry that
59327         it could be more trouble than it's worth.  See:
59328         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
59329         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
59330
59331         * lib/free.c: New file.
59332
59333 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
59334
59335         Trivial fixes to Makefile.am parts of module listings.
59336         * modules/strstr: Append strstr.h to lib_SOURCES.
59337         * modules/strcase: Likewise, for strcase.h.
59338
59339 2003-09-27  Karl Berry  <karl@gnu.org>
59340
59341         * config/mkinstalldirs: update from automake.
59342
59343 2003-09-26  Paul Eggert  <eggert@twinsun.com>
59344
59345         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
59346         (error_tail): Do not loop, reallocating temporary buffer, since
59347         the output cannot contain more wide characters than the input
59348         contains bytes, the size must be big enough already.  This avoids
59349         one potential size overflow calculation.  Check for size overflow
59350         when calculating temporary buffer size.  Free temporary buffer
59351         when done, if it was allocated with malloc; this plugs a memory
59352         leak.  Remove casts from void * to pointers, that are no longer
59353         needed now that we're assuming C89 or better.
59354
59355         Merge error changes from glibc.
59356
59357         * lib/error.c, error.h: Update copyright notice header to match glibc.
59358         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
59359         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
59360         Disable cancellation while printing error.
59361         * lib/error.h: Prepend __ to parameter names.
59362
59363 2003-09-26  Jim Meyering  <jim@meyering.net>
59364
59365         * lib/error.c (error_tail): Move some declarations
59366         into inner scope where the local variables are used.
59367
59368 2003-09-26  Bruno Haible  <bruno@clisp.org>
59369
59370         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
59371         stpncpy().
59372         Don't define stpncpy through config.h; it's now done through stpncpy.h.
59373
59374 2003-09-26  Bruno Haible  <bruno@clisp.org>
59375
59376         * lib/stpncpy.h (gnu_stpncpy): New declaration.
59377         (stpncpy): Define as alias for gnu_stpncpy.
59378         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
59379
59380 2003-09-25  Simon Josefsson  <jas@extundo.com>
59381
59382         * lib/xgetdomainname.h: New file.
59383         * lib/xgetdomainname.c: New file.
59384
59385 2003-09-25  Simon Josefsson  <jas@extundo.com>
59386             Bruno Haible  <bruno@clisp.org>
59387
59388         * modules/getdomainname: New file.
59389         * modules/xgetdomainname: New file.
59390         * MODULES.html.sh (func_all_modules): Add getdomainname,
59391         xgetdomainname.
59392
59393 2003-09-25  Simon Josefsson  <jas@extundo.com>
59394             Bruno Haible  <bruno@clisp.org>
59395
59396         * m4/getdomainname.m4: New file.
59397
59398 2003-09-25  Simon Josefsson  <jas@extundo.com>
59399             Bruno Haible  <bruno@clisp.org>
59400
59401         * lib/getdomainname.h: New file.
59402         * lib/getdomainname.c: New file.
59403
59404 2003-09-25  Karl Berry  <karl@gnu.org>
59405
59406         * lib/argp-fmtstream.c, argp-help.c: update from libc.
59407
59408 2003-09-25  Karl Berry  <karl@gnu.org>
59409
59410         * config/install-sh: update from automake.
59411
59412 2003-09-25  Bruno Haible  <bruno@clisp.org>
59413
59414         * modules/version-etc-2: New file, from modules/version-etc with
59415         modifications.
59416         * MODULES.html.sh (func_all_modules): Add version-etc-2.
59417
59418 2003-09-25  Bruno Haible  <bruno@clisp.org>
59419
59420         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
59421         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
59422
59423 2003-09-24  Simon Josefsson  <jas@extundo.com>
59424
59425         * modules/xgethostname: Add xgethostname.h.
59426
59427 2003-09-24  Paul Eggert  <eggert@twinsun.com>
59428
59429         * lib/linebuffer.c (freebuffer): Don't free the argument, just
59430         the buffer associated with the argument.  Bug reported by
59431         Simon Josefsson.
59432
59433 2003-09-24  Paul Eggert  <eggert@twinsun.com>
59434
59435         * README: Document assumptions that 'int' is at least 32 bits
59436         wide, that integer arithmetic is 2's complement without overflow,
59437         that there are no holes in integer values, that adding sizes of
59438         two nonoverlapping objects can't overflow, and that all-bits-zero
59439         yields scalar zero.  Fix spelling and capitalization typos.
59440
59441 2003-09-19  Karl Berry  <karl@gnu.org>
59442
59443         * lib/argp.h: update from libc.
59444
59445 2003-09-17  Paul Eggert  <eggert@twinsun.com>
59446
59447         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
59448         to avoid spurious warnings like "AC_RUN_IFELSE was called before
59449         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
59450
59451 2003-09-17  Paul Eggert  <eggert@twinsun.com>
59452
59453         * gnulib-tool: Use "test -h", not "test -L", for portability
59454         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
59455         (tags_regexp): Remove, since \| doesn't conform to POSIX.
59456         (sed_extract_prog): Issue s commands one-by-one, rather than
59457         using \| in one s command.
59458
59459 2003-09-16  Paul Eggert  <eggert@twinsun.com>
59460
59461         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
59462         input error, instead of returning NULL the next time we are called
59463         (and therefore losing track of errno).
59464
59465 2003-09-16  Bruno Haible  <bruno@clisp.org>
59466
59467         * gnulib-tool (func_create_testdir): Warn about duplicated
59468         dependencies.
59469
59470 2003-09-15  Paul Eggert  <eggert@twinsun.com>
59471
59472         * modules/argmatch, modules/fatal, modules/obstack,
59473         modules/xalloc, modules/xgethostname: Sort dependencies by
59474         importance, not alphabetically.
59475
59476 2003-09-15  Paul Eggert  <eggert@twinsun.com>
59477
59478         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
59479         fails, so that the caller gets the proper errno.
59480
59481         * lib/readutmp.c (read_utmp): Likewise.
59482         Check for fstat error.  Close stream and free storage
59483         when failing.
59484
59485 2003-09-14  Karl Berry  <karl@gnu.org>
59486
59487         * config/srclist.txt (strdup.c): disable for c89 changes.
59488
59489 2003-09-14  Jim Meyering  <jim@meyering.net>
59490
59491         * lib/getloadavg.c: Correct cpp indentation.
59492         * lib/strdup.c: Likewise.
59493         * lib/vasnprintf.c: Likewise.
59494
59495 2003-09-14  Bruno Haible  <bruno@clisp.org>
59496
59497         * modules/fwriteerror: New file.
59498         * MODULES.html.sh (func_all_modules): Add fwriteerror.
59499
59500 2003-09-14  Bruno Haible  <bruno@clisp.org>
59501
59502         * lib/fwriteerror.h: New file.
59503         * lib/fwriteerror.c: New file.
59504
59505 2003-09-12  Paul Eggert  <eggert@twinsun.com>
59506
59507         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
59508         modules/xgethostname, modules/xalloc: Depend on exit.
59509
59510 2003-09-12  Paul Eggert  <eggert@twinsun.com>
59511
59512         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
59513
59514         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
59515         and AC_MINIX, too, so that their extensions are available.
59516
59517         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
59518         This macro has been superseded by gl_BACKUPFILE.
59519
59520         More patches to assume C89 or better.
59521
59522         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
59523
59524         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
59525         unconditionally.
59526         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
59527         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
59528         Include <string.h>, <stdlib.h> unconditionally.
59529         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
59530         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
59531         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
59532         headers or for string.h.
59533         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
59534         or strtoul.
59535
59536         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
59537         headers.
59538         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
59539         * m4/userspec.m4 (gl_USERSPEC): Likewise.
59540         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
59541         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
59542         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59543         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
59544         memcpy, memset.
59545         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
59546         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
59547         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
59548         strtol.
59549         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
59550         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
59551         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
59552         strtoul.
59553
59554 2003-09-12  Paul Eggert  <eggert@twinsun.com>
59555
59556         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
59557         * lib/obstack.c [!defined _LIBC]: Likewise.
59558         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
59559         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
59560         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
59561
59562         More changes to assume C89 or better.
59563
59564         * lib/error.c (error_tail): Assume vprintf.
59565
59566         * lib/argmatch.c (getenv): Remove decl.
59567         * lib/progreloc.c (get_full_program_name): Define via prototype.
59568         * lib/setenv.c (clearenv): Likewise.
59569         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
59570         needed.
59571         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
59572         (malloc, memcpy): Remove decls.
59573         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
59574         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
59575         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
59576         (memcpy): Remove macro.
59577         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
59578         (__P): Remove.  All uses removed.
59579         (PTR): Remove.  All uses changed to void *.
59580         (CHAR_BIT, NULL): Remove.
59581         (spaces, zeros, memset_space, memset_zero)
59582         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
59583         Remove.
59584         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
59585         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
59586         Define with prototype.
59587         Remove now-unnecessary prototype decl.
59588         (extra_args_spec): Assume ANSI C.  All uses changed.
59589         (extra_args_spec_iso): Remove.
59590         (my_strftime, emacs_strftimeu): Define via prototype.
59591         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
59592         unconditionally.
59593         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
59594         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
59595         (strtoul, strtol): Remove decls.
59596         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
59597         LONG_MAX): Remove.
59598         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
59599         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
59600         (LOCALE_PARAM_PROTO): New macro.
59601         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
59602         (INTERNAL (strtol), strtol): Define with a prototype.
59603         (PARAMS): Remove.  All uses removed.
59604         * lib/tempname.c: Include <string.h> unconditionally.
59605         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
59606         * lib/xgethostname.c (main): Define with a prototype.
59607         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
59608         Include <stdlib.h> unconditionally.
59609         (calloc, malloc, realloc, free): Remove decls.
59610         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
59611         Include <stdlib.h> unconditionally.  Sort include file names.
59612         (strtod): Remove.
59613         (xstrtod): Define with a prototype.
59614         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
59615         (strtol, strtoul): Remove decls.
59616
59617 2003-09-11  Paul Eggert  <eggert@twinsun.com>
59618
59619         More patches to assume C89 or better.
59620         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
59621         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
59622         string.h, memchr, STDC_HEADERS.
59623
59624 2003-09-11  Paul Eggert  <eggert@twinsun.com>
59625
59626         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
59627         Include <stdlib.h>, <string.h> unconditionally.
59628         Remove now-unnecessary cast to char *.
59629         * lib/strnlen.c: Include <string.h> unconditionally.
59630         * lib/yesno.c (yesno): Define with a prototype.
59631
59632 2003-09-11  Bruno Haible  <bruno@clisp.org>
59633
59634         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
59635
59636 2003-09-10  Jim Meyering  <jim@meyering.net>
59637
59638         * lib/error.c: Correct indentation of cpp directives.
59639
59640 2003-09-10  Bruno Haible  <bruno@clisp.org>
59641
59642         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
59643         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
59644         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
59645         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
59646         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
59647         <stdlib.h> and <string.h> checks.
59648         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
59649         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
59650
59651 2003-09-10  Bruno Haible  <bruno@clisp.org>
59652
59653         * lib/strcspn.c: Include <string.h> unconditionally.
59654         * lib/strpbrk.c: Include <string.h> unconditionally.
59655         * lib/strstr.c: Include <string.h> unconditionally.
59656         * lib/unicodeio.c: Include <string.h> unconditionally.
59657         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
59658         * lib/unsetenv.c: Likewise.
59659         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
59660         * lib/yesno.c: Include <stdlib.h> unconditionally.
59661         (rpmatch): Add prototype.
59662
59663 2003-09-09  Paul Eggert  <eggert@twinsun.com>
59664
59665         More patches to assume C89 or better.
59666         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
59667         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
59668         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
59669         or for string.h.
59670         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
59671         stdlib.h.
59672         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
59673         C headers.
59674         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
59675         string.h.
59676         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
59677         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
59678         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
59679         or for string.h.
59680         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
59681         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
59682         C headers.
59683         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
59684         memcpy.
59685         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
59686         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
59687         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
59688         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
59689         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
59690         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
59691         string.h, free.
59692         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
59693         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
59694         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
59695         C headers, or for string.h.
59696         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
59697         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
59698         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
59699         headers, memory.h, stdlib.h, string.h, strings.h.
59700         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
59701         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
59702         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
59703         strchr.
59704         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
59705         headers, memory.h, string.h.
59706         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
59707         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
59708         free.
59709         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
59710         headers.
59711         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
59712         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
59713         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
59714         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
59715         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
59716
59717 2003-09-09  Paul Eggert  <eggert@twinsun.com>
59718
59719         More K&R removal.
59720
59721         * lib/acosl.c (main): Use a prototype.
59722         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
59723         tanl.c: Likewise.
59724
59725         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
59726
59727         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
59728         (getopt, etopt_long, getopt_long_only, _getopt_internal)
59729         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
59730         with a prototype.
59731         * lib/getopt.c (const): Remove macro.
59732         Include <string.h> unconditionally.
59733         (my_index): Remove; all uses changed to strchr.
59734         (strlen): Remove decl.
59735         (exchange): Remove forward decl; no longer needed.
59736         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
59737         Define with prototype.
59738         * lib/getopt1.c (const): Remove macro.
59739         (getopt_long, getopt_long_only, main): Define with prototype.
59740
59741         * lib/getugroups.c: Include <string.h> unconditionally.
59742
59743         * lib/getusershell.c: Include <stdlib.h> unconditionally.
59744         (getusershell, setusershell, endusershell, readname, main):
59745         Define with prototypes.
59746
59747         * lib/group-member.c: Include group-member.h first.
59748         Include <stdlib.h> unconditionally.
59749
59750         * lib/hard-locale.c: Include hard-locale.h first.
59751         Include <stdlib.h>, <string.h> unconditionally.
59752
59753         * lib/hash.c (free, malloc): Remove decls.
59754         Include <stdlib.h> unconditionally.
59755
59756         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
59757         (getenv): Do not declare.
59758
59759         * lib/idcache.c: Include <string.h> unconditionally.
59760
59761         * lib/long-options.c: Include long-options.h first, to test interface.
59762         Include <stdlib.h> unconditionally.
59763
59764         * lib/makepath.c: Include makepath.h first, to test interface.
59765         Include <stdlib.h> and <string.h> unconditionally.
59766
59767         * lib/linebuffer.c: Include <stdlib.h>.
59768         (free): Remove decl.
59769
59770         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
59771         stddef.h. rpl_malloc returns void *, not char *.
59772         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
59773         prototype.
59774
59775         * lib/md5.h: Include <limits.h> unconditionally.
59776         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
59777         (__P): Remove; all uses removed.
59778         * lib/md5.c: Include "md5.h" first.
59779         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
59780         md5_buffer, md5_process_bytes, md5_process_block):
59781         Define with prototypes.
59782         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
59783         * lib/sha.c: Include "sha.h" first.
59784         Include <stdlib.h>, <string.h> unconditionally.
59785
59786         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
59787         * lib/memcmp.c (__ptr_t): Likewise.
59788         * lib/memrchr.c (__ptr_t): Likewise.
59789         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
59790         Include <string.h> unconditionally.
59791         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
59792         * lib/memchr.c: Include <stdlib.h> unconditionally.
59793         * lib/memchr.c (LONG_MAX): Remove.
59794         * lib/memrchr.c (LONG_MAX): Likewise.
59795         * lib/memchr.c (__memchr): Define via a prototype.
59796         * lib/memrchr.c (__memrchr): Likewise.
59797         * lib/memcmp.c (__P): Remove, and remove all uses.
59798         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
59799         Remove forward decls; no longer needed.
59800         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
59801         Use types required by C89 in prototype.
59802
59803         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
59804         * lib/savedir.c: Likewise.
59805         * lib/mkdir.c (free): Remove decl.
59806         * lib/rmdir.c (rmdir): Define with a prototype.
59807         * lib/savedir.c: Include savedir.h first, to test interface.
59808
59809         * lib/mktime.c (STDC_HEADERS): Remove.
59810         Include <stdlib.h>, <string.h> unconditionally.
59811
59812         * lib/modechange.c: Include <stdlib.h> unconditionally.
59813         (malloc): Remove decl.
59814
59815         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
59816         (free): Remove decl.
59817
59818         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
59819         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
59820         (This type really should be intptr_t, but that's a C99ism.)
59821         (_obstack_memcpy): Remove: all uses changed to memcpy.
59822         Include <string.h> unconditionally.
59823         (struct obstack): Assume __STDC__ for types of members
59824         chunkfun, freefun, extra_arg.
59825         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
59826         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
59827         obstack_begin, obstack_specify_allocation,
59828         obstack_specify_allocation_with_arg, obstack_chunkfun,
59829         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
59830         Remove unprototyped decls and the macros that use them.
59831         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
59832         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
59833         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
59834         (defined __STDC__ && __STDC__)]:
59835         Remove nonprototyped code.
59836         Include <stdlib.h> unconditionally.
59837         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
59838         _obstack_allocated_p, _obstack_free, obstack_free,
59839         _obstack_memory_used, print_and_abort):
59840         Define using prototypes.
59841         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
59842         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
59843         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
59844         obstack_next_free, obstack_object_size, obstack_room) [0]:
59845         Remove unused, unprototyped code.
59846
59847         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
59848
59849         * lib/physmem.c (physmem_total, physmem_available, main): Define
59850         with prototypes.
59851
59852         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
59853         (main): Define with a prototype.
59854
59855         * lib/posixver.c (getenv): Remove decl.
59856
59857         * lib/putenv.c (malloc): Returns void *, not char *.
59858         Include <string.h> unconditionally.
59859         (strchr, memcpy, NULL): Do not define.
59860
59861         * lib/readtokens.c: Include readtokens.h first, to test interface.
59862         Include <stdlib.h>, <string.h> unconditionally.
59863         (init_tokenbuffer): Define with a prototype.
59864
59865         * lib/regex.c (PARAMS): Remove.  All uses removed.
59866         All uses of _RE_ARGS removed, too.
59867         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
59868         unconditionally.
59869         (bzero): Assume memset exists.
59870         (memcmp, memcpy, NULL): Remove.
59871         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
59872         char, or assignments to local vars of type signed char.
59873         (init_syntax_once, PREFIX(extract_number_and_incr),
59874         PREFIX(print_partial_compiled_pattern),
59875         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
59876         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
59877         PREFIX(regex_grow_registers), PREFIX(regex_compile),
59878         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
59879         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
59880         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
59881         wcs_compile_range, byte_compile_range, truncate_wchar,
59882         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
59883         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
59884         count_mbs_length, wcs_re_match_2_internal,
59885         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
59886         PREFIX(alt_match_null_string_p),
59887         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
59888         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
59889         regfree, PREFIX(extract_number)): Define with prototype.  Remove
59890         now-unnecessary declaration, if any.
59891         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
59892         regcomp, regexec):
59893         Remove now-unnecessary casts among pointer types.
59894         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
59895
59896         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
59897         (free): Remove decl.
59898
59899         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
59900
59901         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
59902         (free): Remove decl.
59903
59904         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
59905         * lib/xgetcwd.c: Likewise.
59906
59907         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
59908         (free): Remove decl.
59909
59910         * lib/strchrnul.c (strchrnul): Define with a prototype.
59911         Fix bug: c_in was not converted to char before searching.
59912
59913         The following changes are not K&R related:
59914
59915         * lib/group-member.h: Include <sys/types.h>, so that this file is
59916         self-contained.
59917         * lib/makepath.h: Likewise.
59918
59919         * lib/getusershell.c (readname, default_index, line_size, readname):
59920         Use size_t, not int, for sizes.
59921         (readname): If the size overflows, report an error instead of
59922         looping forever.
59923
59924 2003-09-09  Paul Eggert  <eggert@twinsun.com>
59925
59926         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
59927         libc.
59928
59929 2003-09-09  Paul Eggert  <eggert@twinsun.com>
59930
59931         * README: New section: portability guidelines.
59932
59933 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
59934
59935         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
59936         C89 spec.
59937
59938 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
59939
59940         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
59941
59942 2003-09-08  Paul Eggert  <eggert@twinsun.com>
59943
59944         Assume C89 or better; remove K&R cruft.
59945         A few of these changes were first proposed by Derek Robert Price
59946         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
59947
59948         * lib/addext.c: Include <string.h> unconditionally.
59949         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
59950         Don't declare getenv or malloc.
59951
59952         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
59953         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
59954         (NULL): Remove.
59955         (find_stack_direction, alloca): Use prototypes.
59956
59957         * lib/atexit.c (atexit): Define using a prototype.
59958
59959         * lib/basename.c, dirname.c, stripslash.c:
59960         Include <string.h> unconditionally.
59961
59962         * lib/bcopy.c: Include <stddef.h>.
59963         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
59964
59965         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
59966
59967         * lib/error.h (error, error_at_line, error_print_progname)
59968         [! (defined (__STDC__) && __STDC__)]: Remove decls.
59969         * lib/error.c: Include error.h first, to check interface.
59970         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
59971         (VA_START): Remove; all uses changeed to va_start.
59972         (exit, strerror): Remove decls.
59973         (error_print_progname): Prototype uncondionally.
59974         Don't include <errno.h>; no longer needed.
59975         (private_strerror): Remove.
59976         (error_tail): Always define.
59977         (error, error_at_line): Assume C89 or better; always use prototypes.
59978         * lib/fatal.c: Include "fatal.h" first, to test interface.
59979         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
59980         (VA_START): Remove; all uses changed to va_start.
59981         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
59982         this case.
59983         (exit): Remove decl.
59984         (fatal): Prototype unconditionally.  Assume va_start works.
59985         Abort at end, to pacify gcc.
59986
59987         * lib/euidaccess.c (main): Define with a prototype.
59988
59989         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
59990
59991         * lib/exitfail.c: Include <stdlib.h> unconditionally.
59992
59993         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
59994         prototypes.
59995         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
59996         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
59997         (getenv): Remove decl.
59998         (fnmatch): Define using a prototype.
59999         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
60000         (FCT): Define using a prototype.
60001
60002         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
60003
60004         * lib/gethostname.c: Include <stddef.h>.
60005         (gethostname): Define with prototype.  Length is size_t, not int.
60006
60007 2003-09-08  Paul Eggert  <eggert@twinsun.com>
60008
60009         Assume C89 or better; remove K&R cruft.
60010         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
60011         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
60012         string.h, getenv, malloc.
60013         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
60014         headers.
60015         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
60016         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
60017         do not check for strerror.
60018         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
60019         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
60020         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
60021         do not check for doprnt or vprintf.
60022         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
60023         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
60024
60025 2003-09-08  Paul Eggert  <eggert@twinsun.com>
60026
60027         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
60028         getversion.c should have been removed then, but was accidentally
60029         preserved.
60030
60031         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
60032         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
60033
60034 2003-09-08  Karl Berry  <karl@gnu.org>
60035
60036         * config/config.sub, config.guess, srclistvars.sh: update from savannah
60037                 config, forget about prep.
60038
60039         * config/depcomp, missing: update from automake.
60040
60041 2003-09-07  Paul Eggert  <eggert@twinsun.com>
60042
60043         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
60044         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
60045
60046 2003-09-07  Paul Eggert  <eggert@twinsun.com>
60047
60048         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
60049         copy_tm_result.  Bug reported by Simon Josefsson in
60050         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
60051
60052 2003-09-06  Paul Eggert  <eggert@twinsun.com>
60053
60054         * m4/time_r.m4: New file.
60055         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
60056         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
60057         is. Check for timegm declaration.
60058         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
60059         Do not check for gmtime_r.
60060         Replace mktime if __mktime_internal does not exist and if mktime
60061         hasn't been replaced already.
60062
60063 2003-09-06  Paul Eggert  <eggert@twinsun.com>
60064
60065         * lib/time_r.c, lib/time_r.h: New files.
60066
60067         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
60068         __localtime_r.
60069         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
60070         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
60071
60072         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
60073         __gmtime_r.
60074         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
60075         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
60076         Include <time_r.h>.
60077
60078         * lib/timegm.c: Switch to glibc implementation, with the following
60079         changes:
60080         [defined HAVE_CONFIG_H]: Include <config.h>.
60081         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
60082         (__mktime_internal) [!defined _LIBC]: New decl.
60083         (__gmtime_r) [!defined _LIBC]: New macro and function.
60084         (timegm): Use a prototype, since gnulib assumes C89.
60085         Do not bother declaring tmp to be const, as it's not really usefu.
60086         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
60087         (timegm): Declare only if HAVE_DECL_TIMEGM.
60088
60089 2003-09-06  Paul Eggert  <eggert@twinsun.com>
60090
60091         * MODULES.html.sh (func_all_modules): Add time_r.
60092         * modules/time_r: New file.
60093         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
60094         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
60095
60096 2003-09-03  Paul Eggert  <eggert@twinsun.com>
60097
60098         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
60099         Bug reported by Lute Kamstra in
60100         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
60101
60102         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
60103         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
60104         course with correspondingly smaller numbers for tomorrow and
60105         yesterday.  From Tadayoshi Funaba.  Originally installed into
60106         sh-utils on 1999-08-07, but the patch got lost (I guess during the
60107         coreutils merge?).
60108
60109 2003-08-31  Simon Josefsson  <jas@extundo.com>
60110
60111         * modules/timegm: New file.
60112         * MODULES.html.sh (func_all_modules): Add timegm.
60113
60114 2003-08-31  Simon Josefsson  <jas@extundo.com>
60115
60116         * m4/timegm.m4: New file.
60117
60118 2003-08-31  Simon Josefsson  <jas@extundo.com>
60119
60120         * lib/timegm.h: New file.
60121         * lib/timegm.c: New file.  Based on
60122         wget-1.8.2/src/http.c:mktime_from_utc.
60123
60124 2003-08-31  Karl Berry  <karl@gnu.org>
60125
60126         * lib/argp.h: update from libc.
60127
60128 2003-08-28  Bruno Haible  <bruno@clisp.org>
60129
60130         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
60131         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
60132         followed by '#define fnmatch fnmatch_posix' gives an error.
60133
60134 2003-08-28  Bruno Haible  <bruno@clisp.org>
60135
60136         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
60137         warning on QNX, which defines O_BINARY to 000000.
60138
60139 2003-08-27  Jim Meyering  <jim@meyering.net>
60140
60141         * m4/mkstemp.m4: Require that the system mkstemp be able to create
60142         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
60143         would fail after 32.  Reported by Danny Levinson.  Details here:
60144         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
60145
60146 2003-08-24  Bruno Haible  <bruno@clisp.org>
60147
60148         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
60149         MSVC7 <stdio.h> is included later.
60150
60151 2003-08-22  Simon Josefsson  <jas@extundo.com>
60152
60153         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
60154
60155 2003-08-20  Karl Berry  <karl@gnu.org>
60156
60157         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
60158
60159 2003-08-20  Bruno Haible  <bruno@clisp.org>
60160
60161         * modules/progname: New file.
60162         * MODULES.html.sh (func_all_modules): Add progname.
60163
60164 2003-08-20  Bruno Haible  <bruno@clisp.org>
60165
60166         * lib/progname.h: New file, from GNU gettext.
60167         * lib/progname.c: New file, from GNU gettext.
60168         * lib/progreloc.c: New file, from GNU gettext.
60169
60170 2003-08-19  Jim Meyering  <jim@meyering.net>
60171
60172         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
60173         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
60174
60175 2003-08-19  Bruno Haible  <bruno@clisp.org>
60176
60177         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
60178         more.
60179
60180 2003-08-19  Bruno Haible  <bruno@clisp.org>
60181
60182         * lib/xstrdup.c: Assume <string.h> exists.
60183
60184 2003-08-18  Paul Eggert  <eggert@twinsun.com>
60185
60186         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
60187         in makefile rules.
60188
60189 2003-08-18  Jim Meyering  <jim@meyering.net>
60190
60191         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
60192         * m4/lib-ld.m4: Likewise.
60193
60194 2003-08-18  Jim Meyering  <jim@meyering.net>
60195
60196         * lib/setenv.h: Indent nested cpp directive.
60197         * lib/vasnprintf.c: Remove trailing blanks.
60198
60199 2003-08-17  Simon Josefsson  <jas@extundo.com>
60200
60201         * modules/xstrndup: New file.
60202         * MODULES.html.sh (func_all_modules): Add xstrndup.
60203
60204 2003-08-17  Simon Josefsson  <jas@extundo.com>
60205
60206         * modules/argp: Fix autoconf macro name. Add more dependencies.
60207
60208 2003-08-17  Simon Josefsson  <jas@extundo.com>
60209
60210         * m4/xstrndup.m4: New file.
60211
60212 2003-08-17  Simon Josefsson  <jas@extundo.com>
60213
60214         * m4/argp.m4: New file.
60215
60216 2003-08-17  Simon Josefsson  <jas@extundo.com>
60217             Bruno Haible  <bruno@clisp.org>
60218
60219         * lib/xstrndup.h: New file.
60220         * lib/xstrndup.c: New file.
60221
60222 2003-08-17  Bruno Haible  <bruno@clisp.org>
60223
60224         * modules/strndup (Files, Include): Add lib/strndup.h.
60225
60226 2003-08-17  Bruno Haible  <bruno@clisp.org>
60227
60228         * modules/euidaccess (Files): Add lib/euidaccess.h.
60229
60230 2003-08-17  Bruno Haible  <bruno@clisp.org>
60231
60232         * lib/strndup.h: New file.
60233
60234 2003-08-17  Bruno Haible  <bruno@clisp.org>
60235
60236         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
60237         like AC_GNU_SOURCE.
60238         * modules/extensions (configure.ac): Comment out the invocation of
60239         gl_USE_SYSTEM_EXTENSIONS.
60240
60241 2003-08-16  Paul Eggert  <eggert@twinsun.com>
60242
60243         Merges from coreutils, etc.
60244         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
60245         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
60246         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
60247         fixing a typo.
60248         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
60249         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
60250
60251 2003-08-16  Paul Eggert  <eggert@twinsun.com>
60252
60253         Document merge from coreutils.
60254         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
60255         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
60256         * modules/utime: Add m4/utimes-null.m4.
60257
60258 2003-08-16  Paul Eggert  <eggert@twinsun.com>
60259
60260         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
60261         space, undoing this 2003-08-12 change:
60262         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
60263
60264 2003-08-16  Paul Eggert  <eggert@twinsun.com>
60265
60266         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
60267         strtoul.c from libc, undoing this 2003-08-12 change:
60268         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
60269
60270 2003-08-16  Jim Meyering  <jim@meyering.net>
60271
60272         Merges from coreutils.
60273         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
60274         prefix.  Adjust cache variables similarly.  Create 500 rather than
60275         just 300 files, to exercise bug on Darwin6.5, too.
60276         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
60277         $missing_dir.
60278         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
60279         AM_SYS_POSIX_TERMIOS.
60280         Reported by mkc@mathdogs.com.
60281         Also change use of $am_cv_sys_posix_termios
60282         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
60283         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
60284         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
60285         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
60286         in /proc/mounts until it finds one with matching device number.  This
60287         is unnecessary when the FILE argument *is* a mount point.  No stat call
60288         is necessary in that case.  So, disable the statvfs-testing code on
60289         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
60290         as RedHat bug# 84846.
60291         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
60292         to 1MB, so as not to render systems with no stack size limit (e.g.,
60293         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
60294         Include <unistd.h>.  On some systems,
60295         it is required for the definition of _SC_PAGESIZE.
60296
60297 2003-08-16  Jim Meyering  <jim@meyering.net>
60298
60299         Merge from coreutils.
60300         * lib/xstrtoimax.c: #else #if -> #elif.
60301         * lib/xstrtoumax.c: Likewise.
60302
60303 2003-08-16  Jim Meyering  <jim@meyering.net>
60304
60305         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
60306         * m4/utimes.m4: Removed.
60307         * m4/utimes-null.m4: Renamed from utimes.m4.
60308
60309         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
60310         to 1MB, so as not to render systems with no stack size limit (e.g.,
60311         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
60312         Include <unistd.h>.  On some systems,
60313         it is required for the definition of _SC_PAGESIZE.
60314
60315 2003-08-16  Jim Meyering  <jim@meyering.net>
60316         and Paul Eggert  <eggert@cs.ucla.edu>
60317
60318         Merges from coreutils, etc.
60319
60320         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
60321         using the latest version from cvs.  This avoids problems with #line
60322         directives using a vendor (Sun) compiler.
60323         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
60324         Don't set GETGROUPS_LIB here; now it's
60325         done via getgroups.m4's wrapper function.
60326         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
60327         rather than just in sh-util/configure.in, so that the
60328         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
60329         same.
60330         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
60331         AC_FUNC_GETLOADAVG where to find getloadavg.c.
60332         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
60333         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
60334         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
60335         Remove code that is now done by the newly-required macros.
60336         Append $(EXEEXT) to DF_PROG.
60337         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
60338         Do not invoke or require the following here,
60339         since prereq.m4 or some gnulib .m4 now does this for us:
60340         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
60341         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
60342         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
60343         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
60344         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
60345         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
60346         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
60347         AC_FUNC_OBSTACK.
60348         Do not replace the following functions, as this is now the job
60349         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
60350         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
60351         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
60352         atexit getpass, strdup, getpagesize.
60353         Replace 'raise'.
60354         Do not check for the following functions, as this is now the job
60355         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
60356         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
60357         setregid.
60358         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
60359         Check for sys/sysctl.h.
60360         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
60361         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
60362         of checking for ssize_t ourselves.
60363
60364         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
60365         Require every macro that gnulib/modules/* suggests for us.
60366         (jm_PREREQ_ADDEXT): New macro.
60367         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
60368         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
60369
60370         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
60371         (gl_PHYSMEM): Use it.
60372         Also check for `table' function.
60373         Check for new headers and functions.
60374         Add check for sys/sysmp.h.
60375         With suggestions from Kaveh Ghazi.
60376         Ignore headers that are present but cannot be compiled.  This
60377         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
60378         C 5.4.
60379
60380 2003-08-15  Paul Eggert  <eggert@twinsun.com>
60381
60382         Document merge from coreutils.
60383         * modules/userspec: Depend on posixver.
60384         * modules/strftime: Depend on tzset.
60385
60386 2003-08-15  Paul Eggert  <eggert@twinsun.com>
60387
60388         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
60389         rather than tab, after '#' in shell-script copyright notices.
60390         Suggested by Bruno Haible.
60391
60392 2003-08-15  Paul Eggert  <eggert@twinsun.com>
60393
60394         * config/srclist-update: Use three spaces, rather than tab, after '#'
60395         in shell-script copyright notices.  Suggested by Bruno Haible.
60396         Remove unnecessary parenthesization in regular expression.
60397
60398 2003-08-15  Jim Meyering  <jim@meyering.net>
60399
60400         Merge from coreutils.
60401         * lib/xgethostname.c: Include <stdlib.h>.
60402         (xghostname): Don't exit for anything other than memory-related
60403         failure; just return NULL.
60404         * lib/userspec.c: Include "posixver.h".
60405         (parse_user_spec): Accept `.' as a separator only
60406         in pre-POSIX-200112 mode.
60407         * lib/strtoimax.c: Use #elif rather than #else #if.
60408         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
60409         Remove function, now that we can rely on a working tzset function.
60410         [!_LIBC]: Ensure that the required autoconf test has been run.
60411         [!defined _NL_CURRENT && HAVE_STRFTIME]:
60412         Use underlying_strftime for %r.
60413         * lib/sha.c: Merge in some clean-up and optimization changes from
60414         glibc.
60415         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
60416         Ensure that it is a multiple of 64.
60417         Rearrange loop exit tests so as to avoid performing an
60418         additional fread after encountering an error or EOF.
60419         * lib/realloc.c: Update copyright date.
60420
60421 2003-08-15  Jim Meyering  <jim@meyering.net>
60422         and Paul Eggert  <eggert@twinsun.com>
60423
60424         Merge from coreutils.
60425         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
60426         member but strut utmpx does not.  Needed for AIX 4.3.3.
60427         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
60428
60429 2003-08-15  Jim Meyering  <jim@meyering.net>
60430         and Paul Eggert  <eggert@cs.ucla.edu>
60431
60432         Merges from coreutils, etc.
60433         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
60434         Require gl_FUNC_TZSET_CLOBBER.
60435         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
60436         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
60437         members.
60438
60439 2003-08-14  Paul Eggert  <eggert@twinsun.com>
60440
60441         Help the merge from coreutils.
60442         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
60443         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
60444         * m4/tzset.m4: Use it too.
60445
60446 2003-08-14  Paul Eggert  <eggert@twinsun.com>
60447
60448         * modules/tzset: New file.
60449
60450 2003-08-14  Jim Meyering  <jim@meyering.net>
60451
60452         Merges from coreutils.
60453         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
60454         variable names, rather than @FNMATCH_H@.
60455         * modules/alloca: Likewise for $(ALLOCA_H).
60456
60457         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
60458         the three copies of the literal target, `fnmatch.h'.
60459         * modules/alloca (alloca.h): Likewise.
60460
60461 2003-08-14  Jim Meyering  <jim@meyering.net>
60462
60463         Merge from coreutils.
60464         * m4/tzset.m4: New file.
60465         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
60466         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
60467         otherwise, AIX 5.1 systems would end up using the latter.
60468         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
60469         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
60470         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
60471         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
60472
60473 2003-08-14  Jim Meyering  <jim@meyering.net>
60474
60475         Merge from coreutils.
60476         * lib/obstack.h: Whitespace changes.
60477         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
60478         and xcalloc return values.
60479         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
60480         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
60481         hang on OSF/1 5.1 for DIR on both local and remote file systems.
60482         Reported by (and fix confirmed by) Nelson H. F. Beebe.
60483         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
60484         error from mntctl.
60485         Use mntctl's return value to drive the entry-processing loop, since
60486         we can't rely on the value of the vmt_length member in the last
60487         entry.  On some systems doing so could result in exhausting
60488         virtual memory.  Based in part on a patch from Mike Jetzer.
60489
60490 2003-08-14  Jim Meyering  <jim@meyering.net>
60491         and Paul Eggert  <eggert@twinsun.com>
60492
60493         Merges from coreutils, plus other fixes.
60494         * lib/physmem.c: Merge in portability changes from gcc/libiberty
60495         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
60496         for credits and details.  Thanks to Kaveh Ghazi for helping
60497         to keep these files in sync.
60498         (ARRAY_SIZE): Define it.
60499         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
60500         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
60501         (memcasecmp): Don't assume size_t fits in unsigned int.
60502         Remove casts and duplicate code.
60503         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
60504         (memcpy): Remove definition.
60505         Merge in some clean-up and optimization changes from glibc.
60506         [BLOCKSIZE]: Move definition to top of file.
60507         Ensure that it is a multiple of 64.
60508         Rearrange loop exit tests so as to avoid performing an
60509         additional fread after encountering an error or EOF.
60510         * lib/md5.h (md5_uintptr): Define.
60511         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
60512         return to the initial working directory.  Preserve errno
60513         for caller.
60514         * lib/idcache.c: Include "xalloc.h".
60515         (xmalloc, xrealloc): Remove decls.
60516         (getuser): Remove casts no longer required in C89.
60517         * lib/human.c: Include stdio.h, for sprintf.
60518         * lib/group-member.c: Include "xalloc.h".
60519         (xmalloc, xrealloc): Remove decls.
60520         (get_group_info): Remove casts no longer required in C89.
60521         * lib/getusershell.c (readname): Remove casts no longer required in
60522         C89.
60523         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
60524         * lib/getline.c: Whitespace fix, from coreutils.
60525
60526 2003-08-13  Paul Eggert  <eggert@twinsun.com>
60527
60528         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
60529         Check for isascii.
60530
60531         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
60532         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
60533         Undo previous (whitespace-only) change.
60534
60535 2003-08-13  Paul Eggert  <eggert@twinsun.com>
60536
60537         * lib/exclude.c: Include <ctype.h>
60538         (IN_CTYPE_DOMAIN): New macro.
60539         (is_space): New fn.
60540         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
60541         and empty lines.
60542
60543         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
60544         Undo previous (whitespace-only) change.
60545
60546 2003-08-13  Paul Eggert  <eggert@twinsun.com>
60547
60548         * config/srclist-update: Change update back to the old behavior,
60549         leaving whitespace alone.  Use one 'sed' command rather than a
60550         pipeline.
60551         (fixlicense): Now a variable, not a function.
60552         (remove_trailing_blanks): Remove.
60553         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
60554         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
60555         Undo previous (whitespace-only) change.
60556
60557 2003-08-12  Paul Eggert  <eggert@twinsun.com>
60558
60559         Merge from coreutils.
60560         * modules/euidaccess: Add lib_SOURCES, include for new
60561         file euidaccess.h
60562
60563 2003-08-12  Paul Eggert  <eggert@twinsun.com>
60564
60565         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
60566         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
60567         Normalize leading white space and remove trailing white space.
60568
60569         Merge from coreutils
60570         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
60571
60572         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
60573         0.12.1.  These files are now being upgraded automatically by
60574         ../config/srclist-update.
60575
60576 2003-08-12  Paul Eggert  <eggert@twinsun.com>
60577
60578         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
60579         Normalize leading white space and remove trailing white space.
60580         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
60581         notice, as per ../config/srclist-update.
60582
60583         Merge from coreutils.
60584         * lib/euidaccess.h: New file.
60585         * lib/euidaccess.c: Include it.
60586         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
60587         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
60588         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
60589
60590 2003-08-12  Paul Eggert  <eggert@twinsun.com>
60591
60592         * config/srclist-update: Add copyright notice.
60593         (remove_id_lines, remove_trailing_blanks): New constants.
60594         (fixfile): Use them to normalize spacing a bit in copied files.
60595         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
60596         Normalize leading white space and remove trailing white space.
60597
60598         * config/texinfo.tex: Sync with texinfo.
60599
60600         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
60601         strtoul.c from libc, to merge coreutils whitespace changes.
60602
60603         * config/srclist.txt: Get the following m4 files from gettext:
60604         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
60605         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
60606         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
60607         wint_t.m4.
60608
60609 2003-08-12  Karl Berry  <karl@gnu.org>
60610
60611         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
60612         been made.
60613
60614 2003-08-11  Paul Eggert  <eggert@twinsun.com>
60615
60616         * modules/gnu-source, m4/gnu-source.m4:
60617         Remove; we're assuming Autoconf 2.54 or later now.
60618         Suggested by Bruno Haible.
60619         * MODULES.html.sh (func_all_modules): Remove gnu-source.
60620
60621 2003-08-11  Bruno Haible  <bruno@clisp.org>
60622
60623         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
60624
60625 2003-08-11  Bruno Haible  <bruno@clisp.org>
60626
60627         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
60628         (vasnprintf): Use it instead of wcslen.
60629
60630 2003-08-11  Bruno Haible  <bruno@clisp.org>
60631
60632         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
60633         value to ensure that _Bool promotes to int. Use #define for _Bool when
60634         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
60635
60636 2003-08-10  Karl Berry  <karl@gnu.org>
60637
60638         * lib/regex.h: update from libc (whitespace fix).
60639
60640 2003-08-09  Paul Eggert  <eggert@twinsun.com>
60641
60642         Merge some files from coreutils.  These changes were
60643         originally made by Jim Meyering.
60644         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
60645         many older Unixes require this.
60646         * lib/alloca.c (alloca): Remove cast to argument of free;
60647         no longer needed in C89.
60648         * lib/alloca_.h, regex.h: Fix white space to match
60649         what GNU indent does.
60650
60651 2003-08-09  Paul Eggert  <eggert@twinsun.com>
60652
60653         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
60654         apparently Emacs's Unicode mode got confused before my 2003-08-05
60655         checkin.
60656
60657 2003-08-08  Paul Eggert  <eggert@twinsun.com>
60658
60659         * m4/extensions.m4: New file.
60660         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
60661         Require gl_USE_SYSTEM_EXTENSIONS.
60662         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
60663         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
60664
60665 2003-08-08  Paul Eggert  <eggert@twinsun.com>
60666
60667         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
60668         * modules/extensions, modules/gnu-source: New files.
60669         * modules/timespec, modules/unlocked-io: Depend on extensions.
60670
60671 2003-08-07  Paul Eggert  <eggert@twinsun.com>
60672
60673         * modules/restrict: New file.
60674         * MODULES.html.sh (func_all_modules): Add restrict.
60675         * modules/regex: Depend on restrict.
60676
60677 2003-08-07  Paul Eggert  <eggert@twinsun.com>
60678
60679         * m4/restrict.m4: New file.
60680         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
60681
60682 2003-08-07  Bruno Haible  <bruno@clisp.org>
60683
60684         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
60685         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
60686
60687 2003-08-07  Bruno Haible  <bruno@clisp.org>
60688
60689         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
60690         makes the module 'getndelim2' compatible with the module 'getline'.
60691
60692 2003-08-05  Paul Eggert  <eggert@twinsun.com>
60693
60694         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
60695         byte with "\201" to avoid glitches when editing that source file
60696         with multi-gnome-terminal.
60697
60698 2003-08-05  Paul Eggert  <eggert@twinsun.com>
60699
60700         * lib/bumpalloc.h: Remove.
60701
60702 2003-08-05  Paul Eggert  <eggert@twinsun.com>
60703
60704         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
60705         * modules/bumpalloc: Remove.
60706
60707 2003-08-04  Paul Eggert  <eggert@twinsun.com>
60708
60709         * lib/getloadavg.c: Change copyright notice and spacing to conform to
60710         GNU coding style.
60711
60712         Merge from coreutils.
60713         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
60714         1. From glibc.
60715         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
60716         from Karl Berry, implemented by Jim Meyering.
60717         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
60718         from Dmitry V. Levin.
60719         Remove anachronistic cast of xrealloc.
60720         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
60721         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
60722         type. Otherwise, it wouldn't compile with at least /bin/cc on
60723         ymp-cray-unicos9.0.2.X.
60724         Combine two mostly-identical uses of alloca into one.
60725         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
60726
60727 2003-08-04  Dave Love  <d.love@dl.ac.uk>
60728
60729         [From Emacs.]
60730
60731         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
60732         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
60733         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
60734         obsolete NLIST_NAME_UNION.
60735         [__GNU__]: Undef BSD and FSCALE.
60736         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
60737
60738 2003-08-03  Paul Eggert  <eggert@twinsun.com>
60739
60740         * lib/stdbool_.h (_Bool): Make it signed char, instead of
60741         an enum type, so that it's guaranteed to promote to int.  See:
60742         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
60743
60744 2003-08-03  Karl Berry  <karl@gnu.org>
60745
60746         * config/depcomp: update from automake.
60747
60748 2003-07-31  Paul Eggert  <eggert@twinsun.com>
60749
60750         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
60751         (strerror): Don't assume that a printable int fits in 14 bytes.
60752
60753 2003-07-31  Bruno Haible  <bruno@clisp.org>
60754
60755         * modules/getpass-gnu: New file.
60756         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
60757
60758 2003-07-31  Bruno Haible  <bruno@clisp.org>
60759
60760         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
60761
60762 2003-07-24  Karl Berry  <karl@gnu.org>
60763
60764         * config/missing: update from automake.
60765
60766 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
60767             Bruno Haible  <bruno@clisp.org>
60768
60769         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
60770         * lib/getline.c (getline, getdelim): Likewise.
60771         Remove _GNU_SOURCE define; now it's defined in config.h through
60772         m4/getline.m4.
60773
60774 2003-07-23  Karl Berry  <karl@gnu.org>
60775
60776         * config/config.sub: update from prep.
60777
60778 2003-07-22  Paul Eggert  <eggert@twinsun.com>
60779
60780         * modules/xalloc (Depends-on): Add exitfail.
60781         * modules/xmemcoll: Likewise.
60782
60783 2003-07-22  Paul Eggert  <eggert@twinsun.com>
60784
60785         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
60786         over-parenthesization in macros.
60787
60788         Sync with coreutils.
60789
60790         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
60791         required by C99.
60792
60793         Use `exit_failure' for xalloc and xmemcoll instead of their own
60794         private exit-failure variables.
60795         * lib/xalloc.h (xalloc_exit_failure): Remove.
60796         * lib/xmalloc.c: Likewise.  Include exitfail.h.
60797         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
60798         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
60799         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
60800         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
60801
60802 2003-07-20  Jim Meyering  <jim@meyering.net>
60803
60804         * modules/closeout (Depends-on): Add exitfail.
60805         Suggestion from Bruno Haible.
60806
60807 2003-07-19  Karl Berry  <karl@gnu.org>
60808
60809         * config/config.sub: update from prep.
60810
60811 2003-07-18  Paul Eggert  <eggert@twinsun.com>
60812
60813         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
60814         Remove.
60815         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
60816         to test that it can stand by itself.  Include "exitfail.h".
60817         Clients should set exit_failure instead.
60818         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
60819
60820 2003-07-18  Bruno Haible  <bruno@clisp.org>
60821
60822         * modules/getndelim2: New file.
60823         * modules/getline: Share files with module getndelim2.
60824         * modules/getnline: Depend on getndelim2 instead of sharing files with
60825         it. Add getnline.c to lib_SOURCES.
60826         * MODULES.html.sh (func_all_modules): Add getndelim2.
60827
60828 2003-07-18  Bruno Haible  <bruno@clisp.org>
60829
60830         * m4/getndelim2.m4: New file.
60831         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
60832         invoke gl_PREREQ_GETNDELIM2.
60833         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
60834         gl_PREREQ_GETNDELIM2.
60835         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
60836         gl_GETNDELIM2.
60837
60838 2003-07-18  Bruno Haible  <bruno@clisp.org>
60839
60840         * lib/getndelim2.h: New file.
60841         * lib/getndelim2.c: Make into a module of its own. Include config.h,
60842         getndelim2.h.
60843         (getndelim2): Make non-static. Change return type to ssize_t.
60844         * lib/getline.h: Change argument names.
60845         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
60846         * lib/getnline.c: Include getndelim2.h.
60847
60848 2003-07-18  Andreas Schwab  <schwab@suse.de>
60849
60850         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
60851
60852 2003-07-17  Karl Berry  <karl@gnu.org>
60853
60854         * config/config.sub: update from prep.
60855
60856 2003-07-17  Bruno Haible  <bruno@clisp.org>
60857
60858         * modules/getnline: New file.
60859         * modules/getline: Add lib/getndelim2.c to source file list.
60860         * MODULES.html.sh (func_all_modules): Add getnline.
60861
60862 2003-07-17  Bruno Haible  <bruno@clisp.org>
60863
60864         * m4/getnline.m4: New file.
60865
60866 2003-07-17  Bruno Haible  <bruno@clisp.org>
60867
60868         * m4/Makefile.am.in: Remove file.
60869         * m4/Makefile.am: Remove file.
60870         * m4/Makefile.in: Remove file.
60871
60872 2003-07-17  Bruno Haible  <bruno@clisp.org>
60873
60874         * lib/getnline.h: New file.
60875         * lib/getnline.c: New file.
60876         * lib/getndelim2.c: New file, extracted from getline.c.
60877         (getndelim2): Renamed from getdelim2, with added nmax argument.
60878         * lib/getline.c: Include getndelim2.c.
60879         (getdelim2): Moved out to getndelim2.c.
60880         (getline, getdelim): Update.
60881
60882 2003-07-17  Bruno Haible  <bruno@clisp.org>
60883
60884         * lib/Makefile.am: Remove file.
60885         * lib/Makefile.in: Remove file.
60886
60887 2003-07-17  Bruno Haible  <bruno@clisp.org>
60888
60889         * configure.in: Remove file.
60890         * Makefile.in: Remove file.
60891
60892 2003-07-17  Bruno Haible  <bruno@clisp.org>
60893
60894         * MODULES.html.sh: Put the </BODY> right before </HTML>.
60895
60896 2003-07-16  Karl Berry  <karl@gnu.org>
60897
60898         * config/srclist-update: was running fixlicense twice, which caused
60899                 texinfo.tex to be nullified for some reason.  Simplify,
60900                 $gplsrc is no longer needed as far as I can see?
60901
60902 2003-07-16  Jim Meyering  <jim@meyering.net>
60903
60904         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
60905
60906 2003-07-15  Paul Eggert  <eggert@twinsun.com>
60907
60908         * config/srclist.txt: Get the following files from gettext-runtime/intl
60909         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
60910         ref-del.sin.  From Bruno Haible.
60911         * config/srclist-update (fixfile): Change grep pattern again, since the
60912         previous fix didn't work (there was another trailing $).  Use
60913         '[$]' to escape the $s.
60914
60915 2003-07-15  Karl Berry  <karl@gnu.org>
60916
60917         * lib/vasnprintf.c: update from gettext.
60918
60919 2003-07-15  Karl Berry  <karl@gnu.org>
60920
60921         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
60922         gets expanded when surrounded by '$'.
60923
60924 2003-07-15  Jim Meyering  <jim@meyering.net>
60925
60926         * modules/save-cwd: Don't depend on error.  From Derek Price.
60927
60928 2003-07-15  Jim Meyering  <jim@meyering.net>
60929
60930         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
60931
60932 2003-07-14  Simon Josefsson  <jas@extundo.com>
60933
60934         * modules/mempcpy: New file.
60935         * MODULES.html.sh (func_all_modules): Add mempcpy.
60936
60937 2003-07-14  Simon Josefsson  <jas@extundo.com>
60938
60939         * m4/mempcpy.m4: New file.
60940
60941 2003-07-14  Simon Josefsson  <jas@extundo.com>
60942
60943         * lib/mempcpy.h: New file.
60944         * lib/mempcpy.c: New file.
60945
60946 2003-07-14  Paul Eggert  <eggert@twinsun.com>
60947
60948         * modules/getdate, modules/posixtm: Depend on mktime.
60949
60950 2003-07-14  Paul Eggert  <eggert@twinsun.com>
60951
60952         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
60953         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
60954         unicodeio.c, unicodeio.h, unlocked-io.h:
60955         Switch from LGPL to GPL.
60956
60957 2003-07-14  Paul Eggert  <eggert@twinsun.com>
60958
60959         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
60960         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
60961         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
60962         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
60963         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
60964         updated automatically by ../config/srclist-update.  This changes
60965         their license from LPGL to GPL.
60966
60967 2003-07-14  Paul Eggert  <eggert@twinsun.com>
60968
60969         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
60970         assumed to refer to the root of the most recent stable gettext version.
60971         * config/srclistvars.sh: Add defaults for eggert.
60972         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
60973         Match "This program" as well as "The program".  This is needed
60974         for gettext.
60975
60976 2003-07-14  Jim Meyering  <jim@meyering.net>
60977
60978         Don't emit diagnostics.  Let callers do that.
60979         * lib/save-cwd.c: Don't include "error.h".
60980         (save_cwd): Don't call error.  Ensure that errno is valid
60981         when returning nonzero.
60982
60983         * lib/save-cwd.h (restore_cwd): Update prototype.
60984         * lib/save-cwd.c (restore_cwd): Remove two parameters.
60985         Simplify.  Don't call error upon failure.  Let callers do that.
60986         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
60987         when auditing is enabled.  But don't bother updating the #if.
60988
60989 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
60990
60991         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
60992         it breaks C++ compilation.
60993         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
60994
60995 2003-07-10  Simon Josefsson  <jas@extundo.com>
60996
60997         * modules/strchrnul (Makefile.am): Add strchrnul.h.
60998
60999 2003-07-10  Jim Meyering  <jim@meyering.net>
61000
61001         * m4/clock_time.m4: Remove trailing blank.
61002         * m4/intmax_t.m4: Likewise.
61003
61004 2003-07-10  Jim Meyering  <jim@meyering.net>
61005
61006         * lib/vasnprintf.c: Remove trailing blanks.
61007         Make cpp indentation consistent.
61008
61009 2003-07-09  Paul Eggert  <eggert@twinsun.com>
61010
61011         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
61012         posixver.c, strftime.c, strnlen.c, strverscmp.c:
61013         Switch from LGPL to GPL.
61014
61015 2003-07-09  Paul Eggert  <eggert@twinsun.com>
61016
61017         * config/srclist.txt: Sort sublists.  Add
61018         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
61019         that differ from gnulib for one reason or another; we'd like this list
61020         to be smaller but for now let's document what we have.
61021
61022 2003-07-08  Paul Eggert  <eggert@twinsun.com>
61023
61024         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
61025         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
61026         and sweeter "eval x=$x".
61027         * config/srclist.txt: Get lib/argp* from glibc.
61028
61029 2003-07-07  Paul Eggert  <eggert@twinsun.com>
61030
61031         * lib/mktime.c: Fix some boundary cases and remove need for floating
61032         point.
61033
61034         Issue a compile-time diagnostic if time_t is floating point, or if
61035         two's complement arithmetic is not in effect, or if arithmetic
61036         right shift does not propagate the sign.  These assumptions were
61037         all in the original code but they weren't checked.
61038
61039         (TIME_T_MIDPOINT, verify): New macros.
61040         (__isleap): Remove; it has integer overflow problems.
61041         (leapyear): New function, without those problems.
61042         (ydhms_tm_diff): Remove; splitting into two parts.
61043         (ydhms_diff): New function, containing the arithmetic part of
61044         the old ydhms_tm_diff function.  Issue a compile-time
61045         diagnostic if we are not using C99 integer division.
61046         Avoid casts when possible.
61047         (guess_time_tm): New function, containing the checking part of
61048         the old ydhms_tm_diff function.  Return the new value, rather than
61049         the difference between it and the old.  Accept a new argument T
61050         so that *T specifies the old value.  Check for overflow in the result.
61051
61052         (__mktime_internal): Use a time_t offset, not a long int offset.
61053         This undoes the 2003-06-04 change, which is no longer needed now
61054         that we have better overflow checking.
61055         (localtime_offset): Likewise.
61056
61057         (__mktime_internal): Avoid harmful overflow on hosts where time_t
61058         and long are 64-bit but int is only 32-bit.
61059         (ydhms_diff): Use long int to store year1 and yday1.
61060         Issue a compile-time diagnostic if long int is not wide enough.
61061
61062         (__mktime_internal): Use long int to store adjusted year and yday.
61063         Use plain C rather than preprocessor commands, if that doesn't
61064         affect efficiency.
61065         Check for overflow (and try to repair) after each probe
61066         rather than checking only at the very end.  This avoids some bugs
61067         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
61068         does not equal GMT offset at maximum time).
61069         Use integer to check for overflow rather than floating point; this
61070         is more portable to non-IEEE hosts, and is a tad faster.
61071         When we detect that we are oscillating between two values,
61072         don't check whether tm_isdst has the requested value, since
61073         we already know the answer.  When tm_isdst has the wrong value,
61074         use a different heuristic to find the right one, based on the
61075         extreme values actually observed in practice in tz2003a,
61076         rather than the (overly optimistic) "previous 3 calendar quarters".
61077
61078         (not_equal_tm, print_tm, check_result): Use "const T" rather than
61079         "T const" to accommodate glibc style.
61080         (check_result): Use less-confusing report format.  "long" -> "long int.
61081         (main): Likewise.
61082         Don't loop if the iteration overflows time_t.
61083         Allow a negative step in the iteration.
61084
61085 2003-07-06  Karl Berry  <karl@gnu.org>
61086
61087         * config/depcomp: update from automake.
61088         * config/config.sub: update from prep.
61089
61090 2003-07-03  Karl Berry  <karl@gnu.org>
61091
61092         * config/config.guess: update from prep.
61093
61094 2003-07-01  Paul Eggert  <eggert@twinsun.com>
61095
61096         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
61097         xreadlink.c now includes it unconditionally.
61098
61099 2003-07-01  Paul Eggert  <eggert@twinsun.com>
61100
61101         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
61102         having it depend on HAVE_SYS_TYPES_H.
61103
61104 2003-07-01  Bruno Haible  <bruno@clisp.org>
61105
61106         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
61107         <sys/types.h> should be sufficient.
61108         Reported by Paul Eggert.
61109
61110 2003-06-26  Karl Berry  <karl@gnu.org>
61111
61112         * config/depcomp: update from automake.
61113
61114 2003-06-26  Bruno Haible  <bruno@clisp.org>
61115
61116         * modules/human: Depend on module stdbool.
61117
61118 2003-06-25  Bruno Haible  <bruno@clisp.org>
61119
61120         * modules/readlink: New file.
61121         * modules/xreadlink: Depend on it.
61122         * MODULES.html.sh (func_all_modules): Add readlink.
61123
61124 2003-06-25  Bruno Haible  <bruno@clisp.org>
61125
61126         * m4/readlink.m4: New file.
61127
61128 2003-06-25  Bruno Haible  <bruno@clisp.org>
61129
61130         * lib/readlink.c: New file.
61131
61132 2003-06-22  Karl Berry  <karl@gnu.org>
61133
61134         * config/srclist.txt: update mkinstalldirs from automake.
61135         * config/mkinstalldirs: update.
61136
61137 2003-06-22  Bruno Haible  <bruno@clisp.org>
61138
61139         Portability to mingw32.
61140         * m4/ssize_t.m4: New file, from GNU gettext.
61141         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
61142         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
61143
61144 2003-06-22  Bruno Haible  <bruno@clisp.org>
61145
61146         * modules/safe-read: Add m4/ssize_t.m4.
61147         * modules/xreadlink: Add m4/ssize_t.m4.
61148
61149 2003-06-20  Bruno Haible  <bruno@clisp.org>
61150
61151         Assume C89, so PARAMS isn't needed.
61152         * lib/unicodeio.h (PARAMS): Remove.
61153         * lib/unicodeio.c: Don't use PARAMS.
61154
61155 2003-06-18  Karl Berry  <karl@gnu.org>
61156
61157         * config/config.{guess,sub}: update from prep.
61158
61159 2003-06-18  Jim Meyering  <jim@meyering.net>
61160
61161         Merge changes from coreutils.
61162         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
61163         Remove explicit declarations of xmalloc and realloc.
61164         Include xalloc.h.
61165         (read_utmp): Remove anachronistic cast of xmalloc.
61166
61167 2003-06-17  Paul Eggert  <eggert@twinsun.com>
61168
61169         Assume C89, so PARAMS isn't needed.
61170         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
61171         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
61172         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
61173         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
61174         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
61175         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
61176         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
61177         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
61178         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
61179         lib/xstrtod.h, lib/xstrtol.h: Likewise.
61180         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
61181         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
61182         no longer needed. Anyway, config.h should always be included before any
61183         other file.
61184
61185 2003-06-11  Simon Josefsson  <jas@extundo.com>
61186
61187         * modules/sysexits: New file.
61188         * MODULES.html.sh (func_all_modules): Add sysexits.
61189
61190 2003-06-11  Simon Josefsson  <jas@extundo.com>
61191
61192         * lib/sysexit_.h: New file.
61193
61194 2003-06-11  Derek Price  <derek@ximbiot.com>
61195
61196         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
61197         necessary.
61198
61199 2003-06-11  Bruno Haible  <bruno@clisp.org>
61200
61201         * m4/sysexits.m4: New file.
61202
61203 2003-06-10  Simon Josefsson  <jas@extundo.com>
61204
61205         * lib/argp.h: New file, from glibc.
61206         * lib/argp-ba.c: New file, from glibc.
61207         * lib/argp-eexst.c: New file, from glibc.
61208         * lib/argp-fmtstream.c: New file, from glibc.
61209         * lib/argp-fmtstream.h: New file, from glibc.
61210         * lib/argp-fs-xinl.c: New file, from glibc.
61211         * lib/argp-help.c: New file, from glibc.
61212         * lib/argp-namefrob.h: New file, from glibc.
61213         * lib/argp-parse.c: New file, from glibc.
61214         * lib/argp-pv.c: New file, from glibc.
61215         * lib/argp-pvh.c: New file, from glibc.
61216         * lib/argp-xinl.c: New file, from glibc.
61217
61218 2003-06-10  Simon Josefsson  <jas@extundo.com>
61219
61220         * modules/strchrnul: New file.
61221
61222 2003-06-10  Simon Josefsson  <jas@extundo.com>
61223
61224         * modules/argp: New file.
61225
61226 2003-06-10  Simon Josefsson  <jas@extundo.com>
61227
61228         * m4/strchrnul.m4: New file.
61229
61230 2003-06-10  Simon Josefsson  <jas@extundo.com>
61231
61232         * lib/strchrnul.h: New file.
61233         * lib/strchrnul.c: New file.
61234
61235 2003-06-10  Bruno Haible  <bruno@clisp.org>
61236
61237         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
61238
61239 2003-06-07  Karl Berry  <karl@gnu.org>
61240
61241         * config/config.{guess,sub}: update from prep.
61242
61243 2003-06-07  Jim Meyering  <jim@meyering.net>
61244
61245         * modules/strtod: Use $(...) notation, not @...@ for
61246         AC_REPLACE'd variables.
61247         * modules/localcharset: Likewise.
61248
61249 2003-06-07  Jim Meyering  <jim@meyering.net>
61250
61251         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
61252         in place of my name in the copyright comment.
61253         Remove definition and uses of __P.
61254
61255         From coreutils.
61256         * lib/stat.c: Don't declare xmalloc explicitly.
61257         Instead, include "xalloc.h".
61258         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
61259         xrealloc, and xcalloc return values.
61260         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
61261         Improve comment.
61262         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
61263
61264 2003-06-07  Bruno Haible  <bruno@clisp.org>
61265
61266         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
61267         avoid AC_CONFIG_LINKS.
61268         * modules/fnmatch (Makefile.am): Use explicit creation rule for
61269         fnmatch.h, to avoid AC_CONFIG_LINKS.
61270         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
61271
61272 2003-06-07  Bruno Haible  <bruno@clisp.org>
61273
61274         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
61275         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
61276         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
61277         directory.
61278         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
61279         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
61280         directory.
61281
61282 2003-06-06  Jim Meyering  <jim@meyering.net>
61283
61284         Merge from coreutils.
61285         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
61286         Consolidate declarations and initializations of *_base* locals.
61287
61288         Merge from coreutils.
61289         This avoids a core dump on systems without GNU putenv,
61290         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
61291         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
61292         (unsetenv): New static function, from GNU libc.
61293         (rpl_putenv): Use it.
61294
61295         * lib/modechange.c: Remove trailing blanks.
61296
61297         Merge from coreutils.
61298         * lib/fsusage.c: Remove declaration of statfs.
61299         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
61300
61301         * lib/posixtm.c: Include <stdbool.h> unconditionally.
61302
61303 2003-06-06  Jim Meyering  <jim@meyering.net>
61304
61305         * lib/stdbool_.h: Renamed from stdbool.h.in.
61306
61307 2003-06-06  Jim Meyering  <jim@meyering.net>
61308             Bruno Haible  <bruno@clisp.org>
61309
61310         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
61311         Adjust Makefile.am snippet not to redirect directly to target.
61312         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
61313
61314 2003-06-05  Paul Eggert  <eggert@twinsun.com>
61315
61316         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
61317         mismatch, look in future quarters as well as past.  This fixes a
61318         bug when processing fall-backwards gaps immediately after a long
61319         period of daylight-saving time.
61320
61321         * lib/mktime.c: Assume freestanding C89 or better.
61322         (HAVE_LIMITS_H): Remove.  Assume it's 1.
61323         (__P): Remove; not used.
61324         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
61325         (mktime, not_equal_tm, print_tm, check_result,
61326         main): Use prototypes.  Use const * where appropriate.
61327         (main): Fix typo in testing code that uncovered by above changes.
61328         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
61329
61330 2003-06-04  Paul Eggert  <eggert@twinsun.com>
61331
61332         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
61333         locale.h, localeconv.  This merges changes from coreutils.
61334
61335         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
61336         It can be removed after the next Autoconf is released.
61337         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
61338         needed.
61339
61340 2003-06-04  Paul Eggert  <eggert@twinsun.com>
61341
61342         * lib/mktime.c: Fix Debian bug 177940
61343         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
61344         (localtime_offset): Now long int, not time_t, because we want it
61345         to be guaranteed to be signed.  All uses changed.
61346         (__mktime_internal): If overflow would occur when adding offset,
61347         don't add it.
61348
61349         Merge 'human' changes from coreutils.  Rewrite to support
61350         locale-specific notations like thousands separators.
61351         * lib/human.c: Simplify authorship notice.
61352         Include human.h immediately after config.h.
61353         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
61354         <limits.h>: Do not include, since human.h does.
61355         (SIZE_MAX, UINTMAX_MAX): New macros.
61356         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
61357         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
61358         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
61359         (power_letter): Renamed from suffixes.
61360         (generate_suffix_backwards): Remove.
61361         (adjust_value): Now takes int style (because of human.h changes)
61362         and long double value (for greater precision on some platforms).
61363         (group_number): New function.
61364         (human_readable): Use it.  Use integer options, not enum.
61365         Put the options before the sizes in the arg list.
61366         Support all the new options.
61367         The old human_readable function has been removed;
61368         use inttostr.h instead.
61369         (human_readable, default_block_size, humblock):
61370         Use uintmax_t, not int, for block sizes.
61371         (human_readable_inexact, block_size_types): Remove.
61372         (block_size_opts): New constant.
61373         (human_options): Renamed from human_block_size, with new signature
61374         that allows block sizes up to UINTMAX_MAX.  All callers changed.
61375         * lib/human.h: Add copyright and authorship notice.
61376         Include <limits.h> and <stdbool.h> unconditionally.
61377         (PARAMS): Remove.  All uses removed.
61378         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
61379         (enum human_inexact_style): Remove tag; now a nameless enum.
61380         (human_floor, human_ceiling, human_round_to_even): Now have
61381         values 2, 0, 1 rather than -1, 1, 0.
61382         (human_group_digits, human_suppress_point_zero, human_autoscale,
61383         human_base_1024, human_SI, human_B): New constants.
61384         (human_readable_inexact, human_block_size): Remove.
61385         (human_readable): Size args are now uintmax_t, not int.
61386         (human_options): New decl.
61387
61388         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
61389         unnecessary now that we assume C89 or better.  This change
61390         imported from coreutils.
61391
61392         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
61393         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
61394         in the 2003-05-30 sync from glibc.
61395
61396         .h files should stand alone, but we shouldn't include <sys/types.h>
61397         if we can get away with just <stddef.h>.
61398
61399         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
61400         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
61401         rather than <sys/types.h>, as we merely need size_t.
61402         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
61403         to get size_t.
61404         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
61405         Include <stdio.h>, to get FILE.
61406         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
61407         memcasecmp.h has included <stddef.h> and all we need is size_t.
61408         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
61409         our interface, instead of including <sys/types.h>
61410
61411 2003-06-04  Paul Eggert  <eggert@twinsun.com>
61412
61413         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
61414         now, as glibc mktime is buggy on non-glibc systems.
61415
61416 2003-06-03  Karl Berry  <karl@gnu.org>
61417
61418         * config/config.sub: update from prep.
61419
61420 2003-06-02  Paul Eggert  <eggert@twinsun.com>
61421
61422         [from coreutils]
61423         Fix some minor time-related bugs with POSIX time arguments.
61424         Some valid time stamps were being rejected (notably -1, and
61425         time stamps before 1900 on 64-bit hosts).  And some invalid
61426         time stamps were being accepted, e.g. September 31.
61427
61428         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
61429         that we can return (time_t) -1 successfully.
61430         * lib/posixtm.c: Likewise.
61431         [HAVE_STDBOOL_H]: Include <stdbool.h>.
61432         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
61433         (t): Remove static var.
61434         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
61435         of static var.  All uses changed.
61436         (year): Do not reject years before 1900; they can occur with
61437         64-bit time_t.
61438         (posix_time_parse): Do not check for out-of-range components;
61439         that is now the caller's responsibility, since our checks were
61440         only approximations.
61441         (posixtime): Use mktime to check for out-of-range components,
61442         since it knows them exactly.
61443         If mktime returns (time_t) -1, check whether an error actually occurred
61444         by invoking localtime on -1.
61445         (main) [TEST_POSIXTIME]: Check for input data errors, and report
61446         posixtime failures better.
61447         Improve the test data (in comments only).
61448
61449 2003-06-02  Karl Berry  <karl@gnu.org>
61450
61451         * config/mkinstalldirs (version): new variable.
61452         (--version): new option.
61453         (usage): improve message.
61454
61455 2003-05-30  Karl Berry  <karl@gnu.org>
61456
61457         * lib/mktime.c: update from libc.
61458
61459 2003-05-30  Bruno Haible  <bruno@clisp.org>
61460
61461         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
61462         * config/config.rpath: Upgrade to gettext-0.12.1.
61463
61464 2003-05-30  Bruno Haible  <bruno@clisp.org>
61465
61466         * m4/gettext.m4: Upgrade to gettext-0.12.1.
61467         * m4/nls.m4: New file, from gettext-0.12.1.
61468         * m4/po.m4: New file, from gettext-0.12.1.
61469         * m4/progtest.m4: Upgrade to gettext-0.12.1.
61470
61471 2003-05-30  Bruno Haible  <bruno@clisp.org>
61472
61473         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
61474         * lib/localcharset.h: Likewise.
61475         * lib/localcharset.c: Likewise.
61476
61477 2003-05-29  Karl Berry  <karl@gnu.org>
61478
61479         * config/config.rpath: update from gettext.
61480
61481 2003-05-28  Paul Eggert  <eggert@twinsun.com>
61482
61483         Assume the headers required for C89 freestanding compilers.
61484         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
61485         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
61486         * m4/human.m4 (gl_HUMAN): Likewise.
61487         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
61488         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
61489         * m4/userspec.m4 (gl_USERSPEC): Likewise.
61490         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
61491         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61492         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
61493
61494 2003-05-28  Paul Eggert  <eggert@twinsun.com>
61495
61496         Assume the headers required for C89 freestanding compilers.
61497         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
61498         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
61499         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
61500         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
61501         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
61502         define, since <limits.h> is guaranteed to do that.
61503         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
61504         * lib/exclude.c: Include <stdbool.h> unconditionally.
61505         * lib/tempname.c: Include <stddef.h> unconditionally.
61506         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
61507         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
61508         <stddef.h> does that.
61509         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
61510         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
61511         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
61512         needed.
61513         * lib/xstrtol.c: Likewise.
61514         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
61515         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
61516
61517         * lib/addext.c (addext): Use assignment rather than cast, to avoid
61518         warnings on some platforms.
61519
61520         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
61521         arbitrarily.
61522
61523 2003-05-26  Jim Meyering  <jim@meyering.net>
61524
61525         Merge in a change from coreutils:
61526         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
61527         that is guaranteed to be `no'.  Use `no_such_member' to indicate
61528         that condition, rather than `-1' which is slightly misleading.
61529         Change the name of the cache variable to have the gl_ prefix.
61530         Prompted by a patch from Richard Dawe for DJGPP.
61531
61532 2003-05-24  Karl Berry  <karl@gnu.org>
61533
61534         * config/config.guess: update from prep.
61535
61536 2003-05-22  Karl Berry  <karl@gnu.org>
61537
61538         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
61539
61540 2003-05-20  Karl Berry  <karl@gnu.org>
61541
61542         * config/config.guess: update from prep.
61543
61544 2003-05-18  Karl Berry  <karl@gnu.org>
61545
61546         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
61547         might actually be set by the user.
61548
61549         * config/depcomp, install-sh, mdate-sh: update from automake.
61550
61551 2003-05-17  Bruno Haible  <bruno@clisp.org>
61552
61553         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
61554         invalid expansion for AC_EGREP_CPP.
61555         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
61556         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
61557         Suggested by Akim Demaille <akim@epita.fr> in
61558         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
61559
61560 2003-05-12  Jim Meyering  <jim@meyering.net>
61561
61562         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
61563         the space-padded-by-default conversion specifiers, %e, %k, %l.
61564
61565 2003-05-12  Bruno Haible  <bruno@clisp.org>
61566
61567         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
61568         the string is longer than 4 KB.
61569
61570 2003-05-11  Karl Berry  <karl@gnu.org>
61571
61572         * config/config.{guess,sub}: update from prep.
61573
61574 2003-05-09  Bruno Haible  <bruno@clisp.org>
61575
61576         * modules/error: Add m4/strerror_r.m4 to file list.
61577
61578 2003-05-03  Bruno Haible  <bruno@clisp.org>
61579
61580         Upgrade to Unicode-4.0.
61581         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
61582         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
61583         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
61584         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
61585         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
61586         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
61587         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
61588         Change width of U+E0100..U+E01EF from 1 to 0.
61589
61590 2003-04-25  Jim Meyering  <jim@meyering.net>
61591
61592         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
61593         of type size_t, not int.
61594
61595 2003-04-25  Bruno Haible  <bruno@clisp.org>
61596
61597         * lib/copy-file.c: Include <stddef.h>, for size_t.
61598
61599 2003-04-21  Paul Eggert  <eggert@twinsun.com>
61600
61601         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
61602         code which expansion is under static control.  Patch imported from
61603         Akim Demaille's patch to Bison; see
61604         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
61605
61606 2003-04-14  Bruno Haible  <bruno@clisp.org>
61607
61608         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
61609
61610 2003-04-11  Jim Meyering  <jim@meyering.net>
61611
61612         Merge changes from Coreutils.
61613
61614         2003-03-22  Jim Meyering  <jim@meyering.net>
61615
61616         * lib/strftime.c (widen): Cast alloca return value to proper type.
61617
61618         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
61619
61620         From GNU libc.
61621         * lib/strftime.c (my_strftime): Handle very large width
61622         specifications for numeric values correctly.  Improve checks for
61623         overflow.
61624
61625         2003-01-19  Jim Meyering  <jim@meyering.net>
61626
61627         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
61628         definitions.
61629         (nl_get_alt_digit) [! defined my_strftime]: Define.
61630         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
61631         _nl_get_alt_digit and _nl_get_walt_digit.
61632
61633         * lib/strftime.c (my_strftime): Merge in locale-related changes from
61634         libc. These changes have no effect outside of _LIBC.
61635
61636 2003-04-10  Bruno Haible  <bruno@clisp.org>
61637
61638         * modules/findprog: New file.
61639         * MODULES.html.sh (func_all_modules): Add it.
61640
61641 2003-04-10  Bruno Haible  <bruno@clisp.org>
61642
61643         * m4/findprog.m4: New file.
61644         * m4/eaccess.m4: New file.
61645
61646 2003-04-10  Bruno Haible  <bruno@clisp.org>
61647
61648         * lib/findprog.h: New file, from GNU gettext.
61649         * lib/findprog.c: New file, from GNU gettext.
61650
61651 2003-04-05  Jim Meyering  <jim@meyering.net>
61652
61653         Merge changes from Coreutils.
61654
61655         * lib/exclude.h (PARAMS): Remove definition and uses.
61656         * lib/exclude.c: Remove uses of `PARAMS'.
61657
61658         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
61659         Add test-cases for DOS filenames. Declare program_name.
61660         (main): Set up program_name.  Patch by Rich Dawe.
61661
61662         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
61663         error from mntctl.
61664         Use mntctl's return value to drive the entry-processing loop, since
61665         we can't rely on the value of the vmt_length member in the last
61666         entry.  On some systems doing so could result in exhausting
61667         virtual memory.  Based in part on a patch from Mike Jetzer.
61668
61669 2003-04-04  Bruno Haible  <bruno@clisp.org>
61670
61671         * modules/linebreak: New file.
61672         * MODULES.html.sh (func_all_modules): Add it.
61673
61674 2003-04-04  Bruno Haible  <bruno@clisp.org>
61675
61676         * m4/linebreak.m4: New file.
61677
61678 2003-04-04  Bruno Haible  <bruno@clisp.org>
61679
61680         * lib/linebreak.h: New file, from GNU gettext.
61681         * lib/linebreak.c: New file, from GNU gettext with slight
61682         modifications.
61683         * lib/lbrkprop.h: New file, from GNU gettext.
61684
61685 2003-04-03  Bruno Haible  <bruno@clisp.org>
61686
61687         * modules/utf8-ucs4: New file.
61688         * modules/utf16-ucs4: New file.
61689         * modules/ucs4-utf8: New file.
61690         * modules/ucs4-utf16: New file.
61691         * MODULES.html.sh (func_all_modules): Add them.
61692
61693 2003-04-03  Bruno Haible  <bruno@clisp.org>
61694
61695         * m4/utf-ucs4.m4: New file.
61696         * m4/ucs4-utf.m4: New file.
61697
61698 2003-04-03  Bruno Haible  <bruno@clisp.org>
61699
61700         * lib/utf8-ucs4.h: New file, from GNU gettext.
61701         * lib/utf16-ucs4.h: New file, from GNU gettext.
61702         * lib/ucs4-utf8.h: New file, from GNU gettext.
61703         * lib/ucs4-utf16.h: New file, from GNU gettext.
61704
61705 2003-04-02  Bruno Haible  <bruno@clisp.org>
61706
61707         * modules/binary-io: New file.
61708         * MODULES.html.sh (func_all_modules): Add it.
61709
61710 2003-04-02  Bruno Haible  <bruno@clisp.org>
61711
61712         * lib/binary-io.h: New file, from GNU gettext.
61713
61714 2003-04-01  Bruno Haible  <bruno@clisp.org>
61715
61716         * modules/pathname: New file.
61717         * MODULES.html.sh (func_all_modules): Add it.
61718
61719 2003-04-01  Bruno Haible  <bruno@clisp.org>
61720
61721         * lib/pathname.h: New file, from GNU gettext.
61722         * lib/concatpath.c: New file, from GNU gettext.
61723
61724 2003-03-30  Bruno Haible  <bruno@clisp.org>
61725
61726         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
61727
61728 2003-03-30  Bruno Haible  <bruno@clisp.org>
61729
61730         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
61731         function chown() doesn't exist.
61732
61733 2003-03-28  Bruno Haible  <bruno@clisp.org>
61734
61735         * modules/copy-file: New file.
61736         * MODULES.html.sh (func_all_modules): Add it.
61737
61738 2003-03-28  Bruno Haible  <bruno@clisp.org>
61739
61740         * m4/copy-file.m4: New file.
61741
61742 2003-03-28  Bruno Haible  <bruno@clisp.org>
61743
61744         * lib/copy-file.h: New file, from GNU gettext.
61745         * lib/copy-file.c: New file, from GNU gettext.
61746
61747 2003-03-18  Jim Meyering  <jim@meyering.net>
61748
61749         * lib/quote.c (quote_n): Fix typo in comment.
61750
61751 2003-03-18  Bruno Haible  <bruno@clisp.org>
61752
61753         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
61754         checking.
61755         * m4/onceonly_2_57.m4: Likewise.
61756
61757 2003-03-17  Bruno Haible  <bruno@clisp.org>
61758
61759         * m4/onceonly.m4: Require autoconf 2.54 or newer.
61760         (m4_quote): Remove macro.
61761         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
61762
61763 2003-03-14  Jim Meyering  <jim@meyering.net>
61764
61765         Merge changes from Coreutils.
61766         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
61767         to be const, in order to avoid warnings.
61768         (obstack_room): Likewise.
61769         (obstack_empty_p): Likewise.
61770
61771 2003-03-14  Bruno Haible  <bruno@clisp.org>
61772
61773         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
61774         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
61775
61776 2003-03-13  Paul Eggert  <eggert@twinsun.com>
61777
61778         Merge changes from Bison.
61779         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
61780         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
61781         when compiling Bison 1.875's `bitset bset = obstack_alloc
61782         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
61783         * lib/hash.c: Include <stdbool.h> unconditionally.
61784
61785 2003-03-13  Paul Eggert  <eggert@twinsun.com>
61786
61787         * m4/onceonly.m4 (m4_quote): New macro.
61788         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
61789         Quote AC_FOREACH variable-expansions properly.
61790
61791 2003-03-13  Paul Eggert  <eggert@twinsun.com>
61792
61793         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
61794
61795 2003-03-09  Paul Eggert  <eggert@twinsun.com>
61796
61797         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
61798         Reported by Bruce Becker; see:
61799         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
61800
61801 2003-03-03  Paul Eggert  <eggert@twinsun.com>
61802             Bruno Haible  <bruno@clisp.org>
61803
61804         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
61805         Reported by John Hughes, see
61806         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
61807
61808 2003-02-20  Bruno Haible  <bruno@clisp.org>
61809
61810         * MODULES.html.sh (func_all_modules): Add poll.
61811
61812 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
61813
61814         * modules/poll: New file.
61815
61816 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
61817
61818         * lib/poll_.h: New file.
61819         * lib/poll.c: New file.
61820
61821 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
61822
61823         * m4/poll.m4: New file.
61824
61825 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
61826
61827         * modules/mathl: New file.
61828
61829 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
61830
61831         * lib/mathl.h: New file.
61832         * lib/acosl.c: New file.
61833         * lib/asinl.c: New file.
61834         * lib/atanl.c: New file.
61835         * lib/ceill.c: New file.
61836         * lib/cosl.c: New file.
61837         * lib/expl.c: New file.
61838         * lib/floorl.c: New file.
61839         * lib/frexpl.c: New file.
61840         * lib/ldexpl.c: New file.
61841         * lib/logl.c: New file.
61842         * lib/sincosl.c: New file.
61843         * lib/sinl.c: New file.
61844         * lib/sqrtl.c: New file.
61845         * lib/tanl.c: New file.
61846         * lib/trigl.c: New file.
61847         * lib/trigl.h: New file.
61848
61849 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
61850
61851         * m4/mathl.m4: New file.
61852
61853 2003-02-18  Bruno Haible  <bruno@clisp.org>
61854
61855         * MODULES.html.sh (func_all_modules): Add mathl.
61856
61857 2003-02-17  Bruno Haible  <bruno@clisp.org>
61858
61859         * modules/mkdtemp: New module.
61860         * MODULES.html.sh (func_all_modules): Add it.
61861
61862 2003-02-17  Bruno Haible  <bruno@clisp.org>
61863
61864         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
61865
61866 2003-02-17  Bruno Haible  <bruno@clisp.org>
61867
61868         * lib/mkdtemp.h: New file, from GNU gettext.
61869         * lib/mkdtemp.c: New file, from GNU gettext.
61870
61871 2003-02-02  Jim Meyering  <jim@meyering.net>
61872
61873         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
61874         e.g. glibc-2.2.93.
61875
61876 2003-01-31  Bruno Haible  <bruno@clisp.org>
61877
61878         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
61879         'rpl_rename'.
61880         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
61881         'rpl_strnlen'.
61882         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
61883         'rpl_strtod'.
61884         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
61885         'rpl_utime'.
61886
61887 2003-01-31  Bruno Haible  <bruno@clisp.org>
61888
61889         * lib/rename.c: #undef rename before defining rpl_rename.
61890         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
61891
61892 2003-01-30  Bruno Haible  <bruno@clisp.org>
61893
61894         * modules/vasnprintf, modules/vasprintf: New modules.
61895         * MODULES.html.sh (func_all_modules): Add them.
61896
61897 2003-01-30  Bruno Haible  <bruno@clisp.org>
61898
61899         * m4/signed.m4: New file, from GNU gettext.
61900         * m4/longdouble.m4: New file, from GNU gettext.
61901         * m4/wchar_t.m4: New file, from GNU gettext.
61902         * m4/wint_t.m4: New file, from GNU gettext.
61903         * m4/vasnprintf.m4: New file.
61904         * m4/vasprintf.m4: New file.
61905
61906 2003-01-30  Bruno Haible  <bruno@clisp.org>
61907
61908         * lib/printf-args.h: New file, from GNU gettext.
61909         * lib/printf-args.c: New file, from GNU gettext.
61910         * lib/printf-parse.h: New file, from GNU gettext.
61911         * lib/printf-parse.c: New file, from GNU gettext.
61912         * lib/vasnprintf.h: New file, from GNU gettext.
61913         * lib/vasnprintf.c: New file, from GNU gettext.
61914         * lib/asnprintf.c: New file, from GNU gettext.
61915         * lib/vasprintf.h: New file, from GNU gettext with modifications.
61916         * lib/vasprintf.c: New file, from GNU gettext.
61917         * lib/asprintf.c: New file, from GNU gettext.
61918
61919 2003-01-29  Bruno Haible  <bruno@clisp.org>
61920
61921         * modules/stpncpy: New module.
61922         * MODULES.html.sh (func_all_modules): Add it.
61923
61924 2003-01-29  Bruno Haible  <bruno@clisp.org>
61925
61926         * m4/stpncpy.m4: New file.
61927
61928 2003-01-29  Bruno Haible  <bruno@clisp.org>
61929
61930         * lib/stpncpy.h: New file, from GNU gettext with modifications.
61931         * lib/stpncpy.c: New file, from GNU gettext with modifications.
61932
61933 2003-01-28  Bruno Haible  <bruno@clisp.org>
61934
61935         * modules/c-ctype: New module.
61936         * MODULES.html.sh (func_all_modules): Add it.
61937
61938 2003-01-28  Bruno Haible  <bruno@clisp.org>
61939
61940         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
61941         Paul Eggert.
61942         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
61943         Paul Eggert.
61944
61945 2003-01-27  Bruno Haible  <bruno@clisp.org>
61946
61947         * modules/xsetenv: New module.
61948         * MODULES.html.sh (func_all_modules): Add it.
61949
61950 2003-01-27  Bruno Haible  <bruno@clisp.org>
61951
61952         * lib/xsetenv.h: New file, from GNU gettext.
61953         * lib/xsetenv.c: New file, from GNU gettext.
61954
61955 2003-01-23  Jim Meyering  <jim@meyering.net>
61956
61957         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
61958         from working on systems without dirfd (at least Irix and OSF1/Tru64).
61959
61960 2003-01-23  Bruno Haible  <bruno@clisp.org>
61961
61962         * modules/minmax: New module.
61963         * MODULES.html.sh (func_all_modules): Add it.
61964
61965 2003-01-23  Bruno Haible  <bruno@clisp.org>
61966
61967         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
61968         Eggert.
61969
61970 2003-01-22  Bruno Haible  <bruno@clisp.org>
61971
61972         * modules/exit: New module.
61973         * MODULES.html.sh (func_all_modules): Add it.
61974
61975 2003-01-22  Bruno Haible  <bruno@clisp.org>
61976
61977         * lib/exit.h: New file, from GNU gettext.
61978
61979 2003-01-19  Bruno Haible  <bruno@clisp.org>
61980
61981         * gnulib-tool: Recognize option --extract-maintainer.
61982         (func_get_maintainer): New function.
61983         * modules/*: Add Maintainer entry.
61984
61985 2003-01-16  Jim Meyering  <jim@meyering.net>
61986
61987         * m4/regex.m4: The `regex' struct is both input and output.
61988         Initialize it before each use.  Patch by Tim Waugh.
61989
61990 2003-01-16  Bruno Haible  <bruno@clisp.org>
61991
61992         * MODULES.html.sh: Add a table of contents. Add the module name as
61993         leftmost column. Add hyperlinks.
61994
61995 2003-01-15  Bruno Haible  <bruno@clisp.org>
61996
61997         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
61998
61999 2003-01-15  Bruno Haible  <bruno@clisp.org>
62000
62001         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
62002         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
62003         suffix.
62004
62005 2003-01-15  Bruno Haible  <bruno@clisp.org>
62006
62007         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
62008
62009 2003-01-15  Bruno Haible  <bruno@clisp.org>
62010
62011         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
62012         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
62013
62014 2003-01-14  Jim Meyering  <jim@meyering.net>
62015
62016         * lib/same.c (same_name): Tweak a comment.
62017
62018 2003-01-14  Bruno Haible  <bruno@clisp.org>
62019
62020         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
62021         when a string comparison is sufficient.
62022
62023 2003-01-14  Bruno Haible  <bruno@clisp.org>
62024
62025         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
62026         'unsigned int'.
62027
62028 2003-01-14  Bruno Haible  <bruno@clisp.org>
62029
62030         * lib/hash-pjw.c: Add comment about low quality of this function.
62031
62032 2003-01-13  Bruno Haible  <bruno@clisp.org>
62033
62034         * modules/stpcpy: Distribute lib/stpcpy.h.
62035         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
62036
62037 2003-01-13  Bruno Haible  <bruno@clisp.org>
62038
62039         * modules/*: Add a description.
62040         * modules/strpbrk: Fix Makefile.am snippet.
62041         * modules/strtoimax: Fix dependencies.
62042         * modules/strtoumax: Likewise.
62043
62044 2003-01-13  Bruno Haible  <bruno@clisp.org>
62045
62046         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
62047         * modules/alloca (Makefile.am): All object files depend on alloca.h.
62048         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
62049
62050 2003-01-13  Bruno Haible  <bruno@clisp.org>
62051
62052         * gnulib-tool (func_create_testdir): Store config/* files in the main
62053         directory.
62054         * config.rpath: Move to ...
62055         * config/config.rpath: ... here.
62056         * modules/gettext: Contains config/config.rpath, not config.rpath.
62057         * modules/iconv: Likewise.
62058
62059 2003-01-12  Paul Eggert  <eggert@twinsun.com>
62060
62061         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
62062         to avoid collisions with libcurses and libreadline.
62063
62064         * m4/getstr.m4: Remove.
62065         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
62066
62067 2003-01-12  Paul Eggert  <eggert@twinsun.com>
62068
62069         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
62070         to avoid collisions with libcurses and libreadline.
62071
62072         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
62073         * lib/getstr.h, getstr.c: Remove.
62074         * lib/getline.c: Include "getline.h", to check interface.
62075         Move body of old getstr.c here: this defines MIN_CHUNK and
62076         declares getdelim2, which is renamed from getstr.
62077         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
62078
62079         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
62080         All uses changed.
62081         * lib/linebuffer.h: Likewise.
62082         (readline): Remove backward-compatibility macro.
62083
62084 2003-01-12  Paul Eggert  <eggert@twinsun.com>
62085
62086         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
62087         to avoid collisions with libcurses and libreadline.
62088         * getstr: Remove.
62089         * MODULES.html.sh: Remove getstr.
62090         * modules/getline: Depend on unlocked-io, not getstr.
62091
62092 2003-01-12  Jim Meyering  <jim@meyering.net>
62093
62094         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
62095
62096 2003-01-10  Bruno Haible  <bruno@clisp.org>
62097
62098         * modules/alloca: Change Makefile.am requirements. Simplify Include
62099         requirements. Add lib/alloca_.h to file list.
62100
62101 2003-01-10  Bruno Haible  <bruno@clisp.org>
62102
62103         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
62104
62105 2003-01-10  Bruno Haible  <bruno@clisp.org>
62106
62107         * lib/alloca_.h: New file.
62108         * lib/getdate.y: Unconditionally include alloca.h.
62109         * lib/makepath.c: Likewise.
62110         * lib/setenv.c: Likewise.
62111         * lib/userspec.c: Likewise.
62112
62113 2003-01-09  Karl Berry  <karl@gnu.org>
62114
62115         * MODULES.html.sh: include `dirname $0` in PATH, to find
62116         gnulib-tool.
62117
62118 2003-01-09  Bruno Haible  <bruno@clisp.org>
62119
62120         * modules/stdbool: Change configure.ac, Makefile.am requirements.
62121         Simplify Include requirements. Add lib/stdbool.h.in to file list.
62122
62123 2003-01-09  Bruno Haible  <bruno@clisp.org>
62124
62125         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
62126
62127 2003-01-09  Bruno Haible  <bruno@clisp.org>
62128
62129         * lib/stdbool.h.in: New file.
62130
62131 2003-01-09  Bruno Haible  <bruno@clisp.org>
62132
62133         * gnulib-tool (func_all_modules): Ignore files ending in ~.
62134         * MODULES.html.sh: Likewise.
62135
62136 2003-01-08  Jim Meyering  <jim@meyering.net>
62137
62138         * lib/full-write.c: Undefine and define-away `const' after inclusion
62139         of errno.h, not before.  Suggestion from Bruno Haible.
62140
62141 2003-01-08  Bruno Haible  <bruno@clisp.org>
62142
62143         * modules/full-read: Depend on full-write.
62144
62145 2003-01-08  Bruno Haible  <bruno@clisp.org>
62146
62147         * lib/safe-read.c: Include specification header first, to ensure its
62148         selfcontainedness.
62149         * lib/full-write.c: Likewise.
62150
62151 2003-01-07  Jim Meyering  <jim@meyering.net>
62152
62153         * lib/full-write.c: Rework so that it may serve to define full_read,
62154         too.
62155         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
62156
62157 2003-01-07  Bruno Haible  <bruno@clisp.org>
62158
62159         * lib/strtoimax.c: Include <stdint.h> as an alternative to
62160         <inttypes.h>.
62161         * lib/xstrtol.h: Likewise.
62162         * lib/xstrtoimax.c: Likewise.
62163         * lib/xstrtoumax.c: Likewise.
62164         * lib/human.h: Likewise.
62165
62166         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
62167         on systems that have <inttypes.h> but not <stdint.h>.
62168
62169 2003-01-07  Bruno Haible  <bruno@clisp.org>
62170
62171         * MODULES.html.sh: Add copyright notice.
62172         (missed_files): Omit CVS directory entries.
62173         (func_module): Make it work with sed-3.02.
62174         * MODULES.txt: Remove file.
62175
62176 2003-01-06  Jim Meyering  <jim@meyering.net>
62177
62178         * lib/version-etc.c: Update year in translatable copyright string.
62179
62180 2003-01-03  Karl Berry  <karl@gnu.org>
62181
62182         * config/config.{guess,sub}: update from prep.
62183
62184 2003-01-02  Karl Berry  <karl@gnu.org>
62185
62186         * doc/COPYING.DOC: belatedly updated to 1.2.
62187
62188 2003-01-01  Karl Berry  <karl@gnu.org>
62189
62190         * gnulib-tool (func_verify_module): report module name $module in
62191         error message, not $1.
62192         * gnulib-tool (create-testdir): don't complain if destdir couldn't
62193         be created, only if it doesn't exist.
62194         * gnulib-tool (last_checkin_date): don't expand the $Date here.
62195
62196 2002-12-31  Paul Eggert  <eggert@twinsun.com>
62197
62198         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
62199
62200 2002-12-31  Paul Eggert  <eggert@twinsun.com>
62201
62202         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
62203         memcmp if strcoll doesn't work.
62204
62205 2002-12-31  Bruno Haible  <bruno@clisp.org>
62206
62207         * lib/utime.c (utime_null): No need to call ftruncate if the file was
62208         nonempty.
62209
62210 2002-12-31  Bruno Haible  <bruno@clisp.org>
62211
62212         * lib/memcoll.c (STRCOLL): New macro.
62213         (memcoll): Use it.
62214
62215 2002-12-31  Bruno Haible  <bruno@clisp.org>
62216
62217         * lib/localcharset.h: New file.
62218         * lib/localcharset.c: Include it.
62219         * lib/unicodeio.c: Likewise.
62220
62221 2002-12-31  Bruno Haible  <bruno@clisp.org>
62222
62223         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
62224         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
62225
62226 2002-12-31  Bruno Haible  <bruno@clisp.org>
62227
62228         * lib/getline.h: Include <stddef.h>, for size_t.
62229
62230         * lib/unicodeio.h: Include <stddef.h>, for size_t.
62231         * lib/unicodeio.c: Don't include <stddef.h>.
62232
62233 2002-12-31  Bruno Haible  <bruno@clisp.org>
62234
62235         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
62236         HAVE_TM_ZONE.
62237
62238 2002-12-24  Karl Berry  <karl@gnu.org>
62239
62240         * config/config.guess: update from prep.
62241
62242 2002-12-24  Bruno Haible  <bruno@clisp.org>
62243
62244         General infrasructure.
62245         * m4/README: Rewritten.
62246         * m4/onceonly.m4: New file.
62247         * m4/onceonly_2_57.m4: New file.
62248
62249         Module atexit.
62250         * m4/atexit.m4: New file.
62251
62252         Module strtod.
62253         * m4/strtod.m4: New file.
62254
62255         Module strtol.
62256         * m4/strtol.m4: New file.
62257
62258         Module strtoul.
62259         * m4/strtoul.m4: New file.
62260
62261         Module memchr.
62262         * m4/memchr.m4: New file.
62263
62264         Module memcmp.
62265         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
62266         (jm_FUNC_MEMCMP): Invoke it.
62267
62268         Module memcpy.
62269         * m4/memcpy.m4: New file.
62270
62271         Module memmove.
62272         * m4/memmove.m4: New file.
62273
62274         Module memset.
62275         * m4/memset.m4: New file.
62276
62277         Module strcspn.
62278         * m4/strcspn.m4: New file.
62279
62280         Module strpbrk.
62281         * m4/strpbrk.m4: New file.
62282
62283         Module strstr.
62284         * m4/strstr.m4: New file.
62285
62286         Module strerror.
62287         * m4/strerror.m4: New file.
62288
62289         Module mktime.
62290         * m4/mktime.m4: Renamed from jm-mktime.m4.
62291         (gl_PREREQ_MKTIME): New macro.
62292         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
62293
62294         Module malloc.
62295         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
62296         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
62297         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
62298
62299         Module realloc.
62300         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
62301         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
62302         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
62303
62304         Module strftime.
62305         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
62306         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
62307         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
62308         gl_TM_GMTOFF.
62309         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
62310
62311         Module xalloc.
62312         * m4/xalloc.m4: New file.
62313
62314         Module alloca.
62315         * m4/alloca.m4: New file.
62316
62317         Module putenv.
62318         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
62319         (jm_FUNC_PUTENV): Invoke it.
62320
62321         Module setenv.
62322         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
62323         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
62324         when invoked twice.
62325         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
62326         gt_FUNC_SETENV.
62327
62328         Module memrchr.
62329         * m4/memrchr.m4: New file.
62330
62331         Module stpcpy.
62332         * m4/stpcpy.m4: New file.
62333
62334         Module strcase.
62335         * m4/strcase.m4: New file.
62336
62337         Module strdup.
62338         * m4/strdup.m4: New file.
62339
62340         Module strnlen.
62341         * m4/strnlen.m4: New file.
62342
62343         Module strndup.
62344         * m4/strndup.m4: New file.
62345
62346         Module xstrtod.
62347         * m4/xstrtod.m4: New file.
62348
62349         Module xstrtol.
62350         * m4/xstrtol.m4: New file.
62351
62352         Module getdate.
62353         * m4/getdate.m4: New file.
62354
62355         Module unlocked-io.
62356         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
62357         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
62358         * m4/jm-glibc-io.m4n: Remove file.
62359
62360         Module long-options.
62361         * m4/long-options.m4: New file.
62362
62363         Module md5.
62364         * m4/md5.m4: New file.
62365
62366         Module sha.
62367         * m4/sha.m4: New file.
62368
62369         Module getstr.
62370         * m4/getstr.m4: New file.
62371
62372         Module getline.
62373         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
62374         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
62375         <sys/types.h>, for size_t. Use the function name gnu_getline, not
62376         simply getline. Infoke gl_PREREQ_GETLINE.
62377
62378         Module obstack.
62379         * m4/obstack.m4: New file.
62380
62381         Module hash.
62382         * m4/hash.m4: New file.
62383
62384         Module readtokens.
62385         * m4/readtokens.m4: New file.
62386
62387         Module strverscmp.
62388         * m4/strverscmp.m4: New file.
62389
62390         Module stdbool.
62391         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
62392         OSF/1.
62393
62394         Module strtoll.
62395         * m4/strtoll.m4: New file.
62396
62397         Module strtoull.
62398         * m4/strtoull.m4: New file.
62399
62400         Module strtoimax.
62401         * m4/strtoimax.m4: New file.
62402
62403         Module strtoumax.
62404         * m4/strtoumax.m4: New file.
62405
62406         Module xstrtoimax.
62407         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
62408         jm_AC_PREREQ_XSTRTOIMAX.
62409         Moved the strtol prerequisites to strtol.m4.
62410         Moved the strtoll prerequisites to strtoll.m4.
62411         Moved the strtoimax prerequisites to strtoimax.m4.
62412
62413         Module xstrtoumax.
62414         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
62415         jm_AC_PREREQ_XSTRTOUMAX.
62416         Moved the strtoul prerequisites to strtoul.m4.
62417         Moved the strtoull prerequisites to strtoull.m4.
62418         Moved the strtoumax prerequisites to strtoumax.m4.
62419
62420         Module chown.
62421         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
62422         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
62423
62424         Module dup2.
62425         * m4/dup2.m4: New file.
62426
62427         Module ftruncate.
62428         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
62429         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
62430
62431         Module getgroups.
62432         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
62433         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
62434
62435         Module gettimeofday.
62436         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
62437         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
62438         gl_PREREQ_GETTIMEOFDAY.
62439
62440         Module mkdir.
62441         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
62442         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
62443
62444         Module mkstemp.
62445         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
62446         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
62447         jm_AC_TYPE_UINTMAX_T.
62448         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
62449
62450         Module stat.
62451         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
62452         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
62453
62454         Module lstat.
62455         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
62456         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
62457
62458         Module timespec.
62459         * m4/timespec.m4 (gl_TIMESPEC): New macro.
62460         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
62461         * m4/st_mtim.m4: Indentation.
62462
62463         Module nanosleep.
62464         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
62465         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
62466         gl_PREREQ_NANOSLEEP.
62467
62468         Module regex.
62469         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
62470         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
62471         (gl_REGEX): New macro.
62472
62473         Module rename.
62474         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
62475         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
62476
62477         Module rmdir.
62478         * m4/rmdir.m4: New file.
62479
62480         Module utime.
62481         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
62482         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
62483         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
62484
62485         Module dirname.
62486         * m4/dirname.m4: New file.
62487
62488         Module getopt.
62489         * m4/getopt.m4: New file.
62490
62491         Module unistd-safer.
62492         * m4/unistd-safer.m4: New file.
62493
62494         Module fnmatch.
62495         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
62496         declaration.
62497         (gl_PREREQ_FNMATCH_EXTRA): New macro.
62498         (gl_FUNC_FNMATCH_POSIX): New macro.
62499         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
62500         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
62501         simply fnmatch.
62502
62503         Module exclude.
62504         * m4/exclude.m4: New file.
62505
62506         Module human.
62507         * m4/human.m4: New file.
62508
62509         Module acl.
62510         * m4/acl.m4: Nop.
62511
62512         Module backupfile.
62513         * m4/backupfile.m4: New file.
62514         * m4/d-ino.m4: Indentation.
62515
62516         Module fsusage.
62517         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
62518         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
62519         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
62520
62521         Module dirfd.
62522         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
62523         requirements.
62524
62525         Module euidaccess.
62526         * m4/euidaccess.m4: New file.
62527
62528         Module file-type.
62529         * m4/file-type.m4: New file.
62530
62531         Module fileblocks.
62532         * m4/fileblocks.m4: New file.
62533
62534         Module filemode.
62535         * m4/filemode.m4: New file.
62536
62537         Module isdir.
62538         * m4/isdir.m4: New file.
62539
62540         Module lchown.
62541         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
62542         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
62543
62544         Module makepath.
62545         * m4/makepath.m4: New file.
62546
62547         Module modechange.
62548         * m4/modechange.m4: New file.
62549
62550         Module mountlist.
62551         * m4/mountlist.m4: New file.
62552         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
62553         Indentation.
62554
62555         Module path-concat.
62556         * m4/path-concat.m4: New file.
62557
62558         Module pathmax.
62559         * m4/pathmax.m4: New file.
62560
62561         Module same.
62562         * m4/same.m4: New file.
62563
62564         Module save-cwd.
62565         * m4/save-cwd.m4: New file.
62566
62567         Module savedir.
62568         * m4/savedir.m4: New file.
62569
62570         Module xgetcwd.
62571         * m4/xgetcwd.m4: New file.
62572         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
62573
62574         Module xreadlink.
62575         * m4/xreadlink.m4: New file.
62576
62577         Module safe-read.
62578         * m4/safe-read.m4: New file.
62579
62580         Module safe-write.
62581         * m4/safe-write.m4: New file.
62582
62583         Module closeout.
62584         * m4/closeout.m4: New file.
62585
62586         Module stdio-safer.
62587         * m4/stdio-safer.m4: New file.
62588
62589         Module getpass.
62590         * m4/getpass.m4: New file.
62591
62592         Module getugroups.
62593         * m4/getugroups.m4: New file.
62594
62595         Module group-member.
62596         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
62597         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
62598
62599         Module idcache.
62600         * m4/idcache.m4: New file.
62601
62602         Module userspec.
62603         * m4/userspec.m4: New file.
62604
62605         Module gettime.
62606         * m4/clock_time.m4: New file.
62607         * m4/gettime.m4: New file.
62608
62609         Module settime.
62610         * m4/settime.m4: New file.
62611
62612         Module posixtm.
62613         * m4/posixtm.m4: New file.
62614
62615         Module gethostname.
62616         * m4/gethostname.m4: New file.
62617
62618         Module canon-host.
62619         * m4/canon-host.m4: New file.
62620
62621         Module gettext.
62622         * m4/codeset.m4: New file, from gettext-0.11.5.
62623         * m4/gettext.m4: New file, from gettext-0.11.5.
62624         * m4/glibc21.m4: New file, from gettext-0.11.5.
62625         * m4/iconv.m4: New file, from gettext-0.11.5.
62626         * m4/intdiv0.m4: New file, from gettext-0.11.5.
62627         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
62628         * m4/inttypes.m4: New file, from gettext-0.11.5.
62629         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
62630         * m4/isc-posix.m4: New file, from gettext-0.11.5.
62631         * m4/lcmessage.m4: New file, from gettext-0.11.5.
62632         * m4/lib-ld.m4: New file, from gettext-0.11.5.
62633         * m4/lib-link.m4: New file, from gettext-0.11.5.
62634         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
62635         * m4/progtest.m4: New file, from gettext-0.11.5.
62636         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
62637         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
62638         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
62639
62640         Module localcharset.
62641         * m4/localcharset.m4: New file.
62642
62643         Module hard-locale.
62644         * m4/hard-locale.m4: New file.
62645
62646         Module mbswidth.
62647         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
62648         onceonly macros.
62649         * m4/mbrtowc.m4: Add comment.
62650
62651         Module memcasecmp.
62652         * m4/memcasecmp.m4: New file.
62653
62654         Module memcoll.
62655         * m4/memcoll.m4: New file.
62656
62657         Module unicodeio.
62658         * m4/unicodeio.m4: New file.
62659
62660         Module rpmatch.
62661         * m4/rpmatch.m4: New file.
62662
62663         Module yesno.
62664         * m4/yesno.m4: New file.
62665
62666         Module exitfail.
62667         * m4/exitfail.m4: New file.
62668
62669         Module c-stack.
62670         * m4/c-stack.m4 (gl_C_STACK): New macro.
62671         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
62672
62673         Module error.
62674         * m4/error.m4 (gl_ERROR): New macro.
62675         (jm_PREREQ_ERROR): Use onceonly macros.
62676
62677         Module fatal.
62678         * m4/fatal.m4: New file.
62679
62680         Module getloadavg.
62681         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
62682         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
62683
62684         Module getpagesize.
62685         * m4/getpagesize.m4: New file.
62686
62687         Module getusershell.
62688         * m4/getusershell.m4: New file.
62689
62690         Module physmem.
62691         * m4/physmem.m4: New file.
62692
62693         Module posixver.
62694         * m4/posixver.m4: New file.
62695
62696         Module quotearg.
62697         * m4/quotearg.m4: New file.
62698
62699         Module quote.
62700         * m4/quote.m4: New file.
62701
62702         Module readutmp.
62703         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
62704
62705         Module sig2str.
62706         * m4/sig2str.m4: New file.
62707
62708         Other.
62709         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
62710         ulonglong.m4.
62711         * m4/intmax_t.m4: New file.
62712         * m4/d-type.m4: Indentation.
62713         * m4/jm-macros.m4: Update.
62714         * m4/prereq.m4 (jm_PREREQ): Update.
62715         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
62716         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
62717         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
62718         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
62719         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
62720         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
62721         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
62722         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
62723         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
62724         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
62725         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
62726         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
62727         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
62728         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
62729         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
62730         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
62731         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
62732         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
62733         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
62734
62735 2002-12-24  Bruno Haible  <bruno@clisp.org>
62736
62737         * MODULES.txt: Update according to m4/ changes.
62738
62739         Module gettext.
62740         * config.rpath: New file, from gettext-0.11.5.
62741
62742         * modules/*: New module descriptions.
62743         * gnulib-tool: New file.
62744         * MODULES.html.sh: New file.
62745
62746 2002-12-21  Karl Berry  <karl@gnu.org>
62747
62748         * doc/fdl.texi: update to version 1.2.
62749
62750 2002-12-19  Karl Berry  <karl@gnu.org>
62751
62752         * config/config.guess: update from prep.
62753
62754 2002-12-18  Bruno Haible  <bruno@clisp.org>
62755
62756         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
62757         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
62758
62759 2002-12-17  Bruno Haible  <bruno@clisp.org>
62760
62761         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
62762         stdlib.h, string.h.
62763
62764 2002-12-17  Bruno Haible  <bruno@clisp.org>
62765
62766         * lib/canon-host.c (strdup): Remove unused declaration.
62767
62768         * lib/fsusage.c: Include full_read.h.
62769         (get_fs_usage): Use full_read instead of safe_read.
62770
62771         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
62772
62773 2002-12-12  Karl Berry  <karl@gnu.org>
62774
62775         * config/config.guess: update from prep.
62776
62777 2002-12-11  Bruno Haible  <bruno@clisp.org>
62778
62779         * m4/setenv.m4: New file, from gettext-0.11.5.
62780
62781 2002-12-11  Bruno Haible  <bruno@clisp.org>
62782
62783         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
62784         not unsetenv().
62785         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
62786         modifications:
62787
62788         2002-12-11  Bruno Haible  <bruno@clisp.org>
62789
62790                 * setenv.c (alloca): Fall back to malloc.
62791                 (freea): New macro.
62792                 (setenv): Use freea() to free memory allocated with alloca().
62793
62794         2002-11-13  Bruno Haible  <bruno@clisp.org>
62795
62796                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
62797                 function declarations.
62798                 * unsetenv.c (unsetenv): Likewise.
62799
62800         2002-03-04  Bruno Haible  <bruno@clisp.org>
62801
62802                 Portability to AIX 4.3.3.
62803                 * unsetenv.c: New file, extracted from setenv.c.
62804                 * setenv.c: Move the unsetenv() function to unsetenv.c.
62805
62806         2001-12-20  Bruno Haible  <bruno@clisp.org>
62807
62808                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
62809                 use malloc instead. For SunOS 4.
62810
62811         2001-12-11  Bruno Haible  <bruno@clisp.org>
62812
62813                 * setenv.c: Declare alloca.
62814                 (compar_fn_t): New typedef.
62815                 (KNOWN_VALUE, STORE_VALUE): Use it.
62816
62817         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
62818         setenv.h.
62819
62820 2002-12-10  Paul Eggert  <eggert@twinsun.com>
62821
62822         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
62823         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
62824         Choose values that are less likely to collide with system fnmatch
62825         options.
62826         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
62827         defined (e.g., a pure POSIX system).
62828         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
62829         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
62830
62831 2002-12-06  Paul Eggert  <eggert@twinsun.com>
62832
62833         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
62834         a pain in practice to deal with generated m4 files.  This change
62835         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
62836
62837         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
62838         and jm-glibc-io.m4, as they are no longer a special case.
62839         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
62840         kludge and the auto-generation stuff.  Check only whether the
62841         functions are declared, not whether they exist, since older hosts
62842         that don't declare the functions can't use the optimization anyway.
62843
62844 2002-12-06  Jim Meyering  <jim@meyering.net>
62845
62846         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
62847
62848         Merge in changes from libc's misc/error.c, in preparation
62849         for the merge of gnulib's changes back into libc.
62850
62851         * lib/error.c (_): Define only if not already defined.
62852         Move definition to follow all #include directives.
62853         Include unlocked-io.h only if !_LIBC.
62854         [_LIBC]: Include <libio/libioP.h>.
62855         [USE_IN_LIBIO]: Include <libio/iolibio.h>
62856         (fflush): Tweak definition to use INTUSE.
62857         (putc): Define.
62858
62859 2002-12-05  Paul Eggert  <eggert@twinsun.com>
62860
62861         * lib/alloca.c [defined emacs]: Include "lisp.h".
62862         (xalloc_die) [defined emacs]: New macro.
62863         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
62864         [! defined emacs]: Include <xalloc.h>.
62865         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
62866         (pointer): Typedef to POINTER_TYPE *.
62867         (malloc): Remove decl; we now always use xmalloc.
62868         (alloca): Use old-style definition, since Emacs needs this.
62869         Check for arithmetic overflow when computing combined size.
62870
62871 2002-12-04  Paul Eggert  <eggert@twinsun.com>
62872
62873         Do not generate unlocked-io.h automatically, since it's easier to
62874         maintain it by hand.
62875
62876         * lib/unlocked-io.h: New file, from GNU diffutils,
62877         but with proper copyright notice and attribution.
62878         * lib/gen-uio: Remove.
62879         * lib/Makefile.am: Add copyright notice.
62880         (libfetish_a_SOURCES): Add unlocked-io.h.
62881         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
62882         (DISTCLEANFILES, io_functions): Remove macros.
62883         (EXTRA_DIST): Remove gen_uio.
62884         (unlocked-io.h): Remove rule.
62885
62886 2002-12-04  Jim Meyering  <jim@meyering.net>
62887
62888         Reflect the fact that stat.c and lstat.c are no longer generated.
62889         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
62890         (DISTCLEANFILES): Likewise.
62891         (EXTRA_DIST): Likewise.
62892         (all_local): Don't depend on stat.c or lstat.c.
62893         (stat.c, lstat.c): Remove rules.
62894         (EXTRA_DIST): Remove xstat.in.
62895
62896         * lib/xstat.in: Remove file.  Contents moved into stat.c.
62897         * lib/stat.c: New file.  Contents mostly from xstat.in.
62898         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
62899         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
62900
62901         * lib/safe-read.c: Rework so that it may serve to define safe_write,
62902         too.
62903         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
62904
62905 2002-12-03  Jim Meyering  <jim@meyering.net>
62906
62907         * lib/safe-read.c, safe-write.c: Change variable names and comments,
62908         but not semantics, to minimize the differences between these two files.
62909         (safe_read): Change comment to mention SAFE_READ_ERROR.
62910
62911         * lib/safe-read.c (IS_EINTR): Define.
62912         (safe_read): Use IS_EINTR in place of in-function cpp directives.
62913
62914 2002-12-02  Jim Meyering  <jim@meyering.net>
62915
62916         * lib/safe-read.c (EINTR): Define.
62917         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
62918         (INT_MAX): Provide fallback.
62919         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
62920
62921         * lib/safe-read.h (SAFE_READ_ERROR): Define.
62922
62923 2002-12-02  Bruno Haible  <bruno@clisp.org>
62924
62925         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
62926         Define, taken from safe-read.c.
62927         (INT_MAX): Provide fallback.
62928         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
62929         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
62930
62931         * lib/safe-read.c (EINTR): Remove definition.
62932         (safe_read): Don't use EINTR if it is absent.
62933
62934 2002-12-01  Jim Meyering  <jim@meyering.net>
62935
62936         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
62937         zero.
62938         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
62939
62940 2002-11-27  Paul Eggert  <eggert@twinsun.com>
62941
62942         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
62943         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
62944         with `if (! (value < limit)) abort ();', for readability.
62945
62946 2002-11-26  Karl Berry  <karl@gnu.org>
62947
62948         * lib/strdup.c: copy from libc again, with jim's ok.
62949         * lib/.cppi-disable: re-add strdup.c
62950
62951 2002-11-25  Karl Berry  <karl@gnu.org>
62952
62953         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
62954         instead of "strtol.c".
62955
62956 2002-11-25  Karl Berry  <karl@gnu.org>
62957
62958         * config/install-sh: update from automake for variable quoting, $0 in
62959         error msgs, etc.
62960
62961         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
62962         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
62963         entry.
62964
62965 2002-11-25  Jim Meyering  <jim@meyering.net>
62966
62967         * lib/mktime.c: Sync from libc, now that it has the latest fix.
62968
62969 2002-11-24  Karl Berry  <karl@gnu.org>
62970
62971         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
62972         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
62973
62974 2002-11-24  Jim Meyering  <jim@meyering.net>
62975
62976         Update from coreutils:
62977
62978         * lib/mktime.c: Merge in changes from libc.
62979
62980         Avoid a link-time failure on some Linux systems.
62981         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
62982         (otherwise).
62983         (__mon_yday): Declare with the STATIC attribute.
62984         (__mktime_internal): Likewise.
62985         Based on a report from Greg Schafer.
62986
62987 2002-11-23  Jim Meyering  <jim@meyering.net>
62988
62989         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
62990         Use `unsigned', not `int', as type of index.
62991
62992         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
62993
62994         * lib/fsusage.c: Remove unneeded parentheses around operands of
62995         `defined'.
62996
62997 2002-11-22  Paul Eggert  <eggert@twinsun.com>
62998
62999         * lib/quotearg.h: Allow multiple inclusion by surrounding with
63000         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
63001         so that we can be included first.
63002         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
63003         * lib/quotearg.c: Include quotearg.h immediately after config.h.
63004         No need to include stddef.h or sys/types.h any more.
63005         Surround local include files with "", not "<>".
63006         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
63007         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
63008         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
63009         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
63010         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
63011         (ISPRINT): Remove; no longer needed now that we assume C89.
63012
63013         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
63014         Preserve errno.
63015
63016         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
63017         quotearg_char): Use SIZE_MAX rather than
63018         (size_t) -1 when we are talking about "infinity".
63019
63020         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
63021
63022 2002-11-22  Paul Eggert  <eggert@twinsun.com>
63023
63024         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
63025         hint that one should use `if (! x) abort ();' rather than `assert
63026         (x);', and anyway it's one less thing to worry about configuring.
63027         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
63028         hash_rehash, hash_insert): Use abort rather than assert.
63029
63030 2002-11-22  Bruno Haible  <bruno@clisp.org>
63031
63032         * lib/safe-read.h: Assume C89. Add comments.
63033         (safe_read): Change return type to size_t.
63034         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
63035         byte counts > SSIZE_MAX correctly.
63036         * lib/safe-write.h: New file.
63037         * lib/safe-write.c: New file.
63038         * lib/full-read.h: New file.
63039         * lib/full-read.c: New file.
63040         * lib/full-write.h: Assume C89. Add comments.
63041         * lib/full-write.c: Include safe-write.h.
63042         (full_write): Rewritten to use safe_write.
63043         Suggested by Jim Meyering and Paul Eggert.
63044
63045 2002-11-21  Jim Meyering  <jim@meyering.net>
63046
63047         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
63048
63049         Merge in changes from the coreutils.
63050
63051         2002-09-25  Paul Eggert  <eggert@twinsun.com>
63052         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
63053         <stdint.h>.
63054         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
63055         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
63056         int.  Work more efficiently if X is the same width as uintmax_t.
63057         Do not compare X to -1, to avoid bogus compiler warning.
63058         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
63059         Don't assume that f_frsize and f_bsize are the same type.
63060
63061         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
63062         warning on FreeBSD.
63063
63064         * lib/makepath.c (make_path): Restore umask *before* creating the final
63065         component.
63066         (make_path): Minor reformatting.
63067
63068         * lib/xmalloc.c: Adjust to work with new autoconf macros,
63069         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
63070         HAVE_MALLOC/HAVE_REALLOC.
63071
63072         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
63073         dummy ones.  At least on GNU/Linux systems, `auto' means something
63074         else.
63075         From Michael Stone.
63076
63077 2002-11-21  Bruno Haible  <bruno@clisp.org>
63078
63079         Remove case insensitive option matching.
63080         * lib/argmatch.h (argcasematch): Remove declaration.
63081         (ARGCASEMATCH): Remove macro.
63082         (__xargmatch_internal): Remove case_sensitive argument.
63083         (XARGMATCH): Update.
63084         (XARGCASEMATCH): Remove macro.
63085         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
63086         case_sensitive argument.
63087         (argcasematch): Remove function.
63088         (__xargmatch_internal): Remove case_sensitive argument.
63089         (main): Use XARGMATCH instead of XARGCASEMATCH.
63090
63091         * lib/xmalloc.c: Change compile-time error message. Add comment about
63092         required autoconf version.
63093
63094 2002-11-20  Paul Eggert  <eggert@twinsun.com>
63095
63096         Merge argmatch cleanups from Bison.  Assume C89.
63097
63098         * lib/argmatch.c: Include config.h here, not in argmatch.h.
63099         Include stdlib.h, for EXIT_FAILURE.
63100         Always include <string.h>, since we assume C89.
63101         (EXIT_FAILURE): Remove pre-C89 bug workaround.
63102         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
63103         Include <stddef.h> instead, since it's all we need for size_t.
63104         (PARAMS): Remove.  All uses removed.
63105         (ARRAY_CARDINALITY): Do not bother to #undef.
63106         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
63107         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
63108         Remove unnecessary parentheses.
63109         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
63110         Insert necessary parentheses.
63111         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
63112         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
63113
63114 2002-11-19  Bruno Haible  <bruno@clisp.org>
63115
63116         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
63117         * lib/mbswidth.h: Include <stddef.h>, for size_t.
63118
63119         * lib/mbswidth.h (PARAMS): Remove macro.
63120         (mbswidth, mbsnwidth): Use ANSI C function declarations.
63121         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
63122
63123         * lib/gcd.h (PARAMS): Remove macro.
63124         (gcd): Use ANSI C function declarations.
63125         * lib/gcd.c (gcd): Likewise.
63126
63127 2002-11-15  Bruno Haible  <bruno@clisp.org>
63128
63129         * lib/strcspn.c: Include <stddef.h>.
63130         (strcspn): Use ANSI C function declaration. Change return type to
63131         size_t. Use NULL.
63132         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
63133         (strpbrk): Use NULL.
63134         * lib/strpbrk.h (PARAMS): Remove macro.
63135         (strpbrk): Use ANSI C function declaration.
63136         * lib/strstr.c: Don't include <sys/types.h>.
63137         * lib/strstr.h (PARAMS): Remove macro.
63138         (strstr): Use ANSI C function declarations.
63139
63140 2002-11-14  Karl Berry  <karl@gnu.org>
63141
63142         * config/mkinstalldirs: `do' on separate line, instead of
63143         `for var; do'.
63144
63145 2002-11-06  Bruno Haible  <bruno@clisp.org>
63146
63147         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
63148         * lib/gcd.c (gcd): Likewise.
63149
63150 2002-11-05  Bruno Haible  <bruno@clisp.org>
63151
63152         * lib/gcd.h: New file, from gettext-0.11.5.
63153         * lib/gcd.c: New file, from gettext-0.11.5.
63154
63155 2002-11-05  Bruno Haible  <bruno@clisp.org>
63156
63157         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
63158         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
63159         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
63160         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
63161
63162         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
63163         <libintl.h>.
63164         * lib/makepath.c: Include gettext.h instead of <locale.h> and
63165         <libintl.h>.
63166
63167         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
63168         * lib/human.c: Include gettext.h instead of <libintl.h>.
63169         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
63170         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
63171         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
63172         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
63173         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
63174         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
63175         (textdomain): Remove definition.
63176         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
63177
63178         * lib/long-options.c: Remove include of <libintl.h> and definition of
63179         _.
63180         * lib/same.c: Remove include of <libintl.h> and definition of _.
63181
63182 2002-11-04  Owen Taylor  <otaylor@redhat.com>
63183
63184         * lib/config.charset: A few additions for Solaris.
63185
63186 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
63187
63188         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
63189         * lib/localcharset.c (locale_charset): Declare as extern "C".
63190
63191 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
63192
63193         * lib/config.charset: msdos in uk_UA uses CP1125.
63194
63195 2002-11-04  Bruno Haible  <bruno@clisp.org>
63196
63197         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
63198         * lib/strcase.h: New file, from GNU gettext-0.11.5.
63199         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
63200         * lib/strstr.h: New file, from GNU gettext-0.11.5.
63201         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
63202
63203 2002-11-04  Bruno Haible  <bruno@clisp.org>
63204
63205         * lib/localcharset.c (locale_charset): Don't return an empty string.
63206
63207 2002-11-04  Bruno Haible  <bruno@clisp.org>
63208
63209         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
63210         aliases.
63211
63212 2002-11-04  Bruno Haible  <bruno@clisp.org>
63213
63214         * lib/config.charset: Update for newest glibc. Add canonical names
63215         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
63216
63217 2002-11-04  Bruno Haible  <bruno@clisp.org>
63218
63219         * lib/config.charset: Add support for NetBSD.
63220
63221 2002-11-04  Bruno Haible  <bruno@clisp.org>
63222
63223         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
63224
63225 2002-11-01  Bruno Haible  <bruno@clisp.org>
63226
63227         * configure.in: Add AC_CONFIG_AUX_DIR call.
63228         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
63229         test/Makefile.
63230         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
63231
63232 2002-09-28  Karl Berry  <karl@gnu.org>
63233
63234         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
63235         installed automake until the next release, since changes have been
63236         made.
63237
63238 2002-09-25  Karl Berry  <karl@gnu.org>
63239
63240         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
63241         * lib/getopt*: copy from libc/posix.
63242         * lib/gettext.h: copy from gettext.
63243         * lib/.cppi-disable: add strdup.c, gettext.h.
63244
63245 2002-09-25  Karl Berry  <karl@gnu.org>
63246
63247         * config/srclist.txt: enable gettext.h check.
63248         * config/config.{guess,sub}: update from prep.
63249         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
63250                 from automake 1.6.3.
63251         See srclist*.
63252
63253 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
63254
63255         * regex.c (PATFETCH): Remove the translating fetch.
63256         (PATFETCH_RAW): Rename to PATFETCH.
63257         (set_image_of_range): New fun.
63258         (SET_RANGE_TABLE_WORK_AREA): Use it.
63259         (regex_compile): Don't translate the pattern chars so eagerly.
63260         Only do it when inserting an `exactn' bytecode or when handling
63261         a char-range.
63262         (mutually_exclusive_p): Avoid empty statement.
63263
63264 2002-07-06  Jim Meyering  <meyering@lucent.com>
63265
63266         * m4/README: Don't mention Makefile.am.in.
63267         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
63268
63269 2002-07-01  Jim Meyering  <meyering@lucent.com>
63270
63271         * lib/c-stack.c: Include sys/time.h.
63272         From Volker Borchert.
63273
63274 2002-06-26  Paul Eggert  <eggert@twinsun.com>
63275
63276         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
63277
63278 2002-06-26  Paul Eggert  <eggert@twinsun.com>
63279
63280         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
63281         New macro.  Use it uniformly instead of
63282         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
63283         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
63284         reported by Vin Shelton.
63285
63286 2002-06-22  Paul Eggert  <eggert@twinsun.com>
63287
63288         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
63289         Do not assume SA_SIGINFO behavior.
63290         Bug reported by Jim Meyering on NetBSD 1.5.2.
63291
63292 2002-06-22  Jim Meyering  <meyering@lucent.com>
63293
63294         * m4/c-stack.m4: New file, from diffutils-2.8.2.
63295         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
63296
63297         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
63298         now that configure.ac uses AC_GNU_SOURCE.
63299         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
63300         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
63301
63302         Update to latest tools.  Suggestions from Paul Eggert.
63303         * m4/stdbool.m4: New file, from diffutils-2.8.2.
63304         * m4/gnu-source.m4: Update from diffutils-2.8.2.
63305         * m4/fnmatch.m4: Likewise.
63306         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
63307         to AC_HEADER_STDBOOL
63308
63309 2002-06-22  Jim Meyering  <meyering@lucent.com>
63310
63311         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
63312         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
63313
63314 2002-06-22  Jim Meyering  <meyering@lucent.com>
63315
63316         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
63317
63318         * lib/exitfail.c, exitfail.h: Likewise.
63319         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
63320
63321         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
63322         of fnmatch.h.
63323         (EXTRA_DIST): Add fnmatch_loop.c.
63324         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
63325
63326         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
63327         * lib/fnmatch.c: Update from diffutils-2.8.2.
63328         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
63329         * lib/fnmatch.h: Remove file.
63330
63331 2002-06-21  Jim Meyering  <meyering@lucent.com>
63332
63333         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
63334         * m4/mbrtowc.m4: Likewise.
63335
63336         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
63337         * m4/mbswidth.m4: Reflect name change:
63338         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
63339         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
63340
63341         * m4/lib-link.m4: Update from gettext-0.11.2.
63342         * m4/gettext.m4: Likewise.
63343
63344         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
63345         From Alfred M. Szmidt.
63346
63347 2002-06-18  Paul Eggert  <eggert@twinsun.com>
63348
63349         * lib/file-type.h: Report an error if neither S_ISREG nor
63350         S_IFREG is defined, instead of using a test specific to glibc
63351         2.2.  This should be safe, since POSIX requires S_ISREG and
63352         Unix Version 7 had S_IFREG.  We don't need to check for
63353         <sys/types.h> since we don't use any symbols that it defines.
63354
63355 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
63356
63357         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
63358         $@-t, so that each temporary file name is unique and valid in the first
63359         8 characters, for operation under DOS.
63360
63361 2002-06-15  Paul Eggert  <eggert@twinsun.com>
63362
63363         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
63364
63365 2002-06-15  Jim Meyering  <meyering@lucent.com>
63366
63367         Work even with DJGPP 2.03, which lacks support for symlinks.
63368         From Richard Dawe.
63369         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
63370         is defined.
63371         * lib/lchown.c (S_ISLNK): Likewise.
63372
63373 2002-06-15  Jim Meyering  <meyering@lucent.com>
63374
63375         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
63376         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
63377         have been included before this file.
63378
63379 2002-06-14  Jim Meyering  <meyering@lucent.com>
63380
63381         * lib/file-type.h: Use the version from diffutils-2.8.2.
63382         * lib/file-type.c: Likewise.
63383
63384 2002-06-07  Jim Meyering  <meyering@lucent.com>
63385
63386         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
63387         They're needed at least for NetBSD 1.5.2.
63388         ($statxfs_includes): Include those same headers.
63389         ($statxfs_includes): Include sys/vfs.h if available.
63390         ($statxfs_includes): Likewise for sys/statvfs.h.
63391         Check for the following members in both structs statfs and statvfs:
63392         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
63393
63394 2002-06-01  Jim Meyering  <meyering@lucent.com>
63395
63396         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
63397         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
63398
63399 2002-05-28  Jim Meyering  <meyering@lucent.com>
63400
63401         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
63402         Reported by Volker Borchert.
63403
63404 2002-05-27  Jim Meyering  <meyering@lucent.com>
63405
63406         Fix a problem seen only on nonconforming systems whereby ls.c's
63407         use of localtime, and then of gettimeofday would cause trouble:
63408         the localtime call used to initialize rpl_gettimeofday's save
63409         mechanism would clobber ls's current local time information so
63410         that in any long listing the first file would always be listed
63411         with date 1970-01-01.  Analysis by Volker Borchert.
63412
63413         * lib/gettimeofday.c (localtime): Undefine.
63414         (rpl_localtime): New function.
63415
63416 2002-05-27  Jim Meyering  <meyering@lucent.com>
63417
63418         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
63419         localtime.
63420
63421         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
63422         use the replacement function; it wouldn't resolve at link time.
63423         Reported by Volker Borchert.
63424
63425 2002-05-22  Jim Meyering  <meyering@lucent.com>
63426
63427         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
63428         file-type.h.
63429         * lib/file-type.h: New file.
63430         * lib/file-type.c (file_type): New file/function.  Extracted from
63431         diffutils.
63432
63433 2002-04-30  Jim Meyering  <meyering@lucent.com>
63434
63435         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
63436
63437 2002-04-29  Paul Eggert  <eggert@twinsun.com>
63438
63439         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
63440
63441 2002-04-29  Paul Eggert  <eggert@twinsun.com>
63442
63443         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
63444         Do not check for alloca.h (no longer used) or stdbool.h (was never
63445         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
63446
63447 2002-04-29  Paul Eggert  <eggert@twinsun.com>
63448
63449         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
63450
63451 2002-04-29  Jim Meyering  <meyering@lucent.com>
63452
63453         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
63454         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
63455         Use AC_FUNC_STRNLEN here instead.
63456
63457         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
63458         With autoconf-2.53a, it's part of AC_PROG_CC.
63459
63460 2002-04-28  Paul Eggert  <eggert@twinsun.com>
63461
63462         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
63463         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
63464
63465 2002-04-28  Paul Eggert  <eggert@twinsun.com>
63466
63467         * lib/sig2str.h, lib/sig2str.c: New files.
63468         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
63469
63470 2002-04-28  Paul Eggert  <eggert@twinsun.com>
63471
63472         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
63473         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
63474         of 127, since 64 is the largest conceivable number for ancient
63475         nonstandard hosts.
63476         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
63477
63478 2002-04-28  Jim Meyering  <meyering@lucent.com>
63479
63480         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
63481
63482 2002-04-24  Jim Meyering  <meyering@lucent.com>
63483
63484         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
63485         (jm_PREREQ): Use it.
63486
63487         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
63488         mach/mach.h fcntl.h.
63489         Check for this function: setlocale.
63490
63491 2002-04-24  Jim Meyering  <meyering@lucent.com>
63492
63493         * lib/gettext.h: New file, from Gettext.
63494         * lib/Makefile.am (INCLUDES): Remove -I../intl.
63495         (libfetish_a_SOURCES): Add gettext.h.
63496
63497 2002-04-16  Jim Meyering  <meyering@lucent.com>
63498
63499         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
63500         ut_pid, ut_id, ut_exit.
63501
63502 2002-04-16  Jim Meyering  <meyering@lucent.com>
63503
63504         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
63505         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
63506         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
63507
63508 2002-04-12  Jim Meyering  <meyering@lucent.com>
63509
63510         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
63511         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
63512         existence of the getmntinfo function.  Needed for Darwin 5.3.
63513
63514         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
63515         This is necessary at least on Darwin 5.3.
63516
63517         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
63518         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
63519         strnlen.o in the library, and that makes some versions of ranlib
63520         object.
63521
63522 2002-04-12  Jim Meyering  <meyering@lucent.com>
63523
63524         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
63525
63526 2002-04-09  Jim Meyering  <meyering@lucent.com>
63527
63528         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
63529         to be more precise.  Rather than saying we're checking whether the
63530         function `works', say what we're testing.
63531         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
63532         Reported by Bruno Haible.
63533
63534 2002-03-10  Jim Meyering  <meyering@lucent.com>
63535
63536         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
63537         Suggestion from Santiago Vila.
63538
63539 2002-03-08  Jim Meyering  <meyering@lucent.com>
63540
63541         * lib/rename.c: Mention that this wrapper is needed also on
63542         mips-dec-ultrix4.4 systems.
63543
63544 2002-03-02  Jim Meyering  <meyering@lucent.com>
63545
63546         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
63547         not HAVE_CLOCK_SETTIME.
63548
63549 2002-02-27  Paul Eggert  <eggert@twinsun.com>
63550
63551         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
63552         Check for clock_settime.
63553
63554 2002-02-27  Paul Eggert  <eggert@twinsun.com>
63555
63556         * lib/nanosleep.h: Rename to....
63557         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
63558
63559         * lib/gettime.c: New file.
63560         * lib/settime.c: New file.
63561         * lib/stime.c: Remove.
63562
63563         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
63564         timespec.h.  Remove nanosleep.h.
63565
63566 2002-02-25  Paul Eggert  <eggert@twinsun.com>
63567
63568         * m4/acl.m4: New file.
63569         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
63570         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
63571
63572 2002-02-25  Paul Eggert  <eggert@twinsun.com>
63573
63574         * lib/acl.c, lib/acl.h: New files.
63575         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
63576
63577 2002-02-24  Jim Meyering  <meyering@lucent.com>
63578
63579         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
63580         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
63581         cause trouble.  Reported by Nelson Beebe.
63582
63583 2002-02-23  Paul Eggert  <eggert@twinsun.com>
63584
63585         * lib/path-concat.c (xpath_concat): Reorder code to pacify
63586         compilers that don't know that xalloc_die never returns.
63587
63588 2002-02-20  Jim Meyering  <meyering@lucent.com>
63589
63590         * lib/getdate.c: Regenerate using bison-1.33.
63591
63592 2002-02-17  Jim Meyering  <meyering@lucent.com>
63593
63594         * config/config.guess (main): Don't use `head -1'; it's no longer
63595         portable. Use `sed 1q' instead.
63596
63597 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
63598
63599         * m4/codeset.m4: Upgrade to gettext-0.11.
63600         * m4/gettext.m4: Upgrade to gettext-0.11.
63601         * m4/glibc21.m4: Upgrade to gettext-0.11.
63602         * m4/iconv.m4: Upgrade to gettext-0.11.
63603         * m4/isc-posix.m4: Upgrade to gettext-0.11.
63604         * m4/lcmessage.m4: Upgrade to gettext-0.11.
63605         * m4/lib-ld.m4: New file, from gettext-0.11.
63606         * m4/lib-link.m4: New file, from gettext-0.11.
63607         * m4/lib-prefix.m4: New file, from gettext-0.11.
63608         * m4/progtest.m4: Upgrade to gettext-0.11.
63609
63610 2002-02-15  Paul Eggert  <eggert@twinsun.com>
63611
63612         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
63613         (jm_PREREQ): Use it.
63614
63615 2002-02-15  Paul Eggert  <eggert@twinsun.com>
63616
63617         * lib/posixver.c, lib/posixver.h: New files.
63618         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
63619
63620 2002-02-02  Paul Eggert  <eggert@twinsun.com>
63621             Bruno Haible  <bruno@clisp.org>
63622
63623         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
63624         (fwrite_success_callback): New declaration.
63625         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
63626         print_unicode_char. Call failure callback instead of error.
63627         (fwrite_success_callback): New function.
63628         (exit_failure_callback): New function.
63629         (fallback_failure_callback): New function.
63630         (print_unicode_char): Call unicode_to_mb.
63631
63632 2002-01-26  Jim Meyering  <meyering@lucent.com>
63633
63634         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
63635         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
63636
63637 2002-01-26  Jim Meyering  <meyering@lucent.com>
63638
63639         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
63640
63641 2002-01-22  Paul Eggert  <eggert@twinsun.com>
63642
63643         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
63644
63645 2002-01-22  Jim Meyering  <meyering@lucent.com>
63646
63647         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
63648         Otherwise, some versions of automake would omit the rule that makes
63649         Makefile from Makefile.in.
63650
63651 2002-01-21  Paul Eggert  <eggert@twinsun.com>
63652
63653         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
63654         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
63655         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
63656         (memcoll): Set errno to zero if there is no error.
63657
63658         * lib/quotearg.c (quotearg_buffer_restyled):
63659         Fix bug with quoting buffers containing NUL when backslashing escapes.
63660         This bug was exposed by the other changes in this patch.
63661         (quotearg_n_options): New arg ARGSIZE.
63662         All callers changed.
63663         (quoting_options_from_style): New function.
63664         (quotearg_n_style): Use it.
63665         (quotearg_n_style_mem): New function.
63666
63667         * lib/quotearg.h (quotearg_n_style_mem): New function.
63668
63669 2002-01-19  Jim Meyering  <meyering@lucent.com>
63670
63671         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
63672         Remove useless quotes: DF_PROG="df".
63673         * m4/strnlen.m4: New file.
63674
63675 2002-01-16  Paul Eggert  <eggert@twinsun.com>
63676
63677         * lib/backupfile.c (ISDIGIT): Comment fix.
63678         * lib/getdate.y (ISDIGIT): Likewise.
63679         * lib/posixtm.c (ISDIGIT, year): Likewise.
63680         * lib/strverscmp.c (ISDIGIT): Likewise.
63681         * lib/userspec.c (ISDIGIT): Likewise.
63682
63683 2002-01-16  Jim Meyering  <meyering@lucent.com>
63684
63685         * lib/getdate.y: Add three semicolons, each just before a closing
63686         brace. Bison (as of version 1.31) no longer papers over that mistake.
63687
63688 2002-01-05  Jim Meyering  <meyering@lucent.com>
63689
63690         * lib/version-etc.c (version_etc_copyright): Update copyright year.
63691
63692 2001-12-19  Paul Eggert  <eggert@twinsun.com>
63693
63694         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
63695         not silently exit merely because the output buffer happens to
63696         have nothing pending.
63697
63698 2001-12-18  Paul Eggert  <eggert@twinsun.com>
63699
63700         See the big note in ../ChangeLog.
63701         * lib/human.c (suffixes): Prefer K to k for 1024.
63702         (generate_suffix_backwards): New function.
63703         (human_readable_inexact): Use it.
63704         * lib/xstrtol.c (__xstrtol): If there is no number but there
63705         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
63706         Accept 'K' as well as 'k'.
63707
63708 2001-12-15  Jim Meyering  <meyering@lucent.com>
63709
63710         * lib/regex.h (__restrict_arr): Update from libc.
63711
63712         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
63713         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
63714         (STREQ): Define.
63715
63716 2001-12-14  Jim Meyering  <meyering@lucent.com>
63717
63718         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
63719         Suggestion from Bruno Haible.
63720
63721 2001-12-10  Jim Meyering  <meyering@lucent.com>
63722
63723         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
63724         xrealloc, Instead, include "xalloc.h".
63725         (initbuffer): Don't cast xmalloc return value to char*.
63726         (readline): Reword comment.
63727         Don't cast xrealloc return value to char*
63728         Return NULL, not 0.
63729
63730 2001-12-09  Jim Meyering  <meyering@lucent.com>
63731
63732         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
63733         about `signed and unsigned type in conditional expression'.
63734         * lib/posixtm.c (posix_time_parse): Likewise.
63735
63736         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
63737
63738         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
63739         to avoid a pedantic warning.
63740
63741         * lib/getstr.c: Don't include assert.h.
63742         (getstr): Remove warning-evoking assertions.
63743         Return -1 if offset parameter is out of bounds.
63744         Change the type of a local from int to size_t.
63745
63746         * lib/strftime.c (my_strftime_localtime_r): Include this function
63747         definition in the `#if ! HAVE_TM_GMTOFF' block.
63748
63749         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
63750         Include xalloc.h instead.
63751
63752 2001-12-02  Jim Meyering  <meyering@lucent.com>
63753
63754         * lib/tempname.c: Don't declare getenv, thus reverting the change of
63755         2001-11-18.  It's no longer necessary, now that stdlib.h is always
63756         included.
63757
63758         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
63759         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
63760
63761 2001-11-30  Akim Demaille  <akim@epita.fr>
63762
63763         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
63764         before being defined.
63765
63766 2001-11-27  Paul Eggert  <eggert@twinsun.com>
63767
63768         * lib/quotearg.h (quotearg_n, quotearg_n_style):
63769         First arg is int, not unsigned.
63770         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
63771         (SIZE_MAX, UINT_MAX): New macros.
63772         (quotearg_n_options): Abort if N is negative.
63773         Avoid overflow check on hosts where size_t is 64 bits and int
63774         is 32 bits, as overflow is impossible there.
63775         Fix off-by-one typo that caused unnecessary reallocation.
63776
63777 2001-11-27  Jim Meyering  <meyering@lucent.com>
63778
63779         * lib/tempname.c: Merge with version from libc.
63780         * lib/regex.c: Likewise.
63781
63782         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
63783         systems for which STDC_HEADERS is 0, it was not included, resulting in
63784         a warning about an integer-to-pointer conversion problem with getenv.
63785         Reported by Volker Borchert.
63786
63787 2001-11-26  Jim Meyering  <meyering@lucent.com>
63788
63789         * lib/gtod.h: Remove file.
63790         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
63791         * lib/gettimeofday.c: Don't include gtod.h.
63792         (GTOD_init): Remove function.
63793         (rpl_gettimeofday): Do its job here instead, rather than aborting.
63794         Suggestion from Volker Borchert.
63795
63796 2001-11-23  Jim Meyering  <meyering@lucent.com>
63797
63798         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
63799         it.
63800         * lib/hash.c (struct hash_table): Define it here instead.
63801
63802 2001-11-22  Jim Meyering  <meyering@lucent.com>
63803
63804         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
63805
63806 2001-11-20  Jim Meyering  <meyering@lucent.com>
63807
63808         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
63809         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
63810
63811 2001-11-19  Jim Meyering  <meyering@lucent.com>
63812
63813         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
63814         directory.  Use "conftestXXXXXX" as the template.
63815         Suggestion from Paul Eggert.
63816
63817         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
63818         immediately, so the test doesn't mistakenly hit the max-open-files
63819         limit.
63820
63821 2001-11-18  Paul Eggert  <eggert@twinsun.com>
63822
63823         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
63824         (TEMPORARIES): New macro.
63825         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
63826         removes an artificial limitation (e.g. HP-UX 10.20, where
63827         TMP_MAX is 17576).
63828
63829 2001-11-18  Jim Meyering  <meyering@lucent.com>
63830
63831         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
63832
63833 2001-11-18  Jim Meyering  <meyering@lucent.com>
63834
63835         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
63836         on SunOS 4.
63837
63838         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
63839         files will be created before anything else.
63840
63841 2001-11-17  Paul Eggert  <eggert@twinsun.com>
63842
63843         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
63844         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
63845
63846 2001-11-17  Jim Meyering  <meyering@lucent.com>
63847
63848         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
63849         Prompted by a report from Bob Proulx.
63850
63851         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
63852         Instead, require UTILS_FUNC_MKSTEMP.
63853
63854 2001-11-17  Jim Meyering  <meyering@lucent.com>
63855
63856         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
63857         Now, that's done as part of AC_FUNC_STRTOD.
63858
63859 2001-11-17  Jim Meyering  <meyering@lucent.com>
63860
63861         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
63862         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
63863         rather than group writable.  Patch by Juan F. Codagnone.
63864
63865         * lib/readtokens.c: Remove explicit declarations of xmalloc and
63866         xrealloc, Instead, include "xalloc.h".
63867
63868         * lib/mountlist.c: Include unlocked-io.h after all system headers.
63869         Remove explicit declarations of xmalloc, xrealloc,
63870         and xstrdup.  Instead, include "xalloc.h".
63871
63872         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
63873         unlocked-io.h.
63874         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
63875         Likewise.
63876         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
63877
63878         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
63879         Reported by Padraig Brady.
63880
63881         * lib/mkstemp.c: #undef mkstemp.
63882         Include config.h.
63883         (rpl_mkstemp): Rename from mkstemp.
63884         Protoize.
63885
63886 2001-11-16  Jim Meyering  <meyering@lucent.com>
63887
63888         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
63889         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
63890         determine the amount of total physical memory, use pstat_getstatic.
63891         HPUX-11 doesn't define _SC_PHYS_PAGES.
63892         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
63893         If sysconf couldn't be used to determine the amount of available
63894         physical memory, use both pstat_getstatic and pstat_getdynamic.
63895         Based on a patch from Bob Proulx.
63896
63897 2001-11-10  Jim Meyering  <meyering@lucent.com>
63898
63899         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
63900         (jm_PREREQ): Use it.
63901
63902 2001-11-09  Jim Meyering  <meyering@lucent.com>
63903
63904         * m4/jm-macros.m4: Require autoconf-2.52f.
63905         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
63906         Use these AC_-prefixed names, not the AM_-prefixed ones.
63907
63908         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
63909
63910 2001-11-05  Jim Meyering  <meyering@lucent.com>
63911
63912         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
63913
63914 2001-11-04  Jim Meyering  <meyering@lucent.com>
63915
63916         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
63917         $DEFS.
63918
63919 2001-11-03  Jim Meyering  <meyering@lucent.com>
63920
63921         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
63922         of AC_DEFUN.
63923
63924         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
63925         know the name of the variable in the macro definition.
63926
63927 2001-11-03  Jim Meyering  <meyering@lucent.com>
63928
63929         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
63930         in argmatch_to_argument call.
63931
63932         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
63933         argument.
63934
63935         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
63936         e.g., a fault due to an attempt to free a NULL pointer.
63937
63938 2001-11-01  Jim Meyering  <meyering@lucent.com>
63939
63940         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
63941         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
63942
63943 2001-11-01  Jim Meyering  <meyering@lucent.com>
63944
63945         * lib/dirfd.c, lib/dirfd.h: New files.
63946         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
63947
63948         * lib/hash.c (hash_print) [TESTING]: Clean up.
63949
63950 2001-10-22  Paul Eggert  <eggert@twinsun.com>
63951
63952         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
63953         to avoid a warning if -Wall.
63954
63955 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
63956
63957         * README: New file
63958         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
63959         (per RMS's instructions, this is now the canonical source)
63960         * lgpl/, gpl/: New directories.
63961
63962 2001-10-21  Paul Eggert  <eggert@twinsun.com>
63963
63964         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
63965
63966 2001-10-21  Jim Meyering  <meyering@lucent.com>
63967
63968         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
63969         this code would end up calling gettext even in packages built
63970         with --disable-nls.
63971         * lib/getopt.c (_): Likewise.
63972         * lib/regex.c (_): Likewise.
63973
63974 2001-10-20  Paul Eggert  <eggert@twinsun.com>
63975
63976         * m4/error.m4 (jm_PREREQ_ERROR):
63977         Do not invoke AC_CHECK_FUNCS with strerror_r, as
63978         AC_FUNC_STRERROR_R does that.
63979         Check for strerror declaration.
63980
63981         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
63982         are supposed to have them these days.
63983         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
63984         Merge changes from latest Autoconf CVS.
63985         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
63986         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
63987         POSIX decided to standardize on the int flavor of strerror_r.
63988
63989 2001-10-20  Paul Eggert  <eggert@twinsun.com>
63990
63991         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
63992         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
63993         Use strerror_r that is only a macro, even if it is not a function.
63994         (strerror): Check for HAVE_DECL_STRERROR before declaring.
63995         (private_strerror): Use prototypes, not old-style function definition.
63996         (print_errno_message): New function.
63997         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
63998         char*-flavored one.
63999         (error_tail, error, error_at_line): Use it.
64000
64001 2001-10-11  Jim Meyering  <meyering@lucent.com>
64002
64003         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
64004         and quote_n (1, ... to avoid clobbering a buffer.
64005
64006 2001-10-05  Jim Meyering  <meyering@lucent.com>
64007
64008         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
64009         hash-pjw.h.
64010         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
64011         * lib/hash-pjw.h: New file.
64012
64013 2001-09-30  Jim Meyering  <meyering@lucent.com>
64014
64015         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
64016         `struct fsstat' has the `f_fstypename' member.
64017         Use that to define FS_TYPE, which is now used to make
64018         the getfsstat link test tighter.
64019
64020 2001-09-30  Jim Meyering  <meyering@lucent.com>
64021
64022         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
64023         Include <sys/ucred.h>, for Apple Darwin.
64024         Include sys/mount.h and sys/fs_types.h only if available.
64025         (FS_TYPE): Define.
64026         (read_filesystem_list): Use FS_TYPE.
64027
64028 2001-09-29  Paul Eggert  <eggert@twinsun.com>
64029
64030         * lib/exclude.c (excluded_filename): 0 -> false, since it's
64031         a boolean context.
64032
64033 2001-09-29  Jim Meyering  <meyering@lucent.com>
64034
64035         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
64036         [one-argument getmntent function]): Include stdio.h before mntent.h.
64037         SunOS 4.1.x needs it for the declaration of `FILE'.
64038         Patch by Volker Borchert.
64039
64040         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
64041         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
64042         sys/fs_types.h, and make the link-test for getfsstat guard #include
64043         directives with appropriate #if HAVE_*_H tests so that we can
64044         detect getfsstat on Apple Darwin1.3.7 systems.
64045         Reported by Nelson Beebe.
64046         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
64047
64048 2001-09-28  Paul Eggert  <eggert@twinsun.com>
64049
64050         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
64051         #defines strtoimax.  Also treat the other strto* functions
64052         like strtoimax.
64053
64054         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
64055         Check for strtoul and strtoumax,
64056         as those declarations are made even in the signed case.
64057         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
64058         Likewise, for strtol and strtoimax.
64059
64060 2001-09-28  Paul Eggert  <eggert@twinsun.com>
64061
64062         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
64063         #defines strtoimax.  Also treat the other strto* functions
64064         like strtoimax.
64065
64066         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
64067         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
64068         (strtoimax, strtoumax): Do not declare if already defined as a macro.
64069
64070 2001-09-26  Jim Meyering  <meyering@lucent.com>
64071
64072         Most macros in unlocked-io.h had the wrong number of arguments.
64073         * lib/gen-uio: New script.
64074         (USE_UNLOCKED_IO): Define to 1 if not already defined.
64075         * lib/unlocked-io.hin: Remove file.
64076         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
64077         rather than trying to embed it here.
64078         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
64079         Reported by Padraig Brady.
64080
64081 2001-09-25  Volker Borchert  <bt@teknon.de>
64082
64083         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
64084         `result'.
64085
64086 2001-09-24  Jim Meyering  <meyering@lucent.com>
64087
64088         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
64089
64090 2001-09-23  Jim Meyering  <meyering@lucent.com>
64091
64092         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
64093         instead of the mere test for existence of mntent.h.  The latter
64094         would get a false-positive on AIX 3.4 systems.
64095         In the outer getmntent if-block, don't die if neither of the getmntent
64096         tests succeeds.  Instead, just fall through and continue with the
64097         remaining tests.
64098
64099 2001-09-23  Jim Meyering  <meyering@lucent.com>
64100
64101         * lib/mountlist.c: Remove useless parentheses in #if directives.
64102         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
64103         the deprecated MOUNTED symbol is no longer defined in mntent.h.
64104
64105 2001-09-22  Jim Meyering  <meyering@lucent.com>
64106
64107         * m4/gettext.m4: New file.  From gettext.
64108         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
64109         * m4/progtest.m4: Likewise
64110         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
64111         * m4/glibc21.m4: Likewise.
64112
64113         * m4/libintl.m4: Remove.  No longer used.
64114
64115 2001-09-22  Jim Meyering  <meyering@lucent.com>
64116
64117         * lib/localcharset.c: Update from latest gettext.
64118         * lib/config.charset: Likewise.
64119
64120 2001-09-20  Jim Meyering  <meyering@lucent.com>
64121
64122         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
64123         strtoimax.
64124         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
64125         strtoumax.
64126
64127 2001-09-20  Jim Meyering  <meyering@lucent.com>
64128
64129         * lib/xstrtol.c (strtoimax): Guard declaration with
64130         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
64131         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
64132         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
64133         (strtoumax): Likewise, for completeness (it wasn't necessary).
64134
64135 2001-09-17  Paul Eggert  <eggert@twinsun.com>
64136
64137         * lib/strtoimax.c (HAVE_LONG_LONG):
64138         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
64139         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
64140         to work around bug in IBM C compiler.
64141
64142 2001-09-17  Jim Meyering  <meyering@lucent.com>
64143
64144         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
64145         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
64146         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
64147         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
64148         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
64149         whenever the right hand side need not be expanded by the shell.
64150
64151 2001-09-16  Paul Eggert  <eggert@twinsun.com>
64152
64153         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
64154         library.  It's not correct, as some older glibcs are buggy.
64155         fnmatch wasn't fixed until glibc 2.2.
64156
64157         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
64158         special shell magic here.
64159
64160 2001-09-16  Jim Meyering  <meyering@lucent.com>
64161
64162         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
64163         * m4/jm-macros.m4: Require it.
64164
64165 2001-09-16  Jim Meyering  <meyering@lucent.com>
64166
64167         * lib/mkdir.c: New file.
64168
64169 2001-09-15  Jim Meyering  <meyering@lucent.com>
64170
64171         * m4/jm-macros.m4: Check for help2man.
64172
64173 2001-09-11  Jim Meyering  <meyering@lucent.com>
64174
64175         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
64176         The body, by Paul Eggert, was moved here from configure.in.
64177         * m4/jm-macros.m4: Require UTILS_HOST_OS.
64178
64179 2001-09-04  Paul Eggert  <eggert@twinsun.com>
64180
64181         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
64182         (jm_PREREQ): Use it.
64183
64184 2001-09-04  Paul Eggert  <eggert@twinsun.com>
64185
64186         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
64187         Use ssize_t, not int, to store result of readlink.
64188         Check for ssize_t overflow as well as size_t overflow,
64189         as POSIX says the result of readlink is implementation-defined
64190         when ssize_t overflows.
64191         Remove unnecessary cast to char*.
64192         Use free+malloc instead of realloc, as the storage doesn't need
64193         to be preserved and it's clearer and can be more efficient that way.
64194         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
64195         * lib/xreadlink.h (xreadlink): Update prototype.
64196
64197 2001-09-04  Paul Eggert  <eggert@twinsun.com>
64198
64199         * lib/xgetcwd.c: Revert some of the previous change; intead,
64200         fix the HAVE_GETCWD_NULL code to behave more like the
64201         !HAVE_GETCWD_NULL code used to.
64202
64203         Include "xalloc.h".
64204         (xgetcwd): Do not return NULL when memory is exhausted; instead,
64205         invoke xalloc_die.
64206
64207 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64208
64209         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
64210         sys/param.h, as pathmax.h includes them.
64211
64212 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64213
64214         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
64215         (jm_PREREQ_XGETCWD): New macro.
64216
64217         * m4/getcwd.m4: New file.
64218
64219 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64220
64221         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
64222         like the HAVE_GETCWD_NULL code.
64223         Include pathmax.h if not HAVE_GETCWD.
64224         Do not include xalloc.h.
64225         (INITIAL_BUFFER_SIZE): New symbol.
64226         Do not use xmalloc / xrealloc, since the caller is responsible for
64227         handling errors.  Preserve errno around `free' during failure.
64228         Do not overrun buffer when using getwd.
64229
64230 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64231
64232         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
64233         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
64234         getcwd (NULL, 0).
64235
64236 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64237
64238         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
64239         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
64240         spotted by Jim Meyering.
64241
64242 2001-09-03  Jim Meyering  <meyering@lucent.com>
64243
64244         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
64245         failure.
64246
64247 2001-09-02  Jim Meyering  <meyering@lucent.com>
64248
64249         * lib/error.c: Update from GNU libc.
64250
64251 2001-09-01  Jim Meyering  <meyering@lucent.com>
64252
64253         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
64254         Used by df.
64255
64256 2001-09-01  Jim Meyering  <meyering@lucent.com>
64257
64258         * lib/xreadlink.c: New file.
64259         * lib/xreadlink.h: New file.
64260         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
64261         xreadlink.h.
64262
64263         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
64264         doesn't conflict with sparc Solaris 7's definition in
64265         /usr/include/sys/int_types.h.
64266
64267         * lib/exclude.c: Use `""', not `<>' to #include non-system header
64268         files.
64269         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
64270         and strncasecmp as r-values.  Unixware didn't have declarations.
64271
64272 2001-08-31  Paul Eggert  <eggert@twinsun.com>
64273
64274         * lib/xstrtol.h: Add copyright notice.
64275         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
64276         LONGINT_INVALID_SUFFIX_CHAR.
64277
64278 2001-08-31  Paul Eggert  <eggert@twinsun.com>
64279
64280         * lib/xstrtol.c (strtoimax): New decl.
64281
64282 2001-08-31  Paul Eggert  <eggert@twinsun.com>
64283
64284         * lib/xgetcwd.c: Don't include pathmax.h.
64285         Include stdlib.h and unistd.h if available.
64286         Include xalloc.h.
64287         (xmalloc, xstrdup, free): Remove decls.
64288         (xgetcwd): Don't assume sizes fit in unsigned.
64289         Check for overflow when computing sizes.
64290         Simplify reallocation code.
64291
64292 2001-08-31  Paul Eggert  <eggert@twinsun.com>
64293
64294         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
64295         a directory's st_size can have an arbitrary value, so the old
64296         usage could waste an arbitrary amount of memory.  All uses
64297         changed.
64298         * lib/savedir.h: Update prototype.
64299
64300 2001-08-31  Paul Eggert  <eggert@twinsun.com>
64301
64302         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
64303
64304         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
64305         old strtoimax.c.
64306
64307         Also, make the following further changes to make this file's
64308         configuration more similar to that of strtol.c:
64309         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
64310         (strtoumax, uintmax_t, strtoull, strtol): Remove.
64311         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
64312         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
64313         changed to signed values.
64314
64315         And make the following changes as well:
64316         Fix copyright notice, as 1999 was missing.
64317         (verify): New macro.
64318         (strtoimax): Check sizes at compile-time, not run-time.
64319         Prefer strtol to strtoll if both work.
64320         (main): Remove; it was not that useful and was a pain to maintain.
64321
64322         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
64323
64324 2001-08-31  Jim Meyering  <meyering@lucent.com>
64325
64326         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
64327         Use an initial, malloc'd, buffer of length 128 rather than
64328         a statically allocated one of length 1024.
64329
64330 2001-08-30  Paul Eggert  <eggert@twinsun.com>
64331
64332         Simplify code, partly by assuming autoconf 2.52 semantics.
64333
64334         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
64335
64336         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
64337         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
64338         All uses removed.
64339         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
64340         Move AC_REQUIRE to next-to-top level, to avoid confusion.
64341         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
64342         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
64343         jm_AC_HEADER_INTTYPES_H.
64344         * m4/jm-macros.m4 (jm_MACROS): Likewise.
64345
64346         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
64347
64348         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
64349         Quote first arg of AC_DEFUN.
64350         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
64351         since they are needed to parse the include file even if we need
64352         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
64353         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
64354         but with opposite signedness.
64355
64356 2001-08-30  Paul Eggert  <eggert@twinsun.com>
64357
64358         Merge 'exclude' changes from tar 1.13.22.
64359         This fixes one or two unlikely storage allocation overflow bugs,
64360         but doesn't change user-visible behavior otherwise.
64361
64362 2001-08-30  Paul Eggert  <eggert@twinsun.com>
64363
64364         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
64365         (jm_PREREQ_EXCLUDE): New macro.
64366
64367 2001-08-30  Paul Eggert  <eggert@twinsun.com>
64368
64369         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
64370         tm to be declared.
64371
64372 2001-08-30  Paul Eggert  <eggert@twinsun.com>
64373
64374         * lib/hash.c: Remove '2001' from copyright notice.
64375
64376 2001-08-30  Paul Eggert  <eggert@twinsun.com>
64377
64378         * lib/full-write.h: New file.
64379         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
64380         * lib/full-write.c: Correct credits, as cccp.c no longer
64381         exists and anyway it was so heavily changed from the old cccp
64382         code as to be unrecognizable.  Include full-write.h.
64383         (full_write) Return size_t, with short writes meaning failure.
64384         All callers changed.  This fixes a bug with large buffers
64385         on 64-bit hosts.
64386         * lib/utime.c: Include full-write.h.
64387
64388 2001-08-30  Paul Eggert  <eggert@twinsun.com>
64389
64390         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
64391         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
64392         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
64393         Include if available.
64394         (<xalloc.h>): Include
64395         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
64396         (verify): New macro.  Use it to verify that EXCLUDE macros do not
64397         collide with FNM macros.
64398         (struct patopts): New struct.
64399         (struct exclude): Use it, as exclude patterns now come with options.
64400         (new_exclude): Support above changes.
64401         (new_exclude, add_exclude_file):
64402         Initial size must now be a power of two to simplify overflow checking.
64403         (free_exclude, fnmatch_no_wildcards): New function.
64404         (excluded_filename): No longer requires options arg, as the options
64405         are determined by add_exclude.  Now returns bool, not int.
64406         (excluded_filename, add_exclude):
64407         Add support for the fancy new exclusion options.
64408         (add_exclude, add_exclude_file): Now takes int options arg.
64409         Check for arithmetic overflow when computing sizes.
64410         (add_exclude_file): xrealloc might modify errno, so don't
64411         realloc until after errno might be used.
64412
64413         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
64414         New macros.
64415         (free_exclude): New decl.
64416         (add_exclude, add_exclude_file): Now takes int options arg.
64417         (excluded_filename): No longer requires options arg, as the options
64418         are determined by add_exclude.  Now returns bool, not int.
64419
64420 2001-08-30  Paul Eggert  <eggert@twinsun.com>
64421
64422         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
64423
64424 2001-08-27  Jim Meyering  <meyering@lucent.com>
64425
64426         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
64427
64428         * lib/version-etc.c (N_): Remove definition.
64429         Revert most of last change.
64430         Instead, simply don't mark the `Copyright...' string for translation.
64431         Based on advice from Paul Eggert.
64432
64433         * lib/strtoxmax.c: Tweak comment.
64434
64435 2001-08-26  Jim Meyering  <meyering@lucent.com>
64436
64437         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
64438
64439         * m4/xstrtoimax.m4: New file.
64440         * m4/xstrtoumax.m4: Add comments explaining why we
64441         AC_REPLACE_FUNCS(strtol).
64442
64443 2001-08-26  Jim Meyering  <meyering@lucent.com>
64444
64445         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
64446         of copyright with `%s' so translators don't get an untranslated
64447         message in 2002.
64448         (COPYRIGHT_YEAR): Define.
64449         (version_etc): Use fprintf rather than fputs.
64450         Suggestion from Ulrich Drepper.
64451
64452         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
64453
64454         * lib/strtoll.c: New file, from GNU libc.
64455         * lib/xstrtoimax.c: New file.
64456
64457         * lib/xstrtol.h: Add xstrtoimax.
64458         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
64459         * lib/strtoimax.c: New file.  Likewise, but first define
64460         STRTOUXMAX_SIGNED.
64461
64462         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
64463         ...
64464         * lib/strtoxmax.c: ... then renamed to this.
64465
64466 2001-08-18  Paul Eggert  <eggert@twinsun.com>
64467
64468         * m4/inttypes.m4: Add AC_PREREQ(2.13).
64469         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
64470         (jm_AC_TYPE_INTMAX_T): New macro.
64471         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
64472
64473         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
64474
64475         * m4/longlong.m4: Renamed from ulonglong.m4.
64476         * m4/inttypes.m4: Renamed from inttypes_h.m4.
64477         * m4/uintmax_t.m4: Removed.
64478
64479 2001-08-13  Paul Eggert  <eggert@twinsun.com>
64480
64481         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
64482         Port to Solaris 8, where 'sed' requires a space after the 'r'
64483         command, and where sh dislikes "$/".  Clean up the spacing a bit.
64484         Redirect output to $tmp just once.
64485
64486 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
64487
64488         * lib/addext.c (<errno.h>): Include.
64489         (errno): Declare if not defined.
64490         (addext): Work correctly when pathconf returns -1 and leaves
64491         errno alone because there is no limit.  Also, work even if
64492         pathconf returns a value greater than SIZE_MAX.
64493
64494 2001-08-12  Jim Meyering  <meyering@lucent.com>
64495
64496         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
64497         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
64498         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
64499         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
64500         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
64501         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
64502         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
64503         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
64504         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
64505         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
64506         utime.m4, utimes.m4, xstrtoumax.m4:
64507         Quote the first argument in each use of AC_DEFUN.
64508
64509 2001-08-12  Jim Meyering  <meyering@lucent.com>
64510
64511         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
64512         Simply `return getcwd (NULL, 0);'.
64513         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
64514         Use 1300 as initial value for length, not PATH_MAX.
64515
64516         * lib/pathmax.h: Clean up cpp syntax.
64517
64518 2001-08-12  Jim Meyering  <meyering@lucent.com>
64519
64520         * lib/gettimeofday.c: New file.
64521         * lib/gtod.h: New file.
64522         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
64523
64524 2001-08-05  Jim Meyering  <meyering@lucent.com>
64525
64526         * m4/jm-macros.m4: Require autoconf-2.52.
64527
64528 2001-08-04  Jim Meyering  <meyering@lucent.com>
64529
64530         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
64531         stmt, to get in sync with glibc.
64532
64533 2001-08-03  Paul Eggert  <eggert@twinsun.com>
64534
64535         The following changes are from gettext 0.10.39 as maintained by
64536         Bruno Haible.
64537
64538         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
64539         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
64540         with inverted sense.  All uses changed.
64541
64542         * lib/mbswidth.c: Don't include <limits.h>.
64543         Include <stdlib.h> and <string.h> unconditionally.
64544         (iswcntrl, mbsinit, ISCNTRL): New macros.
64545         (mbsnwidth): Use K&R style function declarations.
64546         Don't bother checking for MB_LEN_MAX == 1, since the compiler
64547         can optimize it when MB_CUR_MAX == 1.
64548         The width of control characters is zero, not 1.
64549
64550 2001-08-03  Paul Eggert  <eggert@twinsun.com>
64551
64552         The following changes are from gettext 0.10.39 as maintained by
64553         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
64554
64555         * m4/codeset.m4: Upgrade to serial AM1.
64556         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
64557         all uses changed.  Quote first arg of AC_DEFUN.
64558         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
64559
64560         * m4/iconv.m4: Upgrade to serial AM2.
64561         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
64562         Add --with-libconv-prefix.
64563         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
64564         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
64565         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
64566         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
64567         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
64568
64569         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
64570         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
64571         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
64572         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
64573         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
64574         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
64575         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
64576         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
64577         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
64578
64579         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
64580         string.h any more.
64581
64582         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
64583         not the default value.
64584
64585         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
64586         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
64587         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
64588         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
64589         Also check for iswcntrl, used for wcwidth fallback.
64590         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
64591         to Autoconf 2.13.
64592
64593 2001-08-03  Jim Meyering  <meyering@lucent.com>
64594
64595         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
64596         as it was in the original.  Reported by Paul Eggert.
64597
64598 2001-07-16  Jim Meyering  <meyering@lucent.com>
64599
64600         * m4/gettimeofday.m4: New file.
64601         Prompted by a report from Bernhard Baehr.
64602
64603 2001-07-15  Jim Meyering  <meyering@lucent.com>
64604
64605         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
64606         stuff. Now it's in ../Makefile.cfg.
64607
64608 2001-07-15  Jim Meyering  <meyering@lucent.com>
64609
64610         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
64611         (BUILT_SOURCES): Add unlocked-io.h.
64612         (io_functions): Define.
64613         (unlocked-io.h): New rule.
64614         (DISTCLEANFILES): Add unlocked-io.h.
64615         (all-local): Depend on unlocked-io.h, to ensure it is created.
64616
64617         * lib/unlocked-io.hin: New file
64618
64619         * lib/regex.c: Update from glibc.
64620
64621 2001-07-05  Jim Meyering  <meyering@lucent.com>
64622
64623         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
64624         recommendation.
64625         (libfetish_a_SOURCES): Put all .h files here instead.
64626         Remove a thus-exposed (better checks in automake) duplicate and
64627         two unnecessary .h files.
64628
64629 2001-07-04  Jim Meyering  <meyering@lucent.com>
64630
64631         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
64632         that generates jm-glibc-io.m4 so that it doesn't trigger any make
64633         distcheck failure.
64634
64635 2001-07-02  Jim Meyering  <meyering@lucent.com>
64636
64637         The following changes were prompted by suggestions from Bruno Haible.
64638
64639         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
64640         is now generated.
64641         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
64642         definition of EXTRA_DIST.
64643         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
64644         ensure that the generated file is created/updated whenever the list
64645         of $(unlocked_functions) is changed.
64646         (jm-glibc-io.m4): New rule.
64647         (unlocked-io.h): New rule -- currently unused.
64648
64649 2001-06-24  Jim Meyering  <meyering@lucent.com>
64650
64651         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
64652         unmatched right bracket, rather than kludging it with an extra,
64653         falsely-matching quote in a comment.  Patch by Akim Demaille.
64654
64655 2001-06-11  Jim Meyering  <meyering@lucent.com>
64656
64657         * lib/regex.c: Update from GNU libc.
64658
64659 2001-05-27  Jim Meyering  <meyering@lucent.com>
64660
64661         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
64662         Check for ut_type in struct utmp.
64663
64664 2001-05-27  Jim Meyering  <meyering@lucent.com>
64665
64666         * lib/readutmp.h (UT_TYPE): Define.
64667
64668 2001-05-24  Jim Meyering  <meyering@lucent.com>
64669
64670         * lib/argmatch.c: Include "quote.h".
64671         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
64672         quote function.  Reported by Göran Uddeborg.
64673
64674 2001-05-22  Jim Meyering  <meyering@lucent.com>
64675
64676         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
64677         now that we use the package-supplied version unconditionally.
64678         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
64679
64680 2001-05-21  Jim Meyering  <meyering@lucent.com>
64681
64682         * m4/regex.m4: Change a couple backticks to single quotes to avoid
64683         shell syntax errors.
64684
64685 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
64686
64687         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
64688
64689 2001-05-20  Paul Eggert  <eggert@twinsun.com>
64690
64691         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
64692         Don't bother to check library strftime, since
64693         we'll be using our own my_strftime function anyway.
64694         Define my_strftime instead of strftime.
64695
64696 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
64697
64698         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
64699         which is not yet declared.
64700
64701 2001-05-15  Jim Meyering  <meyering@lucent.com>
64702
64703         * m4/regex.m4: Use proper quoting so brackets appear in the test
64704         program.
64705         Reported by, and with help from, Bruno Haible.
64706
64707 2001-05-13  Jim Meyering  <meyering@lucent.com>
64708
64709         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
64710         undefined.
64711
64712 2001-05-11  Paul Eggert  <eggert@twinsun.com>
64713
64714         dirname code cleanup.  base_name now behaves more compatibly
64715         with POSIX basename when given file names that have trailing
64716         slashes, and similarly for dir_name.  Add new primitives
64717         base_len and dir_len.  Put the directory-name-related decls
64718         into dirname.h.
64719
64720         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
64721         * lib/backupfile.c (base_name): Likewise.
64722         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
64723         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
64724         * lib/makepath.c (strip_trailing_slashes): Likewise.
64725         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
64726         ISSLASH): Likewise.
64727         * lib/rename.c (strip_trailing_slashes): Likewise.
64728         * lib/same.c (base_name): Likewise.
64729         * lib/stripslash.c (ISSLASH): Likewise.
64730
64731         * lib/addext.c: Include <dirname.h> after size_t is defined.
64732         * lib/backupfile.c: Likewise.
64733
64734         * lib/addext.c (addext): Use base_len to trim redundant
64735         trailing slashes instead of doing it ourselves.
64736         But do not trim the last slash if it is not redundant.
64737
64738         * lib/backupfile.c (find_backup_file_name,
64739         max_backup_version): Use base_len instead of rolling it ourselves.
64740         Handle the case of "" and (on DOS) "C:" correctly.
64741
64742         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
64743         needed. Include <string.h>, <dirname.h>.
64744         (base_name): Allow file names ending in slashes, other than names
64745         that are all slashes.  In this case, return the basename followed
64746         by the slashes.  This is more general, and can be used in places
64747         where the original base_name purposely had an assertion failure.
64748         (base_len): New function.
64749
64750         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
64751         Do not include <assert.h>; no longer needed.
64752         Include xalloc.h.
64753         (memrchr): Remove decl.
64754         (dir_name_r): Remove.
64755         (dir_len): Renamed from dirlen.  All callers changed.
64756         Rewrite in terms of base_name, for simplicity and consistency.
64757         (dir_name): Never return NULL.  All callers changed.
64758         Do not include <stdlib.h> in test program; no longer needed.
64759         return 0; is fine for test program.
64760
64761         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
64762         New macros.
64763         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
64764
64765         * lib/path-concat.c (path_concat): Use base_len to compute
64766         base length, not strlen; this means we cannot rely on memcpy
64767         to null-terminate.
64768
64769         * lib/same.c (STREQ): Remove.
64770         (same_name): Handle the case where the basename ends in trailing '/'.
64771
64772         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
64773         a slash was stripped.  Do not strip the last slash after a
64774         file system prefix.
64775
64776 2001-05-11  Paul Eggert  <eggert@twinsun.com>
64777
64778         * lib/Makefile.am (libfetish_a_SOURCES):
64779         Add strftime.c, since we now compile it on all hosts.
64780
64781         * lib/strftime.c (my_strftime):
64782         Define to nstrftime if emacs, but only if my_strftime is not defined.
64783         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
64784         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
64785         Add one more extra argument: a nanoseconds value.
64786         All uses changed.
64787         (ns): New macro.
64788         (my_strftime function): Add %N format.
64789         (emacs_strftimeu): Renamed from emacs_strftime,
64790         with extra ut argument.
64791
64792 2001-05-09  Paul Eggert  <eggert@twinsun.com>
64793
64794         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
64795
64796 2001-04-21  Jim Meyering  <meyering@lucent.com>
64797
64798         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
64799         doesn't interfere.
64800
64801 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
64802
64803         * m4/ftruncate.m4: Check for chsize.
64804         Link with ftruncate.o unconditionally if ftruncate is missing.
64805         This was required when cross-compiling to i586-mingw32msvc.
64806
64807 2001-04-08  Jim Meyering  <meyering@lucent.com>
64808
64809         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
64810         recomputed; that's necessary when the offset spans a DST transition.
64811         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
64812
64813 2001-04-02  Jim Meyering  <meyering@lucent.com>
64814
64815         * lib/regex.h, regex.c: Update from GNU libc.
64816
64817 2001-03-24  Jim Meyering  <meyering@lucent.com>
64818
64819         * m4/jm-macros.m4: Require autoconf-2.49d.
64820
64821 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
64822
64823         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
64824
64825 2001-03-19  Paul Eggert  <eggert@twinsun.com>
64826
64827         * lib/version-etc.c (version_etc_copyright): Update to 2001.
64828
64829 2001-03-17  Jim Meyering  <meyering@lucent.com>
64830
64831         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
64832         now that the version in autoconf is equivalent.
64833         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
64834
64835         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
64836         Suggestion from Akim Demaille.
64837
64838         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
64839         (jm_PREREQ_TEMPNAME): New function.
64840
64841 2001-03-16  Paul Eggert  <eggert@twinsun.com>
64842
64843         * lib/tempname.c (uint64_t): Define to uintmax_t if
64844         not defined, and if UINT64_MAX is not defined.
64845         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
64846         Reported by John David Anglin.
64847
64848 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
64849
64850         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
64851         resolve alias if codeset is empty.
64852         * lib/config.charset (BeOS): Use wildcard syntax.
64853
64854 2001-03-13  Jim Meyering  <meyering@lucent.com>
64855
64856         * lib/path-concat.c (path_concat)
64857         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
64858         concatenating e.g., `C:' and `foo'.
64859         From Bruno Haible.
64860
64861 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
64862
64863         * lib/localcharset.c (locale_charset): Don't use
64864         setlocale(LC_CTYPE,NULL). Don't return NULL.
64865         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
64866
64867 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
64868
64869         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
64870         support for DOS/DJGPP.
64871
64872 2001-03-01  Paul Eggert  <eggert@twinsun.com>
64873
64874         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
64875         lacks mkstemp.  Compile our own tempname.c if we compile our own
64876         mkstemp.c, as mkstemp relies on tempname.
64877
64878 2001-03-01  Jim Meyering  <meyering@lucent.com>
64879
64880         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
64881         AH_VERBATIM really does output its argument verbatim.
64882
64883 2001-02-28  Paul Eggert  <eggert@twinsun.com>
64884
64885         * lib/Makefile.am (libfetish_a_SOURCES):
64886         Add dup-safer.c, fopen-safer.c.
64887         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
64888
64889         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
64890         * lib/unistd-safer.h: New files.
64891
64892 2001-02-25  Paul Eggert  <eggert@twinsun.com>
64893
64894         The mkstemp replacement is taken from glibc 2.2.2, with some
64895         portability fixes for use outside glibc, as follows:
64896
64897         * lib/tempname.c (struct_stat64): New macro.
64898         (direxists, __gen_tempname): Use it.
64899         This avoids a portability problem with Solaris 8.
64900
64901         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
64902         (<stddef.h>, <stdint.h>, <string.h>):
64903         Include only if STDC_HEADERS || _LIBC.
64904         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
64905         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
64906         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
64907         (__set_errno): Define this macro if <errno.h> doesn't.
64908         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
64909         Define these macros if <stdio.h> doesn't.
64910         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
64911         Define these macros if <sys/stat.h>
64912         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
64913         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
64914         __xstat64): Define if not _LIBC.
64915         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
64916         (__gen_tempname): Invoke gettimeofday only if
64917         HAVE_GETTIMEOFDAY || _LIBC;
64918         otherwise, fall back on plain "time".
64919         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
64920
64921         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
64922
64923         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
64924
64925 2001-02-18  Paul Eggert  <eggert@twinsun.com>
64926
64927         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
64928
64929 2001-02-17  Paul Eggert  <eggert@twinsun.com>
64930
64931         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
64932         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
64933         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
64934         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
64935
64936 2001-02-17  Paul Eggert  <eggert@twinsun.com>
64937
64938         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
64939         Remove workaround macros for hosts that have mbrtowc but not
64940         mbstate_t, as we now insist on proper declarations for both
64941         before using mbrtowc.
64942
64943 2001-02-17  Jim Meyering  <meyering@lucent.com>
64944
64945         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
64946         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
64947         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
64948         UnixWare 7.1.1.
64949
64950         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
64951         rather than AC_CACHE_VAL.
64952
64953 2001-02-17  Jim Meyering  <meyering@lucent.com>
64954
64955         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
64956         around included file name.
64957
64958         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
64959
64960         * lib/strftime.c: Update from GNU libc (the only changes were to
64961         comments).
64962
64963 2001-02-17  Jim Meyering  <meyering@lucent.com>
64964
64965         * lib/regex.c: Update from libc.
64966
64967 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
64968
64969         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
64970         clash.
64971
64972 2001-02-16  Paul Eggert  <eggert@twinsun.com>
64973
64974         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
64975         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
64976         Reported by Mark Hounschell via Paul Eggert.
64977
64978 2001-02-07  Jim Meyering  <meyering@lucent.com>
64979
64980         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
64981
64982 2001-02-05  Jim Meyering  <meyering@lucent.com>
64983
64984         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
64985         it includes the patch required for `large file' support with at least
64986         HP-UX's 10.20 /bin/cc.
64987
64988 2001-02-03  Jim Meyering  <meyering@lucent.com>
64989
64990         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
64991         AS_IF, now that it works once again (mysteriously).
64992         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
64993
64994 2001-01-30  Jim Meyering  <meyering@lucent.com>
64995
64996         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
64997         * m4/chown.m4: Rename conftestchown to conftest.chown.
64998         * m4/rename.m4: s/conftestdir/conftest.d1/ and
64999         s/conftestdir2/conftest.d2/.
65000         * m4/utimes.m4: s/conftestdata/conftest.data/
65001         Inspired by Pavel Roskin's change in autoconf.
65002
65003 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
65004
65005         * lib/config.charset: Update for FreeBSD 4.2.
65006
65007 2001-01-27  Jim Meyering  <meyering@lucent.com>
65008
65009         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
65010         a use of AS_IF.
65011         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
65012
65013 2001-01-26  Jim Meyering  <meyering@lucent.com>
65014
65015         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
65016         quotearg.c includes it.
65017
65018 2001-01-26  Jim Meyering  <meyering@lucent.com>
65019
65020         * lib/quotearg.c: Include stddef.h.
65021         * lib/quote.c: Include stddef.h.
65022         Reported by Axel Kittenberger.
65023
65024         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
65025         line in double quotes so that it evokes a better diagnostic.
65026         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
65027         Reported by Axel Kittenberger.
65028
65029 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
65030
65031         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
65032         as if it was a `charset'.
65033
65034 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
65035
65036         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
65037         has const.
65038
65039 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
65040
65041         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
65042         to avoid a warning.  Add back 'const' to inptr.
65043
65044 2001-01-20  Jim Meyering  <meyering@lucent.com>
65045
65046         Be sure that headers are checked before used in code compiled
65047         for the type checks.
65048         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
65049         In place of that, invoke jm_CHECK_ALL_TYPES.
65050         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
65051         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
65052         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
65053         The check for ssize_t was mistakenly run before the test for unistd.h.
65054
65055         The configure-time check for stdbool.h was missing.
65056         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
65057         (jm_PREREQ_HASH): New function.
65058
65059 2001-01-17  Jim Meyering  <meyering@lucent.com>
65060
65061         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
65062         for autoconf-2.49c.
65063         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
65064
65065 2001-01-16  Jim Meyering  <meyering@lucent.com>
65066
65067         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
65068         From Bruno Haible.
65069
65070 2001-01-14  Jim Meyering  <meyering@lucent.com>
65071
65072         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
65073         foo and bar.  Create conftestdir/ in the script, not in the C code.
65074         Remove directories in the script, not in the C code.
65075         Remove conftestdir{,2} before trying to create the directory.
65076         Make the entire configure script fail if the mkdir fails.
65077
65078 2001-01-14  Jim Meyering  <meyering@lucent.com>
65079
65080         * lib/rename.c: New file.  From Volker Borchert.
65081         Include stdlib.h, string.h or strings.h, and xalloc.h.
65082         Use strip_trailing_slashes rather than open-coding it.
65083
65084 2001-01-03  Paul Eggert  <eggert@twinsun.com>
65085
65086         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
65087
65088 2001-01-03  Jim Meyering  <meyering@lucent.com>
65089
65090         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
65091         of local `inptr' to avoid warning with some system declarations of
65092         iconv.
65093
65094 2001-01-02  Volker Borchert  <bt@teknon.de>
65095
65096         * m4/rename.m4: New file.
65097         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
65098
65099 2001-01-01  Jim Meyering  <meyering@lucent.com>
65100
65101         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
65102         even on systems with utmpx.h.  It's necessary for the declaration of
65103         utmp's ut_user member.  Reported by Andreas Jaeger.
65104
65105         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
65106         available. They are required for the declarations of getgrgid and
65107         getpwuid resp.
65108         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
65109         Reported by Andreas Jaeger.
65110
65111 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
65112
65113         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
65114         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
65115         so `make install' also works in VPATH builds.
65116
65117 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
65118
65119         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
65120         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
65121         can be used in subdirectories.
65122
65123 2000-12-29  Paul Eggert  <eggert@twinsun.com>
65124
65125         * lib/modechange.c: Do not assume that mode_t uses the
65126         traditional octal encoding.  E.g. "chmod 1 FOO" should set
65127         the other-execute bit of FOO even if S_IXOTH != 1.
65128
65129         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
65130         WOTH, XOTH, ALLM): New macros.
65131         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
65132          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
65133         Use them.
65134         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
65135         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
65136         (mode_compile):
65137         No need to use uintmax_t; unsigned long is long enough.
65138         Don't bother to get suffix since we don't use it.
65139
65140 2000-12-26  Jim Meyering  <meyering@lucent.com>
65141
65142         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
65143         better with autoheader.
65144
65145 2000-12-24  Jim Meyering  <meyering@lucent.com>
65146
65147         * lib/hash.c (is_prime): Return explicit boolean values.
65148         (hash_get_first): Return NULL to appease Irix5.6's 89.
65149         Reported by Nelson Beebe.
65150
65151 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
65152
65153         * lib/localcharset.c (locale_charset): Add support for Win32.
65154
65155 2000-12-18  Paul Eggert  <eggert@twinsun.com>
65156
65157         * lib/physmem.h, lib/physmem.c: New files.
65158
65159         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
65160         (noinst_HEADERS): Add physmem.h.
65161
65162         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
65163         't' for compatibility with Solaris 8 sort.
65164
65165 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
65166
65167         * lib/config.charset: Add support for BeOS.
65168
65169 2000-12-17  Jim Meyering  <meyering@lucent.com>
65170
65171         * m4/dos.m4 (jm_AC_DOS): New file and macro.
65172         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
65173
65174 2000-12-16  Jim Meyering  <meyering@lucent.com>
65175
65176         This bug had a serious impact on chown: `chown N:M FILE' (for integer
65177         N and M) would have treated it like `chown N:N FILE'.
65178
65179         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
65180
65181 2000-12-16  Jim Meyering  <meyering@lucent.com>
65182
65183         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
65184         SHELLS_FILE to a file name that's useful on djgpp systems.
65185         Include stdlib.h.
65186         (ADDITIONAL_DEFAULT_SHELLS): Define.
65187         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
65188         Based mostly on a patch from Prashant TR.
65189
65190 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
65191
65192         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
65193         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
65194         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
65195
65196 2000-12-08  Andreas Schwab  <schwab@suse.de>
65197
65198         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
65199         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
65200
65201 2000-12-07  Jim Meyering  <meyering@lucent.com>
65202
65203         * lib/stripslash.c (ISSLASH): Define.
65204         (strip_trailing_slashes): Use ISSLASH rather than comparing against
65205         `/'.
65206         From Prashant TR.
65207
65208         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
65209         (dir_name_r): Declare this function as static.
65210         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
65211         manifest itself on a name containing a mix of slashes and
65212         backslashes.
65213         Make this function work with names starting with a DOS-style
65214         drive letter and colon prefix.
65215         (dir_name): Append `.' if necessary.
65216         Based mostly on patches from Prashant TR and Eli Zaretskii.
65217
65218         * lib/dirname.h (dir_name_r): Remove prototype.
65219
65220 2000-12-06  Paul Eggert  <eggert@twinsun.com>
65221
65222         * m4/off_t-format.m4: Remove this file.
65223         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
65224
65225 2000-12-06  Jim Meyering  <meyering@lucent.com>
65226
65227         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
65228         replacement strtoull, we may well need the replacement strtoul, too.
65229         Check for declarations of strtoul and strtoull.
65230         Check for strtol.  Mainly as a cue to cause automake to include
65231         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
65232         Check for limits.h -- strtol.c needs it.
65233
65234 2000-12-05  Jim Meyering  <meyering@lucent.com>
65235
65236         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
65237
65238 2000-12-04  Jim Meyering  <meyering@lucent.com>
65239
65240         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
65241         Also include memory.h, stdlib.h, unistd.h if appropriate.
65242         Reported by Andreas Jaeger (conflicting declaration of malloc).
65243
65244 2000-12-02  Jim Meyering  <meyering@lucent.com>
65245
65246         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
65247         * m4/jm-macros.m4 (jm_MACROS): require it.
65248
65249 2000-12-02  Jim Meyering  <meyering@lucent.com>
65250
65251         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
65252
65253 2000-12-01  Paul Eggert  <eggert@twinsun.com>
65254
65255         * lib/memrchr.c: Include <config.h> before any system include file.
65256
65257 2000-11-30  Jim Meyering  <meyering@lucent.com>
65258
65259         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
65260
65261 2000-11-30  Jim Meyering  <meyering@lucent.com>
65262
65263         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
65264
65265 2000-11-29  Paul Eggert  <eggert@twinsun.com>
65266
65267         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
65268
65269 2000-11-26  Jim Meyering  <meyering@lucent.com>
65270
65271         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
65272
65273 2000-11-22  Paul Eggert  <eggert@twinsun.com>
65274
65275         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
65276         size of (size_t) -1; it's not portable.
65277
65278 2000-11-17  Jim Meyering  <meyering@lucent.com>
65279
65280         * lib/strstr.c: Update from GNU libc.
65281
65282 2000-11-17  Akim Demaille  <akim@epita.fr>
65283
65284         * lib/obstack.h: Formatting changes.
65285         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
65286         prevent type checking.
65287         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
65288         cast the value to (void *): assigning a `foo *' to a `void *'
65289         variable is valid.
65290         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
65291
65292 2000-11-16  Jim Meyering  <meyering@lucent.com>
65293
65294         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
65295
65296 2000-11-11  Jim Meyering  <meyering@lucent.com>
65297
65298         * lib/error.c: Add a couple #includes, merging from GNU libc version.
65299
65300 2000-11-10  Jim Meyering  <meyering@lucent.com>
65301
65302         * lib/obstack.h: Update from GNU libc.
65303         * lib/obstack.c: Likewise.
65304
65305 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
65306
65307         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
65308
65309 2000-11-06  Paul Eggert  <eggert@twinsun.com>
65310
65311         * lib/getusershell.c (setusershell): Use rewind rather than
65312         fseek/fseeko, to avoid configuration hassles with fseeko.
65313         Don't bother opening SHELLS_FILE if shellstream is NULL;
65314         it's not necessary.
65315
65316 2000-11-05  Jim Meyering  <meyering@lucent.com>
65317
65318         * lib/makepath.h (make_dir): Declare.
65319         * lib/makepath.c (make_dir): Remove `static' attribute.
65320         Tweak a comment.
65321
65322 2000-11-04  Jim Meyering  <meyering@lucent.com>
65323
65324         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
65325
65326 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
65327
65328         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
65329         last one in a bucket, advance to the next bucket.
65330
65331 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
65332
65333         * lib/fnmatch.c: Do not comment out all the code if we are using
65334         the GNU C library, because in some cases we are replacing buggy
65335         code in the GNU C library itself.
65336
65337 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
65338
65339         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
65340         (regex_compile): Catch bogus \(\1\).
65341
65342 2000-10-30  Paul Eggert  <eggert@twinsun.com>
65343
65344         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
65345         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
65346         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
65347
65348 2000-10-30  Paul Eggert  <eggert@twinsun.com>
65349
65350         * lib/error.h, getline.h, modechange.h:
65351         Remove "2000" from Copyright line, as the file hasn't been
65352         changed this year other than in the copyright notice.
65353
65354         * lib/xalloc.h: Add "2000" to Copyright line, as this file
65355         was changed this year.
65356
65357 2000-10-29  Jim Meyering  <meyering@lucent.com>
65358
65359         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
65360         renaming.
65361         * m4/ls-mntd-fs.m4: Likewise
65362
65363 2000-10-29  Jim Meyering  <meyering@lucent.com>
65364
65365         * lib/xstat.in: Fix grammar in comment.
65366
65367 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
65368
65369         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
65370         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
65371         doesn't define __restrict_arr.
65372
65373 2000-10-28  Jim Meyering  <meyering@lucent.com>
65374
65375         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
65376         (jm_PREREQ_MEMCHR): New function.
65377
65378 2000-10-28  Jim Meyering  <meyering@lucent.com>
65379
65380         * lib/memchr.c: Update from libc.
65381         Adjust for portability:
65382         [HAVE_STDLIB_H]: Include stdlib.h.
65383         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
65384         Undef __memchr, too.
65385         [!weak_alias]: Define __memchr to memchr.
65386
65387         * lib/regex.c: Update from libc.
65388         * lib/regex.h: Likewise.
65389         * lib/getopt1.c: Likewise.
65390         * lib/memcmp.c: Likewise.
65391
65392         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
65393         Avoid using fseek, when possible -- it's broken by design.
65394         Patch by Ulrich Drepper.
65395
65396 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
65397
65398         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
65399         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
65400         Giving in to popular pressure to shut up the compiler with casts.
65401
65402 2000-10-26  Jim Meyering  <meyering@lucent.com>
65403
65404         * lib/strftime.c: Update from libc.
65405
65406 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
65407
65408         * regex.c: More `unsigned char' -> `re_char' changes.
65409         Also change several `int' into `re_wchar_t'.
65410         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
65411         (PUSH_FAILURE_POINTER): Don't cast any more.
65412         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
65413         We want GCC to complain, since this piece of code makes
65414         re_match non-reentrant, which *should* be fixed.
65415         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
65416         (EXTEND_BUFFER): Use RETALLOC.
65417         (SET_LIST_BIT): Don't cast.
65418         (re_wchar_t): New type.
65419         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
65420         that those two functions will always properly return.
65421         (IMMEDIATE_QUIT_CHECK): Cast to void.
65422         (analyse_first): Use recursion rather than an explicit stack.
65423         (re_compile_fastmap): Can't fail anymore.
65424         (re_search_2): Don't check re_compile_fastmap for failure.
65425         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
65426         Now also sets the new value (passed in a new argument).
65427         (re_match_2_internal): Use it.
65428         Also, use a new var `reg' of type size_t when looping through regs
65429         rather than reuse the inappropriate `mcnt'.
65430
65431 2000-10-25  Jim Meyering  <meyering@lucent.com>
65432
65433         * lib/obstack.c: Update from libc.
65434
65435 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
65436
65437         * regex.c (regex_compile): Change the way of handling a range from
65438         a char less than 256 to a char not less than 256.
65439
65440 2000-10-24  Andrew Innes  <andrewi@gnu.org>
65441
65442         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
65443         NT-Emacs only.
65444         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
65445         so that re_search functions only quit when callers expect them to.
65446
65447 2000-10-23  Jim Meyering  <meyering@lucent.com>
65448
65449         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
65450         wrong.  That set_locale call must not have any side effects.
65451         From Paul Eggert.
65452
65453 2000-10-22  Jim Meyering  <meyering@lucent.com>
65454
65455         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
65456         [CYCLIC]: Remove now-unused definition.
65457
65458         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
65459         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
65460         Suggestion from Ulrich Drepper.
65461
65462 2000-10-21  Jim Meyering  <meyering@lucent.com>
65463
65464         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
65465         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
65466         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
65467
65468 2000-10-21  Jim Meyering  <meyering@lucent.com>
65469
65470         * lib/dirname.c (memrchr): Declare if necessary.
65471         (dir_name): Remove the restriction that there be no
65472         trailing slashes.  Now, this code skips past them, effectively
65473         ignoring them.
65474         [TEST_DIRNAME] (main): New unit tests.
65475
65476         * lib/memrchr.c: New file from GNU libc.
65477         Undef __memrchr, too.
65478         [!weak_alias]: Define __memrchr to memrchr.
65479         Guard weak_alias use with `#ifdef weak_alias'.
65480
65481 2000-10-21  Jim Meyering  <meyering@lucent.com>
65482
65483         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
65484         (dir_name): Use dir_name_r.
65485         * lib/dirname.h (dir_name_r): Declare it.
65486
65487 2000-10-17  Jim Meyering  <meyering@lucent.com>
65488
65489         * lib/quote.h (PARAMS): Define and use.
65490         Reported by Akim Demaille.
65491
65492         * lib/getopt.c: Update from libc.
65493
65494 2000-10-16  Jim Meyering  <meyering@lucent.com>
65495
65496         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
65497         setlocale.
65498         From Jan Fedak.
65499
65500 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
65501
65502         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
65503
65504 2000-09-25  Jim Meyering  <meyering@lucent.com>
65505
65506         * lib/md5.h (rol): Define (from GnuPG).
65507
65508         * lib/sha.c: Give credit (GnuPG) where due.
65509         (M): Use rol rather than open-coding it.
65510         Add a FIXME comment.
65511
65512 2000-09-21  Jim Meyering  <meyering@lucent.com>
65513
65514         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
65515         Reported by Michael Stone.
65516
65517 2000-09-20  Jim Meyering  <meyering@lucent.com>
65518
65519         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
65520         (noinst_HEADERS): Add sha.h.
65521         Based on code from Scott G. Miller and from GnuPG.
65522
65523 2000-09-18  Jim Meyering  <meyering@lucent.com>
65524
65525         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
65526         LIBS. Otherwise, everyone ends up linking with -lelf for some
65527         configurations.
65528         Reported by Mike Stone.
65529
65530 2000-09-15  Jim Meyering  <meyering@lucent.com>
65531
65532         * lib/regex.c: Update from libc.
65533
65534 2000-09-10  Jim Meyering  <meyering@lucent.com>
65535
65536         * lib/getopt.c (_getopt_internal): Update from glibc.
65537
65538 2000-09-09  Jim Meyering  <meyering@lucent.com>
65539
65540         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
65541         think it should be used as a general replacement for isascii.
65542         * lib/fnmatch.c: Likewise.
65543         * lib/mbswidth.c: Likewise
65544         * lib/regex.c: Likewise.
65545
65546         Don't use atoi.
65547         * lib/userspec.c: Include sys/param.h and limits.h.
65548         Include xstrtol.h.
65549         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
65550         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
65551         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
65552         UID, GID.  Check range.
65553
65554 2000-09-06  Jim Meyering  <meyering@lucent.com>
65555
65556         * lib/getopt.c (_getopt_internal): Update from glibc.
65557
65558 2000-08-30  Jim Meyering  <meyering@lucent.com>
65559
65560         * lib/strftime.c: Merge in changes from GNU libc.
65561
65562 2000-08-26  Jim Meyering  <meyering@lucent.com>
65563
65564         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
65565         * m4/fpending.m4: New file.
65566
65567 2000-08-26  Jim Meyering  <meyering@lucent.com>
65568
65569         * lib/closeout.c: Include "__fpending.h".
65570         (close_stdout_status): Return right away if there's nothing to flush.
65571
65572         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
65573         * lib/__fpending.c: New file.
65574         * lib/__fpending.h: New file.
65575
65576 2000-08-20  Jim Meyering  <meyering@lucent.com>
65577
65578         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
65579         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
65580         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
65581
65582 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
65583
65584         Improve fileutils installation on systems where running
65585         programs (like install) can't be unlinked.
65586         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
65587         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
65588
65589 2000-08-07  Paul Eggert  <eggert@twinsun.com>
65590
65591         Standardize on "memory exhausted" instead of "Memory exhausted"
65592         or "virtual memory exhausted".
65593         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
65594         "virtual memory exhausted".
65595         * lib/same.c (same_name): Invoke xalloc_die instead of printing
65596         our own message.
65597         * lib/userspec.c (parse_user_spec): Likewise.
65598         * lib/bumpalloc.h: comment fix
65599         * lib/same.c, userspec.c: Include xalloc.h.
65600
65601         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
65602         not char *const and pointing to a constant array.
65603         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
65604         (xrealloc): Comment fix.
65605
65606         * lib/userspec.c (parse_user_spec):
65607         Don't translate a message until just before returning,
65608         to avoid unnecessary translation.
65609
65610 2000-08-07  Jim Meyering  <meyering@lucent.com>
65611
65612         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
65613         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
65614         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
65615         getgroups.c, gethostname.c, getopt.h, group-member.c,
65616         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
65617         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
65618         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
65619         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
65620         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
65621         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
65622         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
65623         yesno.c: Back out Copyright date changes for each file with no change
65624         this year.  This eases coordination with other programs using the same
65625         source code modules.  From Paul Eggert.
65626
65627 2000-08-06  Paul Eggert  <eggert@twinsun.com>
65628
65629         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
65630         not char, for compatibility with glibc 2.1.3 strftime.c.
65631
65632 2000-08-03  Greg McGary  <greg@mcgary.org>
65633
65634         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
65635         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
65636         (EXTEND_BUFFER): Use them.
65637
65638 2000-08-01  Jim Meyering  <meyering@lucent.com>
65639
65640         * lib/dirname.c (ISSLASH): Define.
65641         (BACKSLASH_IS_PATH_SEPARATOR): Define.
65642         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
65643         both `\' and `/' may be use as path separators.
65644         Based on a patch from Prashant TR.
65645
65646 2000-07-31  Paul Eggert  <eggert@twinsun.com>
65647
65648         * lib/quotearg.c (quotearg_n_options): Don't make the initial
65649         slot vector a constant, since it might get modified.
65650
65651 2000-07-31  Jim Meyering  <meyering@lucent.com>
65652
65653         * lib/xmalloc.c: Use `virtual memory exhausted', not
65654         `Memory exhausted'.
65655         * lib/obstack.c (print_and_abort): Likewise.
65656
65657 2000-07-30  Paul Eggert  <eggert@twinsun.com>
65658
65659         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
65660         buffer, so that the caller can always quote one small
65661         component of a "memory exhausted" message in slot 0.
65662         From a suggestion by Jim Meyering.
65663
65664 2000-07-30  Jim Meyering  <meyering@lucent.com>
65665
65666         * lib/makepath.c (make_path): Quote the other instance, too.
65667
65668         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
65669         (STATIC_BUF_SIZE): Define.
65670         (quotearg_n_options): Use only statically allocated storage when
65671         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
65672         than STATIC_BUF_SIZE.
65673
65674 2000-07-29  Jim Meyering  <meyering@lucent.com>
65675
65676         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
65677         * lib/dirname.c (dir_name): Likewise.
65678
65679         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
65680         `/'.
65681
65682         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
65683         (dir_name): Assert that there are no trailing slashes.
65684
65685 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
65686
65687         * lib/mbswidth.h (mbswidth): Add a flags argument.
65688         (mbswidth): New declaration.
65689         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
65690         * lib/mbswidth.c (mbswidth): Add a flags argument.
65691         (mbsnwidth): New function.
65692
65693 2000-07-24  Jim Meyering  <meyering@lucent.com>
65694
65695         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
65696
65697 2000-07-23  Paul Eggert  <eggert@twinsun.com>
65698
65699         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
65700
65701 2000-07-23  Paul Eggert  <eggert@twinsun.com>
65702
65703         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
65704         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
65705         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
65706         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
65707         invoke multibyte primitives.
65708
65709 2000-07-23  Paul Eggert  <eggert@twinsun.com>
65710
65711         * lib/quotearg.c:
65712         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
65713         so that mbstate_t is always defined.
65714
65715         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
65716         be 1 in at least one GCC installation, and this configuration
65717         error is likely to be common.  Ignoring MB_LEN_MAX hurts
65718         performance on hosts that have mbrtowc but have only unibyte
65719         locales, but I assume these hosts are rare.
65720
65721 2000-07-23  Paul Eggert  <eggert@twinsun.com>
65722
65723         * lib/mbswidth.c (_XOPEN_SOURCE):
65724         Don't define; this causes problems on Solaris 7.
65725         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
65726
65727 2000-07-23  Jim Meyering  <meyering@lucent.com>
65728
65729         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
65730         too: getgrgid, getpwuid, getuid.
65731
65732 2000-07-23  Jim Meyering  <meyering@lucent.com>
65733
65734         * lib/basename.c (base_name): Add an assertion.
65735
65736 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
65737
65738         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
65739         shadow its mbsinit function.
65740
65741 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
65742
65743         * lib/mbswidth.h: New file.
65744         * lib/mbswidth.c: New file.
65745         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
65746         (noinst_HEADERS): Add mbswidth.h.
65747
65748 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
65749
65750         * lib/config.charset: Add support for FreeBSD. Improve support for
65751         HP-UX and IRIX 6.
65752
65753 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
65754
65755         * m4/mbswidth.m4: New file.
65756         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
65757
65758 2000-07-15  Jim Meyering  <meyering@lucent.com>
65759
65760         * lib/makepath.c: Include quote.h.
65761         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
65762         corresponding argument in a `quote (...)' call.
65763         Give better diagnostics.
65764
65765         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
65766         (noinst_HEADERS): Add quote.h.
65767
65768         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
65769         from tar's src/misc.c.
65770         * lib/quote.h: New file.  Prototypes for same.
65771
65772 2000-07-14  Paul Eggert  <eggert@twinsun.com>
65773
65774         From a suggestion by Bruno Haible.
65775         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
65776         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
65777         to decide whether to define the BeOS workaround macro;
65778         this adjusts to the change to AC_MBSTATE_T.
65779
65780 2000-07-14  Jim Meyering  <meyering@lucent.com>
65781
65782         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
65783         jm_AC_TYPE_UINTMAX_T.
65784
65785 2000-07-13  Paul Eggert  <eggert@twinsun.com>
65786
65787         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
65788
65789         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
65790         quotearg_buffer_restyled): Add support for
65791         clocale_quoting_style.  Undo previous change to
65792         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
65793         and "{RIGHT QUOTATION MARK}" msgids.
65794
65795 2000-07-10  Paul Eggert  <eggert@twinsun.com>
65796
65797         From a suggestion by Bruno Haible.
65798         * m4/mbstate_t.m4 (AC_MBSTATE_T):
65799         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
65800         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
65801         and mbstate_t, to a single-part test that simply defines mbstate_t.
65802         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
65803         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
65804
65805 2000-07-10  Jim Meyering  <meyering@lucent.com>
65806
65807         * m4/strerror_r.m4: Mirror the correction made in autoconf.
65808
65809         * m4/gnu-source.m4: Output to confdefs.h directly.
65810         Suggestion from Akim Demaille.
65811
65812 2000-07-09  Paul Eggert  <eggert@twinsun.com>
65813
65814         The old behavior of quoting `like this' doesn't look good with
65815         newer, ISO-style fonts.  See:
65816         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
65817
65818         Instead, quote "like this" by default.  Let the translator
65819         tailor the locale-specific quoting behavior by providing
65820         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
65821
65822         * lib/quotearg.c (N_): New macro.
65823         (gettext_default): New function.
65824         (quotearg_buffer_restyled): Use
65825         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
65826         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
65827
65828 2000-07-09  Jim Meyering  <meyering@lucent.com>
65829
65830         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
65831         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
65832
65833         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
65834         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
65835
65836 2000-07-09  Jim Meyering  <meyering@lucent.com>
65837
65838         * lib/Most files: Update copyright dates to include 2000.
65839
65840 2000-07-08  Jim Meyering  <meyering@lucent.com>
65841
65842         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
65843         if not defined.
65844         (xgethostname): Remove now-unnecessary #ifdef.
65845         Move declaration of `err' into loop where it's used.
65846
65847 2000-07-05  Paul Eggert  <eggert@twinsun.com>
65848         and Bruno Haible  <haible@clisp.cons.org>
65849
65850         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
65851         only if the test for an object-type mbstate_t fails.  This
65852         prevents us from mistakenly reporting that mbstate_t is a
65853         system object type after we "#define mbstate_t int" to work
65854         around its lack.
65855
65856 2000-07-05  Paul Eggert  <eggert@twinsun.com>
65857         and Bruno Haible  <haible@clisp.cons.org>
65858
65859         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
65860
65861 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
65862
65863         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
65864         to strerror_r.
65865         Include <ctype.h> for use of isalpha.
65866
65867 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
65868
65869         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
65870         by allocating a larger buffer. Test the gethostname return value for
65871         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
65872         returns an error and ENAMETOOLONG isn't defined.
65873
65874 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
65875
65876         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
65877         dimension.
65878
65879 2000-07-04  Jim Meyering  <meyering@lucent.com>
65880
65881         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
65882         of the deprecated AC_CHECKING.
65883
65884 2000-07-04  Jim Meyering  <meyering@lucent.com>
65885
65886         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
65887         Reported by Bruno Haible.
65888
65889 2000-07-04  Jim Meyering  <meyering@lucent.com>
65890
65891         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
65892         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
65893         lacks mbrtowc.
65894
65895 2000-07-03  Paul Eggert  <eggert@twinsun.com>
65896
65897         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
65898         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
65899
65900 2000-07-03  Paul Eggert  <eggert@twinsun.com>
65901         and Bruno Haible  <haible@clisp.cons.org>
65902
65903         * lib/quotearg.c (mbrtowc):
65904         Assign to *pwc, and return 1 only if result is nonzero.
65905         (iswprint): Use ISPRINT when substituting our own mbrtowc.
65906
65907 2000-07-03  Jim Meyering  <meyering@lucent.com>
65908
65909         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
65910
65911 2000-07-03  Jim Meyering  <meyering@lucent.com>
65912
65913         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
65914         This is necessary to get a definition of e.g., UTMP_FILE on
65915         HP-UX 10.20.
65916         From Bob Proulx.
65917
65918 2000-07-02  Jim Meyering  <meyering@lucent.com>
65919
65920         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
65921
65922         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
65923         AC_LIBOBJ(function_name).
65924         * m4/chown.m4: Likewise.
65925         * m4/fnmatch.m4: Likewise.
65926         * m4/ftruncate.m4: Likewise.
65927         * m4/getgroups.m4: Likewise.
65928         * m4/getline.m4: Likewise.
65929         * m4/group-member.m4: Likewise.
65930         * m4/jm-macros.m4: Likewise.
65931         * m4/lstat.m4: Likewise.
65932         * m4/malloc.m4: Likewise.
65933         * m4/memcmp.m4: Likewise.
65934         * m4/nanosleep.m4: Likewise.
65935         * m4/putenv.m4: Likewise.
65936         * m4/realloc.m4: Likewise.
65937         * m4/regex.m4: Likewise.
65938         * m4/stat.m4: Likewise.
65939         * m4/strftime.m4: Likewise.
65940
65941 2000-07-02  Jim Meyering  <meyering@lucent.com>
65942
65943         * lib/quotearg.c (mbstate_t): Don't define here.
65944
65945 2000-07-02  Jim Meyering  <meyering@lucent.com>
65946
65947         * lib/nanosleep.c (SIGCONT): Define if not already defined.
65948
65949 2000-07-01  Jim Meyering  <meyering@lucent.com>
65950
65951         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
65952
65953 2000-07-01  Jim Meyering  <meyering@lucent.com>
65954
65955         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
65956         problem.
65957
65958 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
65959
65960         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
65961         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
65962
65963 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
65964
65965         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
65966         per change in ../m4/ls-mntd-fs.m4.
65967         (read_filesystem_list): Ignore symbolic links.
65968
65969 2000-06-29  Jim Meyering  <meyering@lucent.com>
65970
65971         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
65972         for declaration of strcmp.
65973
65974         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
65975
65976         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
65977         Avoid warning by casting result to `char *' to remove `const'.
65978
65979 2000-06-28  Jim Meyering  <meyering@lucent.com>
65980
65981         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
65982         included by quotearg.c, for which we perform this test.  From
65983         Bruno Haible.
65984
65985 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
65986
65987         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
65988         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
65989         <utmpx.h> exists, put readutmp.o into LIBOBJS.
65990
65991 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
65992
65993         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
65994
65995 2000-06-26  Paul Eggert  <eggert@twinsun.com>
65996
65997         savedir now sets errno on failure and invokes xmalloc to get memory.
65998         Fix a couple of other minor bugs while we're at it.
65999
66000         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
66001         (NAMLEN): Remove macro.
66002         (malloc, realloc): Remove decls.
66003         (stpcpy): Likewise.
66004         ("xalloc.h"): Include.
66005         (NAME_SIZE_DEFAULT): New macro.
66006         (savedir): Use xmalloc / xrealloc to allocate memory.
66007         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
66008         Skip "" directory entries.
66009         Use strlen to calculate directory entry length, since the old method
66010         is rarely used these days and isn't worth supporting.
66011         Don't use a pointer after freeing it.
66012         Check for integer overflow when calculating allocation size.
66013         Use memcpy to copy entries, instead of stpcpy.
66014         Set errno properly when returning NULL.
66015         Check for readdir error.
66016
66017 2000-06-26  Jim Meyering  <meyering@lucent.com>
66018
66019         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
66020
66021 2000-06-25  Jim Meyering  <meyering@lucent.com>
66022
66023         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
66024         Linux header bug when _XOPEN_SOURCE is defined to 500.
66025
66026 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
66027
66028         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
66029         deficiency.
66030
66031 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
66032
66033         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
66034         Include xalloc.h.
66035         Don't include <stdlib.h>.  Don't declare malloc, realloc.
66036
66037 2000-06-24  Jim Meyering  <meyering@lucent.com>
66038
66039         * m4/strerror_r.m4: Revive this file -- to try out an experimental
66040         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
66041         for which strerror does return char*, but which lacks a conveniently
66042         accessible declaration of the function.  If the compile-test says
66043         strerror_r doesn't work, then resort to a `run'-test that works on
66044         BeOS and segfaults on DEC Unix.
66045
66046 2000-06-24  Jim Meyering  <meyering@lucent.com>
66047
66048         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
66049
66050 2000-06-23  Paul Eggert  <eggert@twinsun.com>
66051
66052         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
66053         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
66054
66055 2000-06-23  Paul Eggert  <eggert@twinsun.com>
66056
66057         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
66058         (mbrtowc, mbstate_t): Define substitutes if
66059         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
66060         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
66061         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
66062
66063 2000-06-23  Jim Meyering  <meyering@lucent.com>
66064
66065         * m4/afs.m4: Add missing AC_MSG_RESULT.
66066         Reported by Bruno Haible.
66067
66068         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
66069         Suggestion from Bruno Haible.
66070
66071 2000-06-23  Jim Meyering  <meyering@lucent.com>
66072
66073         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
66074
66075 2000-06-21  Jim Meyering  <meyering@lucent.com>
66076
66077         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
66078
66079 2000-06-21  Jim Meyering  <meyering@lucent.com>
66080
66081         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
66082         (noinst_HEADERS): Add getstr.h.
66083
66084         * lib/getline.c (getstr): Move into a separate file.
66085         * lib/getstr.c (getstr): New file, extracted from getline.c, with
66086         the following changes: new parameter, delim2; both delim[12]
66087         parameters have type `int', not `char'.  The latter would lose
66088         with 8-bit delimiters.
66089         * lib/getstr.h: New file.
66090
66091 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
66092
66093         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
66094         than 1024, return a memory chunk of least possible size, instead
66095         of size PATH_MAX + 2. In the loop, increment the size proportionally.
66096         Use free/xmalloc instead of xrealloc to avoid copying for very long
66097         paths.
66098
66099 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
66100
66101         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
66102         the empty string.
66103
66104 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
66105
66106         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
66107         address, not strdup.  Include <stdlib.h> and don't declare free().
66108
66109 2000-06-19  Jim Meyering  <meyering@lucent.com>
66110
66111         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
66112
66113 2000-06-18  Jim Meyering  <meyering@lucent.com>
66114
66115         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
66116
66117         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
66118         `checking whether...' message to be consistent with that of the
66119         lstat test.
66120
66121 2000-06-18  Jim Meyering  <meyering@lucent.com>
66122
66123         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
66124         Besides, these days every porting target provides a mkdir function.
66125
66126         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
66127         needed. (this snippet comes from src/system.h).
66128
66129 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
66130
66131         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
66132
66133 2000-06-15  Paul Eggert  <eggert@twinsun.com>
66134
66135         * lib/human.c (adjust_value): New function.
66136         (human_readable_inexact): Apply rounding style even when
66137         printing approximate values.
66138
66139 2000-06-14  Paul Eggert  <eggert@twinsun.com>
66140
66141         * lib/human.c (human_readable_inexact): Allow an input block
66142         size that is not a multiple of the output block size, and vice versa.
66143         Reported by Piergiorgio Sartor.
66144
66145 2000-06-14  Paul Eggert  <eggert@twinsun.com>
66146
66147         * lib/getdate.y (get_date): Apply relative times after time
66148         zone indicator, not before.  Reported by Todd A. Jacobs.
66149
66150 2000-06-13  Jim Meyering  <meyering@lucent.com>
66151
66152         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
66153
66154         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
66155
66156 2000-06-12  Paul Eggert  <eggert@twinsun.com>
66157
66158         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
66159
66160 2000-06-12  Jim Meyering  <meyering@lucent.com>
66161
66162         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
66163         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
66164         optional argument.
66165         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
66166         the optional argument, `lib'.
66167
66168 2000-06-08  Jim Meyering  <meyering@lucent.com>
66169
66170         * m4/largefile.m4: Remove file (now that it's part of autoconf).
66171
66172 2000-06-04  Paul Eggert  <eggert@twinsun.com>
66173
66174         Rewrite largefile configuration so that we don't need to run
66175         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
66176         AC_CANONICAL_HOST in configure.in -- jmm]
66177
66178         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
66179         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
66180         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
66181         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
66182         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
66183         All uses changed.
66184         Instead of inspecting the output of getconf, try to compile the
66185         test program without and with the macro definition.
66186         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
66187         for getconf.  Instead, check for the needed flags by compiling
66188         test programs.
66189
66190 2000-06-04  Paul Eggert  <eggert@twinsun.com>
66191
66192         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
66193
66194 2000-06-04  Jim Meyering  <meyering@lucent.com>
66195
66196         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
66197         SunOS 4.1.4 for which gid_t is an unsigned type.
66198
66199 2000-06-03  Jim Meyering  <meyering@lucent.com>
66200
66201         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
66202         now that autoconf requires that.
66203
66204         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
66205         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
66206         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
66207
66208 2000-06-03  Jim Meyering  <meyering@lucent.com>
66209
66210         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
66211
66212 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
66213
66214         * m4/glibc21.m4: New file.
66215         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
66216
66217 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
66218
66219         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
66220         newer, don't install charset.alias.
66221         * lib/config.charset: Change the Linux/glibc rules so they become empty
66222         on glibc-2.1 or newer.
66223
66224 2000-06-02  Jim Meyering  <meyering@lucent.com>
66225
66226         * lib/mountlist.c: Back out last change.  Instead, do this...
66227         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
66228         me_dummy member using the same `ignore'-testing code.
66229         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
66230         fs_type strings.
66231         From Mark D. Roth.
66232
66233 2000-05-29  Jim Meyering  <meyering@lucent.com>
66234
66235         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
66236         mounts with the `ignore' attribute.  Based on a patch from
66237         Mark D. Roth.
66238
66239 2000-05-28  Jim Meyering  <meyering@lucent.com>
66240
66241         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
66242         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66243         * m4/stat.m4: Likewise.
66244         * m4/lstat.m4: Likewise.
66245         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
66246
66247         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
66248         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
66249
66250 2000-05-26  Jim Meyering  <meyering@lucent.com>
66251
66252         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
66253
66254 2000-05-24  Jim Meyering  <meyering@lucent.com>
66255
66256         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
66257         autoconf requires that.
66258         * m4/lib-check.m4: Likewise.
66259         * m4/jm-macros.m4: Likewise.
66260         * m4/strftime.m4: Likewise.
66261
66262         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
66263         AC_CHECK_DECLS, now that autoconf requires that.
66264
66265 2000-05-22  Jim Meyering  <meyering@lucent.com>
66266
66267         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66268         * m4/lstat.m4: Likewise.
66269
66270 2000-05-22  Jim Meyering  <meyering@lucent.com>
66271
66272         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
66273
66274 2000-05-20  Jim Meyering  <meyering@lucent.com>
66275
66276         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
66277         (jm_PREREQ): Use it.
66278
66279 2000-05-18  Jim Meyering  <meyering@lucent.com>
66280
66281         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
66282         back, too, since it may have been modified by allocate_entry.
66283         (hash_delete): Rewrite to use neither the assignment operator
66284         nor the comma operator in an if-expression.
66285
66286 2000-05-15  Paul Eggert  <eggert@twinsun.com>
66287
66288         * lib/closeout.c:
66289         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
66290         Remove; no longer needed.
66291         "quotearg.h": Add include.
66292         (file_name): Do not bother to explicitly initialize to NULL; it's less
66293         efficient on some hosts.
66294         (close_stdout_status): Remove test as to whether stdout was already
66295         closed; it breaks for the case "echo x | sort >&-".
66296         Quote file name colons.
66297         Do not assume that _("write error") lacks format strings.
66298
66299 2000-05-15  Jim Meyering  <meyering@lucent.com>
66300
66301         * lib/version-etc.c (version_etc_copyright): Update the copyright
66302         string used in all --version output.
66303
66304 2000-05-14  Jim Meyering  <meyering@lucent.com>
66305
66306         * lib/closeout.c (close_stdout_set_file_name): New function.
66307         (close_stdout_status): Use new file-scoped global.
66308         Return right away if fstat says the stdout file descriptor is invalid.
66309         * lib/closeout.h (close_stdout_set_file_name): Declare.
66310
66311 2000-05-10  Jim Meyering  <meyering@lucent.com>
66312
66313         * lib/closeout.c [default_exit_status]: New file-scoped variable.
66314         (close_stdout_set_status): New function.
66315         * lib/closeout.h (close_stdout_set_status): Declare.
66316
66317 2000-05-09  Jim Meyering  <meyering@lucent.com>
66318
66319         * m4/gettext.m4: Rename this...
66320         * m4/libintl.m4: ...to this.
66321
66322 2000-05-08  Jim Meyering  <meyering@lucent.com>
66323
66324         * lib/long-options.c: Don't include closeout.h.
66325         (parse_long_options): Don't call close_stdout for --version.
66326
66327 2000-05-06  Paul Eggert  <eggert@twinsun.com>
66328
66329         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
66330         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
66331         2.1.3 bug.  This avoids a clash when files like regex.c define
66332         _GNU_SOURCE.
66333
66334 2000-05-06  Jim Meyering  <meyering@lucent.com>
66335
66336         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
66337         (AC_REPLACE_FUNCS): Add strnlen.
66338
66339         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
66340         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
66341
66342         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
66343         AC_SEARCH_LIBS call for nanosleep.
66344         (LIB_NANOSLEEP): Set and AC_SUBST.
66345
66346 2000-05-06  Jim Meyering  <meyering@lucent.com>
66347
66348         * lib/strnlen.c: Undefine __strnlen and strnlen.
66349         [!weak_alias]: Define __strnlen to strnlen.
66350
66351         * lib/atexit.c: New file, from libiberty.
66352
66353 2000-05-06  Jim Meyering  <meyering@lucent.com>
66354
66355         * lib/closeout.c (close_stdout_status): Also check for errors on the
66356         stderr stream.
66357
66358 2000-05-05  Jim Meyering  <meyering@lucent.com>
66359
66360         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
66361         AC_SEARCH_LIBS call for clock_gettime.
66362         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
66363
66364         * m4/search-libs.m4: Update from autoconf.
66365
66366         su doesn't work on Solaris 2.6.
66367         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
66368         <shadow.h>.  Reported by Dragos Harabor.
66369
66370 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
66371
66372         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
66373         memcpy instead of xmalloc, xrealloc, path_concat.
66374         (locale_charset): Treat empty environment variables as absent.
66375         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
66376
66377 2000-05-04  Jim Meyering  <meyering@lucent.com>
66378
66379         * lib/getopt.c: Update from glibc.
66380         * lib/obstack.c: Likewise.
66381         * lib/obstack.h: Likewise.
66382         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
66383         file
66384
66385         * lib/regex.h: Likewise.
66386         * lib/strndup.c: Likewise.
66387         * lib/strnlen.c: New file, from glibc.
66388
66389 2000-05-03  Jim Meyering  <meyering@lucent.com>
66390
66391         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
66392
66393 2000-05-02  Paul Eggert  <eggert@twinsun.com>
66394
66395         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
66396         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
66397         compile-time test, rather than inspecting host and OS, to
66398         decide whether to define _LARGEFILE_SOURCE.
66399
66400 2000-05-01  Jim Meyering  <meyering@lucent.com>
66401
66402         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
66403
66404         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
66405         Based on a patch from Bruno Haible.
66406
66407 2000-05-01  Jim Meyering  <meyering@lucent.com>
66408
66409         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
66410
66411 2000-04-29  Jim Meyering  <meyering@lucent.com>
66412
66413         * lib/path-concat.c: Declare strdup only if it's not defined.
66414         * lib/canon-host.c: Likewise.
66415
66416 2000-04-28  Jim Meyering  <meyering@lucent.com>
66417
66418         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
66419         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
66420         is included first, then limits.h is included by locale.h by libintl.h.
66421         From John David Anglin.
66422
66423 2000-04-25  Jim Meyering  <meyering@lucent.com>
66424
66425         * lib/makepath.c (S_IRWXUGO): Define.
66426         (make_path): Always perform explicit chmod if MODE specifies any
66427         of the `special' permission bits.  Prompted by a bug report against
66428         install from Mate Wierdl and Joost van Baal.
66429
66430 2000-04-18  Jim Meyering  <meyering@lucent.com>
66431
66432         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
66433         (jm_PREREQ): Use it.
66434
66435 2000-04-18  Jim Meyering  <meyering@lucent.com>
66436
66437         * lib/README: New file.
66438
66439         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
66440         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
66441
66442 2000-04-17  Jim Meyering  <meyering@lucent.com>
66443
66444         Get it right :-)
66445         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
66446         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
66447         Suggestion from Akim Demaille.
66448
66449 2000-04-17  Jim Meyering  <meyering@lucent.com>
66450
66451         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
66452         the definition of it to rpl_strftime also defined-away the system's
66453         declaration.
66454
66455 2000-04-15  Jim Meyering  <meyering@lucent.com>
66456
66457         Use `C' to denote so-called `contiguous' files, the same way
66458         that tar does.
66459         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
66460         (ftypelet): Use S_ISCTG.
66461         From Michael Deutschmann.
66462
66463 2000-04-14  Jim Meyering  <meyering@lucent.com>
66464
66465         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
66466         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
66467         clobbered.
66468
66469 2000-04-14  Jim Meyering  <meyering@lucent.com>
66470
66471         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
66472
66473 2000-04-13  Jim Meyering  <meyering@lucent.com>
66474
66475         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
66476         AH_VERBATIM to insert required #ifndef into config.h.in.
66477         Suggestion from Akim Demaille.
66478
66479 2000-04-12  Jim Meyering  <meyering@lucent.com>
66480
66481         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
66482         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
66483         Christian Krackowizer.
66484
66485         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
66486         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
66487         (AC_SYS_LARGEFILE): Require.
66488         (AM_C_PROTOTYPES): Require.
66489
66490 2000-04-08  Jim Meyering  <meyering@lucent.com>
66491
66492         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
66493         names don't conflict.  Reported by Eli Zaretskii.
66494
66495 2000-04-07  Jim Meyering  <meyering@lucent.com>
66496
66497         * lib/putenv.c: Move inclusion of errno.h so it follows that of
66498         sys/types.h, to work around system header problems on AIX 3.2.5.
66499         From Bruno Haible.
66500
66501 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
66502
66503         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
66504         bug.  Deal with the different error behavior of Irix iconv.
66505
66506 2000-04-05  Paul Eggert  <eggert@twinsun.com>
66507
66508         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
66509         IRIX if the installer said otherwise.
66510
66511 2000-04-05  Jim Meyering  <meyering@lucent.com>
66512
66513         Portability tweaks required for ultrix4.3.
66514         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
66515         (jm_CHECK_DECLS): Add getutent to the list of functions.
66516         (_jm_DECL_HEADERS): Add utmpx.h.
66517         From John David Anglin.
66518
66519         * m4/strftime.m4: Back out the 2000-04-02 change.
66520         Instead of that change, simply undefine putenv in the test program.
66521
66522 2000-04-05  Jim Meyering  <meyering@lucent.com>
66523
66524         Portability tweaks required for ultrix4.3.
66525         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
66526         getutent.
66527         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
66528         * lib/canon-host.c: Declare strdup.
66529         * lib/path-concat.c: Likewise.
66530         From John David Anglin.
66531
66532 2000-04-04  Jim Meyering  <meyering@lucent.com>
66533
66534         Be more DOS 8.3-friendly.
66535         * lib/ref-add.sin: Renamed from ref-add.sed.in.
66536         * lib/ref-del.sin: Renamed from ref-del.sed.in.
66537         * lib/Makefile.am: Reflect renaming.
66538         Reported by Eli Zaretskii.
66539
66540         Use a temporary file name that won't clash with `charset.alias'
66541         in the DOS 8.3 name space.
66542         * lib/Makefile.am (charset_tmp): Define.
66543         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
66544         (uninstall-local): Likewise.
66545         Reported by Eli Zaretskii.
66546
66547 2000-04-03  Jim Meyering  <meyering@lucent.com>
66548
66549         * m4/gettext.m4: Fix typo in comment.
66550
66551         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
66552         textutils/configure.in).  Suggestion from Paul Eggert.
66553         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
66554
66555 2000-04-02  Paul Eggert  <eggert@twinsun.com>
66556
66557         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
66558         variable in the shell rather than using putenv, which isn't
66559         portable.  This avoids the configure-time inter-test dependency
66560         on the potentially-renamed putenv function.
66561
66562 2000-03-30  Paul Eggert  <eggert@twinsun.com>
66563
66564         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
66565         before checking struct stat.st_blksize, so that
66566         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
66567
66568 2000-03-29  Paul Eggert  <eggert@twinsun.com>
66569
66570         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
66571         since strftime.c uses HAVE_STRFTIME to decide whether to use
66572         the underlying strftime.
66573
66574 2000-03-29  Paul Eggert  <eggert@twinsun.com>
66575
66576         * lib/time/strftime.c (my_strftime): Make sure we call the system
66577         strftime, not ourselves, when invoking the underlying strftime.
66578
66579 2000-03-24  Jim Meyering  <meyering@lucent.com>
66580
66581         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
66582         (charset_alias): Define.
66583         (install-exec-local): Factor out common code.
66584         (uninstall-local): Split lines longer than 80.
66585         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
66586         (SUFFIXES): Define.
66587         (.sed.in.sed): New rule.  Don't redirect directly to $@.
66588         (CLEANFILES): Add ref-add.sed and ref-del.sed.
66589
66590 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
66591
66592         * lib/config.charset: Output a line containing "Packages using this
66593         file".
66594         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
66595         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
66596         ref-del.sed): New rules.
66597
66598 2000-03-17  Jim Meyering  <meyering@lucent.com>
66599
66600         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
66601         Otherwise, include <strings.h>
66602
66603 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
66604
66605         * lib/unicodeio.c (utf8_wctomb): New function.
66606         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
66607         format instead of in UCS-4 with platform dependent endianness.
66608
66609 2000-03-10  Jim Meyering  <meyering@lucent.com>
66610
66611         * m4/lib-check.m4: Look for getspnam in -lgen, too.
66612         From Marco Franzen.
66613
66614 2000-03-07  Paul Eggert  <eggert@twinsun.com>
66615
66616         * lib/savedir.c (savedir): Work even if directory size is
66617         negative; this can happen with some screwy NFS configurations.
66618
66619 2000-03-06  Jim Meyering  <meyering@lucent.com>
66620
66621         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
66622         if it's NULL (because we ran out of memory).  From Bruno Haible.
66623
66624 2000-03-05  Jim Meyering  <meyering@lucent.com>
66625
66626         * lib/localcharset.c ("path-concat.h"): Include.
66627         (get_charset_aliases): Use path_concat instead of ANSI string
66628         concatenation.
66629
66630         * lib/unicodeio.h (PARAMS): Define.
66631         Use it to guard prototype.
66632
66633 2000-03-04  Jim Meyering  <meyering@lucent.com>
66634
66635         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
66636         for lib/localcharset.c.
66637
66638 2000-03-04  Jim Meyering  <meyering@lucent.com>
66639
66640         * lib/Makefile.am (install-exec-local): Create $(libdir) before
66641         installing into it.
66642         (uninstall-local): Uncomment this rule so `make distcheck' works
66643         once again.
66644
66645         * lib/unicodeio.c (<errno.h>): Include it.
66646         (errno): Declare if not defined.
66647
66648         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
66649
66650         * lib/config.charset: New version, incorporating remarks from a linux
66651         i18n mailing list.  From Bruno Haible.
66652
66653 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
66654
66655         * m4/codeset.m4: New file.
66656         * m4/iconv.m4: New file.
66657         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
66658
66659 2000-03-03  Jim Meyering  <meyering@lucent.com>
66660
66661         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
66662
66663 2000-03-02  Jim Meyering  <meyering@lucent.com>
66664
66665         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
66666         the messages come out on separate lines.
66667
66668         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
66669         rather than jm_CHECK_DECLARATIONS.
66670         * m4/decl.m4: Remove now-unused file.
66671
66672         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
66673         geteuid.
66674
66675 2000-03-02  Jim Meyering  <meyering@lucent.com>
66676
66677         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
66678
66679 2000-03-01  Jim Meyering  <meyering@lucent.com>
66680
66681         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
66682         * lib/unicodeio.c: Likewise.
66683
66684 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
66685
66686         * lib/config.charset: New file.
66687         * lib/localcharset.c: New file.
66688         * lib/unicodeio.h, lib/unicodeio.c: New files.
66689         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
66690         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
66691         (noinst_HEADERS): Add unicodeio.h.
66692         (all-local, install-exec-local, charset.alias): New targets.
66693
66694 2000-02-28  Paul Eggert  <eggert@twinsun.com>
66695
66696         * lib/quotearg.c (ALERT_CHAR): New macro.
66697         (quotearg_buffer_restyled): Use it.
66698
66699 2000-02-27  Jim Meyering  <meyering@lucent.com>
66700
66701         * m4/check-decl.m4: Add getenv to the list.
66702
66703 2000-02-27  Jim Meyering  <meyering@lucent.com>
66704
66705         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
66706         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
66707
66708         * lib/backupfile.c: Guard inclusion of stdlib.h with
66709         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
66710         Declare malloc if needed.
66711
66712         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
66713         `#ifndef HAVE_DECL..'
66714         now that autoconf always defines the HAVE_DECL_ symbols.
66715         * lib/human.c: Likewise.
66716         * lib/same.c: Likewise.
66717         * lib/strtoumax.c: Likewise.
66718
66719         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
66720         declaration check was not run.
66721         * lib/hash.c: Likewise.
66722         * lib/human.c: Likewise.
66723         * lib/same.c: Likewise.
66724         * lib/strtoumax.c: Likewise.
66725
66726         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
66727         `.', then first look up the entire `.'-containing string as a login
66728         name.
66729
66730 2000-02-23  Jim Meyering  <meyering@lucent.com>
66731
66732         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
66733         in place of my hack.
66734
66735 2000-02-18  Paul Eggert  <eggert@twinsun.com>
66736
66737         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
66738         (textint): New typedef.
66739         (parser_control): Member year changed from int to textint.
66740         All uses changed.
66741         (YYSTYPE): Removed; replaced by %union with int and textint members.
66742         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
66743         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
66744         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
66745         (tSNUMBER, tUNUMBER): Now of type <textintval>.
66746         (date, number, to_year): Use width of number in digits, not its value,
66747         to determine whether it's a 2-digit year, or a 2-digit time.
66748         (yylex): Store number of digits of numeric tokens.
66749         Reported by John Kendall.
66750
66751         (parser_control): Changed from struct parser_control to typedef (for
66752         consistency).  All uses changed.
66753
66754         (tID): Removed; not used.
66755         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
66756
66757 2000-02-14  Paul Eggert  <eggert@twinsun.com>
66758
66759         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
66760         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
66761
66762 2000-02-12  Jim Meyering  <meyering@lucent.com>
66763
66764         * lib/userspec.c (ISDIGIT): Define it.
66765         (isdigit): Remove definition.
66766         (is_number): Use ISDIGIT, not isdigit.
66767         <libintl.h>: Include.
66768         (_ and N_): Define.
66769         (parse_user_spec): Mark translatable strings.
66770
66771 2000-02-10  Jim Meyering  <meyering@lucent.com>
66772
66773         With these changes, nanosleep.[ch] are finally enough like the other
66774         lib/* replacement files to compile on a few more losing systems.
66775
66776         * lib/nanosleep.h: Don't include config.h.
66777         Remove prototype from declaration of nanosleep.
66778         (PARAMS): Remove now-unneeded definition.
66779         * lib/nanosleep.c: #undef nanosleep.
66780         (rpl_nanosleep): Rename from nanosleep.
66781
66782 2000-02-10  Jim Meyering  <meyering@lucent.com>
66783
66784         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
66785         gnu_nanosleep to rpl_nanosleep.
66786
66787 2000-02-09  Jim Meyering  <meyering@lucent.com>
66788
66789         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
66790         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
66791
66792 2000-02-08  Akim Demaille  <akim@epita.fr>
66793
66794         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
66795         `[' and `]' and remove uses of `changequote'.
66796         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
66797         (AC_SYS_LARGEFILE): Likewise.
66798         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
66799         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
66800         of changequote.
66801         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
66802         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
66803         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
66804         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
66805
66806 2000-02-05  Jim Meyering  <meyering@lucent.com>
66807
66808         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
66809         Remove explicit use of AC_HEADER_TIME.  It is required by
66810         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
66811         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
66812         in autoconf whereby the expansion of the latter ended up preceding
66813         the expansion of its prerequisite, AC_HEADER_TIME.
66814         Reported by Volker Borchert.
66815
66816 2000-02-03  Jim Meyering  <meyering@lucent.com>
66817
66818         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
66819
66820 2000-02-03  Jim Meyering  <meyering@lucent.com>
66821
66822         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
66823         rather than with `#if HAVE_UTMPNAME'.
66824
66825 2000-02-02  Jim Meyering  <meyering@lucent.com>
66826
66827         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
66828         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
66829         Reported by Eli Zaretskii.
66830
66831 2000-02-01  Jim Meyering  <meyering@lucent.com>
66832
66833         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
66834
66835 2000-01-31  Jim Meyering  <meyering@lucent.com>
66836
66837         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
66838         functions.  Add the time.h and sys/time.h headers along with the
66839         AC_REQUIRE'ment of AC_HEADER_TIME.
66840
66841 2000-01-31  Jim Meyering  <meyering@lucent.com>
66842
66843         * lib/nanosleep.h (nanosleep): Guard declaration with
66844         `#if ! HAVE_DECL_NANOSLEEP'.
66845         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
66846         the declaration in that vendor's sys/timers.h.
66847         Reported by Christian Krackowizer.
66848
66849         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
66850         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
66851         (ISPRINT): Likewise.
66852         Reported by Tom Tromey.
66853
66854 2000-01-30  Jim Meyering  <meyering@lucent.com>
66855
66856         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
66857
66858         * m4/prereq.m4 (utmp_includes): Define.
66859         Check for ut_user and ut_name members in both struct utmpx
66860         and struct utmp.
66861
66862 2000-01-30  Jim Meyering  <meyering@lucent.com>
66863
66864         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
66865         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
66866         header files where only utmpx.ut_user is declared.
66867
66868         * lib/readutmp.h (UT_USER): Define.
66869
66870 2000-01-29  Jim Meyering  <meyering@lucent.com>
66871
66872         * m4/lib-check.m4: New file containing library-related checks from
66873         fileutils and sh-utils (textutils had none).
66874
66875 2000-01-28  Jim Meyering  <meyering@lucent.com>
66876
66877         * m4/perl.m4: Change format of warning message to look more like that
66878         from the missing script.  Suggestion from François Pinard.
66879
66880 2000-01-25  Jim Meyering  <meyering@lucent.com>
66881
66882         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
66883         well as time.h in the compile check.
66884         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
66885         Fix typo in cross-compiling case: s/yes/no/.
66886
66887 2000-01-23  Jim Meyering  <meyering@lucent.com>
66888
66889         * m4/jm-macros.m4: Move df-related tests here from
66890         fileutils/configure.in
66891
66892         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
66893         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
66894
66895         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
66896         s/space/ac_fsusage_space/.
66897         (jm_FILE_SYSTEM_USAGE): Take two parameters.
66898
66899         * m4/ftruncate.m4: New file (derived from part of
66900         fileutils/configure.in).
66901         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
66902         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
66903
66904         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
66905         AC_SUBST these here, rather than just in sh-util/configure.in, so
66906         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
66907         all the same.
66908         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
66909         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
66910         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
66911         (AC_SUBST(POW_LIBM)): Likewise.
66912         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
66913
66914 2000-01-23  Jim Meyering  <meyering@lucent.com>
66915
66916         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
66917         obstack.c.
66918
66919 2000-01-22  Jim Meyering  <meyering@lucent.com>
66920
66921         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
66922
66923         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
66924
66925         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
66926         configure.in
66927         (AC_CHECK_HEADERS): Likewise for sh-utils.
66928         (AC_CHECK_HEADERS): Likewise for textutils.
66929         Merge the three lists of headers.
66930
66931         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
66932         from fileutils' configure.in.
66933
66934         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
66935         code. Moved tests into their own function (_jm_DECL_HEADERS) in
66936         check-decl.m4.
66937
66938         * m4/check-decl.m4: Use #if rather than #ifdef.
66939         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
66940         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
66941         (_jm_DECL_HEADERS): Define new function.
66942         (jm_CHECK_DECLARATIONS): Require it.
66943
66944 2000-01-22  Jim Meyering  <meyering@lucent.com>
66945
66946         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
66947         [! HAVE_DECL_STRTOULL]: Declare strtoull.
66948         Required for some AIX systems.  Reported by Christian Krackowizer.
66949         [TESTING] (main): New function.
66950
66951         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
66952         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
66953         letters.
66954
66955         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
66956         iswprint.
66957
66958         * lib/strverscmp.c (ISDIGIT): Define.
66959         (strverscmp): Use ISDIGIT, not isdigit.
66960
66961 2000-01-19  Jim Meyering  <meyering@lucent.com>
66962
66963         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
66964         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
66965         defines `struct timespec' in <sys/time.h>
66966
66967         * m4/c-bs-a.m4: Remove uses of changequote altogether.
66968         Thanks to Akim for explaining.
66969
66970 2000-01-17  Paul Eggert  <eggert@twinsun.com>
66971
66972         * lib/nanosleep.c (nanosleep):
66973         Don't use SA_INTERRUPT to decide whether to call sigaction, as
66974         POSIX.1 doesn't require SA_INTERRUPT and some systems
66975         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
66976         it's been part of POSIX.1 since day 1 (in 1988).
66977
66978 2000-01-17  Jim Meyering  <meyering@lucent.com>
66979
66980         * lib/interlock: Remove unused file.  Reported by François Pinard.
66981
66982 2000-01-16  Paul Eggert  <eggert@twinsun.com>
66983
66984         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
66985         alert, backslash, formfeed, and vertical tab unnecessarily in
66986         shell quoting style.
66987
66988 2000-01-16  Jim Meyering  <meyering@lucent.com>
66989
66990         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
66991         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
66992         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
66993         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
66994
66995 2000-01-16  Jim Meyering  <meyering@lucent.com>
66996
66997         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
66998         because the latter didn't work.
66999
67000 2000-01-15  Jim Meyering  <meyering@lucent.com>
67001
67002         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
67003         (AC_REPLACE_FUNCS): Add memcpy and memset.
67004         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
67005         Add strpbrk.
67006         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
67007
67008 2000-01-12  Jim Meyering  <meyering@lucent.com>
67009
67010         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
67011         (jm_PREREQ): Use it.
67012         (jm_PREREQ_READUTMP): New macro.
67013         (jm_PREREQ): Use it.
67014
67015 2000-01-11  Paul Eggert  <eggert@twinsun.com>
67016
67017         Quote multibyte characters correctly.
67018         * m4/c-bs-a.m4: New file.
67019         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
67020         (jm_PREREQ): Use it.
67021
67022 2000-01-11  Paul Eggert  <eggert@twinsun.com>
67023
67024         * m4/uintmax_t.m4: Port to autoconf 2.13.
67025
67026 2000-01-08  Jim Meyering  <meyering@ascend.com>
67027
67028         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
67029         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
67030
67031 2000-01-04  Jim Meyering  <meyering@ascend.com>
67032
67033         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
67034         jm_STRUCT_DIRENT_D_TYPE.
67035         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
67036         jm_STRUCT_DIRENT_D_INO.
67037         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
67038         jm_STRUCT_UTIMBUF.
67039         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
67040         renamings.
67041         * m4/utime.m4: Likewise.
67042
67043         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
67044         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
67045
67046 2000-01-03  Paul Eggert  <eggert@twinsun.com>
67047
67048         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
67049         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
67050
67051 2000-01-02  Jim Meyering  <meyering@ascend.com>
67052
67053         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
67054         remember if this is necessary.
67055
67056 1999-12-26  Jim Meyering  <meyering@ascend.com>
67057
67058         * m4/jm-macros.m4: Use it here.
67059         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
67060
67061 1999-12-23  Jim Meyering  <meyering@ascend.com>
67062
67063         * m4/jm-macros.m4: Check for clock_gettime (moved from
67064         fileutils/configure.in)
67065         Check for gettimeofday.
67066
67067 1999-12-20  Jim Meyering  <meyering@ascend.com>
67068
67069         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
67070         autoconf-2.14a-1999-12-20.
67071
67072 1999-12-19  Jim Meyering  <meyering@ascend.com>
67073
67074         * m4/lstat-slash.m4: New file.
67075         * m4/jm-macros.m4: Use the new macro:
67076         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67077
67078 1999-12-07  Jim Meyering  <meyering@ascend.com>
67079
67080         * m4/perl.m4: Require that File::Compare be available, too.
67081         Too many systems seem to lack it.
67082
67083         * m4/strftime.m4: Add checks for most of the cpp macros tested in
67084         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
67085
67086 1999-11-18  Paul Eggert  <eggert@twinsun.com>
67087
67088         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
67089         problem with the QNX 4.25 shell, which doesn't propagate exit
67090         status of failed commands inside shell assignments.
67091
67092 1999-11-17  Jim Meyering  <meyering@ascend.com>
67093
67094         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
67095
67096 1999-11-07  Jim Meyering  <meyering@ascend.com>
67097
67098         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
67099
67100 1999-11-06  Jim Meyering  <meyering@ascend.com>
67101
67102         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
67103         * m4/jm-macros.m4 (jm_MACROS): Use it here.
67104
67105 1999-11-05  Jim Meyering  <meyering@ascend.com>
67106
67107         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
67108         configure.in of textutils, fileutils, and sh-utils into this one
67109         (shared between those packages) file.
67110         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
67111         AC_STRUCT_ST_BLKSIZE.
67112
67113 1999-11-03  Jim Meyering  <meyering@ascend.com>
67114
67115         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
67116         of AC_CHECK_TYPE checks includes unistd.h.
67117         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
67118         Suggestion from Akim Demaille.
67119
67120 1999-10-30  Jim Meyering  <meyering@ascend.com>
67121
67122         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
67123         m4-quoted string.
67124         * m4/ls-mntd-fs.m4: Likewise.
67125         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
67126         * m4/jm-winsz1.m4: Likewise.
67127
67128         * m4/const.m4: Remove file, since the fix made it into the experimental
67129         version of autoconf.
67130         * m4/mktime.m4: Likewise.
67131
67132         * m4/check-type.m4: Remove file, now that the latest version of
67133         AC_CHECK_TYPE takes a third arg to specify additional #includes.
67134
67135         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
67136         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
67137         AC_CHECK_TYPE.
67138
67139 1999-10-04  Jim Meyering  <meyering@ascend.com>
67140
67141         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
67142
67143 1999-09-22  Paul Eggert  <eggert@twinsun.com>
67144
67145         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
67146         2.95.1 bug with HP-UX 10.20.
67147
67148 1999-09-17  Jim Meyering  <meyering@ascend.com>
67149
67150         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
67151         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
67152         due to missing strdup (against sh-utils-2.0).
67153
67154 1999-08-29  Jim Meyering  <meyering@ascend.com>
67155
67156         * m4/jm-macros.m4: Require jm_BISON.
67157         * m4/bison.m4: New file.
67158
67159 1999-08-17  Paul Eggert  <eggert@twinsun.com>
67160
67161         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
67162         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
67163
67164 1999-08-05  Jim Meyering  <meyering@ascend.com>
67165
67166         * m4/getline.m4: Rename test file from conftestdata to conftest.data
67167         to avoid conflicts with `conftest' on 8+3 filesystems.
67168         Suggestion from Eli Zaretskii.
67169
67170 1999-08-04  Jim Meyering  <meyering@ascend.com>
67171
67172         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
67173         fileutils and sh-utils (textutils's getline test was inadequate).
67174         (AM_FUNC_GETLINE): Run this test.
67175         (AC_CHECK_FUNCS): Check for getdelim.
67176         Reported by Bob Proulx.
67177
67178 1999-08-02  Jim Meyering  <meyering@ascend.com>
67179
67180         * m4/jm-macros.m4: Add a comment.
67181
67182 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67183
67184         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
67185         <inttypes.h> defines strtoumax as a macro (and not as a
67186         function).
67187
67188 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67189
67190         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
67191         that we can shift, multiply and divide unsigned long long
67192         values; Ultrix cc can't do it.
67193
67194 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67195
67196         * m4/mktime.m4: New file, which is a preview of what should appear
67197         in the next public autoconf release.
67198
67199 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67200
67201         * m4/lfs.m4: Remove this file.
67202         * m4/largefile.m4: New file.  It contains the old contents of
67203         lfs.m4, except that all names with prefix AC_LFS have been
67204         changed to use the prefix AC_SYS_LARGEFILE instead, to be
67205         compatible with future autoconf versions.  Also, some minor m4
67206         quoting problems have been fixed.
67207
67208 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67209
67210         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
67211         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
67212         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
67213         and simplify the shell code.
67214
67215 1999-08-01  Jim Meyering  <meyering@ascend.com>
67216
67217         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
67218         m4.
67219
67220 1999-07-20  Jim Meyering  <meyering@ascend.com>
67221
67222         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
67223
67224 1999-07-15  Jim Meyering  <meyering@ascend.com>
67225
67226         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
67227
67228 1999-05-22  Jim Meyering  <meyering@ascend.com>
67229
67230         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
67231
67232 1999-05-20  Jim Meyering  <meyering@ascend.com>
67233
67234         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
67235         Add a colon after each `then' in case $4 is empty.
67236
67237 1999-05-16  Jim Meyering  <meyering@ascend.com>
67238
67239         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
67240
67241 1999-05-10  Jim Meyering  <meyering@ascend.com>
67242
67243         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
67244
67245         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
67246         AC_FUNC_MKTIME.
67247
67248 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
67249
67250         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
67251
67252 1999-05-04  Paul Eggert  <eggert@twinsun.com>
67253
67254         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
67255         not CPPFLAGS, so that linking works correctly in IRIX.
67256
67257 1999-04-30  Paul Eggert  <eggert@twinsun.com>
67258
67259         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
67260
67261 1999-04-20  Paul Eggert  <eggert@twinsun.com>
67262
67263         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
67264         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
67265         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
67266         jm_AC_TYPE_UNSIGNED_LONG_LONG.
67267         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
67268
67269         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
67270
67271 1999-04-20  Jim Meyering  <meyering@ascend.com>
67272
67273         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
67274         AC_REPLACE xstroull if necessary.  From Paul Eggert.
67275         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
67276
67277 1999-04-18  Jim Meyering  <meyering@ascend.com>
67278
67279         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
67280         * m4/jm-macros.m4: Use it.
67281
67282 1999-04-06  Jim Meyering  <meyering@ascend.com>
67283
67284         * m4/strftime.m4: Remove test for %f.
67285
67286 1999-03-29  Jim Meyering  <meyering@ascend.com>
67287
67288         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
67289         superset of the AC_TYPE_* checks in the textutils, fileutils,
67290         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
67291         AC_TYPE_PID_T.
67292
67293 1999-03-28  Jim Meyering  <meyering@ascend.com>
67294
67295         * m4/jm-macros.m4: Define GNU_PACKAGE here.
67296         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
67297         replaced e.g., in the *.sh files of the sh-utils.
67298
67299 1999-03-20  Jim Meyering  <meyering@ascend.com>
67300
67301         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
67302         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
67303         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
67304
67305 1999-03-19  Jim Meyering  <meyering@ascend.com>
67306
67307         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
67308
67309 1999-03-12  Jim Meyering  <meyering@ascend.com>
67310
67311         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
67312
67313 1999-03-07  Jim Meyering  <meyering@ascend.com>
67314
67315         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
67316         declared.
67317
67318 1999-02-17  Jim Meyering  <meyering@ascend.com>
67319
67320         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
67321         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
67322
67323 1999-02-07  Jim Meyering  <meyering@ascend.com>
67324
67325         * m4/group-member.m4: New file -- extracted from sh-utils'
67326         configure.in.
67327
67328         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
67329         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
67330
67331 1999-02-06  Jim Meyering  <meyering@ascend.com>
67332
67333         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
67334         * m4/fnmatch.m4: Likewise.
67335         * m4/getgroups.m4: Likewise.
67336         * m4/lstat.m4: Likewise.
67337         * m4/malloc.m4: Likewise.
67338         * m4/putenv.m4: Likewise.
67339         * m4/realloc.m4: Likewise.
67340         * m4/regex.m4: Likewise.
67341         * m4/stat.m4: Likewise.
67342         * m4/strftime.m4: Likewise.
67343         Suggestion from Alain Magloire.
67344
67345         * m4/chown.m4: Use `.$ac_objext', not `.o'.
67346         * m4/fnmatch.m4: Likewise.
67347         * m4/getgroups.m4: Likewise.
67348         * m4/getline.m4: Likewise.
67349         * m4/lstat.m4: Likewise.
67350         * m4/malloc.m4: Likewise.
67351         * m4/memcmp.m4: Likewise.
67352         * m4/putenv.m4: Likewise.
67353         * m4/realloc.m4: Likewise.
67354         * m4/regex.m4: Likewise.
67355         * m4/stat.m4: Likewise.
67356         * m4/strftime.m4: Likewise.
67357         Suggestion from Alain Magloire.
67358
67359         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
67360         an argument.
67361
67362         * m4/regex.m4: Add a run-time Test for proper operation of
67363         re_compile_pattern.
67364
67365 1999-01-31  Jim Meyering  <meyering@ascend.com>
67366
67367         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
67368
67369 1999-01-30  Jim Meyering  <meyering@ascend.com>
67370
67371         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
67372
67373         * m4/jm-mktime.m4: Make this a wrapper around the official
67374         AM_FUNC_MKTIME rather than my private copy, now that the official one
67375         is up to date.
67376         * m4/mktime.m4: Remove file.
67377
67378         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
67379         * m4/uptime.m4: Likewise.
67380         * m4/uintmax_t.m4: Likewise.
67381
67382 1999-01-28  Jim Meyering  <meyering@ascend.com>
67383
67384         * m4/jm-macros.m4: Use jm_AFS.
67385         * m4/afs.m4: New file (from fileutils' configure.in).
67386
67387         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
67388         * m4/chown.m4: Likewise.
67389         * m4/d-ino.m4: Likewise.
67390         * m4/d-type.m4: Likewise.
67391         * m4/fnmatch.m4: Likewise.
67392         * m4/getgroups.m4: Likewise.
67393         * m4/gettext.m4: Likewise.
67394         * m4/jm-mktime.m4: Likewise.
67395         * m4/jm-winsz2.m4: Likewise.
67396         * m4/lcmessage.m4: Likewise.
67397         * m4/ls-mntd-fs.m4: Likewise.
67398         * m4/malloc.m4: Likewise.
67399         * m4/memcmp.m4: Likewise.
67400         * m4/putenv.m4: Likewise.
67401         * m4/realloc.m4: Likewise.
67402         * m4/st_mtim.m4: Likewise.
67403         * m4/strftime.m4: Likewise.
67404
67405 1999-01-16  Jim Meyering  <meyering@ascend.com>
67406
67407         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
67408         (ARGMATCH_DIE_DECL): Define.
67409
67410 1999-01-12  Jim Meyering  <meyering@ascend.com>
67411
67412         * m4/Makefile.am.in: Rewrite to avoid using fmt.
67413         Reported by Lars Hecking.
67414
67415 1999-01-10  Jim Meyering  <meyering@ascend.com>
67416
67417         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
67418         gross kludge.
67419         * m4/inttypes_h.m4: Likewise.
67420         * m4/lstat.m4: Likewise.
67421         * m4/malloc.m4: Likewise.
67422         * m4/readdir.m4: Likewise.
67423         * m4/realloc.m4: Likewise.
67424         * m4/st_dm_mode.m4: Likewise.
67425         * m4/stat.m4: Likewise.
67426         * m4/utimbuf.m4: Likewise.
67427         * m4/utimes.m4: Likewise.
67428
67429         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
67430         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
67431         comments in config.h.in are meaningful.
67432
67433         * m4/jm-macros.m4: Require autoconf-2.13 here.
67434
67435         * m4/regex.m4: By default, don't use the included regex.c on systems
67436         with glibc 2.  Suggestion from Uli Drepper.
67437
67438 1999-01-02  Jim Meyering  <meyering@ascend.com>
67439
67440         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
67441
67442 1998-12-18  Jim Meyering  <meyering@ascend.com>
67443
67444         * m4/Makefile.am.in (Makefile.am): Simplify rule.
67445         Based on a suggestion from Lars Hecking.
67446
67447 1998-11-16  Paul Eggert  <eggert@twinsun.com>
67448
67449         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
67450
67451 1998-11-16  Jim Meyering  <meyering@ascend.com>
67452
67453         * m4/lfs.m4: Double-quote the `uname...` expression.
67454
67455 1998-11-14  Jim Meyering  <meyering@ascend.com>
67456
67457         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
67458         * m4/stat.m4: Likewise.
67459
67460 1998-11-03  Jim Meyering  <meyering@ascend.com>
67461
67462         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
67463         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
67464
67465 1998-10-18  Jim Meyering  <meyering@ascend.com>
67466
67467         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
67468
67469 1998-10-17  Jim Meyering  <meyering@ascend.com>
67470
67471         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
67472         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
67473         calls for those previously hard-coded headers.  Instead, take a new
67474         parameter.
67475         (jm_CHECK_DECLARATIONS): Reflect interface change.
67476         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
67477         (jm_CHECK_DECL_LOCALTIME_R): New macro.
67478
67479         * m4/mktime.m4: Test for spring-forward gap before long-running test.
67480
67481 1998-10-14  Jim Meyering  <meyering@ascend.com>
67482
67483         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
67484         instead of "TZ=America/Vancouver".  From Paul Eggert.
67485
67486 1998-10-11  Jim Meyering  <meyering@ascend.com>
67487
67488         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
67489         This adds a test for a recently added compatibility fix for mktime.c.
67490         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
67491
67492 1998-09-27  Jim Meyering  <meyering@ascend.com>
67493
67494         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
67495
67496         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
67497         ../configure.in, including a change from Gordon Matzigkeit to allow
67498         cross-compiling for the Hurd.
67499
67500         * m4/glibc.m4: New file/macro to test for the GNU C Library
67501         versions 1 and 2.  From Gordon Matzigkeit.
67502         Indent.
67503
67504 1998-09-21  Jim Meyering  <meyering@ascend.com>
67505
67506         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
67507
67508 1998-08-18  Paul Eggert  <eggert@twinsun.com>
67509
67510         Port nanosecond-resolution times to UnixWare 2.1.2 and
67511         pedantic Solaris 2.6.
67512
67513         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
67514         AC_STRUCT_ST_MTIM.
67515         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
67516         Generate name of ns member, instead of just 1 or undef.
67517         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
67518
67519 1998-08-15  Jim Meyering  <meyering@ascend.com>
67520
67521         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
67522         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
67523         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
67524         instead of jm_TYPE_SSIZE_T.
67525
67526 1998-08-12  Jim Meyering  <meyering@ascend.com>
67527
67528         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
67529
67530 1998-08-02  Jim Meyering  <meyering@ascend.com>
67531
67532         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
67533         in acconfig.h manually.
67534
67535 1998-07-31  Paul Eggert  <eggert@twinsun.com>
67536
67537         * m4/st_mtim.m4: New file.
67538
67539 1998-07-28  Jim Meyering  <meyering@ascend.com>
67540
67541         * m4/utimes.m4: Undef stat.
67542
67543 1998-07-25  Jim Meyering  <meyering@ascend.com>
67544
67545         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
67546         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
67547
67548 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
67549
67550         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
67551         uid and gid actually remain unchanged.
67552
67553 1998-07-07  Jim Meyering  <meyering@ascend.com>
67554
67555         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
67556
67557 1998-07-04  Jim Meyering  <meyering@ascend.com>
67558
67559         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
67560         to prove that this macro can be used in packages without regex.c.
67561
67562 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
67563
67564         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
67565         is to be used.
67566
67567 1998-07-03  Jim Meyering  <meyering@ascend.com>
67568
67569         * m4/gettext.m4: Add -lintl if it's found to be necessary.
67570
67571         * m4/gettext.m4: New file -- from gettext-0.10.35.
67572         * m4/lcmessage.m4: Likewise.
67573         * m4/progtest.m4: Likewise.
67574
67575         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
67576         * m4/jm-macros.m4: Require the new macro.
67577
67578 1998-06-29  Jim Meyering  <meyering@ascend.com>
67579
67580         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
67581         for the definition of NGROUPS (used in a system header included
67582         by sys/mount.h).
67583
67584 1998-06-28  Jim Meyering  <meyering@ascend.com>
67585
67586         * m4/ls-mntd-fs.m4: New file.
67587         * m4/fstypename.m4: New file.
67588
67589         * m4/jm-macros.m4: Require the new macro.
67590         * m4/jm-glibc-io.m4: New file.
67591
67592 1998-05-19  Jim Meyering  <meyering@ascend.com>
67593
67594         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
67595         * m4/lchown.m4: New file.
67596
67597         * m4/Makefile.am.in: New file.
67598         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
67599
67600 1998-05-14  Jim Meyering  <meyering@ascend.com>
67601
67602         * m4/Makefile.am (EXTRA_DIST): Add them.
67603         * m4/jm-macros.m4: New file.
67604         * m4/utimbuf.m4: New file.
67605
67606 1998-05-12  Jim Meyering  <meyering@ascend.com>
67607
67608         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
67609
67610 1998-05-11  Jim Meyering  <meyering@ascend.com>
67611
67612         * m4/isc-posix.m4: New file.
67613
67614 1998-05-10  Jim Meyering  <meyering@ascend.com>
67615
67616         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
67617
67618 1998-05-09  Jim Meyering  <meyering@ascend.com>
67619
67620         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
67621         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
67622         with automake.
67623
67624         * m4/ssize_t.m4: New file.
67625         * m4/mktime.m4: Remove file -- the new automake has this now.
67626
67627 1998-04-26  Jim Meyering  <meyering@ascend.com>
67628
67629         * m4/assert.m4: New file.
67630         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
67631
67632 1998-04-05  Jim Meyering  <meyering@ascend.com>
67633
67634         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
67635         (jm_PREREQ): Use it here.
67636
67637 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
67638
67639         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
67640         in acconfig.h.
67641
67642 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
67643
67644         * m4/prereq.m4: New file.
67645         * m4/error.m4: New file.
67646         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
67647
67648 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
67649
67650         * m4/getline.m4: Don't set am_cv_func_working_getline before the
67651         cache-check for the same variable -- that defeated the purpose of
67652         the test; the test program was never run.  This was a problem only
67653         on systems with losing getline functions -- HP-UX 10.20 is one.
67654         Reported by Bjorn Helgaas.
67655
67656 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
67657
67658         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
67659
67660 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
67661
67662         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
67663
67664         * m4/const.m4: New file.  Use an initializer in this declaration
67665         typedef int charset[2]; const charset x;
67666         Reported by Bob Glickstein.
67667
67668 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
67669
67670         * m4/chown.m4: Fix reversed types on -1 args to chown.
67671         From Kaveh Ghazi.
67672
67673 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
67674
67675         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
67676         Add lseek and memchr.
67677
67678         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
67679         T.E.Dickey <dickey@clark.net> said that some older preprocessors
67680         have a 20-character limit on names.
67681
67682 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
67683
67684         * m4/inttypes_h.m4: New file.
67685         * m4/uintmax_t.m4: New file.
67686         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
67687
67688
67689         -----
67690
67691         Local Variables:
67692         coding: utf-8
67693         End:
67694
67695         Copyright (C) 1997-2010 Free Software Foundation, Inc.
67696
67697         Copying and distribution of this file, with or without
67698         modification, are permitted provided the copyright notice
67699         and this notice are preserved.