Relicense some modules under LGPLv2+, for libidn2.
[gnulib.git] / ChangeLog
1 2011-03-29  Bruno Haible  <bruno@clisp.org>
2
3         Relicense some modules under LGPLv2+, for libidn2.
4         * modules/array-mergesort (License): Change to LGPLv2+.
5         * modules/c-strcaseeq (License): Likewise.
6         * modules/striconveh (License): Likewise.
7         * modules/striconveha (License): Likewise.
8         * modules/uniconv/base (License): Likewise.
9         * modules/uniconv/u8-conv-from-enc (License): Likewise.
10         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
11         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12         * modules/unictype/base (License): Likewise.
13         * modules/unictype/bidiclass-of (License): Likewise.
14         * modules/unictype/category-M (License): Likewise.
15         * modules/unictype/category-none (License): Likewise.
16         * modules/unictype/category-of (License): Likewise.
17         * modules/unictype/category-test (License): Likewise.
18         * modules/unictype/category-test-withtable (License): Likewise.
19         * modules/unictype/combining-class (License): Likewise.
20         * modules/unictype/joiningtype-of (License): Likewise.
21         * modules/unictype/scripts (License): Likewise.
22         * modules/uninorm/base (License): Likewise.
23         * modules/uninorm/canonical-decomposition (License): Likewise.
24         * modules/uninorm/composition (License): Likewise.
25         * modules/uninorm/decompose-internal (License): Likewise.
26         * modules/uninorm/decomposition-table (License): Likewise.
27         * modules/uninorm/nfc (License): Likewise.
28         * modules/uninorm/nfd (License): Likewise.
29         * modules/uninorm/u32-normalize (License): Likewise.
30         * modules/unistr/base (License): Likewise.
31         * modules/unistr/u32-cpy (License): Likewise.
32         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
33         * modules/unistr/u32-to-u8 (License): Likewise.
34         * modules/unistr/u32-uctomb (License): Likewise.
35         * modules/unistr/u8-check (License): Likewise.
36         * modules/unistr/u8-mblen (License): Likewise.
37         * modules/unistr/u8-mbtouc (License): Likewise.
38         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
39         * modules/unistr/u8-mbtoucr (License): Likewise.
40         * modules/unistr/u8-prev (License): Likewise.
41         * modules/unistr/u8-strlen (License): Likewise.
42         * modules/unistr/u8-to-u32 (License): Likewise.
43         * modules/unistr/u8-uctomb (License): Likewise.
44         * modules/unitypes (License): Likewise.
45         Requested by Simon Josefsson.
46
47 2011-03-29  Simon Josefsson  <simon@josefsson.org>
48
49         lib-symbol-visibility: Add a notice.
50         * modules/lib-symbol-visibility (Notice): New field.
51
52 2011-03-29  Bruno Haible  <bruno@clisp.org>
53
54         getaddrinfo: Doc fix.
55         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
56         section "fixed in Gnulib".
57
58 2011-03-28  Simon Josefsson  <simon@josefsson.org>
59
60         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
61         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
62
63 2011-03-26  Bruno Haible  <bruno@clisp.org>
64
65         unictype/property-byname: Reduce the number of load-time relocations.
66         * lib/unictype/pr_byname.c: Include <stdlib.h>.
67         (UC_PROPERTY_INDEX_*): New enumeration values.
68         (uc_property_byname): Convert an index from the lookup table to an
69         uc_property_t.
70         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
71         values.
72
73 2011-03-26  Bruno Haible  <bruno@clisp.org>
74
75         unictype/property-byname: Allow omitted word separators and aliases.
76         * lib/unictype/pr_byname.gperf: Add property names without word
77         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
78         for 'space'.
79
80 2011-03-26  Bruno Haible  <bruno@clisp.org>
81
82         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
83         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
84         also hyphens to space.
85         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
86         without spaces.
87         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
88
89 2011-03-26  Bruno Haible  <bruno@clisp.org>
90
91         unictype/joiningtype-byname: Recognize long names as well.
92         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
93         a long name.
94         * lib/unictype/joiningtype_byname.c: Include <string.h>,
95         unictype/joiningtype_byname.h.
96         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
97         * lib/unictype/joiningtype_byname.gperf: New file.
98         * modules/unictype/joiningtype-byname (Files): Add
99         lib/unictype/joiningtype_byname.gperf.
100         (Depends-on): Add gperf.
101         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
102         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
103         long names.
104
105         Tests for module 'unictype/joiningtype-longname'.
106         * modules/unictype/joiningtype-longname-tests: New file.
107         * tests/unictype/test-joiningtype_longname.c: New file.
108
109         New module 'unictype/joiningtype-longname'.
110         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
111         * lib/unictype/joiningtype_longname.c: New file.
112         * modules/unictype/joiningtype-longname: New file.
113         * modules/unictype/joiningtype-all (Depends-on): Add
114         unictype/joiningtype-longname.
115
116 2011-03-26  Bruno Haible  <bruno@clisp.org>
117
118         unictype/bidiclass-byname: Recognize long names as well.
119         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
120         name.
121         * lib/unictype/bidi_byname.c: Include <string.h>,
122         unictype/bidi_byname.h.
123         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
124         * lib/unictype/bidi_byname.gperf: New file.
125         * modules/unictype/bidiclass-byname (Files): Add
126         lib/unictype/bidi_byname.gperf.
127         (Depends-on): Add gperf.
128         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
129         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
130         long names.
131
132         Tests for module 'unictype/bidiclass-longname'.
133         * modules/unictype/bidiclass-longname-tests: New file.
134         * tests/unictype/test-bidi_longname.c: New file.
135
136         New module 'unictype/bidiclass-longname'.
137         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
138         * lib/unictype/bidi_longname.c: New file.
139         * modules/unictype/bidiclass-longname: New file.
140         * modules/unictype/bidiclass-all (Depends-on): Add
141         unictype/bidiclass-longname.
142
143 2011-03-26  Bruno Haible  <bruno@clisp.org>
144
145         unictype/bidi*: Rename modules.
146         * modules/unictype/bidiclass-all: Renamed from
147         modules/unictype/bidicategory-all.
148         * modules/unictype/bidiclass-name: Renamed from
149         modules/unictype/bidiclass-name.
150         (Description): Update.
151         * modules/unictype/bidiclass-name-tests: Renamed from
152         modules/unictype/bidicategory-name-tests.
153         * modules/unictype/bidiclass-byname: Renamed from
154         modules/unictype/bidicategory-byname.
155         (Description): Update.
156         * modules/unictype/bidiclass-byname-tests: Renamed from
157         modules/unictype/bidicategory-byname-tests.
158         * modules/unictype/bidiclass-of: Renamed from
159         modules/unictype/bidicategory-of.
160         (Description): Update.
161         * modules/unictype/bidiclass-of-tests: Renamed from
162         modules/unictype/bidicategory-of-tests.
163         * modules/unictype/bidiclass-test: Renamed from
164         modules/unictype/bidicategory-test.
165         (Description): Update.
166         * modules/unictype/bidiclass-test-tests: Renamed from
167         modules/unictype/bidicategory-test-tests.
168         * modules/unictype/bidicategory-all: New file, a simple redirection.
169         * modules/unictype/bidicategory-name: Likewise.
170         * modules/unictype/bidicategory-byname: Likewise.
171         * modules/unictype/bidicategory-of: Likewise.
172         * modules/unictype/bidicategory-test: Likewise.
173         * modules/unictype/property-bidi-* (Dependencies): Update.
174         * lib/unictype/bidi_*.c: Update comment.
175
176 2011-03-26  Bruno Haible  <bruno@clisp.org>
177
178         unictype/bidi*: Rename functions, part 2.
179         * modules/unictype/bidicategory-name (configure.ac): Update required
180         libunistring version.
181         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
182
183 2011-03-25  Bruno Haible  <bruno@clisp.org>
184
185         New module 'unictype/combining-class-all'.
186         * modules/unictype/combining-class-all: New file.
187
188         Tests for module 'unictype/combining-class-byname'.
189         * modules/unictype/combining-class-byname-tests: New file.
190         * tests/unictype/test-combiningclass_byname.c: New file.
191
192         New module 'unictype/combining-class-byname'.
193         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
194         * lib/unictype/combiningclass_byname.c: New file.
195         * lib/unictype/combiningclass_byname.gperf: New file.
196         * modules/unictype/combining-class-byname: New file.
197
198         Tests for module 'unictype/combining-class-longname'.
199         * modules/unictype/combining-class-longname-tests: New file.
200         * tests/unictype/test-combiningclass_longname.c: New file.
201
202         New module 'unictype/combining-class-longname'.
203         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
204         * lib/unictype/combiningclass_longname.c: New file.
205         * modules/unictype/combining-class-longname: New file.
206
207         Tests for module 'unictype/combining-class-name'.
208         * modules/unictype/combining-class-name-tests: New file.
209         * tests/unictype/test-combiningclass_name.c: New file.
210
211         New module 'unictype/combining-class-name'.
212         * lib/unictype.in.h (uc_combining_class_name): New declaration.
213         * lib/unictype/combiningclass_name.c: New file.
214         * modules/unictype/combining-class-name: New file.
215
216 2011-03-25  Bruno Haible  <bruno@clisp.org>
217
218         unictype/combining-class: Rename source files.
219         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
220         of unictype/combining.h.
221         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
222         Update.
223         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
224         * modules/unictype/combining-class (Description): Fix.
225         (Files, Makefile.am): Update.
226         * tests/unictype/test-combiningclass.c: Renamed from
227         tests/unictype/test-combining.c.
228         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
229
230 2011-03-25  Bruno Haible  <bruno@clisp.org>
231
232         unictype: Update list of canonical combining classes.
233         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
234
235 2011-03-25  Bruno Haible  <bruno@clisp.org>
236
237         unictype/category-byname: Recognize long names as well.
238         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
239         a long name.
240         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
241         unictype/categ_byname.h.
242         (UC_CATEGORY_INDEX_*): New enumeration values.
243         (uc_general_category_byname): Use uc_general_category_lookup and
244         convert from index to value.
245         * lib/unictype/categ_byname.gperf: New file.
246         * modules/unictype/category-byname (Files): Add
247         lib/unictype/categ_byname.gperf.
248         (Depends-on): Add gperf.
249         (Makefile.am): Add rule for generating unictype/categ_byname.h.
250         * tests/unictype/test-categ_byname.c (main): Test the recognition of
251         long names.
252
253         Tests for module 'unictype/category-longname'.
254         * modules/unictype/category-longname-tests: New file.
255         * tests/unictype/test-categ_longname.c: New file.
256
257         New module 'unictype/category-longname'.
258         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
259         * lib/unictype/categ_longname.c: New file.
260         * modules/unictype/category-longname: New file.
261         * modules/unictype/category-all (Depends-on): Add it.
262
263 2011-03-25  Bruno Haible  <bruno@clisp.org>
264
265         Tests for module 'unictype/category-LC'.
266         * modules/unictype/category-LC-tests: New file.
267         * tests/unictype/test-categ_LC.c: New file, automatically generated.
268
269         New module 'unictype/category-LC'.
270         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
271         (UC_CATEGORY_LC): New declaration.
272         (UC_CASED_LETTER): New macro.
273         * lib/gen-uni-tables.c (is_category_LC): New function.
274         (output_categories): Also handle category LC.
275         (UC_CATEGORY_MASK_LC): New enumeration value.
276         (general_category_byname): Also handle category LC.
277         * lib/unictype/categ_LC.c: New file.
278         * lib/unictype/categ_LC.h: New file, automatically generated.
279         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
280         category LC.
281         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
282         * modules/unictype/category-LC: New file.
283         * modules/unictype/category-byname (Depends-on): Add
284         unictype/category-LC.
285         * modules/unictype/category-all (Depends-on): Likewise.
286
287 2011-03-25  Eric Blake  <eblake@redhat.com>
288
289         xmalloc: revert yesterday's regression
290         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
291         realloc's underlying behavior (allowing allocation of zero-size
292         objects, especially if malloc-gnu is also in use).
293
294 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
295
296         maint.mk: add missing version to VC-tag
297         * top/maint.mk: git tag was missing actual tag name; add it.
298
299         valgrind: do leak checking, and exit with code 1 on error (not 0)
300         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
301         to VALGRIND.
302
303 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
304
305         posix-modules: say what it does.
306         * posix-modules: Add a line to the --help output saying what it does.
307
308 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
309
310         xmalloc: Do not leak if underlying realloc is C99 compatible.
311         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
312         This avoids a leak on C99-based systems.  See
313         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
314
315 2011-03-24  Eric Blake  <eblake@redhat.com>
316
317         realloc: document portability problem
318         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
319         passing 0 size to realloc.
320
321 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
322
323         doc: update users.txt
324         * users.txt: Add cvsps, tmpwatch
325
326 2011-03-23  Matt Rice  <ratmice@gmail.com>
327
328         doc: update users.txt
329         * users.txt: Add gdb.
330
331 2011-03-23  Jim Meyering  <meyering@redhat.com>
332
333         doc: update users.txt
334         Looking through matches up to the following URL (there are still
335         several more pages), I found several projects that use gnulib:
336         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
337         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
338         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
339
340 2011-03-22  Bruno Haible  <bruno@clisp.org>
341
342         unictype/bidi*: Rename functions.
343         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
344         uc_bidi_class, uc_is_bidi_class): New declarations.
345         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
346         uc_bidi_category_byname.
347         (uc_bidi_category_byname): New function.
348         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
349         u_bidi_category_name.
350         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
351         (uc_bidi_category_name): New function.
352         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
353         uc_bidi_category.
354         (uc_bidi_category): New function.
355         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
356         uc_is_bidi_category. Invoke uc_bidi_class.
357         (uc_is_bidi_category): New function.
358         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
359         instead of uc_bidi_category_byname.
360         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
361         instead of uc_bidi_category_name.
362         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
363         uc_bidi_category.
364         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
365         instead of uc_is_bidi_category.
366
367 2011-03-21  Bruno Haible  <bruno@clisp.org>
368
369         New module 'unictype/joininggroup-all'.
370         * modules/unictype/joininggroup-all: New file.
371
372         Tests for module 'unictype/joininggroup-of'.
373         * modules/unictype/joininggroup-of-tests: New file.
374         * tests/unictype/test-joininggroup_of.c: New file.
375         * tests/unictype/test-joininggroup_of.h: New file, automatically
376         generated by gen-uni-tables.
377
378         New module 'unictype/joininggroup-of'.
379         * modules/unictype/joininggroup-of: New file.
380         * lib/unictype/joininggroup_of.c: New file.
381         * lib/unictype/joininggroup_of.h: New file, automatically generated by
382         gen-uni-tables.
383
384         Tests for module 'unictype/joininggroup-byname'.
385         * modules/unictype/joininggroup-byname-tests: New file.
386         * tests/unictype/test-joininggroup_byname.c: New file.
387
388         New module 'unictype/joininggroup-byname'.
389         * modules/unictype/joininggroup-byname: New file.
390         * lib/unictype/joininggroup_byname.c: New file.
391         * lib/unictype/joininggroup_byname.gperf: New file.
392
393         Tests for module 'unictype/joininggroup-name'.
394         * modules/unictype/joininggroup-name-tests: New file.
395         * tests/unictype/test-joininggroup_name.c: New file.
396
397         New module 'unictype/joininggroup-name'.
398         * modules/unictype/joininggroup-name: New file.
399         * lib/unictype/joininggroup_name.c: New file.
400         * lib/unictype/joininggroup_name.h: New file.
401
402         New module 'unictype/joiningtype-all'.
403         * modules/unictype/joiningtype-all: New file.
404
405         Tests for module 'unictype/joiningtype-of'.
406         * modules/unictype/joiningtype-of-tests: New file.
407         * tests/unictype/test-joiningtype_of.c: New file.
408         * tests/unictype/test-joiningtype_of.h: New file, automatically
409         generated by gen-uni-tables.
410
411         New module 'unictype/joiningtype-of'.
412         * modules/unictype/joiningtype-of: New file.
413         * lib/unictype/joiningtype_of.c: New file.
414         * lib/unictype/joiningtype_of.h: New file, automatically generated by
415         gen-uni-tables.
416
417         Tests for module 'unictype/joiningtype-byname'.
418         * modules/unictype/joiningtype-byname-tests: New file.
419         * tests/unictype/test-joiningtype_byname.c: New file.
420
421         New module 'unictype/joiningtype-byname'.
422         * modules/unictype/joiningtype-byname: New file.
423         * lib/unictype/joiningtype_byname.c: New file.
424
425         Tests for module 'unictype/joiningtype-name'.
426         * modules/unictype/joiningtype-name-tests: New file.
427         * tests/unictype/test-joiningtype_name.c: New file.
428
429         New module 'unictype/joiningtype-name'.
430         * modules/unictype/joiningtype-name: New file.
431         * lib/unictype/joiningtype_name.c: New file.
432
433         unictype: Add support for Arabic shaping properties.
434         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
435         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
436         declarations.
437         (UC_JOINING_GROUP_*): New enumeration values.
438         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
439         declarations.
440         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
441         (unicode_joining_type): New variable.
442         (UC_JOINING_GROUP_*): New enumeration values.
443         (unicode_joining_group): New variable.
444         (fill_arabicshaping, joining_type_as_c_identifier,
445         output_joining_type_test, output_joining_type,
446         joining_group_as_c_identifier, output_joining_group_test,
447         output_joining_group): New functions.
448         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
449         fill_arabicshaping and output_joining_type_test, output_joining_type,
450         output_joining_group_test, output_joining_group.
451         Reported by Simon Josefsson.
452
453 2011-03-21  Jim Meyering  <meyering@redhat.com>
454
455         strftime: fix a bug in yesterday's change
456         * lib/strftime.c (add): Accommodate width's initial value of -1.
457         Otherwise, nstrftime would copy uninitialized data into
458         the result buffer.
459
460 2011-03-21  Jim Meyering  <meyering@redhat.com>
461
462         tests: add strftime-tests module
463         * tests/test-strftime.c: New file.
464         * modules/strftime-tests: New module.
465
466 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
467
468         strftime: don't assume a byte count fits in 'int'
469         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
470         found this problem by static analysis, using gcc -Wstrict-overflow
471         (GCC 4.5.2, x86-64).  This reported an optimization that depended
472         on an integer overflow having undefined behavior, but it turns out
473         that the argument is a size, which might not fit in 'int' anyway,
474
475 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
476
477         stdio: don't require ignore_value around fwrite
478
479         This patch works around libc bug 11959
480         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
481         Without this patch, applications must often write
482         ignore_value (fwrite (...)) even though the ignore_value is
483         not helpful here.  It's common to write many objects, using
484         fwrite/printf/etc., and then use ferror to detect output error.
485
486         I considered making this patch optional, but decided against it,
487         because libc is obviously being inconsistent here: there is no
488         reason libc should insist that user code must inspect fwrite
489         return's value without also insisting that it inspect printf's,
490         putchar's, etc.  If user code wants to have a strict style where
491         all these functions' values are checked (so that ferror need not
492         be checked), we could add support for that style in a new gnulib
493         module, but in the meantime it's better to be consistent and to
494         support common usage.
495
496         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
497         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
498         that we are compiling in checking mode, and if not C++, and
499         if not already wrapping fwrite for some other reason.
500         (fwrite): #define to rpl_fwrite if the latter is defined.
501
502 2011-03-20  Bruno Haible  <bruno@clisp.org>
503
504         verror: Fix compilation error introduced on 2011-02-13.
505         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
506         instead of __attribute__.
507         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
508
509 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
510             Bruno Haible  <bruno@clisp.org>
511
512         socklen: do not depend on sys_socket
513         While trying to modify Emacs to use gnulib's socklen module,
514         I discovered a circular dependency: socklen depends on sys_socket
515         and vice versa.  Emacs can use socklen, but it does not need
516         sys_socket because it has its own substitute for sys/socket.h.
517         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
518         gl_TYPE_SOCKLEN_T.
519         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
520         gl_PREREQ_SYS_H_SOCKET.
521         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
522         gl_PREREQ_SYS_H_SOCKET.
523         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
524         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
525         * modules/socklen (Depends-on): Do not depend on sys_socket.
526         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
527
528 2011-03-20  Jim Meyering  <meyering@redhat.com>
529
530         maint.mk: sort file names *after* new transformation
531         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
532         prefix would have led to an unwarranted failure in GNU parted.
533         Sort after that transformation.
534
535 2011-03-19  Jim Meyering  <meyering@redhat.com>
536
537         maint.mk: fix po-file syntax-check rule
538         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
539         Patch by Bruno Haible.
540
541 2011-03-19  Bruno Haible  <bruno@clisp.org>
542
543         socklen: Update comment.
544         * m4/socklen.m4: Update comment about platforms.
545
546 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
547             Bruno Haible  <bruno@clisp.org>
548
549         inet_ntop, inet_pton: Simplify.
550         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
551         documented to provide socklen_t and we already depend on sys_socket.
552         * modules/inet_pton (Depends-on): Likewise.
553         * lib/arpa_inet.in.h: Adjust comment.
554
555 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
556             Bruno Haible  <bruno@clisp.org>
557
558         netdb: Simplify.
559         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
560         documented to provide socklen_t and we already depend on sys_socket.
561         * lib/netdb.in.h: Adjust comment.
562
563 2011-03-19  Bruno Haible  <bruno@clisp.org>
564
565         sys_socket, netdb: Document problem with socklen_t.
566         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
567         platforms.
568         * doc/posix-headers/netdb.texi: Likewise.
569
570 2011-03-18  Eric Blake  <eblake@redhat.com>
571
572         maint.mk: let po check work in VPATH build
573         * top/maint.mk (po_file): Allow cfg.mk override.
574         (sc_po_check): Allow VPATH use.
575         Reported by Jiri Denemark.
576
577 2011-03-16  Jim Meyering  <meyering@redhat.com>
578
579         maint.mk: allow fine-grained syntax-check exclusion via Make variables
580         Before, you would have had to create one .x-sc_ file per rule in order
581         to exempt offending files.  Now, you may instead use a Make variable --
582         usually defined in cfg.mk -- whose name identifies the affected rule.
583         * top/maint.mk (_sc_excl): Define.
584         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
585         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
586
587 2011-03-13  Bruno Haible  <bruno@clisp.org>
588
589         ignore-value tests: Avoid warnings.
590         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
591         empty for gcc < 3.4.
592
593 2011-03-13  Bruno Haible  <bruno@clisp.org>
594
595         passfd: Fix link error on Solaris.
596         * modules/passfd (Description): Correct.
597         (Depends-on): Add socketlib.
598         (Link): New section.
599         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
600
601 2011-03-13  Bruno Haible  <bruno@clisp.org>
602
603         passfd: Fix link error on AIX 5.2.
604         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
605
606 2011-03-13  Bruno Haible  <bruno@clisp.org>
607
608         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
609         * lib/sys_socket.in.h: Include <stddef.h>.
610         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
611         CMSG_FIRSTHDR. Remove unused variable.
612
613 2011-03-13  Bruno Haible  <bruno@clisp.org>
614
615         passfd: Fix compilation error on OpenBSD.
616         * lib/passfd.c: Include <sys/uio.h>.
617
618 2011-03-13  Bruno Haible  <bruno@clisp.org>
619
620         passfd test: Fix warnings.
621         * tests/test-passfd.c: Include <sys/wait.h>.
622         (main): Fix typo.
623
624 2011-03-13  Bruno Haible  <bruno@clisp.org>
625
626         passfd module, part 4, tweaks.
627         * tests/test-passfd.c: Reorder includes.
628         (main): Fix perror and printf calls.
629
630 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
631
632         passfd module, part 4.
633         * modules/passfd-tests: New file.
634         * tests/test-passfd.c: New file.
635
636 2011-03-13  Jim Meyering  <meyering@redhat.com>
637
638         Makefile: rely on GNU make; derive syntax-check rule names
639         Rather than requiring that each sc_ rule be listed as a dependent
640         of "check", use features of GNU make to derive the list.
641         * Makefile (syntax-check-rules): Define.
642         (check): Depend on the new variable, not the hard-coded list.
643
644 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
645             Bruno Haible  <bruno@clisp.org>
646
647         passfd module, part 3.
648         * lib/passfd.h (recvfd): Add a flags argument.
649         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
650         (recvfd): Add a flags argument.
651         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
652         exists.
653         * modules/passfd (Depends-on): Add cloexec.
654         Suggested by Eric Blake.
655
656 2011-03-13  Bruno Haible  <bruno@clisp.org>
657
658         passfd module, part 2, tweaks.
659         * modules/passfd (Files): Reorder.
660         (Depends-on): Remove errno.
661         (Include): Remove <sys/socket.h>, <sys/un.h>.
662         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
663         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
664         specification header. Include <sys/socket.h> always. Don't include
665         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
666         (sendfd): Clarify that it sets errno when it fails.
667         (recvfd): Fix specification.
668
669 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
670
671         passfd module, part 2.
672         * modules/passfd: New file.
673         * lib/passfd.h: New file.
674         * lib/passfd.c: New file.
675
676 2011-03-12  Bruno Haible  <bruno@clisp.org>
677
678         wcswidth, mbswidth: Avoid integer overflow.
679         * lib/wcswidth.c: Include <limits.h>.
680         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
681         * lib/mbswidth.c: Include <limits.h>.
682         (mbsnwidth): Avoid 'int' overflow.
683         Reported by Jim Meyering.
684
685 2011-03-12  Bruno Haible  <bruno@clisp.org>
686
687         futimens, utimensat: Avoid endless recursion on Solaris 10.
688         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
689         Solaris.
690         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
691         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
692
693 2011-03-11  Jim Meyering  <meyering@redhat.com>
694
695         maint.mk: relax a regexp to accommodate other formatting styles
696         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
697         between "ngettext" and the following "(".
698
699 2011-03-11  Pádraig Brady <P@draigBrady.com>
700
701         maint.mk: suppress a false positive warning
702         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
703         diagnostics are marked with ngettext.
704
705 2011-03-10  Eric Blake  <eblake@redhat.com>
706
707         wchar: add explicit dependencies, for Tru64
708         * modules/mbmemcasecoll (Depends-on): Add wchar.
709         * modules/mbtowc (Depends-on): Likewise.
710         * modules/vasnprintf (Depends-on): Likewise.
711         * modules/unistdio/u-printf-args (Depends-on): Likewise.
712         * modules/wctomb (Depends-on): Likewise.
713         Reported by Peter O'Gorman.
714
715 2011-03-08  Bruno Haible  <bruno@clisp.org>
716
717         passfd module, part 1, tweaks.
718         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
719         Improve indentation. Improve AC_MSG_CHECKING messages.
720         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
721         gl_SOCKET_FAMILIES.
722
723 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
724
725         passfd module, part 1.
726         * m4/afunix.m4: New file.
727         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
728         sockets.
729
730 2011-03-08  Bruno Haible  <bruno@clisp.org>
731
732         regex-quote: New API.
733         * lib/regex-quote.h: Include <stdbool.h>.
734         (struct regex_quote_spec): New type.
735         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
736         New declarations.
737         (regex_quote_length, regex_quote_copy, regex_quote): Take a
738         'const struct regex_quote_spec *' argument.
739         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
740         (pcre_special): New constant.
741         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
742         New functions.
743         (regex_quote_length, regex_quote_copy, regex_quote): Take a
744         'const struct regex_quote_spec *' argument.
745         * modules/regex-quote (Depends-on): Add stdbool.
746         * tests/test-regex-quote.c (check): Update for new API. Add test for
747         anchored results.
748         * NEWS: Mention the API change.
749         Reported by Reuben Thomas and Eric Blake.
750
751 2011-03-06  Bruno Haible  <bruno@clisp.org>
752
753         regex-quote: Fix creation of POSIX extended regular expressions.
754         * lib/regex-quote.c (ere_special): Add grouping and alternation
755         operators.
756
757 2011-03-05  Bruno Haible  <bruno@clisp.org>
758
759         doc: Improve doc regarding autopoint vs. gnulib.
760         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
761         disable autopoint while running autoreconf.
762         Suggested by Ralf Wildenhues.
763
764 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
765
766         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
767         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
768
769 2011-03-03  Bruce Korb  <bkorb@gnu.org>
770
771         parse-duration: remove xalloc.h dependency
772         * lib/parse-duration.c (parse_period): handle NULL return from
773         strdup instead of calling xstrdup().
774         * modules/parse-duration: remove "xalloc" dependency
775
776 2011-03-03  Matthew Booth  <mbooth@redhat.com>
777
778         bootstrap: honor m4_base when running aclocal
779         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
780
781 2011-03-02  Jim Meyering  <meyering@redhat.com>
782
783         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
784         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
785         on request from Matt Booth.
786
787 2011-03-01  Eric Blake  <eblake@redhat.com>
788
789         test-link: work on Hurd
790         * tests/test-link.h (test_link): Hurd rejects linking directories
791         with EISDIR instead of the POSIX-mandated EPERM.
792
793 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
794
795         stdio: simplify by moving files to printf-posix, sigpipe
796         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
797         since this symbol is needed only if printf is replaced.
798         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
799         Require gl_ASM_SYMBOL_PREFIX.
800         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
801         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
802         (Depends-on): Add 'raise'.
803         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
804         * modules/stdio (Files): Remove lib/stdio-write.c,
805         m4/asm-underscore.m4.
806         (Depends-on): Remove 'raise'.
807
808         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
809         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
810         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
811         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
812
813 2011-02-28  Bruno Haible  <bruno@clisp.org>
814
815         localcharset: Assume ANSI C behaviour of free().
816         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
817         calling free().
818         Suggested by Simon Josefsson <simon@josefsson.org>.
819
820 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
821             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
822             Bruno Haible  <bruno@clisp.org>  (tiny change)
823
824         On Cygwin, use /proc file system instead of win32 API.
825         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
826         Win32 file names.
827         (DllMain): Simplify by removing Cygwin specific code.
828         (find_shared_library_fullname): Use Linux specific implementation also
829         for Cygwin.
830         (get_shared_library_fullname): Update accordingly.
831         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
832         Win32 file names.
833         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
834         Cygwin specific code.
835
836 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
837             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
838
839         Fix OpenMP flag detection for various Fortran compilers.
840         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
841         OpenMP-conditional compilation construct, to force compile
842         failure with missing OpenMP flag.
843         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
844
845 2011-02-25  Eric Blake  <eblake@redhat.com>
846
847         strstr: expand test coverage
848         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
849         compilation.
850         * tests/test-memmem.c (main): Duplicate tests.
851         * tests/test-strcasestr.c (main): Likewise.
852         * tests/test-c-strcasestr.c (main): Likewise.
853
854 2011-02-25  Jim Meyering  <meyering@redhat.com>
855
856         maint.mk: detect missing-NL-at-EOF, too
857         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
858         it also detects when a file lacks a newline at EOF.
859         (require_exactly_one_NL_at_EOF_): Renamed from
860         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
861         since people may well have .x-sc_... file names tied to the
862         existing name.  Suggested by Eric Blake.
863
864 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
865
866         dirname: move m4/dos.m4 functionality into lib/dosname.h
867
868         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
869         extracts symbols from it, puts them into config.h; but it's much
870         easier to use the symbols directly.  filename.h already does this,
871         but it disagrees with dos.m4 in some respects.  This patch
872         introduces a different include file dosname.h that packages up
873         dos.m4, and then later we can work on merging filename.h and
874         dosname.h.  Applications that need only the easy-to-configure
875         symbols should consider including dosname.h rather than dirname.h.
876         * NEWS: Mention incompatible changes.
877         * m4/dos.m4: Remove.
878         * lib/dosname.h, modules/dosname: New files.
879         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
880         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
881         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
882         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
883         Include dosname.h, not dirname.h.
884         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
885         Include dosname.h, for definitions of symbols like ISSLASH
886         that used to be in config.h.
887         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
888         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
889         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
890         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
891         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
892         * modules/rmdir (Files): Likewise.
893         * modules/stat (Files): Likewise.
894         * modules/unlink (Files): Likewise.
895         * modules/dirname-lgpl (Depends-on): Add dosname.
896         * modules/lstat (Depends-on): Likewise.
897         * modules/openat (Depends-on): Likewise.
898         * modules/rmdir (Depends-on): Likewise.
899         * modules/savewd (Depends-on): Likewise.
900         * modules/stat (Depends-on): Likewise.
901         * modules/unlink (Depends-on): Likewise.
902         * modules/openat (Depends-on): Remove dirname-lgpl.
903         * modules/savewd (Depends-on): Likewise.
904         * tests/test-dirname.c: Do not use removed symbols like
905         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
906         the remaining symbols, e.g., ISSLASH ('\\').
907
908 2011-02-25  Eric Blake  <eblake@redhat.com>
909
910         strstr: revert patches that introduced bug and pessimization
911         * lib/str-two-way.h: Add another reference.
912         (two_way_short_needle, two_way_long_needle): Revert changes from
913         2011-02-24; they pessimize search speed.
914         (critical_factorization): Partially revert changes from
915         2010-06-22; they violate the requirement that the left half of the
916         needle be smaller than the period of the needle.
917
918 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
919
920         filenamecat: remove unnecessary dependency on dirname-lgpl
921         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
922         is no direct dependency, just an indirect one via filenamecat-lgpl.
923
924         remove: remove unnecessary use of m4/dos.m4
925         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
926         * modules/remove (FILES): Remove m4/dos.m4.
927
928         * lib/openat-proc.c: Don't include dirname.h; not needed.
929
930         backupfile: remove unnecessary use of m4/dos.m4
931         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
932         of its symbols are used by the backupfile code.  backupfile.c does
933         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
934         for the rare case of programs that want all their backup file
935         names to live within 8+3 limits, and dos.m4 doesn't address that.
936         * modules/backupfile (Files): Remove m4/dos.m4.
937
938 2011-02-24  Jim Meyering  <meyering@redhat.com>
939
940         strstr: fix a bug whereby strstr would mistakenly return NULL
941         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
942         in period calculation.
943         (two_way_long_needle): Likewise.
944         The original problem was reported by Mike Stump in
945         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
946         Ralf Wildenhues provided the short needle and haystack.
947         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
948         Add a more involved test to trigger the bug in two_way_long_needle.
949
950 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
951
952         gnulib-tool: remove use of bold display in help screen
953         * gnulib-tool (func_usage): Do not use bold display anymore in the
954         help screen.  That was just meant to be a temporary emphasis for a
955         backward-incompatible change.
956
957 2011-02-23  Bruno Haible  <bruno@clisp.org>
958
959         Fix misindentation of preprocessor directives.
960         * lib/argp-namefrob.h: Reindent preprocessor directives.
961         * lib/getopt_int.h (struct _getopt_data): Likewise.
962         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
963         * lib/vasnprintf.c (decode_long_double): Likewise.
964         * tests/test-argmatch.c: Insert blank lines, for clarity.
965         * tests/test-exclude.c: Likewise.
966
967 2011-02-22  Bruno Haible  <bruno@clisp.org>
968
969         ioctl: Fix for MacOS X in 64-bit mode.
970         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
971         value.
972         Suggested by Eric Blake.
973         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
974
975 2011-02-22  Jim Meyering  <meyering@redhat.com>
976
977         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
978         * Makefile (sc_cpp_indent_check): Don't limit the check to files
979         in lib/.
980
981 2011-02-22  Eric Blake  <eblake@redhat.com>
982
983         maint: avoid any CDPATH issue
984         * Makefile (sc_cpp_indent_check): Anchor cd argument.
985
986         maint: adjust cpp indentation for my modules, as well
987         * Makefile (sc_cpp_indent_check): Add my name.
988         * lib/fbufmode.c: Filter through cppi.
989         * lib/fpurge.c: Likewise.
990         * lib/freadable.c: Likewise.
991         * lib/freading.c: Likewise.
992         * lib/fwritable.c: Likewise.
993         * lib/fwriting.c: Likewise.
994         * lib/sigaction.c: Likewise.
995
996 2011-02-22  Jim Meyering  <meyering@redhat.com>
997
998         maint: adjust cpp indentation to reflect nesting depth
999         I.e., in a block of code that begins with an unnested "#if",
1000         put one space between the "#" in column 1 and following token.
1001         For example,
1002         -#include <sys/vfs.h>
1003         +# include <sys/vfs.h>
1004         Do this only in .c files that are part of a module I maintain.
1005         * lib/linkat.c: Filter through cppi.
1006         * lib/nanosleep.c: Likewise.
1007         * lib/openat.c: Likewise.
1008         * lib/openat-die.c: Likewise.
1009         * lib/dup3.c: Likewise.
1010         * lib/fchownat.c: Likewise.
1011         * lib/flock.c: Likewise.
1012         * lib/fsync.c: Likewise.
1013         * lib/fts.c: Likewise.
1014         * lib/getpass.c: Likewise.
1015         * lib/gettimeofday.c: Likewise.
1016         * lib/userspec.c: Likewise.
1017         * Makefile (sc_cpp_indent_check): New rule, to check this.
1018
1019 2011-02-22  Bruno Haible  <bruno@clisp.org>
1020
1021         New module 'wctomb'.
1022         * lib/stdlib.in.h (wctomb): New declaration.
1023         * lib/wctomb.c: New file.
1024         * lib/wctomb-impl.h: New file.
1025         * m4/wctomb.m4: New file.
1026         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
1027         REPLACE_WCTOMB.
1028         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
1029         REPLACE_WCTOMB.
1030         * modules/wctomb: New file.
1031         * tests/test-stdlib-c++.cc: Test signature of wctomb.
1032         * doc/posix-functions/wctomb.texi: Mention the new module.
1033         * modules/wctob (Depends-on): Add wctomb.
1034
1035 2011-02-22  Bruno Haible  <bruno@clisp.org>
1036
1037         New module 'mbtowc'.
1038         * lib/stdlib.in.h (mbtowc): New declaration.
1039         * lib/mbtowc.c: New file.
1040         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
1041         * m4/mbtowc.m4: New file.
1042         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
1043         REPLACE_MBTOWC.
1044         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
1045         REPLACE_MBTOWC.
1046         * modules/mbtowc: New file.
1047         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
1048         * doc/posix-functions/mbtowc.texi: Mention the new module.
1049         * modules/btowc (Depends-on): Add mbtowc.
1050
1051 2011-02-22  Bruno Haible  <bruno@clisp.org>
1052
1053         wcrtomb: Add more tests for native Windows platforms.
1054         * tests/test-wcrtomb-w32-1.sh: New file.
1055         * tests/test-wcrtomb-w32-2.sh: New file.
1056         * tests/test-wcrtomb-w32-3.sh: New file.
1057         * tests/test-wcrtomb-w32-4.sh: New file.
1058         * tests/test-wcrtomb-w32-5.sh: New file.
1059         * tests/test-wcrtomb-w32.c: New file.
1060         * modules/wcrtomb-tests (Files): Add them.
1061         (Makefile.am): Arrange to run these tests.
1062         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
1063         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
1064
1065 2011-02-20  Bruno Haible  <bruno@clisp.org>
1066
1067         wcrtomb: Enhance test.
1068         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
1069
1070 2011-02-20  Bruno Haible  <bruno@clisp.org>
1071
1072         mbrtowc: Tiny optimization.
1073         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
1074
1075 2011-02-20  Jim Meyering  <meyering@redhat.com>
1076
1077         test-exclude.c: remove unmatched #endif
1078         * tests/test-exclude.c: Remove stray #endif, left over from
1079         the change of a week ago.
1080
1081 2011-02-19  Jim Meyering  <meyering@redhat.com>
1082
1083         git-version-gen: skip "-dirty" check when appropriate
1084         * build-aux/git-version-gen: Don't run any git commands when the
1085         version string comes from .tarball-version.  Prior to this, we
1086         would run git update-index --refresh even from a just-unpacked
1087         tarball directory, and that could affect a .git/ directory in a
1088         parent of the build directory.  Reported by Mike Frysinger.
1089
1090 2011-02-19  Bruno Haible  <bruno@clisp.org>
1091
1092         unictype/property-byname: Reduce the size of the 'data' segment.
1093         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
1094
1095 2011-02-19  Bruno Haible  <bruno@clisp.org>
1096
1097         unictype/scripts: Reduce the size of the 'data' segment.
1098         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
1099         '%pic'.
1100         * lib/unictype/scripts_byname.gperf: Regenerated.
1101
1102 2011-02-19  Bruno Haible  <bruno@clisp.org>
1103
1104         stdint: Update documentation.
1105         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
1106
1107 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1108
1109         stdint: omit redundant check for wchar.h
1110         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
1111         always tests whether wchar.h exists, so remove the now-redundant test.
1112
1113 2011-02-18  Bruno Haible  <bruno@clisp.org>
1114
1115         stdint: Cut dependency to module 'wchar'.
1116         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
1117         include the necessary prerequisites.
1118         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
1119         * modules/stdint (Depends-on): Remove wchar.
1120         (Makefile.am): Substitute HAVE_WCHAR_H.
1121         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
1122
1123 2011-02-18  Eric Blake  <eblake@redhat.com>
1124
1125         longlong: skip, rather than fail, on cross-compilation
1126         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
1127         when cross-compiling; regression from 2011-02-16.
1128
1129 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
1130
1131         * NEWS: Mention 2011-02-08 change to stdlib.
1132
1133 2011-02-17  Bruno Haible  <bruno@clisp.org>
1134
1135         getloadavg: Add comments about platforms.
1136         * m4/getloadavg.m4: Add comment.
1137         * lib/getloadavg.c: Likewise.
1138
1139 2011-02-17  Bruno Haible  <bruno@clisp.org>
1140
1141         getloadavg: Fix link error on Solaris 2.6.
1142         * modules/getloadavg (Link): New section.
1143         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
1144         linking test-getloadavg.
1145         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
1146         getloadavg.
1147
1148 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
1149
1150         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
1151         It was 'int', but this doesn't match the IRIX 6.5 manual.
1152         Suggested by Bruno Haible in
1153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
1154
1155 2011-02-17  Bruno Haible  <bruno@clisp.org>
1156
1157         havelib: Fix comments.
1158         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
1159         change.
1160
1161 2011-02-17  Bruno Haible  <bruno@clisp.org>
1162
1163         havelib: Update config.rpath.
1164         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
1165
1166 2011-02-17  Bruno Haible  <bruno@clisp.org>
1167
1168         getloadavg test: Add some plausibility checks.
1169         * tests/test-getloadavg.c (check_avg): Print a warning when the value
1170         is improbable.
1171
1172 2011-02-16  Eric Blake  <eblake@redhat.com>
1173
1174         maintainer-makefile: make syntax-check a no-op from tarballs
1175         * top/maint.mk (no-vc-detected): New rule.
1176         (local-checks-available): Use it to avoid hanging if someone tries
1177         'make syntax-check' from a tarball.  Also append to any non-syntax
1178         checks already defined in cfg.mk.
1179
1180 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
1181
1182         longlong: tune, particularly for common case of c99
1183
1184         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
1185         or running anything if c99, or if unsigned long long int does not
1186         work.  In either case, we know the answer without further tests.
1187         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
1188         it at most once, and use its results for both long long int and
1189         unsigned long long int.  This is more likely to be efficient in
1190         the common case where the program wants to check for both long
1191         long int and unsigned long long int.
1192         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
1193         since the answer is already known.
1194
1195 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
1196
1197         getloadavg: set errno
1198         * lib/getloadavg.c: Set errno when returning -1.  If no other
1199         error number looks appropriate, set it to ENOSYS if the getloadavg
1200         looks like it can't possibly ever work, ENOTSUP otherwise.
1201         Suggested by Bruno Haible in
1202         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
1203
1204         getloadavg: trim unused parts and speed up 'configure'
1205         * NEWS: Document this.
1206         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
1207         always compiled if getloadavg is absent.
1208         Move test code to ...
1209         * tests/test-getloadavg.c: New file, containing previous
1210         contents of test from lib/getloadavg.c.  It also contains
1211         suggestions by Bruno Haible in
1212         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
1213         * modules/getloadavg-tests: New file.
1214         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
1215         Do tests in the same order as they're needed for getloadavg.c.
1216         Omit setgid-related tests that generate symbols KMEM_GROUP,
1217         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
1218         Do only the tests that are needed to see whether the system has
1219         getloadavg, moving the other tests into ...
1220         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
1221         NLIST_NAME_UNION; nobody should be using it.  Do not define
1222         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
1223         relevant, as the user of this module shouldn't care how getloadavg
1224         is implemented.
1225
1226         getloadavg: omit unused var
1227         * lib/getloadavg.c (getloadavg): Omit unused local variable.
1228
1229 2011-02-15  Jim Meyering  <meyering@redhat.com>
1230
1231         doc: update users.txt
1232         * users.txt: Update iwhd's URL.
1233
1234 2011-02-13  Bruno Haible  <bruno@clisp.org>
1235
1236         Consistent macro naming for macros that use GCC __attribute__.
1237         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
1238         _ATTRIBUTE_NONNULL_.
1239         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
1240         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
1241         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
1242         ATTRIBUTE_DEPRECATED.
1243         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
1244         ATTRIBUTE_NORETURN.
1245         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1246         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1247         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1248         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1249         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
1250         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
1251         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
1252         ATTRIBUTE_SENTINEL.
1253         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
1254         ATTRIBUTE_RETURN_CHECK.
1255         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
1256         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
1257         ATTRIBUTE_NORETURN.
1258         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
1259         Reported by Paul Eggert.
1260
1261 2011-02-13  Bruno Haible  <bruno@clisp.org>
1262
1263         Don't interfere with a program's definition of __attribute__.
1264         * lib/argp.h (__attribute__): Remove definition.
1265         (_GL_ATTRIBUTE_FORMAT): New macro.
1266         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
1267         * lib/argp-fmtstream.h (__attribute__): Remove definition.
1268         (_GL_ATTRIBUTE_FORMAT): New macro.
1269         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
1270         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
1271         GCC 3 or newer.
1272         * lib/error.h (__attribute__): Remove definition.
1273         (_GL_ATTRIBUTE_FORMAT): New macro.
1274         (error, error_at_line): Use it.
1275         * lib/hash.h (__attribute__): Remove definition.
1276         (ATTRIBUTE_WUR): Update definition. Define always.
1277         * lib/openat.h (__attribute__): Remove definition.
1278         (ATTRIBUTE_NORETURN): Update definition. Define always.
1279         * lib/sigpipe-die.h (__attribute__): Remove definition.
1280         (ATTRIBUTE_NORETURN): Update definition. Define always.
1281         * lib/vasnprintf.h (__attribute__): Remove definition.
1282         (_GL_ATTRIBUTE_FORMAT): New macro.
1283         (asnprintf, vasnprintf): Use it.
1284         * lib/xalloc.h (__attribute__): Remove definition.
1285         (ATTRIBUTE_NORETURN): Update definition. Define always.
1286         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
1287         * lib/xmemdup0.h (__attribute__): Remove definition.
1288         (ATTRIBUTE_NORETURN): Update definition. Define always.
1289         * lib/xprintf.h (__attribute__): Remove definition.
1290         (_GL_ATTRIBUTE_FORMAT): New macro.
1291         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
1292         * lib/xstrtol.h (__attribute__): Remove definition.
1293         (ATTRIBUTE_NORETURN): Update definition. Define always.
1294         * lib/xvasprintf.h (__attribute__): Remove definition.
1295         (_GL_ATTRIBUTE_FORMAT): New macro.
1296         (xasprintf, xvasprintf): Use it.
1297         * tests/test-argmatch.c (__attribute__): Remove definition.
1298         (ATTRIBUTE_NORETURN): Update definition. Define always.
1299         * tests/test-exclude.c (__attribute__): Remove definition.
1300         (ATTRIBUTE_NORETURN): Update definition. Define always.
1301         Reported by Paul Eggert.
1302
1303 2011-02-13  Bruno Haible  <bruno@clisp.org>
1304
1305         mbrtowc: Add more tests for native Windows platforms.
1306         * tests/test-mbrtowc-w32-1.sh: New file.
1307         * tests/test-mbrtowc-w32-2.sh: New file.
1308         * tests/test-mbrtowc-w32-3.sh: New file.
1309         * tests/test-mbrtowc-w32-4.sh: New file.
1310         * tests/test-mbrtowc-w32-5.sh: New file.
1311         * tests/test-mbrtowc-w32.c: New file.
1312         * modules/mbrtowc-tests (Files): Add them.
1313         (Makefile.am): Arrange to run these tests.
1314         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
1315         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
1316
1317 2011-02-13  Bruno Haible  <bruno@clisp.org>
1318
1319         mbrtowc: Work around native Windows bug.
1320         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
1321         guess when no suitable locale for testing was found.
1322         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
1323
1324 2011-02-13  Bruno Haible  <bruno@clisp.org>
1325
1326         mbsinit: Work around mingw bug.
1327         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
1328         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
1329         Windows.
1330         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
1331
1332 2011-02-13  Bruno Haible  <bruno@clisp.org>
1333
1334         mbsinit: Don't crash for a NULL argument.
1335         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
1336         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
1337
1338 2011-02-13  Bruno Haible  <bruno@clisp.org>
1339
1340         Don't interfere with a program's definition of __attribute__.
1341         * lib/stdio.in.h (__attribute__): Remove definition.
1342         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
1343         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
1344         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
1345         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
1346         * lib/string.in.h (__attribute__): Remove definition.
1347         Reported by Paul Eggert.
1348
1349 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1350
1351         stdlib: don't get in the way of non-GCC __attribute__
1352         See thread starting at
1353         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
1354         Revert previous stdlib change, installing the following instead:
1355         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
1356         to get in the way of a non-GCC compiler that supports __attribute__.
1357         (_GL_ATTRIBUTE_RETURN): New macro.
1358         (_Exit): Use it instead of __attribute__.
1359
1360 2011-02-12  Bruno Haible  <bruno@clisp.org>
1361
1362         quotearg test: Avoid test failure on mingw.
1363         * tests/test-quotearg.sh: Convert the locale identifier from native
1364         Windows syntax to Unix syntax.
1365
1366 2011-02-12  Bruno Haible  <bruno@clisp.org>
1367
1368         setlocale: Prefer gnulib's override over libintl's override.
1369         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
1370         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
1371         GNULIB_defined_setlocale is set.
1372
1373 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1374
1375         stdlib: support non-GCC __attribute__
1376
1377         Fix a serious and tricky problem encountered when attempting to
1378         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
1379         5.5, but it crashed due to memory corruption on Solaris 10 with
1380         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
1381         bits that are otherwise zero.  This tagging is optional inside
1382         Emacs but is preferred and is used when __attribute__ ((__aligned
1383         (8))) works, as it does with both recent-enough GCC and with Sun C
1384         5.11.  However, Sun C 5.11 is not GCC and does not #define
1385         __GNUC__ and __GNUC_MINOR__.
1386
1387         When I added the getloadavg module to Emacs, it brought in
1388         stdlib.in.h, which contained this fragment:
1389
1390            #ifndef __attribute__
1391            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
1392            #  define __attribute__(Spec)   /* empty */
1393            # endif
1394            #endif
1395
1396         When files that include <stdlib.h> were compiled with Sun C 5.11,
1397         the above code disabled __attribute__ ((__aligned (8))), which
1398         caused variables to not be properly aligned, which eventually led
1399         to the pointer corruption mentioned above.  (This was a bit hard
1400         to diagnose, unfortunately.)
1401
1402         Several "#define __attribute__(X) /* empty */" code snippets need
1403         to be eradicated from Gnulib to work with non-GCC compilers that
1404         support __attribute__.  The Autoconf way to do this is to test for
1405         each kind of attribute that we want support for, and selectively
1406         enable that in source code.
1407
1408         Fix this problem just for stdlib.h, by adding a test for the
1409         __noreturn__ attribute, and change stdlib.in.h to use that test
1410         when needed.  This technique can be easily generalized to the
1411         other *.in.h files and attributes, and a similar technique can be
1412         used for *.h and *.c files.  This patch is enough to solve the
1413         problem for Emacs + getloadavg, and I thought I'd publish it for
1414         feedback before undertaking further, similar fixes in other
1415         modules.
1416
1417         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
1418         because it's not needed for stdlib.h.  It merely substitutes the
1419         value directly into stdlib.h.  We may well need to #define it, or
1420         similar symbols, for other modules, but it's nice to also have an
1421         option to not #define it for applications like Emacs that do not
1422         need it.
1423
1424         * lib/stdlib.in.h (__attribute__): Do not #define.
1425         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
1426         be defined only if the _Exit module is also used.
1427         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
1428         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
1429         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
1430         platforms.
1431         * modules/_Exit (Files): Add m4/attribute.m4.
1432         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
1433         * m4/attribute.m4: New file.
1434
1435 2011-02-12  Bruno Haible  <bruno@clisp.org>
1436
1437         wcsrtombs: Work around bug on native Windows.
1438         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
1439         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
1440         instead of len.
1441         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
1442
1443 2011-02-12  Bruno Haible  <bruno@clisp.org>
1444
1445         mbsrtowcs: Work around bug on native Windows.
1446         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
1447         against mingw bug.
1448         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
1449
1450 2011-02-12  Bruno Haible  <bruno@clisp.org>
1451
1452         Avoid setlocale bugs in tests.
1453         * modules/btowc (Dependencies): Add setlocale.
1454         * modules/c-strcase (Dependencies): Likewise.
1455         * modules/mbmemcasecmp (Dependencies): Likewise.
1456         * modules/mbmemcasecoll (Dependencies): Likewise.
1457         * modules/mbrtowc (Dependencies): Likewise.
1458         * modules/mbscasecmp (Dependencies): Likewise.
1459         * modules/mbscasestr (Dependencies): Likewise.
1460         * modules/mbschr (Dependencies): Likewise.
1461         * modules/mbscspn (Dependencies): Likewise.
1462         * modules/mbsinit (Dependencies): Likewise.
1463         * modules/mbsncasecmp (Dependencies): Likewise.
1464         * modules/mbsnrtowcs (Dependencies): Likewise.
1465         * modules/mbspbrk (Dependencies): Likewise.
1466         * modules/mbspcasecmp (Dependencies): Likewise.
1467         * modules/mbsrchr (Dependencies): Likewise.
1468         * modules/mbsrtowcs (Dependencies): Likewise.
1469         * modules/mbsspn (Dependencies): Likewise.
1470         * modules/mbsstr (Dependencies): Likewise.
1471         * modules/nl_langinfo (Dependencies): Likewise.
1472         * modules/quotearg (Dependencies): Likewise.
1473         * modules/unicase/locale-language (Dependencies): Likewise.
1474         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
1475         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
1476         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
1477         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
1478         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
1479         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
1480         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
1481         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
1482         * modules/vasnprintf-posix (Dependencies): Likewise.
1483         * modules/wcrtomb (Dependencies): Likewise.
1484         * modules/wcsnrtombs (Dependencies): Likewise.
1485         * modules/wcsrtombs (Dependencies): Likewise.
1486
1487 2011-02-12  Bruno Haible  <bruno@clisp.org>
1488
1489         setlocale: Workaround native Windows bug.
1490         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
1491         succeeds but sets LC_CTYPE to "C", report a failure.
1492         * tests/test-setlocale2.sh: New file.
1493         * tests/test-setlocale2.c: New file.
1494         * modules/setlocale-tests (Files): Add the new files.
1495         (Makefile.am): Enable test-setlocale2.sh test.
1496         * doc/posix-functions/setlocale.texi: Mention workaround.
1497
1498 2011-02-11  Bruno Haible  <bruno@clisp.org>
1499
1500         Tests for module 'setlocale'.
1501         * modules/setlocale-tests: New file.
1502         * tests/test-setlocale1.sh: New file.
1503         * tests/test-setlocale1.c: New file.
1504
1505         New module 'setlocale'.
1506         * lib/locale.in.h (setlocale): New declaration.
1507         * lib/setlocale.c: New file, based on
1508         gettext/gettext-runtime/intl/setlocale.c.
1509         * m4/setlocale.m4: New file.
1510         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
1511         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
1512         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
1513         REPLACE_SETLOCALE.
1514         * modules/setlocale: New file.
1515         * tests/test-locale-c++.cc: Test the declaration of setlocale.
1516         * doc/posix-functions/setlocale.texi: Mention the new module.
1517
1518 2011-02-11  Bruno Haible  <bruno@clisp.org>
1519
1520         Prepare for locale dependent tests on mingw.
1521         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
1522         because it has the wrong locale encoding.
1523         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
1524         French_France.1252 instead of "fr".
1525         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
1526         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
1527         because it has the wrong locale encoding.
1528         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
1529         native Windows, try Turkish_Turkey.65001.
1530         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
1531         Chinese_China.54936.
1532
1533         Prepare for locale dependent tests on mingw.
1534         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
1535         differently.
1536         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
1537         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
1538         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
1539         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1540
1541 2011-02-11  Eric Blake  <eblake@redhat.com>
1542
1543         strptime: avoid compiler warnings
1544         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
1545         compiler warnings about dead code.
1546         Reported by Daniel P. Berrange.
1547
1548 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
1549
1550         doc: update users.txt
1551         * users.txt: Add rcs.
1552
1553 2011-02-10  John W. Eaton  <jwe@gnu.org>
1554
1555         doc: update users.txt
1556         * users.txt: Add octave.
1557
1558 2011-02-10  Jim Meyering  <meyering@redhat.com>
1559
1560         doc: update users.txt
1561         * users.txt: Add iwhd.
1562
1563 2011-02-09  Bruno Haible  <bruno@clisp.org>
1564
1565         gnulib-tool: Make copyright notice adjustment more robust.
1566         * gnulib-tool (func_import): In sed_transform_main_lib_file,
1567         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
1568         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
1569         License".
1570         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
1571
1572 2011-02-06  Bruno Haible  <bruno@clisp.org>
1573
1574         New module 'towctrans'.
1575         * modules/towctrans: New file.
1576         * lib/wctype.in.h (towctrans): New declaration.
1577         * lib/towctrans.c: New file.
1578         * lib/towctrans-impl.h: New file.
1579         * m4/towctrans.m4: New file.
1580         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
1581         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
1582         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
1583         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
1584         * doc/posix-functions/towctrans.texi: Mention the new module.
1585
1586 2011-02-06  Bruno Haible  <bruno@clisp.org>
1587
1588         New module 'wctrans'.
1589         * modules/wctrans: New file.
1590         * lib/wctype.in.h (wctrans): New declaration.
1591         * lib/wctrans.c: New file.
1592         * lib/wctrans-impl.h: New file.
1593         * m4/wctrans.m4: New file.
1594         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
1595         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
1596         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
1597         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
1598         * doc/posix-functions/wctrans.texi: Mention the new module.
1599
1600 2011-02-06  Bruno Haible  <bruno@clisp.org>
1601
1602         New module 'iswctype'.
1603         * modules/iswctype: New file.
1604         * lib/wctype.in.h (iswctype): New declaration.
1605         * lib/iswctype.c: New file.
1606         * lib/iswctype-impl.h: New file.
1607         * m4/iswctype.m4: New file.
1608         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
1609         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
1610         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
1611         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
1612         * doc/posix-functions/iswctype.texi: Mention the new module and the
1613         HP-UX 11.00 problem.
1614
1615 2011-02-06  Bruno Haible  <bruno@clisp.org>
1616
1617         New module 'wctype'.
1618         * modules/wctype: Change to represent the wctype() substitute.
1619         * lib/wctype.in.h (wctype): New declaration.
1620         * lib/wctype.c: New file.
1621         * lib/wctype-impl.h: New file.
1622         * m4/wctype.m4: New file.
1623         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
1624         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
1625         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
1626         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
1627         * doc/posix-functions/wctype.texi: Mention the new module and the
1628         HP-UX 11.00 problem.
1629
1630 2011-02-06  Bruno Haible  <bruno@clisp.org>
1631
1632         wctype-h: Ensure wctype_t and wctrans_t are defined.
1633         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
1634         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
1635         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
1636         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
1637         HAVE_WCTRANS_T.
1638         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
1639
1640 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1641
1642         flock: fix license typo
1643
1644         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
1645         omitted.
1646
1647 2011-02-08  Bruno Haible  <bruno@clisp.org>
1648
1649         Split large sed scripts, for HP-UX sed.
1650         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
1651         to avoid HP-UX limit of 99 commands, in the near future.
1652         * modules/stdlib (Makefile.am): Likewise.
1653         * modules/unistd (Makefile.am): Likewise.
1654         * modules/wchar (Makefile.am): Likewise.
1655         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1656         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
1657         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
1658
1659 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1660             Bruno Haible  <bruno@clisp.org>
1661
1662         stdlib: improve random_r modularization
1663         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
1664         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
1665         you also need the random_r module to get this material right.
1666         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
1667         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
1668         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
1669
1670 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1671
1672         stdlib: don't depend on stdint
1673         * lib/stdlib.in.h: Don't include <stdint.h> merely because
1674         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
1675         be independent of whether stdint.h is needed.
1676         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
1677         here, instead of ...
1678         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
1679         struct random_data should be using the random_r module, not just
1680         the stdlib module (which wouldn't make sense: what package needs
1681         just struct random_data without also needing random_r?).
1682         * modules/stdlib (Depends-on): Remove stdint.
1683
1684         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
1685         See the thread rooted at
1686         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
1687         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
1688         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
1689         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
1690         __VMS)); previously it was always included (via fcntl--.h).
1691         (getloadavg): Do not use c_strtod.  Instead, approximate it by
1692         hand; this is good enough for load averages.  Also, do not use
1693         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
1694         flags directly if available and don't bother otherwise.  (Packages
1695         that need the extra reliability should use the modules that define
1696         these flags on older platforms that lack them.)
1697         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
1698         fcntl-safer.
1699
1700 2011-02-08  Jim Meyering  <meyering@redhat.com>
1701
1702         di-set.h, ino-map.h: add multiple-inclusion guard
1703         Technically, the guard is required only for ino-map.h, due to its
1704         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
1705         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
1706         * lib/ino-map.h: Likewise.
1707
1708 2011-02-06  Bruno Haible  <bruno@clisp.org>
1709
1710         iswblank: Ensure declaration on glibc systems.
1711         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
1712         * modules/iswblank (Dependencies): Add 'extensions'.
1713         * doc/posix-functions/iswblank.texi: Document the glibc problem.
1714
1715 2011-02-06  Bruno Haible  <bruno@clisp.org>
1716
1717         New module 'iswblank'.
1718         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
1719         * modules/iswblank: New file.
1720         * modules/wctype-h (Files): Remove lib/iswblank.c.
1721         (Makefile.am): Substitute GNULIB_ISWBLANK.
1722         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
1723         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
1724         (gl_WCTYPE_H_DEFAULTS): New macro.
1725         (gl_WCTYPE_H): Require it. Remove iswblank related code.
1726         * modules/iswblank-tests: New file.
1727         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
1728         * tests/test-wctype-h.c (main): Remove iswblank tests.
1729         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
1730         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
1731         of 'wctype-h'.
1732         * NEWS: Mention the change.
1733         * modules/mbchar (Depends-on): Add iswblank.
1734
1735 2011-02-08  Bruno Haible  <bruno@clisp.org>
1736
1737         di-set tests: Refactor.
1738         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
1739         unnecessary includes.
1740         (ASSERT): Remove macro.
1741         (main): Make C90 compliant by avoiding variable declaration after
1742         statement.
1743         * modules/di-set-tests (Files): Add tests/macros.h.
1744
1745 2011-02-08  Bruno Haible  <bruno@clisp.org>
1746
1747         ino-map tests: Refactor.
1748         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
1749         unnecessary includes.
1750         (ASSERT): Remove macro.
1751         (main): Make C90 compliant by avoiding variable declaration after
1752         statement.
1753         * modules/ino-map-tests (Files): Add tests/macros.h.
1754
1755 2011-02-08  Jim Meyering  <meyering@redhat.com>
1756
1757         di-set: add "const" to a cast
1758         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
1759         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
1760
1761 2011-02-06  Bruno Haible  <bruno@clisp.org>
1762
1763         Rename module 'wctype' to 'wctype-h'.
1764         * modules/wctype-h: Renamed from modules/wctype.
1765         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
1766         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
1767         (Files, Depends-on, Makefile.am): Update.
1768         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
1769         (Files, Makefile.am): Update.
1770         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
1771         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
1772         * doc/posix-headers/wctype.texi: Update.
1773         * doc/posix-functions/iswalnum.texi: Update.
1774         * doc/posix-functions/iswalpha.texi: Update.
1775         * doc/posix-functions/iswblank.texi: Update.
1776         * doc/posix-functions/iswcntrl.texi: Update.
1777         * doc/posix-functions/iswdigit.texi: Update.
1778         * doc/posix-functions/iswgraph.texi: Update.
1779         * doc/posix-functions/iswlower.texi: Update.
1780         * doc/posix-functions/iswprint.texi: Update.
1781         * doc/posix-functions/iswpunct.texi: Update.
1782         * doc/posix-functions/iswspace.texi: Update.
1783         * doc/posix-functions/iswupper.texi: Update.
1784         * doc/posix-functions/iswxdigit.texi: Update.
1785         * doc/posix-functions/towlower.texi: Update.
1786         * doc/posix-functions/towupper.texi: Update.
1787         * NEWS: Mention the change.
1788         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
1789         * modules/mbchar (Dependencies): Likewise.
1790         * modules/mbswidth (Dependencies): Likewise.
1791         * modules/quotearg (Dependencies): Likewise.
1792         * modules/regex (Dependencies): Likewise.
1793         * modules/wcscasecmp (Dependencies): Likewise.
1794         * modules/wcsncasecmp (Dependencies): Likewise.
1795         * modules/wcwidth (Dependencies): Likewise.
1796
1797 2011-02-06  Bruno Haible  <bruno@clisp.org>
1798
1799         New module 'wcswidth'.
1800         * modules/wcswidth: New file.
1801         * lib/wchar.in.h (wcswidth): New declaration.
1802         * lib/wcswidth.c: New file.
1803         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
1804         * m4/wcswidth.m4: New file.
1805         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
1806         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
1807         REPLACE_WCSWIDTH.
1808         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
1809         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
1810         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
1811         * doc/posix-functions/wcswidth.texi: Mention the new module.
1812
1813 2011-02-06  Bruno Haible  <bruno@clisp.org>
1814
1815         New module 'wcstok'.
1816         * modules/wcstok: New file.
1817         * lib/wchar.in.h (wcstok): New declaration.
1818         * lib/wcstok.c: New file.
1819         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
1820         * m4/wcstok.m4: New file.
1821         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
1822         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
1823         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
1824         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
1825         * doc/posix-functions/wcstok.texi: Mention the new module.
1826
1827 2011-02-06  Bruno Haible  <bruno@clisp.org>
1828
1829         New module 'wcsstr'.
1830         * modules/wcsstr: New file.
1831         * lib/wchar.in.h (wcsstr): New declaration.
1832         * lib/wcsstr.c: New file.
1833         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
1834         * m4/wcsstr.m4: New file.
1835         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
1836         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
1837         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
1838         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
1839         * doc/posix-functions/wcsstr.texi: Mention the new module.
1840
1841 2011-02-06  Bruno Haible  <bruno@clisp.org>
1842
1843         New module 'wcspbrk'.
1844         * modules/wcspbrk: New file.
1845         * lib/wchar.in.h (wcspbrk): New declaration.
1846         * lib/wcspbrk.c: New file.
1847         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
1848         * m4/wcspbrk.m4: New file.
1849         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
1850         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
1851         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
1852         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
1853         * doc/posix-functions/wcspbrk.texi: Mention the new module.
1854
1855 2011-02-06  Bruno Haible  <bruno@clisp.org>
1856
1857         New module 'wcsspn'.
1858         * modules/wcsspn: New file.
1859         * lib/wchar.in.h (wcsspn): New declaration.
1860         * lib/wcsspn.c: New file.
1861         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
1862         * m4/wcsspn.m4: New file.
1863         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
1864         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
1865         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
1866         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
1867         * doc/posix-functions/wcsspn.texi: Mention the new module.
1868
1869 2011-02-06  Bruno Haible  <bruno@clisp.org>
1870
1871         New module 'wcscspn'.
1872         * modules/wcscspn: New file.
1873         * lib/wchar.in.h (wcscspn): New declaration.
1874         * lib/wcscspn.c: New file.
1875         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
1876         * m4/wcscspn.m4: New file.
1877         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
1878         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
1879         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
1880         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
1881         * doc/posix-functions/wcscspn.texi: Mention the new module.
1882
1883 2011-02-06  Bruno Haible  <bruno@clisp.org>
1884
1885         New module 'wcsrchr'.
1886         * modules/wcsrchr: New file.
1887         * lib/wchar.in.h (wcsrchr): New declaration.
1888         * lib/wcsrchr.c: New file.
1889         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
1890         * m4/wcsrchr.m4: New file.
1891         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
1892         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
1893         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
1894         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
1895         * doc/posix-functions/wcsrchr.texi: Mention the new module.
1896
1897 2011-02-06  Bruno Haible  <bruno@clisp.org>
1898
1899         New module 'wcschr'.
1900         * modules/wcschr: New file.
1901         * lib/wchar.in.h (wcschr): New declaration.
1902         * lib/wcschr.c: New file.
1903         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
1904         * m4/wcschr.m4: New file.
1905         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
1906         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
1907         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
1908         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
1909         * doc/posix-functions/wcschr.texi: Mention the new module.
1910
1911 2011-02-06  Bruno Haible  <bruno@clisp.org>
1912
1913         New module 'wcsdup'.
1914         * modules/wcsdup: New file.
1915         * lib/wchar.in.h (wcsdup): New declaration.
1916         * lib/wcsdup.c: New file.
1917         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
1918         * m4/wcsdup.m4: New file.
1919         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
1920         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
1921         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
1922         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
1923         * doc/posix-functions/wcsdup.texi: Mention the new module.
1924
1925 2011-02-06  Bruno Haible  <bruno@clisp.org>
1926
1927         New module 'wcsxfrm'.
1928         * modules/wcsxfrm: New file.
1929         * lib/wchar.in.h (wcsxfrm): New declaration.
1930         * lib/wcsxfrm.c: New file.
1931         * lib/wcsxfrm-impl.h: New file.
1932         * m4/wcsxfrm.m4: New file.
1933         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
1934         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
1935         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
1936         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
1937         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
1938
1939 2011-02-06  Bruno Haible  <bruno@clisp.org>
1940
1941         New module 'wcscoll'.
1942         * modules/wcscoll: New file.
1943         * lib/wchar.in.h (wcscoll): New declaration.
1944         * lib/wcscoll.c: New file.
1945         * lib/wcscoll-impl.h: New file.
1946         * m4/wcscoll.m4: New file.
1947         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
1948         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
1949         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
1950         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
1951         * doc/posix-functions/wcscoll.texi: Mention the new module.
1952
1953 2011-02-06  Bruno Haible  <bruno@clisp.org>
1954
1955         New module 'wcsncasecmp'.
1956         * modules/wcsncasecmp: New file.
1957         * lib/wchar.in.h (wcsncasecmp): New declaration.
1958         * lib/wcsncasecmp.c: New file.
1959         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
1960         * m4/wcsncasecmp.m4: New file.
1961         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
1962         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
1963         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
1964         HAVE_WCSNCASECMP.
1965         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
1966         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
1967
1968 2011-02-06  Bruno Haible  <bruno@clisp.org>
1969
1970         New module 'wcscasecmp'.
1971         * modules/wcscasecmp: New file.
1972         * lib/wchar.in.h (wcscasecmp): New declaration.
1973         * lib/wcscasecmp.c: New file.
1974         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
1975         * m4/wcscasecmp.m4: New file.
1976         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
1977         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
1978         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
1979         HAVE_WCSCASECMP.
1980         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
1981         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
1982
1983 2011-02-05  Bruno Haible  <bruno@clisp.org>
1984
1985         New module 'wcsncmp'.
1986         * modules/wcsncmp: New file.
1987         * lib/wchar.in.h (wcsncmp): New declaration.
1988         * lib/wcsncmp.c: New file.
1989         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
1990         * m4/wcsncmp.m4: New file.
1991         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
1992         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
1993         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
1994         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
1995         * doc/posix-functions/wcsncmp.texi: Mention the new module.
1996
1997 2011-02-05  Bruno Haible  <bruno@clisp.org>
1998
1999         New module 'wcscmp'.
2000         * modules/wcscmp: New file.
2001         * lib/wchar.in.h (wcscmp): New declaration.
2002         * lib/wcscmp.c: New file.
2003         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
2004         * m4/wcscmp.m4: New file.
2005         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
2006         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
2007         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
2008         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
2009         * doc/posix-functions/wcscmp.texi: Mention the new module.
2010
2011 2011-02-05  Bruno Haible  <bruno@clisp.org>
2012
2013         New module 'wcsncat'.
2014         * modules/wcsncat: New file.
2015         * lib/wchar.in.h (wcsncat): New declaration.
2016         * lib/wcsncat.c: New file.
2017         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
2018         * m4/wcsncat.m4: New file.
2019         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
2020         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
2021         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
2022         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
2023         * doc/posix-functions/wcsncat.texi: Mention the new module.
2024
2025 2011-02-05  Bruno Haible  <bruno@clisp.org>
2026
2027         New module 'wcscat'.
2028         * modules/wcscat: New file.
2029         * lib/wchar.in.h (wcscat): New declaration.
2030         * lib/wcscat.c: New file.
2031         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
2032         * m4/wcscat.m4: New file.
2033         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
2034         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
2035         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
2036         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
2037         * doc/posix-functions/wcscat.texi: Mention the new module.
2038
2039 2011-02-05  Bruno Haible  <bruno@clisp.org>
2040
2041         New module 'wcpncpy'.
2042         * modules/wcpncpy: New file.
2043         * lib/wchar.in.h (wcpncpy): New declaration.
2044         * lib/wcpncpy.c: New file.
2045         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
2046         * m4/wcpncpy.m4: New file.
2047         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
2048         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
2049         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
2050         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
2051         * doc/posix-functions/wcpncpy.texi: Mention the new module.
2052
2053 2011-02-05  Bruno Haible  <bruno@clisp.org>
2054
2055         New module 'wcsncpy'.
2056         * modules/wcsncpy: New file.
2057         * lib/wchar.in.h (wcsncpy): New declaration.
2058         * lib/wcsncpy.c: New file.
2059         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
2060         * m4/wcsncpy.m4: New file.
2061         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
2062         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
2063         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
2064         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
2065         * doc/posix-functions/wcsncpy.texi: Mention the new module.
2066
2067 2011-02-05  Bruno Haible  <bruno@clisp.org>
2068
2069         New module 'wcpcpy'.
2070         * modules/wcpcpy: New file.
2071         * lib/wchar.in.h (wcpcpy): New declaration.
2072         * lib/wcpcpy.c: New file.
2073         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
2074         * m4/wcpcpy.m4: New file.
2075         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
2076         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
2077         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
2078         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
2079         * doc/posix-functions/wcpcpy.texi: Mention the new module.
2080
2081 2011-02-05  Bruno Haible  <bruno@clisp.org>
2082
2083         New module 'wcscpy'.
2084         * modules/wcscpy: New file.
2085         * lib/wchar.in.h (wcscpy): New declaration.
2086         * lib/wcscpy.c: New file.
2087         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
2088         * m4/wcscpy.m4: New file.
2089         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
2090         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
2091         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
2092         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
2093         * doc/posix-functions/wcscpy.texi: Mention the new module.
2094
2095 2011-02-05  Bruno Haible  <bruno@clisp.org>
2096
2097         New module 'wcsnlen'.
2098         * modules/wcsnlen: New file.
2099         * lib/wchar.in.h (wcsnlen): New declaration.
2100         * lib/wcsnlen.c: New file.
2101         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
2102         * m4/wcsnlen.m4: New file.
2103         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
2104         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
2105         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
2106         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
2107         * doc/posix-functions/wcsnlen.texi: Mention the new module.
2108
2109 2011-02-05  Bruno Haible  <bruno@clisp.org>
2110
2111         New module 'wcslen'.
2112         * modules/wcslen: New file.
2113         * lib/wchar.in.h (wcslen): New declaration.
2114         * lib/wcslen.c: New file.
2115         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
2116         * m4/wcslen.m4: New file.
2117         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
2118         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
2119         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
2120         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
2121         * doc/posix-functions/wcslen.texi: Mention the new module.
2122
2123 2011-02-05  Bruno Haible  <bruno@clisp.org>
2124
2125         New module 'wmemset'.
2126         * modules/wmemset: New file.
2127         * lib/wchar.in.h (wmemset): New declaration.
2128         * lib/wmemset.c: New file.
2129         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
2130         * m4/wmemset.m4: New file.
2131         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
2132         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
2133         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
2134         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
2135         * doc/posix-functions/wmemset.texi: Mention the new module.
2136
2137 2011-02-05  Bruno Haible  <bruno@clisp.org>
2138
2139         New module 'wmemmove'.
2140         * modules/wmemmove: New file.
2141         * lib/wchar.in.h (wmemmove): New declaration.
2142         * lib/wmemmove.c: New file.
2143         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
2144         * m4/wmemmove.m4: New file.
2145         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
2146         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
2147         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
2148         HAVE_WMEMMOVE.
2149         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
2150         * doc/posix-functions/wmemmove.texi: Mention the new module.
2151
2152 2011-02-05  Bruno Haible  <bruno@clisp.org>
2153
2154         New module 'wmemcpy'.
2155         * modules/wmemcpy: New file.
2156         * lib/wchar.in.h (wmemcpy): New declaration.
2157         * lib/wmemcpy.c: New file.
2158         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
2159         * m4/wmemcpy.m4: New file.
2160         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
2161         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
2162         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
2163         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
2164         * doc/posix-functions/wmemcpy.texi: Mention the new module.
2165
2166 2011-02-05  Bruno Haible  <bruno@clisp.org>
2167
2168         New module 'wmemcmp'.
2169         * modules/wmemcmp: New file.
2170         * lib/wchar.in.h (wmemcmp): New declaration.
2171         * lib/wmemcmp.c: New file.
2172         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
2173         * m4/wmemcmp.m4: New file.
2174         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
2175         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
2176         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
2177         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
2178         * doc/posix-functions/wmemcmp.texi: Mention the new module.
2179
2180 2011-02-07  Jim Meyering  <meyering@redhat.com>
2181
2182         di-set, ino-map: new modules, from coreutils
2183         * lib/di-set.c: New file.
2184         * lib/di-set.h: Likewise.
2185         * lib/ino-map.c: Likewise.
2186         * lib/ino-map.h: Likewise.
2187         * modules/di-set: Likewise.
2188         * modules/di-set-tests: Likewise.
2189         * modules/ino-map: Likewise.
2190         * modules/ino-map-tests: Likewise.
2191         * tests/test-di-set.c: Likewise.
2192         * tests/test-ino-map.c: Likewise.
2193
2194 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
2195
2196         getloadavg: merge minor changes from Emacs
2197
2198         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
2199         (getloadavg): Use memset, not bzero.
2200
2201         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
2202         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
2203         clash (bug#86).
2204
2205 2010-11-14  Bruno Haible  <bruno@clisp.org>
2206
2207         Allow multiple gnulib generated replacements to coexist.
2208         * lib/getopt.in.h (struct option): Avoid identical redefinition.
2209         * lib/inttypes.in.h (imaxdiv_t): Likewise.
2210         * lib/langinfo.in.h (nl_item): Likewise.
2211         * lib/math.in.h (_NaN, NAN): Likewise.
2212         * lib/netdb.in.h (struct addrinfo): Likewise.
2213         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
2214         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
2215         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
2216         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
2217         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
2218         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
2219         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
2220         pthread_mutexattr_init, pthread_mutexattr_settype,
2221         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
2222         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
2223         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
2224         pthread_spin_trylock, pthread_spin_unlock): Likewise.
2225         * lib/sched.in.h (struct sched_param): Likewise.
2226         * lib/se-selinux.in.h (security_class_t, security_context_t,
2227         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
2228         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
2229         lsetfilecon, fsetfilecon, security_check_context,
2230         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
2231         Likewise.
2232         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
2233         Likewise.
2234         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
2235         _gl_function_taking_int_returning_void_t, union sigval,
2236         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
2237         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
2238         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
2239         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
2240         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
2241         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
2242         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
2243         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
2244         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
2245         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
2246         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
2247         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
2248         socklen_t, rpl_fd_isset): Likewise.
2249         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
2250         * lib/sys_time.in.h (struct timeval): Likewise.
2251         * lib/sys_times.in.h (struct tms): Likewise.
2252         * lib/sys_utsname.in.h (struct utsname):
2253         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
2254         * lib/unistd.in.h (getpagesize): Likewise.
2255         * lib/wchar.in.h (mbstate_t): Likewise.
2256         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
2257         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
2258         towlower, towupper): Likewise.
2259         Reported by Sam Steingold <sds@gnu.org>.
2260
2261 2011-02-05  Eric Blake  <eblake@redhat.com>
2262
2263         unsetenv: work around Haiku issues
2264         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
2265         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
2266
2267 2010-12-30  Bruce Korb  <bkorb@gnu.org>
2268
2269         libposix: avoid calling error() within libposix
2270         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
2271         is defined.
2272
2273 2011-02-05  Eric Blake  <eblake@redhat.com>
2274
2275         strerror_r-posix: port to cygwin
2276         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
2277         implementation.
2278         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
2279         * tests/test-strerror_r.c (main): Fix test.
2280         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
2281         issue.
2282
2283 2011-02-05  Bruno Haible  <bruno@clisp.org>
2284
2285         New module 'wmemchr'.
2286         * modules/wmemchr: New file.
2287         * lib/wchar.in.h (wmemchr): New declaration.
2288         * lib/wmemchr.c: New file.
2289         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
2290         * m4/wmemchr.m4: New file.
2291         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
2292         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
2293         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
2294         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
2295         * doc/posix-functions/wmemchr.texi: Mention the new module.
2296
2297 2011-02-04  Eric Blake  <eblake@redhat.com>
2298
2299         fdopendir: detect FreeBSD bug
2300         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
2301         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
2302
2303 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
2304
2305         stdbool: do not define HAVE_STDBOOL_H
2306         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
2307         AC_HEADER_STDBOOL.  All uses changed.  Do not define
2308         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
2309         imported from the latest Autoconf git.  It was motivated by Emacs,
2310         which uses gnulib but does not need HAVE_STDBOOL_H.
2311
2312 2011-02-04  Bruno Haible  <bruno@clisp.org>
2313
2314         wcsnrtombs: Prepare for new module wwcsnrtombs.
2315         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
2316         * lib/wcsnrtombs.c: Include it.
2317         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
2318
2319         wcsrtombs: Prepare for new module wwcsrtombs.
2320         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
2321         * lib/wcsrtombs.c: Include it.
2322         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
2323
2324         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
2325         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
2326         * lib/mbsnrtowcs.c: Include it.
2327         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
2328
2329         mbsrtowcs: Prepare for new module mbsrtowwcs.
2330         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
2331         * lib/mbsrtowcs.c: Include it.
2332         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
2333
2334 2011-02-04  Bruno Haible  <bruno@clisp.org>
2335
2336         vasnprintf: Reduce use of malloc for small format strings.
2337         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
2338         (arguments): Add room for the first 7 arguments.
2339         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
2340         (char_directives, u8_directives, u16_directives, u32_directives): Add
2341         room for the first 7 directives.
2342         * lib/printf-parse.c: Include <string.h>.
2343         (PRINTF_PARSE): Change memory handling code so that it uses the first
2344         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
2345         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
2346         Reported by Pádraig Brady <P@draigbrady.com>.
2347
2348 2011-01-31  Eric Blake  <eblake@redhat.com>
2349
2350         dup2: work around Haiku bug
2351         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
2352         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
2353         * doc/posix-functions/dup2.texi (dup2): Document the bug.
2354         * tests/test-dup2.c (main): Enhance test.
2355
2356 2011-01-31  Simon Josefsson  <simon@josefsson.org>
2357
2358         doc: off_t is not available in eglibc 2.11.2 stdio.h.
2359         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
2360         declared by eglibc 2.11.2.
2361         * lib/stdio.in.h: Likewise.
2362
2363 2011-01-31  Eric Blake  <eblake@redhat.com>
2364
2365         ignore-value: add missing test dependency
2366         * tests/test-ignore-value.c: Revert previous change; stdio.h
2367         provides off_t.
2368         * modules/ignore-value-tests (Depends-on): Add missing dependency.
2369
2370 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
2371
2372         mktime: clarify long_int width checking
2373         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
2374         the top level, to make it clearer that the assumption about
2375         long_int width is being checked.  See
2376         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
2377
2378 2011-01-30  Simon Josefsson  <simon@josefsson.org>
2379
2380         ignore-value: Fix self-test.
2381         * tests/test-ignore-value.c: Include sys/types.h for off_t.
2382
2383 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
2384
2385         TYPE_MAXIMUM: avoid theoretically undefined behavior
2386         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
2387         negative number, which the C Standard says has undefined behavior.
2388         In practice this is not a problem, but might as well do it by the book.
2389         Reported by Rich Felker and Eric Blake; see
2390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
2391         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
2392         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
2393         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2394         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
2395         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2396         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
2397
2398         mktime: #undef mktime before #defining it
2399         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
2400
2401         mktime: systematically normalize tm_isdst comparisons
2402         * lib/mktime.c (isdst_differ): New function.
2403         (__mktime_internal): Use it systematically for all isdst comparisons.
2404         This completes the fix for libc BZ #6723, and removes the need for
2405         normalizing tm_isdst.  See
2406         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
2407         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
2408
2409         mktime: fix some integer overflow issues and sidestep the rest
2410
2411         This was prompted by a bug report by Benjamin Lindner for MinGW
2412         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
2413         His bug is due to signed integer overflow (0 - INT_MIN), and I
2414         I scanned through mktime.c looking for other integer overflow
2415         problems, fixing all the bugs I found.
2416
2417         Although the C Standard says the resulting code is still not safe
2418         in the presence of integer overflow, in practice it should be good
2419         enough for all real-world two's-complement implementations, except
2420         for debugging environments that deliberately trap on integer
2421         overflow (e.g., gcc -ftrapv).
2422
2423         * lib/mktime.c (WRAPV): New macro.
2424         (SHR): Also check that long_int and time_t shift right in the
2425         usual way, before using the fast-but-unportable method.
2426         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
2427         used.  The code already assumed two's complement, so there's
2428         no need to test for alternatives.  All uses removed.
2429         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
2430         the C standard.  Problem reported by Rich Felker in
2431         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
2432         (twos_complement_arithmetic): Also check long_int and time_t.
2433         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
2434         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
2435         (__mktime_internal): Avoid integer overflow with unary subtraction
2436         in two instances where -1 - X is an adequate replacement for -X,
2437         since the calculations are approximate.
2438
2439 2011-01-29  Eric Blake  <eblake@redhat.com>
2440
2441         mktime: avoid infinite loop
2442         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
2443         type; behavior is still undefined but portable to all known targets.
2444         Reported by Rich Felker.
2445
2446 2011-01-29  Simon Josefsson  <simon@josefsson.org>
2447
2448         rename, unlink, same-inode: Relicense.
2449         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
2450         * modules/unlink (License): Likewise.
2451         * modules/same-inode (License): Likewise.
2452
2453 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
2454
2455         mktime: avoid problems on NetBSD 5 / i386
2456         * lib/mktime.c (long_int): New type.  This works around a problem
2457         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
2458         but time_t is 64 bits, and where I expect the existing code is
2459         wrong in some cases.
2460         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
2461         (ydhms_diff): Bring back the compile-time check for wide-enough
2462         year and yday.
2463
2464         mktime: fix misspelling in comment
2465         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
2466         This merges all recent glibc changes of importance.
2467
2468 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2469
2470         move-if-change: cope with concurrent mv of identical file.
2471         * build-aux/move-if-change (CMPPROG): Accept environment
2472         variable as an override for `cmp'.
2473         (usage): Document CMPPROG.
2474         Adjust comparison to drop stdout.  Cope with failure of mv if
2475         the target file exists and is identical to the source, for
2476         parallel builds.
2477         Report from H.J. Lu against binutils in PR binutils/12283.
2478
2479 2011-01-28  Bruce Korb  <bkorb@gnu.org>
2480
2481         * users.txt: Mention sharutils.
2482
2483 2011-01-28  Simon Josefsson  <simon@josefsson.org>
2484
2485         * users.txt: Mention OATH Toolkit.
2486
2487 2011-01-27  Bruno Haible  <bruno@clisp.org>
2488
2489         Prepare for supporting FreeBSD 10.
2490         * build-aux/config.libpath: Remove handling of freebsd1*.
2491
2492 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
2493
2494         Prepare for supporting FreeBSD 10.
2495         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
2496         match FreeBSD 10.0.
2497
2498 2011-01-27  Bruno Haible  <bruno@clisp.org>
2499
2500         vma-iter, get-rusage-as: Add OpenBSD support.
2501         * modules/vma-iter (configure.ac): Test for mquery.
2502         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
2503         * lib/vma-iter.c: Include <sys/mman.h>.
2504         (vma_iterate): Add an implementation based on mquery().
2505         * lib/resource-ext.h (get_rusage_as): Update comments.
2506         * lib/get-rusage-as.c: Likewise.
2507         * lib/get-rusage-data.c: Likewise.
2508
2509 2011-01-26  Karl Berry  <karl@gnu.org>
2510
2511         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
2512         variables to make it easier to override the makeinfo program used.
2513
2514 2011-01-26  Eric Blake  <eblake@redhat.com>
2515
2516         fcntl: work around Haiku F_DUPFD bugs
2517         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
2518         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
2519         cloexec bit on duplication.
2520         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
2521
2522 2011-01-26  Bruno Haible  <bruno@clisp.org>
2523
2524         Enable memory leak tests on AIX.
2525         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
2526         * tests/test-fprintf-posix3.c (main): Likewise.
2527
2528 2011-01-26  Bruno Haible  <bruno@clisp.org>
2529
2530         Tests for module 'get-rusage-data'.
2531         * modules/get-rusage-data-tests: New file.
2532         * tests/test-get-rusage-data.c: New file.
2533
2534         New module 'get-rusage-data'.
2535         * lib/resource-ext.h (get_rusage_data): New declaration.
2536         * lib/get-rusage-data.c: New file.
2537         * modules/get-rusage-data: New file.
2538
2539 2011-01-25  Bruno Haible  <bruno@clisp.org>
2540
2541         get-rusage-as: Allow for easier testing.
2542         * lib/resource-ext.h (get_rusage_as): Add comment.
2543         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
2544         (main): New function for interactive testing.
2545
2546 2011-01-25  Bruno Haible  <bruno@clisp.org>
2547
2548         vma-iter: Treat Haiku like BeOS.
2549         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
2550         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
2551
2552 2011-01-25  Eric Blake  <eblake@redhat.com>
2553
2554         c-stack: fix regression on cygwin when libsigsegv is present
2555         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
2556
2557 2011-01-24  Bruno Haible  <bruno@clisp.org>
2558
2559         vma-iter: Avoid empty intervals.
2560         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
2561         on an empty interval.
2562
2563 2011-01-24  Jim Meyering  <meyering@redhat.com>
2564
2565         u64: remove unnecessary #include
2566         * lib/u64.h: Don't include <stddef.h>.  It was not used.
2567
2568 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2569
2570         Allow the user to avoid the GNULIB_TEST_* macros.
2571         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
2572
2573 2011-01-23  Bruno Haible  <bruno@clisp.org>
2574
2575         New module 'vma-iter'.
2576         * lib/vma-iter.h: New file.
2577         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
2578         * modules/vma-iter: New file.
2579         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
2580         for get_rusage_as_via_iterator.
2581         (vma_iterate_callback): New function.
2582         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
2583         * modules/get-rusage-as (Depends-on): Add vma-iter.
2584
2585 2011-01-23  Bruno Haible  <bruno@clisp.org>
2586
2587         uninorm: Tweak includes.
2588         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
2589         Reported by Jim Meyering.
2590
2591 2011-01-23  Bruno Haible  <bruno@clisp.org>
2592
2593         get-rusage-as: Improve on NetBSD.
2594         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
2595         /proc, like on FreeBSD.
2596
2597 2011-01-23  Jim Meyering  <meyering@redhat.com>
2598
2599         xreadlink.h: remove unnecessary #include
2600         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
2601
2602         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
2603         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
2604
2605 2011-01-23  Bruno Haible  <bruno@clisp.org>
2606
2607         get-rusage-as: Fix bug.
2608         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
2609         original limit when aborting the first loop.
2610
2611 2011-01-23  Bruno Haible  <bruno@clisp.org>
2612
2613         wctype: Ensure valid C syntax.
2614         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
2615         unconditionally, instead of gl_NEXT_HEADERS conditionally.
2616
2617 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
2618
2619         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
2620         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
2621         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
2622         as they are needed only for configure's test case.
2623         This removes two unnecessary symbols from config.h.
2624
2625         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
2626         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
2627         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
2628         AC_CHECK_HEADERS_ONCE on a header that we also invoke
2629         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
2630         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
2631         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
2632         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
2633         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2634         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2635         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
2636         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2637         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2638         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2639         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
2640         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2641         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
2642         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
2643
2644 2011-01-21  Eric Blake  <eblake@redhat.com>
2645
2646         maintainer-makefile: work with older git for submodule check
2647         * top/maint.mk (public-submodule-commit): Rewrite to avoid
2648         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
2649         Reported by Matthias Bolte.
2650
2651         bootstrap: minor portability fixes
2652         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
2653         (usage): Omit leading capital and trailing . on help phrases, per
2654         GNU Coding Standards.
2655         (check_versions, top level): Prefix messages with script name.
2656
2657 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
2658
2659         bootstrap: support --no-git option
2660         * build-aux/bootstrap: Add --no-git option, to be used when
2661         --gnulib-srcdir points to the exact desired checkout.
2662
2663 2011-01-21  Eric Blake  <eblake@redhat.com>
2664
2665         strerror_r-posix: work with glibc 2.13
2666         * lib/strerror_r.c (strerror_r): Fix return type.
2667
2668 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2669             Bruno Haible  <bruno@clisp.org>
2670
2671         uN_strstr: New unit tests.
2672         * modules/unistr/u8-strstr-tests: New file.
2673         * modules/unistr/u16-strstr-tests: New file.
2674         * modules/unistr/u32-strstr-tests: New file.
2675         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
2676         * tests/unistr/test-u8-strstr.c: New file.
2677         * tests/unistr/test-u16-strstr.c: New file.
2678         * tests/unistr/test-u32-strstr.c: New file.
2679
2680 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2681             Bruno Haible  <bruno@clisp.org>
2682
2683         Make uN_strstr functions O(n) worst-case.
2684         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
2685         16-bit and 32-bit unit cases, use the unibyte algorithm from
2686         lib/mbsstr.c.
2687         * lib/unistr/u8-strstr.c: Include <string.h>.
2688         (UNIT_IS_UINT8_T): New macro.
2689         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
2690         (U_STRLEN, U_STRNLEN): New macros.
2691         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
2692         (U_STRLEN, U_STRNLEN): New macros.
2693         * modules/unistr/u8-strstr (Depends-on): Add strstr.
2694         (configure.ac): Update required libunistring version.
2695         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
2696         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
2697         malloca.
2698         (configure.ac): Update required libunistring version.
2699         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
2700         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
2701         malloca.
2702         (configure.ac): Update required libunistring version.
2703
2704 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2705             Bruno Haible  <bruno@clisp.org>
2706
2707         Prepare for faster uN_strstr functions.
2708         * lib/str-kmp.h: Support definable UNITs.
2709         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
2710         needle_len argument.
2711         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
2712         * lib/mbscasestr.c (mbscasestr): Likewise.
2713
2714 2011-01-21  Pádraig Brady <P@draigBrady.com>
2715
2716         malloca-tests: make faster by unsetting MALLOC_PERTURB_
2717         * tests/test-malloca.c (main): Unset the environment variable
2718         to greatly speed up the test.
2719         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
2720         * modules/malloca-tests: Depend on unsetenv.
2721
2722 2011-01-21  Pádraig Brady <P@draigBrady.com>
2723
2724         ignore-value: remove stdint dependency
2725         * lib/ignore-value.h: Remove <stdint.h>
2726         * modules/ignore-value: Remove stdint dependency.
2727
2728 2011-01-21  Jim Meyering  <meyering@redhat.com>
2729
2730         maint.mk: adjust variable name to be consistent with other gl_ vars
2731         * top/maint.mk (gl_public_submodule_commit): Rename the variable
2732         to be lower case.
2733
2734 2011-01-20  Jim Meyering  <meyering@redhat.com>
2735
2736         maint.mk: make "check" depend on public-submodule-commit by default
2737         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
2738
2739 2011-01-20  Bruno Haible  <bruno@clisp.org>
2740
2741         mbfile, mbiter: Complete change from 2008-12-21.
2742         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
2743         * m4/mbiter.m4 (gl_MBITER): Likewise.
2744
2745 2011-01-20  Jim Meyering  <meyering@redhat.com>
2746
2747         init.sh: insert space between each function name and "()"
2748         * tests/init.sh: Make it a little easier to see that a function's
2749         name is "warn_", and not "warn" when looking at the first part of
2750         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
2751
2752 2011-01-20  Jim Meyering  <meyering@redhat.com>
2753
2754         mountlist: clean up code formatting
2755         * lib/mountlist.c (read_file_system_list): Split a long line,
2756         correct bracing style, use NULL in place of "(struct statfs *)0",
2757         don't parenthesize return value, add spaces around "=" and after
2758         ";-in-for-stmt".
2759
2760 2011-01-14  Markus Duft <mduft@gentoo.org>
2761
2762         mountlist: add support for Interix
2763         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
2764         Apply statvfs to all entries of /dev/fs.
2765         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
2766         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
2767
2768 2011-01-20  Jim Meyering  <meyering@redhat.com>
2769
2770         maint.mk: improve the public-submodule-commit rule
2771         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
2772         to suppress printing of its commands... unless V=1.
2773         Add git submodule's --quiet option to suppress printing of e.g.,
2774         "Entering gnulib" output.
2775         "cd" into $(srcdir) before running git submodule.
2776
2777 2011-01-20  Bruno Haible  <bruno@clisp.org>
2778
2779         include_next: Fix bug introduced on 2011-01-18.
2780         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
2781         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
2782         ac_cv_header_... variable if the second argument is not 'check'.
2783         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
2784         gl_NEXT_HEADERS_INTERNAL.
2785
2786 2011-01-20  Bruno Haible  <bruno@clisp.org>
2787
2788         Allow the user to avoid the GNULIB_TEST_* macros.
2789         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
2790         Suggested by Paul Eggert.
2791
2792 2011-01-14  Jim Meyering  <meyering@redhat.com>
2793
2794         bootstrap: avoid failure when there is no .gitmodules file
2795         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
2796         has been assigned to, even when its value is the empty string.
2797         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
2798         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
2799         Reported by John W. Eaton <jwe@gnu.org>.
2800
2801 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
2802
2803         assume <ctype.h>, ..., <time.h> exist
2804         For years gnulib has been assuming the existence of the headers
2805         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
2806         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
2807         them, since they don't appear to be needed.
2808         * README (Portability guidelines): Document this.
2809         * lib/flock.c: Assume <fcntl.h> exists.
2810         * lib/regex_internal.h: Assume <locale.h> exists.
2811         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
2812         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
2813         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
2814         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
2815         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
2816         * m4/regex.m4 (gl_REGEX): Likewise.
2817         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
2818         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
2819         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
2820         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
2821         * tests/test-argp.c: Likewise.
2822         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
2823
2824         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
2825         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
2826         AA_APPLE_UNIVERSAL_BUILD.  See
2827         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
2828         * NEWS: Document this.
2829
2830 2011-01-19  Eric Blake  <eblake@redhat.com>
2831
2832         c-stack: assume stack overflow if SA_SIGINFO unsupported
2833         * lib/c-stack.c (SIGACTION_WORKS): Rename...
2834         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
2835         sigaction will work.
2836         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
2837         behavior match Linux.
2838         * tests/test-c-stack.c (main): Prefer NULL for pointers.
2839
2840         stdbool-tests: accomodate Haiku
2841         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
2842
2843         binary-io: fix O_TEXT on Haiku
2844         * modules/binary-io (Depends-on): Add fcntl-h.
2845         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
2846         than blindly undefining O_TEXT.
2847         Reported by Scott McCreary.
2848
2849 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
2850
2851         include_next: do not check for standard headers like stddef.h
2852
2853         I found this problem when modifying Emacs to use gnulib.
2854         I noticed that it added HAVE_STDDEF_H to config.h, even though
2855         gnulib always assumes <stddef.h> exists as per README and this
2856         symbol is unnecessary.
2857         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
2858         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
2859         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
2860         faster for headers like stddef.h that are known to exist.
2861         (gl_CHECK_NEXT_HEADERS): Use it.
2862         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
2863         rather than gl_CHECK_NEXT_HEADERS.
2864         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
2865         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
2866
2867 2011-01-18  Eric Blake  <eblake@redhat.com>
2868
2869         ansi-c++-opt: skip C++ dependency style if C++ is unused
2870         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
2871         tests when we know C++ compilation is not desired.
2872         Reported by Scott McCreary.
2873
2874 2011-01-18  Bruno Haible  <bruno@clisp.org>
2875
2876         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
2877         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
2878         (main): Perform test also when getrlimit and setrlimit don't exist or
2879         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
2880         limiting the address space size using setrlimit, compare the address
2881         space size before and after the the test.
2882         * tests/test-dprintf-posix2.c: Likewise.
2883         * tests/test-fprintf-posix3.sh: Update skip messages.
2884         * tests/test-dprintf-posix2.sh: Likewise.
2885         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
2886         * modules/dprintf-posix-tests (Depends-on): Likewise.
2887         Reported by Bruce Korb <bkorb@gnu.org> and
2888         Gary V. Vaughan <gary@gnu.org>.
2889
2890 2011-01-18  Bruno Haible  <bruno@clisp.org>
2891
2892         get-rusage-as: Improvement for Cygwin.
2893         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
2894         areas that are merely reserved.
2895
2896 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
2897
2898         strftime: remove dependencies on multibyte modules
2899
2900         strftime depended on mbrlen, mbsinit, and wchar, but these modules
2901         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
2902         only if __osf__ is defined, and I suspect OSF doesn't need these
2903         other modules.  If my guess is wrong, we'll need to come up with a
2904         variant of strftime that doesn't need the multibyte modules.
2905
2906         I discovered this problem when attempting modify Emacs to use the
2907         strftime module.  With the previous gnulib, this caused Emacs to
2908         need 31 new files, ranging from lib/config.charset to
2909         m4/wint_t.m4.  This was overkill and I expect would be offputting
2910         to the Emacs maintainers.  After this change, only 6 new files are
2911         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
2912         stdbool.m4, and tm_gmtoff.m4.
2913
2914         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
2915         Suggested by Bruno Haible in
2916         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
2917         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
2918         and do not check for wchar.h.
2919         * modules/strftime (Files): Remove m4/mbstate_t.m4.
2920         (Depends-on): Remove mbrlen, mbsinit, wchar.
2921
2922 2011-01-18  Bruno Haible  <bruno@clisp.org>
2923
2924         Tests for module 'get-rusage-as'.
2925         * modules/get-rusage-as-tests: New file.
2926         * tests/test-get-rusage-as.c: New file.
2927
2928         New module 'get-rusage-as'.
2929         * modules/get-rusage-as: New file.
2930         * lib/resource-ext.h: New file.
2931         * lib/get-rusage-as.c: New file.
2932
2933 2011-01-17  Eric Blake  <eblake@redhat.com>
2934
2935         sigaction: relax license from LGPLv3+ to LGPLv2+
2936         * modules/sigaction (License): Relax to LGPLv2+.
2937
2938 2011-01-14  Bruno Haible  <bruno@clisp.org>
2939
2940         filemode: Make function declarations usable in C++ mode.
2941         * lib/filemode.h: Enclose function declarations in extern "C" block.
2942         Reported by John W. Eaton <jwe@gnu.org>.
2943
2944 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
2945
2946         save-cwd: no longer include "xgetcwd.h"
2947         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
2948         This avoids a compilation failure in projects that use save-cwd
2949         without also using the xgetcwd module.
2950
2951 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
2952
2953         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
2954         This is so that a program like Emacs, which needs only dtoastr,
2955         does not have to bother with distributing and compiling ftoastr
2956         and ldtoastr.
2957         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
2958         * modules/dtoastr, modules/ldtoastr: New files.
2959         * modules/ftoastr: Now works just for 'float'.
2960         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
2961         (Makefile.am): Remove ftoastr.h (not needed and no effect),
2962         dtoastr.c, ldtoastr.c.
2963
2964 2011-01-11  Jim Meyering  <meyering@redhat.com>
2965
2966         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
2967         There is no need to work around the lack of the fchdir function,
2968         since gnulib can now provide a replacement when required.
2969         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
2970         * modules/save-cwd (Depends-on): Add fchdir.
2971
2972 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
2973
2974         openat, save-cwd: avoid xmalloc
2975
2976         This removes a direct (but undocumented) dependency of openat on
2977         xalloc, along with an indirect dependency via save-cwd.  It also
2978         removes a dependency of save-cwd on xgetcwd, and thereby
2979         indirectly on xalloc.  This change causes the openat substitute
2980         to fall back on save_cwd when memory is tight, and for save_cwd to
2981         fail instead of dying when memory is tight, but that's good enough.
2982         Problem and initial idea for fix reported by Bastien Roucaries in
2983         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
2984
2985         * lib/openat-proc.c: Include stdlib.h (for malloc), not
2986         xalloc.h (for xmalloc).
2987         (openat_proc_name): Use malloc, not xmalloc.
2988         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
2989         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
2990
2991         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
2992         This avoids heap allocation for file names whose lengths are in
2993         the range 512..1023, with the upper bound increasing to at most
2994         4031 depending on the platform's PATH_MAX.  (We do not want
2995         pathmax.h here as it might supply a non-constant PATH_MAX.)
2996         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
2997         Perhaps they should be moved to malloca.h?
2998         (OPENAT_BUFFER_SIZE): Use them.
2999
3000 2011-01-10  Bruno Haible  <bruno@clisp.org>
3001
3002         doc: Update users.txt.
3003         * users.txt: Add recutils.
3004
3005 2011-01-09  Karl Berry  <karl@gnu.org>
3006
3007         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
3008
3009         * doc/configmake.texi: New file.
3010         * doc/gnulib.texi: Include it.
3011         * modules/configmake: Move documentation from here.
3012
3013 2011-01-09  Bruno Haible  <bruno@clisp.org>
3014
3015         Update to Unicode 6.0.0.
3016         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
3017         (get_lbp): Update for Unicode 6.0.0.
3018         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
3019         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
3020         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
3021         U+11001, U+11038..U+11046. Remove U+06DE.
3022         (uc_width): Fix bounds of planes.
3023         * tests/uniwidth/test-uc_width2.sh: Same updates as in
3024         lib/uniwidth/width.c.
3025         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
3026         trailing whitespace removed.
3027         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
3028         without comments, but with the original copyright notice.
3029         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
3030         * lib/unicase/ignorable.h: Likewise.
3031         * lib/unicase/tocasefold.h: Likewise.
3032         * lib/unicase/tolower.h: Likewise.
3033         * lib/unicase/totitle.h: Likewise.
3034         * lib/unicase/toupper.h: Likewise.
3035         * lib/unictype/bidi_of.h: Likewise.
3036         * lib/unictype/blocks.h: Likewise.
3037         * lib/unictype/categ_C.h: Likewise.
3038         * lib/unictype/categ_Cn.h: Likewise.
3039         * lib/unictype/categ_L.h: Likewise.
3040         * lib/unictype/categ_Ll.h: Likewise.
3041         * lib/unictype/categ_Lm.h: Likewise.
3042         * lib/unictype/categ_Lo.h: Likewise.
3043         * lib/unictype/categ_Lu.h: Likewise.
3044         * lib/unictype/categ_M.h: Likewise.
3045         * lib/unictype/categ_Mc.h: Likewise.
3046         * lib/unictype/categ_Me.h: Likewise.
3047         * lib/unictype/categ_Mn.h: Likewise.
3048         * lib/unictype/categ_N.h: Likewise.
3049         * lib/unictype/categ_Nd.h: Likewise.
3050         * lib/unictype/categ_No.h: Likewise.
3051         * lib/unictype/categ_P.h: Likewise.
3052         * lib/unictype/categ_Po.h: Likewise.
3053         * lib/unictype/categ_S.h: Likewise.
3054         * lib/unictype/categ_Sc.h: Likewise.
3055         * lib/unictype/categ_Sk.h: Likewise.
3056         * lib/unictype/categ_Sm.h: Likewise.
3057         * lib/unictype/categ_So.h: Likewise.
3058         * lib/unictype/categ_of.h: Likewise.
3059         * lib/unictype/combining.h: Likewise.
3060         * lib/unictype/ctype_alnum.h: Likewise.
3061         * lib/unictype/ctype_alpha.h: Likewise.
3062         * lib/unictype/ctype_graph.h: Likewise.
3063         * lib/unictype/ctype_lower.h: Likewise.
3064         * lib/unictype/ctype_print.h: Likewise.
3065         * lib/unictype/ctype_punct.h: Likewise.
3066         * lib/unictype/ctype_upper.h: Likewise.
3067         * lib/unictype/decdigit.h: Likewise.
3068         * lib/unictype/digit.h: Likewise.
3069         * lib/unictype/numeric.h: Likewise.
3070         * lib/unictype/pr_alphabetic.h: Likewise.
3071         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
3072         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
3073         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
3074         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
3075         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
3076         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
3077         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
3078         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
3079         * lib/unictype/pr_case_ignorable.h: Likewise.
3080         * lib/unictype/pr_cased.h: Likewise.
3081         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
3082         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
3083         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
3084         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
3085         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
3086         * lib/unictype/pr_combining.h: Likewise.
3087         * lib/unictype/pr_composite.h: Likewise.
3088         * lib/unictype/pr_currency_symbol.h: Likewise.
3089         * lib/unictype/pr_decimal_digit.h: Likewise.
3090         * lib/unictype/pr_deprecated.h: Likewise.
3091         * lib/unictype/pr_format_control.h: Likewise.
3092         * lib/unictype/pr_grapheme_base.h: Likewise.
3093         * lib/unictype/pr_grapheme_extend.h: Likewise.
3094         * lib/unictype/pr_grapheme_link.h: Likewise.
3095         * lib/unictype/pr_id_continue.h: Likewise.
3096         * lib/unictype/pr_id_start.h: Likewise.
3097         * lib/unictype/pr_ideographic.h: Likewise.
3098         * lib/unictype/pr_lowercase.h: Likewise.
3099         * lib/unictype/pr_math.h: Likewise.
3100         * lib/unictype/pr_numeric.h: Likewise.
3101         * lib/unictype/pr_other_alphabetic.h: Likewise.
3102         * lib/unictype/pr_other_id_continue.h: Likewise.
3103         * lib/unictype/pr_other_math.h: Likewise.
3104         * lib/unictype/pr_punctuation.h: Likewise.
3105         * lib/unictype/pr_sentence_terminal.h: Likewise.
3106         * lib/unictype/pr_terminal_punctuation.h: Likewise.
3107         * lib/unictype/pr_unassigned_code_value.h: Likewise.
3108         * lib/unictype/pr_unified_ideograph.h: Likewise.
3109         * lib/unictype/pr_uppercase.h: Likewise.
3110         * lib/unictype/pr_xid_continue.h: Likewise.
3111         * lib/unictype/pr_xid_start.h: Likewise.
3112         * lib/unictype/scripts.h: Likewise.
3113         * lib/unictype/scripts_byname.gperf: Likewise.
3114         * lib/unictype/sy_java_ident.h: Likewise.
3115         * lib/unigbrk/gbrkprop.h: Likewise.
3116         * lib/unilbrk/lbrkprop1.h: Likewise.
3117         * lib/unilbrk/lbrkprop2.h: Likewise.
3118         * lib/uninorm/decomposition-table2.h: Likewise.
3119         * lib/uniwbrk/wbrkprop.h: Likewise.
3120         * tests/unicase/test-cased.c: Likewise.
3121         * tests/unicase/test-ignorable.c: Likewise.
3122         * tests/unicase/test-uc_tolower.c: Likewise.
3123         * tests/unicase/test-uc_totitle.c: Likewise.
3124         * tests/unicase/test-uc_toupper.c: Likewise.
3125         * tests/unictype/test-categ_C.c: Likewise.
3126         * tests/unictype/test-categ_Cn.c: Likewise.
3127         * tests/unictype/test-categ_L.c: Likewise.
3128         * tests/unictype/test-categ_Ll.c: Likewise.
3129         * tests/unictype/test-categ_Lm.c: Likewise.
3130         * tests/unictype/test-categ_Lo.c: Likewise.
3131         * tests/unictype/test-categ_Lu.c: Likewise.
3132         * tests/unictype/test-categ_M.c: Likewise.
3133         * tests/unictype/test-categ_Mc.c: Likewise.
3134         * tests/unictype/test-categ_Me.c: Likewise.
3135         * tests/unictype/test-categ_Mn.c: Likewise.
3136         * tests/unictype/test-categ_N.c: Likewise.
3137         * tests/unictype/test-categ_Nd.c: Likewise.
3138         * tests/unictype/test-categ_No.c: Likewise.
3139         * tests/unictype/test-categ_P.c: Likewise.
3140         * tests/unictype/test-categ_Po.c: Likewise.
3141         * tests/unictype/test-categ_S.c: Likewise.
3142         * tests/unictype/test-categ_Sc.c: Likewise.
3143         * tests/unictype/test-categ_Sk.c: Likewise.
3144         * tests/unictype/test-categ_Sm.c: Likewise.
3145         * tests/unictype/test-categ_So.c: Likewise.
3146         * tests/unictype/test-ctype_alnum.c: Likewise.
3147         * tests/unictype/test-ctype_alpha.c: Likewise.
3148         * tests/unictype/test-ctype_graph.c: Likewise.
3149         * tests/unictype/test-ctype_lower.c: Likewise.
3150         * tests/unictype/test-ctype_print.c: Likewise.
3151         * tests/unictype/test-ctype_punct.c: Likewise.
3152         * tests/unictype/test-ctype_upper.c: Likewise.
3153         * tests/unictype/test-decdigit.h: Likewise.
3154         * tests/unictype/test-digit.h: Likewise.
3155         * tests/unictype/test-numeric.h: Likewise.
3156         * tests/unictype/test-pr_alphabetic.c: Likewise.
3157         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
3158         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
3159         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
3160         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
3161         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
3162         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
3163         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
3164         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
3165         * tests/unictype/test-pr_case_ignorable.c: Likewise.
3166         * tests/unictype/test-pr_cased.c: Likewise.
3167         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
3168         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
3169         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
3170         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
3171         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
3172         * tests/unictype/test-pr_combining.c: Likewise.
3173         * tests/unictype/test-pr_composite.c: Likewise.
3174         * tests/unictype/test-pr_currency_symbol.c: Likewise.
3175         * tests/unictype/test-pr_decimal_digit.c: Likewise.
3176         * tests/unictype/test-pr_deprecated.c: Likewise.
3177         * tests/unictype/test-pr_format_control.c: Likewise.
3178         * tests/unictype/test-pr_grapheme_base.c: Likewise.
3179         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
3180         * tests/unictype/test-pr_grapheme_link.c: Likewise.
3181         * tests/unictype/test-pr_id_continue.c: Likewise.
3182         * tests/unictype/test-pr_id_start.c: Likewise.
3183         * tests/unictype/test-pr_ideographic.c: Likewise.
3184         * tests/unictype/test-pr_lowercase.c: Likewise.
3185         * tests/unictype/test-pr_math.c: Likewise.
3186         * tests/unictype/test-pr_numeric.c: Likewise.
3187         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
3188         * tests/unictype/test-pr_other_id_continue.c: Likewise.
3189         * tests/unictype/test-pr_other_math.c: Likewise.
3190         * tests/unictype/test-pr_punctuation.c: Likewise.
3191         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
3192         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
3193         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
3194         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
3195         * tests/unictype/test-pr_uppercase.c: Likewise.
3196         * tests/unictype/test-pr_xid_continue.c: Likewise.
3197         * tests/unictype/test-pr_xid_start.c: Likewise.
3198         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
3199         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
3200         changes.
3201         * lib/unictype/categ_Cc.h: Likewise.
3202         * lib/unictype/categ_Cf.h: Likewise.
3203         * lib/unictype/categ_Co.h: Likewise.
3204         * lib/unictype/categ_Cs.h: Likewise.
3205         * lib/unictype/categ_Lt.h: Likewise.
3206         * lib/unictype/categ_Nl.h: Likewise.
3207         * lib/unictype/categ_Pc.h: Likewise.
3208         * lib/unictype/categ_Pd.h: Likewise.
3209         * lib/unictype/categ_Pe.h: Likewise.
3210         * lib/unictype/categ_Pf.h: Likewise.
3211         * lib/unictype/categ_Pi.h: Likewise.
3212         * lib/unictype/categ_Ps.h: Likewise.
3213         * lib/unictype/categ_Z.h: Likewise.
3214         * lib/unictype/categ_Zl.h: Likewise.
3215         * lib/unictype/categ_Zp.h: Likewise.
3216         * lib/unictype/categ_Zs.h: Likewise.
3217         * lib/unictype/ctype_blank.h: Likewise.
3218         * lib/unictype/ctype_cntrl.h: Likewise.
3219         * lib/unictype/ctype_digit.h: Likewise.
3220         * lib/unictype/ctype_space.h: Likewise.
3221         * lib/unictype/ctype_xdigit.h: Likewise.
3222         * lib/unictype/mirror.h: Likewise.
3223         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
3224         * lib/unictype/pr_bidi_block_separator.h: Likewise.
3225         * lib/unictype/pr_bidi_common_separator.h: Likewise.
3226         * lib/unictype/pr_bidi_control.h: Likewise.
3227         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
3228         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
3229         * lib/unictype/pr_bidi_european_digit.h: Likewise.
3230         * lib/unictype/pr_bidi_pdf.h: Likewise.
3231         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
3232         * lib/unictype/pr_bidi_whitespace.h: Likewise.
3233         * lib/unictype/pr_dash.h: Likewise.
3234         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
3235         * lib/unictype/pr_diacritic.h: Likewise.
3236         * lib/unictype/pr_extender.h: Likewise.
3237         * lib/unictype/pr_hex_digit.h: Likewise.
3238         * lib/unictype/pr_hyphen.h: Likewise.
3239         * lib/unictype/pr_ids_binary_operator.h: Likewise.
3240         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
3241         * lib/unictype/pr_ignorable_control.h: Likewise.
3242         * lib/unictype/pr_iso_control.h: Likewise.
3243         * lib/unictype/pr_join_control.h: Likewise.
3244         * lib/unictype/pr_left_of_pair.h: Likewise.
3245         * lib/unictype/pr_line_separator.h: Likewise.
3246         * lib/unictype/pr_logical_order_exception.h: Likewise.
3247         * lib/unictype/pr_non_break.h: Likewise.
3248         * lib/unictype/pr_not_a_character.h: Likewise.
3249         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
3250         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
3251         * lib/unictype/pr_other_id_start.h: Likewise.
3252         * lib/unictype/pr_other_lowercase.h: Likewise.
3253         * lib/unictype/pr_other_uppercase.h: Likewise.
3254         * lib/unictype/pr_paired_punctuation.h: Likewise.
3255         * lib/unictype/pr_paragraph_separator.h: Likewise.
3256         * lib/unictype/pr_pattern_syntax.h: Likewise.
3257         * lib/unictype/pr_pattern_white_space.h: Likewise.
3258         * lib/unictype/pr_private_use.h: Likewise.
3259         * lib/unictype/pr_quotation_mark.h: Likewise.
3260         * lib/unictype/pr_radical.h: Likewise.
3261         * lib/unictype/pr_soft_dotted.h: Likewise.
3262         * lib/unictype/pr_space.h: Likewise.
3263         * lib/unictype/pr_titlecase.h: Likewise.
3264         * lib/unictype/pr_variation_selector.h: Likewise.
3265         * lib/unictype/pr_white_space.h: Likewise.
3266         * lib/unictype/pr_zero_width.h: Likewise.
3267         * lib/unictype/sy_c_ident.h: Likewise.
3268         * lib/unictype/sy_c_whitespace.h: Likewise.
3269         * lib/unictype/sy_java_whitespace.h: Likewise.
3270         * lib/uninorm/composition-table.gperf: Likewise.
3271         * lib/uninorm/decomposition-table1.h: Likewise.
3272         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
3273         LB8.
3274         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
3275         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
3276         * modules/unictype/*: Bump version number of expected libunistring
3277         version.
3278
3279 2011-01-09  Bruno Haible  <bruno@clisp.org>
3280
3281         Update to Unicode 5.2.0.
3282         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
3283         trailing whitespace removed.
3284
3285 2011-01-09  Bruno Haible  <bruno@clisp.org>
3286
3287         New Unicode character properties, from Unicode 5.2.0.
3288         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
3289         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
3290         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
3291         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
3292         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
3293         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
3294         uc_is_property_cased, uc_is_property_case_ignorable,
3295         uc_is_property_changes_when_lowercased,
3296         uc_is_property_changes_when_uppercased,
3297         uc_is_property_changes_when_titlecased,
3298         uc_is_property_changes_when_casefolded,
3299         uc_is_property_changes_when_casemapped): New declarations.
3300         * lib/unictype/pr_byname.gperf: Add the new properties.
3301         * modules/unictype/property-byname (Depends-on): Depend on the new
3302         properties modules.
3303         * modules/unictype/property-all (Depends-on): Likewise.
3304         * MODULES.html.sh (Unicode string functions): Add
3305         unictype/property-case-ignorable, unictype/property-cased,
3306         unictype/property-changes-when-casefolded,
3307         unictype/property-changes-when-casemapped,
3308         unictype/property-changes-when-lowercased,
3309         unictype/property-changes-when-titlecased,
3310         unictype/property-changes-when-uppercased.
3311
3312         New module 'unictype/property-changes-when-casemapped'.
3313         * modules/unictype/property-changes-when-casemapped: New file.
3314         * lib/unictype/pr_changes_when_casemapped.c: New file.
3315         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
3316         generated by gen-uni-tables.
3317         * modules/unictype/property-changes-when-casemapped-tests: New file.
3318         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
3319         automatically generated by gen-uni-tables.
3320
3321         New module 'unictype/property-changes-when-casefolded'.
3322         * modules/unictype/property-changes-when-casefolded: New file.
3323         * lib/unictype/pr_changes_when_casefolded.c: New file.
3324         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
3325         generated by gen-uni-tables.
3326         * modules/unictype/property-changes-when-casefolded-tests: New file.
3327         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
3328         automatically generated by gen-uni-tables.
3329
3330         New module 'unictype/property-changes-when-titlecased'.
3331         * modules/unictype/property-changes-when-titlecased: New file.
3332         * lib/unictype/pr_changes_when_titlecased.c: New file.
3333         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
3334         generated by gen-uni-tables.
3335         * modules/unictype/property-changes-when-titlecased-tests: New file.
3336         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
3337         automatically generated by gen-uni-tables.
3338
3339         New module 'unictype/property-changes-when-uppercased'.
3340         * modules/unictype/property-changes-when-uppercased: New file.
3341         * lib/unictype/pr_changes_when_uppercased.c: New file.
3342         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
3343         generated by gen-uni-tables.
3344         * modules/unictype/property-changes-when-uppercased-tests: New file.
3345         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
3346         automatically generated by gen-uni-tables.
3347
3348         New module 'unictype/property-changes-when-lowercased'.
3349         * modules/unictype/property-changes-when-lowercased: New file.
3350         * lib/unictype/pr_changes_when_lowercased.c: New file.
3351         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
3352         generated by gen-uni-tables.
3353         * modules/unictype/property-changes-when-lowercased-tests: New file.
3354         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
3355         automatically generated by gen-uni-tables.
3356
3357         New module 'unictype/property-case-ignorable'.
3358         * modules/unictype/property-case-ignorable: New file.
3359         * lib/unictype/pr_case_ignorable.c: New file.
3360         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
3361         by gen-uni-tables.
3362         * modules/unictype/property-case-ignorable-tests: New file.
3363         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
3364         generated by gen-uni-tables.
3365
3366         New module 'unictype/property-cased'.
3367         * modules/unictype/property-cased: New file.
3368         * lib/unictype/pr_cased.c: New file.
3369         * lib/unictype/pr_cased.h: New file, automatically generated by
3370         gen-uni-tables.
3371         * modules/unictype/property-cased-tests: New file.
3372         * tests/unictype/test-pr_cased.c: New file, automatically generated by
3373         gen-uni-tables.
3374
3375 2011-01-09  Bruno Haible  <bruno@clisp.org>
3376
3377         Update to Unicode 5.2.0.
3378         * lib/gen-uni-tables.c (output_predicate, output_category,
3379         output_combclass, output_bidi_category, output_decimal_digit_test,
3380         output_decimal_digit, output_digit_test, output_digit,
3381         output_numeric_test, output_numeric, output_mirror, output_scripts,
3382         output_scripts_byname, output_blocks, output_ident_category): Fix
3383         comment header.
3384         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
3385         get_wbp.
3386         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
3387         items.
3388         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
3389         Changes_When_Lowercased, Changes_When_Uppercased,
3390         Changes_When_Titlecased, Changes_When_Casefolded,
3391         Changes_When_Casemapped.
3392         (is_property_alphabetic, is_property_default_ignorable_code_point):
3393         Update for Unicode 5.2.0.
3394         (is_property_cased, is_property_case_ignorable,
3395         is_property_changes_when_lowercased,
3396         is_property_changes_when_uppercased,
3397         is_property_changes_when_titlecased,
3398         is_property_changes_when_casefolded,
3399         is_property_changes_when_casemapped): New functions.
3400         (output_properties): Output also the properties cased, case_ignorable,
3401         changes_when_lowercased, changes_when_uppercased,
3402         changes_when_titlecased, changes_when_casefolded,
3403         changes_when_casemapped.
3404         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
3405         Unicode TR#11 revision 17 -> 19.
3406         (LBP_CP): New enumeration value.
3407         (LBP_*): Adjust values accordingly.
3408         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
3409         TR#14 revision 22 -> 24.
3410         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
3411         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
3412         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
3413         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
3414         is_WBP_MIDLETTER.
3415         (output_composition_tables): Allow for 24 bits instead of 16 bits in
3416         the code1 and code2 of each composition rule.
3417         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
3418         * lib/unicase/ignorable.h: Likewise.
3419         * lib/unicase/tocasefold.h: Likewise.
3420         * lib/unicase/tolower.h: Likewise.
3421         * lib/unicase/totitle.h: Likewise.
3422         * lib/unicase/toupper.h: Likewise.
3423         * lib/unictype/bidi_of.h: Likewise.
3424         * lib/unictype/blocks.h: Likewise.
3425         * lib/unictype/categ_C.h: Likewise.
3426         * lib/unictype/categ_Cf.h: Likewise.
3427         * lib/unictype/categ_Cn.h: Likewise.
3428         * lib/unictype/categ_L.h: Likewise.
3429         * lib/unictype/categ_Ll.h: Likewise.
3430         * lib/unictype/categ_Lm.h: Likewise.
3431         * lib/unictype/categ_Lo.h: Likewise.
3432         * lib/unictype/categ_Lu.h: Likewise.
3433         * lib/unictype/categ_M.h: Likewise.
3434         * lib/unictype/categ_Mc.h: Likewise.
3435         * lib/unictype/categ_Mn.h: Likewise.
3436         * lib/unictype/categ_N.h: Likewise.
3437         * lib/unictype/categ_Nd.h: Likewise.
3438         * lib/unictype/categ_Nl.h: Likewise.
3439         * lib/unictype/categ_No.h: Likewise.
3440         * lib/unictype/categ_P.h: Likewise.
3441         * lib/unictype/categ_Pd.h: Likewise.
3442         * lib/unictype/categ_Po.h: Likewise.
3443         * lib/unictype/categ_S.h: Likewise.
3444         * lib/unictype/categ_Sc.h: Likewise.
3445         * lib/unictype/categ_So.h: Likewise.
3446         * lib/unictype/categ_of.h: Likewise.
3447         * lib/unictype/combining.h: Likewise.
3448         * lib/unictype/ctype_alnum.h: Likewise.
3449         * lib/unictype/ctype_alpha.h: Likewise.
3450         * lib/unictype/ctype_graph.h: Likewise.
3451         * lib/unictype/ctype_lower.h: Likewise.
3452         * lib/unictype/ctype_print.h: Likewise.
3453         * lib/unictype/ctype_punct.h: Likewise.
3454         * lib/unictype/ctype_upper.h: Likewise.
3455         * lib/unictype/decdigit.h: Likewise.
3456         * lib/unictype/digit.h: Likewise.
3457         * lib/unictype/numeric.h: Likewise.
3458         * lib/unictype/pr_alphabetic.h: Likewise.
3459         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
3460         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
3461         * lib/unictype/pr_bidi_european_digit.h: Likewise.
3462         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
3463         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
3464         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
3465         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
3466         * lib/unictype/pr_combining.h: Likewise.
3467         * lib/unictype/pr_composite.h: Likewise.
3468         * lib/unictype/pr_currency_symbol.h: Likewise.
3469         * lib/unictype/pr_dash.h: Likewise.
3470         * lib/unictype/pr_decimal_digit.h: Likewise.
3471         * lib/unictype/pr_deprecated.h: Likewise.
3472         * lib/unictype/pr_diacritic.h: Likewise.
3473         * lib/unictype/pr_extender.h: Likewise.
3474         * lib/unictype/pr_grapheme_base.h: Likewise.
3475         * lib/unictype/pr_grapheme_extend.h: Likewise.
3476         * lib/unictype/pr_grapheme_link.h: Likewise.
3477         * lib/unictype/pr_id_continue.h: Likewise.
3478         * lib/unictype/pr_id_start.h: Likewise.
3479         * lib/unictype/pr_ideographic.h: Likewise.
3480         * lib/unictype/pr_ignorable_control.h: Likewise.
3481         * lib/unictype/pr_logical_order_exception.h: Likewise.
3482         * lib/unictype/pr_lowercase.h: Likewise.
3483         * lib/unictype/pr_numeric.h: Likewise.
3484         * lib/unictype/pr_other_alphabetic.h: Likewise.
3485         * lib/unictype/pr_punctuation.h: Likewise.
3486         * lib/unictype/pr_sentence_terminal.h: Likewise.
3487         * lib/unictype/pr_terminal_punctuation.h: Likewise.
3488         * lib/unictype/pr_unassigned_code_value.h: Likewise.
3489         * lib/unictype/pr_unified_ideograph.h: Likewise.
3490         * lib/unictype/pr_uppercase.h: Likewise.
3491         * lib/unictype/pr_xid_continue.h: Likewise.
3492         * lib/unictype/pr_xid_start.h: Likewise.
3493         * lib/unictype/pr_zero_width.h: Likewise.
3494         * lib/unictype/scripts.h: Likewise.
3495         * lib/unictype/scripts_byname.gperf: Likewise.
3496         * lib/unictype/sy_java_ident.h: Likewise.
3497         * lib/unigbrk/gbrkprop.h: Likewise.
3498         * lib/unilbrk/lbrkprop1.h: Likewise.
3499         * lib/unilbrk/lbrkprop2.h: Likewise.
3500         * lib/unilbrk/lbrktables.h: Likewise.
3501         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
3502         LBP_CP. Implement rule LB30.
3503         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
3504         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
3505         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
3506         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
3507         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
3508         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
3509         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
3510         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
3511         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
3512         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
3513         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
3514         bits instead of 16 bits in the code1 and code2 of each composition
3515         rule.
3516         (uc_composition): Update for Unicode 5.2.0.
3517         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
3518         * lib/uninorm/decomposition-table2.h: Likewise.
3519         * lib/uniwbrk/wbrkprop.h: Likewise.
3520         * tests/unicase/test-cased.c: Likewise.
3521         * tests/unicase/test-ignorable.c: Likewise.
3522         * tests/unicase/test-uc_tolower.c: Likewise.
3523         * tests/unicase/test-uc_totitle.c: Likewise.
3524         * tests/unicase/test-uc_toupper.c: Likewise.
3525         * tests/unictype/test-categ_C.c: Likewise.
3526         * tests/unictype/test-categ_Cf.c: Likewise.
3527         * tests/unictype/test-categ_Cn.c: Likewise.
3528         * tests/unictype/test-categ_L.c: Likewise.
3529         * tests/unictype/test-categ_Ll.c: Likewise.
3530         * tests/unictype/test-categ_Lm.c: Likewise.
3531         * tests/unictype/test-categ_Lo.c: Likewise.
3532         * tests/unictype/test-categ_Lu.c: Likewise.
3533         * tests/unictype/test-categ_M.c: Likewise.
3534         * tests/unictype/test-categ_Mc.c: Likewise.
3535         * tests/unictype/test-categ_Mn.c: Likewise.
3536         * tests/unictype/test-categ_N.c: Likewise.
3537         * tests/unictype/test-categ_Nd.c: Likewise.
3538         * tests/unictype/test-categ_Nl.c: Likewise.
3539         * tests/unictype/test-categ_No.c: Likewise.
3540         * tests/unictype/test-categ_P.c: Likewise.
3541         * tests/unictype/test-categ_Pd.c: Likewise.
3542         * tests/unictype/test-categ_Po.c: Likewise.
3543         * tests/unictype/test-categ_S.c: Likewise.
3544         * tests/unictype/test-categ_Sc.c: Likewise.
3545         * tests/unictype/test-categ_So.c: Likewise.
3546         * tests/unictype/test-ctype_alnum.c: Likewise.
3547         * tests/unictype/test-ctype_alpha.c: Likewise.
3548         * tests/unictype/test-ctype_graph.c: Likewise.
3549         * tests/unictype/test-ctype_lower.c: Likewise.
3550         * tests/unictype/test-ctype_print.c: Likewise.
3551         * tests/unictype/test-ctype_punct.c: Likewise.
3552         * tests/unictype/test-ctype_upper.c: Likewise.
3553         * tests/unictype/test-decdigit.h: Likewise.
3554         * tests/unictype/test-digit.h: Likewise.
3555         * tests/unictype/test-numeric.h: Likewise.
3556         * tests/unictype/test-pr_alphabetic.c: Likewise.
3557         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
3558         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
3559         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
3560         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
3561         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
3562         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
3563         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
3564         * tests/unictype/test-pr_combining.c: Likewise.
3565         * tests/unictype/test-pr_composite.c: Likewise.
3566         * tests/unictype/test-pr_currency_symbol.c: Likewise.
3567         * tests/unictype/test-pr_dash.c: Likewise.
3568         * tests/unictype/test-pr_decimal_digit.c: Likewise.
3569         * tests/unictype/test-pr_deprecated.c: Likewise.
3570         * tests/unictype/test-pr_diacritic.c: Likewise.
3571         * tests/unictype/test-pr_extender.c: Likewise.
3572         * tests/unictype/test-pr_grapheme_base.c: Likewise.
3573         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
3574         * tests/unictype/test-pr_grapheme_link.c: Likewise.
3575         * tests/unictype/test-pr_id_continue.c: Likewise.
3576         * tests/unictype/test-pr_id_start.c: Likewise.
3577         * tests/unictype/test-pr_ideographic.c: Likewise.
3578         * tests/unictype/test-pr_ignorable_control.c: Likewise.
3579         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
3580         * tests/unictype/test-pr_lowercase.c: Likewise.
3581         * tests/unictype/test-pr_numeric.c: Likewise.
3582         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
3583         * tests/unictype/test-pr_punctuation.c: Likewise.
3584         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
3585         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
3586         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
3587         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
3588         * tests/unictype/test-pr_uppercase.c: Likewise.
3589         * tests/unictype/test-pr_xid_continue.c: Likewise.
3590         * tests/unictype/test-pr_xid_start.c: Likewise.
3591         * tests/unictype/test-pr_zero_width.c: Likewise.
3592         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
3593         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
3594         changed behaviour: line breaking is now disallowed between a letter
3595         or '=' and '('.
3596         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
3597         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
3598         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
3599         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
3600         * tests/uniwidth/test-uc_width2.sh: Same updates as in
3601         lib/uniwidth/width.c.
3602         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
3603         without comments, but with the original copyright notice.
3604         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
3605         changes.
3606         * lib/unictype/categ_Cc.h: Likewise.
3607         * lib/unictype/categ_Co.h: Likewise.
3608         * lib/unictype/categ_Cs.h: Likewise.
3609         * lib/unictype/categ_Lt.h: Likewise.
3610         * lib/unictype/categ_Me.h: Likewise.
3611         * lib/unictype/categ_Pc.h: Likewise.
3612         * lib/unictype/categ_Pe.h: Likewise.
3613         * lib/unictype/categ_Pf.h: Likewise.
3614         * lib/unictype/categ_Pi.h: Likewise.
3615         * lib/unictype/categ_Ps.h: Likewise.
3616         * lib/unictype/categ_Sk.h: Likewise.
3617         * lib/unictype/categ_Sm.h: Likewise.
3618         * lib/unictype/categ_Z.h: Likewise.
3619         * lib/unictype/categ_Zl.h: Likewise.
3620         * lib/unictype/categ_Zp.h: Likewise.
3621         * lib/unictype/categ_Zs.h: Likewise.
3622         * lib/unictype/ctype_blank.h: Likewise.
3623         * lib/unictype/ctype_cntrl.h: Likewise.
3624         * lib/unictype/ctype_digit.h: Likewise.
3625         * lib/unictype/ctype_space.h: Likewise.
3626         * lib/unictype/ctype_xdigit.h: Likewise.
3627         * lib/unictype/mirror.h: Likewise.
3628         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
3629         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
3630         * lib/unictype/pr_bidi_block_separator.h: Likewise.
3631         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
3632         * lib/unictype/pr_bidi_common_separator.h: Likewise.
3633         * lib/unictype/pr_bidi_control.h: Likewise.
3634         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
3635         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
3636         * lib/unictype/pr_bidi_pdf.h: Likewise.
3637         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
3638         * lib/unictype/pr_bidi_whitespace.h: Likewise.
3639         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
3640         * lib/unictype/pr_format_control.h: Likewise.
3641         * lib/unictype/pr_hex_digit.h: Likewise.
3642         * lib/unictype/pr_hyphen.h: Likewise.
3643         * lib/unictype/pr_ids_binary_operator.h: Likewise.
3644         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
3645         * lib/unictype/pr_iso_control.h: Likewise.
3646         * lib/unictype/pr_join_control.h: Likewise.
3647         * lib/unictype/pr_left_of_pair.h: Likewise.
3648         * lib/unictype/pr_line_separator.h: Likewise.
3649         * lib/unictype/pr_math.h: Likewise.
3650         * lib/unictype/pr_non_break.h: Likewise.
3651         * lib/unictype/pr_not_a_character.h: Likewise.
3652         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
3653         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
3654         * lib/unictype/pr_other_id_continue.h: Likewise.
3655         * lib/unictype/pr_other_id_start.h: Likewise.
3656         * lib/unictype/pr_other_lowercase.h: Likewise.
3657         * lib/unictype/pr_other_math.h: Likewise.
3658         * lib/unictype/pr_other_uppercase.h: Likewise.
3659         * lib/unictype/pr_paired_punctuation.h: Likewise.
3660         * lib/unictype/pr_paragraph_separator.h: Likewise.
3661         * lib/unictype/pr_pattern_syntax.h: Likewise.
3662         * lib/unictype/pr_pattern_white_space.h: Likewise.
3663         * lib/unictype/pr_private_use.h: Likewise.
3664         * lib/unictype/pr_quotation_mark.h: Likewise.
3665         * lib/unictype/pr_radical.h: Likewise.
3666         * lib/unictype/pr_soft_dotted.h: Likewise.
3667         * lib/unictype/pr_space.h: Likewise.
3668         * lib/unictype/pr_titlecase.h: Likewise.
3669         * lib/unictype/pr_variation_selector.h: Likewise.
3670         * lib/unictype/pr_white_space.h: Likewise.
3671         * lib/unictype/sy_c_ident.h: Likewise.
3672         * lib/unictype/sy_c_whitespace.h: Likewise.
3673         * lib/unictype/sy_java_whitespace.h: Likewise.
3674         * modules/uni*/*: Bump version number of expected libunistring version.
3675         Reported by Simon Josefsson.
3676
3677 2011-01-09  Karl Heuer  <kwzh@gnu.org>
3678
3679         useless-if-before-free: fix typo in --help and make the internal,
3680         automatic version date update process work once again.
3681         --help output contained a NUL character instead of the
3682         backslash-zero that was intended.  Also, the "must lie within
3683         the first 8 lines" line is on line 9, and hence not getting
3684         automatically updated.
3685         * build-aux/useless-if-before-free: Fix the former by adding a
3686         backslash, and the latter by condensing the three lines of what-it-does
3687         to a single line, leaving one line of slack for the future.
3688
3689 2011-01-09  Bruno Haible  <bruno@clisp.org>
3690
3691         uniwidth/width: Fix width of U+1D173..U+1D17A.
3692         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
3693         symbolic_width, output_width_property_test): New functions.
3694         (main): Invoke output_nonspacing_property, output_width_property_test.
3695         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
3696         U+1D173..U+1D17A.
3697         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
3698         1.
3699         * modules/uniwidth/*: Bump version number of expected libunistring
3700         version.
3701         * modules/unilbrk/*: Likewise.
3702
3703 2011-01-08  Bruno Haible  <bruno@clisp.org>
3704
3705         uninorm tests: Preserve copyright of Unicode data file.
3706         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
3707         Mention modifications.
3708
3709 2011-01-08  Bruno Haible  <bruno@clisp.org>
3710
3711         gen-uni-tables: Prepare for Unicode 5.2.0.
3712         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
3713         (debug_output_lbp, output_lbp): Update.
3714
3715 2011-01-08  Bruno Haible  <bruno@clisp.org>
3716
3717         unilbrk: Clarify gen-uni-tables.c code.
3718         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
3719         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
3720         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
3721
3722 2011-01-07  Bruno Haible  <bruno@clisp.org>
3723
3724         strtod: Restore errno when successfully parsing Infinity or NaN.
3725         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
3726         restore the original errno.
3727
3728 2011-01-07  Bruno Haible  <bruno@clisp.org>
3729
3730         remove test: Avoid failure on HP-UX 11.
3731         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
3732
3733 2011-01-07  Bruno Haible  <bruno@clisp.org>
3734
3735         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
3736         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
3737         error code.
3738
3739 2011-01-07  Pádraig Brady <P@draigBrady.com>
3740
3741         ignore-value: fixup comments, and add Eric Blake
3742         as an author since he rewrote the macros.
3743         * lib/ignore-value.h (ignore_value):  State that
3744         we now support aggregates.  Also specify exactly
3745         when the GCC warn_unused_result feature was added.
3746
3747 2011-01-06  Eric Blake  <eblake@redhat.com>
3748
3749         ignore-value: support aggregate types
3750         * lib/ignore-value.h (ignore_value): Provide separate gcc
3751         definition.
3752         * modules/ignore-value-tests: New test module.
3753         * tests/test-ignore-value.c: New test.
3754
3755         maint.mk: improve sc_prohibit_strcmp regex
3756         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
3757         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
3758         definition of STRNEQ.
3759
3760         signal: work around Haiku issue with SIGBUS
3761         * lib/siglist.h: Add comment.
3762         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
3763         strsignal's favoring of SIGSEGV.
3764         * tests/test-signal.c (main): Avoid test failure.
3765         * doc/posix-headers/signal.texi (signal.h): Document the issue.
3766         Reported by Scott McCreary.
3767
3768         maint.mk: add pre-release check to ensure submodule commits are public
3769         * top/maint.mk (public-submodule-commit): New rule.
3770         (submodule-checks): New variable.
3771         (alpha beta stable): Depend on the variable.
3772
3773 2011-01-05  Pádraig Brady <P@draigBrady.com>
3774         and Jim Meyering  <meyering@redhat.com>
3775
3776         ignore-value: make ignore_value more generic; deprecate ignore_ptr
3777         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
3778         (ATTRIBUTE_DEPRECATED): Define.
3779         (_ignore_case): New function.
3780         (ignore_value): New macro, to replace the old function.
3781         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
3782         * modules/ignore-value (Depends-on): Add stdint.
3783
3784 2011-01-04  Eric Blake  <eblake@redhat.com>
3785
3786         doc: regenerate INSTALL
3787         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
3788         @firstparagraphindent support, now that autoconf dropped it.
3789         (INSTALL_PRELUDE): Reinstate old macro.
3790         * doc/install.texi: Resync from autoconf.
3791         * doc/INSTALL: Reflect recent autoconf update.
3792         * doc/INSTALL.ISO: Likewise.
3793         * doc/INSTALL.UTF-8: Likewise.
3794         Reported by Karl Berry.
3795
3796 2011-01-04  Bruce Korb  <address@hidden>
3797
3798         git-version-gen: avoid a sub-shell
3799         * build-aux/git-version-gen: Redirect stderr in `...` via
3800         "exec 2>...", rather than via an added sub-shell.
3801
3802 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
3803
3804         git-version-gen: use (...) rather than sh -c '...'
3805         * build-aux/git-version-gen: Rather than hard-coding a shell's name
3806         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
3807
3808 2011-01-03  Jim Meyering  <meyering@redhat.com>
3809
3810         git-version-gen: convert leading TABs to spaces
3811         * build-aux/git-version-gen: Expand leading TABs.
3812
3813         git-version-gen: handle failed "git rev-list"
3814         * build-aux/git-version-gen: Rather than leaking a "fatal" error
3815         from git and proceeding as if it had succeeded but printed no SHA1
3816         checksums, suppress the diagnostic and handle the failure.
3817         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
3818
3819         git-version-gen: include command name in one more diagnostic
3820         * build-aux/git-version-gen: When the required .tarball-version file
3821         was missing or unreadable, you might see the diagnostic from "cat",
3822         but no trace of the name of the invoking script.  Now, you still see
3823         the diagnostic from cat, but also get one from "git-version-gen: ".
3824         Inspired by a patch from Bruce Korb.
3825
3826         update-copyright: adjust test to match changed code
3827         * tests/test-update-copyright.sh: Change test's expected output
3828         to match new actual output.
3829
3830 2011-01-02  Bruno Haible  <bruno@clisp.org>
3831
3832         getlogin_r: Avoid test failure on HP-UX 11.
3833         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
3834         ERANGE when the second argument is zero.
3835         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
3836         portability problem.
3837
3838 2011-01-02  Bruce Korb  <bkorb@gnu.org>
3839
3840         * build-aux/update-copyright: doc Simon's changes
3841
3842 2011-01-02  Simon Josefsson  <simon@josefsson.org>
3843
3844         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
3845         environment variable.
3846
3847 2011-01-02  Bruno Haible  <bruno@clisp.org>
3848
3849         unigbrk: Avoid gcc warnings.
3850         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
3851         unused variable.
3852         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
3853         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
3854         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
3855         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
3856         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
3857         Change type of first argument to 'const char *'.
3858         (main): Remove unused variable.
3859         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
3860         type of first argument to 'const char *'.
3861         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
3862         Likewise.
3863         (main): Change type of variable 's'.
3864         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
3865         to 'int'.
3866
3867 2011-01-02  Bruno Haible  <bruno@clisp.org>
3868
3869         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
3870         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
3871         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
3872         bug.
3873         * lib/pwrite.c: Undo 2010-12-31 patch.
3874         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
3875
3876 2011-01-02  Bruno Haible  <bruno@clisp.org>
3877
3878         pread: Fix test whether it works.
3879         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
3880
3881 2011-01-02  Bruno Haible  <bruno@clisp.org>
3882
3883         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
3884         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
3885         ends in "6". Don't require a specific month name. Try also the locale
3886         names found on HP-UX 11 and Solaris 7.
3887
3888 2011-01-02  Bruno Haible  <bruno@clisp.org>
3889
3890         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
3891         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
3892         C linkage.
3893         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
3894
3895 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
3896
3897         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
3898         for consistency, since the "cluster" term is not used elsewhere.
3899         * lib/unigbrk.in.h: Update name.
3900         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
3901         * lib/unigbrk/u16-grapheme-next.c: Update name.
3902         * lib/unigbrk/u16-grapheme-prev.c: Update name.
3903         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
3904         * lib/unigbrk/u32-grapheme-next.c: Update name.
3905         * lib/unigbrk/u32-grapheme-prev.c: Update name.
3906         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
3907         * lib/unigbrk/u8-grapheme-next.c: Update name.
3908         * lib/unigbrk/u8-grapheme-prev.c: Update name.
3909         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
3910         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
3911         Suggested by Bruno Haible.
3912
3913 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
3914
3915         Remove module 'u8-grapheme-len' as too redundant with
3916         'u8-grapheme-next'.
3917         * modules/unigbrk/u8-grapheme-len: Delete file.
3918         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
3919         * lib/unigbrk.in.h: Remove prototype for deleted function.
3920         * lib/unigbrk/u8-grapheme-len.c: Delete file.
3921         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
3922
3923         Remove module 'u16-grapheme-len' as too redundant with
3924         'u16-grapheme-next'.
3925         * modules/unigbrk/u16-grapheme-len: Delete file.
3926         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
3927         * lib/unigbrk.in.h: Remove prototype for deleted function.
3928         * lib/unigbrk/u16-grapheme-len.c: Delete file.
3929         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
3930
3931         Remove module 'u32-grapheme-len' as too redundant with
3932         'u32-grapheme-next'.
3933         * modules/unigbrk/u32-grapheme-len: Delete file.
3934         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
3935         * lib/unigbrk.in.h: Remove prototype for deleted function.
3936         * lib/unigbrk/u32-grapheme-len.c: Delete file.
3937         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
3938
3939         Suggested by Bruno Haible.
3940
3941 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
3942
3943         * unigbrk.in.h: Fix typo: "ben" => "been".
3944         Reported by Bruno Haible.
3945
3946 2011-01-01  Jim Meyering  <meyering@redhat.com>
3947
3948         maint: update almost all copyright ranges to include 2011
3949         Run the new "make update-copyright" rule.
3950
3951 2011-01-01  Jim Meyering  <meyering@redhat.com>
3952
3953         maint: update-copyright: exempt doc/INSTALL*
3954         * Makefile (update-copyright): Also exclude doc/INSTALL*,
3955         since they are generated.  Suggested by Bruno Haible.
3956
3957 2011-01-01  Jim Meyering  <meyering@redhat.com>
3958
3959         maint: refine the update-copyright rule
3960         * Makefile (update-copyright): Also exclude any file that includes
3961         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
3962         code that merely generates the comment.
3963
3964 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
3965
3966         New module 'u8-grapheme-len'.
3967         * modules/unigbrk/u8-grapheme-len: New file.
3968         * modules/unigbrk/u8-grapheme-len-tests: New file.
3969         * lib/unigbrk.in.h: Add prototype for new function.
3970         * lib/unigbrk/u8-grapheme-len.c: New file.
3971         * tests/unigbrk/test-u8-grapheme-len.c: New file.
3972
3973         New module 'u16-grapheme-len'.
3974         * modules/unigbrk/u16-grapheme-len: New file.
3975         * modules/unigbrk/u16-grapheme-len-tests: New file.
3976         * lib/unigbrk.in.h: Add prototype for new function.
3977         * lib/unigbrk/u16-grapheme-len.c: New file.
3978         * tests/unigbrk/test-u16-grapheme-len.c: New file.
3979
3980         New module 'u32-grapheme-len'.
3981         * modules/unigbrk/u32-grapheme-len: New file.
3982         * modules/unigbrk/u32-grapheme-len-tests: New file.
3983         * lib/unigbrk.in.h: Add prototype for new function.
3984         * lib/unigbrk/u32-grapheme-len.c: New file.
3985         * tests/unigbrk/test-u32-grapheme-len.c: New file.
3986
3987         New module 'u8-grapheme-next'.
3988         * modules/unigbrk/u8-grapheme-next: New file.
3989         * modules/unigbrk/u8-grapheme-next-tests: New file.
3990         * lib/unigbrk.in.h: Add prototype for new function.
3991         * lib/unigbrk/u8-grapheme-next.c: New file.
3992         * tests/unigbrk/test-u8-grapheme-next.c: New file.
3993
3994         New module 'u16-grapheme-next'.
3995         * modules/unigbrk/u16-grapheme-next: New file.
3996         * modules/unigbrk/u16-grapheme-next-tests: New file.
3997         * lib/unigbrk.in.h: Add prototype for new function.
3998         * lib/unigbrk/u16-grapheme-next.c: New file.
3999         * tests/unigbrk/test-u16-grapheme-next.c: New file.
4000
4001         New module 'u32-grapheme-next'.
4002         * modules/unigbrk/u32-grapheme-next: New file.
4003         * modules/unigbrk/u32-grapheme-next-tests: New file.
4004         * lib/unigbrk.in.h: Add prototype for new function.
4005         * lib/unigbrk/u32-grapheme-next.c: New file.
4006         * tests/unigbrk/test-u32-grapheme-next.c: New file.
4007
4008         New module 'u8-grapheme-prev'.
4009         * modules/unigbrk/u8-grapheme-prev: New file.
4010         * modules/unigbrk/u8-grapheme-prev-tests: New file.
4011         * lib/unigbrk.in.h: Add prototype for new function.
4012         * lib/unigbrk/u8-grapheme-prev.c: New file.
4013         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
4014
4015         New module 'u16-grapheme-prev'.
4016         * modules/unigbrk/u16-grapheme-prev: New file.
4017         * modules/unigbrk/u16-grapheme-prev-tests: New file.
4018         * lib/unigbrk.in.h: Add prototype for new function.
4019         * lib/unigbrk/u16-grapheme-prev.c: New file.
4020         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
4021
4022         New module 'u32-grapheme-prev'.
4023         * modules/unigbrk/u32-grapheme-prev: New file.
4024         * modules/unigbrk/u32-grapheme-prev-tests: New file.
4025         * lib/unigbrk.in.h: Add prototype for new function.
4026         * lib/unigbrk/u32-grapheme-prev.c: New file.
4027         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
4028
4029         New module 'u8-grapheme-breaks'.
4030         * modules/unigbrk/u8-grapheme-breaks: New file.
4031         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
4032         * lib/unigbrk.in.h: Add prototype for new function.
4033         * lib/unigbrk/u8-grapheme-breaks.c: New file.
4034         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
4035
4036         New module 'u16-grapheme-breaks'.
4037         * modules/unigbrk/u16-grapheme-breaks: New file.
4038         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
4039         * lib/unigbrk.in.h: Add prototype for new function.
4040         * lib/unigbrk/u16-grapheme-breaks.c: New file.
4041         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
4042
4043         New module 'u32-grapheme-breaks'.
4044         * modules/unigbrk/u32-grapheme-breaks: New file.
4045         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
4046         * lib/unigbrk.in.h: Add prototype for new function.
4047         * lib/unigbrk/u32-grapheme-breaks.c: New file.
4048         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
4049
4050         New module 'ulc-grapheme-breaks'.
4051         * modules/unigbrk/ulc-grapheme-breaks: New file.
4052         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
4053         * m4/locale-ar.m4: New file.
4054         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
4055         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
4056         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
4057
4058 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
4059
4060         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
4061         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
4062         modified how this file was generated before I initially submitted
4063         the module, but failed to regenerate it.  This meant that several
4064         of the level2 entries were wrong.
4065         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
4066         Remove the division-by-2 that is folded into the table now that
4067         gbrkprop.h has been regenerated properly.  Now -1 entries are
4068         handled correctly.
4069
4070         New module 'unigbrk/uc-gbrk-prop-tests'.
4071         * modules/unigbrk/uc-gbrk-prop-tests: New file.
4072         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
4073         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
4074         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
4075
4076 2011-01-01  Bruno Haible  <bruno@clisp.org>
4077
4078         Avoid use of hexadecimal escapes.
4079         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
4080         instead of hexadecimal escapes.
4081
4082 2011-01-01  Jim Meyering  <meyering@redhat.com>
4083
4084         maint: new rule to update copyright year ranges
4085         * Makefile (update-copyright): New rule.
4086
4087         maint: indent with TABs in Makefile
4088         * Makefile: Expand leading sequences of spaces to TABs
4089
4090         version-etc: update the copyright year it reports
4091         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
4092
4093 2010-12-31  Bruno Haible  <bruno@clisp.org>
4094
4095         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
4096         * lib/isfinite.c (zerof, zerod, zerol): New variables.
4097         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
4098         zero.
4099
4100 2010-12-31  Bruno Haible  <bruno@clisp.org>
4101
4102         pwrite: Work around HP-UX 11.11 bug.
4103         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
4104         works and set REPLACE_PWRITE if not.
4105         * lib/pwrite.c (pwrite): Add an implementation that uses the system
4106         function.
4107         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
4108
4109 2010-12-31  Bruno Haible  <bruno@clisp.org>
4110
4111         pread: Work around HP-UX 11 bugs.
4112         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
4113         and set REPLACE_PREAD if not.
4114         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
4115
4116 2010-12-31  Eric Blake  <eblake@redhat.com>
4117
4118         nl_langinfo: fix YESEXPR on Irix 6.5
4119         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
4120         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
4121         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
4122         it.
4123
4124 2010-12-31  Bruno Haible  <bruno@clisp.org>
4125
4126         iconv: Document HP-UX 11 bug.
4127         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
4128
4129 2010-12-31  Bruno Haible  <bruno@clisp.org>
4130
4131         ldexpl: Fix link error on HP-UX 11.
4132         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
4133         LDEXPL_LIBM, using $ISNANL_LIBM.
4134
4135 2010-12-31  Eric Blake  <eblake@redhat.com>
4136
4137         ftello: avoid compilation failure with SunStudio c89
4138         * lib/ftello.c (ftello): Use lseek, not llseek.
4139
4140         tests: avoid failing coreutils tests on cygwin
4141         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
4142         (create_exe_shims_): Return 0 when skipping.
4143
4144 2010-12-31  Bruno Haible  <bruno@clisp.org>
4145
4146         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
4147         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
4148
4149 2010-12-31  Bruno Haible  <bruno@clisp.org>
4150
4151         waitpid: Fix link error in C++ mode.
4152         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
4153
4154 2010-12-31  Bruno Haible  <bruno@clisp.org>
4155
4156         isnan: Use GCC built-ins when possible.
4157         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
4158         __builtin_isnan.
4159         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
4160         (isnan): Define using GCC built-ins for GCC >= 4.0.
4161
4162 2010-12-31  Bruno Haible  <bruno@clisp.org>
4163
4164         isnand: Fix mistake.
4165         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
4166         __builtin_isnand.
4167
4168 2010-12-31  Bruno Haible  <bruno@clisp.org>
4169
4170         open: Avoid C++ error on HP-UX 11.
4171         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
4172
4173 2010-12-31  Bruno Haible  <bruno@clisp.org>
4174
4175         time_r: Add missing declarations on HP-UX 11.
4176         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
4177         instead of HAVE_LOCALTIME_R.
4178         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
4179         HAVE_LOCALTIME_R always.
4180         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
4181         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
4182         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
4183         HAVE_LOCALTIME_R.
4184         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
4185         * doc/posix-functions/localtime_r.texi: Likewise.
4186
4187 2010-12-29  Eric Blake  <eblake@redhat.com>
4188
4189         mountlist: tweak previous commit
4190         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
4191         Reported by Paul Eggert.
4192
4193         mountlist: fix local drive detection on cygwin
4194         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
4195         that works for cygwin.
4196
4197 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
4198
4199         ftoastr, snprintf: ftoastr + snprintf module
4200         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
4201         since the snprintf module now should be good enough here.
4202         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
4203         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
4204         and gl_MODULE_INDICATOR([snprintf]), but the former enables
4205         GNULIB_SNPRINTF only for the test directory, and the latter
4206         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
4207         seems to suffice by itself.
4208
4209 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
4210
4211         alloca: one step towards thread-safety
4212         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
4213         need for a static variable.  All callers changed.  This does not
4214         make the alloca replacement thread-safe, but it's one step.
4215
4216         tests: minor indenting change
4217         * tests/init.sh: Sync from coreutils housekeeping patch
4218         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
4219         to keep lines within 80 columns.
4220
4221 2010-12-28  Jim Meyering  <meyering@redhat.com>
4222
4223         regex: don't infloop on persistent failing calloc
4224         * lib/regexec.c (build_trtable): Return failure indication upon
4225         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
4226         In glibc, this was fixed for version 2.13:
4227         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
4228
4229 2010-12-28  Bruno Haible  <bruno@clisp.org>
4230             Paul Eggert <eggert@cs.ucla.edu>
4231
4232         linkat: Make implementation robust against system behaviour variations.
4233         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
4234         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
4235         way, and to -2 if it needs a generic runtime test.
4236         * lib/linkat.c (solaris_optimized_link_immediate,
4237         solaris_optimized_link_follow): New functions.
4238         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
4239         (check_same_link): Use it.
4240
4241 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
4242
4243         New module 'unigbrk/base'.
4244         * modules/unigbrk/base: New file.
4245         * lib/unigbrk.in.h: New file.
4246
4247         New module 'unigbrk/uc-gbrk-prop'.
4248         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
4249         * modules/unigbrk/uc-gbrk-prop: New file.
4250         * lib/unigbrk/gbrkprop.h: New file.
4251         * lib/unigbrk/uc-gbrk-prop.c: New file.
4252
4253         New module 'unigbrk/uc-is-grapheme-break'.
4254         * modules/unigbrk/uc-is-grapheme-break: New file.
4255         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
4256         * lib/unigbrk/uc-is-grapheme-break.c: New file.
4257         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
4258         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
4259         * tests/unigbrk/GraphemeBreakTest.txt: New file.
4260
4261         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
4262
4263 2010-12-27  Bruno Haible  <bruno@clisp.org>
4264
4265         linkat test: Avoid failure on Solaris 11 2010-11.
4266         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
4267
4268 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
4269
4270         utimens: work around glibc rounding bug on more platforms
4271         * lib/utimens.c (fdutimens): Work around rounding bug even if
4272         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
4273         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
4274
4275 2010-12-27  Bruno Haible  <bruno@clisp.org>
4276
4277         select tests: Improve comments.
4278         * tests/test-select.c (do_select): Add comments.
4279
4280 2010-12-27  Bruno Haible  <bruno@clisp.org>
4281
4282         select tests: Safer way of handling timeout.
4283         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
4284         at every invocation.
4285
4286 2010-12-27  Bruno Haible  <bruno@clisp.org>
4287
4288         select tests: Use 'bool' where appropriate.
4289         * tests/test-select.c (connect_to_socket): Change argument type to
4290         'bool'.
4291
4292 2010-12-27  Bruno Haible  <bruno@clisp.org>
4293
4294         select tests: Use existing modules.
4295         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
4296         (configure.ac): Don't test for unistd.h.
4297         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
4298         declared in <unistd.h>.
4299
4300 2010-12-27  Bruno Haible  <bruno@clisp.org>
4301
4302         mbrtowc: Work around a Solaris 7 bug.
4303         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
4304         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
4305         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
4306         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
4307         MBRTOWC_NULL_ARG1_BUG.
4308         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
4309         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
4310         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
4311         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
4312
4313 2010-12-27  Jim Meyering  <meyering@redhat.com>
4314
4315         read-file.c: tweak syntax
4316         * lib/read-file.c (fread_file): Remove space after "*" in function
4317         definitions.
4318
4319 2010-12-27  Bruno Haible  <bruno@clisp.org>
4320
4321         times test: Avoid gcc warnings on OSF/1.
4322         * tests/test-times.c (main): Cast printf arguments from clock_t to
4323         'long int'.
4324
4325 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
4326
4327         utimens: work around glibc rounding bug on older Linux kernels
4328         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
4329         on Linux with a glibc whose utimes might not work, then work
4330         around a longstanding glibc bug involving rounding rather than
4331         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
4332         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
4333
4334 2010-12-26  Bruno Haible  <bruno@clisp.org>
4335
4336         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
4337         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
4338         _GL_CXXALIAS_SYS.
4339         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4340
4341 2010-12-26  Bruno Haible  <bruno@clisp.org>
4342
4343         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
4344         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
4345         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
4346         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
4347         looking for the declaration.
4348         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
4349         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
4350         problem.
4351         * doc/posix-functions/inet_pton.texi: Likewise.
4352
4353 2010-12-26  Bruno Haible  <bruno@clisp.org>
4354
4355         arpa_inet: Use the common idioms with C++ support.
4356         * lib/arpa_inet.in.h: Include c++defs.h.
4357         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
4358         support.
4359         * modules/arpa_inet (Depends-on): Add c++defs.
4360         (Makefile.am): Substitute the contents of c++defs.h.
4361         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
4362         * modules/arpa_inet-c++-tests: New file.
4363         * tests/test-arpa_inet-c++.cc: New file.
4364
4365 2010-12-25  Bruno Haible  <bruno@clisp.org>
4366
4367         Fix more C++ link errors on Solaris 8.
4368         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
4369         $(LIB_EACCESS).
4370         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
4371         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
4372         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
4373         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
4374         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
4375
4376 2010-12-25  Bruno Haible  <bruno@clisp.org>
4377
4378         printf-posix: Fix link error when a non-GCC compiler is used.
4379         * lib/stdio.in.h (printf): When not using GCC, override printf
4380         correctly.
4381         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4382
4383 2010-12-25  Bruno Haible  <bruno@clisp.org>
4384
4385         strerror_r-posix: Update doc.
4386         * doc/posix-functions/strerror_r.texi: Update doc about the return
4387         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
4388
4389 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4390
4391         utimens: simplify the logic of the previous change
4392         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
4393         This should not affect whether the test succeeds or fails.
4394
4395         utimens: configure better on hosts with NFS clock skew
4396         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
4397         uses the clock of the local host.  It might use the clock of the
4398         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
4399         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
4400
4401 2010-12-25  Bruno Haible  <bruno@clisp.org>
4402
4403         ptsname test: Avoid failure on Solaris.
4404         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
4405         open a pseudo-terminal; don't use BSD-style ptys.
4406         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
4407
4408 2010-12-25  Bruno Haible  <bruno@clisp.org>
4409
4410         ptsname: Avoid ERANGE failure on some systems.
4411         * lib/ptsname.c (buffer): Increase size.
4412
4413 2010-12-25  Bruno Haible  <bruno@clisp.org>
4414
4415         rename, renameat: Avoid test failures at NFS mounted locations.
4416         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
4417         so that subsequent mkdir calls succeed.
4418
4419 2010-12-25  Bruno Haible  <bruno@clisp.org>
4420
4421         iswblank: Fix C++ link error on Solaris 8.
4422         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
4423         _GL_FUNCDECL_SYS.
4424
4425 2010-12-25  Bruno Haible  <bruno@clisp.org>
4426
4427         unistd: Fix C++ link error on Solaris 8.
4428         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
4429
4430 2010-12-25  Bruno Haible  <bruno@clisp.org>
4431
4432         readlink doc: Mention an old glibc bug.
4433         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
4434
4435 2010-12-25  Bruno Haible  <bruno@clisp.org>
4436
4437         fcntl-h: Fix for use of C++ on glibc systems.
4438         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
4439         also on glibc systems in C++ mode.
4440         Reported by Gary V. Vaughan <gary@gnu.org>.
4441
4442 2010-12-25  Bruno Haible  <bruno@clisp.org>
4443
4444         roundl-ieee: Make it work on OSF/1 5.1 with cc.
4445         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
4446
4447 2010-12-25  Bruno Haible  <bruno@clisp.org>
4448
4449         truncl-ieee: Make it work on OSF/1 5.1 with cc.
4450         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
4451         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
4452         test whether truncl works according to ISO C 99 with IEC 60559.
4453         * m4/truncl-ieee.m4: New file.
4454         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
4455         m4/signbit.m4.
4456         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
4457
4458 2010-12-25  Bruno Haible  <bruno@clisp.org>
4459
4460         ceill-ieee: Make it work on OSF/1 5.1 with cc.
4461         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
4462         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
4463         test whether ceill works according to ISO C 99 with IEC 60559.
4464         * m4/ceill-ieee.m4: New file.
4465         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
4466         m4/signbit.m4.
4467         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
4468
4469 2010-12-25  Bruno Haible  <bruno@clisp.org>
4470
4471         Ensure all prerequisites of <wchar.h> are included.
4472         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
4473         before <wchar.h>.
4474         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
4475         gl_MBRLEN_NUL_RETVAL): Likewise.
4476         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
4477         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
4478         AC_FUNC_MBRTOWC): Likewise.
4479         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
4480         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
4481         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
4482         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
4483         Likewise.
4484         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4485         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
4486         (gl_WCHAR_H): Improve comments.
4487         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4488
4489 2010-12-25  Bruno Haible  <bruno@clisp.org>
4490
4491         strtok_r: Fix C syntax error in autoconf macro.
4492         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
4493         characters in test program.
4494
4495 2010-12-24  Bruno Haible  <bruno@clisp.org>
4496
4497         ceil, trunc, round: Fix gcc warnings.
4498         * lib/ceil.c (MIN): Undefine before redefining.
4499         * lib/trunc.c (MIN): Likewise.
4500         * lib/round.c (MIN): Likewise.
4501         Include <math.h> first.
4502
4503 2010-12-24  Bruno Haible  <bruno@clisp.org>
4504
4505         select tests: Avoid failures on OSF/1 5.1.
4506         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
4507         failure of closing the last socket; it may fail with ECONNRESET.
4508
4509 2010-12-24  Eric Blake  <eblake@redhat.com>
4510
4511         stdint: avoid HP-UX 10.20 preprocessor bug
4512         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
4513         than #if.
4514         * tests/test-floor2.c (main): Likewise.
4515         Reported by Peter O'Gorman.
4516
4517         pipe: make obsoletion transition easier
4518         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
4519         * modules/pipe (Files): Include revived file.
4520         (Include): Drop reference, to mirror getdate's behavior.
4521
4522 2010-12-24  Bruno Haible  <bruno@clisp.org>
4523
4524         sys_socket: Hide mismatch of declarations on NonStop Kernel.
4525         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
4526         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
4527         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4528
4529 2010-12-24  Bruno Haible  <bruno@clisp.org>
4530
4531         gethostname: Ensure declaration on NonStop Kernel.
4532         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
4533         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4534
4535 2010-12-24  Bruno Haible  <bruno@clisp.org>
4536
4537         sys_select: Ensure all necessary types on NonStop Kernel.
4538         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
4539         include <sys/time.h>.
4540         * doc/posix-headers/sys_select.texi: Mention that it's missing on
4541         NonStop Kernel.
4542         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4543
4544 2010-12-24  Bruno Haible  <bruno@clisp.org>
4545
4546         sys_select: Remove unneeded include.
4547         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
4548         have <sys/select.h>.
4549
4550 2010-12-24  Bruno Haible  <bruno@clisp.org>
4551
4552         gethostname: Provide a fallback for HOST_NAME_MAX.
4553         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
4554         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
4555         instead.
4556         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4557
4558 2010-12-24  Bruno Haible  <bruno@clisp.org>
4559
4560         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
4561         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
4562         (SA_RESTART): Likewise.
4563         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4564
4565 2010-12-24  Bruno Haible  <bruno@clisp.org>
4566
4567         signal: Define NSIG.
4568         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
4569         * tests/test-signal.c (nsig): New variable.
4570         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4571
4572 2010-12-24  Bruno Haible  <bruno@clisp.org>
4573
4574         rename, renameat: Avoid test failures on OSF/1 5.1.
4575         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
4576         alternative error codes.
4577         * tests/test-renameat.c (main): Likewise.
4578
4579 2010-12-24  Bruno Haible  <bruno@clisp.org>
4580
4581         *printf: Detect large precisions bug on Solaris 10/SPARC.
4582         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
4583         by Paul Eggert.
4584         * tests/test-snprintf-posix.h (test_function): Add this test code here
4585         too.
4586         * tests/test-sprintf-posix.h (test_function): Likewise.
4587         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4588         * tests/test-vasprintf-posix.c (test_function): Likewise.
4589         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
4590         around by gnulib.
4591         * doc/posix-functions/printf.texi: Likewise.
4592         * doc/posix-functions/snprintf.texi: Likewise.
4593         * doc/posix-functions/sprintf.texi: Likewise.
4594         * doc/posix-functions/vfprintf.texi: Likewise.
4595         * doc/posix-functions/vprintf.texi: Likewise.
4596         * doc/posix-functions/vsnprintf.texi: Likewise.
4597         * doc/posix-functions/vsprintf.texi: Likewise.
4598         * doc/posix-functions/dprintf.texi: Undo last commit.
4599         * doc/posix-functions/vdprintf.texi: Likewise.
4600
4601 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
4602
4603         tests: port test-fdutimensat.c to Solaris 8
4604         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
4605         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
4606         On Solaris 8, it fails with errno == ENOSYS, because there is no
4607         futimens (so it can't use the fd), and there is no lutimens (so it
4608         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
4609
4610         vsnprintf: make more consistent with snprintf; doc fixes
4611
4612         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
4613         the byte count return problem was promoted from the snprintf-posix
4614         to the snprintf module.
4615         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
4616         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
4617         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
4618         * tests/test-snprintf.c (main): Check the byte count returned.
4619         * tests/test-vsnprintf.c (main): Likewise.
4620
4621 2010-12-23  Eric Blake  <eblake@redhat.com>
4622
4623         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
4624         * modules/sigpipe (License): Relax license.
4625
4626 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
4627
4628         doc: document Solaris printf bug with large float precisions
4629         * doc/posix-functions/dprintf.texi (dprintf):
4630         * doc/posix-functions/fprintf.texi (fprintf):
4631         * doc/posix-functions/printf.texi (printf):
4632         * doc/posix-functions/snprintf.texi (snprintf):
4633         * doc/posix-functions/sprintf.texi (sprintf):
4634         * doc/posix-functions/vdprintf.texi (vdprintf):
4635         * doc/posix-functions/vfprintf.texi (vfprintf):
4636         * doc/posix-functions/vprintf.texi (vprintf):
4637         * doc/posix-functions/vsnprintf.texi (vsnprintf):
4638         * doc/posix-functions/vsprintf.texi (vsprintf):
4639         Mention that these functions mishandle large floating point
4640         precisions on Solaris 10.  The same bug is also present in Solaris
4641         8, and I assume earlier.  This causes "cd gnulib-tests; make
4642         check" to fail on Solaris 8 (and I assume, later) when building
4643         the latest coreutils, in test-vasprintf-posix's call to
4644         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
4645         the wide flavors (e.g., wprintf) so this patch just updates the
4646         documentation for the narrow ones.
4647
4648         test-posixtm.c: add two tests
4649         * tests/test-posixtm.c: Add two tests, to highlight the
4650         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
4651         around this bug; this is merely to document it.
4652
4653 2010-12-22  Bruno Haible  <bruno@clisp.org>
4654
4655         getlogin_r: Work around portability problem on OSF/1.
4656         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
4657         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
4658         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
4659         test for a truncated result.
4660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
4661         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
4662         * modules/getlogin_r (Depends-on): Add memchr.
4663         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
4664
4665 2010-12-22  Bruno Haible  <bruno@clisp.org>
4666
4667         ptsname: Avoid test failure on OSF/1 5.1.
4668         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
4669         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
4670         (same_slave): New function.
4671         (main): Use it to compare ptsname's result with the expected file name.
4672
4673 2010-12-22  Bruno Haible  <bruno@clisp.org>
4674
4675         Port extended stdio modules to HP NonStop Kernel.
4676         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
4677         macros.
4678         * lib/fbufmode.c: Update comments.
4679         * lib/fflush.c: Likewise.
4680         * lib/fpurge.c: Likewise.
4681         * lib/freadable.c: Likewise.
4682         * lib/freadahead.c: Likewise.
4683         * lib/freading.c: Likewise.
4684         * lib/freadptr.c: Likewise.
4685         * lib/freadseek.c: Likewise.
4686         * lib/fseeko.c: Likewise.
4687         * lib/fseterr.c: Likewise.
4688         * lib/fwritable.c: Likewise.
4689         * lib/fwriting.c: Likewise.
4690         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4691
4692 2010-12-22  Bruno Haible  <bruno@clisp.org>
4693
4694         ttyname_r: Work around bug on OSF/1 5.1.
4695         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
4696         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
4697         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
4698         present.
4699         * lib/ttyname_r.c (ttyname_r): Update comments.
4700
4701 2010-12-22  Bruno Haible  <bruno@clisp.org>
4702
4703         round: Implement result sign according to IEEE 754.
4704         * lib/round.c (MIN, MINUS_ZERO): New macros.
4705         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
4706         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
4707         * tests/test-round-ieee.c (main): Likewise.
4708         * tests/test-roundl-ieee.c (main): Likewise.
4709
4710         trunc: Implement result sign according to IEEE 754.
4711         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
4712         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
4713         * tests/test-trunc2.c: Include minus-zero.h.
4714         (MINUS_ZERO): New macro.
4715         (trunc_reference): Keep in sync with lib/trunc.c.
4716         * tests/test-truncf2.c: Include minus-zero.h.
4717         (MINUS_ZERO): New macro.
4718         (truncf_reference): Keep in sync with lib/trunc.c.
4719         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
4720         * tests/test-trunc-ieee.c (main): Likewise.
4721         * tests/test-truncl-ieee.c (main): Likewise.
4722
4723         ceil: Implement result sign according to IEEE 754.
4724         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
4725         (FUNC): Return -0.0 for -1 < x < 0.
4726         * tests/test-ceil2.c: Include minus-zero.h.
4727         (MINUS_ZERO): New macro.
4728         (ceil_reference): Keep in sync with lib/ceil.c.
4729         * tests/test-ceilf2.c: Include minus-zero.h.
4730         (MINUS_ZERO): New macro.
4731         (ceilf_reference): Keep in sync with lib/ceil.c.
4732         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
4733         * tests/test-ceil-ieee.c (main): Likewise.
4734         * tests/test-ceill-ieee.c (main): Likewise.
4735
4736         floor: Implement result sign according to IEEE 754.
4737         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
4738         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
4739         * tests/test-floorf2.c (floorf_reference): Likewise.
4740         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
4741         * tests/test-floor-ieee.c (main): Likewise.
4742         * tests/test-floorl-ieee.c (main): Likewise.
4743
4744 2010-12-22  Bruno Haible  <bruno@clisp.org>
4745
4746         getaddrinfo: Update doc.
4747         * doc/posix-functions/gai_strerror.texi: Return type is also different
4748         on AIX and HP-UX.
4749
4750 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
4751
4752         getaddrinfo, inet_ntop: Update doc for Solaris.
4753         * doc/posix-functions/gai_strerror.texi: Return type is also an
4754         issue on Solaris 9 and earlier.
4755         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
4756         on Solaris 10 and earlier.
4757
4758 2010-12-21  Bruno Haible  <bruno@clisp.org>
4759
4760         New module 'roundl-ieee'.
4761         * modules/roundl-ieee: New file.
4762         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
4763         test whether roundl works according to ISO C 99 with IEC 60559.
4764         * m4/roundl-ieee.m4: New file.
4765         * modules/roundl-ieee-tests: New file.
4766         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
4767         * tests/test-roundl.c (main): Remove signbit tests.
4768         * modules/roundl-tests (Depends-on): Remove signbit.
4769         * doc/posix-functions/roundl.texi: Mention the new module.
4770
4771 2010-12-21  Bruno Haible  <bruno@clisp.org>
4772
4773         New module 'truncl-ieee'.
4774         * modules/truncl-ieee: New file.
4775         * modules/truncl-ieee-tests: New file.
4776         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
4777         * tests/test-truncl.c (main): Remove signbit tests.
4778         * modules/truncl-tests (Depends-on): Remove signbit.
4779         * doc/posix-functions/truncl.texi: Mention the new module.
4780
4781 2010-12-21  Bruno Haible  <bruno@clisp.org>
4782
4783         New module 'ceill-ieee'.
4784         * modules/ceill-ieee: New file.
4785         * modules/ceill-ieee-tests: New file.
4786         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
4787         * tests/test-ceill.c (main): Remove signbit tests.
4788         * modules/ceill-tests (Depends-on): Remove signbit.
4789         * doc/posix-functions/ceill.texi: Mention the new module.
4790
4791 2010-12-21  Bruno Haible  <bruno@clisp.org>
4792
4793         New module 'floorl-ieee'.
4794         * modules/floorl-ieee: New file.
4795         * modules/floorl-ieee-tests: New file.
4796         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
4797         * tests/test-floorl.c (main): Remove signbit tests.
4798         * modules/floorl-tests (Depends-on): Remove signbit.
4799         * doc/posix-functions/floorl.texi: Mention the new module.
4800
4801 2010-12-21  Bruno Haible  <bruno@clisp.org>
4802
4803         New module 'round-ieee'.
4804         * modules/round-ieee: New file.
4805         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
4806         whether round works according to ISO C 99 with IEC 60559.
4807         * m4/round-ieee.m4: New file.
4808         * modules/round-ieee-tests: New file.
4809         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
4810         * tests/test-round1.c (main): Remove signbit tests.
4811         * modules/round-tests (Depends-on): Remove 'signbit'.
4812         * doc/posix-functions/round.texi: Mention the new module.
4813
4814 2010-12-21  Bruno Haible  <bruno@clisp.org>
4815
4816         New module 'trunc-ieee'.
4817         * modules/trunc-ieee: New file.
4818         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
4819         whether trunc works according to ISO C 99 with IEC 60559.
4820         * m4/trunc-ieee.m4: New file.
4821         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
4822         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
4823         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
4824         * modules/trunc-ieee-tests: New file.
4825         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
4826         * tests/test-trunc1.c (main): Remove signbit tests.
4827         * modules/trunc-tests (Depends-on): Remove 'signbit'.
4828         * doc/posix-functions/trunc.texi: Mention the new module.
4829
4830 2010-12-21  Bruno Haible  <bruno@clisp.org>
4831
4832         New module 'ceil-ieee'.
4833         * modules/ceil-ieee: New file.
4834         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
4835         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
4836         ISO C 99 with IEC 60559.
4837         * m4/ceil-ieee.m4: New file.
4838         * modules/ceil (Files): Add lib/ceil.c.
4839         (Depends-on): Add 'float'.
4840         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
4841         * lib/math.in.h (ceil): New declaration.
4842         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
4843         REPLACE_CEIL.
4844         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
4845         * modules/ceil-ieee-tests: New file.
4846         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
4847         * tests/test-math-c++.cc: Check the signature of 'ceil'.
4848         * doc/posix-functions/ceil.texi: Mention the new module.
4849
4850 2010-12-21  Bruno Haible  <bruno@clisp.org>
4851
4852         New module 'floor-ieee'.
4853         * modules/floor-ieee: New file.
4854         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
4855         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
4856         ISO C 99 with IEC 60559.
4857         * m4/floor-ieee.m4: New file.
4858         * modules/floor (Files): Add lib/floor.c.
4859         (Depends-on): Add 'float'.
4860         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
4861         * lib/math.in.h (floor): New declaration.
4862         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
4863         REPLACE_FLOOR.
4864         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
4865         * modules/floor-ieee-tests: New file.
4866         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
4867         * tests/test-math-c++.cc: Check the signature of 'floor'.
4868         * doc/posix-functions/floor.texi: Mention the new module.
4869
4870 2010-12-21  Bruno Haible  <bruno@clisp.org>
4871
4872         New module 'roundf-ieee'.
4873         * modules/roundf-ieee: New file.
4874         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
4875         test whether roundf works according to ISO C 99 with IEC 60559.
4876         * m4/roundf-ieee.m4: New file.
4877         * modules/roundf-ieee-tests: New file.
4878         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
4879         * tests/test-roundf1.c (main): Remove signbit tests.
4880         * modules/roundf-tests (Depends-on): Remove 'signbit'.
4881         * doc/posix-functions/roundf.texi: Mention the new module.
4882
4883 2010-12-21  Bruno Haible  <bruno@clisp.org>
4884
4885         New module 'truncf-ieee'.
4886         * modules/truncf-ieee: New file.
4887         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
4888         test whether truncf works according to ISO C 99 with IEC 60559.
4889         * m4/truncf-ieee.m4: New file.
4890         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
4891         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
4892         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
4893         * modules/truncf-ieee-tests: New file.
4894         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
4895         * tests/test-truncf1.c (main): Remove signbit tests.
4896         * modules/truncf-tests (Depends-on): Remove 'signbit'.
4897         * doc/posix-functions/truncf.texi: Mention the new module.
4898
4899 2010-12-21  Bruno Haible  <bruno@clisp.org>
4900
4901         New module 'ceilf-ieee'.
4902         * modules/ceilf-ieee: New file.
4903         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
4904         test whether ceilf works according to ISO C 99 with IEC 60559.
4905         * m4/ceilf-ieee.m4: New file.
4906         * modules/ceilf-ieee-tests: New file.
4907         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
4908         * tests/test-ceilf1.c (main): Remove signbit tests.
4909         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
4910         * doc/posix-functions/ceilf.texi: Mention the new module.
4911
4912 2010-12-21  Bruno Haible  <bruno@clisp.org>
4913
4914         New module 'floorf-ieee'.
4915         * modules/floorf-ieee: New file.
4916         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
4917         test whether floorf works according to ISO C 99 with IEC 60559.
4918         * m4/floorf-ieee.m4: New file.
4919         * modules/floorf-ieee-tests: New file.
4920         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
4921         * tests/test-floorf1.c (main): Remove signbit tests.
4922         * modules/floorf-tests (Depends-on): Remove 'signbit'.
4923         * doc/posix-functions/floorf.texi: Mention the new module.
4924
4925 2010-12-21  Bruno Haible  <bruno@clisp.org>
4926
4927         Support for minus zero in autoconf macros.
4928         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
4929         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
4930         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
4931         * tests/minus-zero.h: Update comments.
4932
4933 2010-12-21  Bruno Haible  <bruno@clisp.org>
4934
4935         Tests for module 'ceil'.
4936         * modules/ceil-tests: New file.
4937         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
4938         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
4939
4940 2010-12-21  Bruno Haible  <bruno@clisp.org>
4941
4942         Tests for module 'floor'.
4943         * modules/floor-tests: New file.
4944         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
4945         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
4946
4947 2010-12-21  Bruno Haible  <bruno@clisp.org>
4948
4949         math: Fix indentation.
4950         * lib/math.in.h (floorf): Fix indentation.
4951
4952 2010-12-21  Bruno Haible  <bruno@clisp.org>
4953
4954         Fix cross-compilation guesses on Solaris.
4955         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
4956         not match "solaris2.10".
4957         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
4958         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
4959         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
4960
4961 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
4962
4963         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
4964         This fixes a problem observed with the latest coreutils snapshot
4965         that caused a test to fail on Solaris 8.  src/csplit.c's call
4966         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
4967         earlier, instead of returning the number of bytes that would have
4968         been generated; this causes csplit to incorrectly report memory
4969         exhaustion.
4970         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
4971         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
4972         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
4973         comments to match.
4974         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
4975         Fix typo in matching older versions of Solaris: "solaris2.10"
4976         is matched by the shell pattern "solaris2.[0-9]*".  This matters
4977         only for guessing while cross-compiling.
4978         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
4979
4980 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
4981
4982         ftoastr: fix comment again
4983         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
4984         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
4985         Also, simplify example a bit by using flags = 0.
4986
4987 2010-12-20  Bruno Haible  <bruno@clisp.org>
4988
4989         round*, trunc*: Update documentation regarding glibc.
4990         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
4991         * doc/posix-functions/round.texi: Likewise.
4992         * doc/posix-functions/roundl.texi: Likewise.
4993         * doc/posix-functions/truncf.texi: Likewise.
4994         * doc/posix-functions/trunc.texi: Likewise.
4995         * doc/posix-functions/truncl.texi: Likewise.
4996
4997 2010-12-20  Bruno Haible  <bruno@clisp.org>
4998
4999         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
5000         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
5001         * doc/posix-functions/round.texi: Likewise.
5002         * doc/posix-functions/roundl.texi: Likewise.
5003
5004 2010-12-20  Bruno Haible  <bruno@clisp.org>
5005
5006         ttyname_r: Add missing declaration on HP-UX 11.
5007         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
5008         HAVE_TTYNAME_R.
5009         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
5010         declared. Set HAVE_TTYNAME_R always.
5011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5012         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
5013         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
5014         HAVE_TTYNAME_R.
5015         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
5016
5017 2010-12-20  Bruno Haible  <bruno@clisp.org>
5018
5019         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
5020         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
5021         * doc/posix-functions/getlogin_r.texi: Likewise.
5022         * tests/test-getlogin.c: Include <errno.h>.
5023         (main): Avoid test failure on HP-UX 11.11.
5024         * tests/test-getlogin_r.c (main): Likewise.
5025
5026 2010-12-20  Bruno Haible  <bruno@clisp.org>
5027
5028         getlogin_r: Add missing declaration on HP-UX 11.
5029         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
5030         declared also when it exists as a function.
5031         * doc/posix-functions/getlogin_r.texi: Document this workaround.
5032
5033 2010-12-20  Bruno Haible  <bruno@clisp.org>
5034
5035         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
5036         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
5037         through wcrtomb.
5038
5039 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
5040
5041         ftoastr: fix comment
5042         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
5043         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
5044
5045 2010-12-19  Bruno Haible  <bruno@clisp.org>
5046
5047         isnan: Ensure it is a macro.
5048         * lib/math.in.h (isnan): Define as a macro if not already a macro.
5049         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
5050         Solaris.
5051
5052 2010-12-19  Bruno Haible  <bruno@clisp.org>
5053
5054         ldexpl test: Fix link error on OSF/1 5.1.
5055         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
5056
5057 2010-12-19  Bruno Haible  <bruno@clisp.org>
5058
5059         wctype: Make it work in C++ mode on OSF/1 5.1.
5060         * lib/wctype.in.h (iswblank): Declare but not define here.
5061         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
5062         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
5063         * modules/wctype (Files): Add lib/iswblank.c.
5064
5065 2010-12-19  Bruno Haible  <bruno@clisp.org>
5066
5067         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
5068         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
5069         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
5070
5071 2010-12-19  Bruno Haible  <bruno@clisp.org>
5072
5073         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
5074         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
5075         _POSIX_PII_SOCKET.
5076         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
5077         * doc/posix-functions/recvfrom.texi: Likewise.
5078         * doc/posix-functions/send.texi: Likewise.
5079         * doc/posix-functions/sendto.texi: Likewise.
5080
5081 2010-12-19  Bruno Haible  <bruno@clisp.org>
5082
5083         tcgetsid: Add missing declaration on OSF/1 5.1.
5084         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
5085         HAVE_TCGETSID.
5086         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
5087         Don't set HAVE_TCGETSID.
5088         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
5089         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
5090         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
5091         HAVE_TCGETSID.
5092         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
5093
5094 2010-12-19  Bruno Haible  <bruno@clisp.org>
5095
5096         stdio: Fix problem with popen() declaration on OSF/1 5.1.
5097         * lib/stdio.in.h: During the include_next statement, let recursive
5098         includes of this file include only the system header file.
5099
5100 2010-12-19  Bruno Haible  <bruno@clisp.org>
5101
5102         iconv_open: Fix regression from 2010-12-04.
5103         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
5104         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
5105
5106 2010-12-19  Bruno Haible  <bruno@clisp.org>
5107
5108         stdbool test: Avoid a gcc warning.
5109         * tests/test-stdbool.c (main): Fail if e1 is false.
5110         Reported by Jim Meyering.
5111
5112 2010-12-19  Jim Meyering  <meyering@redhat.com>
5113
5114         setenv: restore to working order
5115         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
5116         mistakenly removed.
5117         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
5118         HAVE_SETENV.
5119         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
5120         HAVE_SETENV.
5121
5122 2010-12-19  Bruno Haible  <bruno@clisp.org>
5123
5124         Document some different function declarations on OSF/1 5.1.
5125         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
5126         * doc/posix-functions/inet_ntop.texi: Likewise.
5127         * doc/posix-functions/gethostname.texi: Likewise.
5128         * lib/unistd.in.h (gethostname): Update comment.
5129
5130 2010-12-19  Bruno Haible  <bruno@clisp.org>
5131
5132         doc: Mention vasprintf-posix module.
5133         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
5134         the 'vasprintf-posix' module.
5135         * doc/glibc-functions/vasprintf.texi: Likewise.
5136
5137 2010-12-19  Bruno Haible  <bruno@clisp.org>
5138
5139         unsetenv: Add missing declaration on OSF/1 5.1.
5140         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
5141         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
5142         Don't set HAVE_UNSETENV. In the test program, set _BSD.
5143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
5144         not HAVE_UNSETENV.
5145         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
5146         HAVE_UNSETENV.
5147         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
5148
5149 2010-12-19  Bruno Haible  <bruno@clisp.org>
5150
5151         setenv: Add missing declaration on OSF/1 5.1.
5152         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
5153         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
5154         declared. Don't set HAVE_SETENV.
5155         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
5156         not HAVE_SETENV.
5157         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
5158         HAVE_SETENV.
5159         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
5160
5161 2010-12-19  Bruno Haible  <bruno@clisp.org>
5162
5163         nl_langinfo tests: Avoid gcc warning.
5164         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
5165
5166 2010-12-19  Bruno Haible  <bruno@clisp.org>
5167
5168         mknod: Avoid error in C++ mode on OSF/1 with GCC.
5169         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
5170         _GL_CXXALIAS_SYS.
5171
5172 2010-12-19  Bruno Haible  <bruno@clisp.org>
5173
5174         stdbool: Relax test.
5175         * tests/test-stdbool.c (e): Don't require that casts from a variable's
5176         address to 'bool' work in static initializer, for compilers other than
5177         GCC.
5178
5179 2010-12-19  Bruno Haible  <bruno@clisp.org>
5180
5181         ftello: Add missing declaration on OSF/1 5.1.
5182         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
5183         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
5184         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
5185         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
5186         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
5187
5188 2010-12-19  Bruno Haible  <bruno@clisp.org>
5189
5190         fseeko: Add missing declaration on OSF/1 5.1.
5191         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
5192         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
5193         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
5194         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
5195         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
5196
5197 2010-12-19  Bruno Haible  <bruno@clisp.org>
5198
5199         fchdir: Add missing declaration on OSF/1 5.1.
5200         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
5201         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
5202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
5203         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
5204         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
5205
5206 2010-12-19  Bruno Haible  <bruno@clisp.org>
5207
5208         relocatable-prog-wrapper: Separate from relocatable-prog.
5209         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
5210         uninstall-relocwrapper rule here.
5211         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
5212         Reported by Ian Beckwith <ianb@erislabs.net>.
5213
5214 2010-12-19  Bruno Haible  <bruno@clisp.org>
5215
5216         unistr/u8-mbsnlen: Add missing dependency.
5217         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
5218         Reported by Ian Beckwith <ianb@erislabs.net>.
5219
5220 2010-12-19  Bruno Haible  <bruno@clisp.org>
5221
5222         iconv: Make it possible again to use this module without 'iconv-h'.
5223         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
5224         if it is not defined.
5225         Reported by Ian Beckwith <ianb@erislabs.net>.
5226
5227 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5228
5229         acl: port to Solaris 8 when copying from tmpfs to ufs
5230         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
5231         error number.  Problem observed on Solaris 8 with latest
5232         coreutils, with "mv A B", where A is on a tmpfs file system and B
5233         is on a ufs file system.  This caused coreutils' mv/part-symlink
5234         test to fail.
5235
5236         tests: set fail=0 at start
5237         * tests/init.sh (setup_): Move fail=0 initialization here ...
5238         (mktempd_): ... from here, so that tests can rely on fail being
5239         set to 0 initially.  This fixes a problem in coreutils; see:
5240         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
5241
5242 2010-12-18  Bruno Haible  <bruno@clisp.org>
5243
5244         memmem-simple: Stylistic changes.
5245         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
5246         Fix preprocessor directive indentation.
5247
5248 2010-12-15  Pádraig Brady <P@draigBrady.com>
5249
5250         memmem, memmem-simple: reorganize and expand empty needle check
5251         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
5252         functional checks to memmem-simple so that one has a fully functional
5253         memmem by using just this module.
5254         Restrict the performance only check to the memmem module.
5255         Also expand the empty needle check to ensure the correct
5256         pointer is returned, not just a non NULL pointer.
5257         * doc/glibc-functions/memmem.texi: Rearrange the portability
5258         documentation to correlate with the rearranged checks.
5259         Clarify exactly how the memmem and memmem-simple modules
5260         relate to each other.
5261
5262 2010-12-15  Pádraig Brady <P@draigBrady.com>
5263             Bruno Haible  <bruno@clisp.org>
5264
5265         Improve cross-compilation guesses for uClibc.
5266         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
5267         that uClibc does not have the glibc bug.
5268         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
5269         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
5270
5271 2010-12-14  Eric Blake  <eblake@redhat.com>
5272
5273         configmake: provide fallbacks for oldest supported autotools
5274         * m4/configmake.m4: New file.
5275         * modules/configmake (Files): Ship it.
5276         (configure.ac): Use it to guarantee fallbacks.
5277
5278 2010-12-13  Pádraig Brady <P@draigBrady.com>
5279
5280         read-file: Improve handling of large files
5281         * lib/read-file.c (fread_file): Minimize realloc()s
5282         for regular files, and better manage sizes around SIZE_MAX.
5283
5284 2010-12-13  Eric Blake  <eblake@redhat.com>
5285
5286         cloexec, fcntl: relax license
5287         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
5288         consent from all contributors.
5289         * modules/fcntl (License): Likewise.
5290
5291 2010-12-10  Bruno Haible  <bruno@clisp.org>
5292
5293         Tests for module 'pipe-posix'.
5294         * modules/pipe-posix-tests: New file.
5295         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
5296
5297 2010-12-10  Bruno Haible  <bruno@clisp.org>
5298
5299         pipe-posix: Make it work in C++ mode.
5300         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
5301         (pipe): Use common idiom, not a macro definition.
5302         * lib/pipe.c: New file.
5303         * m4/pipe.m4: New file.
5304         * modules/pipe-posix (Description): Enhance.
5305         (Files): Add lib/pipe.c, m4/pipe.m4.
5306         (configure.ac): Invoke gl_FUNC_PIPE.
5307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
5308         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
5309         * tests/test-unistd-c++.cc: Check the signature of pipe.
5310
5311 2010-12-10  Bruno Haible  <bruno@clisp.org>
5312
5313         Rename module 'pipe' to 'spawn-pipe'.
5314         * modules/spawn-pipe: New file, renamed from modules/pipe.
5315         (Files, configure.ac, Makefile.am): Update.
5316         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
5317         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
5318         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
5319         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
5320         "spawn-pipe.h" instead of "pipe.h".
5321         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
5322         to gl_SPAWN_PIPE.
5323         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
5324         (Files, Makefile.am): Update.
5325         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
5326         Update.
5327         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
5328         Include "spawn-pipe.h" instead of "pipe.h".
5329         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
5330         * lib/javacomp.c: Likewise.
5331         * lib/javaversion.c: Likewise.
5332         * lib/pipe-filter-gi.c: Likewise.
5333         * lib/pipe-filter-ii.c: Likewise.
5334         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
5335         * modules/javacomp (Depends-on): Likewise.
5336         * modules/javaversion (Depends-on): Likewise.
5337         * modules/pipe-filter-gi (Depends-on): Likewise.
5338         * modules/pipe-filter-ii (Depends-on): Likewise.
5339         * MODULES.html.sh (Executing programs): Update.
5340         * NEWS: Mention the change.
5341
5342 2010-12-10  Eric Blake  <eblake@redhat.com>
5343
5344         pipe-posix: new module
5345         * modules/pipe-posix: New file.
5346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
5347         (gl_UNISTD_H): Check for declaration.
5348         * modules/unistd (Makefile.am): Substitute it.
5349         * lib/unistd.in.h (pipe): Provide it for mingw.
5350         * doc/posix-functions/pipe.texi (pipe): Update documentation.
5351         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
5352
5353 2010-12-07  Bruno Haible  <bruno@clisp.org>
5354
5355         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
5356         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
5357         u8_strcmp_gnu.
5358         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
5359
5360 2010-12-06  Bruno Haible  <bruno@clisp.org>
5361
5362         Update internal documentation.
5363         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
5364
5365 2010-12-04  Bruno Haible  <bruno@clisp.org>
5366
5367         Put more information about failed tests into the test return codes.
5368         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
5369         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
5370         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
5371         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5372         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
5373         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
5374         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5375         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
5376         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
5377         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5378         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
5379         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
5380         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5381         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5382         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
5383         returns a bit mask.
5384         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
5385         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
5386         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
5387         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
5388         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
5389         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
5390         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
5391         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
5392         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5393         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
5394         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
5395         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
5396         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
5397         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
5398         * m4/link.m4 (gl_FUNC_LINK): Likewise.
5399         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
5400         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
5401         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
5402         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5403         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
5404         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5405         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
5406         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
5407         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
5408         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5409         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
5410         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
5411         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
5412         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
5413         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
5414         gl_PRINTF_PRECISION): Likewise.
5415         * m4/regex.m4 (gl_REGEX): Likewise.
5416         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
5417         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
5418         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
5419         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5420         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5421         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5422         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
5423         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
5424         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5425         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
5426         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
5427         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
5428         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
5429         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
5430         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
5431         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5432         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
5433         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5434         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5435         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
5436         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
5437         enumerated value.
5438         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
5439
5440 2010-12-04  Bruno Haible  <bruno@clisp.org>
5441
5442         Update for Solaris 11 2010-11.
5443         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
5444         Express, released in November 2010.
5445
5446 2010-12-04  Bruno Haible  <bruno@clisp.org>
5447
5448         nproc: Relax license.
5449         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
5450         and Paul Eggert.
5451         Requested by Ludovic Courtès <ludo@gnu.org>.
5452
5453 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
5454
5455         utimecmp: fine-grained src to nearby coarse-grained dest
5456
5457         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
5458         and the source is on a file system with higher-resolution time
5459         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
5460         not work, and the time stamps are close together, the algorithm to
5461         determine the exact resolution from the read-back mtime was buggy:
5462         it had a "!=" where it should have had an "==".  This bug has been
5463         in the code ever since it was introduced to gnulib.
5464         Problem reported by Dan Jacobson in
5465         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
5466
5467 2010-11-30  Bruno Haible  <bruno@clisp.org>
5468
5469         strerror_r-posix: Fix autoconf test.
5470         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
5471
5472 2010-11-28  Bruno Haible  <bruno@clisp.org>
5473             Paul Eggert  <eggert@cs.ucla.edu>
5474
5475         Tests for module 'getdomainname'.
5476         * modules/getdomainname-tests: New file.
5477         * tests/test-getdomainname.c: New file, based on
5478         tests/test-gethostname.c.
5479
5480 2010-11-28  Bruno Haible  <bruno@clisp.org>
5481             Paul Eggert  <eggert@cs.ucla.edu>
5482
5483         getdomainname: Use the system function when possible.
5484         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
5485         (getdomainname): Replace if needed. Provide the declaration if it is
5486         missing. Don't use _GL_CXXALIAS_SYS_CAST.
5487         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
5488         (getdomainname): When the system has getdomainname, call the system
5489         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
5490         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
5491         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
5492         found in libnsl. Look for the declaration also in <netdb.h>. Replace
5493         the function if its second argument is of type 'int' or if it is found
5494         in libnsl.
5495         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
5496         <sys/systeminfo.h> and sysinfo().
5497         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
5498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5499         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
5500         HAVE_GETDOMAINNAME.
5501         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
5502         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
5503         * doc/glibc-functions/getdomainname.texi: Document the problems with
5504         the getdomainname declaration.
5505
5506 2010-11-28  Bruno Haible  <bruno@clisp.org>
5507
5508         sys_socket: Ensure ss_family field on AIX.
5509         * lib/sys_socket.in.h (ss_family): New macro definition.
5510         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
5511         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
5512         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
5513         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
5514         * modules/sys_socket (Makefile.am): Substitute
5515         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
5516         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
5517
5518 2010-11-27  Bruno Haible  <bruno@clisp.org>
5519
5520         readline: Improve configure output.
5521         * m4/readline.m4 (gl_FUNC_READLINE): Make the
5522         "checking for readline..." result understandable.
5523
5524 2010-11-27  Bruno Haible  <bruno@clisp.org>
5525
5526         *printf-posix: Detect a bug on Solaris 10/x86.
5527         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
5528         for floating-point output.
5529         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
5530         directive.
5531         * tests/test-snprintf-posix.h (test_function): Likewise.
5532         * tests/test-sprintf-posix.h (test_function): Likewise.
5533         * tests/test-vasprintf-posix.c (test_function): Likewise.
5534         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
5535         * doc/posix-functions/printf.texi: Likewise.
5536         * doc/posix-functions/snprintf.texi: Likewise.
5537         * doc/posix-functions/sprintf.texi: Likewise.
5538         * doc/posix-functions/vfprintf.texi: Likewise.
5539         * doc/posix-functions/vprintf.texi: Likewise.
5540         * doc/posix-functions/vsnprintf.texi: Likewise.
5541         * doc/posix-functions/vsprintf.texi: Likewise.
5542         * doc/glibc-functions/obstack_printf.texi: Likewise.
5543         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5544
5545 2010-11-27  Bruno Haible  <bruno@clisp.org>
5546
5547         Fix link error when module libunistring-optional is in use.
5548         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
5549         * modules/striconveha-tests (Makefile.am): Likewise.
5550
5551 2010-11-27  Bruno Haible  <bruno@clisp.org>
5552
5553         regex: Mention link dependencies.
5554         * modules/regex (Link): New section.
5555         * modules/rpmatch (Link): Likewise.
5556         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
5557
5558 2010-11-27  Bruno Haible  <bruno@clisp.org>
5559
5560         ftoastr: Fix compilation error on Solaris.
5561         * lib/ftoastr.c: Include <config.h>.
5562
5563 2010-11-27  Bruno Haible  <bruno@clisp.org>
5564
5565         getloadavg: Update documentation.
5566         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
5567
5568 2010-11-27  Bruno Haible  <bruno@clisp.org>
5569
5570         sys_socket: Fix test whether the functions are declared.
5571         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
5572         not <sys/select.h>.
5573
5574 2010-11-27  Bruno Haible  <bruno@clisp.org>
5575
5576         getpass: Make sure to get system declaration on some platforms.
5577         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
5578         gl_USE_SYSTEM_EXTENSIONS.
5579         * modules/getpass (Depends-on): Add extensions.
5580
5581 2010-11-26  Bruno Haible  <bruno@clisp.org>
5582
5583         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
5584         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
5585         'iconv' module is present.
5586         (ICONV_CONST): New macro.
5587         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
5588         ICONV_CONST.
5589         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
5590         set ICONV_CONST.
5591         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
5592         here.
5593         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
5594         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
5595         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
5596         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
5597         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
5598         present.
5599
5600 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
5601
5602         ftoastr: comment fix
5603         * lib/ftoastr.c: "little" -> "little or no" in comment
5604
5605 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
5606
5607         stdint: port to GCC 4.3 + OSX + Octave
5608         On this platform, stdint.h is buggy and defines int64_t to long
5609         long int.  The replacement defined it to long int, causing
5610         problems with C++ style name mangling.  Instead, trust the system
5611         definition if INT64_MAX is defined, and likewise for the unsigned
5612         variant.   Problem reported by Jarno Rajahalme in
5613         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
5614         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
5615         and don't mess with int64_t and INT64_MAX in this case.
5616         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
5617
5618 2010-11-24  Bruno Haible  <bruno@clisp.org>
5619
5620         doc: Corrections regarding MacOS X 10.4 and 10.5.
5621         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
5622         MacOS X.
5623         Reported by Simon Josefsson.
5624
5625 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
5626
5627         Uninstall ".bin" files installed by relocwrapper.
5628         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
5629         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
5630         unless it is already there.
5631
5632 2010-11-21  Bruno Haible  <bruno@clisp.org>
5633
5634         Update for NetBSD 5.0.
5635         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
5636         NetBSD; the test fails on NetBSD 5.0.
5637         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
5638         about NetBSD.
5639
5640 2010-11-21  Bruno Haible  <bruno@clisp.org>
5641
5642         Update for HP-UX 11.23 and HP-UX 11.31.
5643         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
5644         HP-UX.
5645
5646 2010-11-21  Bruno Haible  <bruno@clisp.org>
5647
5648         Update for MacOS X 10.5.
5649         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
5650         MacOS X; the test fails on MacOS X 10.5.8.
5651         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
5652         about MacOS X.
5653
5654 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
5655
5656         bootstrap: add bootstrap_sync option.
5657         See discussion at
5658         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
5659         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
5660         * build-aux/bootstrap: Accept --bootstrap-sync to update
5661         bootstrap if it is not identical to the local gnulib's
5662         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
5663         enable this by default.  Accept --no-bootstrap-sync to disable
5664         it.
5665
5666 2010-11-20  Bruno Haible  <bruno@clisp.org>
5667
5668         Ensure that <features.h> is included before __GLIBC__ is tested.
5669         * lib/printf-parse.h: Include <features.h>.
5670         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
5671         Reported by Mike Frysinger <vapier@gentoo.org>.
5672
5673         Ensure that <features.h> is included before __GLIBC__ is tested.
5674         * lib/wchar.in.h: Include <features.h>.
5675         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
5676         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
5677         Reported by Mike Frysinger <vapier@gentoo.org>.
5678
5679         Ensure that <features.h> is included before __GLIBC__ is tested.
5680         * lib/arpa_inet.in.h: Include <features.h>.
5681         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
5682         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
5683         Reported by Mike Frysinger <vapier@gentoo.org>.
5684
5685         Ensure that <features.h> is included before __GLIBC__ is tested.
5686         * build-aux/link-warning.h: Include <features.h>.
5687         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
5688         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
5689         Reported by Mike Frysinger <vapier@gentoo.org>.
5690
5691         Ensure that <features.h> is included before __GLIBC__ is tested.
5692         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
5693         Reported by Mike Frysinger <vapier@gentoo.org>.
5694
5695 2010-11-20  Bruno Haible  <bruno@clisp.org>
5696
5697         memmem: Fix autoconf test.
5698         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
5699
5700 2010-11-20  Bruno Haible  <bruno@clisp.org>
5701
5702         Port to uClibc.
5703         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
5704         * lib/fcntl.in.h: Likewise.
5705         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
5706         * lib/mbrtowc.c (mbrtowc): Likewise.
5707         * lib/relocatable.c (find_shared_library_fullname): Likewise.
5708         * lib/strerror_r.c: Likewise.
5709         * lib/unistr/u8-strnlen.c: Likewise.
5710         * lib/vasnprintf.c (decimal_point_char): Likewise.
5711         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
5712         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
5713         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
5714         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
5715         * tests/test-sigaction.c (handler, main): Likewise.
5716         * lib/freading.h: Treat uClibc like a non-glibc platform.
5717         * lib/freading.c: Likewise.
5718         * lib/gettext.h: Likewise.
5719         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
5720         Likewise.
5721         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
5722         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
5723         * lib/propername.c (proper_name_utf8): Likewise.
5724         * lib/spawn.in.h: Likewise.
5725         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
5726         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
5727         mem_cd_iconveh_internal): Likewise.
5728         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
5729         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
5730         strstr, strcasestr): Likewise.
5731         * lib/unicodeio.c (unicode_to_mb): Likewise.
5732         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
5733         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
5734         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
5735         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
5736         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
5737         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
5738         * lib/unistr/u8-stpncpy.c: Likewise.
5739         * lib/vasnprintf.c (VASNPRINTF): Likewise.
5740         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
5741         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
5742         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5743         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
5744         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
5745         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
5746         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
5747         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
5748         Likewise.
5749         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
5750         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
5751         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
5752         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5753         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
5754         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5755         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5756         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5757         * tests/test-getopt.h (OPTIND_MIN): Likewise.
5758         * tests/test-striconveha.c (main): Likewise.
5759         * tests/test-vasnprintf-posix.c (test_function): Likewise.
5760         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
5761         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
5762         * doc/posix-functions/getline.texi: Likewise.
5763         Reported by Mike Frysinger <vapier@gentoo.org>.
5764
5765 2010-11-20  Bruno Haible  <bruno@clisp.org>
5766
5767         nproc: Fix condition.
5768         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
5769         HAVE_PTHREAD_AFFINITY_NP.
5770
5771 2010-11-20  Bruno Haible  <bruno@clisp.org>
5772
5773         Fix a comment.
5774         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
5775
5776 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
5777
5778         ftoastr: don't assume snprintf
5779         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
5780         Implement a subset of snprintf here, by using sprintf safely.
5781         * modules/ftoastr (Depends-on): Remove snprintf.
5782
5783 2010-11-19  Jim Meyering  <meyering@redhat.com>
5784
5785         test-rename.h: fix compilation failure
5786         * tests/test-rename.h (test_rename): Add omitted "}".
5787
5788 2010-11-17  Jim Meyering  <meyering@redhat.com>
5789
5790         maint.mk: add a URL discussing the no-@acronym policy
5791         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
5792
5793 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5794
5795         ftoastr: depend on snprintf, improve comments
5796         * lib/ftoastr.c: Also mention Loitsch's draft.
5797         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
5798         needed in the current implementation, but it might simplify
5799         speeding up the code later.
5800         * modules/ftoastr: Depend on snprintf; this improves portability.
5801         Suggested by Bruno Haible in the same email.
5802
5803         ftoastr: port to hosts lacking strtof and strtold
5804         Problem reported by Bruno Haible in
5805         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
5806         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
5807         environment and strtold (and presumably strtof) are not available.
5808         * modules/ftoastr (Files): Add m4/c-strtod.m4.
5809         (configure.ac): Require gl_C99_STRTOLD.
5810
5811 2010-11-18  Bruno Haible  <bruno@clisp.org>
5812
5813         c-strtold: Avoid link error on AIX 7.
5814         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
5815         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
5816         (gl_C_STRTOLD): Test whether strtold_l exists.
5817         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5818
5819 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5820
5821         intprops: new macro INT_BITS_STRLEN_BOUND
5822         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
5823         ftoastr.h.  This exposes an internal of intprops.h that was formerly
5824         not exposed.  Also, it uses a slightly tighter bound than before;
5825         though this makes no practical difference, we might as well be as
5826         tight as we easily can.
5827
5828         ftoastr: new module, for lossless conversion of floats to short strings
5829         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
5830         * modules/ftoastr: New files.
5831
5832 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
5833
5834         bootstrap: port to Solaris sed
5835         * build-aux/bootstrap (get_version): Port to Solaris sed.
5836         See Ralf Wildenhues's note in
5837         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
5838
5839 2010-11-14  Jim Meyering  <meyering@redhat.com>
5840
5841         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
5842         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
5843         and move definition closer to sole use.
5844
5845 2010-11-13  Jim Meyering  <meyering@redhat.com>
5846
5847         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
5848         Now we require at least autoconf-2.59, which means the work-around
5849         is no longer needed.
5850         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
5851         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5852         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
5853         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
5854         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
5855
5856 2010-11-13  Bruno Haible  <bruno@clisp.org>
5857
5858         rename, renameat: Avoid test failures at NFS mounted locations.
5859         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
5860         functions.
5861         (test_rename): Use assert_nonexistent.
5862         * tests/test-rename.c: Include <dirent.h>.
5863         * tests/test-renameat.c: Likewise.
5864         Reported by Gary V. Vaughan <gary@gnu.org>.
5865
5866         rename, renameat: Document Linux bug with NFS
5867         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
5868         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
5869         * doc/posix-functions/renameat.texi: Likewise.
5870         Suggested by Eric Blake.
5871
5872 2010-11-13  Bruno Haible  <bruno@clisp.org>
5873
5874         rename test: Add comments.
5875         * tests/test-rename.h (test_rename): Add structure and comments.
5876
5877 2010-11-13  Eric Blake  <eblake@redhat.com>
5878
5879         maintainer-makefile: cover a few more files
5880         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
5881         scripts generated within C files, for libvirt.
5882
5883 2010-11-13  Bruno Haible  <bruno@clisp.org>
5884
5885         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
5886         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
5887         character, return the number of bytes that belong together, not always
5888         1.
5889         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
5890         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
5891         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
5892         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
5893         number of bytes of an invalid character.
5894         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
5895         (main): Invoke it.
5896         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
5897         results.
5898         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
5899         malformed byte sequences.
5900         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
5901         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
5902         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
5903         Reported by Ben Pfaff and Paolo Bonzini.
5904
5905 2010-11-13  Bruno Haible  <bruno@clisp.org>
5906
5907         openat: Work around glibc bug with fchownat() and empty file names.
5908         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
5909         (gl_FUNC_FCHOWNAT): Invoke it.
5910         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
5911         * doc/posix-functions/fchownat.texi: Document the glibc bug.
5912         Reported by Gary V. Vaughan <gary@gnu.org>.
5913
5914 2010-11-13  Bruno Haible  <bruno@clisp.org>
5915
5916         openat: Ensure autoconf macro ordering.
5917         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
5918         gl_USE_SYSTEM_EXTENSIONS.
5919         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
5920
5921 2010-11-13  Bruno Haible  <bruno@clisp.org>
5922
5923         Update comments.
5924         * lib/unistr/u8-check.c: Update file name in comments.
5925         * lib/unistr/u8-mblen.c: Likewise.
5926         * lib/unistr/u8-prev.c: Likewise.
5927         * lib/unistr/u8-strmblen.c: Likewise.
5928         * lib/unistr/u8-strmbtouc.c: Likewise.
5929
5930 2010-11-13  Jim Meyering  <meyering@redhat.com>
5931
5932         tests: avoid test failure on Solaris 10 due to lack of PATH export
5933         * tests/test-update-copyright.sh: Don't forget to export PATH.
5934
5935         init.sh: ensure that IFS is defined, just in case...
5936         * tests/init.sh (setup_): Ensure that IFS is defined,
5937         so that saving and restoring it works as expected.  This
5938         appears to be useful at least for an old version of dash
5939         from a long time ago (RH 6).  See here for details:
5940         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
5941
5942         maint.mk: tighten "test a == b" check
5943         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
5944         test to files that contain something like #!/bin/sh.
5945         Without this, coreutils would get two false positives in
5946         the comments of C source files.
5947
5948 2010-11-12  Eric Blake  <eblake@redhat.com>
5949
5950         bootstrap: fix typo in previous attempt
5951         * build-aux/bootstrap (buildreq): Correct the grouping.
5952         Reported by Paul Eggert.
5953
5954         maintainer-makefile: prohibit test x == x
5955         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
5956         Based on a report by Matthias Bolte.
5957
5958         bootstrap: allow FreeBSD gzip
5959         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
5960         which has no '.' and goes to stderr.
5961         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
5962         Reported by Matthias Bolte.
5963
5964         maintainer-makefile: check for i18n setup
5965         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
5966         will likely work.
5967
5968 2010-11-12  Bruno Haible  <bruno@clisp.org>
5969
5970         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
5971         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
5972         * lib/nanosleep.c (nanosleep): Likewise.
5973
5974 2010-11-11  Bruno Haible  <bruno@clisp.org>
5975
5976         fcntl-h: Fix for use of C++ on glibc systems.
5977         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
5978         also on glibc systems in C++ mode.
5979         Reported by Gary V. Vaughan <gary@gnu.org>.
5980
5981 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
5982
5983         mknod: avoid false failure with dash
5984         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
5985
5986 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
5987
5988         unlink: Fix "is it should" typo in diagnostic.
5989         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
5990         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
5991
5992 2010-11-11  Bruno Haible  <bruno@clisp.org>
5993
5994         Tests for module 'strerror_r-posix'.
5995         * modules/strerror_r-posix-tests: New file.
5996         * tests/test-strerror_r.c: New file.
5997         * tests/test-string-c++.cc: Check the signature of strerror_r.
5998
5999         New module 'strerror_r-posix'.
6000         * lib/string.in.h (strerror_r): New declaration.
6001         * lib/strerror_r.c: New file.
6002         * m4/strerror_r.m4: New file.
6003         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
6004         of strerror_r.
6005         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
6006         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
6007         * modules/strerror_r-posix: New file.
6008         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
6009         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
6010         * doc/posix-functions/strerror_r.texi: Mention the new module and the
6011         portability problems.
6012
6013 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
6014
6015         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
6016         line is also considered for output. Quoted function name in shell
6017         command, so temporary files for functions like MyClass::operator()
6018         are removed correctly without errors.
6019
6020 2010-11-09  Bruno Haible  <bruno@clisp.org>
6021
6022         * doc/posix-functions/strerror.texi: List more failing platforms.
6023
6024         * doc/posix-functions/strerror.texi: Add a comment.
6025
6026 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
6027
6028         fdopendir: fix bug on MacOS X when low on file descriptors
6029
6030         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
6031         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
6032         All callers changed.
6033         (fdopendir): Invoke save_cwd at the top level, not after using
6034         multiple dup() calls to use up file descriptors.  Then retry
6035         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
6036         less than the maximum number of open file descriptors, because
6037         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
6038         on Mac OS X 10.6.4 for tar 1.24
6039         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
6040         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
6041         and for tar 1.25
6042         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
6043
6044 2010-11-07  Bruno Haible  <bruno@clisp.org>
6045
6046         vasnprintf: Support I flag on glibc systems.
6047         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
6048         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
6049         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
6050         snprintf function.
6051         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
6052         glibc systems.
6053         * tests/test-vasnprintf-posix3.c: New file.
6054         * modules/vasnprintf-posix-tests (Files): Add it.
6055         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
6056
6057 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6058
6059         [html] Fix copy/paste bug: Use unique name for compiler warnings.
6060         * MODULES.html.sh: For compiler warnings, use name
6061         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
6062
6063 2010-11-05  Eric Blake  <eblake@redhat.com>
6064
6065         ceil, floor: avoid spurious failure with icc
6066         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
6067         [denormals-as-zero] when optimizing without -mieee-fp option.
6068         * tests/test-floorf2.c (floorf_reference): Likewise.
6069         * tests/test-ceilf1.c (dummy): New function.
6070         (main): Use it to outsmart icc's optimization.
6071         * tests/test-floorf1.c (dummy, main): Likewise.
6072
6073         tests: require working signbit
6074         * modules/ceilf-tests (Depends-on): Add signbit.
6075         * modules/ceill-tests (Depends-on): Likewise.
6076         * modules/floorf-tests (Depends-on): Likewise.
6077         * modules/floorl-tests (Depends-on): Likewise.
6078         * modules/round-tests (Depends-on): Likewise.
6079         * modules/roundf-tests (Depends-on): Likewise.
6080         * modules/roundl-tests (Depends-on): Likewise.
6081         * modules/trunc-tests (Depends-on): Likewise.
6082         * modules/truncf-tests (Depends-on): Likewise.
6083         * modules/truncl-tests (Depends-on): Likewise.
6084
6085         strtod: work around icc bug
6086         * lib/strtod.c (minus_zero): Define to working value.
6087         (strtod): Use it to avoid icc bug.
6088
6089         copysign: enhance tests
6090         * modules/copysign-tests (Files): Add minus-zero.h.
6091         * tests/test-copysign.c (main): Also test zeros.
6092
6093 2010-11-04  Eric Blake  <eblake@redhat.com>
6094
6095         ceil, floor, round, trunc: enhance tests of -0
6096         * tests/test-ceilf1.c (main): Ensure correct sign of result.
6097         * tests/test-ceill.c (main): Likewise.
6098         * tests/test-floorf1.c (main): Likewise.
6099         * tests/test-floorl.c (main): Likewise.
6100         * tests/test-round1.c (main): Likewise.
6101         * tests/test-roundf1.c (main): Likewise.
6102         * tests/test-roundl.c (main): Likewise.
6103         * tests/test-trunc1.c (main): Likewise.
6104         * tests/test-truncf1.c (main): Likewise.
6105         * tests/test-truncl.c (main): Likewise.
6106
6107 2010-11-04  Eric Blake  <eblake@redhat.com>
6108
6109         frexp, tests: work around ICC bug with -zero
6110         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
6111         works with more compilers.
6112         * tests/minus-zero.h: New file.
6113         * modules/ceilf-tests (Files): Include it.
6114         * modules/ceill-tests (Files): Likewise.
6115         * modules/floorf-tests (Files): Likewise.
6116         * modules/floorl-tests (Files): Likewise.
6117         * modules/frexp-nolibm-tests (Files): Likewise.
6118         * modules/frexp-tests (Files): Likewise.
6119         * modules/frexpl-nolibm-tests (Files): Likewise.
6120         * modules/frexpl-tests (Files): Likewise.
6121         * modules/isnan-tests (Files): Likewise.
6122         * modules/isnand-nolibm-tests (Files): Likewise.
6123         * modules/isnand-tests (Files): Likewise.
6124         * modules/isnanf-nolibm-tests (Files): Likewise.
6125         * modules/isnanf-tests (Files): Likewise.
6126         * modules/isnanl-nolibm-tests (Files): Likewise.
6127         * modules/isnanl-tests (Files): Likewise.
6128         * modules/round-tests (Files): Likewise.
6129         * modules/roundf-tests (Files): Likewise.
6130         * modules/roundl-tests (Files): Likewise.
6131         * modules/ldexpl-tests (Files): Likewise.
6132         * modules/signbit-tests (Files): Likewise.
6133         * modules/snprintf-posix-tests (Files): Likewise.
6134         * modules/sprintf-posix-tests (Files): Likewise.
6135         * modules/strtod-tests (Files): Likewise.
6136         * modules/trunc-tests (Files): Likewise.
6137         * modules/truncf-tests (Files): Likewise.
6138         * modules/truncl-tests (Files): Likewise.
6139         * modules/vsnprintf-posix-tests (Files): Likewise.
6140         * modules/vsprintf-posix-tests (Files): Likewise.
6141         * modules/vasnprintf-posix-tests (Files): Likewise.
6142         * modules/vasprintf-posix-tests (Files): Likewise.
6143         * tests/test-ceilf1.c (main): Use it.
6144         * tests/test-ceill.c (main): Likewise.
6145         * tests/test-floorf1.c (main): Likewise.
6146         * tests/test-floorl.c (main): Likewise.
6147         * tests/test-frexp.c (main): Likewise.
6148         * tests/test-frexpl.c (main): Likewise.
6149         * tests/test-isnan.c (main): Likewise.
6150         * tests/test-isnand.h (main): Likewise.
6151         * tests/test-isnanf.h (main): Likewise.
6152         * tests/test-isnanl.h (main): Likewise.
6153         * tests/test-ldexpl.c (main): Likewise.
6154         * tests/test-round.c (main): Likewise.
6155         * tests/test-roundf.c (main): Likewise.
6156         * tests/test-roundl.c (main): Likewise.
6157         * tests/test-signbit.c (test_signbitf, test_signbitd)
6158         (test_signbitl): Likewise.
6159         * tests/test-snprintf-posix.h (test_function): Likewise.
6160         * tests/test-sprintf-posix.h (test_function): Likewise.
6161         * tests/test-strtod.c (main): Likewise.
6162         * tests/test-trunc1.c (main): Likewise.
6163         * tests/test-truncf1.c (main): Likewise.
6164         * tests/test-truncl.c (main): Likewise.
6165
6166         isnanl: work around icc bug
6167         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
6168
6169 2010-11-03  Eric Blake  <eblake@redhat.com>
6170
6171         tests: fix compiler warnings
6172         * tests/test-getopt.h (test_getopt): Fix condition.
6173         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6174         * tests/test-pipe2.c (main): Likewise.
6175         * tests/test-quotearg-simple.c (main): Avoid icc warning.
6176
6177         utimens: fix broken m4 test
6178         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
6179
6180 2010-10-28  Bruno Haible  <bruno@clisp.org>
6181
6182         posix_spawn*, getdtablesize: Relax license.
6183         * modules/posix_spawn (License): Change to LGPLv2+.
6184         * modules/posix_spawnp (License): Likewise.
6185         * modules/posix_spawn-internal (License): Likewise.
6186         * modules/posix_spawnattr_init (License): Likewise.
6187         * modules/posix_spawnattr_getflags (License): Likewise.
6188         * modules/posix_spawnattr_setflags (License): Likewise.
6189         * modules/posix_spawnattr_getpgroup (License): Likewise.
6190         * modules/posix_spawnattr_setpgroup (License): Likewise.
6191         * modules/posix_spawnattr_getschedparam (License): Likewise.
6192         * modules/posix_spawnattr_setschedparam (License): Likewise.
6193         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
6194         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
6195         * modules/posix_spawnattr_getsigdefault (License): Likewise.
6196         * modules/posix_spawnattr_setsigdefault (License): Likewise.
6197         * modules/posix_spawnattr_getsigmask (License): Likewise.
6198         * modules/posix_spawnattr_setsigmask (License): Likewise.
6199         * modules/posix_spawnattr_destroy (License): Likewise.
6200         * modules/posix_spawn_file_actions_init (License): Likewise.
6201         * modules/posix_spawn_file_actions_addclose (License): Likewise.
6202         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
6203         * modules/posix_spawn_file_actions_addopen (License): Likewise.
6204         * modules/posix_spawn_file_actions_destroy (License): Likewise.
6205         * modules/getdtablesize (License): Likewise.
6206         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
6207
6208 2010-10-26  Bruno Haible  <bruno@clisp.org>
6209
6210         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
6211         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
6212         Cygwin and mingw.
6213         Suggested by Eric Blake.
6214
6215 2010-10-26  Bruno Haible  <bruno@clisp.org>
6216
6217         stdio: Work around compilation error due to renameat() on Solaris 10.
6218         * lib/stdio.in.h: Include <unistd.h> on Solaris.
6219         * lib/renameat.c: Don't include <unistd.h> here.
6220         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
6221         Reported by Paul Eggert and Eric Blake.
6222
6223 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
6224
6225         renameat: port to Solaris 10, which declares renameat in unistd.h
6226
6227         * lib/renameat.c: Include unistd.h before stdio.h, because
6228         Solaris 10 declares renameat in unistd.h.  Problem encountered
6229         when building GNU tar 1.24 on Solaris 10.
6230
6231 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6232
6233         fdopendir: fix C89 compilation
6234         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
6235         compilers.
6236
6237 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
6238
6239         inttostr: simplify by removing unnecessary redundancy
6240         * lib/anytostr.c: Don't include verify.h.
6241         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
6242         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
6243         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
6244         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
6245         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
6246         Likewise.
6247         * modules/inttostr (Depends-on): Remove 'verify'.
6248
6249 2010-10-23  Bruno Haible  <bruno@clisp.org>
6250
6251         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
6252         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
6253         Reported by Eric Blake.
6254
6255 2010-10-23  Bruno Haible  <bruno@clisp.org>
6256
6257         Tests: Fix LOCALE_JA on MirBSD 10.
6258         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
6259         to an UTF-8 locale.
6260         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
6261         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6262         Reported by Eric Blake.
6263
6264 2010-10-21  Bruno Haible  <bruno@clisp.org>
6265
6266         nl_langinfo test: Avoid test failure on NetBSD 5.
6267         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
6268         Reported by Eric Blake.
6269
6270 2010-10-21  Eric Blake  <eblake@redhat.com>
6271
6272         c-stack: work around libsigsegv 2.8 bug
6273         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
6274         overflow on at least PowerPC64.
6275
6276 2010-10-17  Bruno Haible  <bruno@clisp.org>
6277
6278         userspec: Drop redundant file.
6279         * modules/userspec (Files): Remove lib/inttostr.h.
6280
6281 2010-10-17  Bruno Haible  <bruno@clisp.org>
6282
6283         nl_langinfo tests: Silence some warnings.
6284         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
6285         Reported by Jim Meyering.
6286
6287 2010-10-17  Bruno Haible  <bruno@clisp.org>
6288
6289         Make use of GCC's attribute __alloc_size__.
6290         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
6291         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
6292         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
6293         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
6294         __alloc_size__.
6295         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
6296         Suggested by Jim Meyering.
6297
6298 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
6299
6300         bootstrap: anchor .gitignore entries.
6301         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
6302         with...
6303         (insert_vc_ignore): ... this new function, which prepends `/' to
6304         all .gitignore entries before passing them to
6305         insert_sorted_if_absent.
6306
6307 2010-10-16  Bruno Haible  <bruno@clisp.org>
6308
6309         nextafter: Fix configure check.
6310         * modules/nextafter (configure.ac): Correct expected prototype.
6311
6312 2010-10-16  Bruno Haible  <bruno@clisp.org>
6313
6314         termios: Update documentation.
6315         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
6316
6317 2010-10-16  Bruno Haible  <bruno@clisp.org>
6318
6319         tests: Make them compile with TinyCC.
6320         * tests/test-strstr.c (main): Remove parentheses around array
6321         initializer.
6322
6323 2010-10-15  Eric Blake  <eblake@redhat.com>
6324
6325         ignore-value: make header idempotent
6326         * lib/ignore-value.h: Add double-inclusion guards.
6327         Reported by Stefan Berger.
6328
6329 2010-10-15  Jim Meyering  <meyering@redhat.com>
6330
6331         GNUmakefile: handle "stable" target, not "major"
6332         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
6333         lists in maint.mk and announce-gen.  Without this, "make stable"
6334         would fail to ensure that $(VERSION) is up to date.
6335
6336 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
6337
6338         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
6339         & co.
6340
6341 2010-10-14  Bruno Haible  <bruno@clisp.org>
6342
6343         vasnprintf: Don't set errno to 0.
6344         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
6345         block that sets it to 0.
6346         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
6347
6348 2010-10-14  Bruno Haible  <bruno@clisp.org>
6349
6350         socketlib: Fix.
6351         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
6352         gl_PREREQ_SYS_H_WINSOCK2.
6353         Reported by Ian Beckwith <ianb@erislabs.net>.
6354
6355 2010-10-13  Jim Meyering  <meyering@redhat.com>
6356
6357         test-select-stdin.c: avoid warn_unused_result warnings
6358         * tests/test-select-stdin.c: Include "macros.h".
6359         ASSERT that read and fflush succeed.
6360
6361 2010-10-13  Jim Meyering  <meyering@redhat.com>
6362
6363         git-version-gen: do require git-VC'd files in cwd
6364         * build-aux/git-version-gen: Reject a git version string
6365         if there are no commits associated with the current directory.
6366         This avoids an unlikely false-positive (unrelated dir whose parent
6367         repository also contains a tag matching v*), as pointed out
6368         by Giuseppe Scrivano in
6369         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
6370
6371 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
6372
6373         argv-iter: omit nonconforming declaration
6374         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
6375         enum arg_iter_err declaration, which doesn't conform to C99.
6376         Solaris 10 cc warns about this.
6377
6378 2010-10-13  Eric Blake  <eblake@redhat.com>
6379
6380         termios: fix compilation on mingw
6381         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
6382         (gl_TERMIOS_H): Adjust it on mingw.
6383         * modules/termios (Makefile.am): Substitute new key.
6384         * lib/termios.in.h (includes): Make include_next conditional.
6385         * doc/posix-headers/termios.texi (termios.h): Update
6386         documentation.
6387         Reported by Daniel P. Berrange.
6388
6389 2010-10-13  Jim Meyering  <meyering@redhat.com>
6390
6391         git-version-gen: don't require that .git/ be in the current dir
6392         * build-aux/git-version-gen: Adjust this script so that it works
6393         when run from any working directory beneath the top-level .git/-
6394         containing directory.  Inspired by a patch from Giuseppe Scrivano,
6395         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
6396
6397         test-select: avoid warn_unused_result warnings
6398         * tests/test-select.c: Include "macros.h".
6399         ASSERT that each call to read, write, and pipe succeeds.
6400         While not technically required, also check each "close".
6401         * modules/select-tests (Files): Add tests/macros.h.
6402
6403         test-symlinkat: remove declaration of unused local
6404         * tests/test-symlinkat.c (main): Remove unused local, "buf".
6405
6406         test-inttostr: avoid shadowing warnings
6407         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
6408         and use malloc rather than the stack for the same reason as
6409         mentioned in the comment justifying the other allocation.
6410
6411 2010-10-11  Bruno Haible  <bruno@clisp.org>
6412
6413         stdlib: Allow multiple gnulib generated replacements to coexist.
6414         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
6415         Reported by Sam Steingold <sds@gnu.org>.
6416
6417 2010-10-11  Jim Meyering  <meyering@redhat.com>
6418
6419         fix a documentation typo
6420         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
6421
6422 2010-10-11  Eric Blake  <eblake@redhat.com>
6423
6424         futimens: work around Solaris 11 bug
6425         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
6426         * tests/test-futimens.h (test_futimens): Enhance, rather than
6427         weaken test.
6428         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6429
6430 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
6431
6432         Indentation.
6433         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
6434         higher-level operators more to the left.
6435
6436 2010-10-11  Jim Meyering  <meyering@redhat.com>
6437
6438         test-futimens: avoid unwarranted test failure on Solaris 5.11
6439         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
6440         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
6441         because it tries to dereference the NULL name argument.
6442
6443 2010-10-11  Bruno Haible  <bruno@clisp.org>
6444
6445         Indentation.
6446         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
6447         indentation.
6448
6449 2010-10-11  Jim Meyering  <meyering@redhat.com>
6450
6451         spawn.in.h: make indentation consistent with parentheses
6452         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
6453         Make indentation consistent with parentheses.
6454
6455 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
6456
6457         Fix mismatched parens in previous commit
6458         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
6459         parens.
6460
6461 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
6462
6463         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
6464
6465         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
6466         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
6467         * lib/malloca.c: Include "verify.h".
6468         (verify1): Remove, replacing with a verify call.
6469         * lib/relocwrapper.c (verify1): Likewise.
6470         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
6471         Likewise.
6472         * modules/malloca (Depends-on): Add 'verify'.
6473         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
6474         * modules/vasnprintf (Depends-on): Add 'verify'.
6475         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6476         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6477         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6478         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6479         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6480         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6481         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6482
6483         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
6484
6485         Formerly the style was sometimes 2*X - 1, because the C standard
6486         was wrongly thought to disallow ?: in integral constant expressions.
6487         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
6488         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
6489         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
6490         * lib/stdint.in.h (_verify_intmax_size): Likewise.
6491         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
6492         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
6493         verify that time_t cannot be floating.
6494
6495 2010-10-08  Eric Blake  <eblake@redhat.com>
6496
6497         time: enforce recent POSIX ruling that time_t is integral
6498         * lib/time.in.h (__time_t_must_be_integral): Detect any
6499         problematic systems, allowing the rest of gnulib to assume POSIX.
6500
6501 2010-10-08  Jim Meyering  <meyering@redhat.com>
6502
6503         fdopendir: fix a bug on systems lacking openat and /proc support
6504         OpenBSD 4.7 is one such system.  The most noticeable effect was
6505         failure of any application making nontrivial use of fts: rm, du,
6506         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
6507           ./rm: traversal failed: `a': Bad file descriptor
6508         Debugging that, you see that even though FD 6 was closed just
6509         prior to the opendir call in fd_clone_opendir, its resulting
6510         dir->dd_fd was 8, rather than the expected value of 6:
6511
6512         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
6513         93                close (fd);
6514         (gdb) n
6515         94                dir = fd_clone_opendir (dupfd);
6516         (gdb) n
6517         95                saved_errno = errno;
6518         (gdb) p dir->dd_fd
6519         $11 = 8
6520
6521         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
6522         The problem is that on OpenBSD, fd_clone_opendir has to resort
6523         to using the old-style save/restore CWD mechanism, due to its
6524         lack of openat/proc support, and *that* would steal the FD (6)
6525         that opendir was supposed to use.
6526
6527         The fix is to squirrel away the desired FD so that save_cwd uses a
6528         different one, and then free the dest FD right before calling opendir.
6529         That guarantees opendir will use the required file descriptor.
6530
6531         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
6532
6533 2010-10-08  Bruno Haible  <bruno@clisp.org>
6534
6535         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
6536         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
6537
6538 2010-10-08  Bruno Haible  <bruno@clisp.org>
6539
6540         nanosleep: Make replacement POSIX compliant.
6541         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
6542         is out of range.
6543         Reported by Jim Meyering.
6544
6545 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
6546
6547         bootstrap: add hook for altering gnulib.mk, for Bison
6548         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
6549         the Bison bootstrapping process can rewrite file names and variables
6550         in this file before later parts of 'bootstrap' use the file.
6551         Bison wants to include lib/gnulib.mk from the top-level makefile,
6552         so it needs the file names in this file to be relative to the top
6553         level, not relative to lib; plus it needs variable names to be
6554         rewritten.
6555         (slurp): Use the new function.
6556
6557         bootstrap: reformat for readability
6558         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
6559
6560 2010-10-08  Eric Blake  <eblake@redhat.com>
6561
6562         docs: update cygwin progress
6563         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
6564         1.7.7.
6565         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
6566         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
6567         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
6568         * doc/posix-functions/carg.texi (carg): Likewise.
6569         * doc/posix-functions/cargf.texi (cargf): Likewise.
6570         * doc/posix-functions/casin.texi (casin): Likewise.
6571         * doc/posix-functions/casinf.texi (casinf): Likewise.
6572         * doc/posix-functions/casinh.texi (casinh): Likewise.
6573         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
6574         * doc/posix-functions/catan.texi (catan): Likewise.
6575         * doc/posix-functions/catanf.texi (catanf): Likewise.
6576         * doc/posix-functions/catanh.texi (catanh): Likewise.
6577         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
6578         * doc/posix-functions/ccos.texi (ccos): Likewise.
6579         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
6580         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
6581         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
6582         * doc/posix-functions/cexp.texi (cexp): Likewise.
6583         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
6584         * doc/posix-functions/cimag.texi (cimag): Likewise.
6585         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
6586         * doc/posix-functions/clog.texi (clog): Likewise.
6587         * doc/posix-functions/clogf.texi (clogf): Likewise.
6588         * doc/posix-functions/conj.texi (conj): Likewise.
6589         * doc/posix-functions/conjf.texi (conjf): Likewise.
6590         * doc/posix-functions/cpow.texi (cpow): Likewise.
6591         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
6592         * doc/posix-functions/cproj.texi (cproj): Likewise.
6593         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
6594         * doc/posix-functions/creal.texi (creal): Likewise.
6595         * doc/posix-functions/crealf.texi (crealf): Likewise.
6596         * doc/posix-functions/csin.texi (csin): Likewise.
6597         * doc/posix-functions/csinf.texi (csinf): Likewise.
6598         * doc/posix-functions/csinh.texi (csinh): Likewise.
6599         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
6600         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
6601         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
6602         * doc/posix-functions/ctan.texi (ctan): Likewise.
6603         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
6604         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
6605         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
6606         * doc/posix-headers/complex.texi (complex.h): Likewise.
6607
6608 2010-10-07  Jim Meyering  <meyering@redhat.com>
6609
6610         parse-datetime: avoid compilation failure on OpenBSD 4.7
6611         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
6612         This works around a compilation failure on OpenBSD 4.7:
6613         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
6614
6615 2010-10-07  Eric Blake  <eblake@redhat.com>
6616
6617         docs: update cygwin progress
6618         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
6619         1.7.6.
6620         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
6621         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
6622         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
6623         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
6624         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
6625         Likewise.
6626         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
6627         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
6628         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
6629         Likewise.
6630         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
6631         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
6632         Likewise.
6633         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
6634         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
6635         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
6636         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
6637         Likewise.
6638         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
6639         Likewise.
6640         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
6641
6642         docs: update parse-datetime history
6643         * doc/parse-datetime.texi (Authors of parse_datetime): Better
6644         documentation of this function's history and alternatives.
6645
6646         cygwin: use more robust version check
6647         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
6648         exclude an eventual cygwin 1.9.1.
6649         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6650         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
6651         (gl_FUNC_STRCASESTR): Likewise.
6652         Reported by Bruno Haible.
6653
6654 2010-10-06  Bruno Haible  <bruno@clisp.org>
6655
6656         string, sys_select: Avoid #including large headers unless necessary.
6657         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
6658         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
6659         OSF/1, BeOS, Haiku.
6660         Reported by Jim Meyering.
6661
6662 2010-10-05  Eric Blake  <eblake@redhat.com>
6663
6664         memmem, strstr, strcasestr: fix bug with long periodic needle
6665         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
6666         periodic needle having false positive.
6667         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
6668         and cygwin 1.7.7.
6669         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
6670         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
6671         (gl_FUNC_STRCASESTR): Likewise.
6672         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6673         * tests/test-memmem.c (main): Expose the bug.
6674         * tests/test-strcasestr.c (main): Likewise.
6675         * tests/test-strstr.c (main): Likewise.
6676         * tests/test-c-strcasestr.c (main): Likewise.
6677         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
6678         * doc/posix-functions/strstr.texi (strstr): Likewise.
6679         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
6680         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
6681
6682 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
6683
6684         parse-datetime: do some more renaming
6685         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
6686         parse_datetime, not get_date.  Mention the renaming.
6687         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
6688         in comments.
6689         * m4/bison.m4: Likewise.
6690
6691 2010-10-05  Eric Blake  <eblake@redhat.com>
6692
6693         parse-datetime: better name than get_date
6694         * NEWS: Reword the deprecation notice.
6695         * modules/get_date: Rename to modules/parse-datetime.
6696         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
6697         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
6698         * lib/get_date.y: Rename to lib/parse-datetime.y.
6699         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
6700         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
6701         * doc/getdate.texi: Provide fallback wrapper.
6702         * lib/getdate.h: Move guts, and wrap...
6703         * lib/parse-datetime.h: ...new file.
6704         * lib/parse-datetime.y (get_date): Rename...
6705         (parse_datetime): ...to this.
6706         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
6707         (gl_PARSE_DATETIME): ...to this.
6708         * doc/posix-functions/getdate.texi (get_date): Provide fallback
6709         documentation.
6710         * modules/getdate (Files): Provide fallback docs and header.
6711         (Notice, Depends-on): Update references.
6712         * tests/test-parse-datetime.c: Likewise.
6713         * DEPENDENCIES: Likewise.
6714         * MODULES.html.sh (Date and time <time.h>): Likewise.
6715         * doc/parse-datetime.texi (Date input formats)
6716         (Authors of parse_datetime): Likewise.
6717         * modules/parse-datetime (Files, configure.ac, Makefile.am)
6718         (Include): Likewise.
6719         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
6720         * gnulib-tool: Likewise.
6721         * m4/bison.m4 (gl_BISON): Likewise.
6722         Suggested by Bruno Haible.
6723
6724 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
6725
6726         more ports to Solaris tr, which needs [] around ranges
6727         * gnulib-tool: Solaris tr needs [] around ranges.
6728         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6729         * tests/test-pipe-filter-gi1.c (main): Likewise.
6730         * tests/test-pipe-filter-ii1.c (main): Likewise.
6731
6732 2010-10-05  Eric Blake  <eblake@redhat.com>
6733
6734         bootstrap: fix Solaris regression
6735         * build-aux/bootstrap (check_versions): Solaris tr still needs []
6736         around ranges.
6737         Reported by Pádraig Brady.
6738
6739         bootstrap: work with pkg-config
6740         * build-aux/bootstrap (check_versions): Also transliterate - in
6741         prerequisite name.
6742         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
6743         prerequisites that were already found, to avoid confusion.
6744         Reported by Justin Clift.
6745
6746         faccessat: remove unused wrappers
6747         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
6748         presence of these wrappers dragged in -lgen on Solaris.
6749         Reported by Clemens Brogi; fix suggested by Paul Eggert.
6750
6751 2010-10-05  Jim Meyering  <meyering@redhat.com>
6752
6753         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
6754         * Makefile (sc_pragma_columns): New syntax-check rule.
6755
6756 2010-10-04  Bruno Haible  <bruno@clisp.org>
6757
6758         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
6759         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
6760         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
6761         Reported by Bruce Korb and Eric Blake.
6762
6763 2010-10-04  Bruno Haible  <bruno@clisp.org>
6764
6765         threadlib: Make option --with-libpth-prefix work.
6766         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
6767         use $LIBPTH, not just -lpth.
6768
6769 2010-10-04  Bruno Haible  <bruno@clisp.org>
6770
6771         Avoid line length limitation from HP NonStop system header files.
6772         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
6773         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
6774         * lib/ctype.in.h: Likewise.
6775         * lib/dirent.in.h: Likewise.
6776         * lib/errno.in.h: Likewise.
6777         * lib/fcntl.in.h: Likewise.
6778         * lib/float.in.h: Likewise.
6779         * lib/getopt.in.h: Likewise.
6780         * lib/iconv.in.h: Likewise.
6781         * lib/inttypes.in.h: Likewise.
6782         * lib/langinfo.in.h: Likewise.
6783         * lib/locale.in.h: Likewise.
6784         * lib/math.in.h: Likewise.
6785         * lib/netdb.in.h: Likewise.
6786         * lib/netinet_in.in.h: Likewise.
6787         * lib/poll.in.h: Likewise.
6788         * lib/pthread.in.h: Likewise.
6789         * lib/pty.in.h: Likewise.
6790         * lib/sched.in.h: Likewise.
6791         * lib/se-selinux.in.h: Likewise.
6792         * lib/search.in.h: Likewise.
6793         * lib/signal.in.h: Likewise.
6794         * lib/spawn.in.h: Likewise.
6795         * lib/stdarg.in.h: Likewise.
6796         * lib/stddef.in.h: Likewise.
6797         * lib/stdint.in.h: Likewise.
6798         * lib/stdio.in.h: Likewise.
6799         * lib/stdlib.in.h: Likewise.
6800         * lib/string.in.h: Likewise.
6801         * lib/strings.in.h: Likewise.
6802         * lib/sys_file.in.h: Likewise.
6803         * lib/sys_ioctl.in.h: Likewise.
6804         * lib/sys_select.in.h: Likewise.
6805         * lib/sys_socket.in.h: Likewise.
6806         * lib/sys_stat.in.h: Likewise.
6807         * lib/sys_time.in.h: Likewise.
6808         * lib/sys_times.in.h: Likewise.
6809         * lib/sys_utsname.in.h: Likewise.
6810         * lib/sys_wait.in.h: Likewise.
6811         * lib/sysexits.in.h: Likewise.
6812         * lib/termios.in.h: Likewise.
6813         * lib/time.in.h: Likewise.
6814         * lib/unistd.in.h: Likewise.
6815         * lib/wchar.in.h: Likewise.
6816         * lib/wctype.in.h: Likewise.
6817         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
6818         * modules/ctype (Makefile.am): Likewise.
6819         * modules/dirent (Makefile.am): Likewise.
6820         * modules/errno (Makefile.am): Likewise.
6821         * modules/fcntl-h (Makefile.am): Likewise.
6822         * modules/float (Makefile.am): Likewise.
6823         * modules/getopt-posix (Makefile.am): Likewise.
6824         * modules/iconv-h (Makefile.am): Likewise.
6825         * modules/inttypes (Makefile.am): Likewise.
6826         * modules/langinfo (Makefile.am): Likewise.
6827         * modules/locale (Makefile.am): Likewise.
6828         * modules/math (Makefile.am): Likewise.
6829         * modules/netdb (Makefile.am): Likewise.
6830         * modules/netinet_in (Makefile.am): Likewise.
6831         * modules/poll-h (Makefile.am): Likewise.
6832         * modules/pthread (Makefile.am): Likewise.
6833         * modules/pty (Makefile.am): Likewise.
6834         * modules/sched (Makefile.am): Likewise.
6835         * modules/search (Makefile.am): Likewise.
6836         * modules/selinux-h (Makefile.am): Likewise.
6837         * modules/signal (Makefile.am): Likewise.
6838         * modules/spawn (Makefile.am): Likewise.
6839         * modules/stdarg (Makefile.am): Likewise.
6840         * modules/stddef (Makefile.am): Likewise.
6841         * modules/stdint (Makefile.am): Likewise.
6842         * modules/stdio (Makefile.am): Likewise.
6843         * modules/stdlib (Makefile.am): Likewise.
6844         * modules/string (Makefile.am): Likewise.
6845         * modules/strings (Makefile.am): Likewise.
6846         * modules/sys_file (Makefile.am): Likewise.
6847         * modules/sys_ioctl (Makefile.am): Likewise.
6848         * modules/sys_select (Makefile.am): Likewise.
6849         * modules/sys_socket (Makefile.am): Likewise.
6850         * modules/sys_stat (Makefile.am): Likewise.
6851         * modules/sys_time (Makefile.am): Likewise.
6852         * modules/sys_times (Makefile.am): Likewise.
6853         * modules/sys_utsname (Makefile.am): Likewise.
6854         * modules/sys_wait (Makefile.am): Likewise.
6855         * modules/sysexits (Makefile.am): Likewise.
6856         * modules/termios (Makefile.am): Likewise.
6857         * modules/time (Makefile.am): Likewise.
6858         * modules/unistd (Makefile.am): Likewise.
6859         * modules/wchar (Makefile.am): Likewise.
6860         * modules/wctype (Makefile.am): Likewise.
6861
6862 2010-10-04  Bruno Haible  <bruno@clisp.org>
6863
6864         read-file tests: Avoid a test failure on NonStop Kernel.
6865         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
6866         a regular file.
6867         Reported by Joachim Schmitz <schmitz@hp.com>.
6868
6869 2010-10-03  Bruno Haible  <bruno@clisp.org>
6870
6871         gnulib-tool: Fixes for --create-testdir with --libtool.
6872         * gnulib-tool (func_get_automake_snippet): Don't augment
6873         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
6874         an executable.
6875         (func_create_testdir): Handle module 'alloca' like func_import.
6876         Reported by Bruce Korb <bruce.korb@gmail.com>.
6877
6878 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
6879
6880         Avoid some lines longer than 80 characters.
6881         * lib/stdint.in.h: Break long comment lines.
6882         * lib/math.in.h: Likewise.
6883         (_GL_NUM_UINT_WORDS): New macro, for readability.
6884         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
6885         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
6886         * lib/stdlib.in.h: Likewise.
6887         * lib/spawn.in.h: Likewise.
6888         * lib/sys_socket.in.h: Update an URL.
6889         * lib/sys_stat.in.h: Break long line.
6890
6891 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
6892
6893         Improve pmccabe2html.
6894         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
6895         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
6896         when the sources change. Remove the line in the HTML about "Used
6897         ranges" (which implied that there might be other unused ranges),
6898         rename "Resume" to "Summary" (easier to understand for more users).
6899         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
6900         styles, and some unnecessary blank lines.
6901
6902 2010-10-03  Bruno Haible  <bruno@clisp.org>
6903             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
6904
6905         acl: Add support for ACLs on NonStop Kernel.
6906         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
6907         Check whether the function aclsort() exists.
6908         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
6909         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
6910         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
6911         (acl_nontrivial [HAVE_ACLSORT]: New function.
6912         (file_has_acl): Implement for NonStop Kernel.
6913         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
6914         (qset_acl): Implement for NonStop Kernel.
6915         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
6916         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
6917         (main): Implement for NonStop Kernel.
6918         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
6919         Kernel. Handle this flavor.
6920         * tests/test-set-mode-acl.sh: Likewise.
6921         * tests/test-copy-acl.sh: Likewise.
6922         * tests/test-copy-file.sh: Likewise.
6923
6924 2010-10-03  Bruno Haible  <bruno@clisp.org>
6925
6926         Info about ACLs on NonStop Kernel.
6927         * doc/acl-resources.txt: Add info about NonStop Kernel.
6928         References by Joachim Schmitz <schmitz@hp.com>.
6929
6930 2010-10-02  Bruno Haible  <bruno@clisp.org>
6931
6932         Define missing EDQUOT on NonStop Kernel.
6933         * lib/errno.in.h (EDQUOT): Assign a value if missing.
6934         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
6935         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
6936         missing.
6937         * doc/posix-headers/errno.texi: Mention the NSK bug.
6938         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
6939         Reported by Joachim Schmitz <schmitz@hp.com>.
6940
6941 2010-10-02  Bruno Haible  <bruno@clisp.org>
6942
6943         Update doc for POSIX:2008.
6944         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
6945         Update URL of POSIX specification.
6946
6947 2010-10-02  Bruno Haible  <bruno@clisp.org>
6948
6949         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
6950         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
6951         from gnulib, not from Automake.
6952
6953 2010-10-02  Bruno Haible  <bruno@clisp.org>
6954
6955         New module 'system-posix'.
6956         * modules/system-posix: New file.
6957         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
6958         module is present.
6959         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6960         GNULIB_SYSTEM_POSIX.
6961         * modules/stdlib (Depends-on): Remove sys_wait.
6962         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
6963         * doc/posix-functions/system.texi: Mention the new module.
6964         * doc/posix-headers/stdlib.texi: Likewise.
6965         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
6966         define test_sys_wait_macros to a no-op.
6967         Reported by Sam Steingold <sds@gnu.org>.
6968
6969 2010-09-30  Bruno Haible  <bruno@clisp.org>
6970
6971         More renaming from 'getdate' to 'get_date'.
6972         * doc/get_date.texi: Renamed from doc/getdate.texi.
6973         * modules/get_date (Files): Update.
6974         * MODULES.html.sh (Date and time <time.h>): Update.
6975         * DEPENDENCIES: Update.
6976         * gnulib-tool: Update comment.
6977         * m4/bison.m4 (gl_BISON): Likewise.
6978         * m4/get_date.m4 (gl_GET_DATE): Likewise.
6979
6980 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
6981
6982         bootstrap: support ACLOCAL_FLAGS during aclocal
6983         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
6984         can add additional -I dir for third-party .m4 files.
6985
6986 2010-09-30  Eric Blake  <eblake@redhat.com>
6987
6988         bootstrap: use glibtoolize on MacOS
6989         * build-aux/bootstrap (check_versions): Convert libtool into
6990         libtoolize.
6991         (tool search): Move libtool check earlier, and look for
6992         glibtoolize for MacOS.
6993         (gnulib_tool_options): Auto-add --libtool when appropriate.
6994         Reported by Justin Clift.
6995
6996         poll: fix typo that broke test on MacOS
6997         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
6998         Reported by Justin Clift.
6999
7000         getdate: rename to get_date
7001         Note: getdate.h is not renamed, to minimize client impact.
7002         * modules/getdate: Mark obsolete.  Move old contents...
7003         * modules/get_date: ...to new module name.
7004         * modules/getdate-tests: Move...
7005         * modules/get_date-tests: ...here.
7006         * m4/getdate.m4: Move...
7007         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
7008         * lib/getdate.y: Move...
7009         * lib/get_date.y: ...here.
7010         * tests/test-getdate.c: Move...
7011         * tests/test-get_date.c: ...here.
7012         * doc/posix-functions/getdate.texi (getdate): Update name.
7013         * NEWS: Mention the change.
7014
7015 2010-09-29  Bruno Haible  <bruno@clisp.org>
7016
7017         Separate the module 'waitpid' from the module 'sys_wait'.
7018         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
7019         present.
7020         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
7021         gl_MODULE_INDICATOR_FOR_TESTS.
7022         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
7023         * modules/sys_wait (Depends-on): Remove waitpid.
7024         (Makefile.am): Substitute GNULIB_WAITPID.
7025         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
7026         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
7027         signature only if the 'waitpid' module is present.
7028         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
7029         * NEWS: Mention the change.
7030         * modules/grantpt (Depends-on): Add waitpid.
7031         * modules/wait-process (Depends-on): Likewise.
7032
7033 2010-09-29  Bruno Haible  <bruno@clisp.org>
7034
7035         More tests for module 'sys_wait'.
7036         * modules/sys_wait-c++-tests: New file.
7037         * tests/test-sys_wait-c++.cc: New file.
7038         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
7039         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7040
7041 2010-09-29  Bruno Haible  <bruno@clisp.org>
7042
7043         New module 'waitpid'.
7044         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
7045         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
7046         Don't include <process.h>.
7047         (waitpid): Declare only, using modern idiom.
7048         * m4/waitpid.m4: New file.
7049         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
7050         * modules/waitpid: New file.
7051         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
7052         (Makefile.am): Update.
7053         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7054
7055 2010-09-28  Bruno Haible  <bruno@clisp.org>
7056
7057         poll: Assume ANSI C.
7058         * lib/poll.c (poll): Use an ANSI C declaration.
7059
7060 2010-09-28  Bruno Haible  <bruno@clisp.org>
7061
7062         poll-h: Create poll.h on all platforms.
7063         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
7064         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
7065         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
7066         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
7067         (gl_REPLACE_POLL_H): Don't set POLL_H.
7068         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
7069         * modules/poll-h (Depends-on): Add include_next.
7070         (Makefile.am): Create poll.h unconditionally. Substitute also
7071         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
7072
7073 2010-09-28  Bruno Haible  <bruno@clisp.org>
7074
7075         Tests for module 'poll-h'.
7076         * modules/poll-h-c++-tests: New file.
7077         * tests/test-poll-h-c++.cc: New file.
7078
7079         Tests for module 'poll-h'.
7080         * modules/poll-h-tests: New file.
7081         * tests/test-poll-h.c: New file.
7082
7083 2010-09-28  Bruno Haible  <bruno@clisp.org>
7084
7085         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
7086         * modules/poll-h (Depends-on): Add 'extensions'.
7087
7088 2010-09-28  Bruno Haible  <bruno@clisp.org>
7089
7090         New module 'poll-h'.
7091         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
7092         (poll): Use modern idiom.
7093         * modules/poll-h: New file.
7094         * modules/poll (Files): Remove lib/poll.in.h.
7095         (Depends-on): Add poll-h.
7096         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
7097         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
7098         * m4/poll_h.m4: New file.
7099         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
7100         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
7101         and invoke gl_REPLACE_POLL_H.
7102         * lib/poll.c: Use common idiom.
7103         * tests/test-poll.c: Likewise.
7104         * doc/posix-headers/poll.texi: Mention the poll-h module.
7105         Suggested by Eric Blake.
7106
7107 2010-09-26  Bruno Haible  <bruno@clisp.org>
7108
7109         sys_wait: Implement WSTOPSIG.
7110         * lib/sys_wait.in.h (WSTOPSIG): New macro.
7111         Reported by Simon Josefsson.
7112
7113 2010-09-26  Simon Josefsson  <simon@josefsson.org>
7114
7115         stdlib, sys_wait: Avoid compilation error on mingw.
7116         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
7117
7118 2010-09-26  Bruno Haible  <bruno@clisp.org>
7119
7120         stdlib tests: Avoid code duplication.
7121         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
7122         * modules/sys_wait-tests (Files): Likewise.
7123         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
7124         * tests/test-stdlib.c: Include test-sys_wait.h.
7125         (main): Invoke test_sys_wait_macros.
7126         * tests/test-sys_wait.c: Include test-sys_wait.h.
7127         (main): Invoke test_sys_wait_macros.
7128
7129 2010-09-25  Simon Josefsson  <simon@josefsson.org>
7130
7131         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
7132         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
7133         sure Windows sockets are working before calling getaddrinfo.
7134         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
7135         * doc/gnulib.texi (Windows sockets): Fix typo.
7136
7137 2010-09-25  Bruno Haible  <bruno@clisp.org>
7138
7139         Tests for module 'regex-quote'.
7140         * modules/regex-quote-tests: New file.
7141         * tests/test-regex-quote.c: New file.
7142
7143         New module 'regex-quote'.
7144         * lib/regex-quote.h: New file.
7145         * lib/regex-quote.c: New file.
7146         * modules/regex-quote: New file.
7147         Suggested by Reuben Thomas <rrt@sc3d.org>.
7148
7149 2010-09-24  Bruno Haible  <bruno@clisp.org>
7150
7151         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
7152         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
7153
7154 2010-09-23  Bruno Haible  <bruno@clisp.org>
7155
7156         setenv: Relax license.
7157         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
7158         Blake.
7159         Requested by Eric Blake.
7160
7161 2010-09-22  Bruno Haible  <bruno@clisp.org>
7162
7163         termios: Relax license.
7164         * modules/termios (License): Change to LGPLv2+.
7165         Requested by Eric Blake.
7166
7167 2010-09-22  Bruno Haible  <bruno@clisp.org>
7168
7169         threadlib: Allow the package to change the default to 'no'.
7170         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
7171         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
7172         Reported by Paul Eggert.
7173
7174 2010-09-22  Pádraig Brady  <P@draigbrady.com>
7175             Bruno Haible  <bruno@clisp.org>
7176
7177         Fix endless loop in mbmemcasecoll.
7178         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
7179         byte.
7180         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
7181
7182 2010-09-22  Bruno Haible  <bruno@clisp.org>
7183
7184         Tests for module 'memcoll'.
7185         * modules/memcoll-tests: New file.
7186         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
7187
7188         memcoll, xmemcoll: Clarify size vs. length.
7189         * modules/memcoll.c (memcoll0): Clarify specification.
7190         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
7191         passed to collate_error.
7192
7193 2010-09-22  Bruno Haible  <bruno@clisp.org>
7194
7195         Tests for module 'memcasecmp'.
7196         * modules/memcasecmp-tests: New file.
7197         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
7198
7199 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
7200
7201         * lib/pthread.in.h: Add split double-inclusion guard, and include
7202         system <pthread.h> if there is one.  Use @@-style as in other
7203         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
7204         pthread.h doesn't.
7205         (pthread_mutexattr_destroy, pthread_mutexattr_init):
7206         (pthread_mutexattr_settype, pthread_mutex_trylock):
7207         New static inline functions, if there's no system <pthread.h>.
7208         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
7209         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
7210         Approximate with mutexes if the system lacks spinlocks, as in
7211         MacOS.
7212         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
7213         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
7214         @@-style.  Check for spinlocks separately.
7215         (gl_PTHREAD_DEFAULTS): New macro.
7216         * modules/pthread: Redo to use a more typical style for in.h files.
7217
7218 2010-09-21  Eric Blake  <eblake@redhat.com>
7219
7220         net_if: enhance tests
7221         * tests/test-net_if.c (main): Move signature checks earlier.
7222         Print failures to stderr.
7223         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
7224         Document the bug that we do not yet fix.
7225
7226 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
7227
7228         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
7229         about gnulib, not GSS.
7230
7231 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
7232
7233         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
7234         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
7235         for Emacs.
7236         * build-aux/pmccabe2html: Make Makefile.am example code more
7237         cut-and-paste friendly.
7238
7239 2010-09-21  Simon Josefsson  <simon@josefsson.org>
7240
7241         * tests/test-net_if.c: New file.
7242         * modules/net_if-tests: New file.
7243
7244 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
7245
7246         pthread: add pthread_spin_destroy
7247         * lib/pthread.in.h (pthread_spin_destroy): New function.
7248
7249 2010-09-19  Bruno Haible  <bruno@clisp.org>
7250
7251         gnulib-tool: Fix --help output.
7252         * gnulib-tool (func_usage): Fix help message.
7253         Reported by Reuben Thomas <rrt@sc3d.org>.
7254
7255 2010-09-18  Jim Meyering  <meyering@redhat.com>
7256
7257         maint.mk: avoid unexpanded \n in two diagnostics
7258         * top/maint.mk (sc_prohibit_always_true_header_tests):
7259         Don't use a literal \n in a halt=... assignment.  It would not be
7260         expanded, and the two \n bytes would appear in the diagnostic output
7261         rather than the desired newline.  Use halt=$$(printf ... instead.
7262         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
7263
7264 2010-09-18  Bruno Haible  <bruno@clisp.org>
7265
7266         netinet_in: Doc tweak.
7267         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
7268         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7269
7270 2010-09-18  Jim Meyering  <meyering@redhat.com>
7271
7272         init.sh: correct an outdated comment
7273         * tests/init.sh (create_exe_shims_):  s/function/alias/
7274
7275         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
7276         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
7277         a file named "*.exe" is removed between the glob expansion and the
7278         processing of that oddly named file.
7279
7280 2010-09-17  Eric Blake  <eblake@redhat.com>
7281
7282         mirbsd: add some more support
7283         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
7284         in BSD family.
7285         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
7286         devices as OpenBSD.
7287         * m4/host-os.m4 (mirbsd): Add MirBSD.
7288
7289         tests: fix unportable assumption on sys/wait.h
7290         * tests/test-sys_wait.c (main): Relax test.
7291         * tests/test-stdlib.c (main): Likewise.
7292
7293         init.sh: accomodate directory with no .exes
7294         * tests/init.sh: Accomodate directory containing only scripts.
7295
7296         tests: avoid compiler warning
7297         * tests/test-stdlib.c (main): Use the variable.
7298
7299         fdutimens, fdutimensat: update signature, again
7300         * lib/utimens.h (gl_futimens): Delete, and move signature...
7301         (fdutimens): ...here.
7302         (fdutimensat): Rearrange signature.
7303         (lutimensat): Rename variable for clarity.
7304         * lib/fdutimensat.c (fdutimensat): Update signature.
7305         * lib/utimens.c (fdutimens): Likewise.
7306         (gl_futimens): Delete.
7307         (utimens, lutimens): Update callers.
7308         * lib/futimens.c (futimens): Likewise.
7309         * tests/test-fdutimensat.c: Likewise.
7310         * tests/test-utimens.c: Likewise.
7311         * tests/test-futimens.h: Update comment.
7312         * NEWS: Mention this.
7313         Suggested by Paul Eggert.
7314
7315 2010-09-17  Bruno Haible  <bruno@clisp.org>
7316
7317         Take over the maintenance of some older macros from Autoconf.
7318         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
7319         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
7320         GNU Autoconf.
7321         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
7322         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
7323
7324 2010-09-17  Eric Blake  <eblake@redhat.com>
7325
7326         fdutimensat: drop atflag validation
7327         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
7328         with valid fd, to close a race scenario where futimens is
7329         unsupported and FILE was replaced by a symlink.
7330         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
7331         accordingly.
7332         Suggested by Paul Eggert.
7333
7334 2010-09-16  Bruno Haible  <bruno@clisp.org>
7335
7336         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
7337         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
7338
7339 2010-09-16  Bruno Haible  <bruno@clisp.org>
7340
7341         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
7342         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
7343         login_tty exists.
7344         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7345
7346 2010-09-16  Bruno Haible  <bruno@clisp.org>
7347
7348         login_tty: Make the replacement code work on BSD systems.
7349         * lib/login_tty.c: Include <sys/ioctl.h>.
7350         (login_tty): Use ioctl TIOCSCTTY when available.
7351         * modules/login_tty (Depends-on): Add sys_ioctl.
7352         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7353
7354 2010-09-16  Bruno Haible  <bruno@clisp.org>
7355
7356         login_tty: Stricter unit test.
7357         * modules/login_tty-tests (Depends-on): Add tcgetsid.
7358         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
7359         and tcgetsid() after login_tty.
7360         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7361
7362 2010-09-16  Bruno Haible  <bruno@clisp.org>
7363
7364         New module 'tcgetsid'.
7365         * lib/tcgetsid.c: New file.
7366         * m4/tcgetsid.m4: New file.
7367         * modules/tcgetsid: New file.
7368         * modules/termios (Depends-on): Add c++defs, warn-on-use.
7369         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
7370         GNULIB_TCGETSID, HAVE_TCGETSID.
7371         * lib/termios.in.h: Include <sys/types.h>.
7372         (tcgetsid): New declaration.
7373         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
7374         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
7375         * doc/posix-functions/tcgetsid.texi: Mention the new module.
7376         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
7377
7378 2010-09-16  Bruno Haible  <bruno@clisp.org>
7379
7380         Tests for module 'termios'.
7381         * modules/termios-c++-tests: New file.
7382         * modules/termios-tests: New file.
7383         * tests/test-termios-c++.cc: New file.
7384         * tests/test-termios.c: New file.
7385
7386         New module 'termios'.
7387         * modules/termios: New file.
7388         * lib/termios.in.h: New file.
7389         * m4/termios_h.m4: New file.
7390         * doc/posix-headers/termios.texi: Mention the new module.
7391
7392 2010-09-16  Eric Blake  <eblake@redhat.com>
7393
7394         fdutimensat: add an atflag parameter
7395         * lib/fdutimensat.c (fdutimensat): Add new parameter.
7396         * lib/utimens.h (fdutimensat): Update prototype.
7397         * tests/test-fdutimensat.c: Adjust test to match.
7398         * NEWS: Document the change.
7399         Suggested by Paul Eggert.
7400
7401 2010-09-16  Bruno Haible  <bruno@clisp.org>
7402
7403         Fix typos in comments.
7404         * lib/striconveh.h: Fix typo in comment.
7405         * lib/login_tty.c (login_tty): Likewise.
7406
7407 2010-09-15  Bruno Haible  <bruno@clisp.org>
7408
7409         stdlib: clarify MirBSD WEXITSTATUS bug
7410         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
7411         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
7412
7413 2010-09-15  Eric Blake  <eblake@redhat.com>
7414
7415         stdlib: work around MirBSD WEXITSTATUS bug
7416         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
7417         * modules/stdlib (Depends-on): Add sys_wait.
7418         * tests/test-sys_wait.c (main): Enhance test.
7419         * tests/test-stdlib.c (main): Likewise.
7420         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
7421
7422         docs: mention MacOS issue with WEXITSTATUS(constant)
7423         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
7424         issue.
7425         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
7426
7427         strnlen: add tests
7428         * modules/strnlen-tests: New file.
7429         * tests/test-strnlen.c: Likewise.
7430
7431 2010-09-14  Bruno Haible  <bruno@clisp.org>
7432
7433         unistr/base: Avoid link errors when module 'libunistring' is also used.
7434         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
7435         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
7436         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
7437         Declare also when HAVE_LIBUNISTRING is set.
7438         Reported by Pádraig Brady <P@draigbrady.com>.
7439
7440 2010-09-14  Eric Blake  <eblake@redhat.com>
7441
7442         test-rawmemchr: make more robust
7443         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
7444         (Depends-on, configure.ac): Add needed prerequisites to use it.
7445         * modules/memchr-tests (Files, Depends-on, configure.ac):
7446         Likewise, to avoid implicit reliance on memchr module prereqs.
7447         * tests/test-memchr.c (main): Ensure proper masking.
7448         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
7449         reads.
7450
7451         memchr: detect glibc Alpha bug
7452         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
7453         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
7454         Alpha.
7455         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
7456         * tests/test-memchr.c (main): Enhance test.
7457         Reported by Nelson H. F. Beebe.
7458
7459 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
7460
7461         fts, getcwd, glob: audit for dirfd returning -1
7462         * lib/fts.c (opendir): Remove #define; no longer used.
7463         (opendirat): New arg PDIR_FD.  All callers changed.
7464         (fts_build, _opendir2): Use new opendirat to avoid the need for
7465         dirfd, or for checking whether dirfd returns a negative value.
7466         Don't use opendir; always use openat followed by fdopendir.
7467         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
7468         it.
7469         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
7470         returns -1 here.
7471         * modules/fts (Depends-on): Remove dirfd.
7472         * modules/getcwd (Depends-on): Likewise.
7473
7474 2010-09-13  Eric Blake  <eblake@redhat.com>
7475
7476         float: fix broken MirBSD header
7477         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
7478         * doc/posix-headers/float.texi (float.h): Document it.
7479
7480 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
7481
7482         fts: use O_NOFOLLOW to avoid race condition when opening a directory
7483         * lib/fts.c (opendirat): New arg extra_flags.
7484         (__opendir2): Use it to avoid following symlinks when opening
7485         a directory, if symlinks are not supposed to be followed.  See
7486         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
7487
7488         fdopendir: preserve argument fd before returning
7489         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
7490         (fdopendir_with_dup, fd_clone_opendir): New static functions.
7491         (fdopendir): Use them, arranging for FD to be open to the same
7492         directory that it was when it started.  (It might be temporarily
7493         closed while fdopendir is running, so this not thread- or
7494         signal-safe.)  Be careful to do the right thing even when file
7495         descriptors are scarce and dup fails with errno == EMFILE.  See
7496         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
7497
7498 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
7499
7500         regex: Pass the system regex if its only problem is 32-bit regoff_t.
7501         * NEWS: Document change.
7502         * m4/regex.m4: Disable test for regoff_t size.
7503
7504 2010-09-13  Jim Meyering  <meyering@redhat.com>
7505
7506         fts: don't operate on an invalid file descriptor after failed dup
7507         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
7508         negative file descriptor.
7509
7510 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
7511
7512         savedir: add streamsavedir, deprecate fdsavedir
7513         * NEWS: Mention deprecation of fdsavedir.
7514         * lib/savedir.c (streamsavedir): New extern function, whose name
7515         ends in "savedir" to be consistent with the others.  This differs
7516         from savedirstream in that it doesn't close its argument.  The
7517         next version of GNU tar will use this instead of fdsavedir, to
7518         avoid some race conditions and conserve file descriptors.
7519         (savedirstream): Reimplement as a wrapper around streamsavedir.
7520         (fdsavedir): Add a comment deprecating this function.  As far as
7521         I know, only GNU tar used it, and GNU tar doesn't need it any more.
7522         * lib/savedir.h (streamsavedir): New decl.
7523         (fdsavedir): Add a comment deprecating this.
7524
7525 2010-09-10  Bruno Haible  <bruno@clisp.org>
7526
7527         langinfo: Fix last commit.
7528         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
7529         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
7530         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7531
7532 2010-09-10  Bruno Haible  <bruno@clisp.org>
7533
7534         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
7535         * lib/progreloc.c (O_EXEC): Define fallback.
7536
7537 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
7538
7539         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
7540         * NEWS: Document recent changes to fcntl-h.
7541         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
7542         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
7543         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
7544         Similarly for O_SEARCH; this last was already true, but not documented.
7545         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
7546         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
7547         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
7548         Likewise.
7549         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
7550         is zero, not whether it is defined.
7551         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
7552         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
7553         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
7554
7555 2010-09-10  Bruno Haible  <bruno@clisp.org>
7556
7557         langinfo, nl_langinfo: Fix for IRIX 5.3.
7558         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
7559         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
7560         HAVE_LANGINFO_YESEXPR.
7561         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
7562         HAVE_LANGINFO_YESEXPR.
7563         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
7564         HAVE_LANGINFO_T_FMT_AMPM is 0.
7565         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
7566         HAVE_LANGINFO_YESEXPR is 0.
7567         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
7568         NOEXPR.
7569         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
7570         * doc/posix-functions/nl_langinfo.texi: Likewise.
7571         Reported by Eric Blake.
7572
7573 2010-09-10  Bruno Haible  <bruno@clisp.org>
7574
7575         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
7576         * doc/glibc-functions/login_tty.texi: Mention the include file problem
7577         on FreeBSD 8.0 and OpenBSD 4.6.
7578         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
7579         * m4/pty_h.m4 (gl_PTY_H): Likewise.
7580         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
7581         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
7582         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
7583         ac_includes_default.
7584         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7585
7586 2010-09-09  Eric Blake  <eblake@redhat.com>
7587
7588         strsignal: work around NetBSD bug
7589         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
7590         * lib/string.in.h (includes): Likewise.
7591         * doc/posix-functions/strsignal.texi (strsignal): Document the
7592         bug.
7593         Reported by Nelson H. F. Beebe.
7594
7595         gnulib-tool: work with NetBSD /bin/sh
7596         * gnulib-tool (func_cache_var, func_cache_lookup_module)
7597         (func_get_description, func_get_comment, func_get_status)
7598         (func_get_notice, func_get_applicability, func_get_filelist)
7599         (func_get_dependencies, func_get_autoconf_early_snippet)
7600         (func_get_autoconf_snippet, func_get_automake_snippet)
7601         (func_get_include_directive, func_get_link_directive)
7602         (func_get_license, func_get_maintainer, func_import): Avoid
7603         shell syntax errors from parsing syntax extensions.
7604
7605 2010-09-09  Bruno Haible  <bruno@clisp.org>
7606
7607         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
7608         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
7609         a reliable way to determine whether the 'alias' command works.
7610
7611 2010-09-08  Jim Meyering  <meyering@redhat.com>
7612
7613         init.sh: penalize a set-x-impaired shell; don't disqualify it
7614         * tests/init.sh: Too many shells corrupt application stderr when
7615         you set -x, so we can't afford to disqualify them, since at least
7616         on Irix-6.5, that would disqualify all bourne shells.
7617         Instead, use a two-pass approach.
7618         On the first pass, try to find a shell that meets the stricter
7619         condition that set -x does not corrupt stderr.
7620         If no shell meets the stricter condition, retest each candidate
7621         shell, but without that extra condition.  Finally, when
7622         VERBOSE=yes is requested and set -x might cause trouble, simply
7623         issue a warning and refrain from enabling debug output.
7624
7625 2010-09-08  Eric Blake  <eblake@redhat.com>
7626
7627         unsetenv: fix OpenBSD bug
7628         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
7629         * doc/posix-functions/unsetenv.texi (unsetenv): Update
7630         documentation.
7631         Reported by Jim Meyering.
7632
7633         strtod: work around IRIX 6.5 bug
7634         * lib/strtod.c (strtod): Reparse number on shorter string if
7635         exponent parse was invalid.
7636         * tests/test-strtod.c (main): Add check for "0x1p 2".
7637         Reported by Tom G. Christensen.
7638
7639         getopt: optimize previous patch
7640         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
7641         empty variable.  Speed up awk script.
7642         Reported by Paolo Bonzini.
7643
7644 2010-09-08  Jim Meyering  <meyering@redhat.com>
7645
7646         test.sh: disqualify shells for which set -x corrupts stderr
7647         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
7648         and OpenBSD 4.7.  They make it so with "set -x", environment settings
7649         appear in stderr output.  For example, this command:
7650             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
7651         prints "P=1" on those two systems:
7652
7653 2010-09-08  Bruno Haible  <bruno@clisp.org>
7654
7655         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
7656         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
7657         commands, because some shells ignore redirections when there is an
7658         error in the command lookup.
7659         Reported by Eric Blake.
7660
7661 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
7662
7663         * lib/regex.h: Fix a mention of `regex_compile' (should be
7664         `re_compile_pattern').
7665         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
7666         (re_set_registers): Correct name of parameter in comment.
7667
7668         * doc/regex.texi: Add documentation for missing syntax flags.
7669         Remove commented-out documentation of defunct syntax option
7670         RE_NO_EMPTY_ALTS.
7671         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
7672         Add documentation of re_set_registers.
7673         Document trick to re-use a pattern buffer by setting fastmap manually.
7674         Update documentation of struct re_pattern_buffer per public members.
7675         Uncomment documentation of equivalence class operators and
7676         collating symbol operators, since they are now implemented,
7677         Explain leftmost-longest matching in relation to alternatives.
7678         Tidy documentation of substring matching.
7679         Remove POSIX documentation, which is done better in
7680         glibc, and refer the reader there. Keep BSD API documentation, as
7681         that is not readily available elsewhere.
7682
7683 2010-09-07  Eric Blake  <eblake@redhat.com>
7684
7685         getopt: handle POSIXLY_CORRECT set but not exported
7686         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
7687         export state of POSIXLY_CORRECT, due to bash set -o posix.
7688         Reported by Dustin J. Mitchell.
7689
7690 2010-09-05  Bruno Haible  <bruno@clisp.org>
7691
7692         gnulib-tool: Highlight the changed options.
7693         * gnulib-tool (func_usage): Display the --import, --add-import,
7694         --remove-import explanations in bold font.
7695
7696 2010-09-06  Karl Berry  <karl@gnu.org>
7697
7698         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
7699
7700 2010-09-05  Bruno Haible  <bruno@clisp.org>
7701
7702         uniwidth/width: Update comment.
7703         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
7704         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
7705
7706 2010-09-05  Bruno Haible  <bruno@clisp.org>
7707
7708         isinf, isnan: Relax license.
7709         * modules/isinf (License): Change from GPL to LGPL, with consent from
7710         Ben Pfaff.
7711         * modules/isnan (License): Likewise.
7712         Requested by Ludovic Courtès.
7713
7714 2010-09-04  Bruno Haible  <bruno@clisp.org>
7715
7716         gnulib-tool: Help migration from --import to --add-import or --update.
7717         * gnulib-tool: Emit a verbose error message when --import is used
7718         without any module name.
7719
7720 2010-09-04  Bruno Haible  <bruno@clisp.org>
7721
7722         Update doc about gnulib-tool.
7723         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
7724         'gnulib-tool --update' in more detail.
7725         Reported by Eric Blake.
7726
7727 2010-09-04  Bruno Haible  <bruno@clisp.org>
7728
7729         gnulib-tool: Change --import. New options --add/remove-import.
7730         * gnulib-tool: New options --add-import, --remove-import.
7731         (func_usage): Document them.
7732         (have_associative): Define always.
7733         (func_import): In import mode, don't merge the specified settings with
7734         the cached settings. Implement remove-import mode.
7735         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
7736         Explain when to use them versus --import.
7737         (Simple update): Use --add-import instead of --import.
7738         * NEWS: Mention the change.
7739
7740 2010-09-04  Bruno Haible  <bruno@clisp.org>
7741
7742         * doc/gnulib-tool.texi (Initial import): Update paragraph about
7743         separate gnulib.mk.
7744
7745 2010-09-04  Bruno Haible  <bruno@clisp.org>
7746
7747         gnulib-tool: Don't talk about CVS any more.
7748         * gnulib-tool (func_usage, func_import): Write "version control"
7749         instead of CVS.
7750
7751 2010-09-04  Jim Meyering  <meyering@redhat.com>
7752
7753         maint.mk: avoid obscure sc_copyright_check failure in coreutils
7754         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
7755         false positives (whose names may be ill-chosen) when searching
7756         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
7757         would cause a false-positive.
7758
7759         avoid coreutils "make distcheck" failure
7760         Coreutils tests with an absolute build directory name that contains
7761         a space.  Not quoting this directory name caused a failure.
7762         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
7763         * tests/test-vc-list-files-cvs.sh: Likewise.
7764
7765 2010-09-04  Bruno Haible  <bruno@clisp.org>
7766
7767         gnulib-tool: Avoid error when run in a package without Makefile.am.
7768         * gnulib-tool: When collecting the m4dirs in a package that does not
7769         have a Makefile.am, eliminate those directories that contain no
7770         gnulib-cache.m4. Fix expression that counts these directories.
7771
7772 2010-09-04  Bruno Haible  <bruno@clisp.org>
7773
7774         update-copyright test: Improve output when perl is missing or too old.
7775         * tests/test-update-copyright.sh: Move test of Perl version down after
7776         the test whether Perl exists. Provide an explanation relating Perl's
7777         error message to Automake's SKIP: message.
7778
7779 2010-09-04  Bruno Haible  <bruno@clisp.org>
7780
7781         Don't augment PATH in TESTS_ENVIRONMENT.
7782         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
7783         set abs_aux_dir instead of augmenting PATH.
7784         * modules/vc-list-files-tests (Makefile.am): Likewise.
7785         * tests/test-update-copyright.sh: Augment PATH here.
7786         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
7787         path_prepend_.
7788         * tests/test-vc-list-files-git.sh: Likewise.
7789
7790 2010-09-04  Jim Meyering  <meyering@redhat.com>
7791
7792         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
7793         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
7794
7795 2010-09-04  Bruno Haible  <bruno@clisp.org>
7796
7797         strdup: Fix compilation error in C++ mode.
7798         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
7799         the macro.
7800
7801 2010-09-04  Bruno Haible  <bruno@clisp.org>
7802
7803         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
7804         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
7805         macro into a function.
7806         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7807
7808 2010-09-04  Bruno Haible  <bruno@clisp.org>
7809
7810         Set PATH_SEPARATOR the same way autoconf does.
7811         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
7812         the value of PATH_SEPARATOR the same way autoconf-generated configure
7813         scripts do.
7814         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
7815         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
7816
7817 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7818
7819         Set PATH_SEPARATOR the same way autoconf does.
7820         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
7821         the same way autoconf-generated configure scripts do.
7822         * posix-modules: Likewise.
7823
7824 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
7825
7826         hash: fix safe_hasher const typo
7827         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
7828         const; otherwise, there is a type error later.
7829
7830 2010-09-02  Jim Meyering  <meyering@redhat.com>
7831
7832         test-update-copyright.sh: require perl 5.8.0
7833         * tests/test-update-copyright.sh: Require 5.8.0,
7834         which Tom G. Christensen has confirmed is adequate,
7835         while 5.6.1 is not.
7836
7837 2010-09-02  Eric Blake  <eblake@redhat.com>
7838
7839         tests: init.sh improvements for re-exec'ing with zsh
7840         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
7841         -vx through shell re-exec.
7842         Reported by Tom G. Christensen.
7843
7844         wctype: fix typo in previous commit
7845         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
7846         Reported by Ludovic Courtès.
7847
7848 2010-09-02  Jim Meyering  <meyering@redhat.com>
7849
7850         test-update-copyright.sh: skip test if Perl is too old
7851         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
7852         Reported by Tom G. Christensen.
7853
7854 2010-09-02  Bruno Haible  <bruno@clisp.org>
7855
7856         wctype: Avoid compilation error on IRIX 6.5.30.
7857         * lib/wctype.in.h (iswblank): Declare with a replacement if
7858         REPLACE_ISWBLANK is set.
7859         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
7860         declared. Set REPLACE_ISWBLANK.
7861         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
7862         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
7863         * doc/posix-headers/wctype.texi: Likewise.
7864         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7865
7866 2010-09-01  Bruno Haible  <bruno@clisp.org>
7867
7868         New module 'socketlib'.
7869         * modules/socketlib: New file.
7870         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
7871         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
7872         * modules/sockets (Depends-on): Add socketlib.
7873         Suggested by Sam Steingold <sds@gnu.org>.
7874
7875 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
7876
7877         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
7878
7879         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
7880         when one needs search access to a directory but not read access.
7881         On systems where it is available, it works in some cases where
7882         O_RDONLY does not, namely on directories that are searchable but
7883         not readable, and which need only to be searchable.  If O_SEARCH
7884         is not available, fall back to the traditional method of using
7885         O_RDONLY.
7886
7887         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
7888         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
7889         when opening a directory that needs only to be searchable.
7890         * lib/chdir-safer.c (chdir_no_follow): Likewise.
7891         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
7892         * lib/openat-proc.c (openat_proc_name): Likewise.
7893         * lib/openat.c (openat_needs_fchdir): Likewise.
7894         * lib/save-cwd.c (save_cwd): Likewise.
7895         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
7896
7897 2010-08-28  Bruno Haible  <bruno@clisp.org>
7898
7899         New module 'host-cpu-c-abi'.
7900         * modules/host-cpu-c-abi: New file.
7901         * m4/host-cpu-c-abi.m4: New file, based on part of
7902         clisp/src/m4/general.m4.
7903         Requested by Sam Steingold <sds@gnu.org>.
7904
7905 2010-08-31  Eric Blake  <eblake@redhat.com>
7906         and Jim Meyering  <meyering@redhat.com>
7907
7908         hash: factor, and guard against misbehaving hasher function
7909         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
7910         of table->hasher's return value.  Also protect against a hash value
7911         so large that adding it to table->bucket results in a NULL pointer.
7912         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
7913         Use it in place of open-coded check-and-abort.
7914
7915 2010-08-30  Bruno Haible  <bruno@clisp.org>
7916
7917         hash: silence spurious clang warning
7918         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
7919         Reported by Eric Blake.
7920
7921 2010-08-30  Eric Blake  <eblake@redhat.com>
7922
7923         strstr, memmem, strcasestr: avoid leaked shell message
7924         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
7925         FreeBSD.
7926         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7927         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7928
7929         tests: silence clang warning
7930         * tests/test-malloca.c (do_allocation): Avoid dead store.
7931
7932 2010-08-29  Bruno Haible  <bruno@clisp.org>
7933
7934         gettext: Fix recent mistake.
7935         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
7936
7937 2010-08-29  Bruno Haible  <bruno@clisp.org>
7938
7939         selinux-h: Offer a --without-selinux option.
7940         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
7941         --without-selinux was specified, skip all tests and define
7942         HAVE_SELINUX_SELINUX_H to 0.
7943         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
7944         set LIB_SELINUX to empty.
7945         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
7946         gl_LIBSELINUX. If --without-selinux was specified, replace
7947         selinux/context.h.
7948         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
7949
7950 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7951             Bruno Haible  <bruno@clisp.org>
7952
7953         Make the module 'realloc-gnu' work again on AIX and OSF/1.
7954         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
7955         of HAVE_REALLOC.
7956         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
7957         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
7958         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
7959         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
7960
7961 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7962             Bruno Haible  <bruno@clisp.org>
7963
7964         Make the module 'calloc-gnu' work again on AIX and OSF/1.
7965         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
7966         HAVE_CALLOC.
7967         * lib/xmalloc.c: Update accordingly.
7968         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
7969         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
7970         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
7971
7972 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7973             Bruno Haible  <bruno@clisp.org>
7974
7975         Make the module 'malloc-gnu' work again on AIX and OSF/1.
7976         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
7977         HAVE_MALLOC.
7978         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
7979         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
7980         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
7981
7982 2010-08-29  Bruno Haible  <bruno@clisp.org>
7983
7984         Update modules list.
7985         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
7986         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
7987         (String handling <string.h>): Add astrxfrm.
7988         (File system functions): Add readlinkat.
7989
7990 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7991
7992         Tests for module 'realloc-gnu'.
7993         * modules/realloc-gnu-tests: New file.
7994         * tests/test-realloc-gnu.c: New file.
7995
7996         Tests for module 'calloc-gnu'.
7997         * modules/calloc-gnu-tests: New file.
7998         * tests/test-calloc-gnu.c: New file.
7999
8000         Tests for module 'malloc-gnu'.
8001         * modules/malloc-gnu-tests: New file.
8002         * tests/test-malloc-gnu.c: New file.
8003
8004 2010-08-28  Bruno Haible  <bruno@clisp.org>
8005
8006         Rename module 'realloc' -> 'realloc-gnu'.
8007         * modules/realloc-gnu: New file, copied from modules/realloc.
8008         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
8009         obsolete.
8010         * modules/mgetgroups (Depends-on): Update.
8011         * doc/posix-functions/realloc.texi: Update.
8012         * NEWS: Mention the change.
8013
8014         Rename module 'calloc' -> 'calloc-gnu'.
8015         * modules/calloc-gnu: New file, copied from modules/calloc.
8016         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
8017         obsolete.
8018         * doc/posix-functions/calloc.texi: Update.
8019         * NEWS: Mention the change.
8020
8021         Rename module 'malloc' -> 'malloc-gnu'.
8022         * modules/malloc-gnu: New file, copied from modules/malloc.
8023         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
8024         obsolete.
8025         * modules/argp (Depends-on): Update.
8026         * modules/regex (Depends-on): Update.
8027         * doc/posix-functions/malloc.texi: Update.
8028         * NEWS: Mention the change.
8029
8030 2010-08-28  Eric Blake  <eblake@redhat.com>
8031
8032         pread, pwrite: add missing dependency
8033         * modules/pread (Depends-on): Add extensions.
8034         * modules/pwrite (Depends-on): Likewise.
8035
8036 2010-08-28  Bruno Haible  <bruno@clisp.org>
8037
8038         unistr/u*-strchr: Fix tests dependencies.
8039         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
8040         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
8041         Reported by Ian Beckwith <ianb@erislabs.net>.
8042
8043 2010-08-28  Bruno Haible  <bruno@clisp.org>
8044
8045         read-file: Don't occupy too much unused memory.
8046         * lib/read-file.c (fread_file): Shrink the buffer at the end.
8047
8048 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
8049             Eric Blake  <eblake@redhat.com>
8050             Bruno Haible  <bruno@clisp.org>
8051
8052         read-file: Avoid memory reallocations with regular files.
8053         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
8054         (fread_file): With regular files, use the remaining length as the
8055         initial buffer size.  Check against overflow.
8056         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
8057         sys_stat.
8058
8059 2010-08-28  Bruno Haible  <bruno@clisp.org>
8060
8061         ftello: Relax license.
8062         * modules/ftello (License): Relax to LGPLv2+.
8063         Reported by Eric Blake.
8064
8065 2010-08-28  Bruno Haible  <bruno@clisp.org>
8066
8067         Avoid relocwrapper link errors due to gnulib replacement functions.
8068         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
8069         function.
8070         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8071
8072 2010-08-28  Bruno Haible  <bruno@clisp.org>
8073
8074         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
8075         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
8076         defined.
8077         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
8078         Suggested by Eric Blake.
8079
8080 2010-08-28  Bruno Haible  <bruno@clisp.org>
8081
8082         sys_socket, netdb: Ensure socklen_t gets defined.
8083         * modules/sys_socket (Depends-on): Add socklen.
8084         * modules/netdb (Depends-on): Likewise.
8085         * modules/getaddrinfo (Depends-on): Remove socklen.
8086         * modules/getsockopt (Depends-on): Likewise.
8087         * modules/setsockopt (Depends-on): Likewise.
8088         * tests/test-sys_socket.c: Check that socklen_t is defined.
8089         * tests/test-netdb.c: Likewise.
8090         * m4/socklen.m4: Update comments.
8091         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8092
8093 2010-08-27  Eric Blake  <eblake@redhat.com>
8094
8095         login_tty: add missing dependency
8096         * modules/login_tty (Depends-on): Add pty.
8097
8098 2010-08-26  Eric Blake  <eblake@redhat.com>
8099
8100         lib-symbol-versions: fix m4 quoting
8101         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
8102         format for AC_LINK_IFELSE.
8103
8104         glob: fix compile test
8105         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
8106
8107         btowc: fix missing file
8108         * modules/btowc (Files): Also ship locale-fr.m4.
8109
8110         lseek: fix link test
8111         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
8112         AC_LINK_IFELSE.
8113
8114         include_next: silence autoconf 2.68 warning
8115         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
8116         AC_COMPILE_IFELSE as special.
8117         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
8118         autoconf < 2.68.
8119
8120         acl: fix compilation test
8121         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
8122         AC_COMPILE_IFELSE.
8123
8124 2010-08-26  Bruno Haible  <bruno@clisp.org>
8125
8126         Modernize AC_TRY_RUN invocations.
8127         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
8128         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
8129         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
8130         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
8131         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
8132         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
8133         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
8134         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8135         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
8136         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8137         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
8138         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8139         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
8140         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8141         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
8142         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
8143         gl_MBRLEN_NUL_RETVAL): Likewise.
8144         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8145         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
8146         Likewise.
8147         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8148         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8149         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
8150         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
8151         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
8152         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
8153         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
8154         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
8155         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
8156         Likewise.
8157         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
8158         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
8159         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8160         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
8161         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8162         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
8163         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8164         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
8165         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8166         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8167
8168 2010-08-26  Bruno Haible  <bruno@clisp.org>
8169
8170         Modernize AC_TRY_LINK invocations.
8171         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
8172         AC_TRY_LINK.
8173         * m4/argp.m4 (gl_ARGP): Likewise.
8174         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8175         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8176         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
8177         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
8178         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
8179         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
8180         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8181         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8182         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
8183         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
8184         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
8185         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
8186         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
8187         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
8188         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
8189         * m4/hostent.m4 (gl_HOSTENT): Likewise.
8190         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8191         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
8192         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
8193         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
8194         Likewise.
8195         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
8196         Likewise.
8197         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
8198         Likewise.
8199         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
8200         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
8201         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
8202         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
8203         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
8204         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
8205         * m4/servent.m4 (gl_SERVENT): Likewise.
8206         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
8207         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8208         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8209         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8210         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
8211         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8212         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8213         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8214         * modules/tsearch-tests (configure.ac): Likewise.
8215
8216 2010-08-26  Bruno Haible  <bruno@clisp.org>
8217
8218         Modernize AC_TRY_COMPILE invocations.
8219         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
8220         AC_TRY_COMPILE.
8221         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
8222         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
8223         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
8224         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
8225         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
8226         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
8227         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
8228         * m4/lock.m4 (gl_LOCK): Likewise.
8229         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
8230         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
8231         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
8232         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
8233         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
8234         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
8235         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
8236         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
8237         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
8238         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
8239         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
8240         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
8241         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
8242         extraneous semicolon.
8243
8244 2010-08-26  Jim Meyering  <meyering@redhat.com>
8245
8246         stat-time: relax license LGPL
8247         * modules/stat-time (License): Change from GPL to LGPL,
8248         with consent from all contributors, for use in libguile.
8249         Requested by Ludovic Courtès.
8250
8251 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
8252
8253         poll: return immediately on POLLHUP.
8254         * lib/poll.c (poll): Always set timeout before wait_timeout is
8255         computed.
8256
8257 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8258
8259         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
8260         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
8261         rmdir ("dir/.//"), unlinkat.
8262
8263 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
8264
8265         stdbool: avoid spurious failure with modern xlc
8266         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
8267
8268 2010-08-24  Bruno Haible  <bruno@clisp.org>
8269
8270         getloadavg: simplify code
8271         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
8272         gl_have_func. Update comments.
8273
8274 2010-08-24  Eric Blake  <eblake@redhat.com>
8275
8276         getloadavg: don't define SVR4 on cygwin
8277         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
8278         only define SVR4 when -lkvm is required.
8279         Reported by Yaakov Selkowitz.
8280
8281 2010-08-24  Bruno Haible  <bruno@clisp.org>
8282
8283         priv-set: fix comment
8284         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
8285
8286 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
8287
8288         priv-set: fix comments
8289         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
8290         to match code, as suggested by David Bartley in:
8291         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
8292
8293 2010-08-23  Eric Blake  <eblake@redhat.com>
8294
8295         stdbool: avoid rejecting clang
8296         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
8297         * tests/test-stdbool.c: Enable more tests if using the system
8298         <stdbool.h> instead of the gnulib replacement.
8299         (main): Move xlc bug test to a runtime test for all compilers.
8300         Reported by Anders Kaseorg.
8301
8302         argz: fix shell quoting issue
8303         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
8304         Reported by Charles Wilson.
8305
8306 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
8307             Erik Faye-Lund <kusmabite@gmail.com>
8308
8309         poll, select: handle ERROR_BROKEN_PIPE.
8310         * lib/poll.c (win32_compute_revents): Return POLLHUP when
8311         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
8312         * lib/select.c (win32_compute_revents): Do not mark a pipe
8313         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
8314
8315 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
8316
8317         fts: allow compilation with C++
8318         * lib/fts_.h: Specify extern "C" linkage with C++.
8319
8320 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8321
8322         Fix gnulib-tool sed script de-commentation for AIX sed.
8323         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
8324         sed.
8325
8326 2010-08-17  Eric Blake  <eblake@redhat.com>
8327
8328         test-stddef: test for (some) offsetof bugs
8329         * tests/test-stddef.c: Enhance test to ensure correct type of
8330         offsetof.
8331         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
8332         that we are not fixing at this time.
8333
8334 2010-08-15  Bruno Haible  <bruno@clisp.org>
8335
8336         stpncpy: Allow stpncpy to be defined as a macro.
8337         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
8338         if it's already correctly declared.
8339         * lib/string.in.h (stpncpy): Undefine before redefining.
8340         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
8341
8342 2010-08-14  Bruno Haible  <bruno@clisp.org>
8343
8344         Rename module 'memxfrm' to 'amemxfrm'.
8345         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
8346         (amemxfrm): Renamed from memxfrm.
8347         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
8348         (amemxfrm): Renamed from memxfrm.
8349         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
8350         * NEWS: Mention the change.
8351         * MODULES.html.sh (String handling <string.h>): Update.
8352         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
8353         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
8354         * lib/unicase/u16-casexfrm.c: Likewise.
8355         * lib/unicase/u32-casexfrm.c: Likewise.
8356         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
8357         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
8358         * lib/uninorm/u16-normxfrm.c: Likewise.
8359         * lib/uninorm/u32-normxfrm.c: Likewise.
8360         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
8361         memxfrm.
8362         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
8363         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
8364         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
8365         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
8366         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
8367         Suggested by Paul Eggert.
8368
8369 2010-08-14  Bruno Haible  <bruno@clisp.org>
8370
8371         Tests for module 'astrxfrm'.
8372         * modules/astrxfrm-tests: New file.
8373         * tests/test-astrxfrm.c: New file.
8374
8375         New module 'astrxfrm'.
8376         * lib/astrxfrm.h: New file.
8377         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
8378         * modules/astrxfrm: New file.
8379
8380 2010-08-14  Reuben Thomas <rrt@sc3d.org>
8381
8382         regex: Tweak doc.
8383         * doc/regex.texi (Overview): Don't mention regex.c.
8384         (GNU Regular Expression Compiling): Likewise.
8385         (Match-end-of-line Operator): Mention 'not_eol'.
8386
8387 2010-08-14  Brian Gough  <bjg@gnu.org>
8388             Bruno Haible  <bruno@clisp.org>
8389
8390         git-merge-changelog: add doc relating to use with bzr and hg.
8391         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
8392
8393 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
8394
8395         pthread: fix pthread.h creation for srcdir != builddir
8396         * modules/pthread (Makefile.am): Fix the rule to work also in a
8397         non-srcdir build.
8398
8399 2010-08-13  Karl Berry  <karl@gnu.org>
8400
8401         * doc/regex.texi (Predefined Syntaxes): @smallexample.
8402         * doc/posix-*/*: force line break before @url of POSIX
8403         specifications.
8404         Suggested by Werner Lemberg.
8405
8406 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
8407
8408         strtod: fix const diagnostic
8409         * lib/strtod.c (strtod): Don't assign const char * to char *,
8410         as this elicits a warning from GCC when warnings are enabled.
8411
8412 2010-08-10  Pádraig Brady <P@draigbrady.com>
8413         and Eric Blake  <eblake@redhat.com>
8414
8415         copy-acl: ignore ENOTSUP on HP-UX
8416         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
8417         so that it is available for HP-UX.
8418         * lib/copy-acl.c (qcopy_acl): Use it.
8419         Reported by Patrick M. Callahan.
8420
8421 2010-08-10  Eric Blake  <eblake@redhat.com>
8422
8423         open, chown: relax license
8424         * modules/open (License): Change to LGPLv2+, with consent by all
8425         authors, for use in augeas.
8426         * modules/chown (License): Likewise.
8427         * modules/lchown (Likewise): Likewise.
8428         Requested by Adam Stokes.
8429
8430 2010-08-09  Karl Berry  <karl@gnu.org>
8431
8432         * build-aux/ar-lib: new file, import from Automake.
8433         * config/srclist.txt: autocheck for updates.
8434
8435 2010-08-09  Eric Blake  <eblake@redhat.com>
8436
8437         readlinkat: adjust client modules
8438         * modules/areadlinkat (Depends-on): Use readlinkat, not
8439         symlinkat.
8440         * modules/areadlinkat-with-size (Depends-on): Likewise.
8441
8442         mknod: be more vocal about danger of running tests as root
8443         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
8444         root, since that is just asking for problems.
8445         Suggested by Bruno Haible, based on a report by Rainer Tammer.
8446
8447         readlinkat: split into its own module
8448         * modules/symlinkat: Split readlinkat...
8449         * modules/readlinkat: ...into separate module.
8450         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
8451         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
8452         * lib/symlinkat.c (readlinkat): Move...
8453         * lib/readlinkat.c: ...into new file.
8454         * modules/symlinkat-tests: Split readlinkat test...
8455         * modules/readlinkat-tests: ...into separate module.
8456         * tests/test-symlinkat.c: Split...
8457         * tests/test-readlinkat.c: ...into new file.
8458         * NEWS: Document the split.
8459         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8460         * lib/unistd.in.h (readlinkat): Likewise.
8461         Suggested by Bruno Haible.
8462
8463 2010-08-08  Bruno Haible  <bruno@clisp.org>
8464
8465         memxfrm: Speed up.
8466         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
8467         that usually only one call to strxfrm is necessary for each string
8468         part.
8469         Reported by Paul Eggert <eggert@cs.ucla.edu>.
8470
8471 2010-08-07  Karl Berry  <karl@gnu.org>
8472
8473         * doc/posix-headers/limits.texi,
8474         * doc/posix-functions/malloc.texi,
8475         * doc/posix-functions/strsignal.texi: missing @item.
8476         * doc/ld-version-script.texi: spurious leading i.
8477         * doc/regex.texi (Interval Operators): no commas inside @var.
8478
8479 2010-08-01  Bruno Haible  <bruno@clisp.org>
8480
8481         Integrate the regex documentation.
8482         * doc/gnulib.texi: Define 'cn' index.
8483         (Regular expressions): New a chapter that includes regex.texi and
8484         regexprops-generic.texi.
8485         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
8486         syntax.
8487
8488         Whitespace cleanup.
8489         * doc/regex.texi: Remove trailing spaces.
8490
8491         Add regex documentation.
8492         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
8493         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
8494         Written by Kathy A. Hargreaves and Karl Berry.
8495
8496 2010-08-01  Bruno Haible  <bruno@clisp.org>
8497
8498         link: Update documentation.
8499         * doc/posix-functions/link.texi: Update regarding Solaris.
8500
8501 2010-07-31  Bruno Haible  <bruno@clisp.org>
8502
8503         Update modules list.
8504         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
8505         (String handling <string.h>): Add memcmp2, memxfrm.
8506         (Container data structures): Add xlist, xsublist, xoset.
8507         (Core language properties): Add alignof, unused-parameter.
8508         (Process control, Numeric conversion functions <stdlib.h>): Renamed
8509         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
8510         (Unibyte characters <ctype.h>): New section.
8511         (String handling <string.h>): New section.
8512         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
8513         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
8514         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
8515         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
8516         tan, tanh, tanl, y0, y1, yn.
8517         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
8518         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
8519         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
8520         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
8521         unlockpt, vdprintf, vdprintf-posix.
8522         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
8523         (File system functions): Add concat-filename, sys_file, sys_ioctl,
8524         xconcat-filename.
8525         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
8526         getdtablesize, pipe2, pipe2-safer.
8527         (Security): New section.
8528         (Networking functions): Add accept4.
8529         (Signal handling): Add sigpipe.
8530         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
8531         mbmemcasecoll.
8532         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
8533         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
8534         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
8535         pipe-filter-ii.
8536         (Misc): Add argp-version-etc, login_tty, parse-duration.
8537
8538 2010-07-31  Bruno Haible  <bruno@clisp.org>
8539
8540         Improve doc in MODULES.html.
8541         * modules/linkat (Description): Add the word "function".
8542         * modules/mkfifo (Description): Likewise.
8543         * modules/mknod (Description): Likewise.
8544         * modules/remove (Description): Likewise.
8545         * modules/renameat (Description): Likewise.
8546         * modules/stat (Description): Likewise.
8547         * modules/symlink (Description): Likewise.
8548         * modules/unlink (Description): Likewise.
8549
8550 2010-07-31  Bruno Haible  <bruno@clisp.org>
8551
8552         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
8553         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
8554         option --enable/disable-c++ instead of --enable/disable-cxx.
8555         * NEWS: Mention the change.
8556
8557 2010-07-31  Bruno Haible  <bruno@clisp.org>
8558
8559         readlink, areadlink: Relax test a bit.
8560         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
8561         alternative to ENOTDIR.
8562         * tests/test-areadlink.h (test_areadlink): Likewise.
8563         Reported by Rainer Tammer.
8564
8565 2010-07-31  Bruno Haible  <bruno@clisp.org>
8566
8567         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
8568         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
8569         character, perform the search using U_STRCHR.
8570         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
8571         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
8572         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
8573         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
8574         Suggested by Paolo Bonzini.
8575
8576 2010-07-31  Bruno Haible  <bruno@clisp.org>
8577
8578         unistr/u*-strstr: Fix dependencies.
8579         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
8580         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
8581         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
8582
8583 2010-07-31  Bruno Haible  <bruno@clisp.org>
8584
8585         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
8586         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
8587         the beginning of the loop.
8588         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
8589         cases in 'switch' statement.
8590
8591         unistr/u8-strchr: Fix several bugs.
8592         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
8593         the string. When not found, return NULL, not a pointer near the end.
8594
8595         More tests for unistr/u8-strchr.
8596         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
8597         that the function does not read past the first occurrence of the byte
8598         being searched.
8599         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
8600         * tests/unistr/test-u16-strchr.c (main): New function.
8601         * tests/unistr/test-u32-strchr.c (main): New function.
8602
8603 2010-07-31  Bruno Haible  <bruno@clisp.org>
8604
8605         posix-modules: Ignore backup files of documentation files.
8606         * posix-modules: grep only through files named *.texi.
8607
8608 2010-07-31  Bruno Haible  <bruno@clisp.org>
8609
8610         symlinkat: Fix documentation.
8611         * doc/posix-functions/readlinkat.texi: Fix module name.
8612
8613 2010-07-31  Bruno Haible  <bruno@clisp.org>
8614
8615         fchownat: Replace also when chown has the trailing slash bug.
8616         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
8617         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
8618         introduced on 2010-04-10.
8619         Reported by Rainer Tammer.
8620
8621 2010-07-31  Bruno Haible  <bruno@clisp.org>
8622
8623         linkat: Work around AIX 7.1 bug.
8624         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
8625         whether linkat handles trailing slash correctly. If not, replace linkat
8626         and define LINKAT_TRAILING_SLASH_BUG.
8627         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
8628         check whether (fd1,file1) points to a directory if file1 or file2 ends
8629         in a slash. Code taken from lib/link.c.
8630         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
8631         Reported by Rainer Tammer.
8632
8633 2010-07-31  Bruno Haible  <bruno@clisp.org>
8634
8635         Correctly determine whether pow is available in libc on AIX 7 with xlc.
8636         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
8637         This disables an xlc optimization that was causing wrong test results.
8638         Reported by Rainer Tammer.
8639
8640 2010-07-31  Bruno Haible  <bruno@clisp.org>
8641
8642         iconv: Work around AIX 6.1..7.1 bug.
8643         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
8644         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
8645         cross-compiling, guess no on all versions of AIX.
8646         Reported by Rainer Tammer.
8647
8648 2010-07-31  Bruno Haible  <bruno@clisp.org>
8649
8650         readlink: Relax test a bit.
8651         * tests/test-readlink.h (test_readlink): Allow different errno value
8652         when readlink is called with a file name that ends in / and refers to
8653         a file.
8654         Suggested by Eric Blake.
8655         Reported by Rainer Tammer.
8656
8657 2010-07-31  Bruno Haible  <bruno@clisp.org>
8658
8659         copysign: Does not require -lm on glibc systems.
8660         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
8661         gl_COMMON_DOUBLE_MATHFUNC.
8662         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
8663
8664 2010-07-31  Bruno Haible  <bruno@clisp.org>
8665
8666         duplocale: Work around AIX 7.1 bug.
8667         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
8668         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
8669         * lib/duplocale.c (rpl_duplocale): Update comment.
8670         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
8671         Reported by Rainer Tammer.
8672
8673 2010-07-30  Bruno Haible  <bruno@clisp.org>
8674
8675         dirfd: Avoid link error on AIX 7.1.
8676         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
8677         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
8678         exist, set REPLACE_DIRFD.
8679         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
8680         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
8681         * doc/posix-functions/dirfd.texi: Update.
8682         Reported by Rainer Tammer.
8683
8684 2010-07-30  Eric Blake  <eblake@redhat.com>
8685
8686         strtod: next round of AIX fixes
8687         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
8688         exponent.
8689         * tests/test-strtod.c (main): Enhance tests.
8690         * doc/posix-functions/strtod.texi (strtod): Document next bug.
8691         Reported by Rainer Tammer.
8692
8693         futimens: fix configure check
8694         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
8695         Reported by Bruno Haible.
8696
8697 2010-07-30  Bruno Haible  <bruno@clisp.org>
8698
8699         getline: Update regarding AIX.
8700         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
8701         Reported by Rainer Tammer.
8702
8703 2010-07-30  Bruno Haible  <bruno@clisp.org>
8704
8705         wcwidth: Drop replacement on AIX 7.
8706         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
8707         AIX 7.
8708         Reported by Rainer Tammer.
8709
8710 2010-07-30  Bruno Haible  <bruno@clisp.org>
8711
8712         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
8713         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
8714         a 'char *'.
8715         Reported by Rainer Tammer.
8716
8717 2010-07-30  Bruno Haible  <bruno@clisp.org>
8718
8719         unlink: Update regarding AIX.
8720         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
8721         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
8722         Reported by Rainer Tammer.
8723
8724 2010-07-30  Bruno Haible  <bruno@clisp.org>
8725
8726         symlink: Update regarding AIX.
8727         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
8728         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
8729         Reported by Rainer Tammer.
8730
8731 2010-07-30  Bruno Haible  <bruno@clisp.org>
8732
8733         strndup: Update regarding AIX.
8734         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
8735         AIX 7.
8736         Reported by Rainer Tammer.
8737
8738 2010-07-30  Bruno Haible  <bruno@clisp.org>
8739
8740         stat: Update regarding AIX.
8741         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
8742         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
8743         Reported by Rainer Tammer.
8744
8745 2010-07-30  Bruno Haible  <bruno@clisp.org>
8746
8747         truncl: Fix autoconf test.
8748         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
8749         whether truncl works.
8750         Reported by Rainer Tammer.
8751
8752 2010-07-30  Bruno Haible  <bruno@clisp.org>
8753
8754         round: Update regarding AIX.
8755         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
8756         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
8757         Reported by Rainer Tammer.
8758
8759 2010-07-30  Bruno Haible  <bruno@clisp.org>
8760
8761         rename: Update regarding AIX.
8762         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
8763         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
8764         Reported by Rainer Tammer.
8765
8766 2010-07-30  Bruno Haible  <bruno@clisp.org>
8767
8768         printf.m4: Update regarding AIX.
8769         * m4/printf.m4: Update comments regarding AIX.
8770         Reported by Rainer Tammer.
8771
8772 2010-07-30  Bruno Haible  <bruno@clisp.org>
8773
8774         iconv: Update regarding AIX.
8775         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
8776         AIX 7.
8777         Reported by Rainer Tammer.
8778
8779 2010-07-30  Bruno Haible  <bruno@clisp.org>
8780
8781         getopt: Update regarding AIX.
8782         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
8783         no on AIX.
8784         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
8785         Reported by Rainer Tammer.
8786
8787 2010-07-30  Bruno Haible  <bruno@clisp.org>
8788
8789         ldexpl; Update regarding AIX.
8790         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
8791         on AIX 7.
8792         Reported by Rainer Tammer.
8793
8794 2010-07-30  Bruno Haible  <bruno@clisp.org>
8795
8796         frexpl: Update regarding AIX.
8797         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
8798         on AIX 7.
8799         Reported by Rainer Tammer.
8800
8801 2010-07-30  Bruno Haible  <bruno@clisp.org>
8802
8803         open, fopen: Update regarding AIX.
8804         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
8805         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
8806         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
8807         * doc/posix-functions/fopen.texi: Likewise.
8808         Reported by Rainer Tammer.
8809
8810 2010-07-30  Bruno Haible  <bruno@clisp.org>
8811
8812         chown: Update doc regarding AIX.
8813         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
8814         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
8815         Reported by Rainer Tammer.
8816
8817 2010-07-30  Eric Blake  <eblake@redhat.com>
8818
8819         strtod: fix bug in replacement function on AIX
8820         * lib/strtod.c (strtod): Special case broken "0x" parse in
8821         underlying strtod.
8822         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
8823         * doc/posix-functions/strtod.texi (strtod): Likewise.
8824         Reported by Rainer Tammer.
8825
8826 2010-07-30  Bruno Haible  <bruno@clisp.org>
8827
8828         mbrlen: Fix cross-compilation guess for AIX.
8829         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
8830         guess. Leftover from 2008-12-22.
8831
8832 2010-07-30  Bruno Haible  <bruno@clisp.org>
8833
8834         mbrtowc: Fix cross-compilation guess for AIX.
8835         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
8836         guess. Leftover from 2008-12-21.
8837
8838 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
8839
8840         init.sh: work around trap limitation of some shells
8841         * tests/init.sh (setup_): Move exit trap outside of shell function.
8842
8843 2010-07-29  Eric Blake  <eblake@redhat.com>
8844
8845         strtod: aid debugging
8846         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
8847         understanding why strtod is rejected.
8848
8849 2010-07-28  Bruno Haible  <bruno@clisp.org>
8850
8851         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
8852         * lib/unistr/u8-chr.c: Include <string.h>.
8853         * tests/unistr/test-u8-chr.c: Likewise.
8854         * tests/unistr/test-u16-chr.c: Likewise.
8855         * tests/unistr/test-u32-chr.c: Likewise.
8856         * tests/unistr/test-u8-strchr.c: Likewise.
8857         * tests/unistr/test-u16-strchr.c: Likewise.
8858         * tests/unistr/test-u32-strchr.c: Likewise.
8859         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
8860         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
8861         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
8862         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
8863
8864 2010-07-28  Bruno Haible  <bruno@clisp.org>
8865
8866         Use spaces for indentation, not tabs.
8867         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
8868
8869 2010-07-27  Bruno Haible  <bruno@clisp.org>
8870
8871         mbspcasecmp: Fix function specification.
8872         * lib/string.in.h (mbspcasecmp): Fix specification comment.
8873         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
8874         Reported by Eric Blake <eblake@redhat.com>.
8875
8876 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
8877
8878         timespec: use cast and not conditional, as truncation isn't possible
8879         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
8880         instead of a conditional.  Comment about the situation in more detail.
8881         This undoes most of the 2009-10-29 patch.
8882
8883 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
8884
8885         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
8886         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
8887         * lib/unistr/u8-strchr.c: Likewise.
8888         * modules/unistr/u8-chr: Depend on memchr.
8889
8890         unistr/u*-strchr: add tests
8891         * modules/unistr/u8-strchr-tests: New file.
8892         * modules/unistr/u16-strchr-tests: New file.
8893         * modules/unistr/u32-strchr-tests: New file.
8894         * tests/unistr/test-strchr.h: New file.
8895         * tests/unistr/test-u8-strchr.c: New file.
8896         * tests/unistr/test-u16-strchr.c: New file.
8897         * tests/unistr/test-u32-strchr.c: New file.
8898
8899         unistr/u*-chr: test multibyte sequences more
8900         * tests/unistr/test-chr.h: Do complete testing of the characters in the
8901         test vector.
8902         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
8903         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
8904         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
8905
8906         unistr/u*-chr: test multibyte sequences
8907         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
8908
8909         unistr/u*-chr: prepare for multibyte tests
8910         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
8911         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
8912         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
8913         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
8914         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
8915         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
8916
8917 2010-07-18  Bruno Haible  <bruno@clisp.org>
8918
8919         unistr/u8-strchr: Optimize non-ASCII argument case.
8920         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
8921         because the first byte often matches anyway.
8922         Reported by Pádraig Brady <P@draigbrady.com>.
8923
8924 2010-07-15  Karl Berry  <karl@gnu.org>
8925
8926         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
8927
8928 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
8929
8930         getcwd: on Solaris, work better if ancestors are inaccessible
8931         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
8932         buffer and size, try again with a large buffer.  This works better
8933         on Solaris, since its getcwd succeeds even if the path to the root
8934         is inaccessible, and this is helpful in common cases such as .zfs
8935         hidden directories.  Problem reported by J Chapman Flack in
8936         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
8937         Use system getcwd if it's declared, not merely if it's partly
8938         working; use the partly-working test only to avoid needless effort
8939         if the system getcwd fails.
8940         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
8941         comment that was already obsolete and is now even more obsolete.
8942         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
8943         now might call strdup.
8944
8945 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
8946
8947         pthread: Add enough so that coreutils/src/sort.c compiles.
8948         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
8949         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
8950         gnulib. Include <sched.h> and <time.h>, as per POSIX.
8951         Include <sys/types.h>, in case it defines pthread_t.
8952         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
8953         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
8954         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
8955         (pthread_rwlockattr_t, pthread_spinlock_t):
8956         New typedefs, if HAVE_PTHREAD_T is not defined.
8957         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
8958         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
8959         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
8960         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
8961         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
8962         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
8963         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
8964         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
8965         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
8966         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
8967         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
8968         New macros.
8969         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
8970         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
8971         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
8972         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
8973         (pthread_spin_unlock): New dummy functions.
8974         (pthread_create): Return EAGAIN; don't set errno.
8975         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
8976         require AC_C_INLINE.
8977         * modules/pthread (Depends-on): Add sched, time.
8978         (pthread.h): Use AM_V_GEN.
8979
8980 2010-07-13  Bruno Haible  <bruno@clisp.org>
8981
8982         striconveh: Don't malloc memory if the result buffer is sufficient.
8983         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
8984         buffer if its size is sufficient.
8985         Reported by Ludovic Courtès <ludo@gnu.org>.
8986
8987 2010-07-13  Bruno Haible  <bruno@clisp.org>
8988
8989         strtod: Add safety check.
8990         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
8991
8992 2010-07-12  Bruno Haible  <bruno@clisp.org>
8993
8994         Unify tests that set gl_cv_func_ldexpl_no_libm.
8995         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
8996         gl_FUNC_LDEXPL.
8997         (gl_FUNC_LDEXPL): Invoke it.
8998         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8999
9000 2010-07-12  Bruno Haible  <bruno@clisp.org>
9001
9002         Unify tests that set gl_cv_func_ldexp_no_libm.
9003         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
9004         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
9005         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
9006         (configure.ac): Simply invoke gl_FUNC_LDEXP.
9007         * modules/strtod (Files): Add m4/ldexp.m4.
9008
9009 2010-07-12  Bruno Haible  <bruno@clisp.org>
9010
9011         Unify tests that set gl_cv_func_frexpl_no_libm.
9012         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
9013         gl_FUNC_FREXPL_NO_LIBM.
9014         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
9015         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9016
9017 2010-07-12  Bruno Haible  <bruno@clisp.org>
9018
9019         Unify tests that set gl_cv_func_frexp_no_libm.
9020         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
9021         gl_FUNC_FREXP_NO_LIBM.
9022         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
9023         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
9024
9025 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
9026
9027         memcoll: clarify sizes versus lengths, document better, and tweak perf
9028         * lib/memcoll.c (strcoll_loop, memcoll0):
9029         Improve quality of descriptive comments.  Name variables
9030         consistently as to whether they are lengths (which do not include
9031         terminating null) versus sizes (which do).
9032         * lib/xmemcoll.c (xmemcoll0): Likewise.
9033         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
9034         returned when s1size == 0; this is easier to compile and saves
9035         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
9036
9037 2010-07-12  Bruno Haible  <bruno@clisp.org>
9038
9039         Tests for module '_Exit'.
9040         * modules/_Exit-tests: New file.
9041         * tests/test-_Exit.sh: New file.
9042         * tests/test-_Exit.c: New file.
9043
9044         New module '_Exit'.
9045         * lib/stdlib.in.h (__attribute__): New macro.
9046         (_Exit): New declaration.
9047         * lib/_Exit.c: New file.
9048         * m4/_Exit.m4: New file.
9049         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
9050         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
9051         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
9052         * modules/_Exit: New file.
9053         * tests/test-stdlib-c++.cc (_Exit): Check signature.
9054         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
9055
9056 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
9057
9058         strtod: make it more-accurate typically, and don't require libm
9059         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
9060         Include limits.h.  Don't include string.h.
9061         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
9062         (locale_isspace): New function, so that no casts are needed to
9063         check whether *s is a space.
9064         (ldexp): Provide an unused dummy if not available.
9065         (scale_radix_exp, parse_number, underlying_strtod): New functions.
9066         (strtod): Use them.  This implementation prefers to use the
9067         underlying strtod if available, falling back on our own code
9068         only to fix known bugs.  This is more likely to produce an
9069         accurate result.  Also, it avoids the use of libm functions.
9070         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
9071         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
9072         was absent, but it caused a test failure with coreutils.
9073         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
9074         with libm.
9075         * modules/strtod (Makefile.am, Link): libm is no longer needed.
9076         * modules/strtod-tests (Makefile.am): Likewise.
9077
9078 2010-07-11  Pádraig Brady  <P@draigBrady.com>
9079             Bruno Haible  <bruno@clisp.org>
9080
9081         unistr/u8-strchr: Optimize ASCII argument case.
9082         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
9083
9084 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
9085
9086         (x)memcoll: minor tweaks
9087         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
9088         is after the type that it qualifies.
9089         (memcoll0): Likewise.
9090         * lib/memcoll.h (memcoll0): Likewise.
9091         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
9092         * lib/xmemcoll.h (xmemcoll0): Likewise.
9093         * lib/memcoll.c (memcoll0): Correct the comment.  This function
9094         differs from memcoll in that the NUL byte is part of the argument.
9095         Omit the abort-checks, as performance is a real issue here.  Plus,
9096         the checks were wrong anyway (an off-by-one error).  Omit local
9097         variable 'diff', as it's a bit clearer that way.
9098         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
9099         no longer needed.
9100
9101 2010-07-08  Chen Guo <chenguo4@yahoo.com>
9102
9103         (x)memcoll: speedup when input is known to be NUL delimited
9104         * lib/memcoll.c: Include stdlib.
9105         (memcoll0) New function.
9106         (strcoll_loop) New function, refactored for use in both memcoll
9107         and memcoll0.
9108         * lib/memcoll.h: Add prototype for memcoll0.
9109         * lib/xmemcoll.c: (xmemcoll0) New function.
9110         (collate_error) New function, refactored for use in both xmemcoll
9111         and xmemcoll0.
9112         * lib/xmemcoll.h: Add prototype for xmemcoll0.
9113         * m4/memcoll.m4: add inline invocation.
9114
9115 2010-07-06  Pádraig Brady  <P@draigBrady.com>
9116
9117         * build-aux/bootstrap: Remove any local translations
9118         from the translation project synchronization directory,
9119         so that local only translations are not distributed.
9120
9121 2010-07-04  Bruno Haible  <bruno@clisp.org>
9122
9123         fsusage: Clarify which code applies to which platforms.
9124         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
9125         platform.
9126         * lib/fsusage.c (get_fs_usage): Likewise.
9127
9128 2010-07-04  Bruno Haible  <bruno@clisp.org>
9129
9130         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
9131         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
9132         Reported by Martin Lambers <marlam@marlam.de>.
9133
9134 2010-07-04  Jim Meyering  <meyering@redhat.com>
9135
9136         hash: once again explicitly disallow insertion of NULL
9137         * lib/hash.c (hash_insert0): Reinstate just-removed test:
9138         inserting a NULL pointer cannot work with these functions.
9139         Add a comment with details.
9140         This reverts part of the 2010-07-01 commit, 5bef1a35
9141         "hash: extend module to deal with non-pointer keys".
9142
9143 2010-07-01  Bruno Haible  <bruno@clisp.org>
9144
9145         stdbool: Update doc.
9146         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
9147         Info from Christian Weisgerber <naddy@mips.inka.de>.
9148
9149 2010-07-01  Jim Meyering  <meyering@redhat.com>
9150
9151         hash: extend module to deal with non-pointer keys
9152         * lib/hash.c (hash_insert0): New interface, much like hash_insert
9153         but that allows insertion of non-pointer entries.
9154         Do not disallow an ENTRY value of NULL.
9155         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
9156         * lib/hash.h (hash_insert0): Declare.
9157
9158 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9159
9160         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
9161         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
9162         not present (i.e. with autoconf 2.59 and when using gettextize, not
9163         gnulib), require AC_GNU_SOURCE instead.
9164
9165 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
9166
9167         idpriv-drop: Fix tests.
9168         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
9169         not to the test-idpriv-droptemp program.
9170
9171 2010-06-29  Bruno Haible  <bruno@clisp.org>
9172
9173         string: Fix syntax error with g++ 2.96.
9174         * lib/string.in.h (__pure__): Remove definition.
9175         (_GL_ATTRIBUTE_PURE): New macro.
9176         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
9177         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
9178         Reported by Christian Weisgerber <naddy@mips.inka.de>.
9179
9180 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
9181
9182         unitypes: Fix bug introduced on 2010-05-18.
9183         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
9184
9185 2010-06-22  Eric Blake  <eblake@redhat.com>
9186
9187         memmem: slight optimization
9188         * lib/str-two-way.h (critical_factorization): Update comments.
9189         Reduce work during factorization phase.
9190         Reported by Carlos Bueno <carlos@bueno.org>.
9191
9192 2010-06-21  Bruno Haible  <bruno@clisp.org>
9193
9194         Fix HAVE_CALLOC_POSIX misnomer.
9195         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
9196         !HAVE_CALLOC_POSIX.
9197         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
9198         HAVE_CALLOC_POSIX.
9199         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
9200         instead of HAVE_CALLOC_POSIX.
9201         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
9202         HAVE_CALLOC_POSIX.
9203
9204         Use modern idiom for calloc() replacement.
9205         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
9206         AC_FUNC_CALLOC.
9207         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
9208         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
9209         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
9210         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
9211         (gl_REPLACE_CALLOC): New macro.
9212
9213 2010-06-21  Bruno Haible  <bruno@clisp.org>
9214
9215         Fix HAVE_REALLOC_POSIX misnomer.
9216         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
9217         !HAVE_REALLOC_POSIX.
9218         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
9219         HAVE_REALLOC_POSIX.
9220         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
9221         instead of HAVE_REALLOC_POSIX.
9222         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
9223         HAVE_REALLOC_POSIX.
9224
9225         Use modern idiom for realloc() replacement.
9226         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
9227         AC_FUNC_REALLOC.
9228         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
9229         Autoconf's AC_FUNC_REALLOC.
9230         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
9231         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
9232         (gl_REPLACE_REALLOC): New macro.
9233         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
9234
9235 2010-06-21  Bruno Haible  <bruno@clisp.org>
9236
9237         Fix HAVE_MALLOC_POSIX misnomer.
9238         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
9239         !HAVE_MALLOC_POSIX.
9240         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
9241         HAVE_MALLOC_POSIX.
9242         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
9243         instead of HAVE_MALLOC_POSIX.
9244         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
9245         HAVE_MALLOC_POSIX.
9246
9247         Use modern idiom for malloc() replacement.
9248         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
9249         AC_FUNC_MALLOC.
9250         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
9251         Autoconf's AC_FUNC_MALLOC.
9252         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
9253         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
9254         (gl_REPLACE_MALLOC): New macro.
9255         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
9256
9257 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
9258
9259         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
9260         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
9261         This macro takes 3 arguments, not 4.
9262
9263 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
9264
9265         ipv6: fix detection under mingw
9266         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
9267         in6_addr.
9268
9269 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
9270
9271         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
9272         that strtod() works when cross-compiling to a glibc version known
9273         to work.
9274
9275 2010-06-15  Bruno Haible  <bruno@clisp.org>
9276
9277         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
9278
9279 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
9280
9281         select: Correct timeout.
9282         * lib/select.c (rpl_select): Compute wait_timeout correctly.
9283
9284 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9285
9286         git-version-gen: init shell var to avoid env var influence
9287         * build-aux/git-version-gen (v): Init shell var to empty.
9288
9289 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
9290
9291         priv-set: Don't assume that priv.h exists merely because getppriv does.
9292         See Jan Andersen's bug report about AIX 5L in
9293         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
9294         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
9295         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
9296         * lib/priv-set.h: Likewise.
9297         * tests/test-priv-set.c: Likewise.
9298
9299 2010-06-13  Bruno Haible  <bruno@clisp.org>
9300
9301         relocatable: Make it easier to test whether to install wrappers.
9302         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
9303         RELOCATABLE_VIA_WRAPPER.
9304
9305 2010-06-13  Bruno Haible  <bruno@clisp.org>
9306
9307         gnulib-tool: Display specified modules and dependencies differently.
9308         * gnulib-tool (func_show_module_list): New function.
9309         (func_import, func_create_testdir): Invoke it.
9310         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
9311
9312 2010-06-13  Bruno Haible  <bruno@clisp.org>
9313
9314         gnulib-tool: Align code of func_import and func_create_testdir.
9315         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
9316         specified_modules.
9317
9318 2010-06-12  Jim Meyering  <meyering@redhat.com>
9319
9320         test-inttostr: avoid spurious failure on Solaris 9
9321         * tests/test-inttostr.c (main): Skip the test when snprintf fails
9322         to accept "%ju".  Reported by Bruno Haible.
9323
9324 2010-06-11  Jim Meyering  <meyering@redhat.com>
9325
9326         test-sys_socket: mark variables as used more readably
9327         * tests/test-sys_socket.c (main): Mark otherwise unused variables
9328         as "used" explicitly via (void) statement casts.  This is more
9329         readable than using them in an artificial return expression.
9330         Suggestion from Bruno Haible.
9331
9332 2010-06-11  Bruno Haible  <bruno@clisp.org>
9333
9334         Avoid some more warnings from "gcc -Wwrite-strings".
9335         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
9336         to 'const char *'.
9337         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
9338         * tests/test-c-strcasestr.c (main): Likewise.
9339         * tests/test-mbscasestr1.c (main): Likewise.
9340         * tests/test-mbscasestr2.c (main): Likewise.
9341         * tests/test-memmem.c (main): Likewise.
9342         * tests/test-strstr.c (main): Likewise.
9343         * tests/test-strcasestr.c (main): Likewise.
9344
9345 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9346
9347         init.sh: change framework_failure_ to fail with status 99, not 1
9348         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
9349         automake's parallel-tests rule that this is an unexpected failure,
9350         even if the test is listed in XFAIL_TESTS.
9351
9352 2010-06-11  Jim Meyering  <meyering@redhat.com>
9353
9354         test-inttostr: avoid warnings about 4-6KB literal strings
9355         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
9356         Include "macros.h", for its definition of ASSERT.
9357         (CK): s/assert/ASSERT/
9358         * modules/inttostr-tests (Files): Add macros.h.
9359
9360         init.sh: don't use $ME_ or skip_ before they are defined
9361         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
9362         their first uses.  Also hoist their companions: warn_, fail_,
9363         framework_failure_, $stderr_fileno.  Prompted by a patch from
9364         Stefano Lattarini.
9365
9366         test-sys_socket: avoid set-but-not-used warnings from gcc
9367         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
9368         avoid warning about set-but-not-used variables.
9369
9370         test-xvasprintf: avoid 'const' discard warnings
9371         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
9372         "const" when assigning from literal strings.
9373         (test_xasprintf): Add "void" in function argument list to placate
9374         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
9375
9376         tests: avoid compilation warnings in argmatch and exclude tests...
9377         in packages that define ARGMATCH_DIE_DECL, like coreutils.
9378         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
9379         Since it always exits, declare with the "noreturn" attribute.
9380         * tests/test-argmatch.c: Likewise.
9381
9382         tests: avoid 'const' discard warnings in mbsstr tests
9383         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
9384         * tests/test-mbsstr2.c (main): Likewise.
9385
9386         test-verify: avoid warning from gcc's -Wmissing-declarations
9387         * tests/test-verify.c (function): Declare to be static.
9388
9389         test-inttostr.c: include <string.h> for use of strcmp
9390         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
9391
9392         test-linkat: avoid failed assertion on "other" architectures
9393         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
9394         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
9395         sparc: https://bugs.launchpad.net/bugs/591968
9396
9397 2010-06-11  Jim Meyering  <meyering@redhat.com>
9398
9399         printf.m4: avoid autoconf's "Expanded Before Required" warning
9400         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
9401         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
9402         autoconf warning.
9403
9404 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
9405
9406         Replacement header templates are now named with ".in", not "_".
9407         * doc/gnulib-intro.texi: Correct.
9408
9409 2010-06-10  Jim Meyering  <meyering@redhat.com>
9410
9411         inttostr-tests: depend on snprintf, not snprintf-posix
9412         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
9413         snprintf-posix, to avoid this aclocal failure:
9414           missing file gnulib-tests/vasnprintf.c
9415           configure.ac:45: error: expected source file, required through \
9416           AC_LIBSOURCES, not found
9417
9418 2010-06-10  Jim Meyering  <meyering@redhat.com>
9419
9420         inttostr: add a new function, inttostr, and tests
9421         The namesake function was not available.  The existence of the
9422         template file, inttostr.c makes its addition nontrivial.
9423         * lib/anytostr.c: Rename from inttostr.c.
9424         (anytostr): Rename from inttostr.
9425         * lib/inttostr.c: New file.
9426         * modules/inttostr (Files): Add anytostr.c.
9427         (Makefile.am): Set lib_SOURCES instead of ...
9428         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
9429         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
9430         * lib/offtostr.c: Likewise.
9431         * lib/uinttostr.c: Likewise.
9432         * lib/umaxtostr.c: Likewise.
9433         * modules/inttostr-tests: New file.
9434         * tests/test-inttostr.c: New file.  Test these functions.
9435
9436 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
9437             Bruno Haible  <bruno@clisp.org>
9438
9439         Add "Extending Gnulib" chapter to manual.
9440         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
9441         chapter.
9442         (Extending Gnulib): New chapter.
9443         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
9444         chapter.
9445
9446 2010-06-09  Bruno Haible  <bruno@clisp.org>
9447
9448         Avoid relocwrapper link errors due to gnulib replacement functions.
9449         * lib/areadlink.c: Use the system's malloc, realloc functions.
9450         (areadlink): Set errno to ENOMEM explicitly.
9451         * modules/areadlink (Depends-on): Remove malloc-posix.
9452         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9453
9454 2010-06-09  Bruno Haible  <bruno@clisp.org>
9455
9456         Avoid relocwrapper link errors due to gnulib replacement functions.
9457         * lib/canonicalize-lgpl.c: Use the system's malloc function.
9458         * lib/malloca.c: Likewise.
9459         * lib/relocatable.c: Likewise.
9460         * lib/progreloc.c: Use the system's malloc, sprintf functions.
9461         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
9462         * lib/setenv.c: Use the system's malloc, realloc functions.
9463         * lib/strerror.c: Use the system's sprintf function.
9464         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9465
9466 2010-06-04  Bruno Haible  <bruno@clisp.org>
9467
9468         Prefer documented low-level autoconf macro names.
9469         * m4/lib-link.m4: Use m4_translit instead of translit.
9470         * m4/environ.m4: Likewise.
9471         * m4/mathfunc.m4: Likewise.
9472         * m4/onceonly.m4: Likewise.
9473         * m4/stdint.m4: Likewise.
9474         Suggested by Eric Blake.
9475
9476 2010-06-04  Martin Lambers  <marlam@marlam.de>
9477             Bruno Haible  <bruno@clisp.org>
9478
9479         havelib: Allow library names with '+' characters.
9480         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
9481         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
9482
9483 2010-06-09  Bruno Haible  <bruno@clisp.org>
9484
9485         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
9486         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
9487         realloc failed.
9488
9489 2010-06-08  Peter Simons  <simons@cryp.to>
9490
9491         maint.mk: make the news-check rule more configurable
9492         * top/maint.mk (news-check-lines-spec) New variable.
9493         (news-check): Use "sed -n 1,10p" in place of "head".
9494
9495 2010-06-07  Jim Meyering  <meyering@redhat.com>
9496
9497         do-release-commit-and-tag: fix typo in --help
9498         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
9499
9500         regex: avoid new dead-code warning with gcc-4.6.0
9501         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
9502         if-block containing a while-loop.  It's been unused for at least
9503         5 years.
9504
9505 2010-06-05  Bruno Haible  <bruno@clisp.org>
9506
9507         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
9508         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
9509
9510 2010-06-04  Bruno Haible  <bruno@clisp.org>
9511
9512         Update to GNU gettext 0.18.1.
9513         * modules/gettext (configure.ac): Require gettext infrastructure from
9514         version 0.18.1.
9515
9516 2010-06-03  Bruno Haible  <bruno@clisp.org>
9517
9518         Don't use AC_LIBOBJ with file names in subdirectories.
9519         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
9520         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
9521         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
9522         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
9523         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
9524         gl_LIBUNISTRING_LIBSOURCE.
9525         (Makefile.am): Augment lib_SOURCES here, conditionally.
9526         * NEWS: Drop requirement for Automake option 'subdir-objects'.
9527
9528 2010-06-03  Bruno Haible  <bruno@clisp.org>
9529
9530         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
9531         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
9532         expansion does not end with a newline.
9533         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
9534         unnecessary newline.
9535
9536 2010-06-03  Bruno Haible  <bruno@clisp.org>
9537
9538         Reduce dependencies.
9539         * tests/test-quotearg.h: New file, extracted from
9540         tests/test-quotearg.c.
9541         * tests/test-quotearg-simple.c: New file, extracted from
9542         tests/test-quotearg.c.
9543         * tests/test-quotearg.c: Don't include <ctype.h>.
9544         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
9545         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
9546         use_quote_double_quotes, use_quotearg_colon): Moved to
9547         tests/test-quotearg.h.
9548         (results_g, flag_results, custom_quotes, custom_results): Moved
9549         to tests/test-quotearg-simple.c.
9550         (main): Moved the part that does not depend on gettext to
9551         tests/test-quotearg-simple.c. Return 77 if the test cannot be
9552         performed.
9553         * modules/quotearg-simple: New file.
9554         * modules/quotearg-simple-tests: New file.
9555         * modules/quotearg (Depends-on): Add quotearg-simple.
9556         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
9557         (Files): Add tests/test-quotearg.h.
9558         Reported by Paolo Bonzini.
9559
9560 2010-06-03  Bruno Haible  <bruno@clisp.org>
9561
9562         Reduce dependencies.
9563         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
9564
9565 2010-06-03  Bruno Haible  <bruno@clisp.org>
9566
9567         time: Undefine more broken macros.
9568         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
9569         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
9570         Reported by Eric Blake.
9571
9572 2010-06-03  Bruno Haible  <bruno@clisp.org>
9573
9574         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
9575         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
9576         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
9577         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
9578         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
9579         Reported by Ludovic Courtès <ludo@gnu.org>.
9580
9581 2010-06-02  Eric Blake  <eblake@redhat.com>
9582
9583         time: work with mingw + pthreads-win32 library
9584         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
9585         if timespec is defined only in pthread.h.
9586         * modules/time (Makefile.am): Substitute it.
9587         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
9588         <pthread.h>, when needed.
9589         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
9590         from the library.
9591
9592 2010-05-31  Bruno Haible  <bruno@clisp.org>
9593
9594         Avoid expanding two macros in the wrong order.
9595         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
9596         gl_LIBUNISTRING if it is defined.
9597         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
9598         autoconf >= 2.64.
9599         Reported by Ludovic Courtès <ludo@gnu.org>.
9600
9601 2010-05-27  Jim Meyering  <meyering@redhat.com>
9602
9603         maint.mk: also prohibit "#undef" of always-defined symbols
9604         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
9605         Allow more than one space before the symbol name.
9606         (sc_prohibit_always-defined_macros): Use grep's -E, now that
9607         the regexp uses alternation.
9608
9609 2010-05-26  Eric Blake  <eblake@redhat.com>
9610
9611         maint.mk: avoid echo -e
9612         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
9613         Convert all uses of echo -* to printf.
9614         Reported by Matthias Bolte.
9615
9616 2010-05-25  Bruno Haible  <bruno@clisp.org>
9617
9618         Update to GNU gettext 0.18, part 2.
9619         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
9620         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
9621
9622 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9623
9624         Add missing include in test-pwrite.c.
9625         * tests/test-pwrite.c: Include string.h, for strcmp.
9626
9627 2010-05-24  Bruno Haible  <bruno@clisp.org>
9628
9629         * NEWS: Mention requirement for Automake option 'subdir-objects'.
9630
9631 2010-05-24  Bruno Haible  <bruno@clisp.org>
9632
9633         Don't use conversion with transliteration in u{8,16,32}_strcoll.
9634         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
9635         iconveh_error argument.
9636         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
9637         U_STRCONV_TO_LOCALE.
9638         * lib/unistr/u16-strcoll.c: Likewise.
9639         * lib/unistr/u32-strcoll.c: Likewise.
9640         * modules/unistr/u8-strcoll (Depends-on): Add
9641         uniconv/u8-strconv-to-enc, localcharset. Remove
9642         uniconv/u8-strconv-to-locale.
9643         (configure.ac): Bump version number.
9644         * modules/unistr/u16-strcoll (Depends-on): Add
9645         uniconv/u16-strconv-to-enc, localcharset. Remove
9646         uniconv/u16-strconv-to-locale.
9647         (configure.ac): Bump version number.
9648         * modules/unistr/u32-strcoll (Depends-on): Add
9649         uniconv/u32-strconv-to-enc, localcharset. Remove
9650         uniconv/u32-strconv-to-locale.
9651         (configure.ac): Bump version number.
9652
9653 2010-05-24  Bruno Haible  <bruno@clisp.org>
9654
9655         Avoid a test failure on NetBSD 5.0.
9656         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
9657         an iconv() bug.
9658
9659 2010-05-24  Bruno Haible  <bruno@clisp.org>
9660
9661         Adjust #include directive style.
9662         * modules/regex (Includes): Recommend to write <regex.h>.
9663
9664 2010-05-24  Bruno Haible  <bruno@clisp.org>
9665
9666         regex: Don't require alloca.
9667         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
9668         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
9669         only inside if (0).
9670
9671 2010-05-23  Jim Meyering  <meyering@redhat.com>
9672
9673         test-renameat.c: include <sys/stat.h>
9674         * tests/test-renameat.c: Include <sys/stat.h>; required for
9675         definition of S_IS* macros.
9676
9677 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
9678
9679         Update maintainer documentation for 'relocatable-prog' module.
9680         * doc/relocatable-maint.texi: Update.
9681         Comments by Bruno Haible.
9682
9683 2010-05-23  Bruno Haible  <bruno@clisp.org>
9684
9685         git-merge-changelog: Enable --split-merged-entry by default.
9686         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
9687         (usage): Don't mention this option any more.
9688         Reported by Ralf Wildenhues.
9689
9690 2010-05-23  Jim Meyering  <meyering@redhat.com>
9691
9692         test-pwrite: do not leave behind a test file named "out"
9693         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
9694         The trivial-looking use of init.sh is really necessary.
9695         It ensures that the temporary file, "out", is created in
9696         a temporary directory, and removed upon termination.
9697         * tests/test-pwrite.sh: Re-add file.
9698         * modules/pwrite-tests: Reference it.
9699
9700 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9701
9702         Fix output redirection buglet in init.sh.
9703         * tests/init.sh: Fix redirection of stderr.
9704
9705 2010-05-20  Simon Josefsson  <simon@josefsson.org>
9706
9707         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
9708
9709 2010-05-17  Simon Josefsson  <simon@josefsson.org>
9710
9711         * modules/valgrind-tests: New file.
9712         * m4/valgrind-tests.m4: New file.
9713         * doc/valgrind-tests.texi: New file.
9714         * doc/gnulib.texi (Running self-tests under valgrind): New
9715         section.
9716
9717 2010-05-19  Bruno Haible  <bruno@clisp.org>
9718
9719         Clean up dead code in recent commit.
9720         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
9721         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
9722         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
9723         Suggested by Paolo Bonzini.
9724
9725 2010-05-19  Bruno Haible  <bruno@clisp.org>
9726
9727         Avoid valgrind error reports from libunistring.
9728         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
9729         * modules/libunistring (Files): Add it.
9730         * modules/libunistring-optional (Files): Likewise.
9731
9732 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
9733             Bruno Haible  <bruno@clisp.org>
9734
9735         New module 'libunistring-optional'.
9736         * modules/libunistring-optional: New file.
9737         * m4/libunistring-base.m4: New file.
9738         * m4/libunistring-optional.m4: New file.
9739         * lib/unicase.in.h: Renamed from lib/unicase.h.
9740         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
9741         * lib/unictype.in.h: Renamed from lib/unictype.h.
9742         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
9743         * lib/uniname.in.h: Renamed from lib/uniname.h.
9744         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
9745         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
9746         * lib/unistr.in.h: Renamed from lib/unistr.h.
9747         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
9748         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
9749         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
9750         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
9751         gl_LIBUNISTRING. If the library was found, determine the installed
9752         version and set LIBUNISTRING_VERSION.
9753         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
9754         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
9755         handle a configuration option --with-included-libunistring.
9756         * modules/libunistring (Files): Add m4/absolute-header.m4.
9757         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
9758         Add m4/libunistring-base.m4.
9759         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9760         (Makefile.am): Build unicase.h from unicase.in.h.
9761         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
9762         Add m4/libunistring-base.m4.
9763         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9764         (Makefile.am): Build uniconv.h from uniconv.in.h.
9765         * modules/unictype/base (Files): Use unictype.in.h instead of
9766         unictype.h. Add m4/libunistring-base.m4.
9767         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9768         (Makefile.am): Build unictype.h from unictype.in.h.
9769         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
9770         Add m4/libunistring-base.m4.
9771         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9772         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
9773         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
9774         Add m4/libunistring-base.m4.
9775         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9776         (Makefile.am): Build uniname.h from uniname.in.h.
9777         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
9778         Add m4/libunistring-base.m4.
9779         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9780         (Makefile.am): Build uninorm.h from uninorm.in.h.
9781         * modules/unistdio/base (Files): Use unistdio.in.h instead of
9782         unistdio.h. Add m4/libunistring-base.m4.
9783         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9784         (Makefile.am): Build unistdio.h from unistdio.in.h.
9785         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
9786         Add m4/libunistring-base.m4.
9787         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9788         (Makefile.am): Build unistr.h from unistr.in.h.
9789         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
9790         Add m4/libunistring-base.m4.
9791         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9792         (Makefile.am): Build unitypes.h from unitypes.in.h.
9793         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
9794         Add m4/libunistring-base.m4.
9795         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9796         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
9797         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
9798         uniwidth.h. Add m4/libunistring-base.m4.
9799         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9800         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
9801         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
9802         instead of augmenting lib_SOURCES.
9803         * modules/unicase/empty-suffix-context: Likewise.
9804         * modules/unicase/locale-language: Likewise.
9805         * modules/unicase/tolower: Likewise.
9806         * modules/unicase/totitle: Likewise.
9807         * modules/unicase/toupper: Likewise.
9808         * modules/unicase/u8-casecmp: Likewise.
9809         * modules/unicase/u8-casecoll: Likewise.
9810         * modules/unicase/u8-casefold: Likewise.
9811         * modules/unicase/u8-casexfrm: Likewise.
9812         * modules/unicase/u8-ct-casefold: Likewise.
9813         * modules/unicase/u8-ct-tolower: Likewise.
9814         * modules/unicase/u8-ct-totitle: Likewise.
9815         * modules/unicase/u8-ct-toupper: Likewise.
9816         * modules/unicase/u8-is-cased: Likewise.
9817         * modules/unicase/u8-is-casefolded: Likewise.
9818         * modules/unicase/u8-is-lowercase: Likewise.
9819         * modules/unicase/u8-is-titlecase: Likewise.
9820         * modules/unicase/u8-is-uppercase: Likewise.
9821         * modules/unicase/u8-prefix-context: Likewise.
9822         * modules/unicase/u8-suffix-context: Likewise.
9823         * modules/unicase/u8-tolower: Likewise.
9824         * modules/unicase/u8-totitle: Likewise.
9825         * modules/unicase/u8-toupper: Likewise.
9826         * modules/unicase/u16-casecmp: Likewise.
9827         * modules/unicase/u16-casecoll: Likewise.
9828         * modules/unicase/u16-casefold: Likewise.
9829         * modules/unicase/u16-casexfrm: Likewise.
9830         * modules/unicase/u16-ct-casefold: Likewise.
9831         * modules/unicase/u16-ct-tolower: Likewise.
9832         * modules/unicase/u16-ct-totitle: Likewise.
9833         * modules/unicase/u16-ct-toupper: Likewise.
9834         * modules/unicase/u16-is-cased: Likewise.
9835         * modules/unicase/u16-is-casefolded: Likewise.
9836         * modules/unicase/u16-is-lowercase: Likewise.
9837         * modules/unicase/u16-is-titlecase: Likewise.
9838         * modules/unicase/u16-is-uppercase: Likewise.
9839         * modules/unicase/u16-prefix-context: Likewise.
9840         * modules/unicase/u16-suffix-context: Likewise.
9841         * modules/unicase/u16-tolower: Likewise.
9842         * modules/unicase/u16-totitle: Likewise.
9843         * modules/unicase/u16-toupper: Likewise.
9844         * modules/unicase/u32-casecmp: Likewise.
9845         * modules/unicase/u32-casecoll: Likewise.
9846         * modules/unicase/u32-casefold: Likewise.
9847         * modules/unicase/u32-casexfrm: Likewise.
9848         * modules/unicase/u32-ct-casefold: Likewise.
9849         * modules/unicase/u32-ct-tolower: Likewise.
9850         * modules/unicase/u32-ct-totitle: Likewise.
9851         * modules/unicase/u32-ct-toupper: Likewise.
9852         * modules/unicase/u32-is-cased: Likewise.
9853         * modules/unicase/u32-is-casefolded: Likewise.
9854         * modules/unicase/u32-is-lowercase: Likewise.
9855         * modules/unicase/u32-is-titlecase: Likewise.
9856         * modules/unicase/u32-is-uppercase: Likewise.
9857         * modules/unicase/u32-prefix-context: Likewise.
9858         * modules/unicase/u32-suffix-context: Likewise.
9859         * modules/unicase/u32-tolower: Likewise.
9860         * modules/unicase/u32-totitle: Likewise.
9861         * modules/unicase/u32-toupper: Likewise.
9862         * modules/unicase/ulc-casecmp: Likewise.
9863         * modules/unicase/ulc-casecoll: Likewise.
9864         * modules/unicase/ulc-casexfrm: Likewise.
9865         * modules/uniconv/u8-conv-from-enc: Likewise.
9866         * modules/uniconv/u8-conv-to-enc: Likewise.
9867         * modules/uniconv/u8-strconv-from-enc: Likewise.
9868         * modules/uniconv/u8-strconv-from-locale: Likewise.
9869         * modules/uniconv/u8-strconv-to-enc: Likewise.
9870         * modules/uniconv/u8-strconv-to-locale: Likewise.
9871         * modules/uniconv/u16-conv-from-enc: Likewise.
9872         * modules/uniconv/u16-conv-to-enc: Likewise.
9873         * modules/uniconv/u16-strconv-from-enc: Likewise.
9874         * modules/uniconv/u16-strconv-from-locale: Likewise.
9875         * modules/uniconv/u16-strconv-to-enc: Likewise.
9876         * modules/uniconv/u16-strconv-to-locale: Likewise.
9877         * modules/uniconv/u32-conv-from-enc: Likewise.
9878         * modules/uniconv/u32-conv-to-enc: Likewise.
9879         * modules/uniconv/u32-strconv-from-enc: Likewise.
9880         * modules/uniconv/u32-strconv-from-locale: Likewise.
9881         * modules/uniconv/u32-strconv-to-enc: Likewise.
9882         * modules/uniconv/u32-strconv-to-locale: Likewise.
9883         * modules/unictype/bidicategory-byname: Likewise.
9884         * modules/unictype/bidicategory-name: Likewise.
9885         * modules/unictype/bidicategory-of: Likewise.
9886         * modules/unictype/bidicategory-test: Likewise.
9887         * modules/unictype/block-list: Likewise.
9888         * modules/unictype/block-test: Likewise.
9889         * modules/unictype/category-C: Likewise.
9890         * modules/unictype/category-Cc: Likewise.
9891         * modules/unictype/category-Cf: Likewise.
9892         * modules/unictype/category-Cn: Likewise.
9893         * modules/unictype/category-Co: Likewise.
9894         * modules/unictype/category-Cs: Likewise.
9895         * modules/unictype/category-L: Likewise.
9896         * modules/unictype/category-Ll: Likewise.
9897         * modules/unictype/category-Lm: Likewise.
9898         * modules/unictype/category-Lo: Likewise.
9899         * modules/unictype/category-Lt: Likewise.
9900         * modules/unictype/category-Lu: Likewise.
9901         * modules/unictype/category-M: Likewise.
9902         * modules/unictype/category-Mc: Likewise.
9903         * modules/unictype/category-Me: Likewise.
9904         * modules/unictype/category-Mn: Likewise.
9905         * modules/unictype/category-N: Likewise.
9906         * modules/unictype/category-Nd: Likewise.
9907         * modules/unictype/category-Nl: Likewise.
9908         * modules/unictype/category-No: Likewise.
9909         * modules/unictype/category-P: Likewise.
9910         * modules/unictype/category-Pc: Likewise.
9911         * modules/unictype/category-Pd: Likewise.
9912         * modules/unictype/category-Pe: Likewise.
9913         * modules/unictype/category-Pf: Likewise.
9914         * modules/unictype/category-Pi: Likewise.
9915         * modules/unictype/category-Po: Likewise.
9916         * modules/unictype/category-Ps: Likewise.
9917         * modules/unictype/category-S: Likewise.
9918         * modules/unictype/category-Sc: Likewise.
9919         * modules/unictype/category-Sk: Likewise.
9920         * modules/unictype/category-Sm: Likewise.
9921         * modules/unictype/category-So: Likewise.
9922         * modules/unictype/category-Z: Likewise.
9923         * modules/unictype/category-Zl: Likewise.
9924         * modules/unictype/category-Zp: Likewise.
9925         * modules/unictype/category-Zs: Likewise.
9926         * modules/unictype/category-and: Likewise.
9927         * modules/unictype/category-and-not: Likewise.
9928         * modules/unictype/category-byname: Likewise.
9929         * modules/unictype/category-name: Likewise.
9930         * modules/unictype/category-none: Likewise.
9931         * modules/unictype/category-of: Likewise.
9932         * modules/unictype/category-or: Likewise.
9933         * modules/unictype/category-test: Likewise.
9934         * modules/unictype/combining-class: Likewise.
9935         * modules/unictype/ctype-alnum: Likewise.
9936         * modules/unictype/ctype-alpha: Likewise.
9937         * modules/unictype/ctype-blank: Likewise.
9938         * modules/unictype/ctype-cntrl: Likewise.
9939         * modules/unictype/ctype-digit: Likewise.
9940         * modules/unictype/ctype-graph: Likewise.
9941         * modules/unictype/ctype-lower: Likewise.
9942         * modules/unictype/ctype-print: Likewise.
9943         * modules/unictype/ctype-punct: Likewise.
9944         * modules/unictype/ctype-space: Likewise.
9945         * modules/unictype/ctype-upper: Likewise.
9946         * modules/unictype/ctype-xdigit: Likewise.
9947         * modules/unictype/decimal-digit: Likewise.
9948         * modules/unictype/digit: Likewise.
9949         * modules/unictype/mirror: Likewise.
9950         * modules/unictype/numeric: Likewise.
9951         * modules/unictype/property-alphabetic: Likewise.
9952         * modules/unictype/property-ascii-hex-digit: Likewise.
9953         * modules/unictype/property-bidi-arabic-digit: Likewise.
9954         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
9955         * modules/unictype/property-bidi-block-separator: Likewise.
9956         * modules/unictype/property-bidi-boundary-neutral: Likewise.
9957         * modules/unictype/property-bidi-common-separator: Likewise.
9958         * modules/unictype/property-bidi-control: Likewise.
9959         * modules/unictype/property-bidi-embedding-or-override: Likewise.
9960         * modules/unictype/property-bidi-eur-num-separator: Likewise.
9961         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
9962         * modules/unictype/property-bidi-european-digit: Likewise.
9963         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
9964         * modules/unictype/property-bidi-left-to-right: Likewise.
9965         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
9966         * modules/unictype/property-bidi-other-neutral: Likewise.
9967         * modules/unictype/property-bidi-pdf: Likewise.
9968         * modules/unictype/property-bidi-segment-separator: Likewise.
9969         * modules/unictype/property-bidi-whitespace: Likewise.
9970         * modules/unictype/property-byname: Likewise.
9971         * modules/unictype/property-combining: Likewise.
9972         * modules/unictype/property-composite: Likewise.
9973         * modules/unictype/property-currency-symbol: Likewise.
9974         * modules/unictype/property-dash: Likewise.
9975         * modules/unictype/property-decimal-digit: Likewise.
9976         * modules/unictype/property-default-ignorable-code-point: Likewise.
9977         * modules/unictype/property-deprecated: Likewise.
9978         * modules/unictype/property-diacritic: Likewise.
9979         * modules/unictype/property-extender: Likewise.
9980         * modules/unictype/property-format-control: Likewise.
9981         * modules/unictype/property-grapheme-base: Likewise.
9982         * modules/unictype/property-grapheme-extend: Likewise.
9983         * modules/unictype/property-grapheme-link: Likewise.
9984         * modules/unictype/property-hex-digit: Likewise.
9985         * modules/unictype/property-hyphen: Likewise.
9986         * modules/unictype/property-id-continue: Likewise.
9987         * modules/unictype/property-id-start: Likewise.
9988         * modules/unictype/property-ideographic: Likewise.
9989         * modules/unictype/property-ids-binary-operator: Likewise.
9990         * modules/unictype/property-ids-trinary-operator: Likewise.
9991         * modules/unictype/property-ignorable-control: Likewise.
9992         * modules/unictype/property-iso-control: Likewise.
9993         * modules/unictype/property-join-control: Likewise.
9994         * modules/unictype/property-left-of-pair: Likewise.
9995         * modules/unictype/property-line-separator: Likewise.
9996         * modules/unictype/property-logical-order-exception: Likewise.
9997         * modules/unictype/property-lowercase: Likewise.
9998         * modules/unictype/property-math: Likewise.
9999         * modules/unictype/property-non-break: Likewise.
10000         * modules/unictype/property-not-a-character: Likewise.
10001         * modules/unictype/property-numeric: Likewise.
10002         * modules/unictype/property-other-alphabetic: Likewise.
10003         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
10004         * modules/unictype/property-other-grapheme-extend: Likewise.
10005         * modules/unictype/property-other-id-continue: Likewise.
10006         * modules/unictype/property-other-id-start: Likewise.
10007         * modules/unictype/property-other-lowercase: Likewise.
10008         * modules/unictype/property-other-math: Likewise.
10009         * modules/unictype/property-other-uppercase: Likewise.
10010         * modules/unictype/property-paired-punctuation: Likewise.
10011         * modules/unictype/property-paragraph-separator: Likewise.
10012         * modules/unictype/property-pattern-syntax: Likewise.
10013         * modules/unictype/property-pattern-white-space: Likewise.
10014         * modules/unictype/property-private-use: Likewise.
10015         * modules/unictype/property-punctuation: Likewise.
10016         * modules/unictype/property-quotation-mark: Likewise.
10017         * modules/unictype/property-radical: Likewise.
10018         * modules/unictype/property-sentence-terminal: Likewise.
10019         * modules/unictype/property-soft-dotted: Likewise.
10020         * modules/unictype/property-space: Likewise.
10021         * modules/unictype/property-terminal-punctuation: Likewise.
10022         * modules/unictype/property-test: Likewise.
10023         * modules/unictype/property-titlecase: Likewise.
10024         * modules/unictype/property-unassigned-code-value: Likewise.
10025         * modules/unictype/property-unified-ideograph: Likewise.
10026         * modules/unictype/property-uppercase: Likewise.
10027         * modules/unictype/property-variation-selector: Likewise.
10028         * modules/unictype/property-white-space: Likewise.
10029         * modules/unictype/property-xid-continue: Likewise.
10030         * modules/unictype/property-xid-start: Likewise.
10031         * modules/unictype/property-zero-width: Likewise.
10032         * modules/unictype/scripts: Likewise.
10033         * modules/unictype/syntax-c-ident: Likewise.
10034         * modules/unictype/syntax-c-whitespace: Likewise.
10035         * modules/unictype/syntax-java-ident: Likewise.
10036         * modules/unictype/syntax-java-whitespace: Likewise.
10037         * modules/unilbrk/u8-possible-linebreaks: Likewise.
10038         * modules/unilbrk/u8-width-linebreaks: Likewise.
10039         * modules/unilbrk/u16-possible-linebreaks: Likewise.
10040         * modules/unilbrk/u16-width-linebreaks: Likewise.
10041         * modules/unilbrk/u32-possible-linebreaks: Likewise.
10042         * modules/unilbrk/u32-width-linebreaks: Likewise.
10043         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
10044         * modules/unilbrk/ulc-width-linebreaks: Likewise.
10045         * modules/uniname/uniname: Likewise.
10046         * modules/uninorm/canonical-decomposition: Likewise.
10047         * modules/uninorm/composition: Likewise.
10048         * modules/uninorm/decomposing-form: Likewise.
10049         * modules/uninorm/decomposition: Likewise.
10050         * modules/uninorm/filter: Likewise.
10051         * modules/uninorm/nfc: Likewise.
10052         * modules/uninorm/nfd: Likewise.
10053         * modules/uninorm/nfkc: Likewise.
10054         * modules/uninorm/nfkd: Likewise.
10055         * modules/uninorm/u8-normalize: Likewise.
10056         * modules/uninorm/u8-normcmp: Likewise.
10057         * modules/uninorm/u8-normcoll: Likewise.
10058         * modules/uninorm/u8-normxfrm: Likewise.
10059         * modules/uninorm/u16-normalize: Likewise.
10060         * modules/uninorm/u16-normcmp: Likewise.
10061         * modules/uninorm/u16-normcoll: Likewise.
10062         * modules/uninorm/u16-normxfrm: Likewise.
10063         * modules/uninorm/u32-normalize: Likewise.
10064         * modules/uninorm/u32-normcmp: Likewise.
10065         * modules/uninorm/u32-normcoll: Likewise.
10066         * modules/uninorm/u32-normxfrm: Likewise.
10067         * modules/unistdio/u8-asnprintf: Likewise.
10068         * modules/unistdio/u8-asprintf: Likewise.
10069         * modules/unistdio/u8-snprintf: Likewise.
10070         * modules/unistdio/u8-sprintf: Likewise.
10071         * modules/unistdio/u8-u8-asnprintf: Likewise.
10072         * modules/unistdio/u8-u8-asprintf: Likewise.
10073         * modules/unistdio/u8-u8-snprintf: Likewise.
10074         * modules/unistdio/u8-u8-sprintf: Likewise.
10075         * modules/unistdio/u8-u8-vasnprintf: Likewise.
10076         * modules/unistdio/u8-u8-vasprintf: Likewise.
10077         * modules/unistdio/u8-u8-vsnprintf: Likewise.
10078         * modules/unistdio/u8-u8-vsprintf: Likewise.
10079         * modules/unistdio/u8-vasnprintf: Likewise.
10080         * modules/unistdio/u8-vasprintf: Likewise.
10081         * modules/unistdio/u8-vsnprintf: Likewise.
10082         * modules/unistdio/u8-vsprintf: Likewise.
10083         * modules/unistdio/u16-asnprintf: Likewise.
10084         * modules/unistdio/u16-asprintf: Likewise.
10085         * modules/unistdio/u16-snprintf: Likewise.
10086         * modules/unistdio/u16-sprintf: Likewise.
10087         * modules/unistdio/u16-u16-asnprintf: Likewise.
10088         * modules/unistdio/u16-u16-asprintf: Likewise.
10089         * modules/unistdio/u16-u16-snprintf: Likewise.
10090         * modules/unistdio/u16-u16-sprintf: Likewise.
10091         * modules/unistdio/u16-u16-vasnprintf: Likewise.
10092         * modules/unistdio/u16-u16-vasprintf: Likewise.
10093         * modules/unistdio/u16-u16-vsnprintf: Likewise.
10094         * modules/unistdio/u16-u16-vsprintf: Likewise.
10095         * modules/unistdio/u16-vasnprintf: Likewise.
10096         * modules/unistdio/u16-vasprintf: Likewise.
10097         * modules/unistdio/u16-vsnprintf: Likewise.
10098         * modules/unistdio/u16-vsprintf: Likewise.
10099         * modules/unistdio/u32-asnprintf: Likewise.
10100         * modules/unistdio/u32-asprintf: Likewise.
10101         * modules/unistdio/u32-snprintf: Likewise.
10102         * modules/unistdio/u32-sprintf: Likewise.
10103         * modules/unistdio/u32-u32-asnprintf: Likewise.
10104         * modules/unistdio/u32-u32-asprintf: Likewise.
10105         * modules/unistdio/u32-u32-snprintf: Likewise.
10106         * modules/unistdio/u32-u32-sprintf: Likewise.
10107         * modules/unistdio/u32-u32-vasnprintf: Likewise.
10108         * modules/unistdio/u32-u32-vasprintf: Likewise.
10109         * modules/unistdio/u32-u32-vsnprintf: Likewise.
10110         * modules/unistdio/u32-u32-vsprintf: Likewise.
10111         * modules/unistdio/u32-vasnprintf: Likewise.
10112         * modules/unistdio/u32-vasprintf: Likewise.
10113         * modules/unistdio/u32-vsnprintf: Likewise.
10114         * modules/unistdio/u32-vsprintf: Likewise.
10115         * modules/unistdio/ulc-asnprintf: Likewise.
10116         * modules/unistdio/ulc-asprintf: Likewise.
10117         * modules/unistdio/ulc-fprintf: Likewise.
10118         * modules/unistdio/ulc-snprintf: Likewise.
10119         * modules/unistdio/ulc-sprintf: Likewise.
10120         * modules/unistdio/ulc-vasnprintf: Likewise.
10121         * modules/unistdio/ulc-vasprintf: Likewise.
10122         * modules/unistdio/ulc-vfprintf: Likewise.
10123         * modules/unistdio/ulc-vsnprintf: Likewise.
10124         * modules/unistdio/ulc-vsprintf: Likewise.
10125         * modules/unistr/u8-check: Likewise.
10126         * modules/unistr/u8-chr: Likewise.
10127         * modules/unistr/u8-cmp: Likewise.
10128         * modules/unistr/u8-cmp2: Likewise.
10129         * modules/unistr/u8-cpy: Likewise.
10130         * modules/unistr/u8-cpy-alloc: Likewise.
10131         * modules/unistr/u8-endswith: Likewise.
10132         * modules/unistr/u8-mblen: Likewise.
10133         * modules/unistr/u8-mbsnlen: Likewise.
10134         * modules/unistr/u8-mbtouc: Likewise.
10135         * modules/unistr/u8-mbtouc-unsafe: Likewise.
10136         * modules/unistr/u8-mbtoucr: Likewise.
10137         * modules/unistr/u8-move: Likewise.
10138         * modules/unistr/u8-next: Likewise.
10139         * modules/unistr/u8-prev: Likewise.
10140         * modules/unistr/u8-set: Likewise.
10141         * modules/unistr/u8-startswith: Likewise.
10142         * modules/unistr/u8-stpcpy: Likewise.
10143         * modules/unistr/u8-stpncpy: Likewise.
10144         * modules/unistr/u8-strcat: Likewise.
10145         * modules/unistr/u8-strchr: Likewise.
10146         * modules/unistr/u8-strcmp: Likewise.
10147         * modules/unistr/u8-strcoll: Likewise.
10148         * modules/unistr/u8-strcpy: Likewise.
10149         * modules/unistr/u8-strcspn: Likewise.
10150         * modules/unistr/u8-strdup: Likewise.
10151         * modules/unistr/u8-strlen: Likewise.
10152         * modules/unistr/u8-strmblen: Likewise.
10153         * modules/unistr/u8-strmbtouc: Likewise.
10154         * modules/unistr/u8-strncat: Likewise.
10155         * modules/unistr/u8-strncmp: Likewise.
10156         * modules/unistr/u8-strncpy: Likewise.
10157         * modules/unistr/u8-strnlen: Likewise.
10158         * modules/unistr/u8-strpbrk: Likewise.
10159         * modules/unistr/u8-strrchr: Likewise.
10160         * modules/unistr/u8-strspn: Likewise.
10161         * modules/unistr/u8-strstr: Likewise.
10162         * modules/unistr/u8-strtok: Likewise.
10163         * modules/unistr/u8-to-u16: Likewise.
10164         * modules/unistr/u8-to-u32: Likewise.
10165         * modules/unistr/u8-uctomb: Likewise.
10166         * modules/unistr/u16-check: Likewise.
10167         * modules/unistr/u16-chr: Likewise.
10168         * modules/unistr/u16-cmp: Likewise.
10169         * modules/unistr/u16-cmp2: Likewise.
10170         * modules/unistr/u16-cpy: Likewise.
10171         * modules/unistr/u16-cpy-alloc: Likewise.
10172         * modules/unistr/u16-endswith: Likewise.
10173         * modules/unistr/u16-mblen: Likewise.
10174         * modules/unistr/u16-mbsnlen: Likewise.
10175         * modules/unistr/u16-mbtouc: Likewise.
10176         * modules/unistr/u16-mbtouc-unsafe: Likewise.
10177         * modules/unistr/u16-mbtoucr: Likewise.
10178         * modules/unistr/u16-move: Likewise.
10179         * modules/unistr/u16-next: Likewise.
10180         * modules/unistr/u16-prev: Likewise.
10181         * modules/unistr/u16-set: Likewise.
10182         * modules/unistr/u16-startswith: Likewise.
10183         * modules/unistr/u16-stpcpy: Likewise.
10184         * modules/unistr/u16-stpncpy: Likewise.
10185         * modules/unistr/u16-strcat: Likewise.
10186         * modules/unistr/u16-strchr: Likewise.
10187         * modules/unistr/u16-strcmp: Likewise.
10188         * modules/unistr/u16-strcoll: Likewise.
10189         * modules/unistr/u16-strcpy: Likewise.
10190         * modules/unistr/u16-strcspn: Likewise.
10191         * modules/unistr/u16-strdup: Likewise.
10192         * modules/unistr/u16-strlen: Likewise.
10193         * modules/unistr/u16-strmblen: Likewise.
10194         * modules/unistr/u16-strmbtouc: Likewise.
10195         * modules/unistr/u16-strncat: Likewise.
10196         * modules/unistr/u16-strncmp: Likewise.
10197         * modules/unistr/u16-strncpy: Likewise.
10198         * modules/unistr/u16-strnlen: Likewise.
10199         * modules/unistr/u16-strpbrk: Likewise.
10200         * modules/unistr/u16-strrchr: Likewise.
10201         * modules/unistr/u16-strspn: Likewise.
10202         * modules/unistr/u16-strstr: Likewise.
10203         * modules/unistr/u16-strtok: Likewise.
10204         * modules/unistr/u16-to-u32: Likewise.
10205         * modules/unistr/u16-to-u8: Likewise.
10206         * modules/unistr/u16-uctomb: Likewise.
10207         * modules/unistr/u32-check: Likewise.
10208         * modules/unistr/u32-chr: Likewise.
10209         * modules/unistr/u32-cmp: Likewise.
10210         * modules/unistr/u32-cmp2: Likewise.
10211         * modules/unistr/u32-cpy: Likewise.
10212         * modules/unistr/u32-cpy-alloc: Likewise.
10213         * modules/unistr/u32-endswith: Likewise.
10214         * modules/unistr/u32-mblen: Likewise.
10215         * modules/unistr/u32-mbsnlen: Likewise.
10216         * modules/unistr/u32-mbtouc: Likewise.
10217         * modules/unistr/u32-mbtouc-unsafe: Likewise.
10218         * modules/unistr/u32-mbtoucr: Likewise.
10219         * modules/unistr/u32-move: Likewise.
10220         * modules/unistr/u32-next: Likewise.
10221         * modules/unistr/u32-prev: Likewise.
10222         * modules/unistr/u32-set: Likewise.
10223         * modules/unistr/u32-startswith: Likewise.
10224         * modules/unistr/u32-stpcpy: Likewise.
10225         * modules/unistr/u32-stpncpy: Likewise.
10226         * modules/unistr/u32-strcat: Likewise.
10227         * modules/unistr/u32-strchr: Likewise.
10228         * modules/unistr/u32-strcmp: Likewise.
10229         * modules/unistr/u32-strcoll: Likewise.
10230         * modules/unistr/u32-strcpy: Likewise.
10231         * modules/unistr/u32-strcspn: Likewise.
10232         * modules/unistr/u32-strdup: Likewise.
10233         * modules/unistr/u32-strlen: Likewise.
10234         * modules/unistr/u32-strmblen: Likewise.
10235         * modules/unistr/u32-strmbtouc: Likewise.
10236         * modules/unistr/u32-strncat: Likewise.
10237         * modules/unistr/u32-strncmp: Likewise.
10238         * modules/unistr/u32-strncpy: Likewise.
10239         * modules/unistr/u32-strnlen: Likewise.
10240         * modules/unistr/u32-strpbrk: Likewise.
10241         * modules/unistr/u32-strrchr: Likewise.
10242         * modules/unistr/u32-strspn: Likewise.
10243         * modules/unistr/u32-strstr: Likewise.
10244         * modules/unistr/u32-strtok: Likewise.
10245         * modules/unistr/u32-to-u16: Likewise.
10246         * modules/unistr/u32-to-u8: Likewise.
10247         * modules/unistr/u32-uctomb: Likewise.
10248         * modules/uniwbrk/u8-wordbreaks: Likewise.
10249         * modules/uniwbrk/u16-wordbreaks: Likewise.
10250         * modules/uniwbrk/u32-wordbreaks: Likewise.
10251         * modules/uniwbrk/ulc-wordbreaks: Likewise.
10252         * modules/uniwbrk/wordbreak-property: Likewise.
10253         * modules/uniwidth/u8-strwidth: Likewise.
10254         * modules/uniwidth/u8-width: Likewise.
10255         * modules/uniwidth/u16-strwidth: Likewise.
10256         * modules/uniwidth/u16-width: Likewise.
10257         * modules/uniwidth/u32-strwidth: Likewise.
10258         * modules/uniwidth/u32-width: Likewise.
10259         * modules/uniwidth/width: Likewise.
10260         * modules/unicase/cased-tests (Makefile.am): Link all test programs
10261         with $(LIBUNISTRING).
10262         * modules/unicase/ignorable-tests: Likewise.
10263         * modules/unicase/locale-language-tests: Likewise.
10264         * modules/unicase/tolower-tests: Likewise.
10265         * modules/unicase/totitle-tests: Likewise.
10266         * modules/unicase/toupper-tests: Likewise.
10267         * modules/unicase/u8-casecmp-tests: Likewise.
10268         * modules/unicase/u8-casecoll-tests: Likewise.
10269         * modules/unicase/u8-casefold-tests: Likewise.
10270         * modules/unicase/u8-is-cased-tests: Likewise.
10271         * modules/unicase/u8-is-casefolded-tests: Likewise.
10272         * modules/unicase/u8-is-lowercase-tests: Likewise.
10273         * modules/unicase/u8-is-titlecase-tests: Likewise.
10274         * modules/unicase/u8-is-uppercase-tests: Likewise.
10275         * modules/unicase/u8-tolower-tests: Likewise.
10276         * modules/unicase/u8-totitle-tests: Likewise.
10277         * modules/unicase/u8-toupper-tests: Likewise.
10278         * modules/unicase/u16-casecmp-tests: Likewise.
10279         * modules/unicase/u16-casecoll-tests: Likewise.
10280         * modules/unicase/u16-casefold-tests: Likewise.
10281         * modules/unicase/u16-is-cased-tests: Likewise.
10282         * modules/unicase/u16-is-casefolded-tests: Likewise.
10283         * modules/unicase/u16-is-lowercase-tests: Likewise.
10284         * modules/unicase/u16-is-titlecase-tests: Likewise.
10285         * modules/unicase/u16-is-uppercase-tests: Likewise.
10286         * modules/unicase/u16-tolower-tests: Likewise.
10287         * modules/unicase/u16-totitle-tests: Likewise.
10288         * modules/unicase/u16-toupper-tests: Likewise.
10289         * modules/unicase/u32-casecmp-tests: Likewise.
10290         * modules/unicase/u32-casecoll-tests: Likewise.
10291         * modules/unicase/u32-casefold-tests: Likewise.
10292         * modules/unicase/u32-is-cased-tests: Likewise.
10293         * modules/unicase/u32-is-casefolded-tests: Likewise.
10294         * modules/unicase/u32-is-lowercase-tests: Likewise.
10295         * modules/unicase/u32-is-titlecase-tests: Likewise.
10296         * modules/unicase/u32-is-uppercase-tests: Likewise.
10297         * modules/unicase/u32-tolower-tests: Likewise.
10298         * modules/unicase/u32-totitle-tests: Likewise.
10299         * modules/unicase/u32-toupper-tests: Likewise.
10300         * modules/unicase/ulc-casecmp-tests: Likewise.
10301         * modules/unicase/ulc-casecoll-tests: Likewise.
10302         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
10303         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
10304         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
10305         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
10306         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
10307         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
10308         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
10309         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
10310         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
10311         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
10312         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
10313         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
10314         * modules/unictype/bidicategory-byname-tests: Likewise.
10315         * modules/unictype/bidicategory-name-tests: Likewise.
10316         * modules/unictype/bidicategory-of-tests: Likewise.
10317         * modules/unictype/bidicategory-test-tests: Likewise.
10318         * modules/unictype/block-list-tests: Likewise.
10319         * modules/unictype/block-of-tests: Likewise.
10320         * modules/unictype/block-test-tests: Likewise.
10321         * modules/unictype/category-C-tests: Likewise.
10322         * modules/unictype/category-Cc-tests: Likewise.
10323         * modules/unictype/category-Cf-tests: Likewise.
10324         * modules/unictype/category-Cn-tests: Likewise.
10325         * modules/unictype/category-Co-tests: Likewise.
10326         * modules/unictype/category-Cs-tests: Likewise.
10327         * modules/unictype/category-L-tests: Likewise.
10328         * modules/unictype/category-Ll-tests: Likewise.
10329         * modules/unictype/category-Lm-tests: Likewise.
10330         * modules/unictype/category-Lo-tests: Likewise.
10331         * modules/unictype/category-Lt-tests: Likewise.
10332         * modules/unictype/category-Lu-tests: Likewise.
10333         * modules/unictype/category-M-tests: Likewise.
10334         * modules/unictype/category-Mc-tests: Likewise.
10335         * modules/unictype/category-Me-tests: Likewise.
10336         * modules/unictype/category-Mn-tests: Likewise.
10337         * modules/unictype/category-N-tests: Likewise.
10338         * modules/unictype/category-Nd-tests: Likewise.
10339         * modules/unictype/category-Nl-tests: Likewise.
10340         * modules/unictype/category-No-tests: Likewise.
10341         * modules/unictype/category-P-tests: Likewise.
10342         * modules/unictype/category-Pc-tests: Likewise.
10343         * modules/unictype/category-Pd-tests: Likewise.
10344         * modules/unictype/category-Pe-tests: Likewise.
10345         * modules/unictype/category-Pf-tests: Likewise.
10346         * modules/unictype/category-Pi-tests: Likewise.
10347         * modules/unictype/category-Po-tests: Likewise.
10348         * modules/unictype/category-Ps-tests: Likewise.
10349         * modules/unictype/category-S-tests: Likewise.
10350         * modules/unictype/category-Sc-tests: Likewise.
10351         * modules/unictype/category-Sk-tests: Likewise.
10352         * modules/unictype/category-Sm-tests: Likewise.
10353         * modules/unictype/category-So-tests: Likewise.
10354         * modules/unictype/category-Z-tests: Likewise.
10355         * modules/unictype/category-Zl-tests: Likewise.
10356         * modules/unictype/category-Zp-tests: Likewise.
10357         * modules/unictype/category-Zs-tests: Likewise.
10358         * modules/unictype/category-and-not-tests: Likewise.
10359         * modules/unictype/category-and-tests: Likewise.
10360         * modules/unictype/category-byname-tests: Likewise.
10361         * modules/unictype/category-name-tests: Likewise.
10362         * modules/unictype/category-none-tests: Likewise.
10363         * modules/unictype/category-of-tests: Likewise.
10364         * modules/unictype/category-or-tests: Likewise.
10365         * modules/unictype/category-test-withtable-tests: Likewise.
10366         * modules/unictype/combining-class-tests: Likewise.
10367         * modules/unictype/ctype-alnum-tests: Likewise.
10368         * modules/unictype/ctype-alpha-tests: Likewise.
10369         * modules/unictype/ctype-blank-tests: Likewise.
10370         * modules/unictype/ctype-cntrl-tests: Likewise.
10371         * modules/unictype/ctype-digit-tests: Likewise.
10372         * modules/unictype/ctype-graph-tests: Likewise.
10373         * modules/unictype/ctype-lower-tests: Likewise.
10374         * modules/unictype/ctype-print-tests: Likewise.
10375         * modules/unictype/ctype-punct-tests: Likewise.
10376         * modules/unictype/ctype-space-tests: Likewise.
10377         * modules/unictype/ctype-upper-tests: Likewise.
10378         * modules/unictype/ctype-xdigit-tests: Likewise.
10379         * modules/unictype/decimal-digit-tests: Likewise.
10380         * modules/unictype/digit-tests: Likewise.
10381         * modules/unictype/mirror-tests: Likewise.
10382         * modules/unictype/numeric-tests: Likewise.
10383         * modules/unictype/property-alphabetic-tests: Likewise.
10384         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
10385         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
10386         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
10387         * modules/unictype/property-bidi-block-separator-tests: Likewise.
10388         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
10389         * modules/unictype/property-bidi-common-separator-tests: Likewise.
10390         * modules/unictype/property-bidi-control-tests: Likewise.
10391         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
10392         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
10393         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
10394         * modules/unictype/property-bidi-european-digit-tests: Likewise.
10395         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
10396         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
10397         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
10398         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
10399         * modules/unictype/property-bidi-pdf-tests: Likewise.
10400         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
10401         * modules/unictype/property-bidi-whitespace-tests: Likewise.
10402         * modules/unictype/property-byname-tests: Likewise.
10403         * modules/unictype/property-combining-tests: Likewise.
10404         * modules/unictype/property-composite-tests: Likewise.
10405         * modules/unictype/property-currency-symbol-tests: Likewise.
10406         * modules/unictype/property-dash-tests: Likewise.
10407         * modules/unictype/property-decimal-digit-tests: Likewise.
10408         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
10409         * modules/unictype/property-deprecated-tests: Likewise.
10410         * modules/unictype/property-diacritic-tests: Likewise.
10411         * modules/unictype/property-extender-tests: Likewise.
10412         * modules/unictype/property-format-control-tests: Likewise.
10413         * modules/unictype/property-grapheme-base-tests: Likewise.
10414         * modules/unictype/property-grapheme-extend-tests: Likewise.
10415         * modules/unictype/property-grapheme-link-tests: Likewise.
10416         * modules/unictype/property-hex-digit-tests: Likewise.
10417         * modules/unictype/property-hyphen-tests: Likewise.
10418         * modules/unictype/property-id-continue-tests: Likewise.
10419         * modules/unictype/property-id-start-tests: Likewise.
10420         * modules/unictype/property-ideographic-tests: Likewise.
10421         * modules/unictype/property-ids-binary-operator-tests: Likewise.
10422         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
10423         * modules/unictype/property-ignorable-control-tests: Likewise.
10424         * modules/unictype/property-iso-control-tests: Likewise.
10425         * modules/unictype/property-join-control-tests: Likewise.
10426         * modules/unictype/property-left-of-pair-tests: Likewise.
10427         * modules/unictype/property-line-separator-tests: Likewise.
10428         * modules/unictype/property-logical-order-exception-tests: Likewise.
10429         * modules/unictype/property-lowercase-tests: Likewise.
10430         * modules/unictype/property-math-tests: Likewise.
10431         * modules/unictype/property-non-break-tests: Likewise.
10432         * modules/unictype/property-not-a-character-tests: Likewise.
10433         * modules/unictype/property-numeric-tests: Likewise.
10434         * modules/unictype/property-other-alphabetic-tests: Likewise.
10435         * modules/unictype/property-other-default-ignorable-code-point-tests:
10436         Likewise.
10437         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
10438         * modules/unictype/property-other-id-continue-tests: Likewise.
10439         * modules/unictype/property-other-id-start-tests: Likewise.
10440         * modules/unictype/property-other-lowercase-tests: Likewise.
10441         * modules/unictype/property-other-math-tests: Likewise.
10442         * modules/unictype/property-other-uppercase-tests: Likewise.
10443         * modules/unictype/property-paired-punctuation-tests: Likewise.
10444         * modules/unictype/property-paragraph-separator-tests: Likewise.
10445         * modules/unictype/property-pattern-syntax-tests: Likewise.
10446         * modules/unictype/property-pattern-white-space-tests: Likewise.
10447         * modules/unictype/property-private-use-tests: Likewise.
10448         * modules/unictype/property-punctuation-tests: Likewise.
10449         * modules/unictype/property-quotation-mark-tests: Likewise.
10450         * modules/unictype/property-radical-tests: Likewise.
10451         * modules/unictype/property-sentence-terminal-tests: Likewise.
10452         * modules/unictype/property-soft-dotted-tests: Likewise.
10453         * modules/unictype/property-space-tests: Likewise.
10454         * modules/unictype/property-terminal-punctuation-tests: Likewise.
10455         * modules/unictype/property-test-tests: Likewise.
10456         * modules/unictype/property-titlecase-tests: Likewise.
10457         * modules/unictype/property-unassigned-code-value-tests: Likewise.
10458         * modules/unictype/property-unified-ideograph-tests: Likewise.
10459         * modules/unictype/property-uppercase-tests: Likewise.
10460         * modules/unictype/property-variation-selector-tests: Likewise.
10461         * modules/unictype/property-white-space-tests: Likewise.
10462         * modules/unictype/property-xid-continue-tests: Likewise.
10463         * modules/unictype/property-xid-start-tests: Likewise.
10464         * modules/unictype/property-zero-width-tests: Likewise.
10465         * modules/unictype/scripts-tests: Likewise.
10466         * modules/unictype/syntax-c-ident-tests: Likewise.
10467         * modules/unictype/syntax-c-whitespace-tests: Likewise.
10468         * modules/unictype/syntax-java-ident-tests: Likewise.
10469         * modules/unictype/syntax-java-whitespace-tests: Likewise.
10470         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
10471         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
10472         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
10473         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
10474         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
10475         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
10476         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
10477         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
10478         * modules/uniname/uniname-tests: Likewise.
10479         * modules/uninorm/canonical-decomposition-tests: Likewise.
10480         * modules/uninorm/compat-decomposition-tests: Likewise.
10481         * modules/uninorm/composition-tests: Likewise.
10482         * modules/uninorm/decomposing-form-tests: Likewise.
10483         * modules/uninorm/decomposition-tests: Likewise.
10484         * modules/uninorm/filter-tests: Likewise.
10485         * modules/uninorm/nfc-tests: Likewise.
10486         * modules/uninorm/nfd-tests: Likewise.
10487         * modules/uninorm/nfkc-tests: Likewise.
10488         * modules/uninorm/nfkd-tests: Likewise.
10489         * modules/uninorm/u8-normcmp-tests: Likewise.
10490         * modules/uninorm/u8-normcoll-tests: Likewise.
10491         * modules/uninorm/u16-normcmp-tests: Likewise.
10492         * modules/uninorm/u16-normcoll-tests: Likewise.
10493         * modules/uninorm/u32-normcmp-tests: Likewise.
10494         * modules/uninorm/u32-normcoll-tests: Likewise.
10495         * modules/unistdio/u8-asnprintf-tests: Likewise.
10496         * modules/unistdio/u8-vasnprintf-tests: Likewise.
10497         * modules/unistdio/u8-vasprintf-tests: Likewise.
10498         * modules/unistdio/u8-vsnprintf-tests: Likewise.
10499         * modules/unistdio/u8-vsprintf-tests: Likewise.
10500         * modules/unistdio/u16-asnprintf-tests: Likewise.
10501         * modules/unistdio/u16-vasnprintf-tests: Likewise.
10502         * modules/unistdio/u16-vasprintf-tests: Likewise.
10503         * modules/unistdio/u16-vsnprintf-tests: Likewise.
10504         * modules/unistdio/u16-vsprintf-tests: Likewise.
10505         * modules/unistdio/u32-asnprintf-tests: Likewise.
10506         * modules/unistdio/u32-vasnprintf-tests: Likewise.
10507         * modules/unistdio/u32-vasprintf-tests: Likewise.
10508         * modules/unistdio/u32-vsnprintf-tests: Likewise.
10509         * modules/unistdio/u32-vsprintf-tests: Likewise.
10510         * modules/unistdio/ulc-asnprintf-tests: Likewise.
10511         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
10512         * modules/unistdio/ulc-vasprintf-tests: Likewise.
10513         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
10514         * modules/unistdio/ulc-vsprintf-tests: Likewise.
10515         * modules/unistr/u8-check-tests: Likewise.
10516         * modules/unistr/u8-chr-tests: Likewise.
10517         * modules/unistr/u8-cmp-tests: Likewise.
10518         * modules/unistr/u8-cmp2-tests: Likewise.
10519         * modules/unistr/u8-cpy-alloc-tests: Likewise.
10520         * modules/unistr/u8-cpy-tests: Likewise.
10521         * modules/unistr/u8-mblen-tests: Likewise.
10522         * modules/unistr/u8-mbsnlen-tests: Likewise.
10523         * modules/unistr/u8-mbtouc-tests: Likewise.
10524         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
10525         * modules/unistr/u8-mbtoucr-tests: Likewise.
10526         * modules/unistr/u8-move-tests: Likewise.
10527         * modules/unistr/u8-next-tests: Likewise.
10528         * modules/unistr/u8-prev-tests: Likewise.
10529         * modules/unistr/u8-set-tests: Likewise.
10530         * modules/unistr/u8-stpcpy-tests: Likewise.
10531         * modules/unistr/u8-stpncpy-tests: Likewise.
10532         * modules/unistr/u8-strcat-tests: Likewise.
10533         * modules/unistr/u8-strcmp-tests: Likewise.
10534         * modules/unistr/u8-strcoll-tests: Likewise.
10535         * modules/unistr/u8-strcpy-tests: Likewise.
10536         * modules/unistr/u8-strdup-tests: Likewise.
10537         * modules/unistr/u8-strlen-tests: Likewise.
10538         * modules/unistr/u8-strmblen-tests: Likewise.
10539         * modules/unistr/u8-strmbtouc-tests: Likewise.
10540         * modules/unistr/u8-strncat-tests: Likewise.
10541         * modules/unistr/u8-strncmp-tests: Likewise.
10542         * modules/unistr/u8-strncpy-tests: Likewise.
10543         * modules/unistr/u8-strnlen-tests: Likewise.
10544         * modules/unistr/u8-to-u16-tests: Likewise.
10545         * modules/unistr/u8-to-u32-tests: Likewise.
10546         * modules/unistr/u8-uctomb-tests: Likewise.
10547         * modules/unistr/u16-check-tests: Likewise.
10548         * modules/unistr/u16-chr-tests: Likewise.
10549         * modules/unistr/u16-cmp-tests: Likewise.
10550         * modules/unistr/u16-cmp2-tests: Likewise.
10551         * modules/unistr/u16-cpy-alloc-tests: Likewise.
10552         * modules/unistr/u16-cpy-tests: Likewise.
10553         * modules/unistr/u16-mblen-tests: Likewise.
10554         * modules/unistr/u16-mbsnlen-tests: Likewise.
10555         * modules/unistr/u16-mbtouc-tests: Likewise.
10556         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
10557         * modules/unistr/u16-mbtoucr-tests: Likewise.
10558         * modules/unistr/u16-move-tests: Likewise.
10559         * modules/unistr/u16-next-tests: Likewise.
10560         * modules/unistr/u16-prev-tests: Likewise.
10561         * modules/unistr/u16-set-tests: Likewise.
10562         * modules/unistr/u16-stpcpy-tests: Likewise.
10563         * modules/unistr/u16-stpncpy-tests: Likewise.
10564         * modules/unistr/u16-strcat-tests: Likewise.
10565         * modules/unistr/u16-strcmp-tests: Likewise.
10566         * modules/unistr/u16-strcoll-tests: Likewise.
10567         * modules/unistr/u16-strcpy-tests: Likewise.
10568         * modules/unistr/u16-strdup-tests: Likewise.
10569         * modules/unistr/u16-strlen-tests: Likewise.
10570         * modules/unistr/u16-strmblen-tests: Likewise.
10571         * modules/unistr/u16-strmbtouc-tests: Likewise.
10572         * modules/unistr/u16-strncat-tests: Likewise.
10573         * modules/unistr/u16-strncmp-tests: Likewise.
10574         * modules/unistr/u16-strncpy-tests: Likewise.
10575         * modules/unistr/u16-strnlen-tests: Likewise.
10576         * modules/unistr/u16-to-u32-tests: Likewise.
10577         * modules/unistr/u16-to-u8-tests: Likewise.
10578         * modules/unistr/u16-uctomb-tests: Likewise.
10579         * modules/unistr/u32-check-tests: Likewise.
10580         * modules/unistr/u32-chr-tests: Likewise.
10581         * modules/unistr/u32-cmp-tests: Likewise.
10582         * modules/unistr/u32-cmp2-tests: Likewise.
10583         * modules/unistr/u32-cpy-alloc-tests: Likewise.
10584         * modules/unistr/u32-cpy-tests: Likewise.
10585         * modules/unistr/u32-mblen-tests: Likewise.
10586         * modules/unistr/u32-mbsnlen-tests: Likewise.
10587         * modules/unistr/u32-mbtouc-tests: Likewise.
10588         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
10589         * modules/unistr/u32-mbtoucr-tests: Likewise.
10590         * modules/unistr/u32-move-tests: Likewise.
10591         * modules/unistr/u32-next-tests: Likewise.
10592         * modules/unistr/u32-prev-tests: Likewise.
10593         * modules/unistr/u32-set-tests: Likewise.
10594         * modules/unistr/u32-stpcpy-tests: Likewise.
10595         * modules/unistr/u32-stpncpy-tests: Likewise.
10596         * modules/unistr/u32-strcat-tests: Likewise.
10597         * modules/unistr/u32-strcmp-tests: Likewise.
10598         * modules/unistr/u32-strcoll-tests: Likewise.
10599         * modules/unistr/u32-strcpy-tests: Likewise.
10600         * modules/unistr/u32-strdup-tests: Likewise.
10601         * modules/unistr/u32-strlen-tests: Likewise.
10602         * modules/unistr/u32-strmblen-tests: Likewise.
10603         * modules/unistr/u32-strmbtouc-tests: Likewise.
10604         * modules/unistr/u32-strncat-tests: Likewise.
10605         * modules/unistr/u32-strncmp-tests: Likewise.
10606         * modules/unistr/u32-strncpy-tests: Likewise.
10607         * modules/unistr/u32-strnlen-tests: Likewise.
10608         * modules/unistr/u32-to-u16-tests: Likewise.
10609         * modules/unistr/u32-to-u8-tests: Likewise.
10610         * modules/unistr/u32-uctomb-tests: Likewise.
10611         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
10612         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
10613         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
10614         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
10615         * modules/uniwidth/u8-strwidth-tests: Likewise.
10616         * modules/uniwidth/u8-width-tests: Likewise.
10617         * modules/uniwidth/u16-strwidth-tests: Likewise.
10618         * modules/uniwidth/u16-width-tests: Likewise.
10619         * modules/uniwidth/u32-strwidth-tests: Likewise.
10620         * modules/uniwidth/u32-width-tests: Likewise.
10621         * modules/uniwidth/width-tests: Likewise.
10622
10623 2010-05-18  Richard Jones  <rjones@redhat.com>
10624
10625         doc: users.txt: list hivex
10626         * users.txt: Add hivex.
10627
10628 2010-05-18  Richard Jones  <rjones@redhat.com>
10629
10630         doc: users.txt: list febootstrap
10631         * users.txt: Add febootstrap.
10632
10633 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
10634
10635         bootstrap: fix an error when gnulib is not used as a git submodule
10636         * build-aux/bootstrap (gnulib_path): If its length is zero then
10637         assign "gnulib" to it.
10638         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
10639
10640 2010-05-16  Bruno Haible  <bruno@clisp.org>
10641
10642         Avoid autoconf warnings about AM_ICONV.
10643         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
10644         2.64.
10645
10646 2010-05-16  Bruno Haible  <bruno@clisp.org>
10647
10648         absolute-header: Make the macro usable in more situations.
10649         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
10650         from gl_ABSOLUTE_HEADER.
10651         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
10652
10653 2010-05-16  James Youngman  <jay@gnu.org>
10654
10655         doc: update users.txt
10656         * users.txt: Add CSSC.
10657
10658 2010-05-16  Jim Meyering  <meyering@redhat.com>
10659
10660         init.sh: fix an error in the previous change; add more comments
10661         * tests/init.sh: Compare exit code in loop against 9, not 2.
10662         Patch by Bruno Haible.
10663         Make the two tests more similar by adding an empty "then" clause.
10664         Add comments.
10665
10666         init.sh: avoid unnecessary shell re-exec
10667         * tests/init.sh: Improve the re-exec-required check to first test the
10668         current shell.  If it passes the test, do not search for a shell that
10669         does pass, and do not re-exec.  This test is particularly contorted to
10670         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
10671         of $(...) evokes a syntax error and causes immediate shell exit with
10672         status 2.  Bruno Haible reported that the re-exec made it impossible
10673         to single-step through any init.sh-using script.
10674
10675 2010-05-16  Bruno Haible  <bruno@clisp.org>
10676
10677         Fix collision between gnulib's and libintl's printf replacements.
10678         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
10679         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
10680         (printf): When using GNU C, map the __printf__ function to rpl_printf
10681         via __asm__. When not using GNU C, define rpl_printf instead of
10682         __printf__.
10683         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
10684         commit.
10685         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
10686         commit.
10687         * m4/asm-underscore.m4: New file.
10688         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
10689         * modules/stdio (Files): Add m4/asm-underscore.m4.
10690         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
10691         Reported by Ben Pfaff.
10692
10693 2010-05-16  Bruno Haible  <bruno@clisp.org>
10694
10695         verify: Avoid skipping the test on openSUSE 11.0.
10696         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
10697
10698 2010-05-13  Bruno Haible  <bruno@clisp.org>
10699
10700         Avoid useless warnings from G++.
10701         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
10702         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
10703         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10704
10705 2010-05-11  Jim Meyering  <meyering@redhat.com>
10706
10707         maint.mk: tweak preceding change
10708         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
10709         regexps tighter by anchoring at EOL, and make the new group "shy"
10710         for slightly decreased overhead.
10711
10712 2010-05-11  Eric Blake  <eblake@redhat.com>
10713
10714         maint.mk: gnulib doesn't guarantee NSIG
10715         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
10716
10717 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
10718
10719         test-pwrite.c: Remove unused variable declaration.
10720         * tests/test-pwrite.c (main): Remove read_buf declaration.
10721
10722         Remove useless test-pwrite.sh file.
10723         * tests/test-pwrite.sh: Delete file.
10724         * modules/pwrite-tests: Remove references.
10725         Reported by Bruno Haible.
10726
10727 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
10728
10729         init.sh: fix a typo
10730         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
10731
10732 2010-05-10  Jim Meyering  <meyering@redhat.com>
10733
10734         maint.mk: avoid using a temporary file in the always-defined-macros check
10735         * top/maint.mk (.re-defmac): Remove rule.
10736         (gl_trap_): Remove definition.
10737         (sc_prohibit_always-defined_macros): Rewrite not to create and
10738         depend on a temporary file.  Instead, depend on GNU grep's ability
10739         to read a list of regular expressions from stdin when given "-f -".
10740
10741 2010-05-09  Bruno Haible  <bruno@clisp.org>
10742
10743         Update to GNU gettext 0.18, part 1.
10744         * m4/gettext.m4: Update to GNU gettext 0.18.
10745         * m4/intl.m4: Likewise.
10746         * m4/po.m4: Likewise.
10747         * modules/gettext (Files): Add m4/fcntl-o.m4.
10748         (configure.ac): Require gettext infrastructure from version 0.18.
10749
10750 2010-05-09  Jim Meyering  <meyering@redhat.com>
10751
10752         init.sh: enable MALLOC_PERTURB_
10753         * tests/init.sh: Enable glibc's malloc-perturbing option.
10754
10755         maint.mk: improve sc_cross_check_PATH_usage_in_tests
10756         With my recent change in init.sh from the two-line form:
10757             -#   : ${srcdir=.}
10758             -#   . "$srcdir/init.sh"; path_prepend_ .
10759             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
10760         I noticed that using the one-line form would cause this test
10761         to fail with a false-positive, or to stop working altogether,
10762         depending on whether help-version changed or all the tests did.
10763         * top/maint.mk (_hv_regex): Remove this definition.
10764         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
10765         (_hv_regex_strong): Use a stronger regex to check for conformance.
10766         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
10767         Give a separate diagnostic for lack of conforming use.
10768
10769         maint.mk: prohibit definition of symbols defined by gnulib
10770         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
10771         definition of symbols defined by gnulib.
10772
10773 2010-05-09  Bruno Haible  <bruno@clisp.org>
10774
10775         acl: Avoid test failure on Cygwin-hosted mingw.
10776         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
10777
10778 2010-05-09  Bruno Haible  <bruno@clisp.org>
10779
10780         error: Use system's fcntl function.
10781         * lib/error.c (fcntl): Undefine.
10782
10783 2010-05-09  Jim Meyering  <meyering@redhat.com>
10784
10785         verify: adjust formatting to be more consistent
10786         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
10787         argument-list '('s, and after one comma.
10788
10789 2010-05-09  Bruno Haible  <bruno@clisp.org>
10790
10791         error: More reliable output on mingw.
10792         * lib/error.c: Include <windows.h>.
10793         (is_open): New function.
10794         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
10795         defined.
10796
10797 2010-05-09  Bruno Haible  <bruno@clisp.org>
10798
10799         vasnprintf: Fix syntax errors in libintl build on mingw.
10800         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
10801         pad_ourselves and prec_ourselves after use.
10802
10803 2010-05-08  Bruno Haible  <bruno@clisp.org>
10804
10805         * lib/config.charset: Update comments for Cygwin 1.7.
10806         * lib/localcharset.c: Likewise.
10807
10808 2010-05-07  Jim Meyering  <meyering@redhat.com>
10809
10810         init.sh: improve comments
10811         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
10812         . "${srcdir=.}/init.sh"; path_prepend_ .
10813         Add a note about path_prepend_ and the alternative of using
10814         TESTS_ENVIRONMENT.
10815
10816 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
10817
10818         exclude: Unescape hashed patterns in wildcard mode.
10819         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
10820         to the hash list.
10821         * tests/test-exclude8.sh: New test case.
10822         * modules/exclude-tests: Add new test.
10823
10824 2010-05-05  Eric Blake  <eblake@redhat.com>
10825
10826         verify: automate tests
10827         * modules/verify-tests: New module.
10828         * tests/test-verify.sh: New file.
10829         * tests/test-verify.c: Guard each negative test with a unique id.
10830         Also avoid warning about unused left hand of comma expressions.
10831
10832 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10833
10834         Further improvements to verify.h, suggested by Eric Blake.
10835         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
10836         the GL_* versions, to avoid collision with OpenGL.
10837         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
10838         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
10839         than testing merely whether it's defined.
10840
10841         Modify verify.h to pacify gcc -Wredundant_decls.
10842         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
10843         These use the prefix "GL_" since they're likely to be useful elsewhere.
10844         We may need to break them out into a different .h file.
10845         (__COUNTER__): Define to 0 if the compiler doesn't support it.
10846         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
10847         of verify_function__.
10848
10849 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
10850
10851         Tests for module pwrite.
10852         * modules/pwrite-tests: New file.
10853         * tests/test-pwrite.sh: New file.
10854         * tests/test-pwrite.c: New file.
10855
10856         New module pwrite.
10857         * lib/unistd.in.h (pwrite): New declaration.
10858         * lib/pwrite.c: New file, from glibc with modifications.
10859         * m4/pwrite.m4: New file.
10860         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
10861         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
10862         REPLACE_PWRITE.
10863         * modules/pwrite: New file.
10864         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
10865         REPLACE_PWRITE.
10866         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
10867         * doc/posix-functions/pwrite.texi: Mention the new module.
10868
10869 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
10870
10871         pread: Update documentation.
10872         * doc/posix-functions/pread.texi: Mention the 'pread' module.
10873
10874 2010-05-04  Eric Blake  <eblake@redhat.com>
10875
10876         docs: update cygwin progress
10877         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
10878         this bug.
10879         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
10880         Added in cygwin 1.7.2.
10881         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
10882         Likewise.
10883         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
10884         Likewise.
10885         * doc/glibc-functions/dup3.texi (dup3): Likewise.
10886         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
10887         * doc/glibc-functions/accept4.texi (accept4): Likewise.
10888         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
10889         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
10890         Mention nproc module.
10891         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
10892         bug in cygwin 1.7.5 addition.
10893         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
10894         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
10895         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
10896         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
10897         1.7.5.
10898         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
10899         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
10900         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
10901         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
10902         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
10903         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
10904         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
10905         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
10906         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
10907         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
10908         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
10909         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
10910         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
10911         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
10912         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
10913         Likewise.
10914         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
10915         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
10916         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
10917         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
10918         Likewise.
10919         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
10920         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
10921         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
10922         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
10923         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
10924         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
10925         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
10926         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
10927         Likewise.
10928         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
10929         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
10930         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
10931         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
10932         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
10933         Likewise.
10934         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
10935         Likewise.
10936         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
10937         Likewise.
10938         * doc/glibc-functions/xdrrec_endofrecord.texi
10939         (xdrrec_endofrecord): Likewise.
10940         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
10941         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
10942         Likewise.
10943         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
10944         Likewise.
10945
10946 2010-05-04  Jim Meyering  <meyering@redhat.com>
10947
10948         gendocs.sh: make its "-s FILE" option more useful
10949         * build-aux/gendocs.sh: When honoring the -s FILE option, update
10950         $PACKAGE to reflect the probably-different basename of "FILE".
10951
10952 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
10953
10954         bootstrap: don't ignore download_po_files failure
10955         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
10956         failure.
10957
10958 2010-05-03  Jim Meyering  <meyering@redhat.com>
10959
10960         maint.mk: allow to pass options to gendocs.sh
10961         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
10962         (gendocs_options_): New overridable variable.
10963
10964         gnu-web-doc-update: don't ignore configure or build failure
10965         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
10966
10967         announce-gen: backslash-escape '@'s in --help output
10968         * build-aux/announce-gen: Fix syntax errors.
10969
10970         maint.mk, announce-gen: allow project-specific announcement mail headers
10971         * top/maint.mk (translation_project_): Define default.
10972         (announcement_Cc_, announcement_mail_headers_): Likewise.
10973         (announcement): Invoke announce-gen with new --mail-headers option.
10974         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
10975
10976         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
10977         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
10978         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
10979         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
10980         line in the "err2" output file when running "make check" in verbose
10981         mode (i.e., with set -x enabled).
10982
10983 2010-05-03  Bruno Haible  <bruno@clisp.org>
10984
10985         wctob: Fix for weird platforms.
10986         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
10987         argument value.
10988
10989 2010-05-03  Jim Meyering  <meyering@redhat.com>
10990
10991         maint.mk: prohibit unwarranted use of <strings.h>
10992         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
10993         strings.h in a file that does not also use strcasecmp, strncasecmp,
10994         ffs or ffsll.
10995
10996         maint.mk: remove obsolete comments
10997         * top/maint.mk: Remove stale, commented-out rules.
10998
10999 2010-05-02  Bruno Haible  <bruno@clisp.org>
11000
11001         wcwidth: Declare also when it's aliased.
11002         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
11003         macro.
11004
11005 2010-05-02  Bruno Haible  <bruno@clisp.org>
11006
11007         Fix regression from 2010-04-25.
11008         * gnulib-tool (func_modules_transitive_closure): Check the status of
11009         all modules, not only of the tests that are of the form foo-tests where
11010         foo is a module.
11011
11012 2010-05-02  Bruno Haible  <bruno@clisp.org>
11013
11014         wctob: Work around nasty Cygwin 1.7.2 bug.
11015         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
11016         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
11017
11018 2010-05-01  Bruno Haible  <bruno@clisp.org>
11019
11020         fpurge: Sharper test.
11021         * tests/test-fpurge.c (main): Add one more ftell check.
11022         * modules/fpurge-tests (Depends-on): Add ftell.
11023         Suggested by Eric Blake.
11024
11025 2010-05-01  Bruno Haible  <bruno@clisp.org>
11026
11027         ftello: Another test.
11028         * tests/test-ftello3.c: New file.
11029         * modules/ftello-tests (Files): Add it.
11030         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
11031         MOSTLYCLEANFILES.
11032
11033         ftell: Another test.
11034         * tests/test-ftell3.c: New file.
11035         * modules/ftell-tests (Files): Add it.
11036         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
11037         MOSTLYCLEANFILES.
11038
11039 2010-05-01  Bruno Haible  <bruno@clisp.org>
11040
11041         ftell, ftello: Work around Solaris bug.
11042         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
11043         * lib/ftello.c: Include stdio-impl.h.
11044         (ftello): On Solaris, when _IOWRT is set, compute the result without
11045         looking at _IOREAD.
11046         * modules/ftello (Files): Add lib/stdio-impl.h.
11047         * doc/posix-functions/ftell.texi: Mention Solaris bug.
11048         * doc/posix-functions/ftello.texi: Likewise.
11049         Reported by Eric Blake.
11050
11051 2010-05-01  Bruno Haible  <bruno@clisp.org>
11052
11053         freading: Adapt to special meaning of _IOREAD flag on Solaris.
11054         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
11055         the _IOWRT flag is also set.
11056
11057 2010-05-01  Bruno Haible  <bruno@clisp.org>
11058
11059         Fix doc about a HP-UX stdio bug.
11060         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
11061         * doc/posix-functions/ftello.texi: Likewise.
11062
11063 2010-05-01  Bruno Haible  <bruno@clisp.org>
11064
11065         lseek test: Fix failure on Solaris.
11066         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
11067         output.
11068
11069 2010-04-30  Jim Meyering  <meyering@redhat.com>
11070
11071         bootstrap: don't ignore failure to generate po*/Makevars
11072         * build-aux/bootstrap (with_gettext): Don't ignore failure
11073         to create po/Makevars or runtime-po/Makevars.
11074
11075 2010-04-29  Eric Blake  <eblake@redhat.com>
11076
11077         headers: relax license to LGPLv2+
11078         * modules/fcntl-h (License): Relax license.
11079         * modules/getopt-posix (License): Likewise.
11080         * modules/locale (License): Likewise.
11081         * modules/math (License): Likewise.
11082         * modules/pty (License): Likewise.
11083         * modules/sched (License): Likewise.
11084         * modules/search (License): Likewise.
11085         * modules/spawn (License): Likewise.
11086         * modules/stdarg (License): Likewise.
11087         * modules/sysexits (License): Likewise.
11088
11089 2010-04-29  Jim Meyering  <meyering@redhat.com>
11090
11091         inttypes: relax license to LGPLv2+
11092         * modules/inttypes (License): Relax license.
11093
11094 2010-04-29  Simon Josefsson  <simon@josefsson.org>
11095
11096         * top/maint.mk (indent): Run twice to produce idempotent results.
11097
11098 2010-04-28  Bruno Haible  <bruno@clisp.org>
11099
11100         getdate: Generate getdate.c in the source directory.
11101         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
11102         MOSTLYCLEANFILES.
11103         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
11104
11105 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
11106
11107         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
11108         is not declared as a const *; avoid warnings in that case.
11109
11110 2010-04-28  Eric Blake  <eblake@redhat.com>
11111
11112         canonicalize-lgpl: avoid compiler warning
11113         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
11114         declaration' / 'extraneous semicolon' warning with some compilers.
11115         Reported by Andreas Gruenbacher.
11116
11117 2010-04-28  Jim Meyering  <meyering@redhat.com>
11118
11119         init.sh: ensure a more reliable exit status when exiting via trap
11120         * tests/init.sh (setup_): Don't rely on $? in signal handler.
11121         Inspired by patches from Dmitry V. Levin.
11122         Also trap on signal 3 (SIGQUIT).
11123
11124 2010-04-27  Bruno Haible  <bruno@clisp.org>
11125
11126         Update doc about utimes().
11127         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
11128         'utimens' module.
11129         Reported by Andreas Gruenbacher <agruen@suse.de>.
11130
11131 2010-04-27  Eric Blake  <eblake@redhat.com>
11132
11133         full-read, full-write: relax license
11134         * modules/full-read (License): Drop to LGPLv2+.
11135         * modules/full-write (License): Likewise.
11136         * modules/safe-read (License): Likewise.
11137         * modules/safe-write (License): Likewise.
11138
11139         pthread: mention library for linking
11140         * modules/pthread (Link): Mention $(LIB_PTHREAD).
11141
11142 2010-04-27  Jim Meyering  <meyering@redhat.com>
11143
11144         maint.mk: fix a bug introduced in last change
11145         * top/maint.mk (gl_assured_headers_): Now that all names are on
11146         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
11147         is not anchored to end of word, it should be adequate.
11148
11149         maint.mk: avoid side-effect in latest syntax-check
11150         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
11151         to run commands via $(shell...), and hence to incur cost only when
11152         the new rule is actually run.
11153
11154         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
11155         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
11156         and use that to create a regexp used to detect all #if HAVE_..._H uses.
11157         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
11158         (gl_assured_headers_, az_, AZ_): Define.
11159         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
11160
11161 2010-04-26  Jim Meyering  <jim@meyering.net>
11162             Bruno Haible  <bruno@clisp.org>
11163
11164         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
11165         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
11166         Prompted by an exchange with Gilles Espinasse.
11167
11168 2010-04-26  Jim Meyering  <meyering@redhat.com>
11169
11170         git-version-gen: aesthetic tweak
11171         * build-aux/git-version-gen: Use "$nl" rather than a literal,
11172         so that the command remains on a single line.
11173
11174 2010-04-26  Eric Blake  <eblake@redhat.com>
11175
11176         git-version-gen: allow use on EBCDIC hosts
11177         * build-aux/git-version-gen (dirty): Use literal rather than tying
11178         ourselves to ascii.
11179         Reported by Steve Goetze.
11180
11181 2010-04-25  Bruno Haible  <bruno@clisp.org>
11182
11183         netdb: Add support for GNULIB_POSIXCHECK.
11184         * lib/netdb.in.h: Include warn-on-use.h.
11185         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
11186         functions are used when GNULIB_POSIXCHECK is defined and the
11187         getaddrinfo module is not in use.
11188         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
11189         freeaddrinfo, gai_strerror, getnameinfo are declared.
11190         * modules/netdb (Depends-on): Add warn-on-use.
11191         (Makefile.am): Include warn-on-use.h in netdb.h.
11192
11193 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
11194
11195         build: avoid "make check" failure without .git/ directory
11196         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
11197         there is no .git/ directory.
11198
11199 2010-04-25  Bruno Haible  <bruno@clisp.org>
11200
11201         ptsname: Fix misuse of ttyname_r.
11202         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
11203         of errno.
11204
11205 2010-04-25  Bruno Haible  <bruno@clisp.org>
11206
11207         ttyname_r: Make it work on Solaris 10.
11208         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
11209         if the system function has the POSIX declaration. Test whether the
11210         function fails if the buffer is less than 128 bytes large.
11211         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
11212         system's ttyname_r function. Provide a reasonably large buffer.
11213         * modules/ttyname_r (Depends-on): Add extensions.
11214         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
11215
11216 2010-04-25  Bruno Haible  <bruno@clisp.org>
11217
11218         Use the 'extensions' module for some more functions on Solaris.
11219         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
11220         module.
11221         * doc/posix-functions/ctime_r.texi: Likewise.
11222         * doc/posix-functions/getgrgid_r.texi: Likewise.
11223         * doc/posix-functions/getgrnam_r.texi: Likewise.
11224         * doc/posix-functions/getpwnam_r.texi: Likewise.
11225         * doc/posix-functions/getpwuid_r.texi: Likewise.
11226         * doc/posix-functions/readdir_r.texi: Likewise.
11227         * doc/posix-functions/sigwait.texi: Likewise.
11228         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
11229         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
11230
11231 2010-04-25  Bruno Haible  <bruno@clisp.org>
11232
11233         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
11234         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
11235         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
11236         * lib/ttyname_r.c: Include <limits.h>.
11237         (ttyname_r): Define using the system's ttyname_r function, if it exists
11238         and not on Solaris.
11239         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
11240         set.
11241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
11242         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
11243         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
11244         Reported by Simon Josefsson.
11245
11246 2010-04-25  Bruno Haible  <bruno@clisp.org>
11247
11248         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
11249         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
11250         * doc/posix-functions/ctime_r.texi: Likewise.
11251         * doc/posix-functions/getgrgid_r.texi: Likewise.
11252         * doc/posix-functions/getgrnam_r.texi: Likewise.
11253         * doc/posix-functions/getlogin_r.texi: Likewise.
11254         * doc/posix-functions/getpwnam_r.texi: Likewise.
11255         * doc/posix-functions/getpwuid_r.texi: Likewise.
11256         * doc/posix-functions/readdir_r.texi: Likewise.
11257         * doc/posix-functions/sigwait.texi: Likewise.
11258         * doc/posix-functions/ttyname_r.texi: Likewise.
11259         Reported by Simon Josefsson.
11260
11261 2010-04-25  Bruno Haible  <bruno@clisp.org>
11262
11263         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
11264         * gnulib-tool (func_usage): Document that --with-*-tests options apply
11265         also to --create-testdir.
11266         (func_acceptable): Don't consider the status of *-tests modules here.
11267         (func_modules_transitive_closure): Consider it here, before including a
11268         test module.
11269         (func_import, func_create_testdir): Set inc_all_direct_tests,
11270         inc_all_indirect_tests.
11271         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
11272         --create-testdir and --create-megatestdir.
11273
11274 2010-04-25  Bruno Haible  <bruno@clisp.org>
11275
11276         gnulib-tool: Add --without-*-tests options.
11277         * gnulib-tool (func_usage): Document the --without-*-tests options.
11278         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
11279         excl_unportable_tests): New variables.
11280         Fail if they are specified with --import or --update.
11281         (func_acceptable): Respect the excl_*_tests variables.
11282         (func_import): Set the excl_*_tests variables to empty.
11283
11284 2010-04-25  Simon Josefsson  <simon@josefsson.org>
11285             Bruno Haible  <bruno@clisp.org>
11286
11287         Work around a MacOS X 10.4 bug with openpty.
11288         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
11289         * tests/test-openpty.c (main): Close the master side explicitly.
11290
11291 2010-04-25  Bruno Haible  <bruno@clisp.org>
11292
11293         strnlen: Fix a C++ test error on MacOS X and Solaris.
11294         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
11295         the function is not declared.
11296         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
11297         Simon Josefsson.
11298
11299 2010-04-24  Bruno Haible  <bruno@clisp.org>
11300
11301         Avoid a gcc warning.
11302         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
11303         of correct type for %08lx directive.
11304         Reported by Eric Blake.
11305
11306 2010-04-24  Bruno Haible  <bruno@clisp.org>
11307
11308         vasnprintf: Correct errno value in case of out-of-memory.
11309         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
11310         or sprintf. Use the errno value from SNPRINTF or sprintf.
11311         Reported by Ian Beckwith <ianb@erislabs.net>.
11312
11313 2010-04-24  Bruno Haible  <bruno@clisp.org>
11314
11315         ansi-c++-opt: Find correct compiler when cross-compiling.
11316         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
11317         AC_CHECK_PROGS.
11318         Reported by Simon Josefsson.
11319
11320 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
11321
11322         vc-list-files: Add support for subversion
11323         * build-aux/vc-list-files: Use "svn list" to generate the list of
11324         files controlled by subversion.
11325
11326 2010-04-23  Jim Meyering  <meyering@redhat.com>
11327
11328         vc-list-files tests: convert to use init.sh
11329         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
11330         path_prepend_.
11331         Use Exit, not exit.
11332         Use skip_ rather than open coding it.
11333         Remove trap set-up and compare definitions.
11334         * tests/test-vc-list-files-git.sh: Likewise.
11335         * modules/vc-list-files-tests (Files): Add tests/init.sh.
11336
11337 2010-04-22  Simon Josefsson  <simon@josefsson.org>
11338
11339         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
11340         backup files.
11341
11342 2010-04-21  Simon Josefsson  <simon@josefsson.org>
11343
11344         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
11345
11346 2010-04-20  Eric Blake  <eblake@redhat.com>
11347
11348         tests: be robust to ignored SIGPIPE
11349         * tests/test-select-in.sh: Consume all output.
11350         * tests/test-lseek.sh: Check correct exit status, while avoiding
11351         EPIPE.
11352
11353 2010-04-20  Simon Josefsson  <simon@josefsson.org>
11354             Bruno Haible  <bruno@clisp.org>
11355
11356         visibility: Don't use -fvisibility if it leads to a warning.
11357         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
11358         yes, don't pretend that visibility works if it leads to a warning.
11359         Reported by Mike Gran <spk121@yahoo.com>.
11360
11361 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
11362
11363         * build-aux/bootstrap: Use "git -h" for testing for supported options
11364         instead of "git --help".  The short-form option only shows a summary,
11365         and doesn't layout the full man page.  Grep for the full option name
11366         in the summary, too.
11367
11368 2010-04-19  Bruno Haible  <bruno@clisp.org>
11369
11370         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
11371         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
11372         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
11373         mention of RELOCATABLE_STRIP.
11374         Reported by Sylvain Beucler <beuc@beuc.net>.
11375
11376 2010-04-19  Bruno Haible  <bruno@clisp.org>
11377
11378         * lib/diffseq.h: Fix typo in comment.
11379         Reported by Eric Blake.
11380
11381 2010-04-19  Bruno Haible  <bruno@clisp.org>
11382
11383         ioctl: Move autoconf macro to a .m4 file.
11384         * m4/ioctl.m4: New file, extracted from modules/ioctl.
11385         * modules/ioctl (Files): Add it.
11386         (configure.ac): Simply invoke gl_FUNC_IOCTL.
11387         Reported by Ian Beckwith <ianb@erislabs.net>.
11388
11389 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
11390             Bruno Haible  <bruno@clisp.org>
11391
11392         diffseq: Accommodate use-case with abstract arrays.
11393         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
11394         is not defined.
11395         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
11396         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
11397
11398 2010-04-18  Bruno Haible  <bruno@clisp.org>
11399
11400         * doc/posix-headers/stdbool.texi: More precise wording.
11401
11402 2010-04-17  Jim Meyering  <meyering@redhat.com>
11403
11404         maint.mk: use gnu-style indentation in an embedded perl script
11405         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
11406         Rename variable: s/two/last_two_bytes/
11407
11408 2010-04-16  Eric Blake  <eblake@redhat.com>
11409
11410         test-stdbool: skip test that fails with Solaris CC
11411         * tests/test-stdbool.c (f): Skip test that causes compilation
11412         error under buggy C++ compiler.
11413         * lib/stdbool.in.h: Document the limitation.
11414         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
11415
11416         setenv: allow compilation with C++
11417         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
11418         register keyword.
11419
11420         stdint: allow test to pass with C++
11421         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
11422
11423         getopt: allow compilation with C++
11424         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
11425         struct.
11426         * lib/getopt.c (_getopt_internal_r): Use correct type.
11427         Reported by Dagobert Michelson, via Joel E. Denny.
11428
11429 2010-04-16  Bruno Haible  <bruno@clisp.org>
11430
11431         Override netdb.h always.
11432         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
11433         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
11434         Reported by Ludovic Courtès <ludo@gnu.org>.
11435
11436 2010-04-15  Bruno Haible  <bruno@clisp.org>
11437
11438         openpty: Fix mistake from 2010-03-21.
11439         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
11440         Reported by Simon Josefsson.
11441
11442 2010-04-15  Eric Blake  <eblake@redhat.com>
11443
11444         test-forkpty: fix expected signature
11445         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
11446         Reported by Simon Josefsson.
11447
11448 2010-04-15  Jim Meyering  <meyering@redhat.com>
11449
11450         maint.mk: texinfo_suffix_re_: correct the default regexp
11451         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
11452
11453         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
11454         make it configurable via texinfo_suffix_re_.
11455
11456 2010-04-14  Eric Blake  <eblake@redhat.com>
11457
11458         strtok_r: relax license to LGPLv2+
11459         * modules/strtok_r (License): Relax license.
11460         Reported by Matthias Bolte.
11461
11462 2010-04-14  Simon Josefsson  <simon@josefsson.org>
11463
11464         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
11465         version 1.4.4 by default instead of requiring the libgcrypt
11466         version used during build.  This makes it possible to use the
11467         application with older but still binary compatible libgcrypt
11468         versions.
11469
11470 2010-04-13  Eric Blake  <eblake@redhat.com>
11471
11472         getopt-gnu: match recent glibc fixes and posix ruling
11473         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
11474         '+' handling, when requesting extensions.
11475         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
11476         'W;' handling.
11477         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
11478         * doc/posix-functions/getopt.texi (getopt): Document this.
11479         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11480         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11481         Likewise.
11482
11483         getopt: merge bug fixes from glibc
11484         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
11485         diagnostics.  Honor '+:' correctly.  Reject ';'.
11486
11487         getopt-posix: detect MacOS bug
11488         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
11489         optind when missing a required argument.
11490         * doc/posix-functions/getopt.texi (getopt): Document the bug.
11491         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11492         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11493         Likewise.
11494
11495         getopt-posix: avoid spurious failure on Solaris
11496         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
11497         an indicator that setting optind=1 is sufficient for reset.
11498
11499         getopt-posix: avoid spurious failure on FreeBSD
11500         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
11501         in POSIX mode, since the m4 test uses it.
11502
11503         gnulib-tool: silence warning on BSD sh
11504         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
11505
11506 2010-04-13  Jim Meyering  <meyering@redhat.com>
11507
11508         doc: users.txt: GNU patch now uses gnulib
11509         * users.txt: Add patch.
11510
11511 2010-04-12  Jim Meyering  <meyering@redhat.com>
11512
11513         maint.mk: generate more concise timing data for syntax-check rules
11514         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
11515         " done" from each line that reports a syntax-check test duration.
11516
11517 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
11518
11519         git-version-gen: use "git update-index..." rather than "git status"
11520         * build-aux/git-version-gen: Use git update-index --refresh, not
11521         "git status".  With some versions of git, "git status" would fail
11522         to update the index and result in an unwarranted "-dirty" suffix.
11523
11524 2010-04-11  Jim Meyering  <meyering@redhat.com>
11525
11526         openat: correct formatting (no semantic change)
11527         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
11528         Suggested by Bruno Haible.
11529
11530 2010-04-11  Bruno Haible  <bruno@clisp.org>
11531
11532         Stricter declaration checking in testdirs.
11533         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11534         If for_tests is true, augment AM_CPPFLAGS to define
11535         GNULIB_STRICT_CHECKING.
11536         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
11537         GNULIB_STRICT_CHECKING is defined, verify that the function is
11538         declared.
11539
11540 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
11541             Bruno Haible  <bruno@clisp.org>
11542
11543         libunistring: Improve configure output.
11544         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
11545         Don't say "consider installing GNU libunistring" when checking again
11546         with libiconv.
11547
11548 2010-04-11  Bruno Haible  <bruno@clisp.org>
11549
11550         libunistring: Correct value of $LTLIBUNISTRING.
11551         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
11552         correct the value of $LTLIBUNISTRING.
11553
11554 2010-04-11  Bruno Haible  <bruno@clisp.org>
11555
11556         havelib: Add static libraries to LIBS in the right order.
11557         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
11558         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
11559
11560 2010-04-11  Bruno Haible  <bruno@clisp.org>
11561
11562         libunistring: Detect libunistring also when it depends on libiconv.
11563         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
11564         the second AC_LIB_HAVE_LINKFLAGS invocation.
11565
11566 2010-04-11  James Youngman  <jay@gnu.org>
11567
11568         close-stream: declare local scalars to be "const"
11569         * lib/close-stream.c (close_stream): Make boolean variables const
11570         to document the fact that we set but do not change them.
11571
11572 2010-04-11  Bruno Haible  <bruno@clisp.org>
11573
11574         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
11575
11576 2010-04-11  Jim Meyering  <meyering@redhat.com>
11577
11578         maint.mk: don't include dist-check.mk
11579         * top/maint.mk: Remove bogus include directive.
11580
11581         maint.mk: improve empty-line-at-EOF check
11582         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
11583         solution, rather than tail+Perl-based one.  The latter would read
11584         a few kilobytes from the end of each file, and did not handle empty
11585         files properly.
11586
11587         maint.mk: print the elapsed time for each syntax-check rule
11588         * top/maint.mk (sc_m_rules_): Save start time in a file.
11589         (sc_z_rules_): New rules: remove temp file and print elapsed time.
11590         (local-check): Interpose the .z rules
11591
11592 2010-04-11  Jim Meyering  <meyering@redhat.com>
11593
11594         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
11595         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
11596         empty file with one that ends in an empty line.
11597
11598 2010-04-10  Bruno Haible  <bruno@clisp.org>
11599
11600         mkdir: Make it work on mingw64.
11601         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
11602         * lib/mkdir.c: Update comment.
11603         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
11604
11605 2010-04-10  Bruno Haible  <bruno@clisp.org>
11606
11607         Don't override improved macro from newer autoconf.
11608         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
11609         autoconf >= 2.62.
11610         Reported by Joel E. Denny <jdenny@clemson.edu>.
11611
11612 2010-04-10  Jim Meyering  <meyering@redhat.com>
11613
11614         maint.mk: new syntax-check rule: prohibit empty lines at end of file
11615         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
11616
11617         maint.mk: correct a diagnostic
11618         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
11619         in diagnostic; now use $prohibit.
11620
11621 2010-04-10  Bruno Haible  <address@hidden>
11622
11623         fchownat: Fix a C++ test error on Solaris 8.
11624         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
11625         the function does not exist.
11626
11627 2010-04-10  Bruno Haible  <bruno@clisp.org>
11628
11629         vasnprintf: Add more tests.
11630         * tests/test-vasnprintf-posix.c: Include <errno.h>.
11631         (test_function): Test converting an invalid wide string.
11632
11633         vasnprintf: Correct handling of unconvertible wide string arguments.
11634         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
11635         VASNPRINTF.
11636         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
11637         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
11638         smaller than the expected maximum need for the directive. Set errno to
11639         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
11640         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
11641         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
11642         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
11643         * modules/vasnprintf (Files): Add m4/printf.m4.
11644         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11645
11646 2010-04-10  Bruno Haible  <bruno@clisp.org>
11647
11648         vasnprintf: Fix crash in %ls directive.
11649         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
11650         string is passed as argument to %ls, with no precision and no width.
11651         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11652
11653 2010-04-10  Bruno Haible  <bruno@clisp.org>
11654
11655         vasnprintf: Fix multiple test failures on mingw.
11656         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
11657         _snprintf, or snwprintf, not _snwprintf.
11658
11659 2010-04-10  Bruno Haible  <bruno@clisp.org>
11660
11661         write: Fix a C++ test error on mingw.
11662         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
11663
11664 2010-04-10  Bruno Haible  <bruno@clisp.org>
11665
11666         vasnprintf test: Reduce code duplication.
11667         * tests/test-vasnprintf.c (test_function): New function, extracted from
11668         test_vasnprintf.
11669         (test_vasnprintf, test_asnprintf): Invoke it.
11670
11671 2010-04-10  Bruno Haible  <bruno@clisp.org>
11672
11673         strnlen: Fix warning in C++ mode on MacOS X.
11674         * lib/string.in.h (strnlen): Use the modern idiom.
11675         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
11676         defining strnlen as a macro already in <config.h>.
11677         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11678         REPLACE_STRNLEN.
11679         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
11680         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11681
11682 2010-04-08  James Youngman  <jay@gnu.org>
11683
11684         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
11685         the example.
11686
11687 2010-04-09  Jim Meyering  <meyering@redhat.com>
11688
11689         maint.mk: print better diagnostic when there is no $(_hv_file)
11690         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
11691         announce that when $(_hv_file) (aka help-version) does not exist.
11692
11693         init.sh: run tr in the "C" locale to avoid multibyte interpretation
11694         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
11695         not try to interpret its random input bytes.  Jarno Rajahalme reported
11696         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
11697         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
11698         (mktempd_): Likewise, just in case.
11699
11700         ftruncate: add two years to projected module removal date: 2012
11701         * m4/ftruncate.m4: Adjust comments.
11702
11703         ftruncate: mark module as obsolete; even MinGW provides it, now
11704         * modules/ftruncate (Status): Obsolete.
11705         (Notice): Say that.
11706         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
11707         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
11708
11709 2010-04-08  Bruno Haible  <bruno@clisp.org>
11710
11711         Fix side effects from tests-related modules.
11712         * modules/dprintf-posix (Comment): New section.
11713         * modules/fprintf-posix (Comment): Likewise.
11714         * modules/obstack-printf-posix (Comment): Likewise.
11715         * modules/printf-posix (Comment): Likewise.
11716         * modules/snprintf-posix (Comment): Likewise.
11717         * modules/sprintf-posix (Comment): Likewise.
11718         * modules/vasnprintf-posix (Comment): Likewise.
11719         * modules/vasprintf-posix (Comment): Likewise.
11720         * modules/vdprintf-posix (Comment): Likewise.
11721         * modules/vfprintf-posix (Comment): Likewise.
11722         * modules/vprintf-posix (Comment): Likewise.
11723         * modules/vsnprintf-posix (Comment): Likewise.
11724         * modules/vsprintf-posix (Comment): Likewise.
11725         * modules/xprintf-posix (Comment): Likewise.
11726         * modules/xvasprintf-posix (Comment): Likewise.
11727         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
11728         * modules/floorf-tests (Depends-on): Likewise.
11729         * modules/round-tests (Depends-on): Likewise.
11730         * modules/roundf-tests (Depends-on): Likewise.
11731         * modules/trunc-tests (Depends-on): Likewise.
11732         * modules/truncf-tests (Depends-on): Likewise.
11733         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
11734         'fprintf-posix' module is not present.
11735         * tests/test-floorf2.c (check): Likewise.
11736         * tests/test-trunc2.c (check): Likewise.
11737         * tests/test-truncf2.c (check): Likewise.
11738         * tests/test-round2.c (equal): Likewise.
11739         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11740
11741 2010-04-07  Karl Berry  <karl@gnu.org>
11742
11743         * config/srclist.txt,
11744         * config/srclistvars.sh,
11745         * config/srclist-update: doc fixes.
11746
11747 2010-04-07  Jim Meyering  <meyering@redhat.com>
11748
11749         maint.mk: add a PATH crosschecking syntax-check rule
11750         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
11751         Useful if you use a test like the one in help-version (coreutils,
11752         diffutils, grep, gzip) that ensures $(VERSION) matches what is
11753         printed by prog --version.
11754
11755 2010-04-06  Bruno Haible  <bruno@clisp.org>
11756
11757         Fix link error on mingw.
11758         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
11759         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
11760
11761 2010-04-06  Bruno Haible  <bruno@clisp.org>
11762
11763         Assume rmdir exists.
11764         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
11765
11766 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
11767
11768         doc: update users.txt
11769         * users.txt: Add gcal.
11770
11771 2010-04-06  Jim Meyering  <meyering@redhat.com>
11772
11773         init.sh: simply unset TMPDIR rather than risking env -i
11774         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
11775         although it probably works fine on all Unix-based systems, some
11776         systems (Cygwin?) cannot tolerate a totally cleared environment.
11777         Suggestion from Eric Blake.
11778
11779 2010-04-06  Jim Meyering  <meyering@redhat.com>
11780
11781         init.sh: portability fix: use env's POSIX-specified -i option not -u
11782         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
11783         than unportable env -u.  Solaris 5.11's env lacks support for -u.
11784
11785 2010-04-05  Bruno Haible  <bruno@clisp.org>
11786
11787         btowc: Work around Cygwin 1.7.2 bug.
11788         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
11789         does not map NUL to 0.
11790         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
11791
11792 2010-04-05  Bruno Haible  <bruno@clisp.org>
11793
11794         Make the multithread modules work on Cygwin 1.7.2.
11795         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
11796         imported symbols can be declared weak, so that it returns "no" on
11797         Cygwin 1.7.2.
11798
11799 2010-04-05  Bruno Haible  <bruno@clisp.org>
11800
11801         Use the module 'strncat'.
11802         * modules/unistr/u8-strncat (Depends-on): Add strncat.
11803
11804         Tests for module 'strncat'.
11805         * modules/strncat-tests: New file.
11806         * tests/test-strncat.c: New file.
11807
11808         New module 'strncat'.
11809         * lib/string.in.h (strncat): New declaration.
11810         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
11811         * m4/strncat.m4: New file, based on m4/memchr.m4.
11812         * modules/strncat: New file.
11813         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
11814         is declared.
11815         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
11816         REPLACE_STRNCAT.
11817         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
11818         REPLACE_STRNCAT.
11819         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
11820         module.
11821         * tests/test-string-c++.cc: Check signature of strncat.
11822
11823 2010-04-05  Jim Meyering  <meyering@redhat.com>
11824
11825         xstrtoumax-tests: convert to use init.sh
11826         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
11827         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11828         Use Exit, not exit.
11829         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11830
11831         xstrtoimax-tests: convert to use init.sh
11832         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
11833         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11834         Use Exit, not exit.
11835         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11836
11837 2010-04-05  Bruno Haible  <bruno@clisp.org>
11838
11839         sys_socket: Avoid #define replacements in C++ mode.
11840         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
11841         warning to the function if possible, rather than #defining the symbol
11842         to a dysfunctional alias.
11843
11844 2010-04-05  Bruno Haible  <bruno@clisp.org>
11845
11846         fseeko: Fix C++ test error on mingw.
11847         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
11848         gl_FUNC_FSEEKO.
11849         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
11850         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
11851         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
11852         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
11853
11854 2010-04-05  Bruno Haible  <bruno@clisp.org>
11855
11856         duplocale: Improve test output.
11857         * tests/test-duplocale.c (main): Print reason for skipped test.
11858
11859 2010-04-05  Bruno Haible  <bruno@clisp.org>
11860
11861         Assume rmdir exists.
11862         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
11863         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
11864
11865 2010-04-05  Bruno Haible  <bruno@clisp.org>
11866
11867         Fix link error on Solaris 8 with cc.
11868         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
11869
11870 2010-04-05  Bruno Haible  <bruno@clisp.org>
11871
11872         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
11873         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
11874
11875 2010-04-05  Bruno Haible  <bruno@clisp.org>
11876
11877         vasprintf: Update documentation.
11878         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
11879
11880 2010-04-05  Bruno Haible  <bruno@clisp.org>
11881
11882         ptsname: Improve test.
11883         * tests/test-ptsname.c (main): Also try the various master names of BSD
11884         systems.
11885
11886 2010-04-05  Bruno Haible  <bruno@clisp.org>
11887
11888         memchr: Avoid a possible C++ test error.
11889         * lib/string.in.h (memchr): Provide declaration if function is missing.
11890         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
11891         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
11892         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
11893         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
11894
11895 2010-04-05  Bruno Haible  <bruno@clisp.org>
11896
11897         strtok_r: Improve idiom.
11898         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
11899         AC_LIBOBJ is used.
11900
11901 2010-04-05  Bruno Haible  <bruno@clisp.org>
11902
11903         strdup: Improve idiom.
11904         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
11905         AC_LIBOBJ is used.
11906         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
11907         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
11908         when AC_LIBOBJ is used.
11909
11910 2010-04-05  Bruno Haible  <bruno@clisp.org>
11911
11912         mbsinit, mbrtowc, wcrtomb: Improve idioms.
11913         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
11914         don't set REPLACE_MBSINIT to 1.
11915         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
11916         don't set REPLACE_MBRTOWC to 1.
11917         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
11918         exist, don't set REPLACE_MBSRTOWCS to 1.
11919         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
11920         exist, don't set REPLACE_MBSNRTOWCS to 1.
11921         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
11922         don't set REPLACE_WCRTOMB to 1.
11923         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
11924         exist, don't set REPLACE_WCSRTOMBS to 1.
11925         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
11926         exist, don't set REPLACE_WCSNRTOMBS to 1.
11927
11928 2010-04-05  Bruno Haible  <bruno@clisp.org>
11929
11930         ldexpl: Improve idiom.
11931         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
11932         make sure to set HAVE_DECL_LDEXPL to 0.
11933
11934 2010-04-05  Jim Meyering  <meyering@redhat.com>
11935
11936         xstrtol-tests: convert to use init.sh
11937         * modules/xstrtol-tests (Files): Add tests/init.sh.
11938         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11939         Use Exit, not exit.
11940         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11941
11942         atexit-tests: convert to use init.sh
11943         * modules/atexit-tests (Files): Add tests/init.sh.
11944         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11945         Use Exit, not exit.
11946         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11947
11948         init.sh: fix typo
11949         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
11950
11951         init.sh: make it easier for a test script to write to the tty, ...
11952         when using automake's parallel-tests mode.
11953         * tests/init.sh (stderr_fileno_): Define overridable variable.
11954         (warn_): New function, to use it.
11955         (fail_, skip_, framework_failure_): Use warn_.
11956
11957 2010-04-04  Bruno Haible  <bruno@clisp.org>
11958
11959         btowc: Avoid warning.
11960         * lib/btowc.c: Include <stdlib.h>.
11961         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
11962
11963 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
11964             Bruno Haible  <bruno@clisp.org>
11965
11966         wchar: Port to NetBSD 1.5.
11967         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
11968         * lib/wctype.in.h (WEOF): Likewise.
11969
11970 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
11971             Bruno Haible  <bruno@clisp.org>
11972
11973         Port extended stdio to NetBSD 1.5.
11974         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
11975         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
11976         older.
11977
11978 2010-04-04  Bruno Haible  <bruno@clisp.org>
11979
11980         string: Remove unused substitution.
11981         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
11982         HAVE_DECL_STRERROR.
11983         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
11984
11985 2010-04-04  Bruno Haible  <bruno@clisp.org>
11986
11987         strtod: Avoid a possible C++ test error.
11988         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
11989         set REPLACE_STRTOD.
11990
11991 2010-04-04  Bruno Haible  <bruno@clisp.org>
11992
11993         strerror: Update documentation.
11994         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
11995
11996 2010-04-04  Bruno Haible  <bruno@clisp.org>
11997
11998         stdio: Fix some C++ test errors on Solaris 8 with GCC.
11999         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
12000         _GL_CXXALIAS_SYS_CAST.
12001
12002 2010-04-04  Bruno Haible  <bruno@clisp.org>
12003
12004         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
12005         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
12006         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
12007         REPLACE_FREXPL to 1.
12008         * doc/posix-functions/frexpl.texi: Update documentation.
12009
12010 2010-04-04  Bruno Haible  <bruno@clisp.org>
12011
12012         math: Fix some C++ test errors on Solaris 8 and Cygwin.
12013         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
12014
12015 2010-04-04  Bruno Haible  <bruno@clisp.org>
12016
12017         Implement nanosleep for native Windows.
12018         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
12019
12020 2010-04-04  Bruno Haible  <bruno@clisp.org>
12021
12022         math: Fix some C++ test errors on Solaris 8.
12023         * lib/math.in.h (truncf, trunc): Use simpler idiom.
12024
12025 2010-04-04  Bruno Haible  <bruno@clisp.org>
12026
12027         math: Fix some C++ test errors on Cygwin.
12028         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
12029         truncl): Provide declaration if the system does not have it.
12030         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
12031         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
12032         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
12033         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
12034         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
12035         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
12036         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
12037         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
12038         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
12039         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
12040         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
12041         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
12042         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
12043         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
12044         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
12045         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
12046         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
12047         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
12048         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
12049         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
12050         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
12051         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
12052
12053 2010-04-04  Bruno Haible  <bruno@clisp.org>
12054
12055         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
12056         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12057         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12058         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
12059         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12060         * m4/isinf.m4 (gl_ISINF): Likewise.
12061         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12062
12063 2010-04-04  Bruno Haible  <bruno@clisp.org>
12064
12065         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
12066         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12067
12068 2010-04-04  Bruno Haible  <bruno@clisp.org>
12069
12070         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
12071         * modules/tmpfile (configure.ac): Update.
12072
12073         tmpfile: Fix C++ test error on mingw.
12074         * lib/stdio.in.h (tmpfile): New declaration.
12075         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
12076         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
12077         * modules/tmpfile (Depends-on): Add stdio.
12078         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
12079         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
12080         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
12081         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
12082         REPLACE_TMPFILE.
12083         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
12084
12085 2010-04-04  Bruno Haible  <bruno@clisp.org>
12086
12087         ioctl: Fix C++ test error on mingw.
12088         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
12089         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
12090         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
12091
12092 2010-04-03  Bruno Haible  <bruno@clisp.org>
12093
12094         wcwidth: Fix C++ test error on mingw.
12095         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
12096         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
12097         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
12098
12099 2010-04-03  Bruno Haible  <bruno@clisp.org>
12100
12101         nanosleep: Fix C++ test error on mingw.
12102         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
12103         * lib/time.in.h (nanosleep): Use modern idiom.
12104         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
12105         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
12106         REPLACE_NANOSLEEP to 1.
12107         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
12108         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
12109
12110 2010-04-03  Bruno Haible  <bruno@clisp.org>
12111
12112         strptime: Fix C++ test error on mingw.
12113         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
12114         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
12115         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
12116         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
12117         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
12118         not REPLACE_STRPTIME.
12119         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
12120         REPLACE_STRPTIME.
12121
12122 2010-04-03  Bruno Haible  <bruno@clisp.org>
12123
12124         timegm: Fix C++ test error on mingw.
12125         * lib/time.in.h (timegm): Use modern idiom.
12126         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
12127         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
12128         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
12129         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
12130
12131 2010-04-03  Bruno Haible  <bruno@clisp.org>
12132
12133         timegm: Assume declaration if function exists.
12134         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
12135         if it exists. Don't clobber ac_cv_func_timegm.
12136
12137 2010-04-03  Bruno Haible  <bruno@clisp.org>
12138
12139         time_r: Fix C++ test error on mingw.
12140         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
12141         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
12142         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
12143         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
12144         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
12145
12146 2010-04-03  Bruno Haible  <bruno@clisp.org>
12147
12148         time_r: Minor updates.
12149         * modules/time_r (Description): Mention the provided functions.
12150         * lib/time_r.c: Don't include <string.h>.
12151         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
12152         * doc/posix-functions/localtime_r.texi: Likewise.
12153
12154 2010-04-03  Bruno Haible  <bruno@clisp.org>
12155
12156         time: Fix regression introduced on 2010-03-08.
12157         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
12158         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
12159
12160 2010-04-03  Jim Meyering  <meyering@redhat.com>
12161
12162         maint.mk: don't silently disable project-specific syntax-check rules
12163         * top/maint.mk (_prohibit_regexp): Define, to help people realize
12164         that they need to convert their project-specific syntax-check rules
12165         to use the new _sc_search_regexp.
12166
12167 2010-04-03  Bruno Haible  <bruno@clisp.org>
12168
12169         fchdir: Fix regression introduced on 2010-03-08.
12170         * lib/unistd.in.h (fchdir): Fix declaration.
12171         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
12172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
12173         REPLACE_FCHDIR.
12174         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
12175         REPLACE_FCHDIR.
12176
12177 2010-04-03  Bruno Haible  <bruno@clisp.org>
12178
12179         getpagesize: Fix C++ test error on mingw.
12180         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
12181         system does not declare the function.
12182         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
12183         declared.
12184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12185         HAVE_DECL_GETPAGESIZE.
12186         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
12187
12188 2010-04-03  Bruno Haible  <bruno@clisp.org>
12189
12190         stdio: Make C++ tests work on mingw.
12191         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
12192         does not declare the function.
12193
12194 2010-04-03  Bruno Haible  <bruno@clisp.org>
12195
12196         ftello: Fix C++ test error on mingw.
12197         * lib/stdio.in.h (ftello): Use modern idiom.
12198         * lib/ftello.c (ftello): Renamed from rpl_ftello.
12199         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
12200         is missing and that it needs to be replaced.
12201         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
12202         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
12203         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
12204
12205 2010-04-03  Bruno Haible  <bruno@clisp.org>
12206
12207         fseeko: Fix C++ test error on mingw.
12208         * lib/stdio.in.h (fseeko): Use modern idiom.
12209         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
12210         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
12211         is missing and that it needs to be replaced.
12212         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
12213         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
12214         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
12215
12216 2010-04-03  Bruno Haible  <bruno@clisp.org>
12217
12218         mkstemp: Fix C++ test error on mingw.
12219         * lib/stdlib.in.h (mkstemp): Use modern idiom.
12220         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
12221         function is missing and that it needs to be replaced.
12222         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
12223         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
12224
12225 2010-04-03  Bruno Haible  <bruno@clisp.org>
12226
12227         stpncpy: Fix C++ test error on mingw.
12228         * lib/string.in.h (stpncpy): Use modern idiom.
12229         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
12230         function is missing and that it needs to be replaced.
12231         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12232         REPLACE_STPNCPY.
12233         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
12234
12235 2010-04-03  Bruno Haible  <bruno@clisp.org>
12236
12237         sys_stat: Fix C++ test error on mingw.
12238         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
12239         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
12240
12241 2010-04-03  Bruno Haible  <bruno@clisp.org>
12242
12243         pty: Update doc.
12244         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
12245
12246 2010-04-03  Bruno Haible  <bruno@clisp.org>
12247
12248         unistd: Fix C++ test error on mingw.
12249         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
12250
12251 2010-04-03  Bruno Haible  <bruno@clisp.org>
12252
12253         Update doc regarding mingw.
12254         * doc/glibc-functions/openpty.texi: Update regarding mingw.
12255         * doc/glibc-functions/login_tty.texi: Likewise.
12256         * doc/glibc-functions/forkpty.texi: Likewise.
12257
12258 2010-04-03  Bruno Haible  <bruno@clisp.org>
12259
12260         stdlib: Avoid compilation failure of c-strtold on mingw.
12261         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
12262
12263 2010-04-03  Bruno Haible  <bruno@clisp.org>
12264
12265         locale: Make C++ tests work on Cygwin and mingw.
12266         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
12267         cannot provide the function.
12268         Reported by Simon Josefsson.
12269
12270 2010-04-03  Bruno Haible  <bruno@clisp.org>
12271
12272         localename: Port to MacOS X 10.6.
12273         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
12274         memory layout of the locales in MacOS X 10.6 as well.
12275         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
12276
12277 2010-04-02  Bruno Haible  <bruno@clisp.org>
12278
12279         gnulib-tool: Ensure that long-running tests are executed last.
12280         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
12281         running tests after the one for the other tests.
12282
12283 2010-04-02  Bruno Haible  <bruno@clisp.org>
12284
12285         gnulib-tool: Ensure the tests in the main directory are executed first.
12286         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
12287         start with the current directory.
12288
12289 2010-04-02  Bruno Haible  <bruno@clisp.org>
12290
12291         Tests for module 'havelib', moved here from GNU gettext.
12292         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
12293         modifications.
12294         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
12295         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
12296         with modifications.
12297         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
12298         modifications.
12299         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
12300         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
12301         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
12302         with modifications.
12303         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
12304         with modifications.
12305         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
12306         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
12307         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
12308         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
12309         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
12310         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
12311         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
12312         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
12313         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
12314         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
12315         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
12316         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
12317         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
12318         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
12319         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
12320         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
12321         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
12322         with modifications.
12323         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
12324         with modifications.
12325         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
12326         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
12327         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
12328         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
12329         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
12330         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
12331         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
12332         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
12333         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
12334         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
12335         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
12336         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
12337         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
12338         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
12339         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
12340         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
12341         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
12342         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
12343         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
12344         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
12345         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
12346         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
12347         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
12348         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
12349         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
12350         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
12351         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
12352         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
12353         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
12354         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
12355         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
12356         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
12357         * tests/havelib/rpathx/rpathx.c: New file, from
12358         gettext/autoconf-lib-link.
12359         * tests/havelib/rpathx/Makefile.am: New file, from
12360         gettext/autoconf-lib-link.
12361         * tests/havelib/rpathx/configure.ac: New file, from
12362         gettext/autoconf-lib-link with modifications.
12363         * tests/havelib/rpathy/rpathy.c: New file, from
12364         gettext/autoconf-lib-link.
12365         * tests/havelib/rpathy/Makefile.am: New file, from
12366         gettext/autoconf-lib-link.
12367         * tests/havelib/rpathy/configure.ac: New file, from
12368         gettext/autoconf-lib-link with modifications.
12369         * tests/havelib/rpathz/rpathz.c: New file, from
12370         gettext/autoconf-lib-link.
12371         * tests/havelib/rpathz/Makefile.am: New file, from
12372         gettext/autoconf-lib-link.
12373         * tests/havelib/rpathz/configure.ac: New file, from
12374         gettext/autoconf-lib-link with modifications.
12375         * tests/havelib/rpathlx/usex.c: New file, from
12376         gettext/autoconf-lib-link.
12377         * tests/havelib/rpathlx/Makefile.am: New file, from
12378         gettext/autoconf-lib-link.
12379         * tests/havelib/rpathlx/configure.ac: New file, from
12380         gettext/autoconf-lib-link with modifications.
12381         * tests/havelib/rpathly/usey.c: New file, from
12382         gettext/autoconf-lib-link.
12383         * tests/havelib/rpathly/Makefile.am: New file, from
12384         gettext/autoconf-lib-link.
12385         * tests/havelib/rpathly/configure.ac: New file, from
12386         gettext/autoconf-lib-link with modifications.
12387         * tests/havelib/rpathlz/usez.c: New file, from
12388         gettext/autoconf-lib-link.
12389         * tests/havelib/rpathlz/Makefile.am: New file, from
12390         gettext/autoconf-lib-link.
12391         * tests/havelib/rpathlz/configure.ac: New file, from
12392         gettext/autoconf-lib-link with modifications.
12393         * tests/havelib/rpathlyx/usey.c: New file, from
12394         gettext/autoconf-lib-link.
12395         * tests/havelib/rpathlyx/Makefile.am: New file, from
12396         gettext/autoconf-lib-link.
12397         * tests/havelib/rpathlyx/configure.ac: New file, from
12398         gettext/autoconf-lib-link with modifications.
12399         * tests/havelib/rpathlzyx/usez.c: New file, from
12400         gettext/autoconf-lib-link.
12401         * tests/havelib/rpathlzyx/Makefile.am: New file, from
12402         gettext/autoconf-lib-link.
12403         * tests/havelib/rpathlzyx/configure.ac: New file, from
12404         gettext/autoconf-lib-link with modifications.
12405         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
12406         with modifications.
12407
12408 2010-04-02  Bruno Haible  <bruno@clisp.org>
12409
12410         gnulib-tool: Create distributed built sources also for the tests.
12411         * gnulib-tool (func_create_testdir): Also generate distributed built
12412         sources in the tests directory.
12413
12414 2010-04-02  Bruno Haible  <bruno@clisp.org>
12415
12416         gnulib-tool: Obey user's environment variables.
12417         * gnulib-tool (func_create_testdir): When creating built sources,
12418         respect the environment variables for autoconf, automake, etc. given by
12419         the user.
12420
12421 2010-04-02  Bruno Haible  <bruno@clisp.org>
12422
12423         gnulib-tool: Provide the value of --m4-base to modules.
12424         * gnulib-tool (func_import, func_create_testdir): Emit a definition
12425         of gl_m4_base.
12426
12427 2010-04-02  Eric Blake  <eblake@redhat.com>
12428
12429         maint.mk: fix some fallout
12430         * NEWS: Document the incompatible change, and its effect on cfg.mk.
12431         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
12432
12433 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
12434
12435         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
12436         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
12437         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
12438         (sc_cast_of_x_alloc_return_value): Likewise.
12439         (sc_cast_of_alloca_return_value): Likewise.
12440         (sc_space_tab): Likewise.
12441         (sc_prohibit_atoi_atof): Likewise.
12442         (sc_prohibit_magic_number_exit): Likewise.
12443         (sc_error_exit_success): Likewise.
12444         (sc_file_system): Likewise.
12445         (sc_prohibit_have_config_h): Likewise.
12446         (sc_require_config_h): Likewise.
12447         (sc_prohibit_HAVE_MBRTOWC): Likewise.
12448         (sc_obsolete_symbols): Likewise.
12449         (sc_changelog): Likewise.
12450         (sc_program_name): Likewise.
12451         (sc_the_the): Likewise.
12452         (sc_trailing_blank): Likewise.
12453         (sc_two_space_separator_in_usage): Likewise.
12454         (sc_useless_cpp_parens): Likewise.
12455         (sc_GPL_version): Likewise.
12456         (sc_GFDL_version): Likewise.
12457         (sc_texinfo_acronym): Likewise.
12458         (sc_prohibit_cvs_keyword): Likewise.
12459         (sc_prohibit_stat_st_blocks): Likewise.
12460         (sc_prohibit_S_IS_definition): Likewise.
12461         (sc_redundant_const): Likewise.
12462         (sc_makefile_TAB_only_indentation): Likewise.
12463         (sc_m4_quote_check): Likewise.
12464         (sc_makefile_path_separator_check): Likewise.
12465         (sc_copyright_check): Likewise.
12466         (sc_Wundef_boolean): Likewise.
12467         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
12468
12469         maint.mk: match 0 or more whitespace-before-function-call '('
12470         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
12471         that have zero or two-and-more spaces between the function name
12472         and the open parenthesis.
12473         (sc_error_message_warn_fatal): Likewise.
12474         (sc_error_message_uppercase): Likewise.
12475         (sc_error_message_period): Likewise.
12476
12477 2010-03-31  Eric Blake  <eblake@redhat.com>
12478
12479         maint.mk: check for [ as well as test
12480         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
12481         Based on a libvirt report by Matthias Bolte.
12482
12483         gnumakefile: don't squelch _version output
12484         * top/GNUmakefile (_version): Create one-shot dependency rather
12485         than using $(shell) when version must be regenerated.
12486         (_autoreconf): Run verbosely, by default.
12487
12488         sys_time: avoid compiler warnings
12489         * lib/sys_time.in.h (includes): Ensure gcc pragma is
12490         unconditional, fixing regression from 2010-03-29.
12491         Reported by Simon Josefsson.
12492
12493 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
12494
12495         maint.mk: s/_header_without_use/_sc_header_without_use/
12496         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
12497         (sc_prohibit_assert_without_use): Use the new name.
12498         (sc_prohibit_close_stream_without_use): Likewise.
12499         (sc_prohibit_getopt_without_use): Likewise.
12500         (sc_prohibit_quotearg_without_use): Likewise.
12501         (sc_prohibit_quote_without_use): Likewise.
12502         (sc_prohibit_long_options_without_use): Likewise.
12503         (sc_prohibit_inttostr_without_use): Likewise.
12504         (sc_prohibit_ignore_value_without_use): Likewise.
12505         (sc_prohibit_error_without_use): Likewise.
12506         (sc_prohibit_xalloc_without_use): Likewise.
12507         (sc_prohibit_hash_without_use): Likewise.
12508         (sc_prohibit_hash_pjw_without_use): Likewise.
12509         (sc_prohibit_safe_read_without_use): Likewise.
12510         (sc_prohibit_argmatch_without_use): Likewise.
12511         (sc_prohibit_canonicalize_without_use): Likewise.
12512         (sc_prohibit_root_dev_ino_without_use): Likewise.
12513         (sc_prohibit_openat_without_use): Likewise.
12514         (sc_prohibit_c_ctype_without_use): Likewise.
12515         (sc_prohibit_signal_without_use): Likewise.
12516         (sc_prohibit_intprops_without_use): Likewise.
12517
12518 2010-03-30  Eric Blake  <eblake@redhat.com>
12519
12520         maint: improve module indicators
12521         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
12522         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
12523         columns, and avoid extra macro expansion.
12524
12525         fdopendir: work around FreeBSD bug
12526         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
12527         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
12528         * modules/dirent (Makefile.am): Substitute it.
12529         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
12530         declaration.
12531         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
12532         fix.
12533         Reported by Christian Weisgerber <naddy@mips.inka.de>.
12534
12535 2010-03-29  Bruno Haible  <bruno@clisp.org>
12536
12537         Emit #pragma system_header after the inclusion guard, not before.
12538         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
12539         guard that spans the entire file, not before. This enables an
12540         optimization in GCC's preprocessor.
12541         * lib/ctype.in.h: Likewise.
12542         * lib/dirent.in.h: Likewise.
12543         * lib/errno.in.h: Likewise.
12544         * lib/float.in.h: Likewise.
12545         * lib/getopt.in.h: Likewise.
12546         * lib/iconv.in.h: Likewise.
12547         * lib/langinfo.in.h: Likewise.
12548         * lib/locale.in.h: Likewise.
12549         * lib/math.in.h: Likewise.
12550         * lib/netdb.in.h: Likewise.
12551         * lib/netinet_in.in.h: Likewise.
12552         * lib/pty.in.h: Likewise.
12553         * lib/sched.in.h: Likewise.
12554         * lib/se-selinux.in.h: Likewise.
12555         * lib/search.in.h: Likewise.
12556         * lib/spawn.in.h: Likewise.
12557         * lib/stdarg.in.h: Likewise.
12558         * lib/stdint.in.h: Likewise.
12559         * lib/string.in.h: Likewise.
12560         * lib/strings.in.h: Likewise.
12561         * lib/sys_file.in.h: Likewise.
12562         * lib/sys_ioctl.in.h: Likewise.
12563         * lib/sys_time.in.h: Likewise.
12564         * lib/sys_times.in.h: Likewise.
12565         * lib/sys_utsname.in.h: Likewise.
12566         * lib/sys_wait.in.h: Likewise.
12567         * lib/sysexits.in.h: Likewise.
12568         * lib/wctype.in.h: Likewise.
12569
12570 2010-03-28  James Youngman  <jay@gnu.org>
12571
12572         save-cwd: don't leak a file descriptor when the caller execs.
12573         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
12574         saved file descriptor.
12575         * modules/save-cwd (Depends-on): Depend on cloexec.
12576
12577 2010-03-29  Bruno Haible  <bruno@clisp.org>
12578
12579         Remove vestiges of fts-lgpl module.
12580         * lib/fts_.h: Assume GNULIB_FTS is 1.
12581         * lib/fts.c: Likewise.
12582         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
12583
12584 2010-03-28  Bruno Haible  <bruno@clisp.org>
12585
12586         Fix definition of tests witness macro.
12587         * gnulib-tool (func_import): Fix definition of witness macro.
12588
12589 2010-03-28  Bruno Haible  <bruno@clisp.org>
12590
12591         Fix ioctl's protoype on glibc systems.
12592         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
12593         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
12594         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
12595         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
12596         signature. If not, arrange to replace the ioctl function.
12597         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12598         REPLACE_IOCTL.
12599         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
12600         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
12601         Reported by Ludovic Courtès <ludo@gnu.org>.
12602
12603 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
12604
12605         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
12606         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
12607         made it so grep -r --include=GLOB* ... did not work.
12608
12609 2010-03-26  Jim Meyering  <meyering@redhat.com>
12610             Eric Blake  <eblake@redhat.com>
12611
12612         maint.mk: prohibit use of test's -o and -a operators
12613         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
12614
12615 2010-03-28  Bruno Haible  <bruno@clisp.org>
12616
12617         Remove unused GNULIB_XYZ macro definitions.
12618         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
12619         invocation.
12620
12621 2010-03-28  Bruno Haible  <bruno@clisp.org>
12622
12623         Mark privileged tests modules.
12624         * modules/idpriv-drop-tests (Status): New section.
12625         * modules/idpriv-droptemp-tests (Status): New section.
12626
12627 2010-03-28  Bruno Haible  <bruno@clisp.org>
12628
12629         Split C++ tests into separate tests modules.
12630         * modules/dirent-c++-tests: New file, extracted from
12631         modules/dirent-tests.
12632         * modules/dirent-tests: Depend on it.
12633         * modules/fcntl-h-c++-tests: New file, extracted from
12634         modules/fcntl-h-tests.
12635         * modules/fcntl-h-tests: Depend on it.
12636         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
12637         * modules/glob-tests: Depend on it.
12638         * modules/iconv-h-c++-tests: New file, extracted from
12639         modules/iconv-h-tests.
12640         * modules/iconv-h-tests: Depend on it.
12641         * modules/langinfo-c++-tests: New file, extracted from
12642         modules/langinfo-tests.
12643         * modules/langinfo-tests: Depend on it.
12644         * modules/locale-c++-tests: New file, extracted from
12645         modules/locale-tests.
12646         * modules/locale-tests: Depend on it.
12647         * modules/math-c++-tests: New file, extracted from modules/math-tests.
12648         * modules/math-tests: Depend on it.
12649         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
12650         * modules/pty-tests: Depend on it.
12651         * modules/search-c++-tests: New file, extracted from
12652         modules/search-tests.
12653         * modules/search-tests: Depend on it.
12654         * modules/signal-c++-tests: New file, extracted from
12655         modules/signal-tests.
12656         * modules/signal-tests: Depend on it.
12657         * modules/spawn-c++-tests: New file, extracted from
12658         modules/spawn-tests.
12659         * modules/spawn-tests: Depend on it.
12660         * modules/stdio-c++-tests: New file, extracted from
12661         modules/stdio-tests.
12662         * modules/stdio-tests: Depend on it.
12663         * modules/stdlib-c++-tests: New file, extracted from
12664         modules/stdlib-tests.
12665         * modules/stdlib-tests: Depend on it.
12666         * modules/string-c++-tests: New file, extracted from
12667         modules/string-tests.
12668         * modules/string-tests: Depend on it.
12669         * modules/sys_ioctl-c++-tests: New file, extracted from
12670         modules/sys_ioctl-tests.
12671         * modules/sys_ioctl-tests: Depend on it.
12672         * modules/sys_select-c++-tests: New file, extracted from
12673         modules/sys_select-tests.
12674         * modules/sys_select-tests: Depend on it.
12675         * modules/sys_socket-c++-tests: New file, extracted from
12676         modules/sys_socket-tests.
12677         * modules/sys_socket-tests: Depend on it.
12678         * modules/sys_stat-c++-tests: New file, extracted from
12679         modules/sys_stat-tests.
12680         * modules/sys_stat-tests: Depend on it.
12681         * modules/sys_time-c++-tests: New file, extracted from
12682         modules/sys_time-tests.
12683         * modules/sys_time-tests: Depend on it.
12684         * modules/time-c++-tests: New file, extracted from modules/time-tests.
12685         * modules/time-tests: Depend on it.
12686         * modules/unistd-c++-tests: New file, extracted from
12687         modules/unistd-tests.
12688         * modules/unistd-tests: Depend on it.
12689         * modules/wchar-c++-tests: New file, extracted from
12690         modules/wchar-tests.
12691         * modules/wchar-tests: Depend on it.
12692         * modules/wctype-c++-tests: New file, extracted from
12693         modules/wctype-tests.
12694         * modules/wctype-tests: Depend on it.
12695         Reported by Simon Josefsson.
12696
12697 2010-03-28  Bruno Haible  <bruno@clisp.org>
12698
12699         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
12700         * gnulib-tool (func_exists_module): New function, extracted from
12701         func_verify_module.
12702         (func_verify_module): Use it.
12703         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
12704         'foo' only if 'foo' exists.
12705         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
12706         module.
12707
12708 2010-03-28  Bruno Haible  <bruno@clisp.org>
12709
12710         gnulib-tool: Add support for special categories of tests.
12711         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
12712         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
12713         (func_usage): Document them.
12714         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
12715         inc_unportable_tests, inc_all_tests): New variables.
12716         (func_acceptable): Consider these variables.
12717         (func_modules_transitive_closure): Make it work when the 'Status' field
12718         consists of multiple words.
12719         (func_import): Store and restore the values of inc_cxx_tests,
12720         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
12721         inc_all_tests in gnulib-comp.m4.
12722         (func_create_testdir): Set inc_all_tests to true.
12723         * doc/gnulib.texi (Extra tests modules): New section.
12724         Suggested by Jim Meyering.
12725
12726 2010-03-28  Bruno Haible  <bruno@clisp.org>
12727
12728         ansi-c++-opt: Allow turning off the C++ build by default.
12729         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
12730         gl_CXX_CHOICE_DEFAULT_NO is defined.
12731         Requested by Eric Blake.
12732
12733 2010-03-28  Bruno Haible  <bruno@clisp.org>
12734
12735         unistd: Avoid #define replacements in C++ mode.
12736         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12737         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12738         setsockopt, shutdown, select): In C++, attach a warning to the function
12739         if possible, rather than #defining the symbol to a dysfunctional alias.
12740         Reported by John W. Eaton <jwe@gnu.org>.
12741
12742 2010-03-28  Bruno Haible  <bruno@clisp.org>
12743
12744         Fix link errors on mingw.
12745         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
12746         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
12747         $(LIBSOCKET).
12748         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
12749         $(LIBSOCKET).
12750
12751 2010-03-28  Bruno Haible  <bruno@clisp.org>
12752             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12753
12754         lib-ignore: Determine different options for different compilers.
12755         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
12756         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
12757         Add comments.
12758         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
12759         * NEWS: Mention the change.
12760
12761 2010-03-27  Bruno Haible  <bruno@clisp.org>
12762
12763         Remove unused GNULIB_XYZ macro definitions.
12764         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
12765         * modules/fseek (configure.ac): Likewise.
12766         * modules/ioctl (configure.ac): Likewise.
12767         * modules/open (configure.ac): Likewise.
12768         * modules/stdlib-safer (configure.ac): Likewise.
12769
12770 2010-03-27  Bruno Haible  <bruno@clisp.org>
12771
12772         Add a remark about certain modules.
12773         * modules/malloc (Comment): New section.
12774         * modules/realloc (Comment): Likewise.
12775         * modules/sigpipe (Comment): Likewise.
12776
12777 2010-03-27  Bruno Haible  <bruno@clisp.org>
12778
12779         Resolve conflict between the two kinds of module indicators.
12780         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
12781         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
12782         * modules/canonicalize (configure.ac): Invoke
12783         gl_MODULE_INDICATOR_FOR_TESTS.
12784         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
12785         GNULIB_XYZ.
12786         * tests/test-dirent-c++.cc: Likewise.
12787         * tests/test-dirent-safer.c: Likewise.
12788         * tests/test-dup2.c: Likewise.
12789         * tests/test-fchdir.c: Likewise.
12790         * tests/test-fcntl-h-c++.cc: Likewise.
12791         * tests/test-getopt.c: Likewise.
12792         * tests/test-getopt.h: Likewise.
12793         * tests/test-langinfo-c++.cc: Likewise.
12794         * tests/test-locale-c++.cc: Likewise.
12795         * tests/test-math-c++.cc: Likewise.
12796         * tests/test-pty-c++.cc: Likewise.
12797         * tests/test-search-c++.cc: Likewise.
12798         * tests/test-signal-c++.cc: Likewise.
12799         * tests/test-spawn-c++.cc: Likewise.
12800         * tests/test-stdio-c++.cc: Likewise.
12801         * tests/test-stdlib-c++.cc: Likewise.
12802         * tests/test-string-c++.cc: Likewise.
12803         * tests/test-sys_ioctl-c++.cc: Likewise.
12804         * tests/test-sys_select-c++.cc: Likewise.
12805         * tests/test-sys_socket-c++.cc: Likewise.
12806         * tests/test-sys_stat-c++.cc: Likewise.
12807         * tests/test-sys_time-c++.cc: Likewise.
12808         * tests/test-time-c++.cc: Likewise.
12809         * tests/test-unistd-c++.cc: Likewise.
12810         * tests/test-wchar-c++.cc: Likewise.
12811         * tests/uninorm/test-u8-nfc.c: Likewise.
12812         * tests/uninorm/test-u8-nfd.c: Likewise.
12813         * tests/uninorm/test-u8-nfkc.c: Likewise.
12814         * tests/uninorm/test-u8-nfkd.c: Likewise.
12815         * tests/uninorm/test-u16-nfc.c: Likewise.
12816         * tests/uninorm/test-u16-nfd.c: Likewise.
12817         * tests/uninorm/test-u16-nfkc.c: Likewise.
12818         * tests/uninorm/test-u16-nfkd.c: Likewise.
12819         * tests/uninorm/test-u32-nfc.c: Likewise.
12820         * tests/uninorm/test-u32-nfc-big.c: Likewise.
12821         * tests/uninorm/test-u32-nfd.c: Likewise.
12822         * tests/uninorm/test-u32-nfd-big.c: Likewise.
12823         * tests/uninorm/test-u32-nfkc.c: Likewise.
12824         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
12825         * tests/uninorm/test-u32-nfkd.c: Likewise.
12826         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
12827         * tests/uninorm/test-u32-normalize-big.c: Likewise.
12828
12829 2010-03-27  Bruno Haible  <bruno@clisp.org>
12830
12831         Distinguish two kinds of module indicators.
12832         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
12833         gl_MODULE_INDICATOR.
12834         (gl_MODULE_INDICATOR): New macro.
12835         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
12836         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
12837         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
12838         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
12839         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
12840         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
12841         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
12842         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
12843         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
12844         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
12845         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
12846         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
12847         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
12848         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
12849         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
12850         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
12851         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
12852         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
12853         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
12854         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
12855         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
12856         * modules/cloexec (configure.ac): Likewise.
12857         * modules/getopt-gnu (configure.ac): Likewise.
12858         * modules/uninorm/u8-normalize (configure.ac): Likewise.
12859         * modules/uninorm/u16-normalize (configure.ac): Likewise.
12860         * modules/uninorm/u32-normalize (configure.ac): Likewise.
12861         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
12862
12863 2010-03-27  Bruno Haible  <bruno@clisp.org>
12864
12865         New module description field 'Comment'.
12866         * gnulib-tool: New option --extract-comment.
12867         (func_usage): Document it.
12868         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
12869         (func_get_comment): New function.
12870         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
12871
12872 2010-03-27  Bruno Haible  <bruno@clisp.org>
12873
12874         Addendum to 2010-02-07 commit.
12875         * gnulib-tool (func_usage): Document --extract-applicability option.
12876
12877 2010-03-27  Bruno Haible  <bruno@clisp.org>
12878
12879         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
12880         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
12881         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
12882         rather than link errors.
12883
12884 2010-03-27  Bruno Haible  <bruno@clisp.org>
12885
12886         Avoid side effects from tests-related modules on the compilation of lib.
12887         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
12888         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
12889         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
12890         parameter. Emit into AM_CPPFLAGS a definition of the designated C
12891         macro.
12892         (func_import): Define a witness macro. Assign it a value that depends
12893         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
12894         tests-related modules.
12895         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
12896         Reported by Jim Meyering.
12897
12898 2010-03-27  Bruno Haible  <bruno@clisp.org>
12899
12900         Factorize common .m4 code.
12901         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
12902         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
12903         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
12904         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
12905         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
12906         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
12907         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
12908         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
12909         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
12910         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
12911         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
12912         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
12913         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
12914         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
12915         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
12916         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
12917         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
12918         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
12919         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
12920         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
12921         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
12922         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
12923         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
12924         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
12925         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
12926         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
12927         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
12928         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
12929         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
12930         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
12931         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
12932         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
12933
12934 2010-03-27  Bruno Haible  <bruno@clisp.org>
12935
12936         Fix a compilation error on Cygwin with g++ >= 4.3.
12937         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
12938         if it is undefined or if we alias it to chmod.
12939         (lstat): Don't warn about the use of this function if it is undefined
12940         or if we alias it to stat.
12941         Reported by Simon Josefsson.
12942
12943 2010-03-27  Bruno Haible  <bruno@clisp.org>
12944
12945         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
12946         * modules/getlogin (configure.ac): Update.
12947
12948         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
12949         * modules/getlogin_r (configure.ac): Update.
12950
12951         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
12952         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
12953         * modules/inet_ntop (configure.ac): Update.
12954
12955         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
12956         * modules/inet_pton (configure.ac): Update.
12957
12958         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
12959         * modules/mbslen (configure.ac): Update.
12960
12961         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
12962         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
12963         * modules/forkpty (configure.ac): Update.
12964         * modules/openpty (configure.ac): Update.
12965
12966 2010-03-26  Simon Josefsson  <simon@josefsson.org>
12967
12968         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
12969         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
12970
12971 2010-03-25  Eric Blake  <eblake@redhat.com>
12972
12973         maint: use pragma consistently across replacement headers
12974         * lib/ctype.in.h (system_header): Hoist for consistent placement.
12975         * lib/dirent.in.h (system_header): Likewise.
12976         * lib/errno.in.h (system_header): Likewise.
12977         * lib/float.in.h (system_header): Likewise.
12978         * lib/getopt.in.h (system_header): Likewise.
12979         * lib/iconv.in.h (system_header): Likewise.
12980         * lib/inttypes.in.h (system_header): Likewise.
12981         * lib/langinfo.in.h (system_header): Likewise.
12982         * lib/locale.in.h (system_header): Likewise.
12983         * lib/math.in.h (system_header): Likewise.
12984         * lib/netdb.in.h (system_header): Likewise.
12985         * lib/netinet_in.in.h (system_header): Likewise.
12986         * lib/pty.in.h (system_header): Likewise.
12987         * lib/sched.in.h (system_header): Likewise.
12988         * lib/se-selinux.in.h (system_header): Likewise.
12989         * lib/search.in.h (system_header): Likewise.
12990         * lib/spawn.in.h (system_header): Likewise.
12991         * lib/stdarg.in.h (system_header): Likewise.
12992         * lib/stdint.in.h (system_header): Likewise.
12993         * lib/string.in.h (system_header): Likewise.
12994         * lib/strings.in.h (system_header): Likewise.
12995         * lib/sys_file.in.h (system_header): Likewise.
12996         * lib/sys_ioctl.in.h (system_header): Likewise.
12997         * lib/sys_socket.in.h (system_header): Likewise.
12998         * lib/sys_times.in.h (system_header): Likewise.
12999         * lib/sys_utsname.in.h (system_header): Likewise.
13000         * lib/sys_wait.in.h (system_header): Likewise.
13001         * lib/sysexits.in.h (system_header): Likewise.
13002         * lib/unistd.in.h (system_header): Likewise.
13003         * lib/wctype.in.h (system_header): Likewise.
13004
13005         arpa/inet: fix mingw compilation warning
13006         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
13007         Reported by Matthew Bolte.
13008
13009 2010-03-25  Bruno Haible  <bruno@clisp.org>
13010
13011         Avoid collision between gnulib wrapper and libintl wrapper.
13012         * lib/printf.c (printf): Don't define if a printf wrapper is already
13013         defined in intl/printf.c.
13014         Reported by Michel Boaventura <michel@michelboaventura.com>.
13015
13016 2010-03-25  Bruno Haible  <bruno@clisp.org>
13017
13018         Use ANSI C.
13019         * lib/readutmp.h (getutent): Provide ANSI C prototype.
13020
13021 2010-03-25  Bruno Haible  <bruno@clisp.org>
13022
13023         Minor formatting changes.
13024         * lib/acosl.c: Insert space before function argument list.
13025         * lib/argz.c: Likewise.
13026         * lib/asinl.c: Likewise.
13027         * lib/expl.c: Likewise.
13028         * lib/gen-uni-tables.c: Likewise.
13029         * lib/gettext.h: Likewise.
13030         * lib/glthread/lock.h: Likewise.
13031         * lib/tanl.c: Likewise.
13032         * lib/uniname/uniname.c: Likewise.
13033         * tests/test-idpriv-drop.c: Likewise.
13034         * tests/test-idpriv-droptemp.c: Likewise.
13035         * tests/test-lock.c: Likewise.
13036         * tests/test-tls.c: Likewise.
13037         * lib/argp-help.c: Insert space before function-like macro argument
13038         list.
13039         * lib/memcmp.c: Likewise.
13040         * tests/test-base64.c: Likewise.
13041         * lib/localename.c: Insert space before sizeof's argument list.
13042         * lib/safe-alloc.h: Likewise.
13043         * lib/file-set.h: Insert space before macro argument list.
13044         * tests/test-argp.c: Likewise.
13045         * lib/argp-namefrob.h: Insert space before function parameter list.
13046         * lib/getaddrinfo.c: Likewise.
13047         * lib/netdb.in.h: Likewise.
13048         * lib/parse-duration.h: Likewise.
13049         * lib/parse-duration.c: Likewise.
13050         * lib/poll.c: Likewise.
13051         * lib/select.c: Likewise.
13052         * lib/trim.h: Likewise.
13053         * tests/test-usleep.c: Likewise.
13054         * lib/ldexpl.c: Insert space before function parameter list and before
13055         function argument list.
13056         * lib/logl.c: Likewise.
13057         * lib/sqrtl.c: Likewise.
13058         * lib/trim.c: Likewise.
13059         * lib/cosl.c: Use GNU style indentation. Insert space before function
13060         argument list.
13061         * lib/sinl.c: Likewise.
13062         * lib/tsearch.c: Insert space after 'for'.
13063         Reported by Jim Meyering.
13064
13065 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
13066
13067         * maint.mk (sc_Wundef_boolean): Check for the presence of the
13068         config header before grepping, as it's not present before
13069         autoreconf/configure are run.  Reported by Simon Josefsson.
13070
13071 2010-03-23  Bruno Haible  <bruno@clisp.org>
13072
13073         pt_chown: Make it work with automake < 1.11.
13074         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
13075         Reported by Simon Josefsson.
13076
13077 2010-03-23  Bruno Haible  <bruno@clisp.org>
13078
13079         pt_chown: Don't depend on GPLed modules.
13080         * lib/pt_chown.c: Don't include idpriv.h.
13081         (main): Don't drop privileges.
13082         * modules/pt_chown (Depends-on): Remove idpriv-drop.
13083         Reported by Simon Josefsson.
13084
13085 2010-03-24  Simon Josefsson  <simon@josefsson.org>
13086
13087         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
13088         suggestions from karl@freefriends.org (Karl Berry).
13089
13090 2010-03-22  Eric Blake  <eblake@redhat.com>
13091
13092         gethostname: further tweaks
13093         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
13094         are overriding gethostname.
13095         Suggested by Bruno Haible.
13096
13097 2010-03-21  Bruno Haible  <bruno@clisp.org>
13098
13099         Fix comments.
13100         * lib/forkpty.c (rpl_forkpty): Fix comment.
13101         * lib/openpty.c (rpl_openpty): Likewise.
13102         Reported by Eric Blake.
13103
13104 2010-03-22  Eric Blake  <eblake@redhat.com>
13105
13106         gethostname: fix build on mingw
13107         * lib/unistd.in.h (includes): Work around fact that mingw
13108         <winsock2.h> re-includes <unistd.h>, by avoiding any
13109         redeclarations if we are being included by <winsock2.h>.
13110         Reported by Matthias Bolte.
13111
13112 2010-03-21  Bruno Haible  <bruno@clisp.org>
13113
13114         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
13115         * lib/forkpty.c (forkpty): New replacement function, from glibc with
13116         modifications.
13117         * lib/pty.in.h (forkpty): Update declaration. Add comments.
13118         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
13119         provide the replacement.
13120         * modules/forkpty (Depends-on): Add openpty, login_tty.
13121         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
13122         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
13123         * doc/glibc-functions/forkpty.texi: More supported platforms.
13124         * config/srclist.txt: Add forkpty.c (commented).
13125
13126 2010-03-21  Bruno Haible  <bruno@clisp.org>
13127
13128         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
13129         (Makefile.am): Verify that PTY_LIB is defined.
13130
13131         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
13132
13133 2010-03-21  Bruno Haible  <bruno@clisp.org>
13134
13135         Tests for module 'login_tty'.
13136         * modules/login_tty-tests: New file.
13137         * tests/test-login_tty.c: New file.
13138
13139         New module 'login_tty'.
13140         * lib/login_tty.c: New file.
13141         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
13142         * modules/login_tty: New file.
13143         * doc/glibc-functions/login_tty.texi: Mention the new module.
13144
13145 2010-03-21  Bruno Haible  <bruno@clisp.org>
13146
13147         login_tty: Documentation.
13148         * doc/glibc-functions/login_tty.texi: New file.
13149         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
13150
13151 2010-03-21  Bruno Haible  <bruno@clisp.org>
13152
13153         pty: Consistent macro naming.
13154         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
13155         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
13156         * modules/pty (configure.ac): Update.
13157
13158 2010-03-21  Bruno Haible  <bruno@clisp.org>
13159
13160         Tests for openpty: Make stricter.
13161         * tests/test-openpty.c (main): Add test of canonical processing and
13162         erase.
13163         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
13164
13165         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
13166         * lib/openpty.c (openpty): New replacement function.
13167         * lib/pty.in.h: Include <termios.h>.
13168         (openpty): Update declaration. Add comments.
13169         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
13170         is not declared, arrange to provide the replacement. Check for _getpty
13171         and posix_openpt.
13172         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
13173         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
13174         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
13175         * modules/pty-tests (test_pty_c___LDADD): New variable.
13176         * doc/glibc-functions/openpty.texi: More supported platforms.
13177
13178 2010-03-21  Bruno Haible  <bruno@clisp.org>
13179
13180         setenv: Tweaks.
13181         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
13182         the test program.
13183         * doc/posix-functions/setenv.texi: Update platforms list.
13184
13185 2010-03-21  Bruno Haible  <bruno@clisp.org>
13186
13187         New module 'unlockpt'.
13188         * lib/unlockpt.c: New file, from glibc with modifications.
13189         * m4/unlockpt.m4: New file.
13190         * modules/unlockpt: New file.
13191         * lib/stdlib.in.h (unlockpt): New declaration.
13192         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
13193         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
13194         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
13195         HAVE_UNLOCKPT.
13196         * doc/posix-functions/unlockpt.texi: Mention the new module.
13197         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
13198         * config/srclist.txt: Add unlockpt.c (commented).
13199
13200 2010-03-21  Jim Meyering  <meyering@redhat.com>
13201
13202         maint.mk: prohibit inclusion of "intprops.h" without use
13203         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
13204
13205 2010-03-21  Bruno Haible  <bruno@clisp.org>
13206
13207         New module 'grantpt'.
13208         * lib/grantpt.c: New file, from glibc with modifications.
13209         * m4/grantpt.m4: New file.
13210         * modules/grantpt: New file.
13211         * lib/stdlib.in.h (grantpt): New declaration.
13212         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
13213         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
13214         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
13215         HAVE_GRANTPT.
13216         * doc/posix-functions/grantpt.texi: Mention the new module.
13217         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
13218         * config/srclist.txt: Add grantpt.c (commented).
13219
13220 2010-03-21  Bruno Haible  <bruno@clisp.org>
13221
13222         New module 'pt_chown'.
13223         * lib/pt_chown.c: New file, from glibc with modifications.
13224         * lib/pty-private.h: New file, from glibc with modifications.
13225         * modules/pt_chown: New file.
13226         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
13227
13228 2010-03-21  Bruno Haible  <bruno@clisp.org>
13229
13230         Tests for module 'ptsname'.
13231         * modules/ptsname-tests: New file.
13232         * tests/test-ptsname.c: New file.
13233
13234         New module 'ptsname'.
13235         * lib/ptsname.c: New file, from glibc with modifications.
13236         * m4/ptsname.m4: New file.
13237         * modules/ptsname: New file.
13238         * lib/stdlib.in.h (ptsname): New declaration.
13239         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
13240         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
13241         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
13242         HAVE_PTSNAME.
13243         * doc/posix-functions/ptsname.texi: Mention the new module.
13244         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
13245         * config/srclist.txt: Add ptsname.c (commented).
13246
13247 2010-03-21  Bruno Haible  <bruno@clisp.org>
13248
13249         Tests for module 'ttyname_r'.
13250         * modules/ttyname_r-tests: New file.
13251         * tests/test-ttyname_r.c: New file.
13252
13253         New module 'ttyname_r'.
13254         * lib/ttyname_r.c: New file.
13255         * m4/ttyname_r.m4: New file.
13256         * modules/ttyname_r: New file.
13257         * lib/unistd.in.h (ttyname_r): New declaration.
13258         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
13259         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
13260         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
13261         HAVE_TTYNAME_R.
13262         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
13263         * doc/posix-functions/ttyname_r.texi: Mention the new module.
13264
13265 2010-03-20  Bruno Haible  <bruno@clisp.org>
13266
13267         signal: Undefine macro definitions in C++ mode.
13268         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
13269         sigfillset): Undefine macro definitions from the system header in C++
13270         mode.
13271         Reported by John W. Eaton <jwe@gnu.org>.
13272
13273 2010-03-20  Bruno Haible  <bruno@clisp.org>
13274
13275         Ensure no #include statements inside extern "C" { ... }.
13276         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
13277         contain #include statements.
13278         * lib/time.in.h: Likewise.
13279
13280 2010-03-20  Bruno Haible  <bruno@clisp.org>
13281
13282         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
13283         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
13284         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
13285         Reported by John W. Eaton <jwe@gnu.org>.
13286
13287 2010-03-20  Bruno Haible  <bruno@clisp.org>
13288
13289         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
13290         Reported by Jim Meyering.
13291
13292 2010-03-20  Bruno Haible  <bruno@clisp.org>
13293
13294         pipe: Set errno upon failure.
13295         * lib/pipe.h: Specify that when -1 is returned, errno is set.
13296         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
13297         errno value in error message.
13298
13299 2010-03-20  Bruno Haible  <bruno@clisp.org>
13300             Jim Meyering  <meyering@redhat.com>
13301
13302         lchown: Avoid "unused variable" warning.
13303         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
13304
13305 2010-03-20  Bruno Haible  <bruno@clisp.org>
13306
13307         Work around unlink() bug on MacOS X 10.5.6.
13308         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
13309         attempting to unlink a parent directory.
13310         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
13311         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
13312         activate for the replacement function.
13313         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
13314
13315 2010-03-20  Bruno Haible  <bruno@clisp.org>
13316
13317         Fix link errors on Solaris 8.
13318         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
13319         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
13320
13321 2010-03-19  Jim Meyering  <meyering@redhat.com>
13322
13323         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
13324         The _LIBC implementation of build_range_exp correctly honors the
13325         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
13326         However, the non-_LIBC implementation would ignore that syntax-bit
13327         flag and return REG_ERANGE unconditionally.
13328         This change makes it honor that flag.
13329         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
13330         Make two pointer parameters "const".
13331         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
13332         (parse_bracket_exp): Update caller.
13333
13334         regex.m4: correct the reversed range endpoint ([b-a]) test
13335         * m4/regex.m4: When requiring that [b-a] evoke failure,
13336         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
13337         test pass once again for x86-based systems.
13338
13339 2010-03-19  Bruno Haible  <bruno@clisp.org>
13340
13341         scandir: Fix link error on Solaris 8.
13342         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
13343         macros.
13344
13345 2010-03-19  Bruno Haible  <bruno@clisp.org>
13346
13347         getusershell: Fix documentation.
13348         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
13349         module.
13350         * doc/glibc-functions/setusershell.texi: Likewise.
13351
13352         getusershell: Provide declaration, missing on Solaris 9.
13353         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
13354         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
13355         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
13356         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
13357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13358         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
13359         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
13360         HAVE_GETUSERSHELL.
13361         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
13362
13363 2010-03-19  Bruno Haible  <bruno@clisp.org>
13364
13365         wctype: Provide iswblank function.
13366         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
13367         exists and is fine.
13368         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
13369         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
13370         * tests/test-wctype.c (main): Re-enable the iswblank tests.
13371         * doc/posix-functions/iswblank.texi: Update.
13372
13373 2010-03-19  Bruno Haible  <bruno@clisp.org>
13374
13375         Tests of module 'pty' in C++ mode.
13376         * modules/pty-tests: New file.
13377         * tests/test-pty-c++.cc: New file.
13378         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
13379
13380 2010-03-19  Eric Blake  <eblake@redhat.com>
13381
13382         logb: fix documentation
13383         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
13384         1.5 declaration bug.
13385
13386         forkpty, openpty: prefer glibc's const-safe prototype
13387         * lib/forkpty.c (rpl_forkpty): New file.
13388         * lib/openpty.c (rpl_openpty): Likewise.
13389         * modules/forkpty (Files): Distribute it.
13390         * modules/openpty (Files): Likewise.
13391         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
13392         check...
13393         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
13394         replacement for for non-const BSD signature.
13395         * modules/pty (Makefile.am): Substitute witnesses.
13396         * lib/pty.in.h (forkpty, openpty): Declare replacements.
13397         * tests/test-forkpty.c: Update signature check.
13398         * tests/test-openpty.c: Likewise.
13399         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
13400         * doc/glibc-functions/openpty.texi (openpty): Likewise.
13401
13402         forkpty, openpty: split functions into new modules
13403         * modules/pty (Makefile.am): Substitute new witnesses.
13404         (Libraries): Move library detection...
13405         * modules/forkpty: ...into new module.
13406         * modules/openpty: Another new module.
13407         * modules/pty-tests: Rename and split...
13408         * modules/forkpty-tests: ...to this...
13409         * modules/openpty-tests: ...and this.
13410         * tests/test-pty.c: Rename and split...
13411         * tests/test-forkpty.c: ...to this...
13412         * tests/test-openpty.c: ...and this.
13413         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
13414         (gl_PTY): Split library searching...
13415         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
13416         (gl_FORKPTY, gl_OPENPTY): New macros.
13417         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
13418         * NEWS: Mention the split.
13419         * MODULES.html.sh (Misc): Document the modules.
13420         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
13421         * doc/glibc-functions/openpty.texi (openpty): Likewise.
13422
13423         pty: improve replacement header
13424         * lib/pty.in.h: New file.
13425         * modules/pty (Files): Ship it.
13426         (Makefile.am): Always build replacement.
13427         * m4/pty.m4: Rename...
13428         * m4/pty_h.m4: ...to this.
13429         (gl_PTY): Modernize setting of witness macros; update check of
13430         forkpty to take proper advantage of cache.
13431         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
13432
13433         getopt: avoid compiler warning
13434         * lib/getopt.c (attribute_hidden): Remove unused macro.
13435
13436 2010-03-18  Bruno Haible  <bruno@clisp.org>
13437
13438         Fix link errors on Solaris 8.
13439         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
13440         * modules/search-tests (test_search_c___LDADD): Likewise.
13441         * modules/signal-tests (test_signal_c___LDADD): Likewise.
13442         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
13443         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
13444         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
13445         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
13446         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
13447         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
13448
13449 2010-03-18  Bruno Haible  <bruno@clisp.org>
13450
13451         Fix bug introduced on 2010-03-14.
13452         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
13453         (gl_SPAWN_H): Require it.
13454         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
13455         Reported by Simon Josefsson.
13456
13457 2010-03-18  Bruno Haible  <bruno@clisp.org>
13458
13459         Fix typo introduced on 2009-12-31.
13460         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
13461         posix_spawn_file_actions_adddup2.
13462
13463 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
13464         and Eric Blake  <eblake@redhat.com>
13465
13466         test-vc-list-files-git: make more robust
13467         * tests/test-vc-list-files-git.sh: Unset problematic environment
13468         variables.  Chain commands together.
13469
13470 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
13471
13472         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
13473         `AC_CHECK_DECL' invocation.
13474
13475 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
13476
13477         * lib/inttostr.c (inttostr): Make sure the invocation of verify
13478         appears before executable statements. Suggested by Petr Sumbera
13479         <Petr.Sumbera@Sun.COM>.
13480
13481 2010-03-14  Bruno Haible  <bruno@clisp.org>
13482
13483         * tests/test-flock.c (test_exclusive): Comment out a test that causes
13484         portability problems. Instead use a simpler test.
13485         (main): Check that invalid arguments are rejected only on Linux.
13486
13487 2010-03-14  Bruno Haible  <bruno@clisp.org>
13488
13489         Fix bug introduced on 2009-12-31.
13490         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
13491         gl_PREREQ_SYS_H_WINSOCK2 always.
13492         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
13493         SYS_SOCKET_H variable.
13494         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
13495         Update comments.
13496         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
13497         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
13498         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13499         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13500         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13501
13502 2010-03-14  Bruno Haible  <bruno@clisp.org>
13503
13504         Fix values returned by sinl, cosl.
13505         * lib/trigl.h: Add specification comments.
13506         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
13507         that combines the values from the precomputed table with the values of
13508         the Chebyshev polynomials.
13509
13510 2010-03-14  Bruno Haible  <bruno@clisp.org>
13511
13512         Fix compilation error when modules 'posix_spawn[p]' are not used.
13513         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
13514         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
13515
13516 2010-03-14  Bruno Haible  <bruno@clisp.org>
13517
13518         Fix compilation error on mingw when module 'time_r' is not used.
13519         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
13520         is 1.
13521         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
13522         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
13523         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
13524         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
13525
13526 2010-03-14  Bruno Haible  <bruno@clisp.org>
13527
13528         Fix compilation error with Sun C.
13529         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
13530         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
13531         instead of GCC specific ULONG_LONG_MAX.
13532         * lib/xstrtoll.c: Likewise.
13533         * lib/xstrtoull.c: Likewise.
13534
13535 2010-03-13  Bruno Haible  <bruno@clisp.org>
13536
13537         Allow the user to disable C++ code and tests.
13538         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
13539         (gl_PROG_ANSI_CXX): Require it.
13540
13541 2010-03-13  Bruno Haible  <bruno@clisp.org>
13542
13543         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
13544         cases.
13545
13546 2010-03-13  Bruno Haible  <bruno@clisp.org>
13547
13548         Test that gnulib does not break the standard C++ headers.
13549         * tests/test-locale-c++2.cc: New file.
13550         * modules/locale-tests (Files): Add it.
13551         (Makefile.am): Compile it for test-locale-c++.
13552         * tests/test-math-c++2.cc: New file.
13553         * modules/math-tests (Files): Add it.
13554         (Makefile.am): Compile it for test-math-c++.
13555         * tests/test-signal-c++2.cc: New file.
13556         * modules/signal-tests (Files): Add it.
13557         (Makefile.am): Compile it for test-signal-c++.
13558         * tests/test-stdio-c++2.cc: New file.
13559         * modules/stdio-tests (Files): Add it.
13560         (Makefile.am): Compile it for test-stdio-c++.
13561         * tests/test-stdlib-c++2.cc: New file.
13562         * modules/stdlib-tests (Files): Add it.
13563         (Makefile.am): Compile it for test-stdlib-c++.
13564         * tests/test-string-c++2.cc: New file.
13565         * modules/string-tests (Files): Add it.
13566         (Makefile.am): Compile it for test-string-c++.
13567         * tests/test-time-c++2.cc: New file.
13568         * modules/time-tests (Files): Add it.
13569         (Makefile.am): Compile it for test-time-c++.
13570         Reported by John W. Eaton <jwe@gnu.org>.
13571
13572 2010-03-13  Bruno Haible  <bruno@clisp.org>
13573
13574         * gnulib-tool (func_usage): Clarify which options are available for
13575         --create-testdir and --create-megatestdir.
13576
13577 2010-03-13  Bruno Haible  <bruno@clisp.org>
13578
13579         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
13580         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
13581         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
13582         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
13583         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
13584         when appropriate.
13585         Reported by Jim Meyering.
13586
13587 2010-03-12  Simon Josefsson  <simon@josefsson.org>
13588
13589         * gnulib-tool (func_import): Explain origin of code.
13590
13591 2010-03-12  Bruno Haible  <bruno@clisp.org>
13592
13593         Fix problem with automake's definition of CXXLINK.
13594         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
13595         Reported by Simon Josefsson and Ludovic Courtès.
13596
13597 2010-03-12  Bruno Haible  <bruno@clisp.org>
13598
13599         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
13600         stable releases.
13601
13602 2010-03-11  Bruno Haible  <bruno@clisp.org>
13603
13604         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
13605         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
13606         whether the system provides one variant or multiple variants of the
13607         function.
13608         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
13609         C++ compilers.
13610         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
13611         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
13612         Reported by Jim Meyering.
13613
13614 2010-03-09  Simon Josefsson  <simon@josefsson.org>
13615
13616         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
13617
13618 2010-03-08  Bruno Haible  <bruno@clisp.org>
13619
13620         gnulib-tool: Add support for --libtool in --create-testdir.
13621         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
13622         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
13623
13624 2010-03-08  Eric Blake  <eblake@redhat.com>
13625
13626         gnulib-tool.texi: mention possibility of git submodule
13627         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
13628         submodules.
13629         * doc/.gitignore: Ignore another generated file.
13630
13631 2010-03-08  Karl Berry  <karl@gnu.org>
13632
13633         * doc/gnulib-tool.texi (VCS Issues): Mention third option
13634         of committing gnulib files while skipping others.
13635
13636 2010-03-07  Bruno Haible  <bruno@clisp.org>
13637
13638         Tests of module 'wctype' in C++ mode.
13639         * tests/test-wctype-c++.cc: New file.
13640         * modules/wctype-tests (Files): Add it and tests/signature.h.
13641         (Depends-on): Add ansi-c++-opt.
13642         (Makefile.am): Arrange to compile and run test-wctype-c++.
13643
13644         Tests of module 'wchar' in C++ mode.
13645         * tests/test-wchar-c++.cc: New file.
13646         * modules/wchar-tests (Files): Add it and tests/signature.h.
13647         (Depends-on): Add ansi-c++-opt.
13648         (Makefile.am): Arrange to compile and run test-wchar-c++.
13649         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
13650         gl_MODULE_INDICATOR.
13651
13652         Tests of module 'unistd' in C++ mode.
13653         * tests/test-unistd-c++.cc: New file.
13654         * modules/unistd-tests (Files): Add it and tests/signature.h.
13655         (Depends-on): Add ansi-c++-opt.
13656         (Makefile.am): Arrange to compile and run test-unistd-c++.
13657         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
13658         gl_MODULE_INDICATOR.
13659
13660         Tests of module 'time' in C++ mode.
13661         * tests/test-time-c++.cc: New file.
13662         * modules/time-tests (Files): Add it and tests/signature.h.
13663         (Depends-on): Add ansi-c++-opt.
13664         (Makefile.am): Arrange to compile and run test-time-c++.
13665         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
13666
13667         Tests of module 'sys_time' in C++ mode.
13668         * tests/test-sys_time-c++.cc: New file.
13669         * modules/sys_time-tests (Files): Add it and tests/signature.h.
13670         (Depends-on): Add ansi-c++-opt.
13671         (Makefile.am): Arrange to compile and run test-sys_time-c++.
13672         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
13673         gl_MODULE_INDICATOR.
13674
13675         Tests of module 'sys_stat' in C++ mode.
13676         * tests/test-sys_stat-c++.cc: New file.
13677         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
13678         (Depends-on): Add ansi-c++-opt.
13679         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
13680         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
13681         gl_MODULE_INDICATOR.
13682
13683         Tests of module 'sys_socket' in C++ mode.
13684         * tests/test-sys_socket-c++.cc: New file.
13685         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
13686         (Depends-on): Add ansi-c++-opt.
13687         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
13688         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
13689         gl_MODULE_INDICATOR.
13690
13691         Tests of module 'sys_select' in C++ mode.
13692         * tests/test-sys_select-c++.cc: New file.
13693         * modules/sys_select-tests (Files): Add it and tests/signature.h.
13694         (Depends-on): Add ansi-c++-opt.
13695         (Makefile.am): Arrange to compile and run test-sys_select-c++.
13696         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
13697         gl_MODULE_INDICATOR.
13698
13699         Tests of module 'sys_ioctl' in C++ mode.
13700         * tests/test-sys_ioctl-c++.cc: New file.
13701         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
13702         (Depends-on): Add ansi-c++-opt.
13703         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
13704         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
13705         gl_MODULE_INDICATOR.
13706
13707         Tests of module 'string' in C++ mode.
13708         * tests/test-string-c++.cc: New file.
13709         * modules/string-tests (Files): Add it and tests/signature.h.
13710         (Depends-on): Add ansi-c++-opt.
13711         (Makefile.am): Arrange to compile and run test-string-c++.
13712         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
13713         gl_MODULE_INDICATOR.
13714
13715         Tests of module 'stdlib' in C++ mode.
13716         * tests/test-stdlib-c++.cc: New file.
13717         * modules/stdlib-tests (Files): Add it and tests/signature.h.
13718         (Depends-on): Add ansi-c++-opt.
13719         (Makefile.am): Arrange to compile and run test-stdlib-c++.
13720         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
13721         gl_MODULE_INDICATOR.
13722
13723         Tests of module 'stdio' in C++ mode.
13724         * tests/test-stdio-c++.cc: New file.
13725         * modules/stdio-tests (Files): Add it and tests/signature.h.
13726         (Depends-on): Add ansi-c++-opt.
13727         (Makefile.am): Arrange to compile and run test-stdio-c++.
13728         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
13729         gl_MODULE_INDICATOR.
13730
13731         Tests of module 'spawn' in C++ mode.
13732         * tests/test-spawn-c++.cc: New file.
13733         * modules/spawn-tests (Files): Add it and tests/signature.h.
13734         (Depends-on): Add ansi-c++-opt.
13735         (Makefile.am): Arrange to compile and run test-spawn-c++.
13736         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
13737         gl_MODULE_INDICATOR.
13738
13739         Tests of module 'signal' in C++ mode.
13740         * tests/test-signal-c++.cc: New file.
13741         * modules/signal-tests (Files): Add it and tests/signature.h.
13742         (Depends-on): Add ansi-c++-opt.
13743         (Makefile.am): Arrange to compile and run test-signal-c++.
13744         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
13745         gl_MODULE_INDICATOR.
13746
13747         Tests of module 'search' in C++ mode.
13748         * tests/test-search-c++.cc: New file.
13749         * modules/search-tests (Files): Add it and tests/signature.h.
13750         (Depends-on): Add ansi-c++-opt.
13751         (Makefile.am): Arrange to compile and run test-search-c++.
13752         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
13753         gl_MODULE_INDICATOR.
13754
13755         Tests of module 'math' in C++ mode.
13756         * tests/test-math-c++.cc: New file.
13757         * modules/math-tests (Files): Add it and tests/signature.h.
13758         (Depends-on): Add ansi-c++-opt.
13759         (Makefile.am): Arrange to compile and run test-math-c++.
13760         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
13761
13762         Tests of module 'locale' in C++ mode.
13763         * tests/test-locale-c++.cc: New file.
13764         * modules/locale-tests (Files): Add it and tests/signature.h.
13765         (Depends-on): Add ansi-c++-opt.
13766         (Makefile.am): Arrange to compile and run test-locale-c++.
13767         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
13768         gl_MODULE_INDICATOR.
13769
13770         Tests of module 'langinfo' in C++ mode.
13771         * tests/test-langinfo-c++.cc: New file.
13772         * modules/langinfo-tests (Files): Add it and tests/signature.h.
13773         (Depends-on): Add ansi-c++-opt.
13774         (Makefile.am): Arrange to compile and run test-langinfo-c++.
13775         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
13776         gl_MODULE_INDICATOR.
13777
13778         Tests of module 'iconv-h' in C++ mode.
13779         * tests/test-iconv-h-c++.cc: New file.
13780         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
13781         (Depends-on): Add ansi-c++-opt.
13782         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
13783
13784         Tests of module 'glob' in C++ mode.
13785         * tests/test-glob-c++.cc: New file.
13786         * modules/glob-tests (Files): Add it.
13787         (Depends-on): Add ansi-c++-opt.
13788         (Makefile.am): Arrange to compile and run test-glob-c++.
13789
13790         Tests of module 'fcntl-h' in C++ mode.
13791         * tests/test-fcntl-h-c++.cc: New file.
13792         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
13793         (Depends-on): Add ansi-c++-opt.
13794         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
13795         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
13796         gl_MODULE_INDICATOR.
13797
13798         Tests of module 'dirent' in C++ mode.
13799         * tests/test-dirent-c++.cc: New file.
13800         * modules/dirent-tests (Files): Add it and tests/signature.h.
13801         (Depends-on): Add ansi-c++-opt.
13802         (Makefile.am): Arrange to compile and run test-dirent-c++.
13803         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
13804         gl_MODULE_INDICATOR.
13805
13806         New module 'ansi-c++-opt'.
13807         * modules/ansi-c++-opt: New file.
13808         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
13809
13810         Document C++ namespace mode.
13811         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
13812
13813         wctype: Avoid #define replacements in C++ mode.
13814         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
13815         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
13816         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
13817         In C++, define a namespaced alias symbol.
13818         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
13819         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
13820         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
13821         rule.
13822
13823         wchar: Avoid #define replacements in C++ mode.
13824         * lib/wchar.in.h: Include c++defs.h.
13825         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
13826         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
13827         symbol.
13828         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
13829         * modules/wchar (Depends-on): Add c++defs.
13830         (Makefile.am): Update wchar.h rule.
13831
13832         unistd: Avoid #define replacements in C++ mode.
13833         * lib/unistd.in.h: Include c++defs.h.
13834         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
13835         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
13836         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
13837         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
13838         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
13839         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
13840         symbol.
13841         (environ): Update.
13842         * modules/unistd (Depends-on): Add c++defs.
13843         (Makefile.am): Update unistd.h rule.
13844
13845         time: Avoid #define replacements in C++ mode.
13846         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
13847         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
13848         define a namespaced alias symbol.
13849         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
13850         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
13851         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
13852         * modules/time (Depends-on): Add c++defs, warn-on-use.
13853         (Makefile.am): Update time.h rule.
13854         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
13855         * modules/nanosleep (configure.ac): Likewise.
13856         * modules/strptime (configure.ac): Likewise.
13857         * modules/timegm (configure.ac): Likewise.
13858
13859         sys_time: Avoid #define replacements in C++ mode.
13860         * lib/sys_time.in.h: Include c++defs.h.
13861         (gettimeofday): In C++, define a namespaced alias symbol.
13862         * modules/sys_time (Depends-on): Add c++defs.
13863         (Makefile.am): Update sys/time.h rule.
13864
13865         sys_stat: Avoid #define replacements in C++ mode.
13866         * lib/sys_stat.in.h: Include c++defs.h.
13867         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
13868         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
13869         namespaced alias symbol.
13870         In C++, define a namespaced alias symbol.
13871         * modules/sys_stat (Depends-on): Add c++defs.
13872         (Makefile.am): Update sys/stat.h rule.
13873
13874         sys_socket: Avoid #define replacements in C++ mode.
13875         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
13876         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
13877         definitions also when the system has a <sys/socket.h>.
13878         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
13879         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
13880         In C++, define a namespaced alias symbol.
13881         * modules/sys_socket (Depends-on): Add c++defs.
13882         (Makefile.am): Update sys/socket.h rule.
13883
13884         sys_select: Avoid #define replacements in C++ mode.
13885         * lib/sys_select.in.h: Include c++defs.h. Enable the function
13886         definitions also when the system has a <sys/select.h>.
13887         (select): In C++, define a namespaced alias symbol.
13888         * modules/sys_select (Depends-on): Add c++defs.
13889         (Makefile.am): Update sys/select.h rule.
13890
13891         sys_ioctl: Avoid #define replacements in C++ mode.
13892         * lib/sys_ioctl.in.h: Include c++defs.h.
13893         (ioctl): In C++, define a namespaced alias symbol.
13894         * modules/sys_ioctl (Depends-on): Add c++defs.
13895         (Makefile.am): Update sys/ioctl.h rule.
13896
13897         string: Avoid #define replacements in C++ mode.
13898         * lib/string.in.h: Include c++defs.h.
13899         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
13900         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
13901         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
13902         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
13903         strsignal, strverscmp): In C++, define a namespaced alias symbol.
13904         * modules/string (Depends-on): Add c++defs.
13905         (Makefile.am): Update string.h rule.
13906
13907         stdlib: Avoid #define replacements in C++ mode.
13908         * lib/stdlib.in.h: Include c++defs.h.
13909         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
13910         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
13911         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
13912         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
13913         symbol.
13914         * modules/stdlib (Depends-on): Add c++defs.
13915         (Makefile.am): Update stdlib.h rule.
13916
13917         stdio: Avoid #define replacements in C++ mode.
13918         * lib/stdio.in.h: Include c++defs.h.
13919         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
13920         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
13921         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
13922         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
13923         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
13924         namespaced alias symbol.
13925         * modules/stdio (Depends-on): Add c++defs.
13926         (Makefile.am): Update stdio.h rule.
13927
13928         spawn: Avoid #define replacements in C++ mode.
13929         * lib/spawn.in.h: Include c++defs.h.
13930         (posix_spawn, posix_spawnp, posix_spawnattr_init,
13931         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
13932         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
13933         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
13934         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
13935         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
13936         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
13937         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
13938         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
13939         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
13940         In C++, define a namespaced alias symbol.
13941         * modules/spawn (Depends-on): Add c++defs.
13942         (Makefile.am): Update spawn.h rule.
13943
13944         signal: Avoid #define replacements in C++ mode.
13945         * lib/signal.in.h: Include c++defs.h.
13946         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
13947         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
13948         namespaced alias symbol.
13949         * modules/signal (Depends-on): Add c++defs.
13950         (Makefile.am): Update signal.h rule.
13951
13952         search: Avoid #define replacements in C++ mode.
13953         * lib/search.in.h: Include c++defs.h.
13954         (_gl_search_compar_fn, _gl_search_action_fn): New types.
13955         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
13956         symbol.
13957         * modules/search (Depends-on): Add c++defs.
13958         (Makefile.am): Update search.h rule.
13959
13960         math: Avoid #define replacements in C++ mode.
13961         * lib/math.in.h: Include c++defs.h.
13962         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
13963         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
13964         trunc, truncl): In C++, define a namespaced alias symbol.
13965         * modules/math (Depends-on): Add c++defs.
13966         (Makefile.am): Update math.h rule.
13967
13968         locale: Avoid #define replacements in C++ mode.
13969         * lib/locale.in.h: Include c++defs.h.
13970         (duplocale): In C++, define a namespaced alias symbol.
13971         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
13972         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
13973         * modules/locale (Depends-on): Add c++defs.
13974         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
13975
13976         langinfo: Avoid #define replacements in C++ mode.
13977         * lib/langinfo.in.h: Include c++defs.h.
13978         (nl_langinfo): In C++, define a namespaced alias symbol.
13979         * modules/langinfo (Depends-on): Add c++defs.
13980         (Makefile.am): Update langinfo.h rule.
13981
13982         iconv-h: Avoid #define replacements in C++ mode.
13983         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
13984         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
13985         symbol.
13986         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
13987         whenever iconv is present.
13988         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
13989         (Makefile.am): Update iconv.h rule.
13990
13991         glob: Avoid #define replacements in C++ mode.
13992         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
13993         (_gl_glob_errfunc_fn): New type.
13994         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
13995         symbol.
13996         * modules/glob (Depends-on): Add c++defs, warn-on-use.
13997         (Makefile.am): Update glob.h rule.
13998
13999         fcntl-h: Avoid #define replacements in C++ mode.
14000         * lib/fcntl.in.h: Include c++defs.h.
14001         (fcntl, open, openat): In C++, define a namespaced alias symbol.
14002         * modules/fcntl-h (Depends-on): Add c++defs.
14003         (Makefile.am): Update fcntl.h rule.
14004
14005         dirent: Avoid #define replacements in C++ mode.
14006         * lib/dirent.in.h: Include c++defs.h.
14007         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
14008         namespaced alias symbol.
14009         (dirfd): Update declaration.
14010         * modules/dirent (Depends-on): Add c++defs.
14011         (Makefile.am): Update dirent.h rule.
14012
14013         ctype: Make it usable in C++ code.
14014         * lib/ctype.in.h: Include c++defs.h.
14015         (isblank): Declare as extern "C".
14016         * modules/ctype (Depends-on): Add c++defs.
14017         (Makefile.am): Update ctype.h rule.
14018
14019         New module 'c++defs'.
14020         * modules/c++defs: New file.
14021         * build-aux/c++defs.h: New file.
14022         Reported by John W. Eaton <jwe@gnu.org>.
14023
14024 2010-03-07  Bruno Haible  <bruno@clisp.org>
14025
14026         logb: Provide missing declaration for Cygwin.
14027         * lib/math.in.h (logb): New declaration.
14028         * m4/logb.m4: New file.
14029         * modules/logb (Files): Add m4/logb.m4.
14030         (Depends-on): Add math.
14031         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
14032         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
14033         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
14034         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
14035         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
14036
14037 2010-03-07  Bruno Haible  <bruno@clisp.org>
14038
14039         Fix test-cond link error.
14040         * tests/test-cond.c: Include <stdio.h>.
14041
14042 2010-03-07  Bruno Haible  <bruno@clisp.org>
14043
14044         Fix test-dirent-safer link error.
14045         * modules/dirent-safer-tests (Makefile.am): Define
14046         test_dirent_safer_LDADD.
14047
14048 2010-03-07  Bruno Haible  <bruno@clisp.org>
14049
14050         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
14051         among default module list.
14052
14053 2010-03-07  Bruno Haible  <bruno@clisp.org>
14054
14055         Fix link error on platforms with GNU libiconv.
14056         * modules/unistr/u8-strcoll-tests (Makefile): Define
14057         test_u8_strcoll_LDADD.
14058         * modules/unistr/u16-strcoll-tests (Makefile): Define
14059         test_u16_strcoll_LDADD.
14060         * modules/unistr/u32-strcoll-tests (Makefile): Define
14061         test_u32_strcoll_LDADD.
14062
14063 2010-03-07  Bruno Haible  <bruno@clisp.org>
14064
14065         Use POSIX declarations for socket functions.
14066         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
14067         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
14068         rpl_sendto): Change declaration to match POSIX.
14069         * lib/connect.c (rpl_connect): Likewise.
14070         * lib/accept.c (rpl_accept): Likewise.
14071         * lib/bind.c (rpl_bind): Likewise.
14072         * lib/getpeername.c (rpl_getpeername): Likewise.
14073         * lib/getsockname.c (rpl_getsockname): Likewise.
14074         * lib/recv.c (rpl_recv): Likewise.
14075         * lib/send.c (rpl_send): Likewise.
14076         * lib/recvfrom.c (rpl_recvfrom): Likewise.
14077         * lib/sendto.c (rpl_sendto): Likewise.
14078
14079 2010-03-06  Bruno Haible  <bruno@clisp.org>
14080
14081         Clarify access, euidaccess, faccessat.
14082         * doc/posix-functions/faccessat.texi: Mention security problem under
14083         "Other problems", not "Portability problems".
14084         * doc/posix-functions/access.texi: Likewise. Mention a related security
14085         problem.
14086         * doc/glibc-functions/euidaccess.texi: Mention security problems.
14087         * lib/euidaccess.c: Add comments about platforms.
14088         * lib/unistd.in.h (access, euidaccess): Add warnings.
14089
14090 2010-03-07  Bruno Haible  <bruno@clisp.org>
14091
14092         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
14093         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
14094         (POSIX_SPAWN_SETSCHEDULER): Likewise.
14095         (POSIX_SPAWN_USEVFORK): Define in a way that works when
14096         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
14097         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
14098         declare when POSIX_SPAWN_SETSCHEDULER is zero.
14099         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
14100         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
14101         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
14102         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
14103         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
14104         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
14105         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
14106         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
14107         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
14108         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
14109         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
14110         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
14111         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
14112         Likewise.
14113         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
14114         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
14115         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
14116         Likewise.
14117         * tests/test-spawn.c (main): Make it work when
14118         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
14119
14120 2010-03-07  Bruno Haible  <bruno@clisp.org>
14121
14122         Fix incorrect Makefile.am generation in German locale.
14123         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14124         Execute sed command with character range in C locale.
14125
14126 2010-03-06  Bruno Haible  <bruno@clisp.org>
14127
14128         Tests for module 'iconv-h'.
14129         * modules/iconv-h-tests: New file.
14130         * tests/test-iconv-h.c: New file.
14131
14132         New module 'iconv-h'.
14133         * modules/iconv-h: New file.
14134         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
14135         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
14136         (configure.ac): Remove gl_ICONV_H.
14137         (Makefile.am): Remove rule for iconv.h.
14138
14139 2010-03-06  Bruno Haible  <bruno@clisp.org>
14140
14141         More consistent naming of *.m4 files.
14142         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
14143         * modules/wctype (Files): Update.
14144
14145         More consistent naming of *.m4 files.
14146         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
14147         * modules/wchar (Files): Update.
14148
14149 2010-03-06  Jim Meyering  <meyering@redhat.com>
14150
14151         euidaccess: relax license to LGPLv2+
14152         * modules/euidaccess (License): Relax to LGPLv2+.
14153
14154 2010-03-06  Bruno Haible  <bruno@clisp.org>
14155
14156         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
14157         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
14158         (Makefile.am): Augment lib_SOURCES instead.
14159
14160 2010-03-04  Jim Meyering  <meyering@redhat.com>
14161
14162         utime: remove obsolete module
14163         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
14164         unnecessary for years, and has been marked as obsolete for 10 months.
14165         * modules/utime: Remove file.
14166         * lib/utime.c: Remove file.
14167         * m4/utime.m4: Remove file.
14168         * m4/utimes-null.m4: Remove file.
14169         * doc/posix-functions/utime.texi (utime): Remove reference to
14170         the module.  Move the sole "fixed by gnulib" item into the
14171         "problems not fixed by Gnulib" list.
14172         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
14173
14174 2010-03-05  Simon Josefsson  <simon@josefsson.org>
14175
14176         * modules/exit (License): Relax license to LGPLv2+.
14177         (Status): Mark as obsolete.
14178         * NEWS: Mention deprecated 'exit' module.
14179         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
14180         of now obsolete 'exit'.
14181
14182 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14183
14184         fts-lgpl: remove unused module
14185         * modules/fts-lgpl: Remove.
14186         * MODULES.html.sh (func_all_modules): Adjust.
14187         * check-module (find_included_lib_files): Adjust.
14188         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
14189
14190 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
14191
14192         copy-acl: enhance Solaris ACL error handling
14193         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
14194         * lib/set-mode-acl.c (qset_acl): Likewise.
14195
14196 2010-03-02  Bruno Haible  <bruno@clisp.org>
14197
14198         spawn: Don't override the system defined values on FreeBSD 8.
14199         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
14200         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
14201         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
14202         if HAVE_POSIX_SPAWN is 1.
14203         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
14204
14205 2010-03-01  Bruno Haible  <bruno@clisp.org>
14206
14207         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
14208         regarding Automake.
14209
14210 2010-02-25  Bruno Haible  <bruno@clisp.org>
14211
14212         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
14213         * gnulib-tool: Define 'echo' as a function only before the ksh alias
14214         setting, not afterwards.
14215         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
14216
14217 2010-02-24  Eric Blake  <eblake@redhat.com>
14218
14219         bootstrap, git-version-gen: use timestamp
14220         * build-aux/git-version-gen (scriptversion): Force UTC.
14221         * build-aux/bootstrap (scriptversion): New variable.
14222
14223         bootstrap: allow older git
14224         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
14225         older than 1.6.4.  Requested by the libvirt project.
14226
14227 2010-02-23  Eric Blake  <eblake@redhat.com>
14228
14229         warn-on-use: work with old autoconf
14230         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
14231         AS_VAR semantics of autoconf 2.60.
14232         Reported by Bruno Haible.
14233
14234         bootstrap: improve some comments
14235         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
14236         clarification comments.
14237
14238         gettimeofday: provide correct function
14239         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
14240         when replacement is declared, otherwise provide gettimeofday.
14241         Reported by Michael Goffioul.
14242
14243 2010-02-23  Jim Meyering  <meyering@redhat.com>
14244
14245         lib-ignore: relax license to "unlimited", not LGPLv2+
14246         * modules/lib-ignore (License): Relax to "unlimited".
14247
14248 2010-02-23  Jim Meyering  <meyering@redhat.com>
14249
14250         lib-ignore: relax license to LGPLv2+
14251         * modules/lib-ignore (License): Relax to LGPLv2+.
14252
14253 2010-02-22  Eric Blake  <eblake@redhat.com>
14254
14255         lseek: avoid bash 3.2 broken pipe bug
14256         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
14257         warning from bash 3.2.
14258         Reported by Ben Pfaff, with analysis from Bruno Haible.
14259
14260         bootstrap: support non-FSF copyright holder
14261         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
14262         bootstrap.conf override of COPYRIGHT_HOLDER.
14263         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
14264
14265         bootstrap: interoperate with gettext 0.14.1
14266         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
14267
14268         bootstrap: allow for alternate submodule location
14269         * build-aux/bootstrap (gnulib_path): New variable; use instead of
14270         hardcoding submodule location.
14271         (gnulib_mk): Allow direct use of Makefile.am.
14272
14273         bootstrap: use GNULIB_SRCDIR to reduce disk usage
14274         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
14275         rather than reconfiguring where the submodule points.
14276
14277         gettimeofday: restore support for platforms that lack function
14278         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
14279         replacement if function is missing.
14280         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
14281         * modules/sys_time (Makefile.am): Substitute it.
14282         * lib/sys_time.in.h (gettimeofday): Check it.
14283         Reported by Michael Goffioul.
14284
14285 2010-02-21  Bruno Haible  <bruno@clisp.org>
14286
14287         * lib/stdio.in.h (obstack_printf): Fix typo.
14288
14289 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
14290
14291         vc-list-files: use bzr ls's -R option
14292         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
14293         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
14294
14295 2010-02-21  Jim Meyering  <meyering@redhat.com>
14296
14297         init.sh: fix EXEEXT shims to work also for names like test-prog
14298         * tests/init.sh: Re-exec a better shell, when needed.
14299         If the current shell lacks support for posix $(...), an init.sh-using
14300         test will now try to find a shell that supports that.  If EXEEXT is
14301         nonempty, we also require support for hyphen-in-alias-name and shell
14302         substitutions like ${var#glob}.  Failure to find such a shell results
14303         in a skipped test.
14304
14305 2010-02-21  Bruno Haible  <bruno@clisp.org>
14306
14307         Really work around around "broken pipe" error message from bash 3.2.
14308         * gnulib-tool (func_reset_sigpipe): Remove function.
14309         (echo): In bash 3.2, define to a function that uses printf.
14310         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
14311
14312 2010-02-20  Bruno Haible  <bruno@clisp.org>
14313
14314         Restore support for automake 1.9.6 with autoconf 2.61.
14315         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
14316         Reported by James Youngman <jay@gnu.org>.
14317
14318 2010-02-20  Bruno Haible  <bruno@clisp.org>
14319
14320         Improve *printf warning condition.
14321         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
14322         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
14323         and the function is overridden due to SIGPIPE emulation.
14324
14325 2010-02-20  Bruno Haible  <bruno@clisp.org>
14326
14327         * lib/stdio.in.h: Tweak comments.
14328
14329 2010-02-19  Bruno Haible  <bruno@clisp.org>
14330
14331         Make it easier to find modules. New gnulib-tool option '--find'.
14332         * gnulib-tool: New option --find.
14333         (func_usage): Document it.
14334         (func_sanitize_modulelist): New function, extracted from
14335         func_all_modules.
14336         (func_all_modules): Invoke it.
14337         * doc/gnulib-tool.texi (Which modules?): New node.
14338
14339 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
14340
14341         * lib/sys_select.in.h: Provide select replacement even if
14342         sys/select.h exists on a system, for Interix.
14343
14344 2010-02-18  Jim Meyering  <meyering@redhat.com>
14345
14346         init.sh: don't use $(...) just yet
14347         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
14348         to accommodate e.g., Solaris' /bin/sh.
14349
14350 2010-02-17  Bruno Haible  <bruno@clisp.org>
14351
14352         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
14353         Reported by Ludovic Courtès <ludo@gnu.org>.
14354
14355 2010-02-16  Simon Josefsson  <simon@josefsson.org>
14356
14357         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
14358         linking with -lintl.
14359
14360 2010-02-17  Simon Josefsson  <simon@josefsson.org>
14361
14362         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
14363         if not provided by the system's netdb.h.  Reported by
14364         ludo@gnu.org (Ludovic Courtès).
14365
14366 2010-02-15  Jim Meyering  <meyering@redhat.com>
14367
14368         init.sh: improve portability and efficiency
14369         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
14370         "dummy" in a for loop.
14371         Use '!', not '^' to select the complement of a character set used
14372         in a "case" statement.
14373         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
14374         Suggestions from Eric Blake.
14375
14376         init.sh: automatically accommodate programs with the .exe suffix
14377         Automatically arrange for an invocation of "prog" to execute the
14378         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
14379         may use the simpler "prog", yet still work when built on a system
14380         that requires specifying the added suffix.
14381         Do this by constructing a function named "prog" that invokes
14382         "prog.exe" for each .exe file in selected directories.
14383         * tests/init.sh (find_exe_basenames_): New function.
14384         (create_exe_shim_functions_): New function.
14385         (path_prepend_): Use it.
14386
14387         maint.mk: mark syntax-check sc_*.m rules as .PHONY
14388         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
14389         "make -t syntax-check" doesn't create a ton of sc_*.m files.
14390
14391 2010-02-14  Jim Meyering  <meyering@redhat.com>
14392
14393         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
14394         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
14395         (sc_prohibit_hash_pjw_without_use): New rule.
14396
14397         maint.mk: allow the default upload destination dir to be overridden
14398         * top/maint.mk (upload_dest_dir_): Define with a default that
14399         preserves the status quo.
14400         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
14401         Reported by Peter Simons.
14402
14403         maint.mk: prohibit inclusion of "hash.h" without_use
14404         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
14405
14406 2010-02-10  Jim Meyering  <meyering@redhat.com>
14407
14408         maint.mk: prohibit inclusion of "ignore-value.h" without_use
14409         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
14410
14411 2010-02-09  Eric Blake  <ebb9@byu.net>
14412         and Bruno Haible  <bruno@clisp.org>
14413
14414         obstack-printf-posix: ensure declaration
14415         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
14416         extracted from gl_FUNC_OBSTACK_PRINTF.
14417         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
14418         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
14419         Likewise.
14420         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
14421         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
14422         0.
14423
14424 2010-02-08  Bruno Haible  <bruno@clisp.org>
14425
14426         gnulib-tool: Fix typo in 2010-02-07 commit.
14427         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
14428         Reported by Eric Blake.
14429
14430 2010-02-07  Bruno Haible  <bruno@clisp.org>
14431
14432         gnulib-tool: Fix up caching patches.
14433         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
14434         option --no-cache. Use associative arrays when supported by the shell.
14435         (sed_comments): New variable.
14436         (modcache): Renamed from do_cache.
14437         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
14438         abbreviate unnecessarily.
14439         (have_associative): New variable.
14440         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
14441         way also for ksh and zsh.
14442         (func_init_sed_convert_to_cache_statements): New function, extracted
14443         from func_cache_lookup_module. Add support for associative arrays.
14444         Don't set the c_MODULE_cached variable here. Ignore all lines before
14445         the first field header. Remove only the final newline, not all trailing
14446         newlines. Support empty fields correctly. Limit the use of 'eval' to
14447         assignments.
14448         (func_get_description, func_get_status, func_get_notice,
14449         func_get_applicability, func_get_filelist, func_get_dependencies,
14450         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
14451         func_get_automake_snippet, func_get_include_directive,
14452         func_get_link_directive, func_get_license, func_get_maintainer):
14453         Update documentation. List the unoptimized code first. Add support for
14454         associative arrays. Limit the use of 'eval' to assignments.
14455         (func_get_applicability): Undo stylistic pessimisations.
14456         (func_get_automake_snippet, func_get_include_directive): Reduce code
14457         duplication.
14458         (func_modules_transitive_closure, func_modules_add_dummy,
14459         func_modules_notice, func_modules_to_filelist, func_add_file,
14460         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
14461         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
14462         func_create_testdir, func_create_megatestdir): Update documentation.
14463
14464 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14465
14466         * gnulib-tool (func_cache_lookup_module): Store the module name
14467         belonging to the cache variable; error out if two different
14468         module names map to the same cache variable name.
14469
14470 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14471
14472         gnulib-tool: Make caching optional.
14473         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
14474         Update matching short versions of --no-changelog.
14475         (func_usage): Update.
14476         (sed_extract_cache_prog): Renamed from ...
14477         (sed_extract_prog): ... this; revert to old extraction script.
14478         (func_get_description, func_get_status)
14479         (func_get_notice, func_get_applicability, func_get_filelist)
14480         (func_get_dependencies, func_get_autoconf_early_snippet)
14481         (func_get_autoconf_snippet, func_get_automake_snippet)
14482         (func_get_include_directive, func_get_link_directive)
14483         (func_get_license, func_get_maintainer): If $do_cache is false,
14484         use old, non-caching extraction scripts.
14485         Suggestion by Bruno Haible.
14486
14487 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14488
14489         gnulib-tool: cache module metainformation.
14490         * gnulib-tool (sed_extract_prog): Match newline before each
14491         header, and rewrite header to a shell variable suffix.
14492         (func_cache_var, func_cache_lookup_module): New functions,
14493         to turn a module name into a cache variable prefix, and to
14494         look up and cache module metainformation.
14495         (func_get_description, func_get_status)
14496         (func_get_notice, func_get_applicability, func_get_filelist)
14497         (func_get_dependencies, func_get_autoconf_early_snippet)
14498         (func_get_autoconf_snippet, func_get_automake_snippet)
14499         (func_get_include_directive, func_get_link_directive)
14500         (func_get_license, func_get_maintainer): Use
14501         func_cache_lookup_module.
14502
14503 2010-02-07  Bruno Haible  <bruno@clisp.org>
14504
14505         fnctl: Fix missing dependency.
14506         * modules/fcntl (Depends-on): Add getdtablesize.
14507         Reported by John W. Eaton <jwe@gnu.org>.
14508
14509 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
14510
14511         Argp: fix recognition of short alias options.
14512
14513         * lib/argp-parse.c (convert_options): Fix improper use of
14514         `|' between character values.
14515         * tests/test-argp.c (group1_option): New alias option
14516         --read (-r).
14517         (group1_parser): Special handling for 'r'.
14518         (test15): New test case.
14519         (test_fun): Add test15.
14520         * tests/test-argp-2.sh: Update expected --help and --usage
14521         outputs.
14522
14523 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
14524
14525         * tests/test-argp.c: Fix indentation.
14526
14527 2010-02-04  Eric Blake  <ebb9@byu.net>
14528
14529         gettimeofday: expose type of second argument
14530         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
14531         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
14532         * tests/test-gettimeofday.c: Use it to silence warning.
14533         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
14534         the issue.
14535
14536 2010-02-03  Jim Meyering  <meyering@redhat.com>
14537
14538         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
14539         * lib/regcomp.c (TYPE_SIGNED): Define.
14540         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
14541
14542         regcomp.c: avoid a new -Wshadow warning
14543         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
14544
14545 2010-02-01  Jim Meyering  <meyering@redhat.com>
14546
14547         removing useless parentheses in cpp #define directives
14548         For motivation, see commit c0221df4, "define STREQ(a,b)
14549         consistently, removing useless parentheses"
14550         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
14551         * lib/mountlist.c (MNT_IGNORE): Likewise.
14552         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
14553
14554 2010-02-01  Eric Blake  <ebb9@byu.net>
14555
14556         sys_time: use link-warning
14557         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
14558         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
14559         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
14560         * modules/sys_time (Depends-on): Add warn-on-use.
14561         (Makefile.am): Always build replacement.
14562         (configure.ac): Update substitutions.
14563         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
14564         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
14565         bother with SYS_TIME_H.
14566         * modules/gettimeofday (configure.ac): Declare indicator.
14567         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
14568         in use.
14569
14570         closein-tests: silence compiler warning
14571         * tests/test-closein.c (main): Ignore fread result.
14572         * modules/closein-tests (Depends-on): Add ignore-value.
14573
14574         tests: silence warning about system return
14575         * tests/test-areadlink-with-size.c (main): Ignore system result.
14576         * tests/test-areadlink.c (main): Likewise.
14577         * tests/test-areadlinkat-with-size.c (main): Likewise.
14578         * tests/test-areadlinkat.c (main): Likewise.
14579         * tests/test-canonicalize-lgpl.c (main): Likewise.
14580         * tests/test-canonicalize.c (main): Likewise.
14581         * tests/test-chown.c (main): Likewise.
14582         * tests/test-fchownat.c (main): Likewise.
14583         * tests/test-fdutimensat.c (main): Likewise.
14584         * tests/test-fstatat.c (main): Likewise.
14585         * tests/test-futimens.c (main): Likewise.
14586         * tests/test-lchown.c (main): Likewise.
14587         * tests/test-link.c (main): Likewise.
14588         * tests/test-linkat.c (main): Likewise.
14589         * tests/test-lstat.c (main): Likewise.
14590         * tests/test-mkdir.c (main): Likewise.
14591         * tests/test-mkdirat.c (main): Likewise.
14592         * tests/test-mkfifo.c (main): Likewise.
14593         * tests/test-mkfifoat.c (main): Likewise.
14594         * tests/test-mknod.c (main): Likewise.
14595         * tests/test-readlink.c (main): Likewise.
14596         * tests/test-remove.c (main): Likewise.
14597         * tests/test-rename.c (main): Likewise.
14598         * tests/test-renameat.c (main): Likewise.
14599         * tests/test-rmdir.c (main): Likewise.
14600         * tests/test-symlink.c (main): Likewise.
14601         * tests/test-symlinkat.c (main): Likewise.
14602         * tests/test-unlink.c (main): Likewise.
14603         * tests/test-unlinkat.c (main): Likewise.
14604         * tests/test-utimens.c (main): Likewise.
14605         * tests/test-utimensat.c (main): Likewise.
14606         * modules/areadlink-tests (Depends-on): Add ignore-value.
14607         * modules/areadlink-with-size-tests (Depends-on): Likewise.
14608         * modules/areadlinkat-tests (Depends-on): Likewise.
14609         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
14610         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
14611         * modules/canonicalize-tests (Depends-on): Likewise.
14612         * modules/chown-tests (Depends-on): Likewise.
14613         * modules/fdutimensat-tests (Depends-on): Likewise.
14614         * modules/futimens-tests (Depends-on): Likewise.
14615         * modules/lchown-tests (Depends-on): Likewise.
14616         * modules/link-tests (Depends-on): Likewise.
14617         * modules/linkat-tests (Depends-on): Likewise.
14618         * modules/lstat-tests (Depends-on): Likewise.
14619         * modules/mkdir-tests (Depends-on): Likewise.
14620         * modules/mkfifo-tests (Depends-on): Likewise.
14621         * modules/mkfifoat-tests (Depends-on): Likewise.
14622         * modules/mknod-tests (Depends-on): Likewise.
14623         * modules/openat-tests (Depends-on): Likewise.
14624         * modules/readlink-tests (Depends-on): Likewise.
14625         * modules/remove-tests (Depends-on): Likewise.
14626         * modules/rename-tests (Depends-on): Likewise.
14627         * modules/renameat-tests (Depends-on): Likewise.
14628         * modules/rmdir-tests (Depends-on): Likewise.
14629         * modules/symlink-tests (Depends-on): Likewise.
14630         * modules/symlinkat-tests (Depends-on): Likewise.
14631         * modules/unlink-tests (Depends-on): Likewise.
14632         * modules/utimens-tests (Depends-on): Likewise.
14633         * modules/utimensat-tests (Depends-on): Likewise.
14634
14635 2010-01-31  Bruno Haible  <bruno@clisp.org>
14636
14637         Perform the same test for many <math.h> functions.
14638         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
14639         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
14640         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
14641         of gl_MATHFUNC.
14642         * modules/acos (configure.ac): Likewise.
14643         * modules/asin (configure.ac): Likewise.
14644         * modules/atan (configure.ac): Likewise.
14645         * modules/atan2 (configure.ac): Likewise.
14646         * modules/cbrt (configure.ac): Likewise.
14647         * modules/copysign (configure.ac): Likewise.
14648         * modules/cos (configure.ac): Likewise.
14649         * modules/cosh (configure.ac): Likewise.
14650         * modules/erf (configure.ac): Likewise.
14651         * modules/erfc (configure.ac): Likewise.
14652         * modules/exp (configure.ac): Likewise.
14653         * modules/fmod (configure.ac): Likewise.
14654         * modules/hypot (configure.ac): Likewise.
14655         * modules/j0 (configure.ac): Likewise.
14656         * modules/j1 (configure.ac): Likewise.
14657         * modules/jn (configure.ac): Likewise.
14658         * modules/lgamma (configure.ac): Likewise.
14659         * modules/log (configure.ac): Likewise.
14660         * modules/log10 (configure.ac): Likewise.
14661         * modules/log1p (configure.ac): Likewise.
14662         * modules/pow (configure.ac): Likewise.
14663         * modules/remainder (configure.ac): Likewise.
14664         * modules/sin (configure.ac): Likewise.
14665         * modules/sinh (configure.ac): Likewise.
14666         * modules/tan (configure.ac): Likewise.
14667         * modules/tanh (configure.ac): Likewise.
14668         * modules/y0 (configure.ac): Likewise.
14669         * modules/y1 (configure.ac): Likewise.
14670         * modules/yn (configure.ac): Likewise.
14671         Suggested by Paolo Bonzini.
14672
14673 2010-01-31  Bruno Haible  <bruno@clisp.org>
14674
14675         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
14676
14677 2010-01-31  Bruno Haible  <bruno@clisp.org>
14678
14679         Work around getdelim() bug on FreeBSD 8.0.
14680         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
14681         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
14682         not work.
14683         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
14684         is 1.
14685         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
14686         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
14687         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
14688         a non-zero size.
14689         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
14690
14691 2010-01-31  Bruno Haible  <bruno@clisp.org>
14692
14693         Work around getline() bug on FreeBSD 8.0.
14694         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
14695         and a non-zero size.
14696         * tests/test-getline.c (main): Likewise.
14697         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
14698         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
14699
14700 2010-01-28  Eric Blake  <ebb9@byu.net>
14701
14702         regex: fix build failure
14703         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
14704         platforms.
14705
14706 2010-01-28  Jim Meyering  <meyering@redhat.com>
14707
14708         regex: do not ignore memory allocation failure
14709         * lib/regex_internal.c (create_cd_newstate): Detect
14710         re_node_set_init_copy failure.   Extracted from glibc commit
14711         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
14712
14713         regex: sync more white-space changes from libc
14714         * lib/regex_internal.c: White-space only changes.
14715         * lib/regexec.c: Likewise.
14716
14717         regex: add many uses of __attribute_warn_unused_result__
14718         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
14719         * lib/regexec.c: Likewise.
14720         Extracted from a messy glibc commit.
14721
14722         regcomp.c: spelling and merge-artifact from glibc
14723         * lib/regcomp.c: Merge remainder of glibc's
14724         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
14725
14726         regcomp.c: sync white-space changes from glibc
14727         * lib/regcomp.c: Merge to accommodate white space
14728         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
14729
14730         regcomp.c: do not ignore internal return values
14731         * lib/regcomp.c: Do not ignore internal return values.
14732         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
14733         but without its white-space changes and spelling fixes.
14734
14735         regex_internal.h: define __attribute_warn_unused_result__
14736         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
14737
14738         maint: add a syntax-check rule to check for vulnerable Makefile.in
14739         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
14740
14741 2010-01-27  Jim Meyering  <meyering@redhat.com>
14742
14743         ncftpput-ftp: clean up spaces
14744         * build-aux/ncftpput-ftp: Make Copyright line consistent.
14745         Remove trailing blanks.
14746
14747 2010-01-27  Simon Josefsson  <simon@josefsson.org>
14748
14749         * build-aux/git-version-gen: Fix copyright statement.
14750         * build-aux/gnupload: Likewise.
14751         * tests/test-arcfour.c: Likewise.
14752         * tests/test-arctwo.c: Likewise.
14753         * tests/test-count-one-bits.c: Likewise.
14754         * tests/test-crc.c: Likewise.
14755         * tests/test-des.c: Likewise.
14756         * tests/test-gc-arcfour.c: Likewise.
14757         * tests/test-gc-arctwo.c: Likewise.
14758         * tests/test-gc-des.c: Likewise.
14759         * tests/test-gc-hmac-md5.c: Likewise.
14760         * tests/test-gc-hmac-sha1.c: Likewise.
14761         * tests/test-gc-md2.c: Likewise.
14762         * tests/test-gc-md4.c: Likewise.
14763         * tests/test-gc-md5.c: Likewise.
14764         * tests/test-gc-pbkdf2-sha1.c: Likewise.
14765         * tests/test-gc-rijndael.c: Likewise.
14766         * tests/test-gc-sha1.c: Likewise.
14767         * tests/test-gc.c: Likewise.
14768         * tests/test-gethostname.c: Likewise.
14769         * tests/test-gettimeofday.c: Likewise.
14770         * tests/test-hash.c: Likewise.
14771         * tests/test-hmac-md5.c: Likewise.
14772         * tests/test-hmac-sha1.c: Likewise.
14773         * tests/test-md2.c: Likewise.
14774         * tests/test-md4.c: Likewise.
14775         * tests/test-md5.c: Likewise.
14776         * tests/test-memchr.c: Likewise.
14777         * tests/test-memchr2.c: Likewise.
14778         * tests/test-memcmp.c: Likewise.
14779         * tests/test-memmem.c: Likewise.
14780         * tests/test-memrchr.c: Likewise.
14781         * tests/test-rawmemchr.c: Likewise.
14782         * tests/test-read-file.c: Likewise.
14783         * tests/test-rijndael.c: Likewise.
14784         * tests/test-sockets.c: Likewise.
14785         * tests/test-strchrnul.c: Likewise.
14786         * tests/test-strstr.c: Likewise.
14787         * tests/test-strtod.c: Likewise.
14788         * build-aux/ncftpput-ftp: Likewise.
14789
14790 2010-01-26  Eric Blake  <ebb9@byu.net>
14791
14792         ignore-value: update recommended header name
14793         * modules/ignore-value (Include): Only use <> for headers that
14794         exist in glibc.
14795
14796 2010-01-26  Jim Meyering  <meyering@redhat.com>
14797
14798         test-userspec.c: avoid compiler warnings
14799         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
14800         and "initialization discards qualifiers..." warnings.
14801         Put the first "uid" in its own scope, and make char* members "const".
14802
14803 2010-01-25  Bruno Haible  <bruno@clisp.org>
14804
14805         gnulib-tool: Make warning diagnostics consistent.
14806         * gnulib-tool (func_warning): New function.
14807         Use it everywhere where gnulib-tool produces output to stderr and it is
14808         not a fatal error.
14809
14810 2010-01-25  Bruno Haible  <bruno@clisp.org>
14811
14812         Fix test dependencies.
14813         * modules/xstrtol-tests (Depends-on): Add inttypes.
14814         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
14815
14816 2010-01-25 Pádraig Brady <P@draigBrady.com>
14817
14818         syntax-check: detect incorrect boolean macro values in config.h
14819         * modules/maintainer-makefile (configure.ac): Parameterize the location
14820         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
14821         The logic is from Eric Blake and the location indicated by Jim Meyering.
14822         Note the more natural CONFIG_HEADER name is prohibited by automake
14823         for backwards compatibility reasons.
14824         * top/maint.mk (sc_Wundef_boolean): New rule.
14825
14826 2010-01-25  Jim Meyering  <meyering@redhat.com>
14827
14828         bootstrap: detect MacOS 10.6's shasum, too
14829         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
14830         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
14831
14832 2010-01-23  Jim Meyering  <meyering@redhat.com>
14833
14834         xstrtoll: new module
14835         * modules/xstrtoll: New file.
14836         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
14837         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
14838         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
14839         ./configure fails if you use this module and lack "long long".
14840         * modules/xstrtoll-tests: New module.
14841         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
14842         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
14843         new init.sh-based test framework.
14844
14845 2010-01-24  Bruno Haible  <bruno@clisp.org>
14846
14847         Tests for module 'yn'.
14848         * modules/yn-tests: New file.
14849         * tests/test-yn.c: New file.
14850
14851         Tests for module 'y1'.
14852         * modules/y1-tests: New file.
14853         * tests/test-y1.c: New file.
14854
14855         Tests for module 'y0'.
14856         * modules/y0-tests: New file.
14857         * tests/test-y0.c: New file.
14858
14859         Tests for module 'tanh'.
14860         * modules/tanh-tests: New file.
14861         * tests/test-tanh.c: New file.
14862
14863         Tests for module 'tan'.
14864         * modules/tan-tests: New file.
14865         * tests/test-tan.c: New file.
14866
14867         Tests for module 'sqrt'.
14868         * modules/sqrt-tests: New file.
14869         * tests/test-sqrt.c: New file.
14870
14871         Tests for module 'sinh'.
14872         * modules/sinh-tests: New file.
14873         * tests/test-sinh.c: New file.
14874
14875         Tests for module 'sin'.
14876         * modules/sin-tests: New file.
14877         * tests/test-sin.c: New file.
14878
14879         Tests for module 'rint'.
14880         * modules/rint-tests: New file.
14881         * tests/test-rint.c: New file.
14882
14883         Tests for module 'remainder'.
14884         * modules/remainder-tests: New file.
14885         * tests/test-remainder.c: New file.
14886
14887         Tests for module 'pow'.
14888         * modules/pow-tests: New file.
14889         * tests/test-pow.c: New file.
14890
14891         Tests for module 'nextafter'.
14892         * modules/nextafter-tests: New file.
14893         * tests/test-nextafter.c: New file.
14894
14895         Tests for module 'modf'.
14896         * modules/modf-tests: New file.
14897         * tests/test-modf.c: New file.
14898
14899         Tests for module 'logb'.
14900         * modules/logb-tests: New file.
14901         * tests/test-logb.c: New file.
14902
14903         Tests for module 'log1p'.
14904         * modules/log1p-tests: New file.
14905         * tests/test-log1p.c: New file.
14906
14907         Tests for module 'log10'.
14908         * modules/log10-tests: New file.
14909         * tests/test-log10.c: New file.
14910
14911         Tests for module 'log'.
14912         * modules/log-tests: New file.
14913         * tests/test-log.c: New file.
14914
14915         Tests for module 'lgamma'.
14916         * modules/lgamma-tests: New file.
14917         * tests/test-lgamma.c: New file.
14918
14919         Tests for module 'ldexp'.
14920         * modules/ldexp-tests: New file.
14921         * tests/test-ldexp.c: New file.
14922
14923         Tests for module 'jn'.
14924         * modules/jn-tests: New file.
14925         * tests/test-jn.c: New file.
14926
14927         Tests for module 'j1'.
14928         * modules/j1-tests: New file.
14929         * tests/test-j1.c: New file.
14930
14931         Tests for module 'j0'.
14932         * modules/j0-tests: New file.
14933         * tests/test-j0.c: New file.
14934
14935         Tests for module 'hypot'.
14936         * modules/hypot-tests: New file.
14937         * tests/test-hypot.c: New file.
14938
14939         Tests for module 'fmod'.
14940         * modules/fmod-tests: New file.
14941         * tests/test-fmod.c: New file.
14942
14943         Tests for module 'fabs'.
14944         * modules/fabs-tests: New file.
14945         * tests/test-fabs.c: New file.
14946
14947         Tests for module 'exp'.
14948         * modules/exp-tests: New file.
14949         * tests/test-exp.c: New file.
14950
14951         Tests for module 'erfc'.
14952         * modules/erfc-tests: New file.
14953         * tests/test-erfc.c: New file.
14954
14955         Tests for module 'erf'.
14956         * modules/erf-tests: New file.
14957         * tests/test-erf.c: New file.
14958
14959         Tests for module 'cosh'.
14960         * modules/cosh-tests: New file.
14961         * tests/test-cosh.c: New file.
14962
14963         Tests for module 'cos'.
14964         * modules/cos-tests: New file.
14965         * tests/test-cos.c: New file.
14966
14967         Tests for module 'copysign'.
14968         * modules/copysign-tests: New file.
14969         * tests/test-copysign.c: New file.
14970
14971         Tests for module 'cbrt'.
14972         * modules/cbrt-tests: New file.
14973         * tests/test-cbrt.c: New file.
14974
14975         Tests for module 'atan2'.
14976         * modules/atan2-tests: New file.
14977         * tests/test-atan2.c: New file.
14978
14979         Tests for module 'atan'.
14980         * modules/atan-tests: New file.
14981         * tests/test-atan.c: New file.
14982
14983         Tests for module 'asin'.
14984         * modules/asin-tests: New file.
14985         * tests/test-asin.c: New file.
14986
14987         Tests for module 'acos'.
14988         * modules/acos-tests: New file.
14989         * tests/test-acos.c: New file.
14990
14991 2010-01-24  Bruno Haible  <bruno@clisp.org>
14992
14993         Fix tests for common <math.h> functions.
14994         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
14995         code snippet that references the function pointer, rather than merely
14996         calling the function. Substitute the FUNC_LIBM variable.
14997         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
14998         * modules/acos (configure.ac): Likewise.
14999         * modules/asin (configure.ac): Likewise.
15000         * modules/atan (configure.ac): Likewise.
15001         * modules/atan2 (configure.ac): Likewise.
15002         * modules/cbrt (configure.ac): Likewise.
15003         * modules/copysign (configure.ac): Likewise.
15004         * modules/cos (configure.ac): Likewise.
15005         * modules/cosh (configure.ac): Likewise.
15006         * modules/erf (configure.ac): Likewise.
15007         * modules/erfc (configure.ac): Likewise.
15008         * modules/exp (configure.ac): Likewise.
15009         * modules/fabs (configure.ac): Likewise.
15010         * modules/fmod (configure.ac): Likewise.
15011         * modules/hypot (configure.ac): Likewise.
15012         * modules/j0 (configure.ac): Likewise.
15013         * modules/j1 (configure.ac): Likewise.
15014         * modules/jn (configure.ac): Likewise.
15015         * modules/ldexp (configure.ac): Likewise.
15016         * modules/lgamma (configure.ac): Likewise.
15017         * modules/log (configure.ac): Likewise.
15018         * modules/log10 (configure.ac): Likewise.
15019         * modules/log1p (configure.ac): Likewise.
15020         * modules/logb (configure.ac): Likewise.
15021         * modules/modf (configure.ac): Likewise.
15022         * modules/nextafter (configure.ac): Likewise.
15023         * modules/pow (configure.ac): Likewise.
15024         * modules/remainder (configure.ac): Likewise.
15025         * modules/rint (configure.ac): Likewise.
15026         * modules/sin (configure.ac): Likewise.
15027         * modules/sinh (configure.ac): Likewise.
15028         * modules/tan (configure.ac): Likewise.
15029         * modules/tanh (configure.ac): Likewise.
15030         * modules/y0 (configure.ac): Likewise.
15031         * modules/y1 (configure.ac): Likewise.
15032         * modules/yn (configure.ac): Likewise.
15033
15034 2010-01-24  Bruno Haible  <bruno@clisp.org>
15035
15036         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
15037         * tests/test-acosl.c (x): New variable.
15038         (main): Store argument in x and fetch it from x.
15039         * tests/test-asinl.c (x): New variable.
15040         (main): Store argument in x and fetch it from x.
15041         * tests/test-atanl.c (x): New variable.
15042         (main): Store argument in x and fetch it from x.
15043         * tests/test-cosl.c (x): New variable.
15044         (main): Store argument in x and fetch it from x.
15045         * tests/test-expl.c (x): New variable.
15046         (main): Store argument in x and fetch it from x.
15047         * tests/test-logl.c (x): New variable.
15048         (main): Store argument in x and fetch it from x.
15049         * tests/test-sinl.c (x): New variable.
15050         (main): Store argument in x and fetch it from x.
15051         * tests/test-sqrtl.c (x): New variable.
15052         (main): Store argument in x and fetch it from x.
15053         * tests/test-tanl.c (x): New variable.
15054         (main): Store argument in x and fetch it from x.
15055
15056 2010-01-24  Bruno Haible  <bruno@clisp.org>
15057
15058         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
15059         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
15060         assignments to the initial TESTS_ENVIRONMENT.
15061         * doc/gnulib.texi (Unit test modules): Document it.
15062         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
15063         TESTS_ENVIRONMENT.
15064         * modules/btowc-tests (Makefile.am): Likewise.
15065         * modules/c-stack-tests (Makefile.am): Likewise.
15066         * modules/c-strcase-tests (Makefile.am): Likewise.
15067         * modules/copy-file-tests (Makefile.am): Likewise.
15068         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
15069         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
15070         * modules/mbrtowc-tests (Makefile.am): Likewise.
15071         * modules/mbscasecmp-tests (Makefile.am): Likewise.
15072         * modules/mbscasestr-tests (Makefile.am): Likewise.
15073         * modules/mbschr-tests (Makefile.am): Likewise.
15074         * modules/mbscspn-tests (Makefile.am): Likewise.
15075         * modules/mbsinit-tests (Makefile.am): Likewise.
15076         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
15077         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
15078         * modules/mbspbrk-tests (Makefile.am): Likewise.
15079         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
15080         * modules/mbsrchr-tests (Makefile.am): Likewise.
15081         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
15082         * modules/mbsspn-tests (Makefile.am): Likewise.
15083         * modules/mbsstr-tests (Makefile.am): Likewise.
15084         * modules/nl_langinfo-tests (Makefile.am): Likewise.
15085         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
15086         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
15087         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
15088         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
15089         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
15090         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
15091         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
15092         * modules/wcrtomb-tests (Makefile.am): Likewise.
15093         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
15094         * modules/wcsrtombs-tests (Makefile.am): Likewise.
15095         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
15096         assignments from TESTS_ENVIRONMENT.
15097         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
15098         augmentation.
15099         * modules/argp-version-etc-tests (Makefile.am): Likewise.
15100         * modules/atexit-tests (Makefile.am): Likewise.
15101         * modules/binary-io-tests (Makefile.am): Likewise.
15102         * modules/closein-tests (Makefile.am): Likewise.
15103         * modules/dprintf-posix-tests (Makefile.am): Likewise.
15104         * modules/exclude-tests (Makefile.am): Likewise.
15105         * modules/fflush-tests (Makefile.am): Likewise.
15106         * modules/fpending-tests (Makefile.am): Likewise.
15107         * modules/fprintf-posix-tests (Makefile.am): Likewise.
15108         * modules/freadahead-tests (Makefile.am): Likewise.
15109         * modules/freadptr-tests (Makefile.am): Likewise.
15110         * modules/freadseek-tests (Makefile.am): Likewise.
15111         * modules/fseek-tests (Makefile.am): Likewise.
15112         * modules/fseeko-tests (Makefile.am): Likewise.
15113         * modules/ftell-tests (Makefile.am): Likewise.
15114         * modules/ftello-tests (Makefile.am): Likewise.
15115         * modules/idpriv-drop-tests (Makefile.am): Likewise.
15116         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
15117         * modules/lseek-tests (Makefile.am): Likewise.
15118         * modules/parse-duration-tests (Makefile.am): Likewise.
15119         * modules/perror-tests (Makefile.am): Likewise.
15120         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
15121         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
15122         * modules/pipe-tests (Makefile.am): Likewise.
15123         * modules/pread-tests (Makefile.am): Likewise.
15124         * modules/printf-posix-tests (Makefile.am): Likewise.
15125         * modules/select-tests (Makefile.am): Likewise.
15126         * modules/sigpipe-tests (Makefile.am): Likewise.
15127         * modules/tsearch-tests (Makefile.am): Likewise.
15128         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
15129         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
15130         * modules/uniname/uniname-tests (Makefile.am): Likewise.
15131         * modules/uniwidth/width-tests (Makefile.am): Likewise.
15132         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
15133         * modules/version-etc-tests (Makefile.am): Likewise.
15134         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
15135         * modules/vprintf-posix-tests (Makefile.am): Likewise.
15136         * modules/xalloc-die-tests (Makefile.am): Likewise.
15137         * modules/xprintf-posix-tests (Makefile.am): Likewise.
15138         * modules/xstrtoimax-tests (Makefile.am): Likewise.
15139         * modules/xstrtol-tests (Makefile.am): Likewise.
15140         * modules/xstrtoumax-tests (Makefile.am): Likewise.
15141         * modules/yesno-tests (Makefile.am): Likewise.
15142         Suggested by Jim Meyering.
15143
15144 2010-01-24  Bruno Haible  <bruno@clisp.org>
15145
15146         More documentation.
15147         * doc/gnulib.texi (Writing modules): New chapter.
15148         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
15149         the new chapter.
15150
15151 2010-01-24  Jim Meyering  <meyering@redhat.com>
15152
15153         maint.mk: do not prepend "./" after filtering
15154         * top/maint.mk (_prepend_srcdir_prefix): New variable
15155         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
15156         "./" when $(srcdir) is ".".
15157
15158         define STREQ(a,b) consistently, removing useless parentheses
15159         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
15160         since the only risk is that "a" or "b" contains an unparenthesized
15161         comma, but if either did that, STREQ would have 3 or more arguments.
15162         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
15163         * lib/fts.c (STREQ): Remove unnecessary parentheses.
15164         * lib/hash-triple.c (STREQ): Likewise.
15165         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
15166         * lib/getugroups.c (STREQ): Likewise.
15167
15168 2010-01-23  Jim Meyering  <meyering@redhat.com>
15169
15170         maint.mk: fix syntax-check in a non-srcdir build directory
15171         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
15172         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
15173
15174 2010-01-22  Jim Meyering  <meyering@redhat.com>
15175
15176         userspec: add unit tests
15177         * tests/test-userspec.c: New file.
15178         * modules/userspec-tests: Likewise.
15179
15180 2010-01-21  Jim Meyering  <meyering@redhat.com>
15181
15182         maint.mk: handle source file names containing "." robustly
15183         * top/maint.mk (_dot_escaped_srcdir): Define.
15184         (VC_LIST): Use it in LHS of sed substitution.
15185
15186 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
15187
15188         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
15189         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
15190         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
15191         from a non-srcdir build.
15192
15193 2010-01-20  Eric Blake  <ebb9@byu.net>
15194
15195         warn-on-use: use instead of link-warning
15196         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
15197         * modules/unistd (Depends-on, Makefile.am): Likewise.
15198         * modules/arpa_inet (Depends-on): Replace link-warning with
15199         warn-on-use.
15200         (Makefile.am): Update rules accordingly.
15201         * modules/ctype (Depends-on, Makefile.am): Likewise.
15202         * modules/dirent (Depends-on, Makefile.am): Likewise.
15203         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
15204         * modules/inttypes (Depends-on, Makefile.am): Likewise.
15205         * modules/langinfo (Depends-on, Makefile.am): Likewise.
15206         * modules/locale (Depends-on, Makefile.am): Likewise.
15207         * modules/math (Depends-on, Makefile.am): Likewise.
15208         * modules/search (Depends-on, Makefile.am): Likewise.
15209         * modules/signal (Depends-on, Makefile.am): Likewise.
15210         * modules/spawn (Depends-on, Makefile.am): Likewise.
15211         * modules/stdlib (Depends-on, Makefile.am): Likewise.
15212         * modules/string (Depends-on, Makefile.am): Likewise.
15213         * modules/strings (Depends-on, Makefile.am): Likewise.
15214         * modules/sys_file (Depends-on, Makefile.am): Likewise.
15215         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
15216         * modules/sys_select (Depends-on, Makefile.am): Likewise.
15217         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
15218         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
15219         * modules/sys_times (Depends-on, Makefile.am): Likewise.
15220         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
15221         * modules/wchar (Depends-on, Makefile.am): Likewise.
15222         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
15223         should be poisoned.
15224         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
15225         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
15226         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
15227         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
15228         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15229         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15230         * m4/math_h.m4 (gl_MATH_H): Likewise.
15231         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15232         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
15233         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15234         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
15235         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
15236         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
15237         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
15238         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
15239         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
15240         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15241         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15242         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
15243         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15244         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15245         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15246         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15247         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
15248         GL_LINK_WARNING.
15249         * lib/ctype.in.h: Likewise.
15250         * lib/dirent.in.h: Likewise.
15251         * lib/fcntl.in.h: Likewise.
15252         * lib/inttypes.in.h: Likewise.
15253         * lib/langinfo.in.h: Likewise.
15254         * lib/locale.in.h: Likewise.
15255         * lib/math.in.h: Likewise.
15256         * lib/search.in.h: Likewise.
15257         * lib/signal.in.h: Likewise.
15258         * lib/spawn.in.h: Likewise.
15259         * lib/stdio.in.h: Likewise.
15260         * lib/stdlib.in.h: Likewise.
15261         * lib/string.in.h: Likewise.
15262         * lib/strings.in.h: Likewise.
15263         * lib/sys_file.in.h: Likewise.
15264         * lib/sys_ioctl.in.h: Likewise.
15265         * lib/sys_select.in.h: Likewise.
15266         * lib/sys_socket.in.h: Likewise.
15267         * lib/sys_stat.in.h: Likewise.
15268         * lib/sys_times.in.h: Likewise.
15269         * lib/sys_utsname.in.h: Likewise.
15270         * lib/unistd.in.h: Likewise.
15271         * lib/wchar.in.h: Likewise.
15272
15273 2010-01-20  Bruno Haible  <bruno@clisp.org>
15274
15275         Avoid duplicate -lm.
15276         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
15277         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
15278         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
15279         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
15280         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
15281         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
15282         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
15283         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
15284         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
15285         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
15286         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
15287         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15288         Reported by Paolo Bonzini.
15289
15290 2010-01-19  Bruno Haible  <bruno@clisp.org>
15291
15292         langinfo, nl_langinfo: Relicense under LGPLv2+.
15293         * modules/langinfo (License): Change to LGPLv2+.
15294         * modules/nl_langinfo (License): Likewise.
15295         Patch by David Lutterkort <lutter@redhat.com>.
15296
15297 2010-01-19  Bruno Haible  <bruno@clisp.org>
15298
15299         Avoid compilation error with cc on OSF/1 5.1.
15300         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
15301         statement, not before.
15302         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15303
15304 2010-01-18  Bruno Haible  <bruno@clisp.org>
15305
15306         Avoid a link error due to the __printf__ symbol.
15307         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
15308         and 2.6.x.
15309         (__format__, __printf__): Remove definitions.
15310         * lib/argp-fmtstream.h: Likewise.
15311         * lib/argp.h: Likewise.
15312         * lib/error.h: Likewise.
15313         * lib/vasnprintf.h: Likewise.
15314         * lib/xprintf.h: Likewise.
15315         * lib/xvasprintf.h: Likewise.
15316         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15317
15318 2010-01-18  Bruno Haible  <bruno@clisp.org>
15319
15320         Tests for module 'tanl'.
15321         * modules/tanl-tests: New file.
15322         * tests/test-tanl.c: New file.
15323
15324         Tests for module 'sqrtl'.
15325         * modules/sqrtl-tests: New file.
15326         * tests/test-sqrtl.c: New file.
15327
15328         Tests for module 'sinl'.
15329         * modules/sinl-tests: New file.
15330         * tests/test-sinl.c: New file.
15331
15332         Tests for module 'logl'.
15333         * modules/logl-tests: New file.
15334         * tests/test-logl.c: New file.
15335
15336         Tests for module 'expl'.
15337         * modules/expl-tests: New file.
15338         * tests/test-expl.c: New file.
15339
15340         Tests for module 'cosl'.
15341         * modules/cosl-tests: New file.
15342         * tests/test-cosl.c: New file.
15343
15344         Tests for module 'atanl'.
15345         * modules/atanl-tests: New file.
15346         * tests/test-atanl.c: New file.
15347
15348         Tests for module 'asinl'.
15349         * modules/asinl-tests: New file.
15350         * tests/test-asinl.c: New file.
15351
15352         Tests for module 'acosl'.
15353         * modules/acosl-tests: New file.
15354         * tests/test-acosl.c: New file.
15355
15356         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
15357         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
15358         tanl): Use the standard gnulib idiom.
15359         * lib/cosl.c: Don't include trigl.c and sincosl.c.
15360         * lib/sinl.c: Likewise.
15361         * lib/tanl.c: Don't include trigl.c.
15362         (kernel_tanl): Make static.
15363         * lib/sincosl.c: Include trigl.h first.
15364         * lib/trigl.c: Likewise.
15365         * m4/acosl.m4: New file.
15366         * m4/asinl.m4: New file.
15367         * m4/atanl.m4: New file.
15368         * m4/cosl.m4: New file.
15369         * m4/expl.m4: New file.
15370         * m4/logl.m4: New file.
15371         * m4/sinl.m4: New file.
15372         * m4/sqrtl.m4: New file.
15373         * m4/tanl.m4: New file.
15374         * m4/mathl.m4: Remove file.
15375         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
15376         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
15377         Don't initialize GNULIB_MATHL.
15378         * modules/acosl: New file.
15379         * modules/asinl: New file.
15380         * modules/atanl: New file.
15381         * modules/cosl: New file.
15382         * modules/expl: New file.
15383         * modules/logl: New file.
15384         * modules/sinl: New file.
15385         * modules/sqrtl: New file.
15386         * modules/tanl: New file.
15387         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
15388         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
15389         substitute GNULIB_MATHL.
15390         * modules/mathl: Rewritten.
15391         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
15392         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
15393         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
15394         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
15395         * doc/posix-functions/expl.texi: Mention the 'expl' module.
15396         * doc/posix-functions/logl.texi: Mention the 'logl' module.
15397         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
15398         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
15399         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
15400
15401 2010-01-18  Bruno Haible  <bruno@clisp.org>
15402
15403         sqrt: Make gl_FUNC_SQRT requirable.
15404         * m4/sqrt.m4: New file.
15405         * modules/sqrt (Files): Add it.
15406         (configure.ac): Invoke gl_FUNC_SQRT.
15407
15408 2010-01-18  Bruno Haible  <bruno@clisp.org>
15409
15410         New modules for common <math.h> functions.
15411         * m4/mathfunc.m4: New file.
15412         * modules/acos: New file.
15413         * modules/asin: New file.
15414         * modules/atan: New file.
15415         * modules/atan2: New file.
15416         * modules/cbrt: New file.
15417         * modules/copysign: New file.
15418         * modules/cos: New file.
15419         * modules/cosh: New file.
15420         * modules/erf: New file.
15421         * modules/erfc: New file.
15422         * modules/exp: New file.
15423         * modules/fabs: New file.
15424         * modules/fmod: New file.
15425         * modules/hypot: New file.
15426         * modules/j0: New file.
15427         * modules/j1: New file.
15428         * modules/jn: New file.
15429         * modules/ldexp: New file.
15430         * modules/lgamma: New file.
15431         * modules/log: New file.
15432         * modules/log10: New file.
15433         * modules/log1p: New file.
15434         * modules/logb: New file.
15435         * modules/modf: New file.
15436         * modules/nextafter: New file.
15437         * modules/pow: New file.
15438         * modules/remainder: New file.
15439         * modules/rint: New file.
15440         * modules/sin: New file.
15441         * modules/sinh: New file.
15442         * modules/sqrt: New file.
15443         * modules/tan: New file.
15444         * modules/tanh: New file.
15445         * modules/y0: New file.
15446         * modules/y1: New file.
15447         * modules/yn: New file.
15448         * doc/posix-functions/acos.texi: Mention the 'acos' module.
15449         * doc/posix-functions/asin.texi: Mention the 'asin' module.
15450         * doc/posix-functions/atan.texi: Mention the 'atan' module.
15451         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
15452         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
15453         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
15454         * doc/posix-functions/cos.texi: Mention the 'cos' module.
15455         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
15456         * doc/posix-functions/erf.texi: Mention the 'erf' module.
15457         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
15458         * doc/posix-functions/exp.texi: Mention the 'exp' module.
15459         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
15460         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
15461         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
15462         * doc/posix-functions/j0.texi: Mention the 'j0' module.
15463         * doc/posix-functions/j1.texi: Mention the 'j1' module.
15464         * doc/posix-functions/jn.texi: Mention the 'jn' module.
15465         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
15466         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
15467         * doc/posix-functions/log.texi: Mention the 'log' module.
15468         * doc/posix-functions/log10.texi: Mention the 'log10' module.
15469         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
15470         * doc/posix-functions/logb.texi: Mention the 'logb' module.
15471         * doc/posix-functions/modf.texi: Mention the 'modf' module.
15472         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
15473         * doc/posix-functions/pow.texi: Mention the 'pow' module.
15474         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
15475         * doc/posix-functions/rint.texi: Mention the 'rint' module.
15476         * doc/posix-functions/sin.texi: Mention the 'sin' module.
15477         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
15478         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
15479         * doc/posix-functions/tan.texi: Mention the 'tan' module.
15480         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
15481         * doc/posix-functions/y0.texi: Mention the 'y0' module.
15482         * doc/posix-functions/y1.texi: Mention the 'y1' module.
15483         * doc/posix-functions/yn.texi: Mention the 'yn' module.
15484
15485 2010-01-18  Jim Meyering  <meyering@redhat.com>
15486
15487         ignore-value: relax license to LGPLv2+
15488         * modules/ignore-value (License): Relax to LGPLv2+.
15489
15490         getdate: don't leak when TZ contains two or more '"'s
15491         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
15492         double quote in TZ after the first one.
15493
15494         readtokens: do not leak internal token_lengths buffer
15495         * lib/readtokens.c (readtokens): Free the local, lengths,
15496         when the supplied "token_lengths" parameter is NULL.
15497
15498 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15499
15500         Fix a couple of missing LIBTHREAD link failures on AIX.
15501         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
15502         $(LIBTHREAD).
15503         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
15504
15505         Link test-poll against INET_PTON_LIB.
15506         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
15507         for inet_pton on Solaris 10.
15508
15509 2010-01-17  Bruno Haible  <bruno@clisp.org>
15510
15511         unistdio/*-sprintf: Fix typo in module description.
15512         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
15513         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
15514         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
15515         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
15516         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
15517         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
15518         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
15519         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15520
15521 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15522
15523         gnulib-tool: fix filelist for AIX, HP-UX ksh.
15524         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
15525         variables in shell case patterns, for AIX and HP-UX ksh.
15526
15527         Split large sed scripts, for HP-UX sed.
15528         * modules/stdio: Split sed scripts around 50 sed commands,
15529         to avoid HP-UX limit of 99 commands, in the near future.
15530         * modules/string: Likewise.
15531         * modules/unistd: Likewise.
15532
15533         gnulib-tool: avoid writing in the current directory.
15534         * gnulib-tool (func_emit_lib_Makefile_am)
15535         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
15536         not in the current directory, so concurrent gnulib-tool
15537         instances do not interfere.
15538
15539 2010-01-16  Jim Meyering  <meyering@redhat.com>
15540
15541         doc: update users.txt
15542         * users.txt: Add grep.
15543         (diffutils, gzip): Update URLs.
15544
15545 2010-01-12  Bruno Haible  <bruno@clisp.org>
15546
15547         posix_spawn: Avoid test failure on Cygwin.
15548         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
15549         characters.
15550         Reported by Simon Josefsson.
15551
15552 2010-01-12  Bruno Haible  <bruno@clisp.org>
15553
15554         * tests/test-cond.c (main): When skipping the test, show the reason.
15555
15556 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15557
15558         * lib/striconv.c (str_cd_iconv): Avoid if before free.
15559
15560 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15561
15562         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
15563         VC_LIST_ALWAYS_EXCLUDE_REGEX.
15564
15565 2010-01-12  Eric Blake  <ebb9@byu.net>
15566
15567         build: guarantee AS_VAR_IF
15568         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
15569         (gl_AS_VAR_IF): Move...
15570         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
15571         Reported by Simon Josefsson.
15572
15573 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15574
15575         * lib/stdio.in.h: Fix typo.
15576
15577 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15578
15579         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
15580         libgpg-error.
15581
15582 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15583
15584         * tests/test-xalloc-die.sh: Use $EXEEXT.
15585
15586 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15587             Bruno Haible  <bruno@clisp.org>
15588
15589         getlogin, getlogin_r: Avoid test failure.
15590         * tests/test-getlogin.c: Include <stdio.h>.
15591         (main): Skip the test when the function fails because stdin is not a
15592         tty.
15593         * tests/test-getlogin_r.c: Include <stdio.h>.
15594         (main): Skip the test when the function fails because stdin is not a
15595         tty.
15596
15597 2010-01-11  Eric Blake  <ebb9@byu.net>
15598
15599         tests: avoid more large file warnings
15600         * tests/test-fflush.c: Avoid warning about ftell use.
15601         * tests/test-fseek.c: Avoid warning about fseek use.
15602
15603 2010-01-10  Bruno Haible  <bruno@clisp.org>
15604
15605         nproc: Work better on Linux when /proc and /sys are not mounted.
15606         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
15607         as lower bound when, on glibc/Linux systems,
15608         sysconf (_SC_NPROCESSORS_CONF) returns 1.
15609         Suggested by Pádraig Brady <P@draigbrady.com>.
15610         Reported by Dmitry V. Levin <ldv@altlinux.org>.
15611
15612         nproc: Refactor.
15613         * lib/nproc.c (num_processors_via_affinity_mask): New function,
15614         extracted from num_processors.
15615         (num_processors): Call it.
15616
15617 2010-01-11  Jim Meyering  <meyering@redhat.com>
15618
15619         utimecmp: avoid new warning from upcoming gcc-4.5.0
15620         * lib/utimecmp.c (BILLION): Define using #define rather than an
15621         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
15622
15623 2010-01-11  Eric Blake  <ebb9@byu.net>
15624
15625         math: add portability warnings for classification macros
15626         * modules/math (Depends-on): Add warn-on-use.
15627         (Makefile.am): Provide new substitutions.
15628         * m4/math_h.m4 (gl_MATH_H): Require inline.
15629         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
15630         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
15631         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
15632         implement warnings.
15633
15634         unistd: warn on use of environ without module
15635         * modules/unistd (Depends-on): Add warn-on-use.
15636         (Makefile.am): Provide new substitutions.
15637         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
15638         * lib/unistd.in.h (environ): Wrap with a warning helper function.
15639
15640         stdio: warn on suspicious uses
15641         * modules/stdio (Depends-on): Add warn-on-use.
15642         (Makefile.am): Provide new substitutions.
15643         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
15644         fseeko.
15645         * lib/stdio.in.h (gets): Always warn on use.
15646         (fseek, ftell): Adjust when warnings are issued, and honor
15647         _GL_NO_LARGE_FILES as a way to silence the warning.
15648         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
15649         any warning about large file offsets.
15650         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
15651         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
15652         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
15653         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
15654         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
15655         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
15656         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
15657         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
15658
15659         warn-on-use: new module
15660         * modules/warn-on-use: New file.
15661         * build-aux/warn-on-use.h: Likewise.
15662         * m4/warn-on-use.m4: Likewise.
15663         * MODULES.html.sh (Support for building): Mention it.
15664
15665 2010-01-10  Bruno Haible  <bruno@clisp.org>
15666
15667         Tests for module 'unistr/u32-strdup'.
15668         * modules/unistr/u32-strdup-tests: New file.
15669         * tests/unistr/test-u32-strdup.c: New file.
15670
15671         Tests for module 'unistr/u16-strdup'.
15672         * modules/unistr/u16-strdup-tests: New file.
15673         * tests/unistr/test-u16-strdup.c: New file.
15674
15675         Tests for module 'unistr/u8-strdup'.
15676         * modules/unistr/u8-strdup-tests: New file.
15677         * tests/unistr/test-u8-strdup.c: New file.
15678         * tests/unistr/test-strdup.h: New file.
15679
15680         Tests for module 'unistr/u32-strncmp'.
15681         * modules/unistr/u32-strncmp-tests: New file.
15682         * tests/unistr/test-u32-strncmp.c: New file.
15683
15684         Tests for module 'unistr/u16-strncmp'.
15685         * modules/unistr/u16-strncmp-tests: New file.
15686         * tests/unistr/test-u16-strncmp.c: New file.
15687
15688         Tests for module 'unistr/u8-strncmp'.
15689         * modules/unistr/u8-strncmp-tests: New file.
15690         * tests/unistr/test-u8-strncmp.c: New file.
15691         * tests/unistr/test-strncmp.h: New file.
15692
15693         Tests for module 'unistr/u32-strcoll'.
15694         * modules/unistr/u32-strcoll-tests: New file.
15695         * tests/unistr/test-u32-strcoll.c: New file.
15696
15697         Tests for module 'unistr/u16-strcoll'.
15698         * modules/unistr/u16-strcoll-tests: New file.
15699         * tests/unistr/test-u16-strcoll.c: New file.
15700
15701         Tests for module 'unistr/u8-strcoll'.
15702         * modules/unistr/u8-strcoll-tests: New file.
15703         * tests/unistr/test-u8-strcoll.c: New file.
15704
15705         Tests for module 'unistr/u32-strcmp'.
15706         * modules/unistr/u32-strcmp-tests: New file.
15707         * tests/unistr/test-u32-strcmp.c: New file.
15708         * tests/unistr/test-u32-strcmp.h: New file.
15709
15710         Tests for module 'unistr/u16-strcmp'.
15711         * modules/unistr/u16-strcmp-tests: New file.
15712         * tests/unistr/test-u16-strcmp.c: New file.
15713         * tests/unistr/test-u16-strcmp.h: New file.
15714
15715         Tests for module 'unistr/u8-strcmp'.
15716         * modules/unistr/u8-strcmp-tests: New file.
15717         * tests/unistr/test-u8-strcmp.c: New file.
15718         * tests/unistr/test-u8-strcmp.h: New file.
15719         * tests/unistr/test-strcmp.h: New file.
15720
15721         Tests for module 'unistr/u32-strncat'.
15722         * modules/unistr/u32-strncat-tests: New file.
15723         * tests/unistr/test-u32-strncat.c: New file.
15724
15725         Tests for module 'unistr/u16-strncat'.
15726         * modules/unistr/u16-strncat-tests: New file.
15727         * tests/unistr/test-u16-strncat.c: New file.
15728
15729         Tests for module 'unistr/u8-strncat'.
15730         * modules/unistr/u8-strncat-tests: New file.
15731         * tests/unistr/test-u8-strncat.c: New file.
15732         * tests/unistr/test-strncat.h: New file.
15733
15734         Tests for module 'unistr/u32-strcat'.
15735         * modules/unistr/u32-strcat-tests: New file.
15736         * tests/unistr/test-u32-strcat.c: New file.
15737
15738         Tests for module 'unistr/u16-strcat'.
15739         * modules/unistr/u16-strcat-tests: New file.
15740         * tests/unistr/test-u16-strcat.c: New file.
15741
15742         Tests for module 'unistr/u8-strcat'.
15743         * modules/unistr/u8-strcat-tests: New file.
15744         * tests/unistr/test-u8-strcat.c: New file.
15745         * tests/unistr/test-strcat.h: New file.
15746
15747         Tests for module 'unistr/u32-stpncpy'.
15748         * modules/unistr/u32-stpncpy-tests: New file.
15749         * tests/unistr/test-u32-stpncpy.c: New file.
15750
15751         Tests for module 'unistr/u16-stpncpy'.
15752         * modules/unistr/u16-stpncpy-tests: New file.
15753         * tests/unistr/test-u16-stpncpy.c: New file.
15754
15755         Tests for module 'unistr/u8-stpncpy'.
15756         * modules/unistr/u8-stpncpy-tests: New file.
15757         * tests/unistr/test-u8-stpncpy.c: New file.
15758         * tests/unistr/test-stpncpy.h: New file.
15759
15760         Tests for module 'unistr/u32-strncpy'.
15761         * modules/unistr/u32-strncpy-tests: New file.
15762         * tests/unistr/test-u32-strncpy.c: New file.
15763
15764         Tests for module 'unistr/u16-strncpy'.
15765         * modules/unistr/u16-strncpy-tests: New file.
15766         * tests/unistr/test-u16-strncpy.c: New file.
15767
15768         Tests for module 'unistr/u8-strncpy'.
15769         * modules/unistr/u8-strncpy-tests: New file.
15770         * tests/unistr/test-u8-strncpy.c: New file.
15771         * tests/unistr/test-strncpy.h: New file.
15772
15773         Tests for module 'unistr/u32-stpcpy'.
15774         * modules/unistr/u32-stpcpy-tests: New file.
15775         * tests/unistr/test-u32-stpcpy.c: New file.
15776
15777         Tests for module 'unistr/u16-stpcpy'.
15778         * modules/unistr/u16-stpcpy-tests: New file.
15779         * tests/unistr/test-u16-stpcpy.c: New file.
15780
15781         Tests for module 'unistr/u8-stpcpy'.
15782         * modules/unistr/u8-stpcpy-tests: New file.
15783         * tests/unistr/test-u8-stpcpy.c: New file.
15784         * tests/unistr/test-stpcpy.h: New file.
15785
15786         Tests for module 'unistr/u32-strcpy'.
15787         * modules/unistr/u32-strcpy-tests: New file.
15788         * tests/unistr/test-u32-strcpy.c: New file.
15789
15790         Tests for module 'unistr/u16-strcpy'.
15791         * modules/unistr/u16-strcpy-tests: New file.
15792         * tests/unistr/test-u16-strcpy.c: New file.
15793
15794         Tests for module 'unistr/u8-strcpy'.
15795         * modules/unistr/u8-strcpy-tests: New file.
15796         * tests/unistr/test-u8-strcpy.c: New file.
15797         * tests/unistr/test-strcpy.h: New file.
15798
15799         Tests for module 'unistr/u32-strnlen'.
15800         * modules/unistr/u32-strnlen-tests: New file.
15801         * tests/unistr/test-u32-strnlen.c: New file.
15802
15803         Tests for module 'unistr/u16-strnlen'.
15804         * modules/unistr/u16-strnlen-tests: New file.
15805         * tests/unistr/test-u16-strnlen.c: New file.
15806
15807         Tests for module 'unistr/u8-strnlen'.
15808         * modules/unistr/u8-strnlen-tests: New file.
15809         * tests/unistr/test-u8-strnlen.c: New file.
15810         * tests/unistr/test-strnlen.h: New file.
15811
15812         Tests for module 'unistr/u32-strlen'.
15813         * modules/unistr/u32-strlen-tests: New file.
15814         * tests/unistr/test-u32-strlen.c: New file.
15815
15816         Tests for module 'unistr/u16-strlen'.
15817         * modules/unistr/u16-strlen-tests: New file.
15818         * tests/unistr/test-u16-strlen.c: New file.
15819
15820         Tests for module 'unistr/u8-strlen'.
15821         * modules/unistr/u8-strlen-tests: New file.
15822         * tests/unistr/test-u8-strlen.c: New file.
15823
15824         Tests for module 'unistr/u32-prev'.
15825         * modules/unistr/u32-prev-tests: New file.
15826         * tests/unistr/test-u32-prev.c: New file.
15827
15828         Tests for module 'unistr/u16-prev'.
15829         * modules/unistr/u16-prev-tests: New file.
15830         * tests/unistr/test-u16-prev.c: New file.
15831
15832         Tests for module 'unistr/u8-prev'.
15833         * modules/unistr/u8-prev-tests: New file.
15834         * tests/unistr/test-u8-prev.c: New file.
15835
15836         Tests for module 'unistr/u32-next'.
15837         * modules/unistr/u32-next-tests: New file.
15838         * tests/unistr/test-u32-next.c: New file.
15839
15840         Tests for module 'unistr/u16-next'.
15841         * modules/unistr/u16-next-tests: New file.
15842         * tests/unistr/test-u16-next.c: New file.
15843
15844         Tests for module 'unistr/u8-next'.
15845         * modules/unistr/u8-next-tests: New file.
15846         * tests/unistr/test-u8-next.c: New file.
15847
15848         Tests for module 'unistr/u32-strmbtouc'.
15849         * modules/unistr/u32-strmbtouc-tests: New file.
15850         * tests/unistr/test-u32-strmbtouc.c: New file.
15851
15852         Tests for module 'unistr/u16-strmbtouc'.
15853         * modules/unistr/u16-strmbtouc-tests: New file.
15854         * tests/unistr/test-u16-strmbtouc.c: New file.
15855
15856         Tests for module 'unistr/u8-strmbtouc'.
15857         * modules/unistr/u8-strmbtouc-tests: New file.
15858         * tests/unistr/test-u8-strmbtouc.c: New file.
15859
15860         Tests for module 'unistr/u32-strmblen'.
15861         * modules/unistr/u32-strmblen-tests: New file.
15862         * tests/unistr/test-u32-strmblen.c: New file.
15863
15864         Tests for module 'unistr/u16-strmblen'.
15865         * modules/unistr/u16-strmblen-tests: New file.
15866         * tests/unistr/test-u16-strmblen.c: New file.
15867
15868         Tests for module 'unistr/u8-strmblen'.
15869         * modules/unistr/u8-strmblen-tests: New file.
15870         * tests/unistr/test-u8-strmblen.c: New file.
15871
15872         Tests for module 'unistr/u32-cpy-alloc'.
15873         * modules/unistr/u32-cpy-alloc-tests: New file.
15874         * tests/unistr/test-u32-cpy-alloc.c: New file.
15875
15876         Tests for module 'unistr/u16-cpy-alloc'.
15877         * modules/unistr/u16-cpy-alloc-tests: New file.
15878         * tests/unistr/test-u16-cpy-alloc.c: New file.
15879
15880         Tests for module 'unistr/u8-cpy-alloc'.
15881         * modules/unistr/u8-cpy-alloc-tests: New file.
15882         * tests/unistr/test-u8-cpy-alloc.c: New file.
15883         * tests/unistr/test-cpy-alloc.h: New file.
15884
15885         Tests for module 'unistr/u32-mbsnlen'.
15886         * modules/unistr/u32-mbsnlen-tests: New file.
15887         * tests/unistr/test-u32-mbsnlen.c: New file.
15888
15889         Tests for module 'unistr/u16-mbsnlen'.
15890         * modules/unistr/u16-mbsnlen-tests: New file.
15891         * tests/unistr/test-u16-mbsnlen.c: New file.
15892
15893         Tests for module 'unistr/u8-mbsnlen'.
15894         * modules/unistr/u8-mbsnlen-tests: New file.
15895         * tests/unistr/test-u8-mbsnlen.c: New file.
15896
15897         Tests for module 'unistr/u32-chr'.
15898         * modules/unistr/u32-chr-tests: New file.
15899         * tests/unistr/test-u32-chr.c: New file.
15900
15901         Tests for module 'unistr/u16-chr'.
15902         * modules/unistr/u16-chr-tests: New file.
15903         * tests/unistr/test-u16-chr.c: New file.
15904
15905         Tests for module 'unistr/u8-chr'.
15906         * modules/unistr/u8-chr-tests: New file.
15907         * tests/unistr/test-u8-chr.c: New file.
15908         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
15909
15910         Tests for module 'unistr/u32-cmp2'.
15911         * modules/unistr/u32-cmp2-tests: New file.
15912         * tests/unistr/test-u32-cmp2.c: New file.
15913
15914         Tests for module 'unistr/u16-cmp2'.
15915         * modules/unistr/u16-cmp2-tests: New file.
15916         * tests/unistr/test-u16-cmp2.c: New file.
15917
15918         Tests for module 'unistr/u8-cmp2'.
15919         * modules/unistr/u8-cmp2-tests: New file.
15920         * tests/unistr/test-u8-cmp2.c: New file.
15921         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
15922
15923         Tests for module 'unistr/u32-cmp'.
15924         * modules/unistr/u32-cmp-tests: New file.
15925         * tests/unistr/test-u32-cmp.c: New file.
15926
15927         Tests for module 'unistr/u16-cmp'.
15928         * modules/unistr/u16-cmp-tests: New file.
15929         * tests/unistr/test-u16-cmp.c: New file.
15930
15931         Tests for module 'unistr/u8-cmp'.
15932         * modules/unistr/u8-cmp-tests: New file.
15933         * tests/unistr/test-u8-cmp.c: New file.
15934         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
15935
15936         Tests for module 'unistr/u32-set'.
15937         * modules/unistr/u32-set-tests: New file.
15938         * tests/unistr/test-u32-set.c: New file.
15939
15940         Tests for module 'unistr/u16-set'.
15941         * modules/unistr/u16-set-tests: New file.
15942         * tests/unistr/test-u16-set.c: New file.
15943
15944         Tests for module 'unistr/u8-set'.
15945         * modules/unistr/u8-set-tests: New file.
15946         * tests/unistr/test-u8-set.c: New file.
15947         * tests/unistr/test-set.h: New file.
15948
15949         Tests for module 'unistr/u32-move'.
15950         * modules/unistr/u32-move-tests: New file.
15951         * tests/unistr/test-u32-move.c: New file.
15952
15953         Tests for module 'unistr/u16-move'.
15954         * modules/unistr/u16-move-tests: New file.
15955         * tests/unistr/test-u16-move.c: New file.
15956
15957         Tests for module 'unistr/u8-move'.
15958         * modules/unistr/u8-move-tests: New file.
15959         * tests/unistr/test-u8-move.c: New file.
15960         * tests/unistr/test-move.h: New file.
15961
15962         Tests for module 'unistr/u32-cpy'.
15963         * modules/unistr/u32-cpy-tests: New file.
15964         * tests/unistr/test-u32-cpy.c: New file.
15965
15966         Tests for module 'unistr/u16-cpy'.
15967         * modules/unistr/u16-cpy-tests: New file.
15968         * tests/unistr/test-u16-cpy.c: New file.
15969
15970         Tests for module 'unistr/u8-cpy'.
15971         * modules/unistr/u8-cpy-tests: New file.
15972         * tests/unistr/test-u8-cpy.c: New file.
15973         * tests/unistr/test-cpy.h: New file.
15974
15975 2010-01-09  Bruno Haible  <bruno@clisp.org>
15976
15977         Tests for module 'unistr/u32-uctomb'.
15978         * modules/unistr/u32-uctomb-tests: New file.
15979         * tests/unistr/test-u32-uctomb.c: New file.
15980
15981         Tests for module 'unistr/u16-uctomb'.
15982         * modules/unistr/u16-uctomb-tests: New file.
15983         * tests/unistr/test-u16-uctomb.c: New file.
15984
15985         Tests for module 'unistr/u8-uctomb'.
15986         * modules/unistr/u8-uctomb-tests: New file.
15987         * tests/unistr/test-u8-uctomb.c: New file.
15988
15989         Tests for module 'unistr/u32-mbtoucr'.
15990         * modules/unistr/u32-mbtoucr-tests: New file.
15991         * tests/unistr/test-u32-mbtoucr.c: New file.
15992
15993         Tests for module 'unistr/u16-mbtoucr'.
15994         * modules/unistr/u16-mbtoucr-tests: New file.
15995         * tests/unistr/test-u16-mbtoucr.c: New file.
15996
15997         Tests for module 'unistr/u8-mbtoucr'.
15998         * modules/unistr/u8-mbtoucr-tests: New file.
15999         * tests/unistr/test-u8-mbtoucr.c: New file.
16000
16001         Tests for module 'unistr/u32-mbtouc'.
16002         * modules/unistr/u32-mbtouc-tests: New file.
16003         * tests/unistr/test-u32-mbtouc.c: New file.
16004
16005         Tests for module 'unistr/u16-mbtouc'.
16006         * modules/unistr/u16-mbtouc-tests: New file.
16007         * tests/unistr/test-u16-mbtouc.c: New file.
16008
16009         Tests for module 'unistr/u8-mbtouc'.
16010         * modules/unistr/u8-mbtouc-tests: New file.
16011         * tests/unistr/test-u8-mbtouc.c: New file.
16012
16013         Tests for module 'unistr/u32-mbtouc-unsafe'.
16014         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
16015         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
16016         * tests/unistr/test-u32-mbtouc.h: New file.
16017
16018         Tests for module 'unistr/u16-mbtouc-unsafe'.
16019         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
16020         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
16021         * tests/unistr/test-u16-mbtouc.h: New file.
16022
16023         Tests for module 'unistr/u8-mbtouc-unsafe'.
16024         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
16025         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
16026         * tests/unistr/test-u8-mbtouc.h: New file.
16027
16028         Tests for module 'unistr/u32-mblen'.
16029         * modules/unistr/u32-mblen-tests: New file.
16030         * tests/unistr/test-u32-mblen.c: New file.
16031
16032         Tests for module 'unistr/u16-mblen'.
16033         * modules/unistr/u16-mblen-tests: New file.
16034         * tests/unistr/test-u16-mblen.c: New file.
16035
16036         Tests for module 'unistr/u8-mblen'.
16037         * modules/unistr/u8-mblen-tests: New file.
16038         * tests/unistr/test-u8-mblen.c: New file.
16039
16040         Tests for module 'unistr/u32-to-u16'.
16041         * modules/unistr/u32-to-u16-tests: New file.
16042         * tests/unistr/test-u32-to-u16.c: New file.
16043
16044         Tests for module 'unistr/u32-to-u8'.
16045         * modules/unistr/u32-to-u8-tests: New file.
16046         * tests/unistr/test-u32-to-u8.c: New file.
16047
16048         Tests for module 'unistr/u16-to-u32'.
16049         * modules/unistr/u16-to-u32-tests: New file.
16050         * tests/unistr/test-u16-to-u32.c: New file.
16051
16052         Tests for module 'unistr/u16-to-u8'.
16053         * modules/unistr/u16-to-u8-tests: New file.
16054         * tests/unistr/test-u16-to-u8.c: New file.
16055
16056         Tests for module 'unistr/u8-to-u32'.
16057         * modules/unistr/u8-to-u32-tests: New file.
16058         * tests/unistr/test-u8-to-u32.c: New file.
16059
16060         Tests for module 'unistr/u8-to-u16'.
16061         * modules/unistr/u8-to-u16-tests: New file.
16062         * tests/unistr/test-u8-to-u16.c: New file.
16063
16064         Tests for module 'unistr/u32-check'.
16065         * modules/unistr/u32-check-tests: New file.
16066         * tests/unistr/test-u32-check.c: New file.
16067
16068         Tests for module 'unistr/u16-check'.
16069         * modules/unistr/u16-check-tests: New file.
16070         * tests/unistr/test-u16-check.c: New file.
16071
16072         Tests for module 'unistr/u8-check'.
16073         * modules/unistr/u8-check-tests: New file.
16074         * tests/unistr/test-u8-check.c: New file.
16075
16076         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
16077         (category_equals): New function.
16078         (main): Add more tests.
16079         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
16080
16081         * tests/unictype/test-bidi_byname.c (main): Add more tests.
16082
16083 2010-01-10  Bruno Haible  <bruno@clisp.org>
16084
16085         unistr/u*-strcoll: Try harder to distinguish different strings.
16086         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
16087         compare s1 and s2 to see if they are different.
16088
16089 2010-01-10  Bruno Haible  <bruno@clisp.org>
16090
16091         unistr/u*-stpncpy: Fix the return value.
16092         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
16093         description of the return value consistent with stpncpy in glibc.
16094         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
16095         written non-NUL unit.
16096
16097 2010-01-10  Bruno Haible  <bruno@clisp.org>
16098
16099         unistr/u*-next: Add missing dependencies.
16100         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
16101         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
16102         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
16103
16104 2010-01-10  Bruno Haible  <bruno@clisp.org>
16105
16106         unistr/u8-mbsnlen: Fix return value for incomplete character.
16107         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
16108         u8_mblen.
16109         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
16110         Remove unistr/u8-mblen.
16111         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
16112         u16_mblen.
16113         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
16114         Remove unistr/u16-mblen.
16115
16116 2010-01-10  Bruno Haible  <bruno@clisp.org>
16117
16118         wchar: Fix compilation error when <wchar.h> is used from coreutils.
16119         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
16120         Reported by Brian Gough <bjg@gnu.org> and
16121         Chris Clayton <chris2553@googlemail.com> via
16122         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
16123
16124 2010-01-09  Bruno Haible  <bruno@clisp.org>
16125
16126         unistr/u16-to-u32: Reject invalid input.
16127         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
16128         u16_mbtouc.
16129         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
16130         Remove unistr/u16-mbtouc.
16131
16132         unistr/u16-to-u8: Reject invalid input.
16133         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
16134         u16_mbtouc.
16135         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
16136         Remove unistr/u16-mbtouc.
16137
16138         unistr/u8-to-u32: Reject invalid input.
16139         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
16140         u8_mbtouc.
16141         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
16142         Remove unistr/u8-mbtouc.
16143
16144         unistr/u8-to-u16: Reject invalid input.
16145         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
16146         u8_mbtouc.
16147         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
16148         Remove unistr/u8-mbtouc.
16149
16150 2010-01-09  Bruno Haible  <bruno@clisp.org>
16151
16152         Tests for module 'getlogin'.
16153         * modules/getlogin-tests: New file.
16154         * tests/test-getlogin.c: New file.
16155
16156         New module 'getlogin'.
16157         * lib/unistd.in.h (getlogin): New declaration.
16158         * lib/getlogin.c: New file.
16159         * m4/getlogin.m4: New file.
16160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
16161         HAVE_GETLOGIN.
16162         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
16163         HAVE_GETLOGIN.
16164         * modules/getlogin: New file.
16165         * doc/posix-functions/getlogin.texi: Mention the new module.
16166         Reported by John W. Eaton <jwe@gnu.org>.
16167
16168 2010-01-09  Bruno Haible  <bruno@clisp.org>
16169
16170         getlogin_r: Support for native Windows.
16171         * lib/getlogin_r.c: Include <windows.h>
16172         (getlogin_r): Implement for native Windows.
16173         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
16174         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
16175         via John W. Eaton <jwe@gnu.org>.
16176
16177 2010-01-09  Bruno Haible  <bruno@clisp.org>
16178
16179         getlogin_r: Small fixes.
16180         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
16181         succeeds.
16182         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
16183         before testing whether getlogin_r is declared. No need to set
16184         HAVE_DECL_GETLOGIN_R to 1.
16185         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
16186
16187 2010-01-09  Bruno Haible  <bruno@clisp.org>
16188
16189         * lib/unistd.in.h (getlogin_r): Add comment.
16190
16191 2010-01-09  Bruno Haible  <bruno@clisp.org>
16192
16193         Tests for module 'getlogin_r'.
16194         * modules/getlogin_r-tests: New file.
16195         * tests/test-getlogin_r.c: New file.
16196
16197 2010-01-09  Jim Meyering  <meyering@redhat.com>
16198
16199         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
16200         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
16201         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
16202
16203 2010-01-08  Simon Josefsson  <simon@josefsson.org>
16204
16205         * lib/dup2.c (rpl_dup2): Improve comment.
16206
16207 2010-01-08  Eric Blake  <ebb9@byu.net>
16208
16209         maint.mk: allow packages to add makefile @@ exceptions
16210         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
16211         (sc_makefile_check): Rename...
16212         (sc_makefile_at_at_check): ...to this, and use hook.
16213
16214         dup2: work around mingw bug
16215         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
16216         Reported by Simon Josefsson.
16217
16218 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
16219
16220         glob: Fix C++ compilation.
16221         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
16222         C++.
16223
16224 2010-01-07  Bruno Haible  <bruno@clisp.org>
16225
16226         Fix indentation of wctype.in.h, broken since 2007-01-06.
16227         * lib/wctype.in.h: Fix indentation of preprocessor directives.
16228
16229 2010-01-07  Bruno Haible  <bruno@clisp.org>
16230
16231         mbslen: Avoid collision with system function.
16232         * lib/string.in.h [MirBSD]: Include <wchar.h>.
16233         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
16234         * m4/mbslen.m4: New file.
16235         * modules/mbslen (Files): Add it.
16236         (configure.ac): Invoke gl_MBSLEN.
16237         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
16238         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
16239         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
16240         via Ian Beckwith <ianb@erislabs.net>.
16241
16242 2010-01-07  Bruno Haible  <bruno@clisp.org>
16243
16244         dirent: Document the last fix.
16245         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
16246
16247 2010-01-07  Bruno Haible  <bruno@clisp.org>
16248
16249         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
16250         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
16251         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
16252         va_list are defined.
16253         * doc/posix-headers/stdio.texi: Document the bug of missing types.
16254         Reported by Eric Blake.
16255
16256 2010-01-07  Bruno Haible  <bruno@clisp.org>
16257
16258         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
16259         * modules/xlist (Depends-on): Add 'list',
16260         * modules/xoset (Depends-on): Add 'oset'.
16261         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16262
16263 2010-01-07  Bruno Haible  <bruno@clisp.org>
16264
16265         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
16266         * doc/posix-functions/strncasecmp.texi: Likewise.
16267
16268 2010-01-07  Bruno Haible  <bruno@clisp.org>
16269
16270         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
16271
16272 2010-01-07  John W. Eaton  <jwe@octave.org>
16273
16274         wctype: allow C++ use
16275         * lib/wctype.in.h: Add extern "C" block for C++.
16276
16277 2010-01-06  Eric Blake  <ebb9@byu.net>
16278
16279         maint.mk: detect incorrect GFDL usage
16280         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
16281
16282 2010-01-06  Jim Meyering  <meyering@redhat.com>
16283         and Eric Blake  <ebb9@byu.net>
16284
16285         maint.mk: ignore multi-line copyright in NEWS
16286         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
16287
16288 2010-01-06  Eric Blake  <ebb9@byu.net>
16289
16290         select: add missing dependency
16291         * modules/select-tests (Depends-on): Move sockets dependency...
16292         * modules/select (Depends-on): ...here.
16293         Reported by Ian Beckwith.
16294
16295         doc: regenerate INSTALL
16296         * doc/INSTALL: Reflect recent autoconf update.
16297         * doc/INSTALL.ISO: Likewise.
16298         * doc/INSTALL.UTF-8: Likewise.
16299
16300         pread: fix compilation on glibc
16301         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
16302         Reported by Ralf Wildenhues.
16303
16304         dirent: fix test failure
16305         * lib/dirent.in.h (includes): Guarantee ino_t.
16306         Reported by Ralf Wildenhues.
16307
16308 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
16309
16310         linkat, renameat: avoid bad free
16311         * lib/at-func2.c (at_func2): Fix typo.
16312         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
16313
16314 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16315
16316         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
16317         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
16318         to avoid failure of symlink test later.
16319
16320 2010-01-06  Eric Blake  <ebb9@byu.net>
16321
16322         stdio, unistd: guarantee ssize_t
16323         * lib/unistd.in.h (includes): Ensure that types required by POSIX
16324         2008 are exposed when needed.
16325         * lib/stdio.in.h (includes): Likewise.
16326         Reported by Ralf Wildenhues.
16327
16328 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
16329
16330         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
16331         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
16332         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
16333
16334 2010-01-06  Jim Meyering  <meyering@redhat.com>
16335
16336         readtokens: this module *does* require xalloc.h
16337         It uses only functions that were omitted by the old syntax-check rule.
16338         * lib/readtokens.c: Include "xalloc.h" once again.
16339         * modules/readtokens (Depends-on): Add xalloc.
16340         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
16341
16342 2010-01-05  Eric Blake  <ebb9@byu.net>
16343
16344         maint: support 'make announcement' from a VPATH build
16345         * top/maint.mk (announcement): Look for correct NEWS file.
16346
16347 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
16348
16349         utimens (fdutimens): ignore a negative FD, per contract
16350         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
16351         when we have a valid file descriptor.  Otherwise, using a brand
16352         new glibc (with just-patched futimens that now fails with EBADF)
16353         would cause this function to fail with ENOSYS.
16354         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
16355         See also http://bugzilla.redhat.com/552320.
16356
16357 2010-01-05  Eric Blake  <ebb9@byu.net>
16358
16359         strcase: document what it provides
16360         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
16361         gnulib module.
16362         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
16363         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
16364
16365 2010-01-05  Jim Meyering  <meyering@redhat.com>
16366
16367         maint: remove useless inclusions of "xalloc.h"
16368         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
16369         * lib/readtokens.c: Likewise.
16370         * lib/same.c: Likewise.
16371         * modules/getloadavg (Depends-on): Remove xalloc.
16372         * modules/readtokens: Likewise.
16373         * modules/same: Likewise.
16374
16375         maint.mk: include 4 more function names in alloca.h-checking regexp
16376         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
16377         regexp.  Before, we would give a false-positive (saying alloca.h
16378         is included unnecessarily) when the only uses involved omitted symbols.
16379
16380         xalloc.h: use consistent formatting
16381         * lib/xalloc.h: Move declarations to start in the first column.
16382
16383 2010-01-05  Eric Blake  <ebb9@byu.net>
16384
16385         mkdir: avoid xalloc
16386         * lib/mkdir.c (includes): Drop unused header.
16387         Reported by John W. Eaton.
16388
16389 2010-01-04  Jim Meyering  <meyering@redhat.com>
16390
16391         nl_langinfo: avoid configure-time syntax error
16392         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
16393         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
16394         the empty string.  Don't let that provoke a shell syntax error.
16395
16396         regcomp, regexec, fnmatch: avoid array bounds read error
16397         * lib/regcomp.c (build_equiv_class): From glibc:
16398         Use only the low 24 bits of a findidx return value as an index
16399         into the weights array.  Patch by Ulrich Drepper:
16400         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
16401         * lib/regexec.c (check_node_accept_bytes): Likewise.
16402         * lib/fnmatch_loop.c (FCT): Likewise.
16403
16404         regcomp: skip collseq lookup when there are no rules
16405         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
16406         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
16407
16408         regcomp: recognize ill-formed { } expressions
16409         * lib/regcomp.c (parse_dup_op): From glibc:
16410         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
16411
16412         regcomp: fix typo in comment
16413         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
16414         s/satisfy/satisfies/.
16415
16416         regcomp: sync from glibc: remove dead store
16417         * lib/regcomp.c (duplicate_node_closure): Remove useless
16418         search_duplicated_node call and dead store.
16419
16420         regcomp: sync from glibc; always use nl_langinfo
16421         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
16422         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
16423         * modules/regex (Depends-on): Add nl_langinfo.
16424
16425 2010-01-04  Eric Blake  <ebb9@byu.net>
16426
16427         fdopendir: fix configure test
16428         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
16429
16430 2010-01-01  Bruno Haible  <bruno@clisp.org>
16431
16432         wchar: Remove unused configure check.
16433         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
16434
16435 2010-01-01  Eric Blake  <ebb9@byu.net>
16436
16437         headers: make check of system header explicit
16438         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
16439         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
16440         ourselves.
16441         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16442         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16443         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
16444         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
16445         internals.
16446         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
16447         missing.
16448         Suggested by Bruno Haible.
16449
16450 2010-01-01  Jim Meyering  <meyering@redhat.com>
16451
16452         ChangeLog: tweak to eliminate unnecessary copyright line
16453         * ChangeLog: Remove a copyright line that was mistakenly updated
16454         by today's update-copyright run.  Reported by Eric Blake.
16455
16456         test-update-copyright: don't let envvar setting cause test failure
16457         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
16458
16459 2010-01-01  Bruno Haible  <bruno@clisp.org>
16460
16461         localename: Avoid gcc warning.
16462         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
16463         function if it is not used.
16464
16465 2010-01-01  Jim Meyering  <meyering@redhat.com>
16466
16467         update nearly all FSF copyright year lists to include 2010
16468         Use the same procedure as for 2009, outlined in
16469         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
16470
16471         version-etc: set COPYRIGHT_YEAR to 2010
16472         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
16473
16474 2009-12-31  Eric Blake  <ebb9@byu.net>
16475
16476         doc: correct availability of cygwin 1.5.x getopt
16477         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
16478         variables.
16479         * doc/posix-functions/opterr.texi (opterr): Likewise.
16480         * doc/posix-functions/optind.texi (optind): Likewise.
16481         * doc/posix-functions/optopt.texi (optopt): Likewise.
16482         * doc/posix-functions/tzname.texi (tzname): Likewise.
16483
16484         openat: update maintainer
16485         * modules/openat (Maintainer): Add myself.
16486
16487         utimens: avoid shadowing warning
16488         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
16489         buffers into one, to avoid shadowing, as well as avoiding a
16490         redundant stat.
16491         Reported by Jim Meyering.
16492
16493         test-dup2: avoid compiler warning
16494         * tests/test-dup2.c (is_inheritable): Only define if used.
16495
16496 2010-01-01  Bruno Haible  <bruno@clisp.org>
16497
16498         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
16499         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
16500         defined, use wctomb instead of wcrtomb.
16501
16502 2010-01-01  Bruno Haible  <bruno@clisp.org>
16503
16504         iconv: Reject native Solaris iconv.
16505         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
16506         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
16507
16508 2009-12-31  Bruno Haible  <bruno@clisp.org>
16509
16510         * tests/test-signal.c (main): Remove test of 'SIG'.
16511
16512 2009-12-31  Bruno Haible  <bruno@clisp.org>
16513
16514         spawn: Fix incomplete fix.
16515         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
16516         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
16517         warnings for GNULIB_POSIXCHECK again.
16518         Reported by Eric Blake.
16519
16520 2009-12-31  Bruno Haible  <bruno@clisp.org>
16521
16522         Avoid namespace pollution on glibc systems.
16523         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
16524         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
16525         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
16526         glibc systems.
16527
16528 2009-12-31  Bruno Haible  <bruno@clisp.org>
16529
16530         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
16531         (gl_REPLACE_WCHAR_H): Turn into a no-op.
16532         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
16533         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16534         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16535         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16536         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16537
16538 2009-12-31  Bruno Haible  <bruno@clisp.org>
16539
16540         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
16541         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
16542         afterwards.
16543
16544 2009-12-31  Bruno Haible  <bruno@clisp.org>
16545
16546         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
16547         SYS_UTSNAME_H.
16548
16549 2009-12-31  Bruno Haible  <bruno@clisp.org>
16550
16551         spawn: Fix misapplied patch.
16552         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
16553         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
16554         warnings for GNULIB_POSIXCHECK.
16555
16556 2009-12-31  Bruno Haible  <bruno@clisp.org>
16557
16558         times: Update after sys_times changed.
16559         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
16560         * modules/times (Files): Add it.
16561         (configure.ac): Invoke gl_FUNC_TIMES.
16562
16563 2009-12-31  Bruno Haible  <bruno@clisp.org>
16564
16565         Use AC_C_INLINE where necessary.
16566         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
16567         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
16568         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
16569         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
16570         * m4/mbfile.m4 (gl_MBFILE): Likewise.
16571         * m4/mbiter.m4 (gl_MBITER): Likewise.
16572         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
16573         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16574         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
16575         * modules/u64 (configure.ac): Likewise.
16576
16577 2009-12-31  Bruno Haible  <bruno@clisp.org>
16578
16579         Use AC_C_INLINE instead of module 'inline' where possible.
16580         * modules/inline (Description): Clarify purpose.
16581         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
16582         * modules/count-one-bits (Depends-on): Remove inline.
16583         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
16584         * modules/openat (Depends-on): Remove inline.
16585         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
16586         instead of depending on module 'inline'.
16587         * modules/filevercmp (Depends-on, configure.ac): Likewise.
16588         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
16589         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
16590         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
16591         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
16592         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
16593         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
16594         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
16595         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
16596         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
16597         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
16598         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
16599         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
16600         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
16601         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
16602         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
16603         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
16604         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
16605         Likewise.
16606         * modules/unictype/property-ascii-hex-digit (Depends-on,
16607         configure.ac): Likewise.
16608         * modules/unictype/property-bidi-arabic-digit (Depends-on,
16609         configure.ac): Likewise.
16610         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
16611         configure.ac): Likewise.
16612         * modules/unictype/property-bidi-block-separator (Depends-on,
16613         configure.ac): Likewise.
16614         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
16615         configure.ac): Likewise.
16616         * modules/unictype/property-bidi-common-separator (Depends-on,
16617         configure.ac): Likewise.
16618         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
16619         Likewise.
16620         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
16621         configure.ac): Likewise.
16622         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
16623         configure.ac): Likewise.
16624         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
16625         configure.ac): Likewise.
16626         * modules/unictype/property-bidi-european-digit (Depends-on,
16627         configure.ac): Likewise.
16628         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
16629         configure.ac): Likewise.
16630         * modules/unictype/property-bidi-left-to-right (Depends-on,
16631         configure.ac): Likewise.
16632         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
16633         configure.ac): Likewise.
16634         * modules/unictype/property-bidi-other-neutral (Depends-on,
16635         configure.ac): Likewise.
16636         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
16637         Likewise.
16638         * modules/unictype/property-bidi-segment-separator (Depends-on,
16639         configure.ac): Likewise.
16640         * modules/unictype/property-bidi-whitespace (Depends-on,
16641         configure.ac): Likewise.
16642         * modules/unictype/property-combining (Depends-on, configure.ac):
16643         Likewise.
16644         * modules/unictype/property-composite (Depends-on, configure.ac):
16645         Likewise.
16646         * modules/unictype/property-currency-symbol (Depends-on,
16647         configure.ac): Likewise.
16648         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
16649         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
16650         Likewise.
16651         * modules/unictype/property-default-ignorable-code-point (Depends-on,
16652         configure.ac): Likewise.
16653         * modules/unictype/property-deprecated (Depends-on, configure.ac):
16654         Likewise.
16655         * modules/unictype/property-diacritic (Depends-on, configure.ac):
16656         Likewise.
16657         * modules/unictype/property-extender (Depends-on, configure.ac):
16658         Likewise.
16659         * modules/unictype/property-format-control (Depends-on, configure.ac):
16660         Likewise.
16661         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
16662         Likewise.
16663         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
16664         Likewise.
16665         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
16666         Likewise.
16667         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
16668         Likewise.
16669         * modules/unictype/property-hyphen (Depends-on, configure.ac):
16670         Likewise.
16671         * modules/unictype/property-id-continue (Depends-on, configure.ac):
16672         Likewise.
16673         * modules/unictype/property-id-start (Depends-on, configure.ac):
16674         Likewise.
16675         * modules/unictype/property-ideographic (Depends-on, configure.ac):
16676         Likewise.
16677         * modules/unictype/property-ids-binary-operator (Depends-on,
16678         configure.ac): Likewise.
16679         * modules/unictype/property-ids-trinary-operator (Depends-on,
16680         configure.ac): Likewise.
16681         * modules/unictype/property-ignorable-control (Depends-on,
16682         configure.ac): Likewise.
16683         * modules/unictype/property-iso-control (Depends-on, configure.ac):
16684         Likewise.
16685         * modules/unictype/property-join-control (Depends-on, configure.ac):
16686         Likewise.
16687         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
16688         Likewise.
16689         * modules/unictype/property-line-separator (Depends-on, configure.ac):
16690         Likewise.
16691         * modules/unictype/property-logical-order-exception (Depends-on,
16692         configure.ac): Likewise.
16693         * modules/unictype/property-lowercase (Depends-on, configure.ac):
16694         Likewise.
16695         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
16696         * modules/unictype/property-non-break (Depends-on, configure.ac):
16697         Likewise.
16698         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
16699         Likewise.
16700         * modules/unictype/property-numeric (Depends-on, configure.ac):
16701         Likewise.
16702         * modules/unictype/property-other-alphabetic (Depends-on,
16703         configure.ac): Likewise.
16704         * modules/unictype/property-other-default-ignorable-code-point
16705         (Depends-on, configure.ac): Likewise.
16706         * modules/unictype/property-other-grapheme-extend (Depends-on,
16707         configure.ac): Likewise.
16708         * modules/unictype/property-other-id-continue (Depends-on,
16709         configure.ac): Likewise.
16710         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
16711         Likewise.
16712         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
16713         Likewise.
16714         * modules/unictype/property-other-math (Depends-on, configure.ac):
16715         Likewise.
16716         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
16717         Likewise.
16718         * modules/unictype/property-paired-punctuation (Depends-on,
16719         configure.ac): Likewise.
16720         * modules/unictype/property-paragraph-separator (Depends-on,
16721         configure.ac): Likewise.
16722         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
16723         Likewise.
16724         * modules/unictype/property-pattern-white-space (Depends-on,
16725         configure.ac): Likewise.
16726         * modules/unictype/property-private-use (Depends-on, configure.ac):
16727         Likewise.
16728         * modules/unictype/property-punctuation (Depends-on, configure.ac):
16729         Likewise.
16730         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
16731         Likewise.
16732         * modules/unictype/property-radical (Depends-on, configure.ac):
16733         Likewise.
16734         * modules/unictype/property-sentence-terminal (Depends-on,
16735         configure.ac): Likewise.
16736         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
16737         Likewise.
16738         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
16739         * modules/unictype/property-terminal-punctuation (Depends-on,
16740         configure.ac): Likewise.
16741         * modules/unictype/property-titlecase (Depends-on, configure.ac):
16742         Likewise.
16743         * modules/unictype/property-unassigned-code-value (Depends-on,
16744         configure.ac): Likewise.
16745         * modules/unictype/property-unified-ideograph (Depends-on,
16746         configure.ac): Likewise.
16747         * modules/unictype/property-uppercase (Depends-on, configure.ac):
16748         Likewise.
16749         * modules/unictype/property-variation-selector (Depends-on,
16750         configure.ac): Likewise.
16751         * modules/unictype/property-white-space (Depends-on, configure.ac):
16752         Likewise.
16753         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
16754         Likewise.
16755         * modules/unictype/property-xid-start (Depends-on, configure.ac):
16756         Likewise.
16757         * modules/unictype/property-zero-width (Depends-on, configure.ac):
16758         Likewise.
16759         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
16760         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
16761         Likewise.
16762
16763 2009-12-31  Bruno Haible  <bruno@clisp.org>
16764
16765         Remove unnecessary AC_C_INLINE invocation.
16766         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
16767         since 2009-08-21.
16768
16769 2009-12-31  Jim Meyering  <meyering@redhat.com>
16770
16771         maint.mk: don't require explicit gpg_key_ID in cfg.mk
16772         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
16773         With this change, we can all remove the gpg_key_ID = ... definition
16774         from our respective cfg.mk files.
16775
16776         maint.mk: create announcement template in ~/, not in /tmp
16777         * top/maint.mk (emit_upload_commands): Adjust.
16778         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
16779         Remove temporary file, .ci-msg.
16780
16781 2009-12-31  Eric Blake  <ebb9@byu.net>
16782
16783         link-warning: always build headers with link warnings
16784         * modules/arpa_inet (Makefile.am): Always build replacement
16785         header.
16786         * modules/ctype (Makefile.am): Likewise.
16787         * modules/dirent (Makefile.am): Likewise.
16788         * modules/inttypes (Makefile.am): Likewise.
16789         * modules/langinfo (Makefile.am): Likewise.
16790         * modules/locale (Makefile.am): Likewise.
16791         * modules/spawn (Makefile.am): Likewise.
16792         * modules/sys_file (Makefile.am): Likewise.
16793         * modules/sys_ioctl (Makefile.am): Likewise.
16794         * modules/sys_select (Makefile.am): Likewise.
16795         * modules/sys_socket (Makefile.am): Likewise.
16796         * modules/sys_times (Makefile.am): Likewise.
16797         * modules/sys_utsname (Makefile.am): Likewise.
16798         * modules/sys_wait (Makefile.am): Likewise.
16799         * modules/wchar (Makefile.am): Likewise.
16800         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
16801         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
16802         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
16803         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
16804         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
16805         Likewise.
16806         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16807         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16808         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
16809         Likewise.
16810         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
16811         Likewise.
16812         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16813         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
16814         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
16815         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16816         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16817         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
16818         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
16819         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
16820         (gl_WCHAR_H_DEFAULTS): Likewise.
16821
16822 2009-12-31  Eric Blake  <ebb9@byu.net>
16823
16824         signal, spawn: use link warnings
16825         * lib/signal.in.h (sigset_t): Make unconditional.
16826         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
16827         (sigpending, sigprocmask, sigaction): Add link warnings.
16828         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
16829         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
16830         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
16831         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
16832         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
16833         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
16834         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
16835         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
16836         (posix_spawn_file_actions_destroy)
16837         (posix_spawn_file_actions_addopen)
16838         (posix_spawn_file_actions_addclose)
16839         (posix_spawn_file_actions_adddup2): Likewise.
16840         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
16841         * tests/test-signal.c (main): Enhance test.
16842
16843         spawn: improve wrapper support
16844         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
16845         (gl_SPAWN_H_DEFAULTS): New defaults.
16846         * modules/spawn (Makefile.am): Substitute them.
16847         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
16848         Only declare if missing or broken.
16849
16850         sys_times, sys_utsname: use include_next
16851         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
16852         header.
16853         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
16854         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
16855         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
16856         * modules/sys_times (Depends-on): Add include_next.
16857         (Makefile.am): Substitute additional values.
16858         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
16859         * lib/sys_times.in.h (includes): Include native header, if
16860         available.
16861         * lib/sys_utsname.in.h (includes): Likewise.
16862         * tests/test-sys_times.c (main): Enhance test.
16863
16864         fdutimensat: revert prior patch
16865         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
16866         utimens.h.
16867         Reported by Bruno Haible.
16868
16869 2009-12-30  Eric Blake  <ebb9@byu.net>
16870
16871         sys_wait: drop link-warning dependency
16872         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
16873         link-warning efforts.
16874         * lib/sys_wait.in.h: Likewise.
16875
16876         fdutimensat: remove bogus dependency
16877         * modules/fdutimensat (Depends-on): Drop inline.
16878
16879         unistd: fix typo
16880         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
16881
16882 2009-12-30  Bruno Haible  <bruno@clisp.org>
16883
16884         Fix compilation error with Solaris cc.
16885         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
16886         * lib/unicase/u16-is-invariant.c: Likewise.
16887         * lib/unicase/u32-is-invariant.c: Likewise.
16888         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
16889
16890 2009-12-30  Bruno Haible  <bruno@clisp.org>
16891
16892         Fix test crash.
16893         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
16894         locales.
16895         Reported by Simon Josefsson <simon@josefsson.org>.
16896
16897 2009-12-30  Bruno Haible  <bruno@clisp.org>
16898
16899         Fix compilation error on most platforms.
16900         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
16901         Reported by Simon Josefsson <simon@josefsson.org>
16902         and Nelson H. F. Beebe <beebe@math.utah.edu>.
16903
16904 2009-12-30  Eric Blake  <ebb9@byu.net>
16905
16906         futimens, utimensat: work around ntfs-3g bug
16907         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
16908         a ctime bug is present, and expand workaround to cover ntfs-3g.
16909         * lib/utimens.c (fdutimens, lutimens): Likewise.
16910         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
16911         (validate_timespec): Adjust return value.
16912         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
16913         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16914         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
16915
16916 2009-12-29  Eric Blake  <ebb9@byu.net>
16917
16918         link-warning: make usage consistent
16919         * modules/ctype (Depends-on): Add link-warning.
16920         (Makefile.am): Update rules accordingly.
16921         * modules/langinfo (Depends-on, Makefile.am): Likewise.
16922         * modules/locale (Depends-on, Makefile.am): Likewise.
16923         * modules/sys_file (Makefile.am): Likewise.
16924         * modules/getopt-posix (Makefile.am): Delete unused link warning
16925         efforts.
16926         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
16927         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
16928         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
16929         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
16930
16931         stdio: remove unused variables
16932         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
16933         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
16934         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16935
16936         tests: test more substitute headers
16937         * modules/ctype-tests: New file.
16938         * modules/dirent-tests: Likewise.
16939         * modules/spawn-tests: Likewise.
16940         * modules/sys_file-tests: Likewise.
16941         * modules/sys_ioctl-tests: Likewise.
16942         * modules/sys_wait-tests: Likewise.
16943         * tests/test-ctype.c: Likewise.
16944         * tests/test-dirent.c: Likewise.
16945         * tests/test-spawn.c: Likewise.
16946         * tests/test-sys_file.c: Likewise.
16947         * tests/test-sys_ioctl.c: Likewise.
16948         * tests/test-sys_wait.c: Likewise.
16949         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
16950         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
16951         whether or not flock is in use.
16952
16953         tests: remove License section from module
16954         * modules/arpa_inet-tests: Remove unneeded section.
16955         * modules/byteswap-tests: Likewise.
16956         * modules/ceilf-tests: Likewise.
16957         * modules/ceill-tests: Likewise.
16958         * modules/crypto/des-tests: Likewise.
16959         * modules/crypto/gc-arcfour-tests: Likewise.
16960         * modules/crypto/gc-arctwo-tests: Likewise.
16961         * modules/crypto/gc-des-tests: Likewise.
16962         * modules/crypto/gc-hmac-md5-tests: Likewise.
16963         * modules/crypto/gc-hmac-sha1-tests: Likewise.
16964         * modules/crypto/gc-md2-tests: Likewise.
16965         * modules/crypto/gc-md4-tests: Likewise.
16966         * modules/crypto/gc-md5-tests: Likewise.
16967         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
16968         * modules/crypto/gc-rijndael-tests: Likewise.
16969         * modules/crypto/gc-sha1-tests: Likewise.
16970         * modules/crypto/gc-tests: Likewise.
16971         * modules/crypto/md2-tests: Likewise.
16972         * modules/crypto/md4-tests: Likewise.
16973         * modules/fcntl-h-tests: Likewise.
16974         * modules/floorf-tests: Likewise.
16975         * modules/floorl-tests: Likewise.
16976         * modules/frexp-nolibm-tests: Likewise.
16977         * modules/frexp-tests: Likewise.
16978         * modules/frexpl-nolibm-tests: Likewise.
16979         * modules/frexpl-tests: Likewise.
16980         * modules/getaddrinfo-tests: Likewise.
16981         * modules/inttypes-tests: Likewise.
16982         * modules/isfinite-tests: Likewise.
16983         * modules/isinf-tests: Likewise.
16984         * modules/ldexpl-tests: Likewise.
16985         * modules/locale-tests: Likewise.
16986         * modules/math-tests: Likewise.
16987         * modules/netdb-tests: Likewise.
16988         * modules/netinet_in-tests: Likewise.
16989         * modules/printf-frexp-tests: Likewise.
16990         * modules/printf-frexpl-tests: Likewise.
16991         * modules/priv-set-tests: Likewise.
16992         * modules/random_r-tests: Likewise.
16993         * modules/round-tests: Likewise.
16994         * modules/roundf-tests: Likewise.
16995         * modules/roundl-tests: Likewise.
16996         * modules/search-tests: Likewise.
16997         * modules/select-tests: Likewise.
16998         * modules/signal-tests: Likewise.
16999         * modules/stdbool-tests: Likewise.
17000         * modules/stddef-tests: Likewise.
17001         * modules/stdint-tests: Likewise.
17002         * modules/stdio-tests: Likewise.
17003         * modules/stdlib-tests: Likewise.
17004         * modules/string-tests: Likewise.
17005         * modules/strings-tests: Likewise.
17006         * modules/sys_select-tests: Likewise.
17007         * modules/sys_socket-tests: Likewise.
17008         * modules/sys_stat-tests: Likewise.
17009         * modules/sys_time-tests: Likewise.
17010         * modules/sys_utsname-tests: Likewise.
17011         * modules/sysexits-tests: Likewise.
17012         * modules/time-tests: Likewise.
17013         * modules/trunc-tests: Likewise.
17014         * modules/truncf-tests: Likewise.
17015         * modules/truncl-tests: Likewise.
17016         * modules/tsearch-tests: Likewise.
17017         * modules/unistd-tests: Likewise.
17018         * modules/wchar-tests: Likewise.
17019         * modules/wctype-tests: Likewise.
17020
17021         tests: fix license on several tests
17022         * tests/test-des.c: Update to GPLv3+.
17023         * tests/test-flock.c: Likewise.
17024         * tests/test-fsync.c: Likewise.
17025         * tests/test-futimens.h: Likewise.
17026         * tests/test-gc-arcfour.c: Likewise.
17027         * tests/test-gc-arctwo.c: Likewise.
17028         * tests/test-gc-des.c: Likewise.
17029         * tests/test-gc-hmac-md5.c: Likewise.
17030         * tests/test-gc-hmac-sha1.c: Likewise.
17031         * tests/test-gc-md2.c: Likewise.
17032         * tests/test-gc-md4.c: Likewise.
17033         * tests/test-gc-md5.c: Likewise.
17034         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17035         * tests/test-gc-rijndael.c: Likewise.
17036         * tests/test-gc-sha1.c: Likewise.
17037         * tests/test-gc.c: Likewise.
17038         * tests/test-getcwd.c: Likewise.
17039         * tests/test-link.c: Likewise.
17040         * tests/test-link.h: Likewise.
17041         * tests/test-lutimens.h: Likewise.
17042         * tests/test-md2.c: Likewise.
17043         * tests/test-md4.c: Likewise.
17044         * tests/test-mkdir.h: Likewise.
17045         * tests/test-rename.c: Likewise.
17046         * tests/test-rename.h: Likewise.
17047         * tests/test-safe-alloc.c: Likewise.
17048         * tests/test-utimens-common.h: Likewise.
17049         * tests/test-utimens.h: Likewise.
17050
17051         maint: sync license texts
17052         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
17053         * doc/gpl-3.0.texi: Revert copyright year update.
17054         * doc/lgpl-3.0.texi: Likewise.
17055
17056 2009-12-29  Jim Meyering  <meyering@redhat.com>
17057
17058         update nearly all FSF copyright year lists to include 2009
17059         The files named by the following are exempted:
17060             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
17061               test -f "$dst" && { echo "$dst"; continue; }
17062               test -d "$dst" || continue
17063               echo "$dst"/$(basename "$src")
17064             done > exempt
17065             git ls-files tests/unictype >> exempt
17066         In the remaining files, convert to all-interval notation if
17067         - there is already at least one year interval like 2000-2003
17068         - the file is maintained by me
17069         - the file is in lib/uni*/, where that style already prevails
17070         Otherwise, use update-copyright's default.
17071
17072 2009-12-29  Simon Josefsson  <simon@josefsson.org>
17073         and Eric Blake  <ebb9@byu.net>
17074
17075         tests: don't require debug system() to pass
17076         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
17077         * tests/test-rmdir.h (test_rmdir_func): Likewise.
17078         * tests/test-unlink.h (test_unlink_func): Likewise.
17079         * tests/test-fstatat.c (main): ...into callers.
17080         * tests/test-lstat.c (main): Likewise.
17081         * tests/test-rmdir.c (main): Likewise.
17082         * tests/test-unlink.c (main): Likewise.
17083         * tests/test-unlinkat.c (main): Likewise.
17084         * tests/test-areadlink-with-size.c (main): Don't require a
17085         debug-only system call to pass, aiding cross-testing to mingw.
17086         * tests/test-areadlink.c (main): Likewise.
17087         * tests/test-areadlinkat-with-size.c (main): Likewise.
17088         * tests/test-areadlinkat.c (main): Likewise.
17089         * tests/test-canonicalize-lgpl.c (main): Likewise.
17090         * tests/test-canonicalize.c (main): Likewise.
17091         * tests/test-chown.c (main): Likewise.
17092         * tests/test-fchownat.c (main): Likewise.
17093         * tests/test-lchown.c (main): Likewise.
17094         * tests/test-fdutimensat.c (main): Likewise.
17095         * tests/test-futimens.c (main): Likewise.
17096         * tests/test-link.c (main): Likewise.
17097         * tests/test-linkat.c (main): Likewise.
17098         * tests/test-mkdir.c (main): Likewise.
17099         * tests/test-mkdirat.c (main): Likewise.
17100         * tests/test-mkfifo.c (main): Likewise.
17101         * tests/test-mkfifoat.c (main): Likewise.
17102         * tests/test-mknod.c (main): Likewise.
17103         * tests/test-readlink.c (main): Likewise.
17104         * tests/test-remove.c (main): Likewise.
17105         * tests/test-rename.c (main): Likewise.
17106         * tests/test-renameat.c (main): Likewise.
17107         * tests/test-symlink.c (main): Likewise.
17108         * tests/test-symlinkat.c (main): Likewise.
17109         * tests/test-utimens.c (main): Likewise.
17110         * tests/test-utimensat.c (main): Likewise.
17111
17112 2009-12-29  Simon Josefsson  <simon@josefsson.org>
17113
17114         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
17115         on $(UNUSED_PARAMETER_H) to avoid build failure.
17116
17117 2009-12-28  Jim Meyering  <meyering@redhat.com>
17118
17119         update-copyright: you may specify a max. line length other than 72
17120         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
17121
17122         maint: use consistent FSF copyright line syntax
17123         * lib/posixtm.c: Add missing comma in FSF copyright line.
17124         * lib/posixtm.h: Likewise.
17125         * lib/getugroups.c: Add missing ", Inc.".
17126
17127         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
17128         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
17129         FSF copyright line.  Remove trailing blanks.
17130
17131 2009-12-28  Eric Blake  <ebb9@byu.net>
17132
17133         test-dup2: reduce dependencies
17134         * modules/cloexec (Configure.ac): Set witness.
17135         * modules/dup2-tests (Depends-on): Drop cloexec.
17136         * tests/test-dup2.c (main): Skip portion of test if cloexec module
17137         not present.
17138         Suggested by Bruno Haible.
17139
17140 2009-12-26  Bruno Haible  <bruno@clisp.org>
17141
17142         Remove an unneeded dependency.
17143         * modules/fseterr (Depends-on): Remove dup2.
17144
17145 2009-12-26  Eric Blake  <ebb9@byu.net>
17146
17147         tests: use macros.h in more places
17148         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
17149         (ASSERT_STREAM): Provide default of stderr.
17150         * tests/test-dirent-safer.c: Include macros.h, using alternate
17151         stream for assertions.
17152         * tests/test-dup-safer.c: Likewise.
17153         * tests/test-freopen-safer.c: Likewise.
17154         * tests/test-getopt.c: Likewise.
17155         * tests/test-openat-safer.c: Likewise.
17156         * tests/test-pipe.c: Likewise.
17157         * tests/test-popen-safer.c: Likewise.
17158         * modules/dirent-safer-tests (Files): Include macros.h.
17159         * modules/unistd-safer-tests (Files): Likewise.
17160         * modules/freopen-safer-tests (Files): Likewise.
17161         * modules/getopt-posix-tests (Files): Likewise.
17162         * modules/openat-safer-tests (Files): Likewise.
17163         * modules/pipe-tests (Files): Likewise.
17164
17165 2009-12-26  Bruno Haible  <bruno@clisp.org>
17166
17167         javacomp: Portability fix.
17168         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
17169         that it also works on Solaris.
17170
17171 2009-12-26  Bruno Haible  <bruno@clisp.org>
17172
17173         localename: Fix storage allocation of gl_locale_name_thread's result.
17174         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
17175         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
17176         all platforms that have 'uselocale'.
17177         (gl_locale_name_thread_unsafe): New function, extracted from
17178         gl_locale_name_thread.
17179         (gl_locale_name_thread): Call struniq on all platforms that have
17180         'uselocale'.
17181         * tests/test-localename.c (test_locale_name_thread): Check that the
17182         resulting strings are permanently allocated.
17183         * modules/localename-tests (Depends-on): Add strdup.
17184
17185 2009-12-26  Bruno Haible  <bruno@clisp.org>
17186
17187         * tests/test-localename.c (categories): Fill in the strings.
17188
17189 2009-12-26  Jim Meyering  <meyering@redhat.com>
17190
17191         isdir: complete the removal of m4/isdir.m4
17192         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
17193
17194         isdir: clean up, since at least grep still uses it
17195         * lib/isdir.c: Include "isdir.h".
17196         (S_ISDIR): Remove now-unneeded definition.
17197         * modules/isdir (Files): Add lib/isdir.h.
17198         * lib/isdir.h: New file, with declaration.
17199         * m4/isdir.m4: Remove file -- unneeded.
17200
17201 2009-12-25  Bruno Haible  <bruno@clisp.org>
17202
17203         selinux-h: Make generated .h files standalone.
17204         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
17205         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
17206         * lib/se-selinux.in.h: Likewise.
17207         * modules/selinux-h (Depends-on): Add unused-parameter.
17208         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
17209         selinux/selinux.h and selinux/context.h.
17210         Suggested by Eric Blake.
17211
17212 2009-12-25  Bruno Haible  <bruno@clisp.org>
17213
17214         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
17215         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
17216         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
17217         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
17218         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
17219
17220 2009-12-24  Bruno Haible  <bruno@clisp.org>
17221
17222         openat: Fix warning.
17223         * lib/openat-proc.c: Include <unistd.h>.
17224
17225 2009-12-24  Bruno Haible  <bruno@clisp.org>
17226
17227         New module 'unused-parameter'.
17228         * build-aux/unused-parameter.h: New file, extracted from earlier
17229         gnulib-common.m4.
17230         * modules/unused-parameter: New file.
17231         * lib/unistr.h: Include unused-parameter.h.
17232         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
17233         _GL_UNUSED.
17234         * modules/unistr/base (Depends-on): Add unused-parameter.
17235
17236 2009-12-24  Bruno Haible  <bruno@clisp.org>
17237
17238         Add missing dependencies to 'extensions' module.
17239         * m4/extensions.m4: Add comment.
17240         * modules/accept4 (Depends-on): Add extensions.
17241         * modules/dup3 (Depends-on): Likewise.
17242         * modules/fcntl (Depends-on): Likewise.
17243         * modules/futimens (Depends-on): Likewise.
17244         * modules/mknod (Depends-on): Likewise.
17245         * modules/pipe2 (Depends-on): Likewise.
17246         * modules/stat-time (Depends-on): Likewise.
17247         * modules/strcasestr-simple (Depends-on): Likewise.
17248         * modules/strsignal (Depends-on): Likewise.
17249         * modules/utimensat (Depends-on): Likewise.
17250         * modules/localcharset (Depends-on): Likewise. Needed because of
17251         gl_FCNTL_O_FLAGS.
17252         * modules/wcrtomb (Depends-on): Likewise. Needed because of
17253         AC_TYPE_MBSTATE_T.
17254         * modules/wcsnrtombs (Depends-on): Likewise.
17255         * modules/wcsrtombs (Depends-on): Likewise.
17256
17257 2009-12-24  Bruno Haible  <bruno@clisp.org>
17258
17259         binary-io: Avoid gcc warning due to SET_BINARY.
17260         * lib/binary-io.h (SET_BINARY): Cast the result to void.
17261         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
17262
17263 2009-12-24  Bruno Haible  <bruno@clisp.org>
17264
17265         Avoid future namespace pollution on glibc systems.
17266         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
17267         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
17268         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
17269         glibc systems.
17270
17271 2009-12-24  Bruno Haible  <bruno@clisp.org>
17272
17273         Refactor common macros used in tests.
17274         * tests/macros.h: New file.
17275         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
17276         and/or <stdlib.h>, if appropriate.
17277         (ASSERT, SIZEOF): Remove macros.
17278         * tests/test-areadlink-with-size.c: Likewise.
17279         * tests/test-areadlinkat.c: Likewise.
17280         * tests/test-areadlinkat-with-size.c: Likewise.
17281         * tests/test-argmatch.c: Likewise.
17282         * tests/test-argv-iter.c: Likewise.
17283         * tests/test-array-mergesort.c: Likewise.
17284         * tests/test-array_list.c: Likewise.
17285         * tests/test-array_oset.c: Likewise.
17286         * tests/test-avltree_list.c: Likewise.
17287         * tests/test-avltree_oset.c: Likewise.
17288         * tests/test-avltreehash_list.c: Likewise.
17289         * tests/test-base64.c: Likewise.
17290         * tests/test-binary-io.c: Likewise.
17291         * tests/test-bitrotate.c: Likewise.
17292         * tests/test-btowc.c: Likewise.
17293         * tests/test-byteswap.c: Likewise.
17294         * tests/test-c-ctype.c: Likewise.
17295         * tests/test-c-stack.c: Likewise.
17296         * tests/test-c-strcasecmp.c: Likewise.
17297         * tests/test-c-strcasestr.c: Likewise.
17298         * tests/test-c-strncasecmp.c: Likewise.
17299         * tests/test-c-strstr.c: Likewise.
17300         * tests/test-canonicalize-lgpl.c: Likewise.
17301         * tests/test-canonicalize.c: Likewise.
17302         * tests/test-carray_list.c: Likewise.
17303         * tests/test-ceilf1.c: Likewise.
17304         * tests/test-ceilf2.c: Likewise.
17305         * tests/test-ceill.c: Likewise.
17306         * tests/test-chown.c: Likewise.
17307         * tests/test-cloexec.c: Likewise.
17308         * tests/test-copy-acl.c: Likewise.
17309         * tests/test-copy-file.c: Likewise.
17310         * tests/test-count-one-bits.c: Likewise.
17311         * tests/test-dprintf-posix.c: Likewise.
17312         * tests/test-dup2.c: Likewise.
17313         * tests/test-dup3.c: Likewise.
17314         * tests/test-duplocale.c: Likewise.
17315         * tests/test-fbufmode.c: Likewise.
17316         * tests/test-fchdir.c: Likewise.
17317         * tests/test-fchownat.c: Likewise.
17318         * tests/test-fcntl-safer.c: Likewise.
17319         * tests/test-fcntl.c: Likewise.
17320         * tests/test-fdopendir.c: Likewise.
17321         * tests/test-fdutimensat.c: Likewise.
17322         * tests/test-fflush2.c: Likewise.
17323         * tests/test-file-has-acl.c: Likewise.
17324         * tests/test-filevercmp.c: Likewise.
17325         * tests/test-flock.c: Likewise.
17326         * tests/test-floorf1.c: Likewise.
17327         * tests/test-floorf2.c: Likewise.
17328         * tests/test-floorl.c: Likewise.
17329         * tests/test-fnmatch.c: Likewise.
17330         * tests/test-fopen.h: Likewise.
17331         * tests/test-fpending.c: Likewise.
17332         * tests/test-fprintf-posix.c: Likewise.
17333         * tests/test-fpurge.c: Likewise.
17334         * tests/test-freadable.c: Likewise.
17335         * tests/test-freadahead.c: Likewise.
17336         * tests/test-freading.c: Likewise.
17337         * tests/test-freadptr.c: Likewise.
17338         * tests/test-freadptr2.c: Likewise.
17339         * tests/test-freadseek.c: Likewise.
17340         * tests/test-freopen.c: Likewise.
17341         * tests/test-frexp.c: Likewise.
17342         * tests/test-frexpl.c: Likewise.
17343         * tests/test-fseek.c: Likewise.
17344         * tests/test-fseeko.c: Likewise.
17345         * tests/test-fstatat.c: Likewise.
17346         * tests/test-fstrcmp.c: Likewise.
17347         * tests/test-fsync.c: Likewise.
17348         * tests/test-ftell.c: Likewise.
17349         * tests/test-ftello.c: Likewise.
17350         * tests/test-func.c: Likewise.
17351         * tests/test-futimens.c: Likewise.
17352         * tests/test-fwritable.c: Likewise.
17353         * tests/test-fwriting.c: Likewise.
17354         * tests/test-getcwd.c: Likewise.
17355         * tests/test-getdate.c: Likewise.
17356         * tests/test-getdelim.c: Likewise.
17357         * tests/test-getdtablesize.c: Likewise.
17358         * tests/test-getgroups.c: Likewise.
17359         * tests/test-getline.c: Likewise.
17360         * tests/test-getndelim2.c: Likewise.
17361         * tests/test-glob.c: Likewise.
17362         * tests/test-hash.c: Likewise.
17363         * tests/test-i-ring.c: Likewise.
17364         * tests/test-iconv-utf.c: Likewise.
17365         * tests/test-iconv.c: Likewise.
17366         * tests/test-idpriv-drop.c: Likewise.
17367         * tests/test-idpriv-droptemp.c: Likewise.
17368         * tests/test-inet_ntop.c: Likewise.
17369         * tests/test-inet_pton.c: Likewise.
17370         * tests/test-isblank.c: Likewise.
17371         * tests/test-isfinite.c: Likewise.
17372         * tests/test-isinf.c: Likewise.
17373         * tests/test-isnan.c: Likewise.
17374         * tests/test-isnand.h: Likewise.
17375         * tests/test-isnanf.h: Likewise.
17376         * tests/test-isnanl.h: Likewise.
17377         * tests/test-lchown.c: Likewise.
17378         * tests/test-ldexpl.c: Likewise.
17379         * tests/test-link.c: Likewise.
17380         * tests/test-linkat.c: Likewise.
17381         * tests/test-linked_list.c: Likewise.
17382         * tests/test-linkedhash_list.c: Likewise.
17383         * tests/test-localename.c: Likewise.
17384         * tests/test-lseek.c: Likewise.
17385         * tests/test-lstat.c: Likewise.
17386         * tests/test-mbmemcasecmp.c: Likewise.
17387         * tests/test-mbmemcasecoll.c: Likewise.
17388         * tests/test-mbrtowc.c: Likewise.
17389         * tests/test-mbscasecmp.c: Likewise.
17390         * tests/test-mbscasestr1.c: Likewise.
17391         * tests/test-mbscasestr2.c: Likewise.
17392         * tests/test-mbscasestr3.c: Likewise.
17393         * tests/test-mbscasestr4.c: Likewise.
17394         * tests/test-mbschr.c: Likewise.
17395         * tests/test-mbscspn.c: Likewise.
17396         * tests/test-mbsinit.c: Likewise.
17397         * tests/test-mbsncasecmp.c: Likewise.
17398         * tests/test-mbsnrtowcs.c: Likewise.
17399         * tests/test-mbspbrk.c: Likewise.
17400         * tests/test-mbspcasecmp.c: Likewise.
17401         * tests/test-mbsrchr.c: Likewise.
17402         * tests/test-mbsrtowcs.c: Likewise.
17403         * tests/test-mbsspn.c: Likewise.
17404         * tests/test-mbsstr1.c: Likewise.
17405         * tests/test-mbsstr2.c: Likewise.
17406         * tests/test-mbsstr3.c: Likewise.
17407         * tests/test-memchr.c: Likewise.
17408         * tests/test-memchr2.c: Likewise.
17409         * tests/test-memcmp.c: Likewise.
17410         * tests/test-memmem.c: Likewise.
17411         * tests/test-memrchr.c: Likewise.
17412         * tests/test-mkdir.c: Likewise.
17413         * tests/test-mkdirat.c: Likewise.
17414         * tests/test-mkfifo.c: Likewise.
17415         * tests/test-mkfifoat.c: Likewise.
17416         * tests/test-mknod.c: Likewise.
17417         * tests/test-nanosleep.c: Likewise.
17418         * tests/test-nl_langinfo.c: Likewise.
17419         * tests/test-obstack-printf.c: Likewise.
17420         * tests/test-open.c: Likewise.
17421         * tests/test-openat.c: Likewise.
17422         * tests/test-pipe-filter-gi1.c: Likewise.
17423         * tests/test-pipe-filter-gi2-main.c: Likewise.
17424         * tests/test-pipe-filter-ii1.c: Likewise.
17425         * tests/test-pipe-filter-ii2-main.c: Likewise.
17426         * tests/test-pipe2.c: Likewise.
17427         * tests/test-popen.h: Likewise.
17428         * tests/test-posixtm.c: Likewise.
17429         * tests/test-pread.c: Likewise.
17430         * tests/test-printf-frexp.c: Likewise.
17431         * tests/test-printf-frexpl.c: Likewise.
17432         * tests/test-printf-posix.c: Likewise.
17433         * tests/test-priv-set.c: Likewise.
17434         * tests/test-quotearg.c: Likewise.
17435         * tests/test-random_r.c: Likewise.
17436         * tests/test-rawmemchr.c: Likewise.
17437         * tests/test-rbtree_list.c: Likewise.
17438         * tests/test-rbtree_oset.c: Likewise.
17439         * tests/test-rbtreehash_list.c: Likewise.
17440         * tests/test-readlink.c: Likewise.
17441         * tests/test-remove.c: Likewise.
17442         * tests/test-rename.c: Likewise.
17443         * tests/test-renameat.c: Likewise.
17444         * tests/test-rmdir.c: Likewise.
17445         * tests/test-round1.c: Likewise.
17446         * tests/test-roundf1.c: Likewise.
17447         * tests/test-roundl.c: Likewise.
17448         * tests/test-safe-alloc.c: Likewise.
17449         * tests/test-sameacls.c: Likewise.
17450         * tests/test-set-mode-acl.c: Likewise.
17451         * tests/test-setenv.c: Likewise.
17452         * tests/test-sigaction.c: Likewise.
17453         * tests/test-signbit.c: Likewise.
17454         * tests/test-sleep.c: Likewise.
17455         * tests/test-snprintf-posix.c: Likewise.
17456         * tests/test-snprintf.c: Likewise.
17457         * tests/test-sprintf-posix.c: Likewise.
17458         * tests/test-stat-time.c: Likewise.
17459         * tests/test-stat.c: Likewise.
17460         * tests/test-strcasestr.c: Likewise.
17461         * tests/test-strchrnul.c: Likewise.
17462         * tests/test-strerror.c: Likewise.
17463         * tests/test-striconv.c: Likewise.
17464         * tests/test-striconveh.c: Likewise.
17465         * tests/test-striconveha.c: Likewise.
17466         * tests/test-strsignal.c: Likewise.
17467         * tests/test-strstr.c: Likewise.
17468         * tests/test-strtod.c: Likewise.
17469         * tests/test-strverscmp.c: Likewise.
17470         * tests/test-symlink.c: Likewise.
17471         * tests/test-symlinkat.c: Likewise.
17472         * tests/test-trunc1.c: Likewise.
17473         * tests/test-trunc2.c: Likewise.
17474         * tests/test-truncf1.c: Likewise.
17475         * tests/test-truncf2.c: Likewise.
17476         * tests/test-truncl.c: Likewise.
17477         * tests/test-uname.c: Likewise.
17478         * tests/test-unlink.c: Likewise.
17479         * tests/test-unlinkat.c: Likewise.
17480         * tests/test-unsetenv.c: Likewise.
17481         * tests/test-usleep.c: Likewise.
17482         * tests/test-utimens.c: Likewise.
17483         * tests/test-utimensat.c: Likewise.
17484         * tests/test-vasnprintf-posix.c: Likewise.
17485         * tests/test-vasnprintf-posix2.c: Likewise.
17486         * tests/test-vasnprintf.c: Likewise.
17487         * tests/test-vasprintf-posix.c: Likewise.
17488         * tests/test-vasprintf.c: Likewise.
17489         * tests/test-vdprintf-posix.c: Likewise.
17490         * tests/test-vfprintf-posix.c: Likewise.
17491         * tests/test-vprintf-posix.c: Likewise.
17492         * tests/test-vsnprintf-posix.c: Likewise.
17493         * tests/test-vsnprintf.c: Likewise.
17494         * tests/test-vsprintf-posix.c: Likewise.
17495         * tests/test-wcrtomb.c: Likewise.
17496         * tests/test-wcsnrtombs.c: Likewise.
17497         * tests/test-wcsrtombs.c: Likewise.
17498         * tests/test-wctype.c: Likewise.
17499         * tests/test-wcwidth.c: Likewise.
17500         * tests/test-xfprintf-posix.c: Likewise.
17501         * tests/test-xmemdup0.c: Likewise.
17502         * tests/test-xprintf-posix.c: Likewise.
17503         * tests/test-xvasprintf.c: Likewise.
17504         * tests/unicase/test-locale-language.c: Likewise.
17505         * tests/unicase/test-mapping-part1.h: Likewise.
17506         * tests/unicase/test-predicate-part1.h: Likewise.
17507         * tests/unicase/test-u8-casecmp.c: Likewise.
17508         * tests/unicase/test-u8-casecoll.c: Likewise.
17509         * tests/unicase/test-u8-casefold.c: Likewise.
17510         * tests/unicase/test-u8-is-cased.c: Likewise.
17511         * tests/unicase/test-u8-is-casefolded.c: Likewise.
17512         * tests/unicase/test-u8-is-lowercase.c: Likewise.
17513         * tests/unicase/test-u8-is-titlecase.c: Likewise.
17514         * tests/unicase/test-u8-is-uppercase.c: Likewise.
17515         * tests/unicase/test-u8-tolower.c: Likewise.
17516         * tests/unicase/test-u8-totitle.c: Likewise.
17517         * tests/unicase/test-u8-toupper.c: Likewise.
17518         * tests/unicase/test-u16-casecmp.c: Likewise.
17519         * tests/unicase/test-u16-casecoll.c: Likewise.
17520         * tests/unicase/test-u16-casefold.c: Likewise.
17521         * tests/unicase/test-u16-is-cased.c: Likewise.
17522         * tests/unicase/test-u16-is-casefolded.c: Likewise.
17523         * tests/unicase/test-u16-is-lowercase.c: Likewise.
17524         * tests/unicase/test-u16-is-titlecase.c: Likewise.
17525         * tests/unicase/test-u16-is-uppercase.c: Likewise.
17526         * tests/unicase/test-u16-tolower.c: Likewise.
17527         * tests/unicase/test-u16-totitle.c: Likewise.
17528         * tests/unicase/test-u16-toupper.c: Likewise.
17529         * tests/unicase/test-u32-casecmp.c: Likewise.
17530         * tests/unicase/test-u32-casecoll.c: Likewise.
17531         * tests/unicase/test-u32-casefold.c: Likewise.
17532         * tests/unicase/test-u32-is-cased.c: Likewise.
17533         * tests/unicase/test-u32-is-casefolded.c: Likewise.
17534         * tests/unicase/test-u32-is-lowercase.c: Likewise.
17535         * tests/unicase/test-u32-is-titlecase.c: Likewise.
17536         * tests/unicase/test-u32-is-uppercase.c: Likewise.
17537         * tests/unicase/test-u32-tolower.c: Likewise.
17538         * tests/unicase/test-u32-totitle.c: Likewise.
17539         * tests/unicase/test-u32-toupper.c: Likewise.
17540         * tests/unicase/test-ulc-casecmp.c: Likewise.
17541         * tests/unicase/test-ulc-casecoll.c: Likewise.
17542         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
17543         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
17544         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
17545         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
17546         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
17547         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
17548         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
17549         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
17550         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
17551         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
17552         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
17553         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
17554         * tests/unictype/test-bidi_byname.c: Likewise.
17555         * tests/unictype/test-bidi_name.c: Likewise.
17556         * tests/unictype/test-bidi_of.c: Likewise.
17557         * tests/unictype/test-bidi_test.c: Likewise.
17558         * tests/unictype/test-block_list.c: Likewise.
17559         * tests/unictype/test-block_of.c: Likewise.
17560         * tests/unictype/test-block_test.c: Likewise.
17561         * tests/unictype/test-categ_and.c: Likewise.
17562         * tests/unictype/test-categ_and_not.c: Likewise.
17563         * tests/unictype/test-categ_byname.c: Likewise.
17564         * tests/unictype/test-categ_name.c: Likewise.
17565         * tests/unictype/test-categ_none.c: Likewise.
17566         * tests/unictype/test-categ_of.c: Likewise.
17567         * tests/unictype/test-categ_or.c: Likewise.
17568         * tests/unictype/test-categ_test_withtable.c: Likewise.
17569         * tests/unictype/test-combining.c: Likewise.
17570         * tests/unictype/test-decdigit.c: Likewise.
17571         * tests/unictype/test-digit.c: Likewise.
17572         * tests/unictype/test-mirror.c: Likewise.
17573         * tests/unictype/test-numeric.c: Likewise.
17574         * tests/unictype/test-pr_byname.c: Likewise.
17575         * tests/unictype/test-pr_test.c: Likewise.
17576         * tests/unictype/test-predicate-part1.h: Likewise.
17577         * tests/unictype/test-scripts.c: Likewise.
17578         * tests/unictype/test-sy_c_ident.c: Likewise.
17579         * tests/unictype/test-sy_java_ident.c: Likewise.
17580         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
17581         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
17582         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
17583         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
17584         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
17585         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
17586         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
17587         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
17588         * tests/uninorm/test-canonical-decomposition.c: Likewise.
17589         * tests/uninorm/test-compat-decomposition.c: Likewise.
17590         * tests/uninorm/test-composition.c: Likewise.
17591         * tests/uninorm/test-decomposing-form.c: Likewise.
17592         * tests/uninorm/test-decomposition.c: Likewise.
17593         * tests/uninorm/test-u8-nfc.c: Likewise.
17594         * tests/uninorm/test-u8-nfd.c: Likewise.
17595         * tests/uninorm/test-u8-nfkc.c: Likewise.
17596         * tests/uninorm/test-u8-nfkd.c: Likewise.
17597         * tests/uninorm/test-u8-normcmp.c: Likewise.
17598         * tests/uninorm/test-u8-normcoll.c: Likewise.
17599         * tests/uninorm/test-u16-nfc.c: Likewise.
17600         * tests/uninorm/test-u16-nfd.c: Likewise.
17601         * tests/uninorm/test-u16-nfkc.c: Likewise.
17602         * tests/uninorm/test-u16-nfkd.c: Likewise.
17603         * tests/uninorm/test-u16-normcmp.c: Likewise.
17604         * tests/uninorm/test-u16-normcoll.c: Likewise.
17605         * tests/uninorm/test-u32-nfc.c: Likewise.
17606         * tests/uninorm/test-u32-nfd.c: Likewise.
17607         * tests/uninorm/test-u32-nfkc.c: Likewise.
17608         * tests/uninorm/test-u32-nfkd.c: Likewise.
17609         * tests/uninorm/test-u32-normalize-big.c: Likewise.
17610         * tests/uninorm/test-u32-normcmp.c: Likewise.
17611         * tests/uninorm/test-u32-normcoll.c: Likewise.
17612         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
17613         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
17614         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
17615         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
17616         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
17617         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
17618         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
17619         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
17620         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
17621         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
17622         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
17623         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
17624         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
17625         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
17626         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
17627         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
17628         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
17629         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
17630         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
17631         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
17632         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
17633         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
17634         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
17635         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
17636         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
17637         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
17638         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
17639         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
17640         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
17641         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
17642         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
17643         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
17644         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
17645         * tests/uniwidth/test-u8-strwidth.c: Likewise.
17646         * tests/uniwidth/test-u8-width.c: Likewise.
17647         * tests/uniwidth/test-u16-strwidth.c: Likewise.
17648         * tests/uniwidth/test-u16-width.c: Likewise.
17649         * tests/uniwidth/test-u32-strwidth.c: Likewise.
17650         * tests/uniwidth/test-u32-width.c: Likewise.
17651         * tests/uniwidth/test-uc_width.c: Likewise.
17652         * tests/uniwidth/test-uc_width2.c: Likewise.
17653         * modules/acl-tests (Files): Add tests/macros.h.
17654         * modules/areadlink-tests (Files): Likewise.
17655         * modules/areadlink-with-size-tests (Files): Likewise.
17656         * modules/areadlinkat-tests (Files): Likewise.
17657         * modules/areadlinkat-with-size-tests (Files): Likewise.
17658         * modules/argmatch-tests (Files): Likewise.
17659         * modules/argv-iter-tests (Files): Likewise.
17660         * modules/array-list-tests (Files): Likewise.
17661         * modules/array-mergesort-tests (Files): Likewise.
17662         * modules/array-oset-tests (Files): Likewise.
17663         * modules/avltree-list-tests (Files): Likewise.
17664         * modules/avltree-oset-tests (Files): Likewise.
17665         * modules/avltreehash-list-tests (Files): Likewise.
17666         * modules/base64-tests (Files): Likewise.
17667         * modules/binary-io-tests (Files): Likewise.
17668         * modules/bitrotate-tests (Files): Likewise.
17669         * modules/btowc-tests (Files): Likewise.
17670         * modules/byteswap-tests (Files): Likewise.
17671         * modules/c-ctype-tests (Files): Likewise.
17672         * modules/c-stack-tests (Files): Likewise.
17673         * modules/c-strcase-tests (Files): Likewise.
17674         * modules/c-strcasestr-tests (Files): Likewise.
17675         * modules/c-strstr-tests (Files): Likewise.
17676         * modules/canonicalize-lgpl-tests (Files): Likewise.
17677         * modules/canonicalize-tests (Files): Likewise.
17678         * modules/carray-list-tests (Files): Likewise.
17679         * modules/ceilf-tests (Files): Likewise.
17680         * modules/ceill-tests (Files): Likewise.
17681         * modules/chown-tests (Files): Likewise.
17682         * modules/cloexec-tests (Files): Likewise.
17683         * modules/copy-file-tests (Files): Likewise.
17684         * modules/count-one-bits-tests (Files): Likewise.
17685         * modules/dprintf-posix-tests (Files): Likewise.
17686         * modules/dup2-tests (Files): Likewise.
17687         * modules/dup3-tests (Files): Likewise.
17688         * modules/duplocale-tests (Files): Likewise.
17689         * modules/fbufmode-tests (Files): Likewise.
17690         * modules/fchdir-tests (Files): Likewise.
17691         * modules/fcntl-safer-tests (Files): Likewise.
17692         * modules/fcntl-tests (Files): Likewise.
17693         * modules/fdopendir-tests (Files): Likewise.
17694         * modules/fdutimensat-tests (Files): Likewise.
17695         * modules/fflush-tests (Files): Likewise.
17696         * modules/filevercmp-tests (Files): Likewise.
17697         * modules/flock-tests (Files): Likewise.
17698         * modules/floorf-tests (Files): Likewise.
17699         * modules/floorl-tests (Files): Likewise.
17700         * modules/fnmatch-tests (Files): Likewise.
17701         * modules/fopen-safer-tests (Files): Likewise.
17702         * modules/fopen-tests (Files): Likewise.
17703         * modules/fpending-tests (Files): Likewise.
17704         * modules/fprintf-posix-tests (Files): Likewise.
17705         * modules/fpurge-tests (Files): Likewise.
17706         * modules/freadable-tests (Files): Likewise.
17707         * modules/freadahead-tests (Files): Likewise.
17708         * modules/freading-tests (Files): Likewise.
17709         * modules/freadptr-tests (Files): Likewise.
17710         * modules/freadseek-tests (Files): Likewise.
17711         * modules/freopen-tests (Files): Likewise.
17712         * modules/frexp-nolibm-tests (Files): Likewise.
17713         * modules/frexp-tests (Files): Likewise.
17714         * modules/frexpl-nolibm-tests (Files): Likewise.
17715         * modules/frexpl-tests (Files): Likewise.
17716         * modules/fseek-tests (Files): Likewise.
17717         * modules/fseeko-tests (Files): Likewise.
17718         * modules/fstrcmp-tests (Files): Likewise.
17719         * modules/fsync-tests (Files): Likewise.
17720         * modules/ftell-tests (Files): Likewise.
17721         * modules/ftello-tests (Files): Likewise.
17722         * modules/func-tests (Files): Likewise.
17723         * modules/futimens-tests (Files): Likewise.
17724         * modules/fwritable-tests (Files): Likewise.
17725         * modules/fwriting-tests (Files): Likewise.
17726         * modules/getcwd-tests (Files): Likewise.
17727         * modules/getdate-tests (Files): Likewise.
17728         * modules/getdelim-tests (Files): Likewise.
17729         * modules/getdtablesize-tests (Files): Likewise.
17730         * modules/getgroups-tests (Files): Likewise.
17731         * modules/getline-tests (Files): Likewise.
17732         * modules/getndelim2-tests (Files): Likewise.
17733         * modules/glob-tests (Files): Likewise.
17734         * modules/hash-tests (Files): Likewise.
17735         * modules/i-ring-tests (Files): Likewise.
17736         * modules/iconv-tests (Files): Likewise.
17737         * modules/iconv_open-utf-tests (Files): Likewise.
17738         * modules/idpriv-drop-tests (Files): Likewise.
17739         * modules/idpriv-droptemp-tests (Files): Likewise.
17740         * modules/inet_ntop-tests (Files): Likewise.
17741         * modules/inet_pton-tests (Files): Likewise.
17742         * modules/isblank-tests (Files): Likewise.
17743         * modules/isfinite-tests (Files): Likewise.
17744         * modules/isinf-tests (Files): Likewise.
17745         * modules/isnan-tests (Files): Likewise.
17746         * modules/isnand-nolibm-tests (Files): Likewise.
17747         * modules/isnand-tests (Files): Likewise.
17748         * modules/isnanf-nolibm-tests (Files): Likewise.
17749         * modules/isnanf-tests (Files): Likewise.
17750         * modules/isnanl-nolibm-tests (Files): Likewise.
17751         * modules/isnanl-tests (Files): Likewise.
17752         * modules/lchown-tests (Files): Likewise.
17753         * modules/ldexpl-tests (Files): Likewise.
17754         * modules/link-tests (Files): Likewise.
17755         * modules/linkat-tests (Files): Likewise.
17756         * modules/linked-list-tests (Files): Likewise.
17757         * modules/linkedhash-list-tests (Files): Likewise.
17758         * modules/localename-tests (Files): Likewise.
17759         * modules/lseek-tests (Files): Likewise.
17760         * modules/lstat-tests (Files): Likewise.
17761         * modules/mbmemcasecmp-tests (Files): Likewise.
17762         * modules/mbmemcasecoll-tests (Files): Likewise.
17763         * modules/mbrtowc-tests (Files): Likewise.
17764         * modules/mbscasecmp-tests (Files): Likewise.
17765         * modules/mbscasestr-tests (Files): Likewise.
17766         * modules/mbschr-tests (Files): Likewise.
17767         * modules/mbscspn-tests (Files): Likewise.
17768         * modules/mbsinit-tests (Files): Likewise.
17769         * modules/mbsncasecmp-tests (Files): Likewise.
17770         * modules/mbsnrtowcs-tests (Files): Likewise.
17771         * modules/mbspbrk-tests (Files): Likewise.
17772         * modules/mbspcasecmp-tests (Files): Likewise.
17773         * modules/mbsrchr-tests (Files): Likewise.
17774         * modules/mbsrtowcs-tests (Files): Likewise.
17775         * modules/mbsspn-tests (Files): Likewise.
17776         * modules/mbsstr-tests (Files): Likewise.
17777         * modules/memchr-tests (Files): Likewise.
17778         * modules/memchr2-tests (Files): Likewise.
17779         * modules/memcmp-tests (Files): Likewise.
17780         * modules/memmem-tests (Files): Likewise.
17781         * modules/memrchr-tests (Files): Likewise.
17782         * modules/mkdir-tests (Files): Likewise.
17783         * modules/mkfifo-tests (Files): Likewise.
17784         * modules/mkfifoat-tests (Files): Likewise.
17785         * modules/mknod-tests (Files): Likewise.
17786         * modules/nanosleep-tests (Files): Likewise.
17787         * modules/nl_langinfo-tests (Files): Likewise.
17788         * modules/obstack-printf-tests (Files): Likewise.
17789         * modules/open-tests (Files): Likewise.
17790         * modules/openat-tests (Files): Likewise.
17791         * modules/pipe-filter-gi-tests (Files): Likewise.
17792         * modules/pipe-filter-ii-tests (Files): Likewise.
17793         * modules/pipe2-tests (Files): Likewise.
17794         * modules/popen-safer-tests (Files): Likewise.
17795         * modules/popen-tests (Files): Likewise.
17796         * modules/posixtm-tests (Files): Likewise.
17797         * modules/pread-tests (Files): Likewise.
17798         * modules/printf-frexp-tests (Files): Likewise.
17799         * modules/printf-frexpl-tests (Files): Likewise.
17800         * modules/printf-posix-tests (Files): Likewise.
17801         * modules/priv-set-tests (Files): Likewise.
17802         * modules/quotearg-tests (Files): Likewise.
17803         * modules/random_r-tests (Files): Likewise.
17804         * modules/rawmemchr-tests (Files): Likewise.
17805         * modules/rbtree-list-tests (Files): Likewise.
17806         * modules/rbtree-oset-tests (Files): Likewise.
17807         * modules/rbtreehash-list-tests (Files): Likewise.
17808         * modules/readlink-tests (Files): Likewise.
17809         * modules/remove-tests (Files): Likewise.
17810         * modules/rename-tests (Files): Likewise.
17811         * modules/renameat-tests (Files): Likewise.
17812         * modules/rmdir-tests (Files): Likewise.
17813         * modules/round-tests (Files): Likewise.
17814         * modules/roundf-tests (Files): Likewise.
17815         * modules/roundl-tests (Files): Likewise.
17816         * modules/safe-alloc-tests (Files): Likewise.
17817         * modules/setenv-tests (Files): Likewise.
17818         * modules/sigaction-tests (Files): Likewise.
17819         * modules/signbit-tests (Files): Likewise.
17820         * modules/sleep-tests (Files): Likewise.
17821         * modules/snprintf-posix-tests (Files): Likewise.
17822         * modules/snprintf-tests (Files): Likewise.
17823         * modules/sprintf-posix-tests (Files): Likewise.
17824         * modules/stat-tests (Files): Likewise.
17825         * modules/stat-time-tests (Files): Likewise.
17826         * modules/strcasestr-tests (Files): Likewise.
17827         * modules/strchrnul-tests (Files): Likewise.
17828         * modules/strerror-tests (Files): Likewise.
17829         * modules/striconv-tests (Files): Likewise.
17830         * modules/striconveh-tests (Files): Likewise.
17831         * modules/striconveha-tests (Files): Likewise.
17832         * modules/strsignal-tests (Files): Likewise.
17833         * modules/strstr-tests (Files): Likewise.
17834         * modules/strtod-tests (Files): Likewise.
17835         * modules/strverscmp-tests (Files): Likewise.
17836         * modules/symlink-tests (Files): Likewise.
17837         * modules/symlinkat-tests (Files): Likewise.
17838         * modules/trunc-tests (Files): Likewise.
17839         * modules/truncf-tests (Files): Likewise.
17840         * modules/truncl-tests (Files): Likewise.
17841         * modules/uname-tests (Files): Likewise.
17842         * modules/unicase/cased-tests (Files): Likewise.
17843         * modules/unicase/ignorable-tests (Files): Likewise.
17844         * modules/unicase/locale-language-tests (Files): Likewise.
17845         * modules/unicase/tolower-tests (Files): Likewise.
17846         * modules/unicase/totitle-tests (Files): Likewise.
17847         * modules/unicase/toupper-tests (Files): Likewise.
17848         * modules/unicase/u8-casecmp-tests (Files): Likewise.
17849         * modules/unicase/u8-casecoll-tests (Files): Likewise.
17850         * modules/unicase/u8-casefold-tests (Files): Likewise.
17851         * modules/unicase/u8-is-cased-tests (Files): Likewise.
17852         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
17853         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
17854         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
17855         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
17856         * modules/unicase/u8-tolower-tests (Files): Likewise.
17857         * modules/unicase/u8-totitle-tests (Files): Likewise.
17858         * modules/unicase/u8-toupper-tests (Files): Likewise.
17859         * modules/unicase/u16-casecmp-tests (Files): Likewise.
17860         * modules/unicase/u16-casecoll-tests (Files): Likewise.
17861         * modules/unicase/u16-casefold-tests (Files): Likewise.
17862         * modules/unicase/u16-is-cased-tests (Files): Likewise.
17863         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
17864         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
17865         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
17866         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
17867         * modules/unicase/u16-tolower-tests (Files): Likewise.
17868         * modules/unicase/u16-totitle-tests (Files): Likewise.
17869         * modules/unicase/u16-toupper-tests (Files): Likewise.
17870         * modules/unicase/u32-casecmp-tests (Files): Likewise.
17871         * modules/unicase/u32-casecoll-tests (Files): Likewise.
17872         * modules/unicase/u32-casefold-tests (Files): Likewise.
17873         * modules/unicase/u32-is-cased-tests (Files): Likewise.
17874         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
17875         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
17876         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
17877         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
17878         * modules/unicase/u32-tolower-tests (Files): Likewise.
17879         * modules/unicase/u32-totitle-tests (Files): Likewise.
17880         * modules/unicase/u32-toupper-tests (Files): Likewise.
17881         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
17882         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
17883         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
17884         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
17885         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
17886         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
17887         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
17888         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
17889         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
17890         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
17891         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
17892         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
17893         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
17894         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
17895         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
17896         * modules/unictype/bidicategory-name-tests (Files): Likewise.
17897         * modules/unictype/bidicategory-of-tests (Files): Likewise.
17898         * modules/unictype/bidicategory-test-tests (Files): Likewise.
17899         * modules/unictype/block-list-tests (Files): Likewise.
17900         * modules/unictype/block-of-tests (Files): Likewise.
17901         * modules/unictype/block-test-tests (Files): Likewise.
17902         * modules/unictype/category-C-tests (Files): Likewise.
17903         * modules/unictype/category-Cc-tests (Files): Likewise.
17904         * modules/unictype/category-Cf-tests (Files): Likewise.
17905         * modules/unictype/category-Cn-tests (Files): Likewise.
17906         * modules/unictype/category-Co-tests (Files): Likewise.
17907         * modules/unictype/category-Cs-tests (Files): Likewise.
17908         * modules/unictype/category-L-tests (Files): Likewise.
17909         * modules/unictype/category-Ll-tests (Files): Likewise.
17910         * modules/unictype/category-Lm-tests (Files): Likewise.
17911         * modules/unictype/category-Lo-tests (Files): Likewise.
17912         * modules/unictype/category-Lt-tests (Files): Likewise.
17913         * modules/unictype/category-Lu-tests (Files): Likewise.
17914         * modules/unictype/category-M-tests (Files): Likewise.
17915         * modules/unictype/category-Mc-tests (Files): Likewise.
17916         * modules/unictype/category-Me-tests (Files): Likewise.
17917         * modules/unictype/category-Mn-tests (Files): Likewise.
17918         * modules/unictype/category-N-tests (Files): Likewise.
17919         * modules/unictype/category-Nd-tests (Files): Likewise.
17920         * modules/unictype/category-Nl-tests (Files): Likewise.
17921         * modules/unictype/category-No-tests (Files): Likewise.
17922         * modules/unictype/category-P-tests (Files): Likewise.
17923         * modules/unictype/category-Pc-tests (Files): Likewise.
17924         * modules/unictype/category-Pd-tests (Files): Likewise.
17925         * modules/unictype/category-Pe-tests (Files): Likewise.
17926         * modules/unictype/category-Pf-tests (Files): Likewise.
17927         * modules/unictype/category-Pi-tests (Files): Likewise.
17928         * modules/unictype/category-Po-tests (Files): Likewise.
17929         * modules/unictype/category-Ps-tests (Files): Likewise.
17930         * modules/unictype/category-S-tests (Files): Likewise.
17931         * modules/unictype/category-Sc-tests (Files): Likewise.
17932         * modules/unictype/category-Sk-tests (Files): Likewise.
17933         * modules/unictype/category-Sm-tests (Files): Likewise.
17934         * modules/unictype/category-So-tests (Files): Likewise.
17935         * modules/unictype/category-Z-tests (Files): Likewise.
17936         * modules/unictype/category-Zl-tests (Files): Likewise.
17937         * modules/unictype/category-Zp-tests (Files): Likewise.
17938         * modules/unictype/category-Zs-tests (Files): Likewise.
17939         * modules/unictype/category-and-not-tests (Files): Likewise.
17940         * modules/unictype/category-and-tests (Files): Likewise.
17941         * modules/unictype/category-byname-tests (Files): Likewise.
17942         * modules/unictype/category-name-tests (Files): Likewise.
17943         * modules/unictype/category-none-tests (Files): Likewise.
17944         * modules/unictype/category-of-tests (Files): Likewise.
17945         * modules/unictype/category-or-tests (Files): Likewise.
17946         * modules/unictype/category-test-withtable-tests (Files): Likewise.
17947         * modules/unictype/combining-class-tests (Files): Likewise.
17948         * modules/unictype/ctype-alnum-tests (Files): Likewise.
17949         * modules/unictype/ctype-alpha-tests (Files): Likewise.
17950         * modules/unictype/ctype-blank-tests (Files): Likewise.
17951         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
17952         * modules/unictype/ctype-digit-tests (Files): Likewise.
17953         * modules/unictype/ctype-graph-tests (Files): Likewise.
17954         * modules/unictype/ctype-lower-tests (Files): Likewise.
17955         * modules/unictype/ctype-print-tests (Files): Likewise.
17956         * modules/unictype/ctype-punct-tests (Files): Likewise.
17957         * modules/unictype/ctype-space-tests (Files): Likewise.
17958         * modules/unictype/ctype-upper-tests (Files): Likewise.
17959         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
17960         * modules/unictype/decimal-digit-tests (Files): Likewise.
17961         * modules/unictype/digit-tests (Files): Likewise.
17962         * modules/unictype/mirror-tests (Files): Likewise.
17963         * modules/unictype/numeric-tests (Files): Likewise.
17964         * modules/unictype/property-alphabetic-tests (Files): Likewise.
17965         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
17966         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
17967         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
17968         Likewise.
17969         * modules/unictype/property-bidi-block-separator-tests (Files):
17970         Likewise.
17971         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
17972         Likewise.
17973         * modules/unictype/property-bidi-common-separator-tests (Files):
17974         Likewise.
17975         * modules/unictype/property-bidi-control-tests (Files): Likewise.
17976         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
17977         Likewise.
17978         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
17979         Likewise.
17980         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
17981         Likewise.
17982         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
17983         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
17984         Likewise.
17985         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
17986         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
17987         Likewise.
17988         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
17989         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
17990         * modules/unictype/property-bidi-segment-separator-tests (Files):
17991         Likewise.
17992         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
17993         * modules/unictype/property-byname-tests (Files): Likewise.
17994         * modules/unictype/property-combining-tests (Files): Likewise.
17995         * modules/unictype/property-composite-tests (Files): Likewise.
17996         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
17997         * modules/unictype/property-dash-tests (Files): Likewise.
17998         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
17999         * modules/unictype/property-default-ignorable-code-point-tests (Files):
18000         Likewise.
18001         * modules/unictype/property-deprecated-tests (Files): Likewise.
18002         * modules/unictype/property-diacritic-tests (Files): Likewise.
18003         * modules/unictype/property-extender-tests (Files): Likewise.
18004         * modules/unictype/property-format-control-tests (Files): Likewise.
18005         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
18006         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
18007         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
18008         * modules/unictype/property-hex-digit-tests (Files): Likewise.
18009         * modules/unictype/property-hyphen-tests (Files): Likewise.
18010         * modules/unictype/property-id-continue-tests (Files): Likewise.
18011         * modules/unictype/property-id-start-tests (Files): Likewise.
18012         * modules/unictype/property-ideographic-tests (Files): Likewise.
18013         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
18014         * modules/unictype/property-ids-trinary-operator-tests (Files):
18015         Likewise.
18016         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
18017         * modules/unictype/property-iso-control-tests (Files): Likewise.
18018         * modules/unictype/property-join-control-tests (Files): Likewise.
18019         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
18020         * modules/unictype/property-line-separator-tests (Files): Likewise.
18021         * modules/unictype/property-logical-order-exception-tests (Files):
18022         Likewise.
18023         * modules/unictype/property-lowercase-tests (Files): Likewise.
18024         * modules/unictype/property-math-tests (Files): Likewise.
18025         * modules/unictype/property-non-break-tests (Files): Likewise.
18026         * modules/unictype/property-not-a-character-tests (Files): Likewise.
18027         * modules/unictype/property-numeric-tests (Files): Likewise.
18028         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
18029         * modules/unictype/property-other-default-ignorable-code-point-tests
18030         (Files): Likewise.
18031         * modules/unictype/property-other-grapheme-extend-tests (Files):
18032         Likewise.
18033         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
18034         * modules/unictype/property-other-id-start-tests (Files): Likewise.
18035         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
18036         * modules/unictype/property-other-math-tests (Files): Likewise.
18037         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
18038         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
18039         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
18040         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
18041         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
18042         * modules/unictype/property-private-use-tests (Files): Likewise.
18043         * modules/unictype/property-punctuation-tests (Files): Likewise.
18044         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
18045         * modules/unictype/property-radical-tests (Files): Likewise.
18046         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
18047         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
18048         * modules/unictype/property-space-tests (Files): Likewise.
18049         * modules/unictype/property-terminal-punctuation-tests (Files):
18050         Likewise.
18051         * modules/unictype/property-test-tests (Files): Likewise.
18052         * modules/unictype/property-titlecase-tests (Files): Likewise.
18053         * modules/unictype/property-unassigned-code-value-tests (Files):
18054         Likewise.
18055         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
18056         * modules/unictype/property-uppercase-tests (Files): Likewise.
18057         * modules/unictype/property-variation-selector-tests (Files): Likewise.
18058         * modules/unictype/property-white-space-tests (Files): Likewise.
18059         * modules/unictype/property-xid-continue-tests (Files): Likewise.
18060         * modules/unictype/property-xid-start-tests (Files): Likewise.
18061         * modules/unictype/property-zero-width-tests (Files): Likewise.
18062         * modules/unictype/scripts-tests (Files): Likewise.
18063         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
18064         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
18065         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
18066         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
18067         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
18068         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
18069         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
18070         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
18071         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
18072         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
18073         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
18074         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
18075         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
18076         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
18077         * modules/uninorm/composition-tests (Files): Likewise.
18078         * modules/uninorm/decomposing-form-tests (Files): Likewise.
18079         * modules/uninorm/decomposition-tests (Files): Likewise.
18080         * modules/uninorm/filter-tests (Files): Likewise.
18081         * modules/uninorm/nfc-tests (Files): Likewise.
18082         * modules/uninorm/nfd-tests (Files): Likewise.
18083         * modules/uninorm/nfkc-tests (Files): Likewise.
18084         * modules/uninorm/nfkd-tests (Files): Likewise.
18085         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
18086         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
18087         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
18088         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
18089         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
18090         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
18091         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
18092         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18093         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
18094         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
18095         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
18096         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
18097         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18098         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
18099         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
18100         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
18101         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
18102         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18103         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
18104         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
18105         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
18106         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
18107         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18108         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
18109         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
18110         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
18111         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
18112         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
18113         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
18114         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
18115         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
18116         * modules/uniwidth/u8-width-tests (Files): Likewise.
18117         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
18118         * modules/uniwidth/u16-width-tests (Files): Likewise.
18119         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
18120         * modules/uniwidth/u32-width-tests (Files): Likewise.
18121         * modules/uniwidth/width-tests (Files): Likewise.
18122         * modules/unlink-tests (Files): Likewise.
18123         * modules/unsetenv-tests (Files): Likewise.
18124         * modules/usleep-tests (Files): Likewise.
18125         * modules/utimens-tests (Files): Likewise.
18126         * modules/utimensat-tests (Files): Likewise.
18127         * modules/vasnprintf-posix-tests (Files): Likewise.
18128         * modules/vasnprintf-tests (Files): Likewise.
18129         * modules/vasprintf-posix-tests (Files): Likewise.
18130         * modules/vasprintf-tests (Files): Likewise.
18131         * modules/vdprintf-posix-tests (Files): Likewise.
18132         * modules/vfprintf-posix-tests (Files): Likewise.
18133         * modules/vprintf-posix-tests (Files): Likewise.
18134         * modules/vsnprintf-posix-tests (Files): Likewise.
18135         * modules/vsnprintf-tests (Files): Likewise.
18136         * modules/vsprintf-posix-tests (Files): Likewise.
18137         * modules/wcrtomb-tests (Files): Likewise.
18138         * modules/wcsnrtombs-tests (Files): Likewise.
18139         * modules/wcsrtombs-tests (Files): Likewise.
18140         * modules/wctype-tests (Files): Likewise.
18141         * modules/wcwidth-tests (Files): Likewise.
18142         * modules/xmemdup0-tests (Files): Likewise.
18143         * modules/xprintf-posix-tests (Files): Likewise.
18144         * modules/xvasprintf-tests (Files): Likewise.
18145
18146 2009-12-24  Eric Blake  <ebb9@byu.net>
18147
18148         test-nanosleep: fix typo
18149         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
18150         patch.
18151         Reported by Bruno Haible.
18152
18153 2009-12-24  Bruno Haible  <bruno@clisp.org>
18154
18155         Reduce namespace pollution on glibc systems.
18156         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
18157         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
18158         systems.
18159         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
18160         <getopt.h> on glibc systems.
18161         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
18162         systems.
18163         * lib/fcntl.c: Include <unistd.h> here instead.
18164
18165 2009-12-24  Bruno Haible  <bruno@clisp.org>
18166
18167         * lib/stdlib.in.h (includes): Fix typo in today's commit.
18168
18169 2009-12-24  Eric Blake  <ebb9@byu.net>
18170
18171         tests: add signature checks
18172         * tests/signature.h (SIGNATURE_CHECK): New file.
18173         * modules/atexit-tests (Files): Use it.
18174         * modules/btowc-tests (Files): Likewise.
18175         * modules/canonicalize-lgpl-tests (Files): Likewise.
18176         * modules/ceilf-tests (Files): Likewise.
18177         * modules/ceill-tests (Files): Likewise.
18178         * modules/chown-tests (Files): Likewise.
18179         * modules/dprintf-posix-tests (Files): Likewise.
18180         * modules/dup2-tests (Files): Likewise.
18181         * modules/dup3-tests (Files): Likewise.
18182         * modules/duplocale-tests (Files): Likewise.
18183         * modules/fchdir-tests (Files): Likewise.
18184         * modules/fcntl-tests (Files): Likewise.
18185         * modules/fdopendir-tests (Files): Likewise.
18186         * modules/fflush-tests (Files): Likewise.
18187         * modules/flock-tests (Files): Likewise.
18188         * modules/floorf-tests (Files): Likewise.
18189         * modules/floorl-tests (Files): Likewise.
18190         * modules/fnmatch-tests (Files): Likewise.
18191         * modules/fopen-tests (Files): Likewise.
18192         * modules/fprintf-posix-tests (Files): Likewise.
18193         * modules/freopen-tests (Files): Likewise.
18194         * modules/frexp-nolibm-tests (Files): Likewise.
18195         * modules/frexp-tests (Files): Likewise.
18196         * modules/frexpl-nolibm-tests (Files): Likewise.
18197         * modules/frexpl-tests (Files): Likewise.
18198         * modules/fseek-tests (Files): Likewise.
18199         * modules/fseeko-tests (Files): Likewise.
18200         * modules/fsync-tests (Files): Likewise.
18201         * modules/ftell-tests (Files): Likewise.
18202         * modules/ftello-tests (Files): Likewise.
18203         * modules/futimens-tests (Files): Likewise.
18204         * modules/getaddrinfo-tests (Files): Likewise.
18205         * modules/getcwd-tests (Files): Likewise.
18206         * modules/getdelim-tests (Files): Likewise.
18207         * modules/getdtablesize-tests (Files): Likewise.
18208         * modules/getgroups-tests (Files): Likewise.
18209         * modules/gethostname-tests (Files): Likewise.
18210         * modules/getline-tests (Files): Likewise.
18211         * modules/getopt-posix-tests (Files): Likewise.
18212         * modules/gettimeofday-tests (Files): Likewise.
18213         * modules/glob-tests (Files): Likewise.
18214         * modules/iconv-tests (Files): Likewise.
18215         * modules/inet_ntop-tests (Files): Likewise.
18216         * modules/inet_pton-tests (Files): Likewise.
18217         * modules/isblank-tests (Files): Likewise.
18218         * modules/lchown-tests (Files): Likewise.
18219         * modules/ldexpl-tests (Files): Likewise.
18220         * modules/link-tests (Files): Likewise.
18221         * modules/linkat-tests (Files): Likewise.
18222         * modules/lseek-tests (Files): Likewise.
18223         * modules/lstat-tests (Files): Likewise.
18224         * modules/mbrtowc-tests (Files): Likewise.
18225         * modules/mbsinit-tests (Files): Likewise.
18226         * modules/mbsnrtowcs-tests (Files): Likewise.
18227         * modules/mbsrtowcs-tests (Files): Likewise.
18228         * modules/memchr-tests (Files): Likewise.
18229         * modules/memcmp-tests (Files): Likewise.
18230         * modules/memmem-tests (Files): Likewise.
18231         * modules/memrchr-tests (Files): Likewise.
18232         * modules/mkdir-tests (Files): Likewise.
18233         * modules/mkfifo-tests (Files): Likewise.
18234         * modules/mkfifoat-tests (Files): Likewise.
18235         * modules/mknod-tests (Files): Likewise.
18236         * modules/nanosleep-tests (Files): Likewise.
18237         * modules/nl_langinfo-tests (Files): Likewise.
18238         * modules/obstack-printf-tests (Files): Likewise.
18239         * modules/open-tests (Files): Likewise.
18240         * modules/openat-tests (Files): Likewise.
18241         * modules/perror-tests (Files): Likewise.
18242         * modules/pipe2-tests (Files): Likewise.
18243         * modules/poll-tests (Files): Likewise.
18244         * modules/popen-tests (Files): Likewise.
18245         * modules/posix_spawn-tests (Files): Likewise.
18246         * modules/posix_spawnp-tests (Files): Likewise.
18247         * modules/pread-tests (Files): Likewise.
18248         * modules/printf-posix-tests (Files): Likewise.
18249         * modules/pty-tests (Files): Likewise.
18250         * modules/random_r-tests (Files): Likewise.
18251         * modules/rawmemchr-tests (Files): Likewise.
18252         * modules/readlink-tests (Files): Likewise.
18253         * modules/remove-tests (Files): Likewise.
18254         * modules/rename-tests (Files): Likewise.
18255         * modules/renameat-tests (Files): Likewise.
18256         * modules/rmdir-tests (Files): Likewise.
18257         * modules/round-tests (Files): Likewise.
18258         * modules/roundf-tests (Files): Likewise.
18259         * modules/roundl-tests (Files): Likewise.
18260         * modules/select-tests (Files): Likewise.
18261         * modules/setenv-tests (Files): Likewise.
18262         * modules/sigaction-tests (Files): Likewise.
18263         * modules/sleep-tests (Files): Likewise.
18264         * modules/snprintf-posix-tests (Files): Likewise.
18265         * modules/snprintf-tests (Files): Likewise.
18266         * modules/sprintf-posix-tests (Files): Likewise.
18267         * modules/stat-tests (Files): Likewise.
18268         * modules/strcasestr-tests (Files): Likewise.
18269         * modules/strchrnul-tests (Files): Likewise.
18270         * modules/strerror-tests (Files): Likewise.
18271         * modules/strsignal-tests (Files): Likewise.
18272         * modules/strstr-tests (Files): Likewise.
18273         * modules/strtod-tests (Files): Likewise.
18274         * modules/strverscmp-tests (Files): Likewise.
18275         * modules/symlink-tests (Files): Likewise.
18276         * modules/symlinkat-tests (Files): Likewise.
18277         * modules/times-tests (Files): Likewise.
18278         * modules/trunc-tests (Files): Likewise.
18279         * modules/truncf-tests (Files): Likewise.
18280         * modules/truncl-tests (Files): Likewise.
18281         * modules/tsearch-tests (Files): Likewise.
18282         * modules/uname-tests (Files): Likewise.
18283         * modules/unlink-tests (Files): Likewise.
18284         * modules/unsetenv-tests (Files): Likewise.
18285         * modules/usleep-tests (Files): Likewise.
18286         * modules/utimensat-tests (Files): Likewise.
18287         * modules/vasprintf-tests (Files): Likewise.
18288         * modules/vdprintf-posix-tests (Files): Likewise.
18289         * modules/vfprintf-posix-tests (Files): Likewise.
18290         * modules/vprintf-posix-tests (Files): Likewise.
18291         * modules/vsnprintf-posix-tests (Files): Likewise.
18292         * modules/vsnprintf-tests (Files): Likewise.
18293         * modules/vsprintf-posix-tests (Files): Likewise.
18294         * modules/wcrtomb-tests (Files): Likewise.
18295         * modules/wcsnrtombs-tests (Files): Likewise.
18296         * modules/wcsrtombs-tests (Files): Likewise.
18297         * modules/wcwidth-tests (Files): Likewise.
18298         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
18299         * tests/test-isinf.c (isinf): Likewise.
18300         * tests/test-isnan.c (isnan): Likewise.
18301         * tests/test-signbit.c (signbit): Likewise.
18302         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
18303         declaration, either as macro or with correct signature.
18304         (select): Ensure function under test is declared with correct
18305         signature in correct header.
18306         * tests/test-atexit.c (atexit): Likewise.
18307         * tests/test-btowc.c (btowc): Likewise.
18308         * tests/test-canonicalize-lgpl.c (realpath)
18309         (canonicalize_file_name): Likewise.
18310         * tests/test-ceilf1.c (ceilf): Likewise.
18311         * tests/test-ceill.c (ceill): Likewise.
18312         * tests/test-chown.c (chown): Likewise.
18313         * tests/test-dprintf-posix.c (dprintf): Likewise.
18314         * tests/test-dup2.c (dup2): Likewise.
18315         * tests/test-dup3.c (dup3): Likewise.
18316         * tests/test-duplocale.c (duplocale): Likewise.
18317         * tests/test-fchdir.c (fchdir): Likewise.
18318         * tests/test-fchownat.c (fchownat): Likewise.
18319         * tests/test-fcntl.c (fcntl): Likewise.
18320         * tests/test-fdopendir.c (fdopendir): Likewise.
18321         * tests/test-fflush.c (fflush): Likewise.
18322         * tests/test-flock.c (flock): Likewise.
18323         * tests/test-floorf1.c (floorf): Likewise.
18324         * tests/test-floorl.c (floorl): Likewise.
18325         * tests/test-fnmatch.c (fnmatch): Likewise.
18326         * tests/test-fopen.c (fopen): Likewise.
18327         * tests/test-fprintf-posix.c (fprintf): Likewise.
18328         * tests/test-freopen.c (freopen): Likewise.
18329         * tests/test-frexp.c (frexp): Likewise.
18330         * tests/test-frexpl.c (frexpl): Likewise.
18331         * tests/test-fseek.c (fseek): Likewise.
18332         * tests/test-fseeko.c (fseeko): Likewise.
18333         * tests/test-fstatat.c (fstatat): Likewise.
18334         * tests/test-fsync.c (fsync): Likewise.
18335         * tests/test-ftell.c (ftell): Likewise.
18336         * tests/test-ftello.c (ftello): Likewise.
18337         * tests/test-futimens.c (futimens): Likewise.
18338         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
18339         (gai_strerror): Likewise.
18340         * tests/test-getcwd.c (getcwd): Likewise.
18341         * tests/test-getdelim.c (getdelim): Likewise.
18342         * tests/test-getdtablesize.c (getdtablesize): Likewise.
18343         * tests/test-getgroups.c (getgroups): Likewise.
18344         * tests/test-gethostname.c (gethostname): Likewise.
18345         * tests/test-getline.c (getline): Likewise.
18346         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
18347         Likewise.
18348         * tests/test-gettimeofday.c (gettimeofday): Likewise.
18349         * tests/test-glob.c (glob, globfree): Likewise.
18350         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
18351         * tests/test-inet_ntop.c (inet_ntop): Likewise.
18352         * tests/test-inet_pton.c (inet_pton): Likewise.
18353         * tests/test-isblank.c (isblank): Likewise.
18354         * tests/test-lchown.c (lchown): Likewise.
18355         * tests/test-ldexpl.c (ldexpl): Likewise.
18356         * tests/test-link.c (link): Likewise.
18357         * tests/test-linkat.c (linkat): Likewise.
18358         * tests/test-lseek.c (lseek): Likewise.
18359         * tests/test-lstat.c (lstat): Likewise.
18360         * tests/test-mbrtowc.c (mbrtowc): Likewise.
18361         * tests/test-mbsinit.c (mbsinit): Likewise.
18362         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
18363         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
18364         * tests/test-memchr.c (memchr): Likewise.
18365         * tests/test-memcmp.c (memcmp): Likewise.
18366         * tests/test-memmem.c (memmem): Likewise.
18367         * tests/test-memrchr.c (memrchr): Likewise.
18368         * tests/test-mkdir.c (mkdir): Likewise.
18369         * tests/test-mkdirat.c (mkdirat): Likewise.
18370         * tests/test-mkfifo.c (mkfifo): Likewise.
18371         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
18372         * tests/test-mknod.c (mknod): Likewise.
18373         * tests/test-nanosleep.c (nanosleep): Likewise.
18374         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
18375         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
18376         Likewise.
18377         * tests/test-open.c (open): Likewise.
18378         * tests/test-openat.c (openat): Likewise.
18379         * tests/test-perror.c (perror): Likewise.
18380         * tests/test-pipe2.c (pipe2): Likewise.
18381         * tests/test-poll.c (poll): Likewise.
18382         * tests/test-popen.c (popen, pclose): Likewise.
18383         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
18384         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
18385         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
18386         (posix_spawn_file_actions_destroy)
18387         (posix_spawn_file_actions_addclose)
18388         (posix_spawn_file_actions_addopen)
18389         (posix_spawn_file_actions_adddup2): Likewise.
18390         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
18391         * tests/test-pread.c (pread): Likewise.
18392         * tests/test-printf-posix.c (printf): Likewise.
18393         * tests/test-pty.c (openpty, forkpty): Likewise.
18394         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
18395         (random_r): Likewise.
18396         * tests/test-rawmemchr.c (rawmemchr): Likewise.
18397         * tests/test-readlink.c (readlink): Likewise.
18398         * tests/test-remove.c (remove): Likewise.
18399         * tests/test-rename.c (rename): Likewise.
18400         * tests/test-renameat.c (renameat): Likewise.
18401         * tests/test-rmdir.c (rmdir): Likewise.
18402         * tests/test-round1.c (round): Likewise.
18403         * tests/test-roundf1.c (roundf): Likewise.
18404         * tests/test-roundl.c (roundl): Likewise.
18405         * tests/test-setenv.c (setenv): Likewise.
18406         * tests/test-sigaction.c (sigaction): Likewise.
18407         * tests/test-sleep.c (sleep): Likewise.
18408         * tests/test-snprintf.c (snprintf): Likewise.
18409         * tests/test-sprintf-posix.c (sprintf): Likewise.
18410         * tests/test-stat.c (stat): Likewise.
18411         * tests/test-stpncpy.c (stpncpy): Likewise.
18412         * tests/test-strcasestr.c (strcasestr): Likewise.
18413         * tests/test-strchrnul.c (strchrnul): Likewise.
18414         * tests/test-strerror.c (strerror): Likewise.
18415         * tests/test-strsignal.c (strsignal): Likewise.
18416         * tests/test-strstr.c (strstr): Likewise.
18417         * tests/test-strtod.c (strtod): Likewise.
18418         * tests/test-strverscmp.c (strverscmp): Likewise.
18419         * tests/test-symlink.c (symlink): Likewise.
18420         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
18421         * tests/test-times.c (times): Likewise.
18422         * tests/test-trunc1.c (trunc): Likewise.
18423         * tests/test-truncf1.c (truncf): Likewise.
18424         * tests/test-truncl.c (truncl): Likewise.
18425         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
18426         Likewise.
18427         * tests/test-uname.c (uname): Likewise.
18428         * tests/test-unlink.c (unlink): Likewise.
18429         * tests/test-unlinkat.c (unlinkat): Likewise.
18430         * tests/test-unsetenv.c (unsetenv): Likewise.
18431         * tests/test-usleep.c (usleep): Likewise.
18432         * tests/test-utimensat.c (utimensat): Likewise.
18433         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
18434         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
18435         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
18436         * tests/test-vprintf-posix.c (vprintf): Likewise.
18437         * tests/test-vsnprintf.c (vsnprintf): Likewise.
18438         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
18439         * tests/test-wcrtomb.c (wcrtomb): Likewise.
18440         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
18441         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
18442         * tests/test-wcwidth.c (wcwidth): Likewise.
18443
18444         build: pull in conditional headers during GNULIB_POSIXCHECK
18445         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
18446         definitions from any conditionally-included headers.
18447         * lib/stdlib.in.h (includes): Likewise.
18448         * lib/unistd.in.h (includes): Likewise.
18449
18450 2009-12-24  Bruno Haible  <bruno@clisp.org>
18451
18452         * tests/test-argv-iter.c: Include header file being tested immediately
18453         after config.h.
18454         * tests/test-base64.c: Likewise.
18455         * tests/test-flock.c: Likewise.
18456         * tests/test-fsync.c: Likewise.
18457         * tests/test-getdate.c: Likewise.
18458         * tests/test-getndelim2.c: Likewise.
18459         * tests/test-isfinite.c: Likewise.
18460         * tests/test-isinf.c: Likewise.
18461         * tests/test-strerror.c: Likewise.
18462         * tests/test-strsignal.c: Likewise.
18463
18464 2009-12-23  Eric Blake  <ebb9@byu.net>
18465
18466         unistd: work around cygwin bug
18467         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
18468         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
18469         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18470
18471 2009-12-23  Bruno Haible  <bruno@clisp.org>
18472
18473         localename: More tests.
18474         * tests/test-localename.c (SIZEOF): New macro.
18475         (categories): New variable.
18476         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
18477         test_locale_name_default): Add test w.r.t. thread locale.
18478         (test_locale_name_thread): New function.
18479         (main): Invoke it.
18480
18481         localename: Make aware of thread locale.
18482         * lib/localename.h (gl_locale_name_thread): New declaration.
18483         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
18484         behaviour with respect to thread locale.
18485         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
18486         <langinfo.h>, glthread/lock.h.
18487         (SIZE_BITS): New macro.
18488         (string_hash): New function.
18489         (struct hash_node): New type.
18490         (HASH_TABLE_SIZE): New macro.
18491         (struniq_hash_table, struniq_lock): New variables.
18492         (struniq): New function.
18493         (gl_locale_name_thread): New function.
18494         (gl_locale_name): Invoke it.
18495         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
18496         * modules/localename (Depends-on): Add lock.
18497         Reported by Mike Gran <spk121@yahoo.com>.
18498
18499 2009-12-23  Eric Blake  <ebb9@byu.net>
18500
18501         va-args: new module
18502         * modules/va-args: New file.
18503         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
18504         * MODULES.html.sh (Core language properties): Mention it.
18505
18506         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
18507         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
18508         named alias for __attribute__((__unused__)).
18509         * lib/chown.c: Update client.
18510         * lib/fchmodat.c: Likewise.
18511         * lib/fts.c: Likewise.
18512         * lib/getdate.y: Likewise.
18513         * lib/getgroups.c: Likewise.
18514         * lib/getopt.c: Likewise.
18515         * lib/getugroups.c: Likewise.
18516         * lib/mkdir.c: Likewise.
18517         * lib/mkfifo.c: Likewise.
18518         * lib/mkfifoat.c: Likewise.
18519         * lib/mknod.c: Likewise.
18520         * lib/mknodat.c: Likewise.
18521         * lib/readlink.c: Likewise.
18522         * lib/se-context.in.h: Likewise.
18523         * lib/se-selinux.in.h: Likewise.
18524         * lib/sockets.c: Likewise.
18525         * lib/symlink.c: Likewise.
18526         * lib/symlinkat.c: Likewise.
18527         * lib/unicodeio.c: Likewise.
18528         * lib/unistr.h: Likewise.
18529         * tests/test-areadlink.c: Likewise.
18530         * tests/test-areadlinkat.c: Likewise.
18531         * tests/test-filenamecat.c: Likewise.
18532         * tests/test-fseeko.c: Likewise.
18533         * tests/test-ftello.c: Likewise.
18534         * tests/test-getdate.c: Likewise.
18535         * tests/test-getgroups.c: Likewise.
18536         * tests/test-gethostname.c: Likewise.
18537         * tests/test-quotearg.c: Likewise.
18538         * tests/test-version-etc.c: Likewise.
18539         * tests/test-xalloc-die.c: Likewise.
18540         * tests/test-xfprintf-posix.c: Likewise.
18541         * tests/test-xprintf-posix.c: Likewise.
18542         * tests/test-xvasprintf.c: Likewise.
18543
18544         tests: avoid compiler warnings
18545         * tests/test-fcntl.c (main): Delete unused parameters.
18546         * tests/test-freopen-safer.c (main): Likewise.
18547         * tests/test-xalloc-die.c (main): Mark unused parameters.
18548         * tests/test-fseeko.c (main): Likewise.
18549         * tests/test-ftello.c (main): Likewise.
18550         * tests/test-nanosleep.c (main): Avoid declaration warning.
18551         * tests/test-sleep.c (main): Likewise.
18552         * tests/test-unsetenv.c (main): Silence warning about string
18553         literal.
18554         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
18555
18556 2009-12-23  Bruno Haible  <bruno@clisp.org>
18557
18558         * tests/test-localename.c (test_locale_name): New function, extracted
18559         from main. Also test mixed situations.
18560         (test_locale_name_posix, test_locale_name_environ,
18561         test_locale_name_default): New functions.
18562         (main): Invoke them all.
18563         * modules/localename-tests (configure.ac): Test for newlocale.
18564
18565 2009-12-23  Bruno Haible  <bruno@clisp.org>
18566
18567         unistd: Ensure getcwd gets declared before being overridden.
18568         * lib/unistd.in.h: Conditionally include <io.h>.
18569
18570 2009-12-22  Bruno Haible  <bruno@clisp.org>
18571
18572         wchar: Diagnose broken combination of glibc and gcc versions and flags.
18573         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
18574         (gl_WCHAR_H): Invoke it.
18575         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
18576         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
18577         Reported by Karl Berry <karl@freefriends.org>.
18578
18579 2009-12-22  Eric Blake  <ebb9@byu.net>
18580
18581         math, unistd: avoid redundant includes
18582         * lib/math.in.h (isnan): No need to re-include <math.h>.
18583         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
18584
18585         getsubopt: work around cygwin bug
18586         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
18587         avoid conflicting with system getsubopt.
18588         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
18589         bug.
18590
18591         getopt: synchronize from glibc
18592         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
18593         parameter order.  Adjust all callers.
18594         (_getopt_internal_r, main): Adjust quoting in error messages.
18595         Drop considerations for outdated POSIX 1003.2 error message.
18596         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
18597         callers.
18598         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
18599
18600         test-getopt: test stderr behavior
18601         * modules/getopt-posix-tests (Depends-on): Add dup2.
18602         * tests/test-getopt.c (ASSERT): Avoid stderr.
18603         (main): Move stderr to a temporary file.
18604         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
18605         Instead, add parameter to inform caller if output occurred.
18606         (test_getopt): Adjust all existing tests to expect silence, and
18607         add new tests of leading ":".
18608         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
18609         glibc shortcomings with leading "-:" or "+:" in optstring.
18610         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18611         Likewise.
18612         * doc/posix-functions/getopt.texi (getopt): Likewise.
18613
18614         test-getopt: enhance test
18615         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
18616         supports optind=0.
18617         * tests/test-getopt.c (OPTIND_MIN): Move...
18618         * tests/test-getopt.h (OPTIND_MIN): ...here.
18619         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
18620         Require that optind=0 works, since modern BSD supports it in
18621         addition to optreset, and since coreutils expects it.
18622         (test_getopt_long_only): New test.
18623         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
18624         glibc shortcomings with 'W;', and enforcement of optind=0.
18625         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18626         Likewise.
18627
18628 2009-12-21  Bruno Haible  <bruno@clisp.org>
18629
18630         localename: Improvements for MacOS X and Cygwin.
18631         * lib/localename.h (gl_locale_name_environ): New declaration.
18632         * lib/localename.c (gl_locale_name_environ): New function, extracted from
18633         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
18634         (gl_locale_name_posix): Invoke it.
18635         (gl_locale_name_default): Add comments. Use Windows native API also on
18636         Cygwin.
18637
18638 2009-12-21  Bruno Haible  <bruno@clisp.org>
18639
18640         Update list of Win32 locale ids.
18641         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
18642         (LANG_SAMI): Renamed from LANG_SAAMI.
18643         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
18644         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
18645         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
18646         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
18647         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
18648         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
18649         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
18650         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
18651         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
18652         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
18653         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
18654         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
18655         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
18656         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
18657         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
18658         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
18659         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
18660         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
18661         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
18662         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
18663         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
18664         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
18665         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
18666         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
18667         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
18668         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
18669         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
18670         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
18671         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
18672         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
18673         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
18674         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
18675         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
18676         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
18677         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
18678         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
18679         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
18680         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
18681         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
18682         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
18683         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
18684         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
18685         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
18686         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
18687         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
18688         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
18689         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
18690         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
18691         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
18692         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
18693         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
18694         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
18695         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
18696         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
18697         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
18698         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
18699         Add more languages and countries for Sami, Sorbian. Add more countries
18700         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
18701         for Pashto. Change country for Syriac, Tswana.
18702
18703 2009-12-21  Eric Blake  <ebb9@byu.net>
18704
18705         test-utimens: avoid spurious failure
18706         * tests/test-chown.h (nap): Factor...
18707         * tests/nap.h: ...into new file.
18708         * tests/test-lchown.h (nap): Avoid duplication.
18709         * tests/test-utimens-common.h (nap): Use shared implementation,
18710         necessary on file systems with 1-second resolution.
18711         * modules/chown-tests (Files): Include new file.
18712         * modules/fdutimensat-tests (Files): Likewise.
18713         * modules/futimens-tests (Files): Likewise.
18714         * modules/lchown-tests (Files): Likewise.
18715         * modules/openat-tests (Files): Likewise.
18716         * modules/utimens-tests (Files): Likewise.
18717         * modules/utimensat-tests (Files): Likewise.
18718
18719 2009-12-19  Eric Blake  <ebb9@byu.net>
18720
18721         futimens, utimensat: work around Linux bug
18722         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
18723         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18724         * lib/utimensat.c (rpl_utimensat): Work around it.
18725         * lib/futimens.c (rpl_futimens): Adjust comment.
18726
18727         utimens: work around Linux ctime bug
18728         * lib/utimens.c (detect_ctime_bug): New helper function.
18729         (update_timespec): Differentiate between workaround needed for
18730         this bug vs. what is needed for systems that lack utimensat.
18731         (fdutimens, lutimens): Work around bug.
18732
18733         utimens: check for ctime update
18734         * tests/test-utimens-common.h (check_ctime): Define.
18735         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
18736         * tests/test-futimens.h (test_futimens): Likewise.
18737         * tests/test-lutimens.h (test_lutimens): Likewise.
18738         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18739         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18740
18741 2009-12-19  Bruno Haible  <bruno@clisp.org>
18742
18743         dprintf-posix: Check against memory leak fixed on 2009-12-15.
18744         * tests/test-dprintf-posix2.sh: New file.
18745         * tests/test-dprintf-posix2.c: New file.
18746         * modules/dprintf-posix-tests (Files): Add them.
18747         (configure.ac): Check for getrlimit and setrlimit.
18748         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
18749
18750 2009-12-19  Bruno Haible  <bruno@clisp.org>
18751
18752         fprintf-posix: Check against memory leak fixed on 2009-12-15.
18753         * tests/test-fprintf-posix3.sh: New file.
18754         * tests/test-fprintf-posix3.c: New file.
18755         * modules/fprintf-posix-tests (Files): Add them.
18756         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
18757
18758 2009-12-19  Eric Blake  <ebb9@byu.net>
18759
18760         dirfd: fix prototype
18761         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
18762         * lib/dirfd.c (dirfd): Likewise.
18763
18764         canonicalize: reduce memory usage
18765         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
18766         allocation to size.
18767         Reported by Solar Designer <solar@openwall.com>.
18768
18769 2009-12-19  Bruno Haible  <bruno@clisp.org>
18770
18771         New module attribute 'Applicability'.
18772         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
18773         * gnulib-tool: New option --extract-applicability.
18774         (func_usage): Document it.
18775         (sed_extract_prog): Recognize it.
18776         (func_get_applicability): New function.
18777         (func_import): Generalize handling of 'link-warning' module.
18778         * modules/link-warning (Applicability): New section.
18779         * modules/arg-nonnull (Applicability): New section.
18780         Repoted by Simon Josefsson <simon@josefsson.org>.
18781
18782 2009-12-19  Bruno Haible  <bruno@clisp.org>
18783
18784         fflush: tweak
18785         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
18786         * lib/fseeko.c (rpl_fseeko): Likewise.
18787
18788 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
18789
18790         * lib/gl_list.h: Fix typo in comment.
18791
18792 2009-12-16  Eric Blake  <ebb9@byu.net>
18793
18794         fcntl: use to simplify other modules
18795         * modules/cloexec (Depends-on): Add fcntl.
18796         * modules/fchdir (Depends-on): Likewise.
18797         * modules/fd-safer-flag (Depends-on): Likewise.
18798         * modules/unistd-safer (Depends-on): Likewise.
18799         * modules/dup3 (configure.ac): Set module indicator.
18800         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
18801         missing.
18802         * lib/fchdir.c (_gl_register_dup): Fix comment.
18803         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
18804         * lib/dup-safer.c (dup_safer): Likewise.
18805         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
18806         * lib/dup3.c (dup3): Likewise.
18807         * tests/test-fchdir.c (main): Enhance test.
18808         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
18809
18810         fcntl: port portions of fcntl to mingw
18811         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
18812         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
18813         replacement for mingw.
18814         * modules/fcntl (Description): Update.
18815         (Depends-on): Add dup2.
18816         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
18817         * modules/fcntl-h (Makefile.am): Substitute it.
18818         * lib/fcntl.in.h (fcntl): Update declaration.
18819         (F_DUPFD, F_GETFD): New macros, when needed.
18820         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18821         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
18822         * tests/test-fcntl.c (check_flags, main): Enhance test for items
18823         we now guarantee.
18824
18825         fcntl: work around cygwin bug in F_DUPFD
18826         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
18827         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
18828         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
18829         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
18830         * doc/posix-functions/fcntl.texi (fcntl): Document it.
18831
18832         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
18833         * modules/fcntl (Files): List new files.
18834         (configure.ac): Run a test.
18835         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
18836         * lib/fcntl.c (rpl_fcntl): Likewise.
18837         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
18838         (gl_FCNTL_H): Always replace fcntl.h.
18839         * modules/fcntl-h (Makefile.am): Substitute witnesses.
18840         * lib/fcntl.in.h (fcntl): Declare replacement.
18841         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
18842         needed, plus a witness.
18843         * doc/posix-functions/fcntl.texi (fcntl): Document this.
18844         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
18845         * tests/test-fcntl.c: New file.
18846         * modules/fcntl-tests: Likewise.
18847
18848         binary-io: avoid potential compilation warning
18849         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
18850         directives.
18851
18852         fflush: avoid compilation error on NetBSD
18853         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
18854         between off_t and fpos_t, since the latter is sometimes a struct.
18855         * lib/fseeko.c (rpl_fseeko): Likewise.
18856         Reported by Alexander Nasonov <alnsn@yandex.ru>.
18857
18858 2009-12-15  Eric Blake  <ebb9@byu.net>
18859
18860         fcntl-h, stdio, sys_ioctl: fix declarations
18861         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
18862         function must not take arguments.
18863         * lib/sys_ioctl.in.h (ioctl): Likewise.
18864         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
18865         (open): Add a link warning.
18866
18867 2009-12-15  Jim Meyering  <meyering@redhat.com>
18868
18869         areadlink, areadlink-with-size: relax license to LGPLv2+
18870         * modules/areadlink (License): Relax to LGPLv2+.
18871         * modules/areadlink-with-size (License): Likewise.
18872
18873 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
18874             Bruno Haible  <bruno@clisp.org>
18875
18876         *printf: Fix memory leak.
18877         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
18878         * lib/vfprintf.c (vfprintf): Likewise.
18879         * lib/dprintf.c (dprintf): Likewise.
18880         * lib/vdprintf.c (vdprintf): Likewise.
18881
18882 2009-12-14  Eric Blake  <ebb9@byu.net>
18883
18884         accept4: adjust module dependencies
18885         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
18886
18887         utimens: one more try at avoiding compiler warning
18888         * lib/utimens.c (lutimens): Lower scope of result.
18889
18890 2009-12-13  Bruno Haible  <bruno@clisp.org>
18891
18892         Move the malloc checking from module 'list' to new module 'xlist'.
18893         * modules/xlist: New file.
18894         * lib/gl_xlist.h: New file.
18895         * lib/gl_xlist.c: New file.
18896         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
18897         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
18898         gl_list_add_last, gl_list_add_before, gl_list_add_after,
18899         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
18900         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
18901         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
18902         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
18903         gl_sortedlist_nx_add): New declarations.
18904         (struct gl_list_implementation): Rename and change methods accordingly.
18905         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
18906         (gl_list_nx_create): Renamed from gl_list_create.
18907         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
18908         (gl_list_nx_set_at): Renamed from gl_list_set_at.
18909         (gl_list_nx_add_first): Renamed from gl_list_add_first.
18910         (gl_list_nx_add_last): Renamed from gl_list_add_last.
18911         (gl_list_nx_add_before): Renamed from gl_list_add_before.
18912         (gl_list_nx_add_after): Renamed from gl_list_add_after.
18913         (gl_list_nx_add_at): Renamed from gl_list_add_at.
18914         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
18915         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
18916         gl_list_create_empty.
18917         (gl_list_nx_create): Renamed from gl_list_create.
18918         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
18919         (gl_list_nx_set_at): Renamed from gl_list_set_at.
18920         (gl_list_nx_add_first): Renamed from gl_list_add_first.
18921         (gl_list_nx_add_last): Renamed from gl_list_add_last.
18922         (gl_list_nx_add_before): Renamed from gl_list_add_before.
18923         (gl_list_nx_add_after): Renamed from gl_list_add_after.
18924         (gl_list_nx_add_at): Renamed from gl_list_add_at.
18925         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
18926         * lib/gl_array_list.c: Don't include xalloc.h.
18927         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
18928         NULL upon out-of-memory.
18929         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
18930         out-of-memory.
18931         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
18932         Change return type to 'int'.
18933         (gl_array_nx_set_at): Renamed from gl_array_set_at.
18934         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
18935         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
18936         upon out-of-memory.
18937         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
18938         upon out-of-memory.
18939         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
18940         upon out-of-memory.
18941         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
18942         upon out-of-memory.
18943         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
18944         out-of-memory.
18945         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
18946         Update.
18947         (gl_array_list_implementation): Update.
18948         * lib/gl_carray_list.c: Don't include xalloc.h.
18949         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
18950         Return NULL upon out-of-memory.
18951         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
18952         out-of-memory.
18953         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
18954         Change return type to 'int'.
18955         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
18956         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
18957         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
18958         upon out-of-memory.
18959         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
18960         upon out-of-memory.
18961         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
18962         out-of-memory.
18963         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
18964         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
18965         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
18966         Update.
18967         (gl_carray_list_implementation): Update.
18968         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
18969         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
18970         gl_linked_create_empty. Return NULL upon out-of-memory.
18971         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
18972         out-of-memory.
18973         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
18974         Change return type to 'int'. Return -1 upon out-of-memory.
18975         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
18976         out-of-memory.
18977         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
18978         upon out-of-memory.
18979         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
18980         upon out-of-memory.
18981         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
18982         NULL upon out-of-memory.
18983         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
18984         upon out-of-memory.
18985         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
18986         out-of-memory.
18987         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
18988         Update.
18989         * lib/gl_linked_list.c: Don't include xalloc.h.
18990         (gl_linked_list_implementation): Update.
18991         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
18992         (add_to_bucket): Change return type to 'int'.
18993         (gl_linkedhash_list_implementation): Update.
18994         * lib/gl_anytree_list1.h (free_subtree): New function.
18995         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
18996         gl_tree_create_empty. Return NULL upon out-of-memory.
18997         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
18998         Change return type to 'int'. Return -1 upon out-of-memory.
18999         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
19000         out-of-memory.
19001         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
19002         (gl_tree_remove_node): New function, moved here from
19003         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
19004         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
19005         Update.
19006         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
19007         malloc, not xmalloc. Return NULL upon out-of-memory.
19008         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
19009         out-of-memory.
19010         (gl_tree_remove_node_from_tree): New function, extracted from
19011         gl_tree_remove_node.
19012         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
19013         upon out-of-memory.
19014         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
19015         out-of-memory.
19016         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
19017         upon out-of-memory.
19018         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
19019         upon out-of-memory.
19020         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
19021         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
19022         not xmalloc. Return NULL upon out-of-memory.
19023         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
19024         out-of-memory.
19025         (gl_tree_remove_node_from_tree): New function, extracted from
19026         gl_tree_remove_node.
19027         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
19028         upon out-of-memory.
19029         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
19030         out-of-memory.
19031         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
19032         upon out-of-memory.
19033         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
19034         upon out-of-memory.
19035         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
19036         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
19037         gl_anytree_list1.h before gl_anyavltree_list2.h.
19038         (gl_avltree_list_implementation): Update.
19039         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
19040         gl_anytree_list1.h before gl_anyavltree_list2.h.
19041         (gl_rbtree_list_implementation): Update.
19042         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
19043         Change return type to 'int'. Return -1 upon out-of-memory. Use
19044         __builtin_expect.
19045         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
19046         (gl_avltreehash_list_implementation): Update.
19047         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
19048         (gl_rbtreehash_list_implementation): Update.
19049         * modules/array-list (Depends-on): Remove xalloc.
19050         * modules/carray-list (Depends-on): Likewise.
19051         * modules/linked-list (Depends-on): Likewise.
19052         * modules/linkedhash-list (Depends-on): Likewise.
19053         * modules/avltree-list (Depends-on): Likewise.
19054         * modules/rbtree-list (Depends-on): Likewise.
19055         * modules/avltreehash-list (Depends-on): Likewise.
19056         * modules/rbtreehash-list (Depends-on): Likewise.
19057
19058         * modules/xsublist: New file.
19059         * lib/gl_xsublist.h: New file.
19060         * lib/gl_xsublist.c: New file.
19061         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
19062         (gl_sublist_nx_create): New declaration.
19063         * lib/gl_sublist.c: Don't include xalloc.h.
19064         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
19065         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
19066         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
19067         Change return type to 'int'. Return -1 upon out-of-memory.
19068         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
19069         upon out-of-memory.
19070         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
19071         NULL upon out-of-memory.
19072         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
19073         upon out-of-memory.
19074         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
19075         NULL upon out-of-memory.
19076         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
19077         NULL upon out-of-memory.
19078         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
19079         upon out-of-memory.
19080         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
19081         (gl_sublist_list_implementation): Update.
19082         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
19083         upon out-of-memory.
19084         * modules/sublist (Depends-on): Remove xalloc.
19085
19086         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
19087         * tests/test-carray_list.c: Likewise.
19088         * tests/test-linked_list.c: Likewise.
19089         * tests/test-linkedhash_list.c: Likewise.
19090         * tests/test-avltree_list.c: Likewise.
19091         * tests/test-rbtree_list.c: Likewise.
19092         * tests/test-avltreehash_list.c: Likewise.
19093         * tests/test-rbtreehash_list.c: Likewise.
19094         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
19095         * modules/carray-list-tests (Makefile.am): Likewise.
19096         * modules/linked-list-tests (Makefile.am): Likewise.
19097         * modules/linkedhash-list-tests (Makefile.am): Likewise.
19098         * modules/avltree-list-tests (Makefile.am): Likewise.
19099         * modules/rbtree-list-tests (Makefile.am): Likewise.
19100         * modules/avltreehash-list-tests (Makefile.am): Likewise.
19101         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
19102
19103         * NEWS: Mention the changes.
19104
19105         * lib/clean-temp.c: Include gl_xlist.h.
19106         * modules/clean-temp (Depends-on): Add xlist.
19107
19108         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
19109         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
19110
19111         * tests/test-array_oset.c: Include gl_xlist.h.
19112         * modules/array-oset-tests (Depends-on): Add xlist.
19113
19114         Reported by José E. Marchesi <jemarch@gnu.org>.
19115
19116 2009-12-13  Bruno Haible  <bruno@clisp.org>
19117
19118         Move the malloc checking from module 'oset' to new module 'xoset'.
19119         * modules/xoset: New file.
19120         * lib/gl_xoset.h: New file.
19121         * lib/gl_xoset.c: New file.
19122         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
19123         declarations.
19124         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
19125         (struct gl_oset_implementation): Rename and change methods accordingly.
19126         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
19127         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
19128         'int'. Mark as __warn_unused_result__.
19129         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
19130         gl_oset_create_empty.
19131         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
19132         'int'.
19133         * lib/gl_array_oset.c: Don't include xalloc.h.
19134         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
19135         malloc, not xmalloc.
19136         (grow): Change return type to 'int'. Don't call xalloc_die.
19137         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
19138         to 'int'.
19139         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
19140         'int'.
19141         (gl_array_oset_implementation): Update.
19142         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
19143         gl_tree_create_empty.
19144         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
19145         'int'.
19146         * lib/gl_avltree_oset.c: Don't include xalloc.h.
19147         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
19148         xmalloc.
19149         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
19150         not xmalloc.
19151         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
19152         xmalloc.
19153         (gl_avltree_oset_implementation): Update.
19154         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
19155         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
19156         xmalloc.
19157         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
19158         not xmalloc.
19159         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
19160         xmalloc.
19161         (gl_rbtree_oset_implementation): Update.
19162         * modules/array-oset (Depends-on): Remove xalloc.
19163         * modules/avltree-oset (Depends-on): Likewise.
19164         * modules/rbtree-oset (Depends-on): Likewise.
19165         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
19166         * tests/test-avltree_oset.c: Likewise.
19167         * tests/test-rbtree_oset.c: Likewise.
19168         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
19169         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
19170         * modules/rbtree-oset-tests (Makefile.am): Likewise.
19171         * NEWS: Mention the change.
19172
19173 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
19174
19175         maint.mk: allow a project to override release-prep commands
19176         * top/maint.mk (alpha, beta, stable): Move release-preparatory
19177         commands into a new rule.
19178         (release-prep): New rule.
19179         (release-prep-hook): New overridable variable.
19180
19181 2009-12-13  Bruno Haible  <bruno@clisp.org>
19182
19183         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
19184
19185 2009-12-13  Jim Meyering  <meyering@redhat.com>
19186
19187         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
19188         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
19189
19190 2009-12-12  Bruno Haible  <bruno@clisp.org>
19191
19192         duplocale: Tweak.
19193         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
19194
19195 2009-12-12  Karl Berry  <karl@gnu.org>
19196
19197         * config/srclist.txt (strtoll.c): tab changes, no more sync.
19198
19199 2009-12-12  Bruno Haible  <bruno@clisp.org>
19200
19201         * m4/po.m4: Undo incorrect untabification.
19202
19203 2009-12-12  Bruno Haible  <bruno@clisp.org>
19204
19205         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
19206         * modules/c-strtod (Depends-on): Add locale.
19207         * modules/c-strtold (Depends-on): Likewise.
19208
19209 2009-12-12  Bruno Haible  <bruno@clisp.org>
19210
19211         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
19212
19213 2009-12-11  Eric Blake  <ebb9@byu.net>
19214
19215         setenv: relax requirement in light of POSIX ruling
19216         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
19217         not NULL.
19218         * tests/test-setenv.c (main): Relax test.
19219         * tests/test-unsetenv.c (main): Likewise.
19220         * doc/posix-functions/setenv.texi (setenv): Document this.
19221         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
19222
19223 2009-12-11  Bruno Haible  <bruno@clisp.org>
19224
19225         New module 'fd-safer-flag'.
19226         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
19227         * lib/dup-safer.c (dup_safer_flag): Remove function.
19228         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
19229         * lib/fd-safer.c (fd_safer_flag): Remove function.
19230         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
19231         * modules/cloexec (configure.ac): Drop indicator macro.
19232         * modules/fd-safer-flag: New file.
19233         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
19234         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
19235         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
19236
19237 2009-12-11  Bruno Haible  <bruno@clisp.org>
19238
19239         Tests for module 'nl_langinfo'.
19240         * modules/nl_langinfo-tests: New file.
19241         * tests/test-nl_langinfo.sh: New file.
19242         * tests/test-nl_langinfo.c: New file.
19243
19244         New module 'nl_langinfo'.
19245         * lib/nl_langinfo.c: New file.
19246         * m4/nl_langinfo.m4: New file.
19247         * modules/nl_langinfo: New file.
19248         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
19249
19250 2009-12-11  Bruno Haible  <bruno@clisp.org>
19251
19252         Tests for module 'langinfo'.
19253         * modules/langinfo-tests: New file.
19254         * tests/test-langinfo.c: New file.
19255
19256         New module 'langinfo'.
19257         * lib/langinfo.in.h: New file.
19258         * m4/langinfo_h.m4: New file.
19259         * modules/langinfo: New file.
19260         * doc/posix-headers/langinfo.texi: Mention the new module.
19261
19262 2009-12-11  Bruno Haible  <bruno@clisp.org>
19263
19264         * lib/config.charset: Untabify.
19265
19266 2009-12-11  Bruno Haible  <bruno@clisp.org>
19267
19268         * modules/unistd-safer (configure.ac): Drop indicator macro.
19269
19270 2009-12-11  Bruno Haible  <bruno@clisp.org>
19271
19272         Move pipe2-safer code to its own file.
19273         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
19274         * lib/pipe-safer.c (pipe2_safer): Remove function.
19275         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
19276         (Makefile.am): Add it to lib_SOURCES.
19277
19278 2009-12-10  Bruno Haible  <bruno@clisp.org>
19279
19280         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
19281
19282 2009-12-10  Bruno Haible  <bruno@clisp.org>
19283
19284         Declare which arguments expect non-NULL values, for GCC and clang.
19285         * build-aux/arg-nonnull.h: New file.
19286         * modules/arg-nonnull: New file.
19287         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
19288         (inet_ntop, inet_pton): Use it.
19289         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
19290         (closedir, dirfd, opendir, scandir, alphasort): Use it.
19291         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
19292         (open, openat): Use it.
19293         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
19294         (fnmatch): Use it.
19295         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
19296         (getopt, getopt_long, getopt_long_only): Use it.
19297         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
19298         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
19299         Use it.
19300         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
19301         (iconv_open): Use it.
19302         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
19303         (strtoimax, strtoumax): Use it.
19304         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
19305         (duplocale): Use it.
19306         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
19307         (frexp, frexpl): Use it.
19308         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
19309         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
19310         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
19311         (tsearch, tfind, tdelete, twalk): Use it.
19312         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
19313         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
19314         sigpending): Use it.
19315         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
19316         (posix_spawn, posix_spawnp, posix_spawnattr_init,
19317         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
19318         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
19319         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
19320         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
19321         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
19322         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
19323         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
19324         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
19325         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
19326         Use it.
19327         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
19328         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
19329         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
19330         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
19331         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
19332         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
19333         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
19334         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
19335         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
19336         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
19337         strtoull, unsetenv): Use it.
19338         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
19339         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
19340         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
19341         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
19342         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
19343         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
19344         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
19345         (strcasecmp, strncasecmp): Use it.
19346         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
19347         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
19348         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
19349         rpl_setsockopt): Use it.
19350         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
19351         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
19352         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
19353         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
19354         (gettimeofday): Use it.
19355         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
19356         (times): Use it.
19357         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
19358         (uname): Use it.
19359         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
19360         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
19361         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
19362         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
19363         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
19364         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
19365         unlinkat, write): Use it.
19366         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
19367         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
19368         * lib/argv-iter.h: Include arg-nonnull.h.
19369         (_ATTRIBUTE_NONNULL_): Remove macro.
19370         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
19371         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
19372         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
19373         optimization.
19374         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
19375         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
19376         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
19377         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
19378         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
19379         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
19380         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
19381         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
19382         * modules/arpa_inet (Depends-on): Add arg-nonnull.
19383         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
19384         * modules/dirent (Depends-on): Add arg-nonnull.
19385         (Makefile.am): Insert arg-nonnull.h into dirent.h.
19386         * modules/fcntl-h (Depends-on): Add arg-nonnull.
19387         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
19388         * modules/fnmatch (Depends-on): Add arg-nonnull.
19389         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
19390         * modules/getopt-posix (Depends-on): Add arg-nonnull.
19391         (Makefile.am): Insert arg-nonnull.h into getopt.h.
19392         * modules/glob (Depends-on): Add arg-nonnull.
19393         (Makefile.am): Insert arg-nonnull.h into glob.h.
19394         * modules/iconv_open (Depends-on): Add arg-nonnull.
19395         (Makefile.am): Insert arg-nonnull.h into iconv.h.
19396         * modules/inttypes (Depends-on): Add arg-nonnull.
19397         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
19398         * modules/locale (Depends-on): Add arg-nonnull.
19399         (Makefile.am): Insert arg-nonnull.h into locale.h.
19400         * modules/math (Depends-on): Add arg-nonnull.
19401         (Makefile.am): Insert arg-nonnull.h into math.h.
19402         * modules/netdb (Depends-on): Add arg-nonnull.
19403         (Makefile.am): Insert arg-nonnull.h into netdb.h.
19404         * modules/search (Depends-on): Add arg-nonnull.
19405         (Makefile.am): Insert arg-nonnull.h into search.h.
19406         * modules/signal (Depends-on): Add arg-nonnull.
19407         (Makefile.am): Insert arg-nonnull.h into signal.h.
19408         * modules/spawn (Depends-on): Add arg-nonnull.
19409         (Makefile.am): Insert arg-nonnull.h into spawn.h.
19410         * modules/stdio (Depends-on): Add arg-nonnull.
19411         (Makefile.am): Insert arg-nonnull.h into stdio.h.
19412         * modules/stdlib (Depends-on): Add arg-nonnull.
19413         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
19414         * modules/string (Depends-on): Add arg-nonnull.
19415         (Makefile.am): Insert arg-nonnull.h into string.h.
19416         * modules/strings (Depends-on): Add arg-nonnull.
19417         (Makefile.am): Insert arg-nonnull.h into strings.h.
19418         * modules/sys_socket (Depends-on): Add arg-nonnull.
19419         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
19420         * modules/sys_stat (Depends-on): Add arg-nonnull.
19421         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
19422         * modules/sys_time (Depends-on): Add arg-nonnull.
19423         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
19424         * modules/sys_times (Depends-on): Add arg-nonnull.
19425         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
19426         * modules/sys_utsname (Depends-on): Add arg-nonnull.
19427         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
19428         * modules/time (Depends-on): Add arg-nonnull.
19429         (Makefile.am): Insert arg-nonnull.h into time.h.
19430         * modules/unistd (Depends-on): Add arg-nonnull.
19431         (Makefile.am): Insert arg-nonnull.h into unistd.h.
19432         * modules/wchar (Depends-on): Add arg-nonnull.
19433         (Makefile.am): Insert arg-nonnull.h into wchar.h.
19434         * modules/argv-iter (Depends-on): Add arg-nonnull.
19435         * tests/test-canonicalize.c (null_ptr): New function.
19436         (main): Use it.
19437         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
19438         (main): Use it.
19439         * tests/test-memmem.c (null_ptr): New function.
19440         (main): Use it.
19441         Reported by Jim Meyering.
19442
19443 2009-12-10  Bruno Haible  <bruno@clisp.org>
19444
19445         Use spaces for indentation, not tabs.
19446         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
19447         * m4/*.m4: Untabify.
19448         * build-aux/*.h: Untabify.
19449         * tests/**/*.[hc]: Untabify.
19450         * README: New section "Indent with spaces, not TABs", based on
19451         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
19452         * NEWS: Mention the change.
19453
19454 2009-12-10  Bruno Haible  <bruno@clisp.org>
19455
19456         pty test: Fix link error.
19457         * modules/pty-tests (Makefile.am): Add the default LDADD value to
19458         test_pty_LDADD.
19459
19460 2009-12-07  Simon Josefsson  <simon@josefsson.org>
19461
19462         * modules/pty: New file.
19463         * modules/pty-tests: New file.
19464         * m4/pty.m4: New file.
19465         * tests/test-pty.c: New file.
19466         * doc/glibc-headers/pty.texi: Modified.
19467         * doc/glibc-functions/forkpty.texi: Modified.
19468         * doc/glibc-functions/openpty.texi: Modified.
19469
19470 2009-12-10  Bruno Haible  <bruno@clisp.org>
19471
19472         Avoid syntax error in C++ mode.
19473         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
19474
19475 2009-12-10  Bruno Haible  <bruno@clisp.org>
19476
19477         Use sed with option -e.
19478         * gnulib-tool (func_version, func_emit_copyright_notice,
19479         func_emit_initmacro_end, func_import, func_create_testdir): Pass
19480         option -e to sed.
19481         * modules/link-warning (Makefile.am): Likewise.
19482
19483 2009-12-10  Jim Meyering  <meyering@redhat.com>
19484
19485         mgetgroups: do not write bytes beyond end of malloc'd buffer
19486         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
19487         username, we call getgroups with a one-element-shorter buffer,
19488         but still told it the length was original, max_n_groups.
19489
19490 2009-12-09  Eric Blake  <ebb9@byu.net>
19491
19492         cloexec: relax license
19493         * modules/cloexec (Maintainer): Add myself.
19494         (License): Use LGPL, not GPL.
19495
19496         link-warning: optimize generation
19497         * modules/link-warning (Makefile.am): Reduce process usage.
19498
19499 2009-12-09  Bruno Haible  <bruno@clisp.org>
19500
19501         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
19502         workaround was added on 2009-11-17.
19503
19504 2009-12-09  Jim Meyering  <meyering@redhat.com>
19505             Bruno Haible  <bruno@clisp.org>
19506
19507         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
19508         * modules/link-warning (Makefile.am): Make the comment-removing sed
19509         command more robust in the face of bootstrap-prepended comment lines.
19510
19511 2009-12-09  Bruno Haible  <bruno@clisp.org>
19512
19513         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
19514         most one group.
19515
19516 2009-12-09  Simon Josefsson <simon@josefsson.org>
19517             Bruno Haible  <bruno@clisp.org>
19518
19519         * build-aux/link-warning.h: Add copyright notice.
19520         * modules/link-warning (Makefile.am): Generate link-warning.h from
19521         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
19522         * NEWS: Mention change in link-warning module.
19523         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
19524         * modules/dirent (Makefile.am): Add dependency to dirent.h.
19525         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
19526         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
19527         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
19528         * modules/math (Makefile.am): Add dependency to math.h.
19529         * modules/search (Makefile.am): Add dependency to search.h.
19530         * modules/signal (Makefile.am): Add dependency to signal.h.
19531         * modules/spawn (Makefile.am): Add dependency to spawn.h.
19532         * modules/stdio (Makefile.am): Add dependency to stdio.h.
19533         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
19534         * modules/string (Makefile.am): Add dependency to string.h.
19535         * modules/strings (Makefile.am): Add dependency to strings.h.
19536         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
19537         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
19538         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
19539         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
19540         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
19541         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
19542         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
19543         * modules/unistd (Makefile.am): Add dependency to unistd.h.
19544         * modules/wchar (Makefile.am): Add dependency to wchar.h.
19545
19546 2009-12-09  Bruno Haible  <bruno@clisp.org>
19547
19548         fchdir: Optimize away rpl_fstat when possible.
19549         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
19550         REPLACE_OPEN_DIRECTORY.
19551         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
19552
19553 2009-12-09  Bruno Haible  <bruno@clisp.org>
19554
19555         * lib/fchdir.c: Update comment.
19556
19557 2009-12-09  Bruno Haible  <bruno@clisp.org>
19558
19559         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
19560
19561 2009-12-08  Eric Blake  <ebb9@byu.net>
19562
19563         fchdir: avoid memory leak on re-registration.
19564         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
19565
19566 2009-12-08  Jim Meyering  <meyering@redhat.com>
19567
19568         init.sh: avoid Solaris 10 /bin/sh portability problem
19569         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
19570         sourced script:
19571           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
19572           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
19573           bar
19574         tests/init.sh relied on that, accepting a --set-path=DIR argument,
19575         and two tests used that idiom.
19576         * tests/init.sh: Update suggested usage comments.
19577         (path_prepend_): New function, to be used in place
19578         of the --src-path=DIR option.
19579         (setup_): Move PATH-prepending code into path_prepend_.
19580         * tests/test-pread.sh: Adapt to new usage.
19581         * tests/test-xalloc-die.sh: Likewise.
19582
19583 2009-12-08  Simon Josefsson  <simon@josefsson.org>
19584
19585         * doc/gnulib.texi (Glibc pty.h): Add.
19586         * doc/glibc-functions/forkpty.texi: Add.
19587         * doc/glibc-functions/openpty.texi: Add.
19588         Suggested by Bruno Haible.
19589
19590 2009-12-08  Eric Blake  <ebb9@byu.net>
19591
19592         fchdir: fix logic bugs
19593         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
19594         * tests/test-fchdir.c (main): Enhance test.
19595         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
19596         is in use.
19597
19598         dup2: fix logic bugs
19599         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
19600         REPLACE_DUP2 to decide when rpl_dup2 is needed.
19601         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
19602         exists.
19603         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
19604
19605 2009-12-07  Eric Blake  <ebb9@byu.net>
19606
19607         unlink: fix m4 detection
19608         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
19609
19610         unistd-safer: add unit test
19611         * modules/unistd-safer-tests: New file.
19612         * tests/test-dup-safer.c: Likewise.
19613         * tests/test-cloexec.c (setmode): Avoid compiler warning.
19614         * tests/test-dup2.c (setmode): Likewise.
19615         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
19616
19617         cloexec: preserve text vs. binary across dup_cloexec
19618         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
19619         mode.
19620         * modules/dup2-tests (Depends-on): Add binary-io.
19621         * modules/cloexec-tests (Depends-on): Likewise.
19622         * tests/test-dup2.c (setmode, is_mode): New helpers.
19623         (main): Add tests that translation mode is preserved.
19624         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
19625         Reported by Bruno Haible.
19626
19627         mgetgroups: reduce duplicate listings
19628         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
19629         resulting array.
19630         * tests/test-chown.h (test_chown): Simplify client.
19631         * tests/test-lchown.h (test_lchown): Likewise.
19632
19633 2009-12-06  Bruno Haible  <bruno@clisp.org>
19634
19635         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
19636         value.
19637
19638 2009-12-06  Bruno Haible  <bruno@clisp.org>
19639
19640         * lib/progname.c: Include stdio.h, stdlib.h.
19641         (set_program_name): Reject a NULL argument.
19642
19643 2009-12-05  Eric Blake  <ebb9@byu.net>
19644
19645         pipe2-safer: new module
19646         * modules/pipe2-safer: New file.
19647         * lib/unistd-safer.h (pipe2_safer): New prototype.
19648         * lib/unistd--.h (pipe2): New wrapper.
19649         * lib/pipe-safer.c (pipe2_safer): New function.
19650         * modules/pipe (Depends-on): Add pipe2-safer.
19651         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
19652
19653         stdlib-safer: preserve cloexec flag for mkostemp[s]
19654         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
19655         fd_safer_flag.
19656
19657         unistd-safer: allow preservation of cloexec status via flag
19658         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
19659         prototypes.
19660         * lib/dup-safer.c (dup_safer_flag): New function.
19661         * lib/fd-safer.c (fd_safer_flag): Likewise.
19662         * modules/cloexec (configure.ac): Set witness.
19663
19664         test-dup2: enhance test
19665         * modules/dup2-tests (Depends-on): Add cloexec.
19666         * tests/test-dup2.c (main): Enhance test.
19667
19668         cloexec: add dup_cloexec
19669         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
19670         header and comments.
19671         * lib/cloexec.c (set_cloexec_flag): Add comments.
19672         (dup_cloexec): New function, with mingw implementation borrowed
19673         from...
19674         * lib/w32spawn.h (dup_noinherit): ...here.
19675         * modules/execute (Depends-on): Add cloexec.
19676         * modules/pipe (Depends-on): Likewise.
19677         * modules/cloexec (Depends-on): Add dup2.
19678         * modules/cloexec-tests (Files): New file.
19679         * tests/test-cloexec.c: Likewise.
19680
19681         test-xalloc-die: fix test for mingw
19682         * modules/xalloc-die-tests (Files): Add tests/init.sh.
19683         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
19684         directory and .exe suffix off argv[0] output.
19685
19686         test-fseeko: fix test for mingw
19687         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
19688         than undefining fseek, so test will pass on mingw.
19689
19690 2009-12-05  Bruno Haible  <bruno@clisp.org>
19691
19692         * lib/progname.h (set_program_name): Clarify specification.
19693         * lib/progname.c (set_program_name): Likewise.
19694         Reported by Jim Meyering.
19695
19696 2009-12-05  Jim Meyering  <meyering@redhat.com>
19697
19698         maint.mk: backslash-escape parens in default regexp
19699         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
19700         backslash-escape the literal parentheses.
19701
19702         maint.mk: news-date-check: use grep -E
19703         * top/maint.mk (today): Define a Make variable, not a...
19704         (news-date-check): ...shell variable.
19705         (news-date-regexp): Use the Make variable.
19706         Use grep's -E option.  Change the failing diagnostic to mention
19707         the variable, $(news-date-regexp).
19708
19709 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
19710
19711         maintainer-makefile: allow customization of NEWS entry format
19712         * top/maint.mk (news-date-regexp): New overridable variable.
19713         (news-date-check): Use it.
19714
19715 2009-12-04  Eric Blake  <ebb9@byu.net>
19716
19717         mgetgroups: add xgetgroups, and avoid ENOSYS failures
19718         * lib/mgetgroups.h (xgetgroups): New prototype.
19719         * lib/mgetgroups.c (xgetgroups): New wrapper.
19720         (mgetgroups): Handle ENOSYS.
19721         * modules/mgetgroups (Depends-on): Add realloc.
19722         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
19723
19724         mgetgroups: avoid argument promotion issues with -1
19725         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
19726         for invalid gid_t.
19727         * tests/test-chown.h (getegid, test_chown): Likewise.
19728         * tests/test-lchown.h (getegid, test_lchown): Likewise.
19729
19730 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
19731
19732         exclude: Fix header file problems.
19733         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
19734
19735 2009-12-01  Jim Meyering  <meyering@redhat.com>
19736
19737         fts: fts_open: do not let an empty string cause immediate failure
19738         This is required in support of GNU rm, for which the command
19739         "rm A '' B" must process and remove both A and B, in spite of
19740         the empty string argument.
19741         * lib/fts.c (fts_open): Do not let the presence of an empty string
19742         cause fts_open to fail immediately.  Most fts-using tools must be
19743         able to process all arguments, in order, and can be expected to
19744         diagnose such arguments themselves.
19745
19746 2009-11-30  Eric Blake  <ebb9@byu.net>
19747
19748         utimens: fix compilation error
19749         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
19750         Declare variable at right scope.
19751
19752 2009-11-29  Jim Meyering  <meyering@redhat.com>
19753
19754         bootstrap: handle perl-5.11's changed --version output
19755         * build-aux/bootstrap (get_version): Handle perl separately,
19756         since perl-5.11's --version output is different.
19757
19758 2009-11-28  Jim Meyering  <meyering@redhat.com>
19759
19760         userspec: depend on the inttostr module, too
19761         * modules/userspec (Depends-on): Add inttostr.
19762
19763         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
19764         * lib/userspec.c (parse_with_separator): Do not accept a user ID
19765         number of MAXUID when it evaluates to (uid_t) -1.
19766         Likewise for group ID.  Reported by Matt McCutchen in
19767         <http://savannah.gnu.org/bugs/?28113>
19768
19769         userspec: reformat to use spaces, not TABs
19770         * lib/userspec.c: Expand TABs to spaces.
19771         Add Emacs' "indent-tabs-mode: nil" hint.
19772
19773 2009-11-27  Eric Blake  <ebb9@byu.net>
19774
19775         getopt-gnu: flush out another BSD bug
19776         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
19777         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
19778         flush out BSD bug.
19779         * tests/test-getopt.h (test_getopt): End lists with NULL.
19780         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19781         (test_getopt_long_posix): Enhance test.
19782         * modules/getopt-posix-tests (Depends-on): Add stdbool.
19783         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
19784         getopt-gnu.
19785         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19786         Likewise.
19787
19788 2009-11-27  Simon Josefsson  <simon@josefsson.org>
19789
19790         * modules/idpriv-droptemp-tests (Notice): Fix text.
19791
19792 2009-11-27  Jim Meyering  <meyering@redhat.com>
19793
19794         test-xalloc-die: avoid spurious failure due to libtool argv difference
19795         In a libtool-enabled project, this test would fail due to a difference
19796         in the emitted program name, e.g.,
19797         -test-xalloc-die: memory exhausted
19798         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
19799         Use program to avoid that.
19800         * modules/xalloc-die-tests (Depends-on): Add progname.
19801         * tests/test-xalloc-die.c: Include progname.h".
19802         (program_name): Remove decl.
19803         (main): Call set_program_name.
19804         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
19805
19806 2009-11-26  Richard Jones  <rjones@redhat.com>
19807
19808         w32sock: leave win32 error in place.
19809         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
19810
19811 2009-11-26  Eric Blake  <ebb9@byu.net>
19812
19813         init.sh: suggest to use skip_ and fail_ functions in comments
19814         * tests/init.sh: Add a sentence.
19815
19816 2009-11-25  Bruno Haible  <bruno@clisp.org>
19817
19818         init.sh: add documentation in comments
19819         * tests/init.sh: Add some developer and user documentation.
19820
19821 2009-11-26  Jim Meyering  <meyering@redhat.com>
19822
19823         init.sh: accommodate even those who specify bogus srcdir manually
19824         * tests/init.sh: Normally, srcdir is guaranteed by automake and
19825         configure-time tests to be sanitized, so that there is no need to
19826         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
19827         (with no double quotes) suffices.  However, since tests may be
19828         invoked manually, and since you may explicitly set srcdir to the
19829         name of a directory containing spaces, do quote its uses here.
19830         * tests/test-pread.sh: Likewise.
19831         Suggested by Bruno Haible.
19832
19833         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
19834         * tests/test-pread.sh: Write no data into the pipe, because
19835         test-pread actually reads none.  This avoids a diagnostic,
19836         "bash: echo: write error: Broken pipe", that arises in the unusual
19837         event something is ignoring SIGPIPE, and might be interpreted
19838         as some sort of failure.  Reported by Bruno Haible.
19839
19840 2009-11-25  Jim Meyering  <meyering@redhat.com>
19841
19842         test-pread: cover failure with ESPIPE and EINVAL
19843         * tests/test-pread.c (main): Test for failure, too.
19844         * tests/test-pread.sh: Invoke with stdin on a pipe.
19845         Suggested by Eric Blake.
19846
19847         pread: improvement and fix
19848         * modules/pread (Depends-on): Depend on lseek, for portability to
19849         e.g., mingw.  Suggested by Eric Blake.
19850         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
19851
19852         unistd.in.h: correct declaration of pread
19853         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
19854         Reported by Richard W.M. Jones.
19855
19856         test-pread.sh: distribute the test script
19857         * modules/pread-tests (Files): Include test-pread.sh.
19858
19859         test-pread.sh: clean up
19860         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
19861         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
19862         That is unnecessary, since it's always ".".
19863         Suggestion from Eric Blake.
19864
19865         test-pread.sh: make executable
19866         * tests/test-pread.sh: Set executable bit.
19867         Reported by Eric Blake.
19868
19869         correct typo in test-pread.sh
19870         * tests/test-pread.sh: Add #! line.
19871
19872         test pread
19873         * tests/test-pread.c: New file.
19874         * tests/test-pread.sh: Likewise.
19875         * modules/pread-tests: Likewise.
19876
19877         pread: new module
19878         * modules/pread: New file.
19879         * lib/unistd.in.h (pread): Define/declare.
19880         * lib/pread.c (pread): New file.
19881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
19882         * modules/unistd (Makefile.am): Substitute witnesses.
19883         * doc/posix-functions/pread.texi (pread): Update.
19884         * MODULES.html.sh: Add pread.
19885
19886 2009-11-25  Jim Meyering  <meyering@redhat.com>
19887
19888         tests/init.sh: new file to be used via most *.sh tests
19889         * tests/init.sh: New file.
19890
19891 2009-11-25  Eric Blake  <ebb9@byu.net>
19892
19893         utimens: work around older Linux failure with symlinks
19894         * lib/utimens.c (lutimensat_works_really): New variable.
19895         (fdutimens, lutimens): Use it to manage kernels that support
19896         nanosecond times on files, but not on symlinks.
19897         Reported by OndÅ™ej Vašík.
19898
19899         utimes: fix configure grammar
19900         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
19901
19902 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
19903
19904         regex: Fix fastmap for multibyte character ranges.
19905         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
19906         characters when a multibyte character range is included.
19907
19908 2009-11-22  Andy Wingo  <wingo@pobox.com>
19909
19910         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
19911         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
19912
19913 2009-11-24  Bruno Haible  <bruno@clisp.org>
19914
19915         doc: Most *_l functions exist in MacOS X 10.5.
19916         * doc/posix-functions/duplocale.texi: Update platforms list.
19917         * doc/posix-functions/freelocale.texi: Likewise.
19918         * doc/posix-functions/newlocale.texi: Likewise.
19919         * doc/posix-functions/uselocale.texi: Likewise.
19920         * doc/posix-functions/isalnum_l.texi: Likewise.
19921         * doc/posix-functions/isalpha_l.texi: Likewise.
19922         * doc/posix-functions/isblank_l.texi: Likewise.
19923         * doc/posix-functions/iscntrl_l.texi: Likewise.
19924         * doc/posix-functions/isdigit_l.texi: Likewise.
19925         * doc/posix-functions/isgraph_l.texi: Likewise.
19926         * doc/posix-functions/islower_l.texi: Likewise.
19927         * doc/posix-functions/isprint_l.texi: Likewise.
19928         * doc/posix-functions/ispunct_l.texi: Likewise.
19929         * doc/posix-functions/isspace_l.texi: Likewise.
19930         * doc/posix-functions/isupper_l.texi: Likewise.
19931         * doc/posix-functions/iswalnum_l.texi: Likewise.
19932         * doc/posix-functions/iswalpha_l.texi: Likewise.
19933         * doc/posix-functions/iswblank_l.texi: Likewise.
19934         * doc/posix-functions/iswcntrl_l.texi: Likewise.
19935         * doc/posix-functions/iswctype_l.texi: Likewise.
19936         * doc/posix-functions/iswdigit_l.texi: Likewise.
19937         * doc/posix-functions/iswgraph_l.texi: Likewise.
19938         * doc/posix-functions/iswlower_l.texi: Likewise.
19939         * doc/posix-functions/iswprint_l.texi: Likewise.
19940         * doc/posix-functions/iswpunct_l.texi: Likewise.
19941         * doc/posix-functions/iswspace_l.texi: Likewise.
19942         * doc/posix-functions/iswupper_l.texi: Likewise.
19943         * doc/posix-functions/iswxdigit_l.texi: Likewise.
19944         * doc/posix-functions/isxdigit_l.texi: Likewise.
19945         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
19946         * doc/posix-functions/strcasecmp_l.texi: Likewise.
19947         * doc/posix-functions/strcoll_l.texi: Likewise.
19948         * doc/posix-functions/strfmon_l.texi: Likewise.
19949         * doc/posix-functions/strftime_l.texi: Likewise.
19950         * doc/posix-functions/strncasecmp_l.texi: Likewise.
19951         * doc/posix-functions/strxfrm_l.texi: Likewise.
19952         * doc/posix-functions/tolower_l.texi: Likewise.
19953         * doc/posix-functions/toupper_l.texi: Likewise.
19954         * doc/posix-functions/towctrans_l.texi: Likewise.
19955         * doc/posix-functions/towlower_l.texi: Likewise.
19956         * doc/posix-functions/towupper_l.texi: Likewise.
19957         * doc/posix-functions/wcscoll_l.texi: Likewise.
19958         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
19959         * doc/posix-functions/wctrans_l.texi: Likewise.
19960         * doc/posix-functions/wctype_l.texi: Likewise.
19961         * doc/glibc-functions/strptime_l.texi: Likewise.
19962         * doc/glibc-functions/strtod_l.texi: Likewise.
19963         * doc/glibc-functions/strtof_l.texi: Likewise.
19964         * doc/glibc-functions/strtol_l.texi: Likewise.
19965         * doc/glibc-functions/strtold_l.texi: Likewise.
19966         * doc/glibc-functions/strtoll_l.texi: Likewise.
19967         * doc/glibc-functions/strtoul_l.texi: Likewise.
19968         * doc/glibc-functions/strtoull_l.texi: Likewise.
19969         * doc/glibc-functions/wcsftime_l.texi: Likewise.
19970         * doc/glibc-functions/wcstod_l.texi: Likewise.
19971         * doc/glibc-functions/wcstof_l.texi: Likewise.
19972         * doc/glibc-functions/wcstol_l.texi: Likewise.
19973         * doc/glibc-functions/wcstold_l.texi: Likewise.
19974         * doc/glibc-functions/wcstoll_l.texi: Likewise.
19975         * doc/glibc-functions/wcstoul_l.texi: Likewise.
19976         * doc/glibc-functions/wcstoull_l.texi: Likewise.
19977
19978 2009-11-24  Bruno Haible  <bruno@clisp.org>
19979
19980         duplocale: Fix logic bug.
19981         * lib/duplocale.c: Don't include <langinfo.h>.
19982         (_NL_LOCALE_NAME): Remove macro.
19983         (rpl_duplocale): Use setlocale instead of nl_langinfo.
19984         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
19985
19986 2009-11-23  Jim Meyering  <meyering@redhat.com>
19987
19988         test-update-copyright: don't hard-code /usr/bin/perl
19989         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
19990         perl to print the current year.  Gilles Espinasse reported that
19991         the replaced use of perl was hard-coded as /usr/bin/perl.
19992
19993 2009-11-23  Bruno Haible  <bruno@clisp.org>
19994
19995         duplocale: Add support for glibc 2.3.x.
19996         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
19997
19998 2009-11-22  Bruno Haible  <bruno@clisp.org>
19999
20000         vasnprintf: Tiny optimization.
20001         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
20002         MacOS X.
20003
20004 2009-11-22  Bruno Haible  <bruno@clisp.org>
20005
20006         Tests for module 'duplocale'.
20007         * modules/duplocale-tests: New file.
20008         * tests/test-duplocale.c: New file.
20009
20010         New module 'duplocale'.
20011         * m4/duplocale.m4: New file.
20012         * lib/locale.in.h (duplocale): New declaration.
20013         * lib/duplocale.c: New file.
20014         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
20015         gl_LOCALE_H_DEFAULTS): New macros.
20016         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
20017         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
20018         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
20019         REPLACE_DUPLOCALE.
20020         * modules/duplocale: New file.
20021         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
20022
20023 2009-11-22  Bruno Haible  <bruno@clisp.org>
20024
20025         * modules/locale-tests (configure.ac): Test for newlocale function.
20026         * tests/test-locale.c: When the system has extended locale functions,
20027         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
20028
20029         locale: Make locale_t available when possible.
20030         * lib/locale.in.h: Include <xlocale.h> when it exists.
20031         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
20032         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
20033         * modules/locale (Depends-on): Add extensions.
20034         (Makefile.am): Also substitute HAVE_XLOCALE_H.
20035         * doc/posix-headers/locale.texi: Document the problem with locale_t.
20036
20037 2009-11-22  Bruno Haible  <bruno@clisp.org>
20038
20039         Add comments.
20040         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
20041         invocation.
20042         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
20043         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20044         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20045
20046 2009-11-22  Bruno Haible  <bruno@clisp.org>
20047
20048         error: account for the possibility of freopen (stdout).
20049         * lib/error.c: Include <unistd.h>.
20050         (flush_stdout): New function, extracted from error and error_at_line.
20051         Determine stdout's fd dynamically.
20052         (error, error_at_line): Invoke flush_stdout.
20053         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
20054         * modules/error (Depends-on): Add unistd.
20055
20056 2009-11-22  Bruno Haible  <bruno@clisp.org>
20057
20058         diffseq: Add comment.
20059         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
20060
20061 2009-11-22  Jim Meyering  <meyering@redhat.com>
20062
20063         c-stack: avoid defining an unused static function
20064         * lib/c-stack.c (find_stack_direction): Do not define this function
20065         when it will not be used.
20066
20067         diffseq: avoid spurious gcc warnings
20068         * lib/diffseq.h (IF_LINT2): Define.
20069         (compareseq): Use it to initialize two members of "part".
20070         This avoids two used-uninitialized warnings.
20071
20072 2009-11-21  Jim Meyering  <meyering@redhat.com>
20073
20074         c-stack: avoid "ignoring return value of `write'" warning
20075         * lib/c-stack.c: Include "ignore-value.h".
20076         (die): Explicitly ignore each write return value.
20077         * modules/c-stack (Depends-on): Add ignore-value.
20078
20079 2009-11-21  Bruno Haible  <bruno@clisp.org>
20080
20081         diffseq: reduce scope of variable 'best'.
20082         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
20083         variable, earlier used for two different purposes.
20084
20085 2009-11-21  Jim Meyering  <meyering@redhat.com>
20086
20087         diffseq: remove useless assignment to "best"
20088         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
20089         assignment.  At that point "best" is already guaranteed to be zero.
20090
20091 2009-11-20  Eric Blake  <ebb9@byu.net>
20092
20093         build: mention ftp redirector in release announcements
20094         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
20095         values that used to come from cfg.mk; mention FTP redirect URL.
20096         * build-aux/announce-gen: Mention the mirror list.
20097         Suggested by Karl Berry.
20098
20099         nanosleep: improve port to mingw
20100         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
20101         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
20102         LIB_NANOSLEEP, but only when needed.
20103         * modules/select (Link): Document LIBSOCKET.
20104         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
20105         enough.
20106
20107         nanosleep: work around cygwin bug
20108         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
20109         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
20110         bug.
20111         (getnow): Delete, not needed.
20112         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
20113         LIB_CLOCK_GETTIME.
20114         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
20115         clock-time, gettime.
20116         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
20117         bug.
20118         * modules/nanosleep-tests: New test.
20119         * tests/test-nanosleep.c: New file.
20120
20121         sleep: work around cygwin bug
20122         * lib/sleep.c (rpl_sleep): Work around the bug.
20123         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
20124         (gl_PREREQ_SLEEP): Delete unused macro.
20125         * modules/sleep (Depends-on): Add verify.
20126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
20127         * modules/unistd (Makefile.am): Substitute witness.
20128         * lib/unistd.in.h (sleep): Update prototype.
20129         * doc/posix-functions/sleep.texi (sleep): Document the bug.
20130         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
20131         * modules/sleep-tests (Depends-on): Check for alarm.
20132
20133 2009-11-20  Jim Meyering  <meyering@redhat.com>
20134
20135         maint.mk: improve sc_prohibit_magic_number_exit
20136         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
20137         so it does not match uses like System.exit(1).
20138         Add comments showing how to correct all offenders.
20139
20140 2009-11-19  Eric Blake  <ebb9@byu.net>
20141
20142         xalloc-die-tests: add missing library
20143         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
20144
20145         test-xvasprintf: silence compiler warnings
20146         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
20147         empty string from gcc.
20148
20149 2009-11-19  Jim Meyering  <meyering@redhat.com>
20150
20151         xfreopen: new module, from coreutils
20152         * modules/xfreopen: New module.
20153         * lib/xfreopen.c: New file.
20154         * lib/xfreopen.h: New file.
20155         * MODULES.html.sh (File stream based Input/Output"): Add it.
20156
20157 2009-11-19  Eric Blake  <ebb9@byu.net>
20158
20159         manywarnings: depend on warnings
20160         * modules/manywarnings (Depends-on): Add warnings.
20161
20162         build: avoid compiler warnings
20163         * lib/select.c (rpl_select): Delete unused variable.
20164         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
20165
20166 2009-11-18  Eric Blake  <ebb9@byu.net>
20167
20168         tests: avoid false negative with --with-packager
20169         * tests/test-version-etc.sh: Discard packager information.
20170         * tests/test-argp-version-etc-1.sh: Likewise.
20171         Reported by Mike Frysinger.
20172
20173         utimens: fix regression on Solaris
20174         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
20175         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
20176         can only change fd timestamps via futimesat.  Instead, use an
20177         additional witness macro to avoid BSD bug.
20178         Reported by Jim Meyering.
20179
20180 2009-11-17  Eric Blake  <ebb9@byu.net>
20181
20182         usleep: use it to simplify tests
20183         * modules/stat-time-tests (Depends-on): Add usleep.
20184         (configure.ac): Drop usleep check.
20185         * modules/chown-tests (Depends-on, configure.ac): Likewise.
20186         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
20187         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
20188         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
20189         * modules/openat-tests (Depends-on, configure.ac): Likewise.
20190         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
20191         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
20192         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
20193         Likewise.
20194         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
20195         * tests/test-lchown.h (nap): Likewise.
20196         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
20197         * tests/test-stat-time.c (nap): Likewise.
20198         * tests/test-utimens-common.h (nap): Update comments.
20199
20200         usleep: new module
20201         * modules/usleep: New file.
20202         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
20203         * lib/usleep.c (usleep): Likewise.
20204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
20205         * modules/unistd (Makefile.am): Substitute witnesses.
20206         * lib/unistd.in.h (usleep): Add declaration.
20207         * doc/pastposix-functions/usleep.texi (usleep): Document this.
20208         * MODULES.html.sh (Date and time): Likewise.
20209         * modules/usleep-tests (Depends-on): New test.
20210         * tests/test-usleep.c: New file.
20211
20212         chown: work around OpenBSD bug
20213         * lib/chown.c (rpl_chown): Work around the bug.
20214         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
20215         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
20216         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
20217         * modules/chown (Depends-on): Add stdbool.
20218         * modules/lchown (Depends-on): Likewise.
20219         * doc/posix-functions/chown.texi (chown): Document the bug.
20220         * doc/posix-functions/lchown.texi (lchown): Likewise.
20221         * tests/test-lchown.h (test_chown): Relax test.
20222
20223         mkstemp: avoid conflict with C++ keyword template
20224         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
20225         * lib/mkostemp.c (mkostemp): Likewise.
20226         * lib/mkostemps.c (mkostemps): Likewise.
20227         * lib/mkstemp.c (mkstemp): Likewise.
20228         * lib/mkstemps.c (mkstemps): Likewise.
20229
20230         xalloc-die-tests: optimize
20231         * tests/test-xalloc-die.sh: Reduce number of processes.
20232
20233 2009-11-17  Simon Josefsson  <simon@josefsson.org>
20234
20235         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
20236         patch from ludo@gnu.org (Ludovic Courtès).
20237
20238 2009-11-17  Jim Meyering  <meyering@redhat.com>
20239
20240         version-etc: use proper license string
20241         * modules/version-etc (License): Use LGPL, not LGPLv3+.
20242         * modules/version-etc-fsf: Likewise.
20243
20244 2009-11-17  Simon Josefsson  <simon@josefsson.org>
20245
20246         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
20247         printed to stdout.  Deal with EOL differences.
20248
20249 2009-11-17  Eric Blake  <ebb9@byu.net>
20250
20251         unsetenv: work around Solaris bug
20252         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
20253         * lib/unsetenv.c (rpl_unsetenv): Work around it.
20254         Reported by Jim Meyering.
20255
20256         vasnprintf: avoid compiler warnings
20257         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
20258         variables.
20259         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
20260
20261 2009-11-17  Simon Josefsson  <simon@josefsson.org>
20262
20263         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
20264         settings since xalloc-die is no longer the self test,
20265         xalloc-die.sh is.
20266
20267 2009-11-17  Jim Meyering  <meyering@redhat.com>
20268
20269         test-xalloc-die.sh: make the code agree with the commit log
20270         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
20271         at the end, just in case you happen to have a test-xalloc-die
20272         program in some other PATH directory.
20273
20274         test-xalloc-die.sh: fix a portability bug
20275         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
20276         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
20277         Otherwise, argv[0] (as often seen in diagnostics) would be too
20278         system-dependent, sometimes with, and sometimes without the leading "./".
20279
20280         version-etc-fsf: relax license to LGPLv3+
20281         * modules/version-etc-fsf (License): Relax license.
20282
20283 2009-11-16  Eric Blake  <ebb9@byu.net>
20284
20285         xalloc-die-tests: avoid printing null pointer
20286         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
20287         shell script.
20288         * tests/test-xalloc-die.c (program_name): Declare.
20289         * tests/test-xalloc-die.sh (tmpfiles): New file.
20290
20291         setenv, unsetenv: work around various bugs
20292         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
20293         (setenv) [HAVE_SETENV]: Work around bugs.
20294         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
20295         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
20296         for bugs.
20297         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
20298         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
20299         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
20300         * modules/stdlib (Makefile.am): Update substitutions.
20301         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
20302         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
20303         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
20304         * modules/setenv-tests: New test.
20305         * modules/unsetenv-tests: Likewise.
20306         * tests/test-setenv.c: New file.
20307         * tests/test-unsetenv.c: Likewise.
20308
20309 2009-11-16  Jim Meyering  <meyering@redhat.com>
20310
20311         version-etc: relax license to LGPLv3+
20312         * modules/version-etc (License): Relax license.
20313
20314         better AC_REQUIRE expanded-before-required-warning avoidance
20315         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
20316         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
20317         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
20318         which is no longer needed.
20319
20320 2009-11-16  Eric Blake  <ebb9@byu.net>
20321
20322         test-freading: clean up temporary file
20323         * tests/test-freading.c (main): Remove file on success, and use
20324         ASSERT more liberally.
20325         Reported by Jim Meyering.
20326
20327 2009-11-16  Jim Meyering  <meyering@redhat.com>
20328
20329         avoid new AC_REQUIRE expanded-before-required warnings
20330         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
20331         merely using it.
20332         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
20333         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
20334
20335 2009-11-15  Simon Josefsson  <simon@josefsson.org>
20336
20337         * tests/test-xalloc-die.c: New file.
20338         * modules/xalloc-die-tests: New file.
20339         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
20340         XFAIL_TESTS so it can be appended by modules.
20341
20342 2009-11-15  Simon Josefsson  <simon@josefsson.org>
20343
20344         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
20345         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
20346
20347 2009-11-14  Eric Blake  <ebb9@byu.net>
20348
20349         fnmatch: avoid compiler warning
20350         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
20351         to silence compiler warning about mismatch signedness in ?:.
20352         Reported by Robert Millan.
20353
20354         intprops: add double-inclusion guard
20355         * lib/intprops.h: Allow idempotent includes.
20356         Suggested by Bruce Korb.
20357
20358         openat: detect Solaris fchownat bug
20359         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
20360         penalizing glibc chownat when only lchownat is broken.
20361         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
20362         trailing slash bugs.
20363         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
20364         * modules/openat-tests (Files): Include more files.
20365         (Depends-on): Add mgetgroups, sleep, stat-time.
20366         (configure.ac): Add additional checks.
20367         (Makefile.am): Build new test.
20368         * tests/test-fchownat.c: New file.
20369
20370         lchown: detect Solaris and FreeBSD bug
20371         * lib/lchown.c (rpl_lchown): Work around bug.
20372         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
20373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20374         * modules/unistd (Makefile.am): Populate it.
20375         * lib/unistd.in.h (lchown): Update declaration.
20376         * doc/posix-functions/lchown.texi (lchown): Document the bug.
20377         * modules/lchown-tests: New file.
20378         * tests/test-lchown.h (test_lchown): Likewise.
20379         * tests/test-lchown.c (main): Likewise.
20380
20381         chown: detect Solaris and FreeBSD bug
20382         * lib/chown.c (rpl_chown): Work around bug.
20383         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
20384         (gl_PREREQ_CHOWN): Delete.
20385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20386         * modules/unistd (Makefile.am): Populate it.
20387         * lib/unistd.in.h (chown): Update declaration.
20388         * lib/lchown.c (chown): Update client.
20389         * modules/lchown (Depends-on): Add lstat.
20390         * doc/posix-functions/chown.texi (chown): Document the bug.
20391         * doc/posix-functions/getgroups.texi (getgroups): Document
20392         getgroups pitfall.
20393         * modules/chown-tests: New file.
20394         * tests/test-chown.h (test_chown): Likewise.
20395         * tests/test-chown.c (main): Likewise.
20396
20397 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
20398
20399         gnulib-tool: correctly detect absence of m4 directories
20400         * gnulib-tool: Avoid extra newline on data passed to wc -l.
20401
20402 2009-11-14  Jim Meyering  <meyering@redhat.com>
20403
20404         maint.mk: Prohibit inclusion of "xalloc.h" without use.
20405         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
20406
20407 2009-11-14  John W. Eaton  <jwe@gnu.org>
20408
20409         strftime.h: wrap funtion declaration in extern "C" block
20410         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
20411
20412 2009-11-13  Eric Blake  <ebb9@byu.net>
20413
20414         getgroups: avoid compiler warning
20415         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
20416
20417         getgroups: work around FreeBSD bug
20418         * lib/getgroups.c (rpl_getgroups): Work around the bug.
20419         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
20420         * doc/posix-functions/getgroups.texi (getgroups): Document it.
20421         * tests/test-getgroups.c (main): Fix buffer overrun.
20422
20423         getgroups: avoid compilation failure
20424         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
20425         * modules/getgroups (Depends-on): Add stdint.
20426
20427 2009-11-13  Jim Meyering  <meyering@redhat.com>
20428
20429         test-getgroups: avoid compilation failure
20430         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
20431
20432 2009-11-13  Eric Blake  <ebb9@byu.net>
20433
20434         mgetgroups: new module, taken from coreutils
20435         * modules/mgetgroups: New file.
20436         * lib/mgetgroups.h: Likewise.
20437         * lib/mgetgroups.c (mgetgroups): Likewise.
20438         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
20439         * MODULES.html.sh (Users and groups): Mention it.
20440
20441         getgroups: don't expose GETGROUPS_T to user
20442         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
20443         an element at a time if GETGROUPS_T is wrong size.
20444         * lib/getugroups.h (getugroups): Change signature.
20445         * lib/unistd.in.h (getgroups): Likewise.
20446         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
20447         signature needs fixing.
20448         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
20449         AC_TYPE_GETGROUPS.
20450         * modules/group-member (Depends-on): Add getgroups.
20451         * lib/group-member.c (group_info, get_group_info): Use gid_t.
20452         (group_member): Rely on getgroups replacement.
20453         * lib/getugroups.c (getugroups): Use gid_t.
20454         * tests/test-getgroups.c (main): Likewise.
20455         * NEWS: Mention the signature change.
20456         * doc/posix-functions/getgroups.texi (getgroups): Mention the
20457         problem with signature.
20458         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
20459         GETGROUPS_T is still useful for setgroups.
20460
20461         getgroups, getugroups: provide stubs for mingw
20462         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
20463         * lib/getugroups.c (getugroups): Likewise.
20464         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
20465         function.  Modernize replacement scheme.
20466         (gl_PREREQ_GETGROUPS): Delete.
20467         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
20468         * modules/getgroups (configure.ac): Declare witness.
20469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
20470         * modules/unistd (Depends-on): Substitute witness.
20471         * lib/unistd.in.h (getgroups): Declare replacement.
20472
20473         getgroups: avoid calling exit
20474         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
20475         drop xalloc.
20476         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
20477         dependencies.
20478         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
20479         exiting, in the rare case of malloc failure.
20480
20481         getgroups: fix logic error
20482         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
20483         has more than 20 groups.
20484         * modules/getgroups-tests: New test.
20485         * tests/test-getgroups.c: New file.
20486
20487 2009-11-13  Simon Josefsson  <simon@josefsson.org>
20488
20489         * tests/test-base64.c: Improve.
20490
20491 2009-11-13  Simon Josefsson  <simon@josefsson.org>
20492
20493         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
20494         Blake <ebb9@byu.net>.
20495
20496 2009-11-13  Simon Josefsson  <simon@josefsson.org>
20497
20498         * tests/test-xvasprintf.c: Add %s%s related checks.
20499
20500 2009-11-12  Eric Blake  <ebb9@byu.net>
20501
20502         version-etc: match standards.texi style
20503         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
20504         and use <> only for URLs.
20505
20506 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
20507
20508         fts: do not fail on a submount during traversal
20509         * lib/fts.c (fts_build): Read the stat info again after opening
20510         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
20511         Original report at http://bugzilla.redhat.com/501848.
20512
20513 2009-11-12  Jim Meyering  <meyering@redhat.com>
20514
20515         bootstrap: sync from coreutils
20516         * build-aux/bootstrap (bootstrap_epilogue): New function.
20517         Use git_modules_config in one more place.  This make bootstrap's
20518         --gnulib-srcdir option more useful for testing.
20519
20520         bootstrap: generalize autoheader check
20521         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
20522         AC_CONFIG_HEADERS.
20523
20524 2009-11-11  Eric Blake  <ebb9@byu.net>
20525
20526         mkfifoat: use new modules for Solaris and BSD bugs
20527         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
20528         * lib/mkfifoat.c (mknodat): Split...
20529         * lib/mknodat.c (mknodat): ...into new file.
20530         * modules/mkfifoat (Files): Ship new file.
20531         (Depends-on): Add mkfifo, mknod.
20532         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
20533         (Depends-on): Add symlink.
20534         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
20535         redundant with test_mkfifo.h.
20536         (do_mkfifoat, do_mknodat): New helpers.
20537
20538         mknod: new module
20539         * modules/mknod: New file.
20540         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
20541         * lib/mknod.c (mknod): Likewise.
20542         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
20543         defaults.
20544         * modules/sys_stat (Makefile.am): Substitute them.
20545         * lib/sys_stat.in.h (mknod): Declare replacement.
20546         * MODULES.html.sh (Support for systems lacking POSIX:2008):
20547         Document it.
20548         * doc/posix-functions/mknod.texi (mknod): Likewise.
20549         * modules/mknod-tests: New test.
20550         * tests/test-mknod.c: Likewise.
20551
20552         mkfifo: new module
20553         * modules/mkfifo: New file.
20554         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
20555         * lib/mkfifo.c (mkfifo): Likewise.
20556         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
20557         defaults.
20558         * modules/sys_stat (Makefile.am): Substitute them.
20559         * lib/sys_stat.in.h (mkfifo): Declare replacement.
20560         * MODULES.html.sh (Support for systems lacking POSIX:2008):
20561         Document it.
20562         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
20563         * modules/mkfifo-tests: New test.
20564         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
20565         from test-mkfifoat.c.
20566         * tests/test-mkfifo.c: New file.
20567
20568         readlink: detect FreeBSD bug
20569         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
20570         slash on symlink.
20571         * doc/posix-functions/readlink.texi (readlink): Document the bug.
20572         * tests/test-readlink.h (test_readlink): Enhance test.
20573
20574         symlink: detect FreeBSD bug
20575         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
20576         slash on symlink.
20577         * doc/posix-functions/symlink.texi (symlink): Document the bug.
20578         * tests/test-symlink.h (test_symlink): Enhance test.
20579
20580 2009-11-10  Eric Blake  <ebb9@byu.net>
20581
20582         link: detect FreeBSD bug
20583         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
20584         symlink.
20585         * doc/posix-functions/link.texi (link): Document the bug.
20586         * tests/test-link.h (test_link): Enhance test.
20587         * tests/test-linkat.c (main): Update caller.
20588
20589         unlink, remove: detect FreeBSD bug
20590         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
20591         slash on symlink.
20592         * doc/posix-functions/unlink.texi (unlink): Document the bug.
20593         * doc/posix-functions/remove.texi (remove): Likewise.
20594         * tests/test-unlink.h (test_unlink): Enhance test.
20595         * tests/test-remove.c (main): Likewise.
20596
20597 2009-11-09  Eric Blake  <ebb9@byu.net>
20598
20599         rename: detect FreeBSD bug
20600         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
20601         slash on symlink.
20602         * modules/renameat-tests (Depends-on): Add filenamecat.
20603         * tests/test-rename.h (test_rename): Allow one more errno.
20604         * tests/test-renameat.c (main): Likewise.
20605         * doc/posix-functions/rename.texi (rename): Document the bug.
20606
20607         open: detect FreeBSD bug
20608         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
20609         symlink.
20610         * doc/posix-functions/open.texi (open): Document the bug.
20611         * doc/posix-functions/utimes.texi (utimes): Likewise.
20612         * tests/test-open.h (test_open): Add parameters, and test symlink
20613         handling.
20614         * tests/test-open.c (main): Adjust caller.
20615         * tests/test-fcntl-safer.c (main): Likewise.
20616         * modules/open-tests (Depends-on): Add stdbool, symlink.
20617         * modules/fcntl-safer-tests (Depends-on): Likewise.
20618         * tests/test-openat.c (main): Add test-open tests.
20619
20620         stat: detect FreeBSD bug
20621         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
20622         symlink.
20623         * doc/posix-functions/stat.texi (stat): Document the bug.
20624         * tests/test-stat.h (test_stat_func): Add argument.
20625         * tests/test-stat.c (main): Adjust caller.
20626         * tests/test-fstatat.c (main): Likewise.
20627         * modules/stat-tests (Depends-on): Add stdbool, symlink.
20628         Reported by Jim Meyering.
20629
20630 2009-11-09  James Youngman  <jay@gnu.org>
20631
20632         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
20633         * lib/strftime.c: Correct placement of #include "ignore-value.h".
20634
20635 2009-11-08  Jim Meyering  <meyering@redhat.com>
20636
20637         utimens: remove invalid futimesat call
20638         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
20639         It used the file descriptor of the target file as the DIR_FD
20640         parameter and NULL as the file name.  That caused failure with
20641         errno == EFAULT on FreeBSD-8.0-rc2
20642
20643 2009-11-07  Eric Blake  <ebb9@byu.net>
20644
20645         fflush, freadseek: use fseeko, not fseek
20646         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20647         (clear_ungetc_buffer): Avoid potential problems on large files.
20648         * lib/freadseek.c (freadseek): Likewise.
20649         * modules/freadseek (Depends-on): Add fseeko.
20650         * modules/fseek (configure.ac): Set a witness.
20651         * tests/test-fflush.c (main): Use fseeko.
20652         * tests/test-fpurge.c (fseek): Disable link warning.
20653         * tests/test-freadable.c (fseek): Likewise.
20654         * tests/test-freading.c (fseek): Likewise.
20655         * tests/test-fseeko.c (fseek): Likewise.
20656         * tests/test-ftell.c (fseek): Likewise.
20657         * tests/test-ftello.c (fseek): Likewise.
20658         * tests/test-fwritable.c (fseek): Likewise.
20659         * tests/test-fwriting.c (fseek): Likewise.
20660
20661 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20662
20663         * modules/memchr (Depends-on): Drop getpagesize dependency.
20664
20665 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20666
20667         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
20668         Reported by Ludovic Courtès.
20669         * build-aux/pmccabe2html: Improve example usage.
20670         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
20671
20672 2009-11-06  Jim Meyering  <meyering@redhat.com>
20673
20674         do-release-commit-and-tag: New module.
20675         Automate the release-commit and tag process.
20676         * build-aux/do-release-commit-and-tag: New script, from coreutils.
20677         * modules/do-release-commit-and-tag: New file.
20678         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20679
20680 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20681
20682         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
20683         because test-select.c uses inet_pton.
20684
20685 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20686
20687         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
20688         GETADDRINFO_LIB.  Bump serial number.
20689         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
20690         Suggested by Eric Blake <ebb9@byu.net>.
20691
20692 2009-11-05  Eric Blake  <ebb9@byu.net>
20693
20694         strtod: detect darwin bug
20695         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
20696         Reported by Leo Davis.
20697
20698         freopen-safer: new module
20699         * modules/freopen-safer: New module.
20700         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
20701         * lib/freopen-safer.c (freopen_safer): New file.
20702         * lib/stdio-safer.h (freopen_safer): New declaration.
20703         * lib/stdio--.h (freopen): New override.
20704         * MODULES.html.sh (File stream based Input/Output): Mention it.
20705         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
20706         freopen-safer module.
20707         * doc/posix-functions/stderr.texi (stderr): Likewise.
20708         * doc/posix-functions/stdin.texi (stdin): Likewise.
20709         * doc/posix-functions/stdout.texi (stdout): Likewise.
20710         * modules/freopen-safer-tests: New test.
20711         * tests/test-reopen-safer.c: New file.
20712
20713 2009-11-05  Jim Meyering  <meyering@redhat.com>
20714
20715         maint.mk: Prohibit inclusion of "close-stream.h" without use.
20716         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
20717
20718 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20719
20720         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
20721
20722 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20723
20724         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
20725
20726 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20727
20728         Fix link error.
20729         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
20730         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20731
20732 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20733
20734         * tests/test-func.c: Also test value of __func__.
20735
20736 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20737
20738         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
20739         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
20740
20741 2009-11-05  Bruno Haible  <bruno@clisp.org>
20742
20743         Fix link error.
20744         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
20745         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20746         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
20747
20748 2009-11-05  Bruno Haible  <bruno@clisp.org>
20749
20750         Tests for module 'inet_pton'.
20751         * modules/inet_pton-tests: New file.
20752         * tests/test-inet_pton.c: New file.
20753
20754 2009-11-05  Bruno Haible  <bruno@clisp.org>
20755
20756         Tests for module 'inet_ntop'.
20757         * modules/inet_ntop-tests: New file.
20758         * tests/test-inet_ntop.c: New file.
20759
20760 2009-11-04  Eric Blake  <ebb9@byu.net>
20761
20762         stdlib-safer: wrap all mkstemp variants
20763         * modules/mkostemp (configure.ac): Set witness.
20764         * modules/mkostemps (configure.ac): Likewise.
20765         * modules/mkstemps (configure.ac): Likewise.
20766         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
20767         (mkstemps_safer): Wrap more functions.
20768         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
20769         wrapping.
20770         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
20771         (mkstemps_safer): Implement the wrappers.
20772
20773         mkstemps, mkostemps: new modules
20774         * modules/mkostemps: New module.
20775         * modules/mkstemps: Likewise.
20776         * lib/mkostemps.c (mkostemps): New file.
20777         * lib/mkstemps.c (mkstemps): Likewise.
20778         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
20779         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
20780         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
20781         * modules/stdlib (Makefile.am): Substitute them.
20782         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
20783         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
20784         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20785         * doc/gnulib.texi (Glibc stdlib.h): Include them.
20786         * MODULES.html.sh (File system functions): Mention them.
20787
20788         tempname: resync from glibc
20789         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
20790         same values for __GT_FILE as glibc.  Abort even when assertions
20791         are disabled.
20792         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
20793         match its value otherwise.  Allow idempotent inclusion.
20794         * lib/mkdtemp.c (mkdtemp): Adjust caller.
20795         * lib/mkostemp.c (mkostemp): Likewise.
20796         * lib/mkstemp.c (mkstemp): Likewise.
20797         * lib/tmpfile.c (tmpfile): Likewise.
20798         * NEWS: Document this.
20799
20800         utimens: fix use of futimens on older Linux
20801         * lib/utimens.c (fdutimens): Use updated, rather than original,
20802         timespec to avoid bug in older Linux kernel.
20803         Reported by Simon Josefsson.
20804
20805 2009-11-04  Bruno Haible  <bruno@clisp.org>
20806
20807         Make num_processors more flexible and consistent.
20808         * lib/nproc.h (enum nproc_query): New type.
20809         (num_processors): Add a 'query' argument.
20810         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
20811         (num_processors): Add a 'query' argument. Test the value of the
20812         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
20813         mingw, count the number of CPUs available for the current process.
20814         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
20815         Check for sched_getaffinity and sched_getaffinity_np.
20816         * modules/nproc (Depends-on): Add c-ctype, extensions.
20817         * NEWS: Mention the change.
20818
20819 2009-11-03  Bruno Haible  <bruno@clisp.org>
20820
20821         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
20822
20823 2009-11-03  Jim Meyering  <meyering@redhat.com>
20824
20825         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
20826         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
20827         if it is defined.
20828
20829 2009-11-02  Eric Blake  <ebb9@byu.net>
20830
20831         mktime, timegm: share common declaration
20832         * lib/mktime-internal.h: New file.
20833         * lib/mktime.c: Use it rather than open-coding a declaration.
20834         * lib/timegm.c: Likewise.
20835         * modules/mktime (Files): Ship it.
20836         * modules/timegm (Files): Likewise.
20837         Suggested by Bruno Haible.
20838
20839         test-update-copyright: update test to match script changes
20840         * tests/test-update-copyright.sh: Avoid hard-coding perl
20841         location.  Don't update *.bak created by earlier runs.
20842
20843 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
20844             Simon Josefsson  <simon@josefsson.org>
20845             Bruno Haible  <bruno@clisp.org>
20846
20847         Fix link error on Solaris 8.
20848         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
20849         also in libnsl. Define also INET_PTON_LIB.
20850         * modules/inet_pton (Link): New section.
20851
20852 2009-11-02  Simon Josefsson  <simon@josefsson.org>
20853             Bruno Haible  <bruno@clisp.org>
20854
20855         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
20856         * modules/inet_ntop (Link): New section.
20857         Reported by Boyan Kasarov <bkasarov@gmail.com>.
20858
20859 2009-11-02  Eric Blake  <ebb9@byu.net>
20860
20861         maint: avoid compiler warnings in m4 macros
20862         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
20863         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
20864
20865 2009-11-02  Simon Josefsson  <simon@josefsson.org>
20866
20867         * m4/pmccabe2html.m4: Remove file.
20868         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
20869         function.  Change maintainer.
20870         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
20871         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
20872         Courtès).
20873
20874 2009-10-31  Eric Blake  <ebb9@byu.net>
20875
20876         fseeko: fix m4 regression
20877         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
20878         regression from 2009-10-27.
20879         Reported by Ralf Wildenhues.
20880
20881 2009-10-31  Jim Meyering  <meyering@redhat.com>
20882
20883         inttostr: aesthetics and improved (compile-time) safety
20884         Define inttype_is_signed rather than inttype_is_unsigned,
20885         since the sole use is via "#if inttype_is_signed".
20886         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
20887         inttype_is_unsigned.
20888         * lib/offtostr.c (inttype_is_signed): Likewise.
20889         * lib/uinttostr.c (inttype_is_signed): Likewise.
20890         * lib/umaxtostr.c (inttype_is_signed): Likewise.
20891         * lib/inttostr.c (inttostr): Use verify to cross-check the
20892         inttype_is_signed value and the signedness of the actual type.
20893         * modules/inttostr (Depends-on): Add verify.
20894
20895 2009-10-30  Eric Blake  <ebb9@byu.net>
20896
20897         build: avoid compiler warnings
20898         * lib/fchmodat.c (lchmod): Mark unused variables.
20899         * lib/getopt.c (_getopt_initialize): Likewise.
20900         * lib/mktime.c (__mktime_internal): Provide prototype.
20901         * lib/inttostr.c (inttostr): Avoid compiler warning even with
20902         older gcc that do not understand #pragma GCC diagnostic.
20903         * lib/uinttostr.c (inttype_is_unsigned): Define.
20904         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
20905
20906 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
20907
20908         stat: fix compilation on AIX
20909         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
20910         only see struct stat64.
20911
20912 2009-10-30  Eric Blake  <ebb9@byu.net>
20913
20914         exclude: make more robust
20915         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
20916         rather than masking a coding bug.
20917         Suggested by Bruno Haible.
20918
20919 2009-10-30  Jim Meyering  <meyering@redhat.com>
20920
20921         perl scripts: remove #!/usr/bin/perl in favor of more portable...
20922         Rather than putting #!/usr/bin/perl on the first line,
20923         start with a variant of what's recommended by "man perlrun" that
20924         invokes the first "perl" program from your shell's search path.
20925         * build-aux/gitlog-to-changelog: Replace #!... as above.
20926         Add a "Local Variables" perl mode setting.
20927         Prompted by a patch from Ludovic Courtès.
20928         Improved by Eric Blake.
20929         * build-aux/useless-if-before-free: Likewise.
20930         * build-aux/announce-gen: Likewise.
20931         * build-aux/update-copyright: Likewise.
20932
20933 2009-10-29  Eric Blake  <ebb9@byu.net>
20934
20935         filenamecat-lgpl: adjust clients
20936         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
20937         filenamecat.
20938         * modules/renameat (Depends-on): Likewise.
20939
20940         filenamecat: split into filenamecat-lgpl
20941         * modules/filenamecat-lgpl: New module.
20942         * modules/filenamecat (Files): Move library-safe files into
20943         filenamecat-lgpl.
20944         (Depends-on): Add filenamecat-lgpl.
20945         (configure.ac): Declare witness.
20946         * lib/filenamecat.h (file_name_concat): Only declare when using
20947         GPL module.
20948         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
20949         Move...
20950         * lib/filenamecat-lgpl.c: ...into new file.
20951         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
20952         (gl_FILE_NAME_CONCAT): Use it.
20953         * MODULES.html.sh (File system functions): Mention new module.
20954
20955         argp: avoid memory leak
20956         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
20957         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
20958         base_name, since the latter malloc()s and can call exit().
20959         Leak introduced 2006-07-03.
20960
20961         dirname-lgpl: adjust clients that don't need full dirname
20962         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
20963         * modules/filenamecat (Depends-on): Likewise.
20964         * modules/linkat (Depends-on): Likewise.
20965         * modules/mkancesdirs (Depends-on): Likewise.
20966         * modules/mkdir (Depends-on): Likewise.
20967         * modules/openat (Depends-on): Likewise.
20968         * modules/savewd (Depends-on): Likewise.
20969         * modules/rename (Depends-on): Likewise.
20970         (License): Relax license.
20971         * modules/mkdir-tests (Depends-on): Drop progname.
20972         (Makefile.am): Delete unneeded LDADD.
20973         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
20974
20975         dirname: split into dirname-lgpl
20976         * modules/dirname-lgpl: New module.
20977         * modules/dirname (Files): Move library-safe files into
20978         dirname-lgpl.
20979         (Depends-on): Add dirname-lgpl.
20980         (configure.ac): Declare witness.
20981         * modules/double-slash-root (License): Relax license.
20982         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
20983         module.
20984         * lib/dirname.c (dir_len, mdir_name): Move...
20985         * lib/dirname-lgpl.c: ...into new file.
20986         * lib/basename.c (last_component, base_len): Move...
20987         * lib/basename-lgpl.c: ...into new file.
20988         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
20989         (gl_DIRNAME): Use it.
20990         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
20991         Mention new module.
20992         * modules/dirname-tests (Depends-on): Add progname.
20993         * tests/test-dirname.c (program_name): Delete.
20994
20995         mkdir: make safe for libraries
20996         * modules/mkdir (Depends-on): Drop xalloc.
20997         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
20998         exit.
20999
21000         tests: avoid some compiler warnings
21001         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
21002         literals.
21003         * tests/test-memchr.c (main): Avoid type mismatch.
21004         * tests/test-arpa_inet.c (main): Avoid unused parameters.
21005         * tests/test-base64.c (main): Likewise.
21006         * tests/test-getdelim.c (main): Likewise.
21007         * tests/test-gethostname.c (main): Likewise.
21008         * tests/test-getline.c (main): Likewise.
21009         * tests/test-netinet_in.c (main): Likewise.
21010         * tests/test-select.c (open_server_socket, main): Likewise.
21011         * tests/test-select-stdin.c (main): Likewise.
21012         * tests/test-sockets.c (main): Likewise.
21013         * tests/test-strsignal.c (main): Likewise.
21014         * tests/test-sys_select.c (main): Likewise.
21015         * tests/test-sys_socket.c (main): Likewise.
21016         * tests/test-u64.c (main): Likewise.
21017         * tests/test-xfprintf-posix.c (main): Likewise.
21018         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
21019
21020         sockets: avoid compiler warning
21021         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
21022
21023         maint: detect usage(1) and other suspicious exits
21024         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
21025
21026 2009-10-29  Jim Meyering  <meyering@redhat.com>
21027
21028         timespec: long-to-int truncation could make timespec_cmp malfunction
21029         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
21030         a multiple of 2^32 nanoseconds as no difference.
21031
21032 2009-10-28  Jim Meyering  <meyering@redhat.com>
21033
21034         fprintftime: wrap macro code argument in "do {...} while(0)"
21035         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
21036         cpy macro must be a statement that can be followed by a semicolon.
21037         Now that the else clause contains a comment and is hence longer
21038         than one line, I require curly braces.  That in turn requires
21039         that we wrap this code block in the standard do...while(0).
21040
21041         fprintftime: remove stray semicolon from previous change
21042         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
21043
21044         fprintftime: avoid a warning about ignored fwrite return value
21045         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
21046         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
21047         that is unsafe.
21048         * modules/fprintftime (Depends-on): Add ignore-value.
21049
21050         exclude: avoid an unwarranted warning
21051         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
21052
21053 2009-10-27  Eric Blake  <ebb9@byu.net>
21054
21055         fseek: avoid compilation failure when fflush is replaced
21056         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
21057         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
21058         module is in use.
21059         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
21060         module is not in use; since REPLACE_FSEEK worked otherwise.
21061         (GNULIB_FTELLO): Likewise for ftell.
21062         Reported by Ian Beckwith and others.
21063
21064 2009-10-27  Bruno Haible  <bruno@clisp.org>
21065
21066         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
21067         Reported by Jim Meyering.
21068
21069 2009-10-27  Jim Meyering  <jim@meyering.net>
21070             Bruno Haible  <bruno@clisp.org>
21071
21072         Avoid warning despite dropping the return value of fwrite.
21073         * lib/unicodeio.c: Include ignore-value.h.
21074         (fwrite_success_callback): Explicitly ignore fwrite's return value.
21075         * modules/unicodeio (Depends-on): Add ignore-value.
21076
21077 2009-10-26  Eric Blake  <ebb9@byu.net>
21078
21079         areadlinkat: fix fallback path
21080         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
21081         pointer and zero.
21082
21083 2009-10-22  Pádraig Brady  <P@draigBrady.com>
21084
21085         Use a better IO block size for modern systems
21086         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
21087         * lib/md2.c: Likewise.
21088         * lib/md4.c: Likewise.
21089         * lib/md5.c: Likewise.
21090         * lib/sha1.c: Likewise.
21091         * lib/sha256.c: Likewise.
21092         * lib/sha512.c: Likewise.
21093
21094 2009-10-22  Eric Blake  <ebb9@byu.net>
21095
21096         tests: avoid several compiler warnings
21097         * tests/test-getcwd.c (main): Avoid buffer underflow.
21098         * tests/test-getdate.c (main): String literals are not safe with
21099         putenv, so use setenv.  Declare unused argument.
21100         * modules/getdate-tests (Depends-on): Add setenv.
21101         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
21102         problems with string literals in char *.
21103         * tests/test-hash.c (main): Avoid shadowing declaration.
21104         (insert_new): Treat string literals as char const *.
21105         * tests/test-getopt.h (test_getopt): Likewise.
21106         (getopt_loop): Alter types to minimize casting elsewhere.
21107         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
21108         (test_getopt_long_posix): Likewise.
21109         (do_getopt_long): Add wrapper to minimize casting.
21110         * tests/test-atexit.c (clear_temp_file): Use void.
21111         * tests/test-areadlink-with-size.c (main): Declare unused
21112         arguments.
21113         * tests/test-areadlink.c (main): Likewise.
21114         * tests/test-areadlinkat-with-size.c (main): Likewise.
21115         * tests/test-areadlinkat.c (main): Likewise.
21116         * tests/test-canonicalize-lgpl.c (main): Likewise.
21117         * tests/test-canonicalize.c (main): Likewise.
21118         * tests/test-dirent-safer.c (main): Likewise.
21119         * tests/test-dirname.c (main): Likewise.
21120         * tests/test-dup2.c (main): Likewise.
21121         * tests/test-fchdir.c (main): Likewise.
21122         * tests/test-fcntl-h.c (main): Likewise.
21123         * tests/test-fcntl-safer.c (main): Likewise.
21124         * tests/test-fdopendir.c (main): Likewise.
21125         * tests/test-fdutimensat.c (main): Likewise.
21126         * tests/test-fflush.c (main): Likewise.
21127         * tests/test-filenamecat.c (main): Likewise.
21128         * tests/test-filevercmp.c (main): Likewise.
21129         * tests/test-fopen-safer.c (main): Likewise.
21130         * tests/test-fopen.c (main): Likewise.
21131         * tests/test-fpending.c (main): Likewise.
21132         * tests/test-fpurge.c (main): Likewise.
21133         * tests/test-freading.c (main): Likewise.
21134         * tests/test-fstatat.c (main): Likewise.
21135         * tests/test-fsync.c (main): Likewise.
21136         * tests/test-futimens.c (main): Likewise.
21137         * tests/test-getndelim2.c (main): Likewise.
21138         * tests/test-gettimeofday.c (main): Likewise.
21139         * tests/test-getopt.c (main): Likewise.
21140         * tests/test-i-ring.c (main): Likewise.
21141         * tests/test-inttypes.c (main): Likewise.
21142         * tests/test-link.c (main): Likewise.
21143         * tests/test-lstat.c (main): Likewise.
21144         * tests/test-math.c (main): Likewise.
21145         * tests/test-md5.c (main): Likewise.
21146         * tests/test-memchr2.c (main): Likewise.
21147         * tests/test-memrchr.c (main): Likewise.
21148         * tests/test-mkdir.c (main): Likewise.
21149         * tests/test-mkdirat.c (main): Likewise.
21150         * tests/test-mkfifoat.c (main): Likewise.
21151         * tests/test-open.c (main): Likewise.
21152         * tests/test-openat-safer.c (main): Likewise.
21153         * tests/test-openat.c (main): Likewise.
21154         * tests/test-quotearg.c (main): Likewise.
21155         * tests/test-rawmemchr.c (main): Likewise.
21156         * tests/test-readlink.c (main): Likewise.
21157         * tests/test-remove.c (main): Likewise.
21158         * tests/test-rename.c (main): Likewise.
21159         * tests/test-renameat.c (main): Likewise.
21160         * tests/test-rmdir.c (main): Likewise.
21161         * tests/test-sha1.c (main): Likewise.
21162         * tests/test-signal.c (main): Likewise.
21163         * tests/test-sigaction.c (main): Likewise.
21164         * tests/test-stat.c (main): Likewise.
21165         * tests/test-stat-time.c (main): Likewise.
21166         * tests/test-stddef.c (main): Likewise.
21167         * tests/test-stdint.c (main): Likewise.
21168         * tests/test-stdio.c (main): Likewise.
21169         * tests/test-stdlib.c (main): Likewise.
21170         * tests/test-strchrnul.c (main): Likewise.
21171         * tests/test-strerror.c (main): Likewise.
21172         * tests/test-string.c (main): Likewise.
21173         * tests/test-strtod.c (main): Likewise.
21174         * tests/test-strverscmp.c (main): Likewise.
21175         * tests/test-symlink.c (main): Likewise.
21176         * tests/test-symlinkat.c (main): Likewise.
21177         * tests/test-sys_stat.c (main): Likewise.
21178         * tests/test-sys_time.c (main): Likewise.
21179         * tests/test-time.c (main): Likewise.
21180         * tests/test-unistd.c (main): Likewise.
21181         * tests/test-unlink.c (main): Likewise.
21182         * tests/test-unlinkat.c (main): Likewise.
21183         * tests/test-utimens.c (main): Likewise.
21184         * tests/test-utimensat.c (main): Likewise.
21185         * tests/test-version-etc.c (main): Likewise.
21186         * tests/test-wchar.c (main): Likewise.
21187         * tests/test-wctype.c (main): Likewise.
21188         * tests/test-xprintf-posix.c (main): Likewise.
21189         * tests/test-posixtm.c (main): Likewise.
21190         (STREQ): Delete unused macro.
21191         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
21192         shadowed variables.
21193         * tests/test-memchr.c (main): Likewise.
21194
21195 2009-10-21  Eric Blake  <ebb9@byu.net>
21196
21197         areadlinkat: avoid failure on older glibc
21198         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
21199         rather than mis-comparing 0 against FUNC_RESULT of char*.
21200
21201 2009-10-21  Bruno Haible  <bruno@clisp.org>
21202
21203         * modules/stpncpy (License): Relicense under LGPLv2+.
21204         Reported by David Lutterkort <lutter@redhat.com>.
21205
21206 2009-10-20  Eric Blake  <ebb9@byu.net>
21207
21208         utimensat: work around Solaris 9 bug
21209         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
21210         has trailing slash bugs.
21211         * tests/test-lutimens.h (test_lutimens): Enhance test.
21212         * tests/test-utimens.h (test_utimens): Likewise.
21213         * doc/posix-functions/utime.texi (utime): Enhance documentation.
21214         * doc/posix-functions/utimes.texi (utimes): Likewise.
21215         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21216         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
21217         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
21218         * doc/posix-functions/futimens.texi (futimens): Likewise.
21219
21220         fdutimensat: new module
21221         * modules/fdutimensat: New file.
21222         * lib/fdutimensat.c (fdutimensat): Likewise.
21223         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
21224         * MODULES.html.sh (File system functions): Mention module.
21225         * modules/fdutimensat-tests: New test.
21226         * tests/test-fdutimensat.c: Likewise.
21227
21228         doc: regenerate INSTALL
21229         * doc/INSTALL: Reflect recent autoconf update.
21230         * doc/INSTALL.ISO: Likewise.
21231         * doc/INSTALL.UTF-8: Likewise.
21232
21233 2009-10-20  Pádraig Brady  <P@draigBrady.com>
21234
21235         acl: warn if ACL support is not detected
21236         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
21237
21238 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
21239
21240         * lib/nproc.h: Add extern "C" block for C++.
21241
21242 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
21243             Bruno Haible  <bruno@clisp.org>
21244
21245         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
21246         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
21247         * doc/posix-functions/isalpha.texi: Likewise.
21248         * doc/posix-functions/isblank.texi: Likewise.
21249         * doc/posix-functions/iscntrl.texi: Likewise.
21250         * doc/posix-functions/isdigit.texi: Likewise.
21251         * doc/posix-functions/isgraph.texi: Likewise.
21252         * doc/posix-functions/islower.texi: Likewise.
21253         * doc/posix-functions/isprint.texi: Likewise.
21254         * doc/posix-functions/ispunct.texi: Likewise.
21255         * doc/posix-functions/isspace.texi: Likewise.
21256         * doc/posix-functions/isupper.texi: Likewise.
21257         * doc/posix-functions/isxdigit.texi: Likewise.
21258
21259 2009-10-18  Bruno Haible  <bruno@clisp.org>
21260
21261         Tests for module 'isblank'.
21262         * modules/isblank-tests: New file.
21263         * tests/test-isblank.c: New file.
21264
21265         New module 'isblank'.
21266         * lib/isblank.c: New file.
21267         * m4/isblank.m4: New file.
21268         * modules/isblank: New file.
21269         * doc/posix-functions/isblank.texi: Mention the new module.
21270
21271 2009-10-18  Bruno Haible  <bruno@clisp.org>
21272
21273         New module 'ctype'.
21274         * lib/ctype.in.h: New file.
21275         * m4/ctype.m4: New file.
21276         * modules/ctype: New file.
21277         * doc/posix-headers/ctype.texi: Mention the new module.
21278
21279 2009-10-18  Jim Meyering  <meyering@redhat.com>
21280
21281         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
21282         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
21283         right after its initialization, rather than farther down.
21284         Keeping these in close proximity makes it easier to ensure
21285         that each such variable is initialized.  E.g.,
21286
21287             LIB_CLOCK_GETTIME=
21288             AC_SUBST([LIB_CLOCK_GETTIME])
21289
21290         This change also increments these serial numbers.
21291         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
21292         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
21293         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21294
21295 2009-10-18  Bruno Haible  <bruno@clisp.org>
21296
21297         Don't let environment variables perturb build.
21298         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
21299         (gl_PREREQ_GETHRXTIME): ... not here.
21300
21301 2009-10-18  Bruno Haible  <bruno@clisp.org>
21302
21303         Avoid symlink attack in localcharset module.
21304         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
21305         (O_NOFOLLOW): Define fallback.
21306         (get_charset_aliases): Don't open the file if it is a symbolic link.
21307         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
21308         gl_FCNTL_H.
21309         (gl_FCNTL_H): Require it.
21310         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
21311         * modules/localcharset (Files): Add m4/fcntl_h.m4.
21312         Reported by Fergal Glynn <fglynn@veracode.com>.
21313
21314 2009-10-18  Bruno Haible  <bruno@clisp.org>
21315
21316         Implement nproc for mingw.
21317         * lib/nproc.c: Include <windows.h>
21318         (num_processors): On native Windows platforms, try GetSystemInfo.
21319
21320 2009-10-18  Bruno Haible  <bruno@clisp.org>
21321
21322         Implement nproc for IRIX.
21323         * lib/nproc.c: Include <sys/sysmp.h>.
21324         (num_processors): On IRIX systems, try sysmp.
21325         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
21326
21327 2009-10-18  Bruno Haible  <bruno@clisp.org>
21328
21329         Implement nproc for HP-UX.
21330         * lib/nproc.c: Include <sys/pstat.h>
21331         (num_processors): On HP-UX systems, try pstat_getdynamic.
21332         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
21333         pstat_getdynamic.
21334
21335 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
21336             Bruno Haible  <bruno@clisp.org>
21337
21338         Implement nproc for NetBSD, OpenBSD.
21339         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
21340         (ARRAY_SIZE): New macro.
21341         (num_processors): On BSD systems, try sysctl of HW_NCPU.
21342         * m4/nproc.m4: New file.
21343         * modules/nproc (Files): Add m4/nproc.m4.
21344         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
21345         (Makefile.am): Instead, augment lib_SOURCES.
21346
21347 2009-10-18  Bruno Haible  <bruno@clisp.org>
21348
21349         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
21350         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
21351         sys/param.h.
21352
21353 2009-10-16  Eric Blake  <ebb9@byu.net>
21354
21355         utimensat: new module
21356         * modules/utimensat: New file.
21357         * lib/utimensat.c (utimensat): Likewise.
21358         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21359         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
21360         so we can work around Linux bugs.
21361         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21362         * modules/sys_stat (Makefile.am): Substitute them.
21363         * lib/sys_stat.in.h (utimensat): Declare it.
21364         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21365         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21366         * modules/utimensat-tests: New test.
21367         * tests/test-utimensat.c: Likewise.
21368
21369         utimens: let lutimens work on non-symlinks
21370         * lib/utimens.c (lutimens): Fall back to utimens rather than
21371         failing with ENOSYS, when file is not a symlink.
21372         (utimens): Reduce redirection.
21373         * tests/test-lutimens.h (test_lutimens): Update test to cover
21374         non-symlinks.
21375         * tests/test-utimens.h (test_utimens): Update test to cover
21376         symlinks.
21377         * tests/test-utimens.c (main): Update caller.
21378
21379         utimens: cache whether utimensat syscall works
21380         * lib/utimens.c (utimensat_works_really): New cache variable.
21381         (fdutimens, lutimens): Use it to avoid failing syscall.
21382
21383         test-stat-time, test-utimens: improve portability
21384         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
21385         ext4 on alpha, and for cygwin.
21386         * tests/test-utimens-common.h: New file.
21387         (nap): Factor delays into single function.
21388         * tests/test-lutimens.h (test_lutimens): Use new header.
21389         * tests/test-futimens.h (test_futimens): Likewise.
21390         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
21391         timestamps to occur from same machine, as was done previously for
21392         test_utimens.
21393         * modules/utimens-tests (Files): Ship new file.
21394         * modules/futimens-tests (Files): Likewise.
21395         Reported in part by Jim Meyering.
21396
21397         sys_stat: sort replacement declarations
21398         * lib/sys_stat.in.h: Sort declarations.
21399         * lib/futimens.c (futimens): Fix typo.
21400
21401 2009-10-15  Jim Meyering  <meyering@redhat.com>
21402
21403         don't let environment settings perturb build
21404         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
21405         could cause a configure-time and/or build-time malfunction.
21406         Typically, a configure-time function-in-library test is performed
21407         via code like this:
21408
21409           LIB_VAR=
21410           AC_SUBST([LIB_VAR])
21411           prefix_saved_LIBS=$LIBS
21412             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
21413                        [test "$ac_cv_search_FUNC" = "none required" ||
21414                         LIB_VAR=$ac_cv_search_FUNC])
21415           LIBS=$prefix_saved_LIBS
21416
21417         However, in each of the files affected by this change, the LIB_VAR=
21418         initialization was omitted.  Thus, when set in the environment, its
21419         value would propagate into generated Makefiles when FUNC is not found
21420         in LIB_NAME.
21421         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
21422         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
21423         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21424
21425 2009-10-14  Eric Blake  <ebb9@byu.net>
21426
21427         fchdir: avoid infinite recursion in mingw
21428         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
21429         recursing.
21430
21431         test-stat-time: port to mingw
21432         * tests/test-stat-time.c (force_unlink): Return a value.
21433         (test_ctime) [W32]: Fix compilation error.
21434         (nap): Don't call usleep with too large an argument.  Use
21435         force_unlink.
21436         * doc/pastposix-functions/usleep.texi (usleep): Document the
21437         portability issue.
21438
21439 2009-10-13  Jim Meyering  <meyering@redhat.com>
21440
21441         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
21442         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
21443         * modules/pipe-filter-ii: Likewise.
21444         * modules/sys_socket-tests: Likewise.
21445         * modules/tsearch-tests: Likewise.
21446         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
21447         (check): Depend on it.
21448
21449 2009-10-12  Eric Blake  <ebb9@byu.net>
21450
21451         utimens-tests: port to NFS file systems
21452         * tests/test-utimens.h (test_utimens): Refactor utimecmp
21453         comparisons to avoid spurious failures from timestamp drift
21454         between NFS machines.
21455
21456 2009-10-12  Eric Blake  <ebb9@byu.net>
21457
21458         stat-time-tests: minor cleanups
21459         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
21460         * tests/test-stat-time.c (nap): Separate assignment from call.
21461         Suggested by Paolo Bonzini and Bruno Haible.
21462
21463         sys_stat: guarantee struct timespec
21464         * lib/sys_stat.in.h (includes): Always include <time.h>
21465         * modules/sys_stat (Depends-on): Add time.
21466         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
21467         mode_t permission values.
21468         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
21469         get at subsecond timestamps.
21470
21471 2009-10-10  Eric Blake  <ebb9@byu.net>
21472
21473         futimens: new module
21474         * modules/futimens: New file.
21475         * lib/futimens.c (futimens): Likewise.
21476         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
21477         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
21478         we can work around Linux bugs.
21479         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21480         * modules/sys_stat (Makefile.am): Substitute them.
21481         * lib/sys_stat.in.h (futimens): Declare it.
21482         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21483         * doc/posix-functions/futimens.texi (futimens): Likewise.
21484         * modules/futimens-tests: New test.
21485         * tests/test-futimens.c: Likewise.
21486
21487         utimens: introduce fdutimens
21488         * lib/utimens.h (fdutimens): New prototype.
21489         * lib/utimens.c (gl_futimens): Move guts...
21490         (fdutimens): ...to new interface.
21491         * tests/test-utimens.c (do_fdutimens): Use it.
21492
21493         utimens: add UTIME_NOW and UTIME_OMIT support
21494         * lib/utimens.c (validate_timespec, update_timespec): New helper
21495         functions.
21496         (gl_futimens, lutimens): Use them.
21497         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
21498         stdbool, sys_stat.
21499         (Link): Mention resulting library dependency.
21500         * modules/utimecmp (Link): Likewise.
21501         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
21502         (Makefile.am): Pick up library dependency.
21503         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
21504         definition.
21505         * tests/test-sys_stat.c: Test the definitions.
21506         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
21507         * NEWS: Document library dependency.
21508
21509         utimecmp: support symlink timestamps
21510         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
21511         hashing when possible.  Use pathconf when available.
21512         (SYSCALL_RESOLUTION): Recognize tighter resolution.
21513         * modules/utimecmp (Depends-on): Add lstat.
21514
21515         utimens: add lutimens interface
21516         * lib/utimens.c (lutimens): New function.
21517         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
21518         * lib/utimens.h (lutimens): Declare new interface.
21519         * tests/test-utimens.c (main): Enhance test.
21520         * tests/test-lutimens.h (test_lutimens): New file.
21521         * modules/utimens-tests (Files): Distribute it.
21522         (Depends-on): Add symlink.
21523         (configure.ac): Check for usleep.
21524
21525         utimens: validate futimens usage
21526         * lib/utimens.c (gl_futimens): Require valid fd up front, using
21527         fewer syscalls on failure later on.  Avoid compiler warning on
21528         mingw.
21529         * modules/utimens (Depends-on): Add dup2.
21530
21531         utimens: add test
21532         * modules/utimens-tests: New test.
21533         * tests/test-utimens.h: New file.
21534         * tests/test-futimens.h: Likewise.
21535         * tests/test-utimens.c: Likewise.
21536
21537         doc: mention timestamp portability issues
21538         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
21539         instead.
21540         * doc/posix-functions/utime.texi (utime): Likewise.
21541         * doc/posix-functions/utimes.texi (utimes): Likewise.
21542         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
21543         instead.
21544         * doc/posix-functions/futimens.texi (futimens): Mention utimens
21545         module.
21546         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21547         Mention weakness with symlink timestamps.
21548         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
21549         to utimensat/futimens instead.
21550         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
21551
21552         test-dup2: enhance test
21553         * tests/test-dup2.c (main): Also check AT_FDCWD.
21554
21555         test-stat-time: avoid more spurious failures
21556         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
21557         xfs; and avoid race if the two timestamps cross quantization edge.
21558
21559         relocatable: prefer 'file system' over 'filesystem'
21560         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
21561         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
21562         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
21563         * doc/relocatable.texi (Enabling Relocatability): Likewise.
21564         * lib/relocatable.c (compute_curr_prefix): Likewise.
21565
21566 2009-10-10  Jim Meyering  <meyering@redhat.com>
21567
21568         stat-time-tests: check for the usleep function
21569         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
21570
21571 2009-10-10  Bruno Haible  <bruno@clisp.org>
21572
21573         * modules/xnanosleep: Put the Link section after the Include section.
21574
21575 2009-10-09  Eric Blake  <ebb9@byu.net>
21576
21577         dup2: work around FreeBSD 6.1 bug
21578         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
21579         * doc/posix-functions/dup2.texi (dup2): Document it.
21580         Reported by Nelson H. F. Beebe and Jim Meyering.
21581
21582         test-stat-time: port to buggy NFS clients
21583         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
21584         (test_ctime): Also skip test if mtime and ctime are skewed.
21585
21586         maint: prefer 'file system' over 'filesystem'
21587         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
21588         * doc/posix-functions/lstat.texi (lstat): Likewise.
21589         * lib/file-has-acl.c (file_has_acl): Likewise.
21590         * lib/fwriteerror.c [TEST]: Likewise.
21591         * tests/test-areadlink.h (test_areadlink): Likewise.
21592         * tests/test-areadlinkat-with-size.c (main): Likewise.
21593         * tests/test-areadlinkat.c (main): Likewise.
21594         * tests/test-canonicalize-lgpl.c (main): Likewise.
21595         * tests/test-canonicalize.c (main): Likewise.
21596         * tests/test-fstatat.c (main): Likewise.
21597         * tests/test-linkat.c (main): Likewise.
21598         * tests/test-lstat.h (test_lstat_func): Likewise.
21599         * tests/test-mkdir.h (test_mkdir): Likewise.
21600         * tests/test-readlink.h (test_readlink): Likewise.
21601         * tests/test-remove.c (main): Likewise.
21602         * tests/test-rename.h (test_rename): Likewise.
21603         * tests/test-renameat.c (main): Likewise.
21604         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21605         * tests/test-symlink.h (test_symlink): Likewise.
21606         * tests/test-symlinkat.c (main): Likewise.
21607         * tests/test-unlink.h (test_unlink_func): Likewise.
21608         * tests/test-unlinkat.c (main): Likewise.
21609
21610         maint: make realtime library usage explicit
21611         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
21612         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
21613         * modules/settime (Link): Likewise.
21614         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
21615
21616         test-stat-time: speed up execution
21617         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
21618         warning on mingw.
21619         (nap): New helper function.
21620         (prepare_test): Use it to reduce sleep time.
21621         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
21622         execution.
21623         * modules/stat-time-tests (configure.ac): Check for usleep.
21624
21625 2009-10-09  Jim Meyering  <meyering@redhat.com>
21626
21627         selinux-h: always use getfilecon wrappers
21628         * lib/getfilecon.c: New file.
21629         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
21630         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
21631         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
21632         (fgetfilecon): Provide a stub.
21633         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
21634         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
21635         file unconditionally.
21636         When <selinux/selinux.h> is found, arrange to use wrappers.
21637         * modules/selinux-h (Files): Add getfilecon.c.
21638         (Makefile.am): Substitute include-next-related bits
21639         into the now-always-generated selinux/selinux.h file.
21640         * doc/glibc-functions/lgetfilecon.texi: New file.
21641         * doc/glibc-functions/fgetfilecon.texi: New file.
21642         * doc/glibc-functions/getfilecon.texi: New file.
21643         * doc/glibc-functions/getfilecon-desc.texi: New file.
21644         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
21645         which to pull in the new files.
21646         * MODULES.html.sh (Misc): Add selinux-h.
21647
21648 2009-10-08  Jim Meyering  <meyering@redhat.com>
21649
21650         unistd: fix comment typo
21651         * lib/unistd.in.h (euidaccess): Fix a comment typo.
21652
21653 2009-10-08  Eric Blake  <ebb9@byu.net>
21654
21655         areadlink: use SIZE_MAX consistently
21656         * modules/areadlink (Depends-on): Add stdint.
21657         * modules/areadlink-with-size (Depends-on): Likewise.
21658         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
21659         gives NULL; drop sys/types, since unistd gives size_t; and add
21660         stdint for SIZE_MAX.
21661         (SIZE_MAX): Rely on headers.
21662         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
21663         and add stdint.
21664         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
21665         (SIZE_MAX): Likewise.
21666         (INITIAL_BUF_SIZE): Turn into enum.
21667         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
21668
21669 2009-10-08  Jim Meyering  <meyering@redhat.com>
21670
21671         areadlinkat: avoid compilation failure
21672         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
21673         Fix typo in comment.
21674
21675 2009-10-07  Eric Blake  <ebb9@byu.net>
21676
21677         areadlinkat-with-size: new module
21678         * modules/areadlinkat-with-size: New module.
21679         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
21680         * lib/areadlink.h (areadlinkat): Declare it.
21681         * MODULES.html.sh (File system functions): Mention it.
21682         * modules/areadlinkat-with-size-tests: New test.
21683         * tests/test-areadlinkat-with-size.c: New file.
21684
21685         xreadlinkat: new module
21686         * modules/xreadlinkat: New module.
21687         * lib/xreadlinkat.c (xreadlinkat): New file.
21688         * lib/xreadlink.h (xreadlinkat): Declare it.
21689         * MODULES.html.sh (File system functions): Mention it.
21690
21691         areadlinkat: new module
21692         * lib/at-func.c (FUNC_FAIL): New define.
21693         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
21694         * modules/areadlinkat: New module.
21695         * lib/linkat.c (areadlinkat): Move...
21696         * lib/areadlinkat.c (areadlinkat): ...to new file.
21697         * lib/areadlink.h (areadlinkat): Declare it.
21698         * modules/linkat (Depends-on): Add areadlinkat.
21699         * MODULES.html.sh (File system functions): Mention it.
21700         * modules/areadlinkat-tests: New test.
21701         * tests/test-areadlinkat.c: New file.
21702
21703         areadlink, areadlink-with-size: add tests
21704         * modules/areadlink-tests: New test.
21705         * modules/areadlink-with-size-tests: Likewise.
21706         * tests/test-areadlink.h: New file.
21707         * tests/test-areadlink.c: Likewise.
21708         * tests/test-areadlink-with-size.c: Likewise.
21709
21710         maint: minor cleanups
21711         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
21712         _UNUSED_PARAMETER_ instead.
21713         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
21714         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
21715         * modules/linkat-tests (Files): Distribute test-link.h.
21716
21717         openat, utimens: whitespace cleanup
21718         * lib/openat.c: Prefer space throughout, rather than mix of 8
21719         spaces vs. tabs.
21720         * lib/at-func.c: Likewise.
21721         * lib/utimens.c: Likewise.
21722
21723         openat: avoid using wrong fd
21724         * lib/openat.c (openat_permissive): Reject user's fd if saving the
21725         working directory chooses same fd.
21726         * lib/at-func.c (AT_FUNC_NAME): Likewise.
21727
21728         mkdir, mkdirat: fix cygwin 1.5.x bug
21729         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
21730         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
21731         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
21732         bug.
21733         (gl_PREREQ_MKDIR): Delete unused macro.
21734         * modules/mkdir (Files): Track file rename.
21735         (configure.ac): Update macro name.
21736         * modules/openat (Depends-on): Add mkdir.
21737         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
21738
21739         mkdir, mkdirat: add tests
21740         * modules/mkdir-tests: New test.
21741         * tests/test-mkdir.h: New file.
21742         * tests/test-mkdir.c: Likewise.
21743         * tests/test-mkdirat.c: Likewise.
21744         * modules/openat-tests (Files): Add new files.
21745         (Makefile.am): Run new test.
21746
21747 2009-10-06  Eric Blake  <ebb9@byu.net>
21748
21749         doc: tweak *at function documentation
21750         * doc/posix-functions/faccessat.texi (faccessat): Mention
21751         known issue with replacement.
21752         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
21753         * doc/posix-functions/linkat.texi (linkat): Likewise.
21754         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
21755         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
21756         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21757         * doc/posix-functions/renameat.texi (renameat): Likewise.
21758         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21759
21760         openat: fix GNU/Hurd bug in unlinkat
21761         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
21762         broken.
21763         * doc/posix-functions/unlink.texi (unlink): Document this.
21764         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
21765
21766         fdopendir: fix GNU/Hurd bug
21767         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
21768         allowing non-directory fds.
21769         * lib/fdopendir.c (rpl_fdopendir): Work around it.
21770         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21771         * modules/dirent (Makefile.am): Substitute it.
21772         * lib/dirent.in.h (fdopendir): Declare replacement.
21773         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
21774         * tests/test-fdopendir.c (main): Test something other than
21775         /dev/null, since on Hurd that behaves like a directory.
21776
21777         test-symlink: port to GNU/Hurd
21778         * tests/test-symlink.h (test_symlink): Relax expected errno.
21779
21780         doc: tweak more cygwin information
21781         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
21782         now compatible with glibc.
21783         * doc/posix-functions/getopt.texi (getopt): Likewise.
21784
21785         getopt-gnu: add another test
21786         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
21787         guarantee behavior relied on by m4.
21788         * tests/test-getopt.c (main): Use it.
21789         * modules/getopt-posix-tests (Depends-on): Add setenv.
21790         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
21791
21792         getopt: fix compilation on darwin
21793         * lib/getopt.in.h (includes): Leave breadcrumbs during system
21794         include.
21795         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
21796         Reported by Ludovic Courtès.
21797
21798 2009-10-06  Bruno Haible  <bruno@clisp.org>
21799
21800         * modules/size_max (Description): Discourage its use.
21801         Reported by Simon Josefsson.
21802
21803 2009-10-06  Jim Meyering  <meyering@redhat.com>
21804
21805         linkat: avoid compilation failure
21806         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
21807
21808 2009-10-05  Eric Blake  <ebb9@byu.net>
21809
21810         linkat: support Linux 2.6.17
21811         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
21812         linkat on Linux, but allow cache variable override.
21813         * lib/linkat.c (rpl_linkat): Define override.
21814         * modules/linkat (Depends-on): Add symlinkat.
21815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
21816         * modules/unistd (Makefile.am): Substitute it.
21817         * lib/unistd.in.h (linkat): Declare replacement.
21818         Reported by Pádraig Brady.
21819
21820         quotearg: port test to systems with C.UTF-8 locale
21821         * tests/test-quotearg.c (struct result_strings): Add another
21822         member, differentiating between C.ASCII and C.UTF-8 handling.
21823         (compare_strings): Add parameter.
21824         (main): Adjust all callers.
21825
21826         getopt: avoid clash with FreeBSD _getopt_internal
21827         * lib/getopt.in.h (_getopt_internal): Override the name.
21828         * lib/getopt_int.h (includes): Pick up any overrides.
21829         Reported by Reuben Thomas.
21830
21831         hash: allow C89 compilation
21832         * lib/hash.c (check_tuning): Move declaration before statement.
21833         Reported by Reuben Thomas.
21834
21835 2009-10-05  Karl Berry  <karl@gnu.org>
21836
21837         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
21838
21839 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
21840             Bruno Haible  <bruno@clisp.org>
21841
21842         * lib/uname.c (uname): Use a table-driven algorithm to compute
21843         Windows NT versions.
21844
21845 2009-10-04  Bruno Haible  <bruno@clisp.org>
21846
21847         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
21848         program_invocation_short_name.
21849         * modules/progname (configure.ac): Test for presence of
21850         program_invocation_short_name.
21851         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
21852
21853 2009-10-04  Bruno Haible  <bruno@clisp.org>
21854
21855         * lib/progname.c (set_program_name): Fix comment.
21856         Reported by Jim Meyering.
21857
21858 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
21859             Bruno Haible  <bruno@clisp.org>
21860
21861         * lib/uname.c: Include <string.h>.
21862         (uname): Do only one call to GetVersionEx in the common case.
21863
21864 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
21865             Bruno Haible  <bruno@clisp.org>
21866
21867         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
21868         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
21869         (uname): Add support for Windows CE and various non-x86 CPU types.
21870
21871 2009-10-03  Bruno Haible  <bruno@clisp.org>
21872
21873         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
21874         invocation to tests/configure.ac.
21875         Reported by Ian Beckwith <ianb@erislabs.net>.
21876
21877 2009-10-02  Eric Blake  <ebb9@byu.net>
21878
21879         fchdir: avoid compiler warning
21880         * lib/fchdir.c (canonicalize_file_name)
21881         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
21882
21883         test-open: support mingw errno values
21884         * tests/test-open.h (test_open): Relax test.
21885         * tests/test-fopen.h (test_fopen): Likewise.
21886         * tests/test-openat-safer.c (main): Likewise.
21887
21888         open: fix opening directory on mingw
21889         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
21890
21891         test-open: on GNU/Hurd, /dev/null is a directory
21892         * tests/test-fopen.h (main): Rename...
21893         (test_fopen): ...to this.  Use a guaranteed non-directory when
21894         confirming open behavior on trailing slash.
21895         * tests/test-openat-safer.c (main): Likewise.
21896         * tests/test-open.h (main): Likewise....
21897         (test_open): ...to this.
21898         * tests/test-fopen.c (main): Adjust caller.
21899         * tests/test-fopen-safer.c (main): Likewise.
21900         * tests/test-open.c (main): Likewise.
21901         * tests/test-fcntl-safer.c (main): Likewise.
21902         Reported by Samuel Thibault.
21903
21904         rename, fchdir: don't ignore chdir failure
21905         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
21906         * lib/rename.c (rpl_rename) [W32]: Likewise.
21907         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
21908         an empty destination directory if source cannot be renamed,
21909         although there is still possibility for failure.
21910         * doc/posix-functions/rename.texi (rename): Document the race.
21911         Reported by Jim Meyering.
21912
21913         maint: cleanup whitespace in recent commits
21914         * lib/rename.c (rpl_rename): Remove tabs.
21915         * tests/test-link.h (test_link): Likewise.
21916         * lib/fchdir.c (get_name): Likewise.
21917         Reported by Jim Meyering.
21918
21919 2009-10-02  Ben Pfaff  <blp@gnu.org>
21920
21921         relocatable-prog-wrapper: Add missing dependency on
21922         double-slash-root.
21923         * modules/relocatable-prog-wrapper: Add dependency.
21924         Reported by Ian Beckwith <ianb@erislabs.net>.
21925
21926 2009-10-02  Eric Blake  <ebb9@byu.net>
21927
21928         renameat: fix Solaris bugs
21929         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
21930         needed fixing.
21931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
21932         * modules/stdio (Makefile.am): Substitute it.
21933         * lib/stdio.in.h (renameat): Declare replacement.
21934         * lib/renameat.c (rpl_renameat): Implement fix.
21935
21936         renameat: new module
21937         * modules/renameat: New file.
21938         * lib/renameat.c (renameat): Likewise.
21939         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
21940         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
21941         * modules/stdio (Makefile.am): Substitute them.
21942         * lib/stdio.in.h (renameat): Declare it.
21943         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21944         * doc/posix-functions/renameat.texi (renameat): Likewise.
21945         * modules/renameat-tests: New test.
21946         * tests/test-renameat.c: Likewise.
21947
21948         rename: fix mingw bugs
21949         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
21950         directory overwrite bugs.
21951
21952         rename: fix another cygwin 1.5 bug
21953         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
21954         checks.
21955         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
21956         unnecessary cygwin workarounds.  Also work around bug with moving
21957         full directory onto an empty one.
21958         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
21959
21960         rename-dest-slash: merge into rename module
21961         * modules/rename-dest-slash (Status): Mark obsolete.
21962         (Depends-on): Add rename.
21963         (Files): Let rename do it all.
21964         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
21965         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
21966         * m4/rename-dest-slash.m4: ...so this file can be deleted.
21967         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
21968         * lib/rename.c (rpl_rename): Update comments.
21969
21970         rename: fix cygwin 1.5.x bugs
21971         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
21972         * lib/rename.c (rpl_rename): Work around them.
21973         * modules/rename (Depends-on): Add same-inode.
21974
21975         rename: fix Solaris 10 bug
21976         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
21977         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
21978         was the only bug.
21979
21980         rename: fix Solaris 9 bug
21981         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
21982         on non-directory.  Avoid calling exit.
21983         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
21984         strdup.
21985         * modules/rename-tests (Depends-on): Drop lstat.
21986         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
21987         (gl_PREREQ_RENAME): Delete unused macro.
21988
21989         rename-dest-slash: fix NetBSD bug
21990         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
21991         links.
21992         * modules/rename-dest-slash (Depends-on): Add same-inode.
21993
21994         rename-tests: new test, exposes several platform bugs
21995         * modules/rename-tests: New file.
21996         * tests/test-rename.h: Likewise.
21997         * tests/test-rename.c: Likewise.
21998         * doc/posix-functions/rename.texi (rename): Improve documentation,
21999         including bugs that will eventually be fixed in gnulib.
22000
22001 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
22002
22003         * lib/uname.c: Include <stdlib.h>
22004         (uname): Assume version info is available.
22005
22006 2009-10-02  Jim Meyering  <meyering@redhat.com>
22007
22008         gnu-web-doc-update: correct --help output
22009         * build-aux/gnu-web-doc-update: Make --help output relevant.
22010
22011         gnu-web-doc-update: add standard options
22012         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
22013
22014         gnu-web-doc-update: New module.
22015         Use this script to automatically update the on-line web documentation
22016         for your GNU project at http://www.gnu.org/software/$pkg/manual/
22017         * modules/gnu-web-doc-update: New file, from coreutils.
22018         * build-aux/gnu-web-doc-update: New script.
22019
22020 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
22021
22022         link: LoadLibrary is not needed.
22023         * lib/link.c: Use GetModuleHandle.
22024
22025 2009-10-01  Eric Blake  <ebb9@byu.net>
22026
22027         getopt: bump serial number
22028         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
22029         change.
22030
22031         tests: tighten link, rmdir, and remove tests
22032         * tests/test-link.h (includes): No need to use <config.h> here.
22033         Clean up if directory hard link was created, otherwise test for
22034         trailing '.'.
22035         * tests/test-linkat.c (main): Simplify.
22036         * tests/test-remove.c (main): Enhance test for trailing '.'.
22037         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22038
22039 2009-10-01  Jim Meyering  <meyering@redhat.com>
22040
22041         maint.mk: requiring "make major" was annoying, for a "minor" release.
22042         What is intended is "stable", to contrast with alpha and beta,
22043         so require "make stable", not "make major".
22044         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
22045         (get_tool_versions): Likewise.
22046         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
22047
22048 2009-09-30  Ben Pfaff  <blp@gnu.org>
22049
22050         Fix broken build of replacement for Windows tmpfile().
22051         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
22052         flags argument added along with the 'mkostemp' module.
22053
22054 2009-09-28  Bruno Haible  <bruno@clisp.org>
22055
22056         Avoid identifier clash with POSIX function 'remove' defined as a macro.
22057         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
22058         to 'remove_elt'.
22059         (gl_list_remove): Update.
22060         * lib/gl_list.c (gl_list_remove): Update.
22061         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
22062         to 'remove_elt'.
22063         (gl_oset_remove): Update.
22064         * lib/gl_list.c (gl_oset_remove): Update.
22065         Reported by Eric Blake.
22066
22067 2009-09-28  Eric Blake  <ebb9@byu.net>
22068
22069         doc: mention yet more cygwin 1.7 status
22070         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
22071         cygwin.
22072         * doc/glibc-functions/execvpe.texi (execvpe): New file.
22073         * doc/gnulib.texi (Glibc unistd.h): Mention it.
22074
22075         argp: fix test failure
22076         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
22077         that are not upper-case.  Pass correct range to tolower.
22078
22079 2009-09-27  Jim Meyering  <meyering@redhat.com>
22080
22081         test-yesno: work around sparc-dash here-document infelicity
22082         Without this change, the literal \177 byte in a here document
22083         would make dash 0.5.5.1-3 access uninitialized memory.
22084         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
22085         Instead, use a marker, "@", and filter through tr to create the desired
22086         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
22087
22088 2009-09-27  Bruno Haible  <bruno@clisp.org>
22089
22090         Disable untested support for new flavours of ACLs on AIX.
22091         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
22092         progress.
22093         * lib/set-mode-acl.c (qset_acl): Likewise.
22094
22095 2008-12-07  Bruno Haible  <bruno@clisp.org>
22096
22097         Add support for new flavours of ACLs on AIX. (Untested.)
22098         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
22099         (file_has_acl): Add support for newer AIX.
22100         * lib/set-mode-acl.c (qset_acl): Likewise.
22101         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
22102         Rainer Tammer <tammer@tammer.net>.
22103
22104 2009-09-26  Eric Blake  <ebb9@byu.net>
22105
22106         argp: fix compilation of getopt
22107         * lib/getopt.in.h (includes): Use different guard than glibc.
22108         Reported by Sergey Poznyakoff.
22109
22110         doc: mention more cygwin 1.7 status
22111         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
22112         bug.
22113         * doc/posix-functions/execl.texi (execl): Likewise.
22114         * doc/posix-functions/execle.texi (execle): Likewise.
22115         * doc/posix-functions/execlp.texi (execlp): Likewise.
22116         * doc/posix-functions/execv.texi (execv): Likewise.
22117         * doc/posix-functions/execve.texi (execve): Likewise.
22118         * doc/posix-functions/execvp.texi (execvp): Likewise.
22119         * doc/glibc-functions/canonicalize_file_name.texi
22120         (canonicalize_file_name): Cygwin 1.7 now provides this.
22121         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
22122         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
22123         on AT_SYMLINK_NOFOLLOW.
22124
22125 2009-09-24  Eric Blake  <ebb9@byu.net>
22126
22127         test-linkat: make test more robust
22128         * tests/test-linkat.c (main): Avoid collision with EEXIST.
22129
22130         getopt: fix inclusion guards for cygwin
22131         * modules/getopt-posix (Depends-on): Add include-next.
22132         (Makefile.am): Substitute more items in replacement header.
22133         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
22134         <getopt.h>.
22135         * lib/getopt.in.h (includes): Use split inclusion guard, and
22136         prefer <getopt.h> over include <unistd.h> when one is present.
22137         (option): Also override name of 'struct option'.
22138
22139         same-inode: revert prior change; it is not yet ready
22140         * NEWS: Undo mention of this change.
22141         * lib/same-inode.h (same-inode.h): Undo tri-state change.
22142         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
22143         * lib/cycle-check.c (cycle_check): Likewise.
22144         * lib/same.c (same_name): Likewise.
22145         * lib/at-func2.c (at_func2): Likewise.
22146
22147 2009-09-23  Eric Blake  <ebb9@byu.net>
22148
22149         linkat: new module
22150         * modules/linkat: New file.
22151         * lib/at-func2.c (at_func2): Likewise.
22152         * lib/linkat.c (linkat): Likewise.
22153         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
22154         * lib/openat-priv.h (at_func2): Add declaration.
22155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
22156         * modules/unistd (Makefile.am): Substitute them.
22157         * lib/unistd.in.h (linkat): Declare it.
22158         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22159         * doc/posix-functions/linkat.texi (linkat): Likewise.
22160         * doc/posix-functions/link.texi (link): Tweak wording.
22161         * tests/test-link.c (main): Move guts...
22162         * tests/test-link.h (test_link): ...into new file.
22163         * modules/linkat-tests: New test.
22164         * tests/test-linkat.c: Likewise.
22165         * modules/link-tests (Files): Ship new file.
22166         (Depends-on): Add stdbool.
22167
22168         dirname: add library-safe mdir_name
22169         * lib/dirname.h (mdir_name): New prototype.
22170         * lib/dirname.c (dir_name): Move guts...
22171         (mdir_name): ...to new function that avoids xalloc_die.
22172
22173         fchdir: another mingw fix
22174         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
22175         * lib/fchdir.c (get_name): New helper method; skips canonicalize
22176         on mingw (where it has not yet been ported), and make it optional
22177         elsewhere.
22178         (_gl_register_fd): Use it.
22179
22180         same-inode: make SAME_INODE tri-state, to port to mingw
22181         * NEWS: Mention this change.
22182         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
22183         st_ino always being 0.
22184         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
22185         * lib/cycle-check.c (cycle_check): Likewise.
22186         * lib/same.c (same_name): Likewise.
22187
22188         lstat: avoid mingw compilation error
22189         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
22190         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
22191         lstat ourselves.
22192         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
22193         was adequate.
22194         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
22195         the checks for lstat.
22196         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
22197
22198         link: fix test failure on Solaris 9
22199         * lib/link.c (rpl_link): Don't assume link will catch bogus
22200         trailing slash on source.
22201
22202         test-symlinkat: enhance test
22203         * tests/test-readlink.c (main): Move guts...
22204         * tests/test-readlink.h (test_readlink): ...into new file.
22205         * tests/test-symlink.c (main): Move guts...
22206         * tests/test-symlink.h (test_symlink): ...into new file.
22207         * tests/test-symlinkat.c (main): Use new files for further
22208         coverage.
22209         (do_symlink, do_readlink): New helper functions.
22210         * modules/symlink-tests (Files): Ship new file.
22211         (Depends-on): Add stdbool.
22212         * modules/readlink-tests (Files): Ship new file.
22213         (Depends-on): Add stdbool.
22214         * modules/symlinkat-tests (Files): Use new files.
22215
22216 2009-09-23  Eric Blake  <ebb9@byu.net>
22217
22218         readlink: document portability issue with symlink length
22219         * doc/posix-functions/lstat.texi (lstat): Mention that some file
22220         systems have bogus st_size on symlinks, and mention the
22221         areadlink-with-size module.
22222         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
22223         * doc/posix-functions/readlink.texi (readlink): Mention the
22224         areadlink module, and ERANGE failure.
22225         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22226         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
22227
22228         readlink: fix Solaris 9 bug with trailing slash
22229         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
22230         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
22231         * doc/posix-functions/readlink.texi (readlink): Document this.
22232         * modules/readlink-tests: New test.
22233         * tests/test-readlink.c: Likewise.
22234
22235         readlink: fix cygwin 1.5.x bug with return type
22236         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
22237         * lib/unistd.in.h (readlink): Use ssize_t.
22238         * lib/readlink.c (readlink): Likewise.
22239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22240         * modules/unistd (Makefile.am): Substitute it.
22241         * lib/unistd.in.h (readlink): Declare replacement.
22242         * doc/posix-functions/readlink.texi (readlink): Document this.
22243
22244         symlink: use throughout gnulib
22245         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
22246         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
22247         symlink is not used.
22248         * modules/symlinkat (Depends-on): Add symlink.
22249         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
22250         * modules/canonicalize-tests (Depends-on): Likewise.
22251         * modules/lstat-tests (Depends-on): Likewise.
22252         * modules/openat-tests (Depends-on): Likewise.
22253         * modules/remove-tests (Depends-on): Likewise.
22254         * modules/rmdir-tests (Depends-on): Likewise.
22255         * modules/unlink-tests (Depends-on): Likewise.
22256         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
22257         * tests/test-canonicalize.c (symlink): Likewise.
22258         * tests/test-fstatat.c (symlink): Likewise.
22259         * tests/test-lstat.c (symlink): Likewise.
22260         * tests/test-remove.c (symlink): Likewise.
22261         * tests/test-rmdir.c (symlink): Likewise.
22262         * tests/test-unlink.c (symlink): Likewise.
22263         * tests/test-unlinkat.c (symlink): Likewise.
22264
22265         symlink: new module, for Solaris 9 bug
22266         * modules/symlink: New file.
22267         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
22268         * lib/symlink.c: Likewise.
22269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
22270         * modules/unistd (Makefile.am): Substitute them.
22271         * lib/unistd.in.h (symlink): Declare replacement.
22272         * MODULES.html.sh (File system functions): Mention it.
22273         * doc/posix-functions/symlink.texi (symlink): Likewise.
22274         * modules/symlink-tests: New test.
22275         * tests/test-symlink.c: Likewise.
22276
22277 2009-09-23  Bruno Haible  <bruno@clisp.org>
22278
22279         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
22280         when needed.
22281         Test case: gnulib-tool --import --with-tests atexit inttypes.
22282         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
22283
22284 2009-09-23  Bruno Haible  <bruno@clisp.org>
22285
22286         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
22287         subcommand, not in a subshell.
22288
22289 2009-09-22  Eric Blake  <ebb9@byu.net>
22290
22291         unistd: sort replacement declarations
22292         * lib/unistd.in.h: Sort declarations.
22293
22294         open, openat: minor optimization
22295         * lib/open.c (open): If open succeeded, len is non-zero.
22296         * lib/openat.c (rpl_openat): Likewise.
22297
22298         link-follow: ensure correct result
22299         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
22300         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
22301         distinguish between possible failures.
22302
22303 2009-09-21  Eric Blake  <ebb9@byu.net>
22304
22305         fts: avoid compiler warning
22306         * lib/fts.c (dirent_inode_sort_may_be_useful)
22307         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
22308
22309 2009-09-19  Bruno Haible  <bruno@clisp.org>
22310
22311         * lib/progreloc.c (canonicalize_file_name): New declaration.
22312
22313 2009-09-19  Eric Blake  <ebb9@byu.net>
22314
22315         link: fix quoting
22316         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
22317
22318         openat: fix openat bugs on Solaris 9
22319         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
22320         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
22321         * modules/openat (Depends-on): Add open.
22322         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
22323         * modules/fcntl-h (Makefile.am): Substitute it.
22324         * lib/fcntl.in.h (openat): Declare replacement.
22325         * doc/posix-functions/openat.texi (openat): Document this.
22326
22327         openat: move fstatat and unlinkat into correct files
22328         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
22329         compiled.
22330         * lib/openat.c (fstatat, unlinkat): Move...
22331         * lib/fstatat.c (fstatat): ...into correct files.
22332         * lib/unlinkat.c (unlinkat): Likewise.
22333
22334         openat: fix unlinkat bugs on Solaris 9
22335         * lib/unlinkat.c (unlinkat): New file.
22336         * modules/openat (Depends-on): Add unlink.
22337         (Files): Distribute it.
22338         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
22339         trailing slash behavior is broken.
22340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22341         * modules/unistd (Makefile.am): Substitute it.
22342         * lib/unistd.in.h (unlinkat): Declare replacement.
22343         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
22344
22345         openat: fix fstatat bugs on Solaris 9
22346         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
22347         stat.
22348         * doc/posix-functions/fstatat.texi (fstatat): Document this.
22349
22350         test-unlinkat: enhance test, to expose Solaris 9 bug
22351         * tests/test-unlink.c (main): Factor guts...
22352         * tests/test-unlink.h (test_rmdir_func): ...into new file.
22353         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
22354         * tests/test-rmdir.c (main): Adjust caller.
22355         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
22356         (unlinker): New helper function.
22357         (rmdirat): Enhance check.
22358         * modules/rmdir-tests (Depends-on): Add stdbool.
22359         * modules/unlink-tests (Depends-on): Likewise.
22360         (Files): Add test-unlink.h.
22361         * modules/openat-tests (Files): Likewise.
22362         (Depends-on): Add unlinkdir.
22363
22364         test-fstatat: new test, to expose Solaris 9 bugs
22365         * tests/test-stat.c (main): Factor guts...
22366         * tests/test-stat.h (test_stat_func): ...into new file.
22367         * tests/test-lstat.c (main): Factor guts...
22368         * tests/test-lstat.h (test_lstat_func): ...into new file.
22369         * tests/test-fstatat.c: New file.
22370         * modules/stat-tests (Files): Add test-stat.h.
22371         * modules/lstat-tests (Files): Add test-lstat.h.
22372         (Depends-on): Add stdbool.
22373         * modules/openat-tests (Depends-on): Add pathmax.
22374         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
22375         (Makefile.am): Run new test.
22376
22377         remove: new module, for mingw and Solaris 9 bugs
22378         * modules/remove: New file.
22379         * lib/remove.c: Likewise.
22380         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
22381         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
22382         * modules/stdio (Makefile.am): Use them.
22383         * lib/stdio.in.h (remove): Declare replacement.
22384         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22385         * doc/posix-functions/remove.texi (remove): Likewise.
22386         * modules/remove-tests: New test.
22387         * tests/test-remove.c: Likewise.
22388
22389         unlink: new module, for Solaris 9 bug
22390         * modules/unlink: New file.
22391         * lib/unlink.c: Likewise.
22392         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
22394         * modules/unistd (Makefile.am): Use them.
22395         * lib/unistd.in.h (stat): Declare replacement.
22396         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22397         * doc/posix-functions/unlink.texi (unlink): Likewise.
22398         * modules/unlink-tests: New test.
22399         * tests/test-unlink.c: Likewise.
22400
22401         lstat: fix Solaris 9 bug
22402         * lib/lstat.c (lstat): Also check for trailing slash on
22403         non-symlink, non-directories.  Use stat module to simplify logic.
22404         * doc/posix-functions/lstat.texi (lstat): Document it.
22405         * modules/lstat-tests (Depends-on): Add errno, same-inode.
22406         (configure.ac): Check for symlink.
22407         * tests/test-lstat.c (main): Add more tests.
22408
22409         stat: add as dependency to other modules
22410         * modules/chown (Depends-on): Add stat.
22411         * modules/euidaccess (Depends-on): Likewise.
22412         * modules/fchdir (Depends-on): Likewise.
22413         * modules/isdir (Depends-on): Likewise.
22414         * modules/link (Depends-on): Likewise.
22415         * modules/lstat (Depends-on): Likewise.
22416         * modules/mkdir-p (Depends-on): Likewise.
22417         * modules/modechange (Depends-on): Likewise.
22418         * modules/open (Depends-on): Likewise.
22419         * modules/readlink (Depends-on): Likewise.
22420         * modules/same (Depends-on): Likewise.
22421
22422         stat: fix Solaris 9 bug
22423         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
22424         slash.
22425         * lib/stat.c (rpl_stat): Work around it.
22426         * doc/posix-functions/stat.texi (stat): Update documentation.
22427
22428         stat: new module, for mingw bug
22429         * modules/stat: New file.
22430         * lib/stat.c: Likewise.
22431         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22432         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22433         * modules/sys_stat (Makefile.am): Use them.
22434         * lib/sys_stat.in.h (stat): Declare replacement.
22435         * lib/openat.c (fstatat): Deal with lstat and stat being function
22436         macros.
22437         * modules/openat (Depends-on): Add inline.
22438         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22439         * doc/posix-functions/stat.texi (stat): Likewise.
22440         * modules/stat-tests: New test.
22441         * tests/test-stat.c: Likewise.
22442
22443 2009-09-19  Jim Meyering  <meyering@redhat.com>
22444
22445         syntax-check: detect unnecessary inclusion of canonicalize.h
22446         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
22447
22448 2009-09-19  Eric Blake  <ebb9@byu.net>
22449
22450         canonicalize-lgpl: adjust clients to use correct header
22451         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
22452         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
22453         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
22454         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
22455         * lib/progreloc.c (includes): Likewise.
22456
22457 2009-09-19  Jim Meyering  <meyering@redhat.com>
22458
22459         test-posixtm.c: correct a comment
22460         * tests/test-posixtm.c: Correct first-line comment.
22461         Spotted by Eric Blake.
22462
22463 2009-09-16  Jim Meyering  <meyering@redhat.com>
22464
22465         posixtm-tests: make T const-correct; add a test case
22466         * tests/test-posixtm.c (T): Declare const.
22467         Add a test for -(2^31+1).
22468         Remove useless can-succeed-only-in-2002 test.
22469
22470         posixtm-tests: adjust the sole failing test
22471         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
22472         expected output matches what mktime now produces.  Cross-checked via
22473         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
22474
22475         posixtm: move #ifdef'd tests into a new module
22476         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
22477         * tests/test-posixtm.c: ... this new file.
22478         * modules/posixtm-tests: New module.
22479
22480 2009-09-19  Eric Blake  <ebb9@byu.net>
22481
22482         openat: simplify use of at-func.c
22483         * lib/at-func.c (includes): Include prerequisites here, to
22484         simplify requirements on client files.
22485         * lib/openat-priv.h: Add double-inclusion guard.
22486         * lib/faccessat.c (includes): Simplify.
22487         * lib/fchmodat.c (includes): Likewise.
22488         * lib/fchownat.c (includes): Likewise.
22489         * lib/mkdirat.c (includes): Likewise.
22490         * lib/mkfifoat.c (includes): Likewise.
22491         * lib/symlinkat.c (includes): Likewise.
22492
22493         openat: allow return of fd 0
22494         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
22495         * modules/save-cwd (Depends-on): Replace fcntl-safer with
22496         unistd-safer.
22497         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
22498         <fcntl.h>; this module does not leak fds.
22499         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
22500         must be allowed to return 0, leaving openat_safer to add the
22501         safety.
22502         (openat_permissive): Avoid writing to just-opened fd 2 if
22503         restoring the current directory fails.
22504         * lib/openat-die.c (openat_restore_fail): Add comment.
22505         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
22506         (save_cwd): Guarantee safe fd, but without use of open_safer.
22507         * tests/test-openat.c: New test.
22508         * modules/openat-tests (Files, Makefile.am): Distribute and build
22509         new file.
22510
22511         relocatable-prog-wrapper: fix build
22512         * modules/relocatable-prog-wrapper (Files): Update name of
22513         canonicalize m4 file, broken on 2009-09-17.
22514         Reported by emad hajjar <aleppos@hotmail.com>.
22515
22516 2009-09-19  Bruno Haible  <bruno@clisp.org>
22517
22518         * lib/safe-alloc.h: Use the standard header with GPL copyright.
22519         * lib/safe-alloc.c: Likewise.
22520         Reported by Ian Beckwith <ianb@erislabs.net>.
22521
22522 2009-09-18  Bruno Haible  <bruno@clisp.org>
22523
22524         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
22525         Reported by <erobles@sensacd.com.mx>.
22526
22527 2009-09-17  Eric Blake  <ebb9@byu.net>
22528
22529         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
22530         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
22531         slashes when checking if last component is missing.
22532         * tests/test-canonicalize.c (main): Test this.
22533
22534         canonicalize, canonicalize-lgpl: honor // if distinct from /
22535         * modules/canonicalize (Files): Add double-slash-root.m4.
22536         * modules/canonicalize-lgpl (Files): Likewise.
22537         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
22538         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
22539         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
22540         fallback definition.
22541         (canonicalize_filename_mode): Use it to protect //.
22542         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
22543         (__realpath): Likewise.
22544         * tests/test-canonicalize.c (main): Test this.
22545         * tests/test-canonicalize-lgpl.c (main): Likewise.
22546         * modules/canonicalize-tests (Depends-on): Add same-inode.
22547         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
22548
22549         canonicalize-lgpl: fix glibc bug with trailing slash
22550         * m4/canonicalize-lgpl.m4: Move contents...
22551         * m4/canonicalize.m4: ...here.
22552         (gl_CANONICALIZE_LGPL): Factor realpath check...
22553         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
22554         glibc 2.3.5 bug, fixed 2005-04-27.
22555         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
22556         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
22557         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
22558         * modules/canonicalize-lgpl (Files): Manage file rename.
22559         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
22560         * modules/stdlib (Makefile.am): Substitute witness.
22561         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
22562         is needed.
22563         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
22564         replacement is required.
22565         * lib/canonicalize.c (canonicalize_file_name): Likewise.
22566         * doc/glibc-functions/canonicalize_file_name.texi
22567         (canonicalize_file_name): Document this.
22568         * doc/posix-functions/realpath.texi (realpath): Likewise.
22569
22570         canonicalize-lgpl: reject non-directory with trailing slash
22571         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
22572         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
22573         catches failures in glibc 2.3.5.
22574         * tests/test-canonicalize.c (main): Likewise.
22575
22576         canonicalize-lgpl: use native realpath if it works
22577         * lib/canonicalize-lgpl.c (realpath): Guard with
22578         FUNC_REALPATH_WORKS.
22579         * lib/stdlib.in.h (realpath): Make declaration optional based on
22580         HAVE_REALPATH.
22581         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
22582         native realpath works.
22583         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
22584         * modules/stdlib (Makefile.am): Substitute witness.
22585
22586         canonicalize, canonicalize-lgpl: use <stdlib.h>
22587         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
22588         (Include): Mention <stdlib.h>.
22589         (configure.ac): Mention functions we provide.
22590         * modules/canonicalize (configure.ac): Likewise.
22591         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
22592         realpath if canonicalize_file_name is missing.
22593         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
22594         * modules/stdlib (Makefile.am): Substitute witnesses.
22595         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
22596         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
22597         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
22598         * NEWS: Document this.
22599         * doc/glibc-functions/canonicalize_file_name.texi
22600         (canonicalize_file_name): Likewise.
22601         * doc/posix-functions/realpath.texi (realpath): Likewise.
22602         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
22603
22604         test-canonicalize: consolidate into single C program
22605         * tests/test-canonicalize.sh: Delete; move setup into...
22606         * tests/test-canonicalize.c (main): ...the program, making it
22607         easier to run in debugger.  Add some tests.
22608         * modules/canonicalize-tests (Files): Remove unused file.
22609         (Depends-on): Add progname.
22610         (configure.ac, Makefile.am): Simplify.
22611
22612         test-canonicalize-lgpl: consolidate into single C program
22613         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
22614         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
22615         easier to run in debugger.  Add some tests.
22616         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
22617         (configure.ac, Makefile.am): Simplify.
22618
22619         canonicalize: avoid resolvepath
22620         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
22621         unnecessary checks.
22622         * lib/canonicalize.c (includes): Simplify.
22623         (canonicalize_file_name): Drop resolvepath implementation.
22624         * modules/canonicalize (Depends-on): Drop filenamecat.
22625
22626         canonicalize: don't lose errno
22627         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
22628         over calls to free.
22629
22630         canonicalize: simplify errno handling
22631         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
22632         assignment.
22633
22634         canonicalize, canonicalize-lgpl: update module dependencies
22635         * modules/canonicalize (Depends-on): Add extensions, lstat,
22636         pathmax, stdlib.
22637         (Files): Drop pathmax.h.
22638         (configure.ac): Adjust macro name.
22639         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
22640         lstat, stdlib, sys_stat.
22641         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
22642         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
22643         extensions.
22644         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
22645         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
22646         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
22647         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
22648         declaration, if available.
22649         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
22650         we can rely on the readlink module.
22651         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
22652         (includes): Use <unistd.h> unconditionally.
22653
22654 2009-09-17  Eric Blake  <ebb9@byu.net>
22655
22656         maint: make Include sections of modules consistent
22657         * modules/alloca: Use only header name; no need to list #include.
22658         * modules/alloca-opt: Likewise.
22659         * modules/arpa_inet: Likewise.
22660         * modules/canon-host: Likewise.
22661         * modules/configmake: Likewise.
22662         * modules/dirent: Likewise.
22663         * modules/eealloc: Likewise.
22664         * modules/environ: Likewise.
22665         * modules/fchdir: Likewise.
22666         * modules/fcntl: Likewise.
22667         * modules/fcntl-h: Likewise.
22668         * modules/gethrxtime: Likewise.
22669         * modules/gettime: Likewise.
22670         * modules/ignore-value: Likewise.
22671         * modules/inet_ntop: Likewise.
22672         * modules/inet_pton: Likewise.
22673         * modules/inttypes: Likewise.
22674         * modules/isnand-nolibm: Likewise.
22675         * modules/isnanf-nolibm: Likewise.
22676         * modules/mbchar: Likewise.
22677         * modules/mbfile: Likewise.
22678         * modules/mbiter: Likewise.
22679         * modules/mbuiter: Likewise.
22680         * modules/netdb: Likewise.
22681         * modules/netinet_in: Likewise.
22682         * modules/nproc: Likewise.
22683         * modules/pagealign_alloc: Likewise.
22684         * modules/poll: Likewise.
22685         * modules/printf-frexp: Likewise.
22686         * modules/pthread: Likewise.
22687         * modules/putenv: Likewise.
22688         * modules/random_r: Likewise.
22689         * modules/relocatable-prog: Likewise.
22690         * modules/search: Likewise.
22691         * modules/select: Likewise.
22692         * modules/selinux-h: Likewise.
22693         * modules/settime: Likewise.
22694         * modules/signal: Likewise.
22695         * modules/size_max: Likewise.
22696         * modules/socklen: Likewise.
22697         * modules/ssize_t: Likewise.
22698         * modules/stdarg: Likewise.
22699         * modules/stdbool: Likewise.
22700         * modules/stddef: Likewise.
22701         * modules/stdint: Likewise.
22702         * modules/stdio: Likewise.
22703         * modules/stdlib: Likewise.
22704         * modules/string: Likewise.
22705         * modules/strings: Likewise.
22706         * modules/sys_file: Likewise.
22707         * modules/sys_ioctl: Likewise.
22708         * modules/sys_select: Likewise.
22709         * modules/sys_socket: Likewise.
22710         * modules/sys_stat: Likewise.
22711         * modules/sys_time: Likewise.
22712         * modules/sys_times: Likewise.
22713         * modules/sys_utsname: Likewise.
22714         * modules/sys_wait: Likewise.
22715         * modules/sysexits: Likewise.
22716         * modules/time: Likewise.
22717         * modules/times: Likewise.
22718         * modules/tmpfile: Likewise.
22719         * modules/trim: Likewise.
22720         * modules/unistd: Likewise.
22721         * modules/wchar: Likewise.
22722         * modules/wctype: Likewise.
22723
22724 2009-09-17  Bruno Haible  <bruno@clisp.org>
22725
22726         Make getdate.y compile on QNX and NetBSD 5 / i386.
22727         * m4/getdate.m4 (gl_GETDATE): Conditionally define
22728         TIME_T_FITS_IN_LONG_INT.
22729         * lib/getdate.y (long_time_t): New type.
22730         (relative_time): Change type of 'seconds' field to long_time_t.
22731         (get_date): Update types of local variables. Check against overflow
22732         during conversion from long_time_t to time_t.
22733         Reported by Matt Kraai <kraai@ftbfs.org>
22734         and Hasso Tepper <hasso@netbsd.org>.
22735
22736 2009-09-17  Bruno Haible  <bruno@clisp.org>
22737
22738         * modules/COPYING: Update copyright years.
22739         * modules/README: Likeiwse.
22740         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
22741         Reported by Ian Beckwith <ianb@erislabs.net>.
22742
22743 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
22744
22745         * users.txt: Update references for gnuit package.
22746
22747 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
22748
22749         * m4/getdelim.m4: Fix typo in copyright line.
22750
22751 2009-09-17  Bruno Haible  <bruno@clisp.org>
22752
22753         * lib/atoll.c: Use the standard header with GPL copyright.
22754         * lib/argz.in.h: Likewise.
22755         * lib/glob.c: Likewise.
22756         * lib/glob-libc.h: Likewise.
22757         * lib/random_r.c: Likewise.
22758         * lib/siglist.h: Likewise.
22759         * lib/strsignal.c: Likewise.
22760         Reported by Ian Beckwith <ianb@erislabs.net>.
22761
22762 2009-09-17  Eric Blake  <ebb9@byu.net>
22763
22764         rmdir: ensure correct dependency order
22765         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
22766
22767 2009-09-17  Bruno Haible  <bruno@clisp.org>
22768
22769         Disable assertion that fails on NetBSD 5 / i386.
22770         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
22771         Reported by Sam Steingold <sds@gnu.org>
22772         and Hasso Tepper <hasso@netbsd.org>.
22773
22774 2009-09-16  Eric Blake  <ebb9@byu.net>
22775
22776         unlinkdir: port to mingw
22777         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
22778         on which no one can unlink a directory.
22779
22780         stdlib: sort witness names
22781         * modules/stdlib (Makefile.am): Sort replacements.
22782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
22783         * lib/stdlib.in.h: Likewise.
22784
22785         parse-duration-tests: avoid link failure
22786         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
22787         LIBINTL.
22788         Reported by Tom G. Christensen.
22789
22790         openat-tests: ensure unlinkat behaves like rmdir
22791         * tests/test-rmdir.c (main): Factor guts...
22792         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
22793         * modules/rmdir-tests (Files): Ship new file.
22794         * modules/openat-tests: New test.
22795         * tests/test-unlinkat.c: Likewise.
22796
22797         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
22798         * modules/rmdir-errno (Status, Notice): Now obsolete.
22799
22800         rmdir: work around cygwin 1.5.x and mingw bugs
22801         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
22802         * lib/rmdir.c (rmdir): Work around it.
22803         * modules/rmdir (Status, Notice): No longer obsolete.
22804         (Files): Add dos.m4.
22805         (Depends-on): Add unistd.
22806         (configure.ac): Set witnesses.
22807         (License): Relax to LGPLv2+.
22808         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
22809         * modules/unistd (Makefile.am): Substitute witnesses.
22810         * lib/unistd.in.h (rmdir): Declare replacement.
22811         * doc/posix-functions/rmdir.texi (rmdir): Document this.
22812         * modules/rmdir-tests: New tests.
22813         * tests/test-rmdir.c: Likewise.
22814
22815 2009-09-15  Eric Blake  <ebb9@byu.net>
22816
22817         fchdir: improve use of replacement functions
22818         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
22819         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
22820         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
22821         REPLACE_CLOSEDIR.
22822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
22823         * modules/sys_stat (Makefile.am): Substitute correct witness.
22824         * modules/dirent (Makefile.am): Likewise.
22825         * modules/unistd (Makefile.am): Likewise.
22826         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
22827         * lib/unistd.in.h (dup): Likewise.
22828         * lib/sys_stat.in.h (fstat): Likewise.
22829
22830         maint: ignore gnulib-tool temp files
22831         * .gitignore: Ignore files created during gnulib-tool --test.
22832
22833 2009-09-13  Jim Meyering  <meyering@redhat.com>
22834
22835         posixtm: don't reject a time that specify "60" as the number of seconds
22836         * lib/posixtm.c (posixtime): The code to reject invalid dates
22837         would also reject a time specified with the .60 suffix.
22838         But POSIX allows that, in order to accommodate leap seconds.
22839         So don't reject it.
22840         (main): Adjust tests accordingly.
22841         * modules/posixtm (Depends-on): Add stpcpy.
22842
22843 2009-09-11  Jim Meyering  <meyering@redhat.com>
22844
22845         announce-gen: include [$release_type] in emitted Subject:
22846         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
22847         e.g., [stable] in the emitted Subject: line.
22848
22849 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22850
22851         Remove obsolete macros from several modules.
22852         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
22853         obsolete Autoconf macros with their modern counterparts.
22854         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
22855         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
22856         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
22857         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
22858         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
22859         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22860         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22861         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22862         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22863         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
22864         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
22865         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22866         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
22867         * m4/sockets.m4 (gl_SOCKETS): Likewise.
22868         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
22869         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
22870         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
22871         * m4/time_r.m4 (gl_TIME_R): Likewise.
22872         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22873         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
22874         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
22875
22876         Fix copyright header in build-aux scripts.
22877         * build-aux/git-version-gen: Fix copyright header to match GPLv3
22878         recommendation.
22879         * build-aux/ncftpput-ftp: Likewise.
22880         * build-aux/update-copyright: Likewise.
22881
22882 2009-09-09  Eric Blake  <ebb9@byu.net>
22883
22884         test-link: allow Linux choice of errno
22885         * tests/test-link.c (main): Relax test for alternate error.
22886
22887         strndup: fix improper m4 caching
22888         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
22889         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
22890         (gl_PREREQ_STRNDUP): Delete.
22891         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
22892         * modules/string (Makefile.am): Substitute it.
22893         * lib/string.in.h (strndup): Modernize prototype.
22894
22895         getcwd: port to mingw
22896         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
22897         different from the POSIX assumptions made throughout the getcwd
22898         module; fortunately, the mingw getcwd does not need replacement.
22899         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
22900         * modules/getcwd-tests: New test.
22901         * tests/test-getcwd.c: Likewise.
22902
22903         link: fix platform bugs
22904         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
22905         * lib/link.c (link): Work around them.  Fix related mingw bug.
22906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
22907         * modules/unistd (Makefile.am): Substitute it.
22908         * lib/unistd.in.h (link): Declare replacement.
22909         * doc/posix-functions/link.texi (link): Document this.
22910         * modules/link (Depends-on): Add strdup-posix, sys_stat.
22911
22912         test-link: consolidate into single C program, test more cases
22913         * tests/test-link.sh: Delete.
22914         * tests/test-link.c: Test more error conditions.  Exposes bugs on
22915         at least Cygwin and Solaris.
22916         * modules/link-tests (Files): Remove unused file.
22917         (Depends-on): Add errno, sys_stat.
22918         (Makefile.am): Simplify.
22919
22920 2009-09-08  Bruno Haible  <bruno@clisp.org>
22921
22922         Work around towlower, towupper bug on mingw.
22923         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
22924         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
22925         * doc/posix-functions/towlower.texi: Mention the mingw bug.
22926         * doc/posix-functions/towupper.texi: Likewise.
22927         Reported by Eric Blake.
22928
22929 2009-09-08  Jim Meyering  <meyering@redhat.com>
22930
22931         build: don't try to run autoheader if we don't use it
22932         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
22933         is not used in configure.ac.
22934
22935 2009-09-08  Eric Blake  <ebb9@byu.net>
22936
22937         euidaccess: fix compilation error
22938         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
22939
22940         rawmemchr: relax license
22941         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
22942         okay.
22943         Reported by Jim Meyering.
22944
22945         mkfifoat: new module
22946         * modules/mkfifoat: New file.
22947         * lib/mkfifoat.c: Likewise.
22948         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
22949         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22950         * modules/sys_stat (Makefile.am): Use them.
22951         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
22952         * MODULES.html.sh (File system functions): Mention module.
22953         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
22954         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
22955         * modules/mkfifoat-tests: New test.
22956         * tests/test-mkfifoat.c: Likewise.
22957
22958         strchrnul: relax license
22959         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
22960         okay.
22961         Reported by Jim Meyering.
22962
22963 2009-09-08  Eric Blake  <ebb9@byu.net>
22964
22965         fstatat: fix compilation on Solaris
22966         * lib/fstatat.c (includes): Add fcntl.h.
22967         Reported by Pádraig Brady.
22968
22969 2009-09-07  Eric Blake  <ebb9@byu.net>
22970
22971         rename: modernize replacement
22972         * modules/rename (Depends-on): Add stdio.
22973         (configure.ac): Declare witness.
22974         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
22975         stdio take care of replacement.
22976         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
22977         * modules/stdio (Makefile.am): Substitute them.
22978         * lib/stdio.in.h (rename): Declare replacement.
22979         * lib/rename.c (includes): Allow cross-compilation to non-windows
22980         machines.
22981         * doc/posix-functions/rename.texi (rename): Improve
22982         documentation.
22983
22984         stdio: sort witness names
22985         * modules/stdio (Makefile.am): Sort replacements.
22986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22987         * lib/stdio.in.h: Likewise.
22988
22989         getcwd: minor cleanups
22990         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
22991         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
22992
22993         openat: provide more convenience names
22994         * modules/faccessat (configure.ac): Add C witness.
22995         * lib/unistd.in.h (readlinkat): Fix typo.
22996         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
22997         convenience wrappers.
22998         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
22999         wrappers in syntax checks.
23000
23001 2009-09-06  Eric Blake  <ebb9@byu.net>
23002
23003         doc: fix comments in recent patches
23004         * lib/faccessat.c: Mention correct function.
23005         * lib/fchmodat.c: Likewise.
23006         * lib/fchownat.c: Likewise.
23007         * lib/symlinkat.c: Likewise.
23008         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
23009         constants.
23010
23011         faccessat, symlinkat: continue cleanup of previous patch
23012         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
23013         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
23014         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
23015         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
23016         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
23017         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
23018         set.
23019
23020 2009-09-06  Bruno Haible  <bruno@clisp.org>
23021
23022         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
23023         (fstatat): Declare if GNULIB_FSTATAT is set.
23024         (mkdirat): Declare if GNULIB_MKDIRAT is set.
23025         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
23026         (unlinkat): Declare if GNULIB_UNLINKAT is set.
23027         * modules/fcntl-h (Files): Remove m4/openat.m4.
23028         * modules/sys_stat (Files): Remove m4/openat.m4.
23029         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
23030         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
23031         * modules/unistd (Files): Remove m4/openat.m4.
23032         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
23033         GNULIB_OPENAT.
23034         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
23035         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
23036         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
23037         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
23038         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
23039         gl_OPENAT_DEFAULTS.
23040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
23041         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
23042         Don't require gl_OPENAT_DEFAULTS.
23043         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
23044         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
23045         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
23046         (gl_OPENAT_DEFAULTS): Remove macro.
23047
23048 2009-09-06  Bruno Haible  <bruno@clisp.org>
23049
23050         * modules/openat (configure.ac): Remove unneeded witness.
23051
23052 2009-09-06  Bruno Haible  <bruno@clisp.org>
23053
23054         Set errno to ENOSYS when a function is entirely unsupported.
23055         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
23056         EOPNOTSUPP.
23057         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
23058         * modules/chown (Depends-on): Remove errno.
23059
23060 2009-09-06  Bruno Haible  <bruno@clisp.org>
23061
23062         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
23063
23064 2009-09-06  Bruno Haible  <bruno@clisp.org>
23065
23066         * lib/sys_stat.in.h: Fix preprocessor command indentation.
23067
23068 2009-09-06  Ben Pfaff  <blp@gnu.org>
23069             Bruno Haible  <bruno@clisp.org>
23070
23071         Work around a glibc bug in strtok_r.
23072         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
23073         Undefine if UNDEFINE_STRTOK_R is set.
23074         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
23075         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23076         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
23077         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
23078         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
23079         UNDEFINE_STRTOK_R.
23080         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
23081
23082 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23083
23084         exclude: minor fix
23085         * lib/exclude.c: Include wctype.h
23086
23087 2009-09-06  Akim Demaille  <demaille@gostai.com>
23088
23089         bootstrap: improve error message
23090         * build-aux/bootstrap (find_tool): Upon failure, report the list
23091         of candidates.
23092         Honor the initial value of the envvar.
23093
23094 2009-09-05  Eric Blake  <ebb9@byu.net>
23095
23096         symlinkat: new module
23097         * modules/symlinkat: New file.
23098         * lib/symlinkat.c: Likewise.
23099         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
23100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23101         * modules/unistd (Makefile.am): Use them.
23102         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
23103         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
23104         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
23105         * MODULES.html.sh (File system functions): Mention module.
23106         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23107         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23108         * modules/symlinkat-tests: New test.
23109         * tests/test-symlinkat.c: Likewise.
23110
23111         test-openat-safer: add more checks
23112         * tests/test-openat-safer.c (main): Check more code paths.
23113
23114 2009-09-05  Jim Meyering  <meyering@redhat.com>
23115
23116         syntax-check: detect unnecessary inclusion of openat.h
23117         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
23118
23119 2009-09-05  Bruno Haible  <bruno@clisp.org>
23120
23121         Support towlower, towupper.
23122         * doc/posix-functions/towlower.texi: Mention module wctype.
23123         * doc/posix-functions/towupper.texi: Likewise.
23124         * lib/wctype.in.h (towlower, towupper): New functions.
23125         * tests/test-wctype.c: Include stdio.h, stdlib.h.
23126         (ASSERT): New macro.
23127         (e): New variable.
23128         (main): Test also towlower, towupper. Test WEOF argument.
23129         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23130
23131 2009-09-05  Bruno Haible  <bruno@clisp.org>
23132
23133         Fix conversion behaviour when the input is invalid.
23134         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
23135         mark occurring in first pass of indirect conversion.
23136         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
23137         input.
23138         Found by clang's static analyzer.
23139
23140 2009-09-05  Bruno Haible  <bruno@clisp.org>
23141
23142         * tests/test-striconveh.c (main): Test indirect conversion on platforms
23143         where direct conversion is possible.
23144
23145 2009-09-04  Eric Blake  <ebb9@byu.net>
23146
23147         openat: fail with ENOENT on empty name
23148         * lib/openat-proc.c (openat_proc_name): Special-case the empty
23149         buffer.
23150
23151         link-follow: fix logic bug in prior patch
23152         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
23153         reversed sense of yes and no in prior patch.  Avoid confusing
23154         compilation failure with desired semantics.
23155
23156         link-follow: accomodate mingw and cross-compilation
23157         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
23158         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
23159         cross-compilation results to -1, to make linkat easier to
23160         implement when cross-compiling.  Trivially support mingw.
23161         * modules/link-follow (configure.ac): Call new name.
23162         * NEWS: Mention this.
23163
23164 2009-09-03  Eric Blake  <ebb9@byu.net>
23165
23166         faccessat: compile replacement
23167         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
23168         needed.
23169
23170         fts: fix compilation error
23171         * lib/fts.c (includes): Re-add "openat.h", for
23172         openat_needs_fchdir.
23173
23174         faccessat: new module
23175         * modules/faccessat: New file.
23176         * lib/faccessat.c: Likewise.
23177         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
23178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23179         * modules/unistd (Makefile.am): Use it.
23180         * lib/unistd.in.h (faccessat): Declare it.
23181         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
23182         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
23183         * MODULES.html.sh (File system functions): Mention it.
23184         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
23185         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
23186
23187         euidaccess: prefer POSIX over non-standard implementation
23188         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
23189         * lib/euidaccess.c (euidaccess): Use it if available.
23190
23191         openat: make template easier to use
23192         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
23193         AT_FUNC_F2 to be undefined.
23194         (VALIDATE_FLAG): New macro; use it to reject bad flags.
23195         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
23196         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
23197         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
23198         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
23199         Likewise.
23200         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
23201         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
23202         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
23203         Likewise.
23204
23205         openat: declare in POSIX headers
23206         * NEWS: Mention this.
23207         * modules/openat (configure.ac): Declare witnesses.
23208         (Depends-on): Add fcntl-h, sys_stat, unistd.
23209         (Include): Mention correct headers.
23210         * modules/fcntl-h (Depends-on): Add link-warning.
23211         (Files): Add openat.m4.
23212         (Makefile.am): Substitute witnesses.
23213         * modules/sys_stat (Files, Makefile.am): Likewise.
23214         * modules/unistd (Files, Makefile.am): Likewise.
23215         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
23216         (gl_OPENAT_DEFAULTS): New macro.
23217         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
23218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
23219         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
23220         (SYS_STAT_H): Remove unused variable.
23221         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
23222         * lib/fcntl--.h (includes): Remove unneeded header.
23223         * lib/openat-safer.c (includes): Likewise.
23224         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
23225         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
23226         appropriate headers.
23227         (__OPENAT_PREFIX): Delete.
23228         * lib/fcntl.in.h (openat): Provide declaration.
23229         (AT_FDCWD): Fix Solaris bug.
23230         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
23231         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
23232         * lib/fchmodat.c (includes):  Adjust to find declaration.
23233         * lib/fchownat.c (includes): Likewise.
23234         * lib/mkdirat.c (includes): Likewise.
23235         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
23236         still visible.
23237
23238 2009-09-02  Eric Blake  <ebb9@byu.net>
23239
23240         errno: use consistently
23241         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
23242         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
23243         * lib/canonicalize.c (ELOOP): Likewise.
23244         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
23245         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
23246         * lib/lchown.c (EOPNOTSUPP): Likewise.
23247         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
23248         * lib/savewd.c (ESTALE): Likewise.
23249         * lib/settime.c (ENOSYS): Likewise.
23250         * lib/utimens.c (ENOSYS): Likewise.
23251         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
23252         * lib/chdir-safer.c (ELOOP): Likewise.
23253         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
23254         * modules/c-stack (Depends-on): Add errno.
23255         * modules/canonicalize (Depends-on): Likewise.
23256         * modules/chdir-safer (Depends-on): Likewise.
23257         * modules/fdopendir (Depends-on): Likewise.
23258         * modules/inet_ntop (Depends-on): Likewise.
23259         * modules/inet_pton (Depends-on): Likewise.
23260         * modules/lchown (Depends-on): Likewise.
23261         * modules/openat (Depends-on): Likewise.
23262         * modules/savewd (Depends-on): Likewise.
23263         * modules/settime (Depends-on): Likewise.
23264         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
23265
23266         fts: avoid leaking fds
23267         * modules/fts (Depends-on): Add cloexec.
23268         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
23269         flag.
23270
23271         fts: make directory fds more robust
23272         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
23273         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
23274
23275         backupfile, chdir-long, fts, savedir: make safer
23276         * lib/backupfile.c (includes): Use "dirent--.h", since
23277         numbered_backup can write to stderr during readdir.
23278         * lib/savedir.c (includes): Likewise.
23279         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
23280         emulation can write to stderr on failure.
23281         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
23282         * lib/getcwd.c: Document why opendir_safer is unused.
23283         * lib/glob.c: Likewise.
23284         * lib/scandir.c: Likewise.
23285         * lib/openat-proc.c: Likewise, for open_safer.
23286         * modules/backupfile (Depends-on): Add dirent-safer.
23287         * modules/savedir (Depends-on): Likewise.
23288         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
23289         * modules/chdir-long (Depends-on): Add openat-safer.
23290
23291         openat-safer: new module
23292         * modules/openat-safer: New file.
23293         * lib/openat-safer.c: Likewise.
23294         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
23295         * lib/fcntl-safer.h (openat_safer): Declare.
23296         * lib/fcntl--.h (openat): Override.
23297         * MODULES.html.sh (File descriptor based I/O): Mention it.
23298         * lib/openat.h: Add double-inclusion guards.
23299         * lib/openat.c (includes): Only include "fcntl-safer.h", not
23300         "fcntl--.h", so we can implement openat.
23301         * modules/openat-safer-tests: New test.
23302         * tests/test-openat-safer.c: New file.
23303
23304         dirent-safer: new module
23305         * modules/dirent-safer: New file.
23306         * lib/dirent--.h: Likewise.
23307         * lib/dirent-safer.h: Likewise.
23308         * lib/opendir-safer.c: Likewise.
23309         * m4/dirent-safer.m4: Likewise.
23310         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
23311         * modules/dirent-safer-tests: New test.
23312         * tests/test-dirent-safer.c: New file.
23313         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
23314
23315         fdopendir: optimize on mingw
23316         * lib/unistd.in.h (_gl_directory_name): New prototype.
23317         * lib/fchdir.c (_gl_directory_name): Implement it.
23318         (fchdir): Use it to simplify implementation.
23319         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
23320         fchdir, when available, to avoid calling [f]chdir().
23321
23322         fdopendir: split into its own module
23323         * lib/openat.c (fdopendir): Move...
23324         * lib/fdopendir.c: ...into new file.
23325         * modules/fdopendir: New module.
23326         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
23327         * modules/openat (Depends-on): Add fdopendir.
23328         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
23329         fdopendir here.
23330         * modules/savedir (Depends-on): Only need fdopendir, not full
23331         openat.
23332         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
23333         * lib/openat.h (fdopendir): Drop prototype.
23334         * lib/dirent.in.h (fdopendir): Provide prototype.
23335         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
23336         * modules/dirent (Makefile.am): Substitute them.
23337         * MODULES.html.sh (File system functions): Mention it.
23338         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
23339         * modules/fdopendir-tests: New file.
23340         * tests/test-fdopendir.c: Likewise.
23341
23342         fchdir: use more consistent macro convention
23343         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
23344         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
23345         REPLACE_FCHDIR, rather than relying on config.h macros.
23346         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
23347         inside a single make-time REPLACE_FCHDIR block, rather than using
23348         the config.h FCHDIR_REPLACEMENT.
23349         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
23350         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
23351         Manage fstat replacement.
23352         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
23353         REPLACE_FCHDIR.
23354         * modules/sys_stat (Files): Add m4/unistd_h.m4.
23355         (Makefile.am): Substitute REPLACE_FCHDIR.
23356         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
23357         FCHDIR_REPLACEMENT.
23358         * lib/dup-safer.c (dup_safer): Likewise.
23359         * lib/dup2.c (rpl_dup2): Likewise.
23360         * lib/dup3.c (rpl_dup3): Likewise.
23361         * lib/open.c (rpl_open): Likewise.
23362
23363         fchdir: simplify error handling, and support dup3
23364         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
23365         stdbool, malloc-posix, realloc-posix.
23366         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
23367         (ensure_dirs_slot): Return false on allocation failure.
23368         (rpl_dup2): Delete.
23369         (_gl_register_dup): New function.
23370         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
23371         (_gl_register_fd): Close fd on allocation failure.
23372         * lib/fcntl.in.h (_gl_register_fd): Update signature.
23373         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
23374         prototype.
23375         (rpl_dup2_fchdir): Delete prototype.
23376         * lib/open.c (open): Update caller.
23377         * lib/dup2.c (dup2): Track fchdir metadata.
23378         * lib/dup3.c (dup3): Likewise.
23379         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
23380         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
23381
23382 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23383
23384         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
23385         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
23386         don't pass arguments to AC_OUTPUT.
23387
23388 2009-09-02  Bruno Haible  <bruno@clisp.org>
23389
23390         * modules/mkdtemp (License): Relicense under LGPLv2+.
23391         Reported by Paolo Bonzini.
23392
23393 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23394
23395         Replace uses of obsolete autoconf macros in Jim's modules.
23396         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
23397         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
23398         can evoke a warning from autoconf when run with -Wobsolete
23399         enabled.  They were declared obsolete for good reasons (see
23400         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
23401         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
23402         should not continue using the deprecated macros.
23403         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
23404         obsolete Autoconf macros with modern counterparts.
23405         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23406         * m4/dos.m4 (gl_AC_DOS): Likewise.
23407         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
23408         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23409         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
23410         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
23411         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
23412         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
23413         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
23414         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
23415         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
23416         Likewise.
23417         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23418         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23419         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
23420         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
23421         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
23422         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
23423
23424 2009-09-01  Eric Blake  <ebb9@byu.net>
23425
23426         fchdir: fix off-by-one bug in previous patch
23427         * lib/fchdir.c (rpl_fstat): Use correct bounds.
23428         (_gl_unregister_fd): Delete useless if.
23429
23430 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
23431
23432         maint.mk: sort the list of syntax-check rules
23433         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
23434         easier to get a sense of progress when the rules are run sequentially
23435         and take a long time.
23436
23437 2009-09-01  Simon Josefsson  <simon@josefsson.org>
23438
23439         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
23440         * modules/netinet_in: Likewise.
23441         * modules/sys_file: Likewise.
23442         * modules/sys_ioctl: Likewise.
23443         * modules/sys_select: Likewise.
23444         * modules/sys_socket: Likewise.
23445         * modules/sys_stat: Likewise.
23446         * modules/sys_time: Likewise.
23447         * modules/sys_times: Likewise.
23448         * modules/sys_utsname: Likewise.
23449         * modules/sys_wait: Likewise.
23450
23451 2009-09-01  Jim Meyering  <meyering@redhat.com>
23452
23453         fts: help ensure that return values are not ignored
23454         * lib/fts_.h (__GNUC_PREREQ): Define.
23455         (__attribute_warn_unused_result__): Define.
23456         (fts_children, fts_close, fts_open, fts_read): Declare with
23457         __attribute_warn_unused_result__.
23458
23459         fts: fts_close now fails also when closing a dir file descriptor fails
23460         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
23461         and propagate to caller, along with errno.
23462
23463         announce-gen: correct formatting in --help output
23464         * build-aux/announce-gen (usage): Move the one-line description in
23465         --help output "up", to where it belongs, just after Usage:.
23466
23467 2009-08-31  Eric Blake  <ebb9@byu.net>
23468
23469         fchdir: port to mingw
23470         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
23471         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
23472         opened, then use a substitute.
23473         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
23474         replacement.
23475         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
23476         (_gl_register_fd): No need to check stat if open already filters
23477         all directories.
23478         (fchdir): Fix error condition to match POSIX.
23479         * modules/fchdir (Depends-on): Add sys_stat.
23480         * doc/posix-functions/open.texi (open): Document the limitation.
23481         * modules/fchdir-tests: New file.
23482         * tests/test-fchdir.c: Likewise.
23483
23484         canonicalize: allow cross-testing from cygwin to mingw
23485         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
23486         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
23487         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
23488         Likewise.
23489         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
23490         target does not support symlinks.
23491         * tests/test-canonicalize-lgpl.sh: Likewise.
23492
23493         chown: avoid compilation warning on mingw
23494         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
23495         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
23496         mingw.
23497         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
23498         * modules/chown (Depends-on): Add errno.
23499
23500 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23501
23502         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
23503         command.
23504
23505 2009-08-31  Jim Meyering  <meyering@redhat.com>
23506
23507         canonicalize: remove useless initialization
23508         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
23509         initialization of local, "end".
23510
23511 2009-08-30  Bruno Haible  <bruno@clisp.org>
23512
23513         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
23514         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
23515         ENOSYS.
23516
23517 2009-08-30  Bruno Haible  <bruno@clisp.org>
23518
23519         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
23520         /usr/xpg4/bin/tr when it exists.
23521         * tests/test-pipe-filter-gi1.sh: Likewise.
23522
23523 2009-08-30  Bruno Haible  <bruno@clisp.org>
23524
23525         Work around deficient /usr/bin/id program on Solaris.
23526         * tests/test-file-has-acl.sh (ID): New variable.
23527         * tests/test-set-mode-acl.sh (ID): Likewise.
23528         * tests/test-copy-acl.sh (ID): Likewise.
23529         * tests/test-copy-file.sh (ID): Likewise.
23530
23531 2009-08-30  Bruno Haible  <bruno@clisp.org>
23532
23533         New module 'xstriconveh'.
23534         * lib/xstriconveh.h: New file.
23535         * lib/xstriconveh.c: New file.
23536         * modules/xstriconveh: New file.
23537
23538 2009-08-30  Bruno Haible  <bruno@clisp.org>
23539
23540         Make it easier to use mem_cd_iconveh.
23541         * lib/striconveh.h (iconveh_t): New type.
23542         (iconveh_open, iconveh_close): New declarations.
23543         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
23544         with a single 'const iconveh_t *' argument.
23545         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
23546         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
23547         with a single 'const iconveh_t *' argument.
23548         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
23549         * tests/test-striconveh.c (main): Update.
23550         * NEWS: Mention the change.
23551
23552 2009-08-30  Bruno Haible  <bruno@clisp.org>
23553
23554         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
23555         problem.
23556
23557 2009-08-30  Bruno Haible  <bruno@clisp.org>
23558
23559         Work around iconv_open problem on Solaris.
23560         * lib/iconv_open-solaris.gperf: New file.
23561         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
23562         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
23563         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
23564         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
23565         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
23566         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
23567
23568 2009-08-29  Jim Meyering  <meyering@redhat.com>
23569
23570         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
23571         * top/maint.mk (cvs-check): Remove target; it was just an alias
23572         to the better-named vc-diff-check.
23573         (maintainer-distcheck): Remove rule.  It was used only from
23574         the (alpha/beta/major) target, and all of its commands but one
23575         were coreutils-specific.
23576         (vc-dist): Remove rule.
23577         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
23578         Run vc-diff-check, not vc-dist.
23579         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
23580
23581 2009-08-27  Bruno Haible  <bruno@clisp.org>
23582
23583         * tests/test-bitrotate.c (main): Remove test that uses a shift count
23584         of 0.
23585
23586 2009-08-27  Bruno Haible  <bruno@clisp.org>
23587
23588         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
23589         compilers.
23590         * doc/func.texi: Document the SunPRO C bug.
23591
23592 2009-08-27  Bruno Haible  <bruno@clisp.org>
23593
23594         Fix link error on Solaris.
23595         * tests/test-parse-duration.c (xstrdup): Remove function.
23596
23597 2009-08-26  Pádraig Brady  <P@draigbrady.com>
23598
23599         ignore-value: handle pointer types, too
23600         * lib/ignore-value.h (__attribute__): Remove definition.
23601         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
23602         of a more concise and more-often effective "(void) i" statement.
23603         (ignore_ptr): New function to suppress warnings from functions that
23604         return pointers, and to make it explicit that one function doesn't
23605         handle all cases.
23606
23607 2009-08-25  Bruno Haible  <bruno@clisp.org>
23608
23609         dup2: work around a Linux bug.
23610         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
23611         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
23612         * doc/posix-functions/dup2.texi: Mention the Linux bug.
23613         Reported by Simon Josefsson.
23614
23615 2009-08-25  Jim Meyering  <meyering@redhat.com>
23616
23617         libguestfs uses gnulib
23618         * users.txt: Add libguestfs.
23619
23620 2009-08-24  Eric Blake  <ebb9@byu.net>
23621
23622         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
23623         * lib/pipe2.c (includes): Add binary-io.h.
23624         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
23625
23626 2009-08-24  Bruno Haible  <bruno@clisp.org>
23627
23628         Tolerate declared but missing accept4 syscall.
23629         * lib/accept4.c (accept4): Invoke original accept4 function first, if
23630         available.
23631         * lib/sys_socket.in.h (accept4): If the function is already present,
23632         override it.
23633         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
23634         * modules/accept4 (Makefile.am): Compile accept4.c always.
23635         Reported by Paolo Bonzini and Eric Blake.
23636
23637 2009-08-23  Bruno Haible  <bruno@clisp.org>
23638
23639         New module 'accept4'.
23640         * lib/sys_socket.in.h (accept4): New declaration.
23641         * lib/accept4.c: New file.
23642         * m4/accept4.m4: New file.
23643         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23644         GNULIB_ACCEPT4, HAVE_ACCEPT4.
23645         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
23646         HAVE_ACCEPT4.
23647         * modules/accept4: New file.
23648         * doc/glibc-functions/accept4.texi: Mention the new module.
23649
23650 2009-08-24  Jim Meyering  <meyering@redhat.com>
23651
23652         progname: also set global program_invocation_name, when possible
23653         Before this change, a libtool-enabled program that calls glibc's
23654         error function would report the program name as
23655         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
23656         * modules/progname (configure.ac): Check for a declaration of
23657         program_invocation_name.
23658         * lib/progname.c:  Include <errno.h>.
23659         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
23660         Set program_invocation_name.
23661
23662 2009-08-23  Bruno Haible  <bruno@clisp.org>
23663
23664         * lib/dup3.c: Include <string.h>.
23665
23666 2009-08-23  Bruno Haible  <bruno@clisp.org>
23667
23668         * lib/dup3.c (dup3): Test only once whether the system actually exists.
23669         * lib/pipe2.c (pipe2): Likewise.
23670         Suggested by Eric Blake.
23671
23672 2009-08-23  Bruno Haible  <bruno@clisp.org>
23673
23674         Tolerate declared but missing dup3 syscall.
23675         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
23676         * lib/unistd.in.h (dup3): If the function is already present,
23677         override it.
23678         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
23679         * modules/dup3 (Makefile.am): Compile dup3.c always.
23680         Reported by Paolo Bonzini.
23681
23682 2009-08-23  Bruno Haible  <bruno@clisp.org>
23683
23684         Tolerate declared but missing pipe2 syscall.
23685         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
23686         available.
23687         * lib/unistd.in.h (pipe2): If the function is already present,
23688         override it.
23689         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
23690         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
23691         Reported by Paolo Bonzini.
23692
23693 2009-08-23  Bruno Haible  <bruno@clisp.org>
23694
23695         * lib/pipe2.c (pipe2): Move #ifs inside function.
23696
23697 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
23698
23699         quotearg: document limitations of quote_these_too
23700         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
23701         those limitations are created.
23702         * lib/quotearg.h (set_char_quoting): Document that digits and
23703         letters that are special after backslash are not permitted.
23704         (quotearg_char): Cross-reference set_char_quoting documentation.
23705
23706 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
23707
23708         quotearg: implement custom_quoting_style
23709         * lib/quotearg.c: (struct quoting_options): Add left_quote and
23710         right_quote fields.
23711         (set_custom_quoting): New public function.
23712         (quotearg_buffer_restyled): Add left_quote and right_quote
23713         arguments, handle them very much like locale quoting, and update
23714         all uses.
23715         (quotearg_n_custom): New public function.
23716         (quotearg_n_custom_mem): New public function.
23717         (quotearg_custom): New public function.
23718         (quotearg_custom_mem): New public function.
23719         * lib/quotearg.h: Prototype and document new public functions.
23720         (enum quoting_style): For escape_quoting_style and
23721         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
23722         ignored even though they're otherwise like c_quoting_style.
23723         Add custom_quoting_style member and document with comparison to
23724         clocale_quoting_style.
23725         * tests/test-quotearg.c (custom_quotes): New array.
23726         (custom_results): New array.
23727         (main): Extend to test custom quoting.
23728
23729 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
23730
23731         quotearg: fix right quote escaping when it's in quote_these_too
23732         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
23733         quote, be sure to prepend only one backslash.
23734         * tests/test-quotearg.c (use_quote_double_quotes): New function.
23735         (main): Test it.
23736
23737 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
23738
23739         quotearg-tests: test escaping of embedded locale quotes
23740         * tests/test-quotearg.c (struct result_strings): Add member for
23741         new input.
23742         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
23743         (inputs): Add new input.
23744         (results_g): Add expected results.
23745         (flag_results): Likewise.
23746         (locale_results): Likewise.
23747         (compare_strings): Check those.
23748
23749 2009-08-23  Bruno Haible  <bruno@clisp.org>
23750
23751         Tests for module 'dup3'.
23752         * modules/dup3-tests: New file.
23753         * tests/test-dup3.c: New file.
23754
23755         New module 'dup3'.
23756         * lib/unistd.in.h (dup3): New declaration.
23757         * lib/dup3.c: New file.
23758         * m4/dup3.m4: New file.
23759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
23760         HAVE_DUP3.
23761         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
23762         * modules/dup3: New file.
23763         * doc/glibc-functions/dup3.texi: Mention the new module.
23764
23765 2009-08-23  Bruno Haible  <bruno@clisp.org>
23766
23767         Tweak the dup2 test.
23768         * tests/test-dup2.c (main): Create the test file empty. Verify that an
23769         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
23770         the test file is still empty. Fix argument order of lseek.
23771
23772 2009-08-23  Bruno Haible  <bruno@clisp.org>
23773
23774         Avoid test link errors when the modules getopt-gnu, gettext are used.
23775         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
23776         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23777
23778 2009-08-23  Bruno Haible  <bruno@clisp.org>
23779
23780         Fix getdtablesize() on mingw.
23781         * lib/getdtablesize.c (getdtablesize): Implement differently.
23782         * lib/unistd.in.h (getdtablesize): Improve comment.
23783
23784 2009-08-23  Bruno Haible  <bruno@clisp.org>
23785
23786         New module 'mkostemp'.
23787         Based on Ulrich Drepper's 2007-08-10 change in glibc.
23788         * lib/stdlib.in.h (mksotemp): New declaration.
23789         * lib/mkostemp.c: New file, from glibc with modifications.
23790         * lib/tempname.h (GT_FILE): Remove outdated comment.
23791         (gen_tempname): Add flags argument.
23792         * lib/tempname.c (__GT_BIGFILE): Remove macro.
23793         (__GT_FILE): Map to 1.
23794         (small_open, large_open): Remove macros.
23795         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
23796         * lib/mkstemp.c (mkstemp): Update.
23797         * lib/mkdtemp.c (mkdtemp): Likewise.
23798         * m4/mkostemp.m4: New file.
23799         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
23800         HAVE_MKOSTEMP.
23801         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
23802         HAVE_MKOSTEMP.
23803         * modules/mkostemp: New file, based on modules/mkstemp.
23804         * doc/glibc-functions/mkostemp.texi: Mention the new module.
23805         * NEWS: Mention the change.
23806
23807 2009-08-23  Bruno Haible  <bruno@clisp.org>
23808
23809         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
23810         Reported by Eric Blake.
23811
23812 2009-08-23  Bruno Haible  <bruno@clisp.org>
23813
23814         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
23815         Reported by Eric Blake.
23816
23817 2009-08-23  Bruno Haible  <bruno@clisp.org>
23818
23819         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
23820         * modules/pipe2 (Depends-on): Likewise.
23821
23822 2009-08-23  Eric Blake  <ebb9@byu.net>
23823
23824         fcntl-h: add O_TTY_INIT support
23825         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
23826         * tests/test-fcntl-h.c (o): Test it.
23827         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23828
23829         fcntl-h: rename from fcntl, in preparation for fcntl(2)
23830         * modules/fcntl: Move <fcntl.h> header replacement...
23831         * modules/fcntl-h: ...to new name, so as not to collide with
23832         like-named function.
23833         * tests/test-fcntl.c: Rename...
23834         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
23835         * modules/fcntl-tests: Rename...
23836         * modules/fcntl-h-tests: ...to this.  Update test file name.
23837         * modules/chdir-long (Depends-on): Update clients.
23838         * modules/chdir-safer (Depends-on): Likewise.
23839         * modules/fcntl-safer (Depends-on): Likewise.
23840         * modules/fts (Depends-on): Likewise.
23841         * modules/mkancesdirs (Depends-on): Likewise.
23842         * modules/mkdir-p (Depends-on): Likewise.
23843         * modules/open (Depends-on): Likewise.
23844         * modules/savewd (Depends-on): Likewise.
23845         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
23846         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23847
23848 2009-08-22  Bruno Haible  <bruno@clisp.org>
23849
23850         * modules/binary-io (License): Relicense under LGPL.
23851         * modules/pipe2 (License): Likewise.
23852
23853 2009-08-22  Bruno Haible  <bruno@clisp.org>
23854
23855         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
23856         return value.
23857         * lib/pipe-filter-gi.c (filter_init): Likewise.
23858         Reported by Eric Blake.
23859
23860 2009-08-22  Bruno Haible  <bruno@clisp.org>
23861
23862         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
23863         * modules/pipe (Depends-on): Add pipe2.
23864
23865 2009-08-22  Bruno Haible  <bruno@clisp.org>
23866
23867         Tests for module 'pipe2'.
23868         * modules/pipe2-tests: New file.
23869         * tests/test-pipe2.c: New file.
23870
23871         New module 'pipe2'.
23872         * lib/unistd.in.h (pipe2): New declaration.
23873         * lib/pipe2.c: New file.
23874         * m4/pipe2.m4: New file.
23875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
23876         HAVE_PIPE2.
23877         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
23878         * modules/pipe2: New file.
23879         * doc/glibc-functions/pipe2.texi: Mention the new module.
23880
23881 2009-08-22  Bruno Haible  <bruno@clisp.org>
23882
23883         Reference some new glibc functions.
23884         * doc/glibc-functions/accept4.texi: New file.
23885         * doc/glibc-functions/dup3.texi: New file.
23886         * doc/glibc-functions/mkostemp.texi: New file.
23887         * doc/glibc-functions/pipe2.texi: New file.
23888         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
23889         (Glibc sys/socket.h): Refer to accept4.
23890         (Glibc unistd.h): Refer to dup3, pipe2.
23891         Reported by Eric Blake.
23892
23893 2009-08-22  Jim Meyering  <meyering@redhat.com>
23894             Bruno Haible  <bruno@clisp.org>
23895
23896         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
23897         This makes it so packages using automake-1.11's silent-rules option
23898         can print e.g., a single "GEN    configmake.h" line, rather than
23899         the 30+ statements that perform the job.  If you want to see the
23900         actual commands, you can still run "make V=1".
23901         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
23902         so that make output is abbreviated when those variables are defined
23903         appropriately.
23904         * modules/argz: Likewise.
23905         * modules/arpa_inet: Likewise.
23906         * modules/byteswap: Likewise.
23907         * modules/configmake: Likewise.
23908         * modules/dirent: Likewise.
23909         * modules/errno: Likewise.
23910         * modules/fcntl: Likewise.
23911         * modules/float: Likewise.
23912         * modules/fnmatch: Likewise.
23913         * modules/getopt-posix: Likewise.
23914         * modules/glob: Likewise.
23915         * modules/iconv_open: Likewise.
23916         * modules/inttypes: Likewise.
23917         * modules/localcharset: Likewise.
23918         * modules/locale: Likewise.
23919         * modules/math: Likewise.
23920         * modules/netdb: Likewise.
23921         * modules/netinet_in: Likewise.
23922         * modules/poll: Likewise.
23923         * modules/posix_spawnp-tests: Likewise.
23924         * modules/sched: Likewise.
23925         * modules/search: Likewise.
23926         * modules/selinux-h: Likewise.
23927         * modules/signal: Likewise.
23928         * modules/spawn: Likewise.
23929         * modules/stdarg: Likewise.
23930         * modules/stdbool: Likewise.
23931         * modules/stddef: Likewise.
23932         * modules/stdint: Likewise.
23933         * modules/stdio: Likewise.
23934         * modules/stdlib: Likewise.
23935         * modules/string: Likewise.
23936         * modules/strings: Likewise.
23937         * modules/sys_file: Likewise.
23938         * modules/sys_ioctl: Likewise.
23939         * modules/sys_select: Likewise.
23940         * modules/sys_socket: Likewise.
23941         * modules/sys_stat: Likewise.
23942         * modules/sys_time: Likewise.
23943         * modules/sys_times: Likewise.
23944         * modules/sys_utsname: Likewise.
23945         * modules/sys_wait: Likewise.
23946         * modules/sysexits: Likewise.
23947         * modules/time: Likewise.
23948         * modules/unistd: Likewise.
23949         * modules/wchar: Likewise.
23950         * modules/wctype: Likewise.
23951
23952 2009-08-22  Jim Meyering  <meyering@redhat.com>
23953
23954         announce-gen: detect write failure
23955         * build-aux/announce-gen: Add Coda at end.
23956         Remove equivalent-but-more-verbose block at top.
23957
23958 2009-08-19  Akim Demaille  <demaille@gostai.com>
23959
23960         bootstrap: --help to stdout.
23961         * bootstrap (usage): Don't send --help to stderr.
23962         Use a here doc instead of a long string.
23963
23964 2009-08-21  Eric Blake  <ebb9@byu.net>
23965
23966         test-popen-safer: split from test-popen
23967         * tests/test-popen.c (main): Move...
23968         * tests/test-popen.h: ...into new file.
23969         * tests/test-popen-safer2.c: New file.
23970         * modules/popen-tests (Files): Add test-popen.h.
23971         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
23972         Suggested by Bruno Haible.
23973
23974         test-fcntl-safer: split from test-open
23975         * tests/test-open.c (main): Move...
23976         * tests/test-open.h: ...into new file.
23977         * tests/test-fcntl-safer.c: New file.
23978         * modules/open-tests (Files): Add test-open.h.
23979         * modules/fcntl-safer-tests: New file.
23980         Suggested by Bruno Haible.
23981
23982         test-fopen-safer: split from test-fopen
23983         * tests/test-fopen.c (main): Move...
23984         * tests/test-fopen.h: ...into new file.
23985         * tests/test-fopen-safer.c: New file.
23986         * modules/fopen-tests (Files): Add test-fopen.h.
23987         * modules/fopen-safer-tests: New file.
23988         Suggested by Bruno Haible.
23989
23990 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
23991
23992         popen-safer: test O_CLOEXEC at run-time.
23993         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
23994
23995 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
23996
23997         fcntl: move more flags to the header
23998         * lib/cloexec.c: Do not define FD_CLOEXEC here.
23999         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
24000         * lib/fcntl.in.h: Do both things here.
24001
24002 2009-08-21  Jim Meyering  <meyering@redhat.com>
24003
24004         consistently remove $@-t before redirecting to it
24005         * modules/argz: Remove $@-t and $@ before redirecting to the former.
24006         * modules/alloca-opt: Likewise.
24007         * modules/byteswap: Likewise.
24008         * modules/fnmatch: Likewise.
24009         * modules/getopt-posix: Likewise.
24010         * modules/glob: Likewise.
24011         * modules/poll: Likewise.
24012         * modules/posix_spawnp-tests: Likewise.
24013         * modules/sys_socket: Likewise.
24014         * modules/sysexits: Likewise.
24015
24016 2009-08-21  Eric Blake  <ebb9@byu.net>
24017
24018         popen: simplify access to original popen
24019         * lib/popen.c (rpl_popen): No need to worry about popen being a
24020         macro.
24021         Reported by Bruno Haible.
24022
24023 2009-08-20  Eric Blake  <ebb9@byu.net>
24024
24025         build: avoid some compiler warnings
24026         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
24027         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
24028         type.
24029         (new_exclude_segment, excluded_file_pattern_p)
24030         (excluded_file_name_p): Reduce scope.
24031         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
24032         old-style declaration.
24033
24034 2009-08-20  Simon Josefsson  <simon@josefsson.org>
24035
24036         * tests/test-exclude1.sh: Handle Windows EOL.
24037         * tests/test-exclude2.sh: Likewise.
24038         * tests/test-exclude3.sh: Likewise.
24039         * tests/test-exclude4.sh: Likewise.
24040         * tests/test-exclude5.sh: Likewise.
24041         * tests/test-exclude6.sh: Likewise.
24042         * tests/test-exclude7.sh: Likewise.
24043
24044 2009-08-19  Akim Demaille  <demaille@gostai.com>
24045
24046         bootstrap: find sha1sum when named gsha1sum.
24047         * bootstrap (find_tool): New.
24048         ($SHA1SUM): New.
24049         Use it.
24050
24051 2009-08-20  Jim Meyering  <meyering@redhat.com>
24052
24053         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
24054         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
24055         expression that converts "." in a file name to "\." in the resulting
24056         regexp.  Start with a dummy statement, so that prior shell variable
24057         definitions are expanded portably.  Reported by Simon Josefsson.
24058
24059 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
24060
24061         Fix polling for writeability of a screen buffer.
24062         * lib/poll.c: Distinguish input and screen buffers for the
24063         Win32 implementation.
24064         * lib/select.c: Likewise.
24065
24066 2009-08-19  Eric Blake  <ebb9@byu.net>
24067
24068         popen-safer: prevent popen from clobbering std descriptors
24069         * modules/popen-safer: New file.
24070         * lib/popen-safer.c: Likewise.
24071         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
24072         * lib/stdio--.h (popen): Provide override.
24073         * lib/stdio-safer.h (popen_safer): Provide declaration.
24074         * tests/test-popen.c (includes): Partially test this.
24075         * modules/popen-safer-tests: New file, for more tests.
24076         * tests/test-popen-safer.c: Likewise.
24077         * MODULES.html.sh (file stream based Input/Output): Mention it.
24078
24079         tests: test some of the *-safer modules
24080         * modules/fopen-safer (Depends-on): Add fopen.
24081         * modules/fcntl-safer (Depends-on): Add fcntl.
24082         * modules/stdlib-safer (Depends-on): Add stdlib.
24083         (configure.ac): Set indicator.
24084         * modules/unistd-safer (configure.ac): Likewise.
24085         * modules/tmpfile-safer (configure.ac): Likewise.
24086         (Depends-on): Add tmpfile.
24087         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
24088         active.
24089         * tests/test-fopen.c (includes): Test safer versions when they are
24090         in use.
24091         * tests/test-open.c (includes): Likewise.
24092
24093         popen: fix cygwin 1.5 bug when stdin closed
24094         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
24095         * modules/popen: New file.
24096         * modules/popen-tests: Likewise.
24097         * tests/test-popen.c: Likewise.
24098         * m4/popen.m4: Likewise.
24099         * lib/popen.c: Likewise.
24100         * lib/stdio.in.h (popen): New declaration.
24101         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
24102         * modules/stdio (Makefile.am): Likewise.
24103         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
24104
24105 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
24106
24107         maint.mk: give full control over update-copyright exclusions
24108         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
24109         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
24110         (update-copyright): Don't force inclusion of top-level
24111         ChangeLog.  Don't force exclusion of all COPYING files, but make
24112         them the default exclusion instead.
24113
24114 2009-08-16  Bruno Haible  <bruno@clisp.org>
24115
24116         Fix test failures on Solaris 10.
24117         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
24118         tests when Solaris iconv() is used.
24119         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
24120         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
24121         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
24122         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
24123         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
24124
24125 2009-08-16  Bruno Haible  <bruno@clisp.org>
24126
24127         Fix test failures on Solaris 10.
24128         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
24129         'tr' program and pass it as first argument.
24130         * tests/test-pipe-filter-gi1.sh: Likewise.
24131         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
24132         program as first argument.
24133         * tests/test-pipe-filter-gi1.c (main): Likewise.
24134
24135 2009-08-16  Eric Blake  <ebb9@byu.net>
24136
24137         fpurge: fix previous commits
24138         * modules/fpurge (Makefile.am): Make replacement conditional,
24139         partially reverting 2007-04-29 change; missed in previous
24140         attempt.
24141         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
24142         is missing.
24143
24144 2009-08-16  Bruno Haible  <bruno@clisp.org>
24145
24146         Clarify fpurge's effect on the file position.
24147         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
24148         * tests/test-fpurge.c (main): Make a second pass for checking the file
24149         position.
24150
24151 2009-08-16  Bruno Haible  <bruno@clisp.org>
24152
24153         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
24154         declaration of fpurge is missing.
24155         * tests/test-fpurge.c (main): Check that the file has not more contents
24156         than expected. Close the file before removing it.
24157
24158 2009-08-15  Eric Blake  <ebb9@byu.net>
24159
24160         fpurge: don't wrap working cygwin implementation
24161         * lib/fpurge.c (fpurge): Fix comment typo.
24162         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
24163         1.7 to avoid replacement.
24164         * tests/test-fpurge.c (main): Enhance test.
24165
24166 2009-08-15  Eric Blake  <ebb9@byu.net>
24167         and Jim Meyering  <meyering@redhat.com>
24168
24169         test-update-copyright: skip if perl is insufficient
24170         * tests/test-update-copyright.sh: Failure to run maintainer tool
24171         should not cause testsuite failure on cygwin 1.5.
24172
24173 2009-08-14  Eric Blake  <ebb9@byu.net>
24174
24175         doc: mention more functions added in cygwin 1.7.0
24176         * doc/posix-headers/limits.texi (limits.h): Update for recent
24177         cygwin additions.
24178         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
24179         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
24180         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
24181         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
24182         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
24183
24184 2009-08-14  Eric Blake  <ebb9@byu.net>
24185
24186         maint.mk: simplify update-copyright rule
24187         * top/maint.mk (update-copyright-local): Delete, and document how
24188         to do it in cfg.mk instead.
24189         (update-copyright-exclude-regexp): Delete, and document how to do
24190         it in .x-update-copyright instead.
24191         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
24192         exclude ChangeLog.
24193
24194 2009-08-14  Bruno Haible  <bruno@clisp.org>
24195
24196         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
24197
24198 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
24199
24200         maint.mk: support update-copyright-env
24201         * top/maint.mk (update-copyright-env): Define place-holder.
24202         (update-copyright): Expand $(update-copyright-env) before
24203         invoking update-copyright.
24204
24205 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
24206
24207         update-copyright: implement forced reformatting
24208         * build-aux/update-copyright: Implement and document
24209         UPDATE_COPYRIGHT_FORCE.
24210         * tests/test-update-copyright.sh: Test it.
24211
24212 2009-08-14  Eric Blake  <ebb9@byu.net>
24213         and Bruno Haible  <bruno@clisp.org>
24214
24215         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
24216         * tests/test-locale.c: Revert previous patch related to NULL.
24217         * tests/test-stdio.c: Likewise.
24218         * tests/test-stdlib.c: Likewise.
24219         * tests/test-string.c: Likewise.
24220         * tests/test-unistd.c: Likewise.
24221         * modules/time-tests (Depends-on): Add verify.
24222         * modules/wchar-tests (Depends-on): Likewise.
24223         * tests/test-time.c: Test for NULL compliance.
24224         * tests/test-wchar.c: Likewise.
24225         * modules/locale (Depends-on): Add stddef.
24226         * modules/stdio (Depends-on): Likewise.
24227         * modules/stdlib (Depends-on): Likewise.
24228         * modules/string (Depends-on): Likewise.
24229         * modules/time (Depends-on): Likewise.
24230         * modules/unistd (Depends-on): Likewise.
24231         * modules/wchar (Depends-on): Likewise.
24232         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
24233         * lib/stdlib.in.h (includes): Likewise.
24234         * lib/string.in.h (includes): Likewise.
24235         * lib/time.in.h (includes): Likewise.
24236         * lib/unistd.in.h (includes): Likewise.
24237         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
24238         replaced.
24239         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24240         * m4/stddef_h.m4: New file.
24241         * modules/stddef: Likewise.
24242         * lib/stddef.in.h: Likewise.
24243         * modules/stddef-tests: Likewise.
24244         * tests/test-stddef.c: Likewise.
24245         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
24246         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
24247         * doc/posix-headers/locale.texi (locale.h): Likewise.
24248         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
24249         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24250         * doc/posix-headers/string.texi (string.h): Likewise.
24251         * doc/posix-headers/time.texi (time.h): Likewise.
24252         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
24253         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
24254
24255 2009-08-14  Eric Blake  <ebb9@byu.net>
24256
24257         doc: improve git diff of texinfo files
24258         * .gitattributes: Add rule for *.texi files, with hint on how to
24259         use it.
24260         Copied from m4, and based on a report by Bruno Haible.
24261
24262 2009-08-14  Bruno Haible  <bruno@clisp.org>
24263
24264         Disable multithread support by default on Cygwin 1.5.x for real.
24265         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
24266
24267 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
24268
24269         update-copyright: much ado about intervals
24270         * build-aux/update-copyright: Implement and document
24271         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
24272         of copyright year intervals.
24273         Also, document UPDATE_COPYRIGHT_YEAR.
24274         * tests/test-update-copyright.sh: Test it.
24275
24276         update-copyright: convert 2-digit to 4-digit years
24277         * build-aux/update-copyright: Implement and document.
24278         * tests/test-update-copyright.sh: Update.
24279
24280 2009-08-14  Jim Meyering  <meyering@redhat.com>
24281
24282         test-exclude: avoid coreutils "make check" failure
24283         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
24284         just as in test-argmatch.c.
24285
24286 2009-08-13  Eric Blake  <ebb9@byu.net>
24287
24288         test-dup2: fix bad assumption
24289         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
24290         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
24291
24292         test-version-etc: fix CRLF portability issue
24293         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
24294         recognize \r.
24295         * tests/test-argp-version-etc-1.sh: Likewise.
24296
24297         getopt: update client modules
24298         * modules/argp (Depends-on): Use getopt-gnu.
24299         * modules/git-merge-changelog (Depends-on): Likewise.
24300         * modules/long-options (Depends-on): Likewise.
24301         * modules/xstrtol (Depends-on): Likewise.
24302
24303 2009-08-13  Simon Josefsson  <simon@josefsson.org>
24304
24305         * tests/test-version-etc.sh: Don't fail on different
24306         project/version.  Don't fail on CRLF differences.  Rewrite to use
24307         multiple -e instead of multiple sed forks, suggested by Eric Blake
24308         <ebb9@byu.net>.
24309         * tests/test-argp-version-etc-1.sh: Likewise.
24310
24311 2009-08-13  Simon Josefsson  <simon@josefsson.org>
24312
24313         * tests/test-version-etc.sh: Don't fail on different
24314         project/version.
24315
24316 2009-08-12  Bruno Haible  <bruno@clisp.org>
24317
24318         Tests for modules 'getopt-posix', 'getopt-gnu'.
24319         * modules/getopt-posix-tests: New file.
24320         * tests/test-getopt.c: New file.
24321         * tests/test-getopt.h: New file.
24322         * tests/test-getopt_long.h: New file.
24323
24324         New modules 'getopt-posix', 'getopt-gnu'.
24325         * modules/getopt-gnu: New file, renamed from modules/getopt.
24326         * modules/getopt-posix: New file.
24327         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
24328         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
24329         (gl_GETOPT): Remove macro.
24330         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
24331         Disable the test against BSD systems that declare optreset. Test
24332         against mingw bug. Test against lack of support of optional arguments
24333         on many platforms.
24334         * doc/glibc-headers/getopt.texi: Update module name and list of
24335         relevant platforms.
24336         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
24337         'getopt-gnu' and more portability problems.
24338         * NEWS: Mention the changes.
24339
24340 2009-08-12  Bruno Haible  <bruno@clisp.org>
24341
24342         Ensure that optarg etc. get declared by <unistd.h>.
24343         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
24344         AC_USE_SYSTEM_EXTENSIONS.
24345         * modules/getopt (Depends-on): Add 'extensions'.
24346
24347 2009-08-12  Bruno Haible  <bruno@clisp.org>
24348
24349         Avoid test link errors.
24350         * modules/pipe-filter-ii-tests (Makefile.am): Define
24351         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
24352         * modules/pipe-filter-gi-tests (Makefile.am): Define
24353         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
24354         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24355
24356 2009-08-12  Bruno Haible  <bruno@clisp.org>
24357
24358         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
24359         gl_GETOPT_SUBSTITUTE before.
24360         (gl_GETOPT): Use it.
24361         * m4/argp.m4 (gl_ARGP): Update.
24362         Reported by Sergey Poznyakoff.
24363
24364         * m4/getopt.m4: Reorder macros.
24365         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
24366         (gl_GETOPT_SUBSTITUTE): Remove macro.
24367
24368 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24369
24370         Minor improvement in gitlog-to-changelog
24371
24372         * build-aux/gitlog-to-changelog: New option `--format' makes
24373         output format string configurable.
24374
24375 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24376
24377         Optimize exclude: use hash tables for non-wildcard patterns.
24378
24379         * lib/exclude.c: Include hash.h and mbuiter.h
24380         (struct exclude_pattern, exclude_segment): New data types.
24381         (struct exclude): Rewrite.
24382         (fnmatch_pattern_has_wildcards): New function.
24383         (new_exclude_segment, free_exclude_segment): New functions.
24384         (excluded_file_pattern_p, excluded_file_name_p): New functions.
24385         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
24386         * lib/exclude.h (is_fnmatch_pattern): New prototype.
24387         * modules/exclude: Depend on hash and mbuiter.
24388
24389         * modules/exclude-tests: New file.
24390         * tests/test-exclude.c: New file.
24391         * tests/test-exclude1.sh: New file.
24392         * tests/test-exclude2.sh: New file.
24393         * tests/test-exclude3.sh: New file.
24394         * tests/test-exclude4.sh: New file.
24395         * tests/test-exclude5.sh: New file.
24396         * tests/test-exclude6.sh: New file.
24397         * tests/test-exclude7.sh: New file.
24398
24399 2009-08-12  Bruno Haible  <bruno@clisp.org>
24400
24401         Ensure that getopt() gets declared by <unistd.h>.
24402         * lib/unistd.in.h: Conditionally include getopt.h.
24403         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
24404         Set GNULIB_UNISTD_H_GETOPT.
24405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24406         GNULIB_UNISTD_H_GETOPT.
24407         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
24408
24409 2009-08-12  Bruno Haible  <bruno@clisp.org>
24410
24411         Clarify logic.
24412         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
24413         gl_replace_getopt instead of GETOPT_H.
24414
24415 2009-08-12  Bruno Haible  <bruno@clisp.org>
24416
24417         * m4/getopt.m4: Add comments.
24418
24419 2009-08-12  Bruno Haible  <bruno@clisp.org>
24420
24421         Disable multithread support by default on Cygwin 1.5.x.
24422         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
24423         set gl_use_threads=no if not specified otherwise.
24424
24425 2009-08-11  Bruno Haible  <bruno@clisp.org>
24426
24427         Avoid compilation error on NetBSD 5.0.
24428         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
24429         * tests/test-stdio.c: Likewise.
24430         * tests/test-stdlib.c: Likewise.
24431         * tests/test-string.c: Likewise.
24432         * tests/test-unistd.c: Likewise.
24433         Reported by Greg Troxel <gdt@ir.bbn.com>
24434         at <https://savannah.gnu.org/support/?106973>.
24435
24436 2009-08-11  Bruno Haible  <bruno@clisp.org>
24437
24438         * modules/dup2-tests (Depends-on): Remove close.
24439
24440         Undo 2009-07-19 commit.
24441         * modules/acl-tests (Depends-on): Remove close.
24442         * modules/binary-io-tests (Depends-on): Likewise.
24443         * modules/closein-tests (Depends-on): Likewise.
24444         * modules/flock-tests (Depends-on): Likewise.
24445         * modules/fsync-tests (Depends-on): Likewise.
24446         * modules/lseek-tests (Depends-on): Likewise.
24447         * modules/pipe-tests (Depends-on): Likewise.
24448         * modules/posix_spawn-tests (Depends-on): Likewise.
24449         * modules/posix_spawnp-tests (Depends-on): Likewise.
24450         * modules/stat-time-tests (Depends-on): Likewise.
24451         * modules/yesno-tests (Depends-on): Likewise.
24452
24453 2009-08-10  Bruno Haible  <bruno@clisp.org>
24454
24455         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
24456
24457 2009-08-10  Bruno Haible  <bruno@clisp.org>
24458
24459         Fix a gcc warning.
24460         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
24461
24462 2009-08-10  Bruno Haible  <bruno@clisp.org>
24463
24464         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
24465         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
24466         not only the first time.
24467         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
24468         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
24469         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
24470         is 1, not only the the first time.
24471
24472 2009-08-10  Bruno Haible  <bruno@clisp.org>
24473
24474         Make it possible to use module 'gethostname' without module 'close'.
24475         * lib/unistd.in.h (close): Evoke a link error only if
24476         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
24477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24478         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24479         * modules/unistd (Makefile.am): Substitute
24480         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24481         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
24482         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
24483         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
24484         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24485         * modules/sys_ioctl (Makefile.am): Substitute
24486         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24487         * modules/socket (configure.ac): On native Windows, set
24488         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
24489         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24490         Reported by Sam Steingold <sds@gnu.org>.
24491
24492 2009-08-10  Bruno Haible  <bruno@clisp.org>
24493
24494         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
24495         * modules/ioctl (configure.ac): Likewise.
24496
24497 2009-08-10  Bruno Haible  <bruno@clisp.org>
24498
24499         Avoid collision between gnulib wrapper and libintl wrapper.
24500         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
24501         already defined in intl/printf.c.
24502         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
24503         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
24504
24505 2009-08-09  Bruno Haible  <bruno@clisp.org>
24506
24507         Make <sys/select.h> really self-contained, also on Solaris 10.
24508         * lib/sys_select.in.h: Include <string.h>.
24509         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
24510         Solaris 10 problem.
24511         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
24512         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
24513         Reported by Jim Meyering.
24514
24515 2009-08-09  Bruno Haible  <bruno@clisp.org>
24516
24517         Avoid warnings from 'aclocal' that are due to a use of macro name
24518         AM_XGETTEXT_OPTION that is not defined in automake.
24519         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
24520         automake.
24521         * modules/error (configure.ac): Likewise.
24522         * modules/propername (configure.ac): Likewise.
24523         * modules/vasprintf (configure.ac): Likewise.
24524         * modules/verror (configure.ac): Likewise.
24525         * modules/xprintf (configure.ac): Likewise.
24526         * modules/xvasprintf (configure.ac): Likewise.
24527
24528 2009-08-08  Bruno Haible  <bruno@clisp.org>
24529
24530         Avoid compilation error in C++ mode.
24531         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
24532         Reported by Sam Steingold <sds@gnu.org>.
24533
24534 2009-08-08  Bruno Haible  <bruno@clisp.org>
24535
24536         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
24537         for the various Unix platforms.
24538         * doc/posix-headers/limits.texi: Update platforms list regarding
24539         HOST_NAME_MAX.
24540         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24541
24542 2009-08-07  Jim Meyering  <meyering@redhat.com>
24543
24544         selinux-at: fix typo in a comment
24545         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
24546         Spotted by Paolo Bonzini.
24547
24548         selinux-at: remove redundant m4 code, add documentation
24549         * modules/selinux-at (configure.ac): Remove redundant code.
24550         LIB_SELINUX is already set via the dependent module, selinux-h.
24551         (Include): Add quotes around selinux-at.h.
24552         * lib/selinux-at.h: Add documentation.
24553         Reported by Bruno Haible in
24554         http://marc.info/?l=gnulib-bug&m=124958988300749
24555
24556 2009-08-07  Bruno Haible  <bruno@clisp.org>
24557
24558         Avoid link error on MacOS X 10.3 and 10.4.
24559         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
24560         on non-ELF systems.
24561         * lib/argp-pv.c (argp_program_version): Likewise.
24562         Reported by Simon Josefsson.
24563
24564 2009-08-07  Simon Josefsson  <simon@josefsson.org>
24565
24566         * tests/test-version-etc.sh: Use $EXEEXT.
24567
24568 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
24569
24570         update-copyright: update documentation to point to maint.mk
24571         * build-aux/update-copyright: Here.
24572
24573 2009-08-06  Jim Meyering  <meyering@redhat.com>
24574
24575         maint.mk: support update-copyright-local
24576         * top/maint.mk (update-copyright-local): Define place-holder.
24577         (update-copyright): Depend on $(update-copyright-local).
24578
24579 2009-08-06  Jim Meyering  <meyering@redhat.com>
24580
24581         selinux-at: new module
24582         Initially written for coreutils, this module will soon be
24583         used by findutils, too.
24584         * MODULES.html.sh [Misc]: Add selinux-at.
24585         * lib/selinux-at.h: New file, from coreutils.
24586         * lib/selinux-at.c: Likewise.
24587         * modules/selinux-at: Likewise.
24588         (License): Change from LGPL to GPL, since it depends
24589         on the GPL'd openat module.
24590
24591         doc: update README
24592         * README: Remove references to cogito.
24593         Remove cvs-repo-updating instructions from 2007.
24594         Don't imply that CVS is better if you have limited disk space.
24595
24596 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24597
24598         update-copyright: support C-style comments
24599         * build-aux/update-copyright: Implement and document.
24600         * tests/test-update-copyright.sh: Test.
24601
24602 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24603
24604         update-copyright: support omitted "(C)"
24605         * build-aux/update-copyright: Implement and document.  Also,
24606         allow variable whitespace before "(C)".
24607         * tests/test-update-copyright.sh: Test.
24608
24609 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24610
24611         update-copyright: don't trip on non-FSF copyright statements
24612         * build-aux/update-copyright: Fix so that the first correctly
24613         formatted FSF copyright statement is recognized no matter what
24614         appears before it.  Update documentation.
24615         * tests/test-update-copyright.sh: Test that.
24616
24617 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24618
24619         update-copyright: clean up code a little
24620         * build-aux/update-copyright: Append "_re" to the name of any
24621         variable holding a regular expression.
24622         Replace "old" and "new" with "stmt" in variable names.
24623         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
24624         handled correctly.
24625         Format code more consistently.
24626
24627 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24628
24629         update-copyright-tests: improve portability
24630         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
24631         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
24632
24633 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
24634
24635         update-copyright: support @copyright{} and &copy;
24636         * build-aux/update-copyright: Implement and document.
24637         * tests/test-update-copyright.sh: Test.
24638
24639 2009-08-04  Jim Meyering  <meyering@redhat.com>
24640
24641         update-copyright-tests: correctly test EOL=\r\n handling
24642         * tests/test-update-copyright.sh: Put \r at the end of some lines
24643         for the dos-eol tests.  Based on a patch by Joel E. Denny.
24644
24645         maint.mk: make update-copyright exclusion list more configurable
24646         * top/maint.mk (update-copyright): Default to excluding COPYING,
24647         but allow an override, in case someone does want to update that file.
24648
24649         maint.mk: don't update copyright date in COPYING
24650         * top/maint.mk (update-copyright): Exclude COPYING.
24651
24652         maint.mk: add a copyright-updating rule
24653         * top/maint.mk (update-copyright): New rule.
24654         Derived from coreutils/Makefile.am.
24655
24656         update-copyright: rename some variables
24657         * build-aux/update-copyright: Rename a few variables for clarity.
24658         Tweak syntax.  List Joel E. Denny as coauthor.
24659
24660 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
24661
24662         update-copyright: fix bug for 2-digit last year and add tests
24663         * build-aux/update-copyright: Fix bug.
24664         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
24665         specified.
24666         * modules/update-copyright-tests: New
24667         * tests/test-update-copyright.sh: New.
24668
24669 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
24670
24671         update-copyright: handle leading tabs in line prefix
24672         * build-aux/update-copyright: Count leading tabs as 8 spaces
24673         when computing margin.  This helps with the formatting of
24674         ChangeLogs, for example.
24675         Fix documentation a little.
24676
24677 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
24678
24679         update-copyright: support EOL=\r\n
24680         * build-aux/update-copyright: Implement that.
24681
24682 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
24683
24684         update-copyright: automatically format copyright statements
24685         * build-aux/update-copyright: Implement that.
24686         Also, be a little more predictable and safer by always failing
24687         when the full copyright format is not perfectly recognized as an
24688         unbroken whole.  Discussed at
24689         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
24690         Rewrite documentation.
24691
24692 2009-08-03  Bruno Haible  <bruno@clisp.org>
24693
24694         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
24695
24696 2009-08-02  Bruno Haible  <bruno@clisp.org>
24697
24698         Tests for module 'uname'.
24699         * modules/uname-tests: New file.
24700         * tests/test-uname.c: New file.
24701
24702         New module 'uname'.
24703         * lib/uname.c: New file.
24704         * m4/uname.m4: New file.
24705         * modules/uname: New file.
24706         * doc/posix-functions/uname.texi: Mention the new module.
24707
24708 2009-08-02  Bruno Haible  <bruno@clisp.org>
24709
24710         Tests for module 'sys_utsname'.
24711         * modules/sys_utsname-tests: New file.
24712         * tests/test-sys_utsname.c: New file.
24713
24714         New module 'sys_utsname'.
24715         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
24716         * m4/sys_utsname_h.m4: New file.
24717         * modules/sys_utsname: New file.
24718         * doc/posix-headers/sys_utsname.texi: Mention the new module.
24719
24720 2009-08-02  Bruno Haible  <bruno@clisp.org>
24721
24722         Implicitly initialize the sockets library.
24723         * lib/gethostname.c: Include sockets.h.
24724         (rpl_gethostname): Invoke gl_sockets_startup.
24725         * lib/socket.c: Include sockets.h.
24726         (rpl_socket): Invoke gl_sockets_startup.
24727         * modules/gethostname (Depends-on): Add sockets.
24728         * modules/socket (Depends-on): Likewise.
24729         * tests/test-poll.c: Don't include sockets.h.
24730         (main): Don't invoke gl_sockets_startup.
24731         * tests/test-select.c: Don't include sockets.h.
24732         (main): Don't invoke gl_sockets_startup.
24733
24734 2009-08-02  Bruno Haible  <bruno@clisp.org>
24735
24736         Allow multiple calls to gl_sockets_startup.
24737         * lib/sockets.c (initialized_sockets_version): New variable.
24738         (gl_sockets_startup): Do nothing if already called for this or a higher
24739         version.
24740         (gl_sockets_cleanup): Reset initialized_sockets_version.
24741
24742 2009-08-03  Simon Josefsson  <simon@josefsson.org>
24743
24744         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
24745         different project/version.
24746
24747 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
24748             Bruno Haible  <bruno@clisp.org>
24749
24750         Tests for module 'pipe-filter-gi'.
24751         * modules/pipe-filter-gi-tests: New file.
24752         * tests/test-pipe-filter-gi1.sh: New file.
24753         * tests/test-pipe-filter-gi1.c: New file.
24754         * tests/test-pipe-filter-gi2.sh: New file.
24755         * tests/test-pipe-filter-gi2-main.c: New file.
24756         * tests/test-pipe-filter-gi2-child.c: New file.
24757
24758         New module 'pipe-filter-gi'.
24759         * lib/pipe-filter-gi.c: New file.
24760         * modules/pipe-filter-gi: New file.
24761
24762 2009-08-02  Bruno Haible  <bruno@clisp.org>
24763             Paolo Bonzini  <bonzini@gnu.org>
24764
24765         Tests for module 'pipe-filter-ii'.
24766         * modules/pipe-filter-ii-tests: New file.
24767         * tests/test-pipe-filter-ii1.sh: New file.
24768         * tests/test-pipe-filter-ii1.c: New file.
24769         * tests/test-pipe-filter-ii2.sh: New file.
24770         * tests/test-pipe-filter-ii2-main.c: New file.
24771         * tests/test-pipe-filter-ii2-child.c: New file.
24772
24773         New module 'pipe-filter-ii'.
24774         * lib/pipe-filter.h: New file.
24775         * lib/pipe-filter-ii.c: New file.
24776         * lib/pipe-filter-aux.h: New file.
24777         * modules/pipe-filter-ii: New file.
24778
24779 2009-08-02  Simon Josefsson  <simon@josefsson.org>
24780
24781         * lib/gc-libgcrypt.c: Change copyright to FSF.
24782         * lib/gc-gnulib.c: Likewise.
24783
24784 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
24785
24786         * lib/gethostname.c: Include limits.h.
24787
24788 2009-08-02  Simon Josefsson  <simon@josefsson.org>
24789             Bruno Haible  <bruno@clisp.org>
24790
24791         Ensure HOST_NAME_MAX as part of the gethostname module.
24792         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
24793         define also HOST_NAME_MAX.
24794         * tests/test-gethostname.c: Include <limits.h>.
24795         (main): Check also HOST_NAME_MAX.
24796         * doc/posix-headers/limits.texi: Document the mingw problem.
24797
24798 2009-08-02  Bruno Haible  <bruno@clisp.org>
24799
24800         * lib/gethostname.c (gethostname): Fix handling of large len argument.
24801         Add comments.
24802
24803 2009-03-31  Simon Josefsson  <simon@josefsson.org>
24804
24805         * lib/gethostname.c: Add Windows wrapper.
24806         * m4/gethostname.m4: Look for gethostname in -lws2_32.
24807         * modules/gethostname: Depend on sys_socket & errno, for also
24808         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
24809         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
24810
24811 2009-07-31  Jim Meyering  <meyering@redhat.com>
24812
24813         getloadavg: fix symbol name in comment
24814         * lib/getloadavg.c: Correct a typo I introduced when adding
24815         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
24816         Matt Kraai spotted the problem.
24817
24818 2009-07-29  Matt Kraai  <mkraai@beckman.com>
24819
24820         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
24821         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
24822         code also if ! defined N_NAME_POINTER.
24823         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
24824         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
24825         but the n_name member is a 12-byte array.
24826
24827 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
24828
24829         update-copyright: generalize comment handling
24830         * build-aux/update-copyright: Handle copyright statements
24831         within more comment styles.
24832         Document usage.
24833         Report any file with an external copyright holder or parse failure.
24834
24835 2009-07-29  Jim Meyering  <meyering@redhat.com>
24836
24837         mktime: correct setting of REPLACE_MKTIME
24838         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
24839
24840         update-copyright: new module
24841         * modules/update-copyright: New file.
24842         * build-aux/update-copyright: New file.
24843         * MODULES.html.sh (maint+release support): Add update-copyright.
24844
24845 2009-07-27  Bruno Haible  <bruno@clisp.org>
24846
24847         Fix compilation error when <ctime> is used and mktime is replaced.
24848         * lib/time.in.h (mktime): New declaration.
24849         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
24850         REPLACE_MKTIME instead of defining mktime in config.h.
24851         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
24852         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
24853         Reported by Ross McFarland <rwmcfa1@neces.com>.
24854
24855 2009-07-27  Bruno Haible  <bruno@clisp.org>
24856
24857         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
24858         Reported by Matt Kraai <mkraai@beckman.com>.
24859
24860 2009-07-25  Jim Meyering  <meyering@redhat.com>
24861
24862         maint.mk: avoid warnings about missing files
24863         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
24864         diagnostic when .prev-version does not exist.
24865         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
24866         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
24867         nonexistent cfg.mk.
24868         Suggestions from Simon Josefsson.
24869
24870 2009-07-25  Bruno Haible  <bruno@clisp.org>
24871
24872         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
24873         defined as macros. Needed on QNX 6.4.1.
24874         Reported by Matt Kraai <mkraai@beckman.com>.
24875
24876 2009-07-23  Jim Meyering  <meyering@redhat.com>
24877
24878         maint.mk: invoke "make dist" with a working value of XZ_OPT
24879         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
24880
24881 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
24882
24883         Make fseeko.c compile on QNX.
24884         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
24885
24886 2009-07-22  Peter Simons  <simons@cryp.to>
24887
24888         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
24889         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
24890         * lib/md4.h: Likewise.
24891         * lib/md5.h: Likewise.
24892         * lib/sha1.h: Likewise.
24893         * lib/sha256.h: Likewise.
24894         * lib/sha512.h: Likewise.
24895
24896         tests-sha1: don't assign literal string to 'char *' variable
24897         * tests/test-sha1.c (main): Declare locals with "const" to match
24898         attributes of the right hand side.
24899
24900 2009-07-21  Eric Blake  <ebb9@byu.net>
24901
24902         dup2: fix more mingw problems
24903         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
24904         fd to itself.
24905         * doc/posix-functions/dup2.texi (dup2): Document the bug.
24906         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
24907         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
24908         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
24909         care of mingw bugs.
24910
24911 2009-07-21  Jim Meyering  <meyering@redhat.com>
24912
24913         vc-list-files: avoid failure when /bin/sh is dash
24914         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
24915         On some Debian based systems, /bin/sh is a symlink to dash, and running
24916         this command would omit the "/" following each 'tests' prefix:
24917           dash -x build-aux/vc-list-files -C . tests
24918         That is because bash and dash work differently:
24919           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
24920           bash ok
24921           dash odd
24922
24923 2009-07-21  Eric Blake  <ebb9@byu.net>
24924
24925         dup2-tests: test previous patch
24926         * modules/dup2-tests: New file.
24927         * tests/test-dup2.c: Likewise.
24928         * tests/test-open.c (main): Avoid unspecified behavior.
24929         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
24930         test.
24931
24932         dup2: work around mingw and cygwin 1.5 bug
24933         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
24934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24935         * modules/unistd (Makefile.am): Substitute it.
24936         * lib/unistd.in.h (dup2): Declare the replacement.
24937         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
24938         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
24939         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
24940         * modules/execute (Depends-on): Add dup2.
24941         * modules/fseterr (Depends-on): Likewise.
24942         * modules/pipe (Depends-on): Likewise.
24943         * modules/posix_spawn-internal (Depends-on): Likewise.
24944
24945 2009-07-21  Bruno Haible  <bruno@clisp.org>
24946
24947         * modules/.gitattributes: New file.
24948
24949 2009-07-20  Bruno Haible  <bruno@clisp.org>
24950
24951         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
24952         (main): Use it.
24953
24954 2009-07-20  Eric Blake  <ebb9@byu.net>
24955
24956         test-pipe: make a bit more robust.
24957         * tests/test-pipe.c (myerr): Allow error messages regardless of
24958         what we do to stderr.
24959         (test_pipe): Rearrange to avoid deadlock.
24960         (child_main): Try a larger read, to ensure we avoided deadlock.
24961         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
24962         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
24963         if misused.
24964
24965 2009-07-19  Jim Meyering  <meyering@redhat.com>
24966
24967         fts: avoid false-positive cycle-detection
24968         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
24969         for each new command line argument.
24970
24971 2009-07-19  Bruno Haible  <bruno@clisp.org>
24972
24973         Fix build error on mingw with the modules sys_select and unistd.
24974         * modules/acl-tests (Depends-on): Add close.
24975         * modules/binary-io-tests (Depends-on): Likewise.
24976         * modules/closein-tests (Depends-on): Likewise.
24977         * modules/flock-tests (Depends-on): Likewise.
24978         * modules/fsync-tests (Depends-on): Likewise.
24979         * modules/lseek-tests (Depends-on): Likewise.
24980         * modules/pipe-tests (Depends-on): Likewise.
24981         * modules/posix_spawn-tests (Depends-on): Likewise.
24982         * modules/posix_spawnp-tests (Depends-on): Likewise.
24983         * modules/stat-time-tests (Depends-on): Likewise.
24984         * modules/yesno-tests (Depends-on): Likewise.
24985
24986 2009-07-19  Bruno Haible  <bruno@clisp.org>
24987
24988         Unify conditionals.
24989         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
24990         macros, not at the compiler macros.
24991         * lib/pipe.c: Likewise.
24992         * lib/execute.c: Likewise.
24993         * lib/spawni.c: Likewise.
24994
24995 2009-07-19  Bruno Haible  <bruno@clisp.org>
24996
24997         Fix handling of closed stdin/stdout/stderr on mingw.
24998         * lib/w32spawn.h: Include unistd.h.
24999         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
25000         file descriptor with O_NOINHERIT flag.
25001         (fd_safer_noinherit): New function, based on fd-safer.c.
25002         (dup_safer_noinherit): New function, based on dup-safer.c.
25003         (undup_safer_noinherit): New function.
25004         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
25005         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
25006         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
25007         instead of fd_safer.
25008         * tests/test-pipe.c: Include <windows.h>.
25009         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
25010
25011         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
25012         from main.
25013         (test_pipe): Pass an extra argument for disambiguation.
25014         (main): Invoke parent_main or child_main.
25015
25016         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
25017         consistently.
25018
25019 2009-07-18  Eric Blake  <ebb9@byu.net>
25020
25021         test-pipe: fix mingw build
25022         * tests/test-pipe.c (main): Avoid fcntl on mingw.
25023
25024 2009-07-18  Bruno Haible  <bruno@clisp.org>
25025
25026         * modules/pipe-tests (Makefile.am): Fix typo.
25027
25028 2009-07-18  Eric Blake  <ebb9@byu.net>
25029
25030         error: fix mingw build
25031         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
25032         Reported by Bruno Haible.
25033
25034         error: avoid undefined use of stdout
25035         * lib/error.c (error, error_at_line): Check that fd 1 is open
25036         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
25037         is handling faults and the close_stdout module wants to report the
25038         detection of closed stdout as an error.
25039
25040 2009-07-17  Eric Blake  <ebb9@byu.net>
25041
25042         pipe: be robust in face of closed fds
25043         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
25044         should cause child to misbehave.
25045         * modules/pipe-tests: New module.
25046         * tests/test-pipe.c: New file.
25047         * tests/test-pipe.sh: New file.
25048         Reported by Akim Demaille.
25049
25050 2009-07-14  Bruno Haible  <bruno@clisp.org>
25051
25052         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
25053         Reported by anonymous kc.
25054
25055 2009-07-07  Jim Meyering  <meyering@redhat.com>
25056
25057         maint.mk: don't look for translatable strings in *.m4 or *.mk
25058         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
25059         when searching for translatable strings.
25060
25061 2009-07-05  Jim Meyering  <meyering@redhat.com>
25062
25063         remove superfluous parentheses in STREQ definition
25064         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
25065         * lib/getugroups.c (STREQ): Likewise.
25066         * lib/fnmatch.c (STREQ): Likewise.
25067         Spotted by Bruno Haible.
25068
25069 2009-07-04  Jim Meyering  <meyering@redhat.com>
25070
25071         argv-iter: new module
25072         * MODULES.html.sh: Add argv-iter.
25073         * lib/argv-iter.c, lib/argv-iter.h: New files.
25074         * modules/argv-iter: New file.
25075         * modules/argv-iter-tests: New file.
25076         * tests/test-argv-iter.c: Test it.
25077
25078 2009-07-04  Bruno Haible  <bruno@clisp.org>
25079
25080         Fix assertion.
25081         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
25082         contains more exact copies of a given entry than file2, leave the extra
25083         copies unpaired rather than aborting.
25084         Reported by Eric Blake.
25085
25086 2009-07-02  Bruno Haible  <bruno@clisp.org>
25087
25088         Speedup git-merge-changelog for git cherry-pick.
25089         * lib/git-merge-changelog.c (struct entries_mapping): New type.
25090         (entries_mapping_get): New function, extracted from compute_mapping.
25091         (entries_mapping_reverse_get): New function.
25092         (compute_mapping): Add a 'full' argument. Return the result in a
25093         'struct entries_mapping'.
25094         (main): Update. Access the mappings through entries_mapping_get.
25095         Reported by Eric Blake.
25096
25097 2009-07-02  Bruno Haible  <bruno@clisp.org>
25098
25099         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
25100         best_i.
25101
25102 2009-07-02  Bruno Haible  <bruno@clisp.org>
25103
25104         Speed up approximate search for matching ChangeLog entries.
25105         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
25106         argument. Call fstrcmp_bounded instead of fstrcmp.
25107         (compute_mapping, try_split_merged_entry, main): Update callers.
25108
25109 2009-07-02  Bruno Haible  <bruno@clisp.org>
25110
25111         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
25112
25113 2009-06-30  Bruno Haible  <bruno@clisp.org>
25114
25115         Reduce the number of uc_is_cased calls.
25116         * lib/unicase.h (casing_suffix_context_t): Add
25117         'first_char_except_ignorable' field.
25118         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
25119         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
25120         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
25121         Update initializer.
25122         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
25123         case-ignorable characters.
25124         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
25125         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
25126         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
25127         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
25128         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
25129
25130 2009-06-30  Bruno Haible  <bruno@clisp.org>
25131
25132         Tests for module 'unicase/ignorable'.
25133         * modules/unicase/ignorable-tests: New file.
25134         * tests/unicase/test-ignorable.c: New file, generated by
25135         gen-uni-tables.
25136
25137         Tests for module 'unicase/cased'.
25138         * modules/unicase/cased-tests: New file.
25139         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
25140         * tests/unicase/test-predicate-part1.h: New file, derived from
25141         tests/unictype/test-predicate-part1.h.
25142         * tests/unicase/test-predicate-part2.h: New file, same as
25143         tests/unictype/test-predicate-part2.h.
25144
25145         Fix evaluation of "Before C" condition of FINAL_SIGMA.
25146         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
25147         (output_casing_properties): New function.
25148         (main): Call it.
25149         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
25150         * lib/unicase/cased.c: Include unictype/bitmap.h.
25151         (uc_is_cased): Define through a bitmap lookup.
25152         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
25153         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
25154         (uc_is_case_ignorable): Define through a bitmap lookup.
25155         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
25156         lib/unictype/bitmap.h.
25157         (Depends-on): Add inline. Clean up.
25158         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
25159         lib/unictype/bitmap.h.
25160         (Depends-on): Add inline. Clean up.
25161         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
25162         recognition.
25163         * tests/unicase/test-u16-tolower.c (main): Likewise.
25164         * tests/unicase/test-u32-tolower.c (main): Likewise.
25165
25166 2009-06-30  Bruno Haible  <bruno@clisp.org>
25167
25168         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
25169         * lib/unicase/u16-casemap.c: Likewise.
25170         * lib/unicase/u32-casemap.c: Likewise.
25171
25172 2009-06-29  Bruno Haible  <bruno@clisp.org>
25173
25174         Define u32_casefold as a wrapper around u32_ct_casefold.
25175         * lib/unicase/u32-casefold.c: Update.
25176         * modules/unicase/u32-casefold (Depends-on): Add
25177         unicase/u32-ct-casefold, unicase/empty-prefix-context,
25178         unicase/empty-suffix-context. Clean up.
25179
25180         Define u16_casefold as a wrapper around u16_ct_casefold.
25181         * lib/unicase/u16-casefold.c: Update.
25182         * modules/unicase/u16-casefold (Depends-on): Add
25183         unicase/u16-ct-casefold, unicase/empty-prefix-context,
25184         unicase/empty-suffix-context. Clean up.
25185
25186         Define u8_casefold as a wrapper around u8_ct_casefold.
25187         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
25188         * lib/unicase/u8-casefold.c: Update.
25189         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
25190         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25191
25192         Define u32_totitle as a wrapper around u32_ct_totitle.
25193         * lib/unicase/u32-totitle.c: Update.
25194         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
25195         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25196
25197         Define u16_totitle as a wrapper around u16_ct_totitle.
25198         * lib/unicase/u16-totitle.c: Update.
25199         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
25200         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25201
25202         Define u8_totitle as a wrapper around u8_ct_totitle.
25203         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
25204         functions.
25205         (FUNC): Delegate to U_CT_TOTITLE.
25206         * lib/unicase/u8-totitle.c: Update.
25207         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
25208         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25209
25210         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
25211         invocation.
25212         * modules/unicase/u32-tolower (Depends-on): Add
25213         unicase/empty-prefix-context, unicase/empty-suffix-context.
25214
25215         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
25216         invocation.
25217         * modules/unicase/u16-tolower (Depends-on): Add
25218         unicase/empty-prefix-context, unicase/empty-suffix-context.
25219
25220         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
25221         * modules/unicase/u8-tolower (Depends-on): Add
25222         unicase/empty-prefix-context, unicase/empty-suffix-context.
25223
25224         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
25225         invocation.
25226         * modules/unicase/u32-toupper (Depends-on): Add
25227         unicase/empty-prefix-context, unicase/empty-suffix-context.
25228
25229         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
25230         invocation.
25231         * modules/unicase/u16-toupper (Depends-on): Add
25232         unicase/empty-prefix-context, unicase/empty-suffix-context.
25233
25234         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
25235         * modules/unicase/u8-toupper (Depends-on): Add
25236         unicase/empty-prefix-context, unicase/empty-suffix-context.
25237
25238         New module 'unicase/u32-ct-casefold'.
25239         * lib/unicase/u32-ct-casefold.c: New file.
25240         * modules/unicase/u32-ct-casefold: New file.
25241
25242         New module 'unicase/u16-ct-casefold'.
25243         * lib/unicase/u16-ct-casefold.c: New file.
25244         * modules/unicase/u16-ct-casefold: New file.
25245
25246         New module 'unicase/u8-ct-casefold'.
25247         * lib/unicase/u8-ct-casefold.c: New file.
25248         * lib/unicase/u-ct-casefold.h: New file, derived from
25249         lib/unicase/u-casefold.h.
25250         * modules/unicase/u8-ct-casefold: New file.
25251
25252         New module 'unicase/u32-ct-totitle'.
25253         * lib/unicase/u32-ct-totitle.c: New file.
25254         * modules/unicase/u32-ct-totitle: New file.
25255
25256         New module 'unicase/u16-ct-totitle'.
25257         * lib/unicase/u16-ct-totitle.c: New file.
25258         * modules/unicase/u16-ct-totitle: New file.
25259
25260         New module 'unicase/u8-ct-totitle'.
25261         * lib/unicase/u8-ct-totitle.c: New file.
25262         * lib/unicase/u-ct-totitle.h: New file, derived from
25263         lib/unicase/u-totitle.h.
25264         * modules/unicase/u8-ct-totitle: New file.
25265
25266         New module 'unicase/u32-ct-tolower'.
25267         * lib/unicase/u32-ct-tolower.c: New file.
25268         * modules/unicase/u32-ct-tolower: New file.
25269
25270         New module 'unicase/u16-ct-tolower'.
25271         * lib/unicase/u16-ct-tolower.c: New file.
25272         * modules/unicase/u16-ct-tolower: New file.
25273
25274         New module 'unicase/u8-ct-tolower'.
25275         * lib/unicase/u8-ct-tolower.c: New file.
25276         * modules/unicase/u8-ct-tolower: New file.
25277
25278         New module 'unicase/u32-ct-toupper'.
25279         * lib/unicase/u32-ct-toupper.c: New file.
25280         * modules/unicase/u32-ct-toupper: New file.
25281
25282         New module 'unicase/u16-ct-toupper'.
25283         * lib/unicase/u16-ct-toupper.c: New file.
25284         * modules/unicase/u16-ct-toupper: New file.
25285
25286         New module 'unicase/u8-ct-toupper'.
25287         * lib/unicase/u8-ct-toupper.c: New file.
25288         * modules/unicase/u8-ct-toupper: New file.
25289
25290         Add context arguments to u*_casemap functions.
25291         * lib/unicase/unicasemap.h: Include unicase.h.
25292         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
25293         suffix_context arguments.
25294         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
25295         functions.
25296         (FUNC): Add prefix_context and suffix_context arguments. Use
25297         uc_is_cased and uc_is_case_ignorable.
25298         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
25299         * lib/unicase/u16-casemap.c: Likewise.
25300         * lib/unicase/u32-casemap.c: Likewise.
25301         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
25302         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25303         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
25304         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25305         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
25306         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25307
25308         New module 'unicase/u32-suffix-context'.
25309         * lib/unicase/u32-suffix-context.c: New file.
25310         * modules/unicase/u32-suffix-context: New file.
25311
25312         New module 'unicase/u16-suffix-context'.
25313         * lib/unicase/u16-suffix-context.c: New file.
25314         * modules/unicase/u16-suffix-context: New file.
25315
25316         New module 'unicase/u8-suffix-context'.
25317         * lib/unicase/u8-suffix-context.c: New file.
25318         * lib/unicase/u-suffix-context.h: New file.
25319         * modules/unicase/u8-suffix-context: New file.
25320
25321         New module 'unicase/empty-suffix-context'.
25322         * lib/unicase/empty-suffix-context.c: New file.
25323         * modules/unicase/empty-suffix-context: New file.
25324
25325         New module 'unicase/u32-prefix-context'.
25326         * lib/unicase/u32-prefix-context.c: New file.
25327         * modules/unicase/u32-prefix-context: New file.
25328
25329         New module 'unicase/u16-prefix-context'.
25330         * lib/unicase/u16-prefix-context.c: New file.
25331         * modules/unicase/u16-prefix-context: New file.
25332
25333         New module 'unicase/u8-prefix-context'.
25334         * lib/unicase/u8-prefix-context.c: New file.
25335         * lib/unicase/u-prefix-context.h: New file.
25336         * lib/unicase/context.h: New file.
25337         * modules/unicase/u8-prefix-context: New file.
25338
25339         New module 'unicase/empty-prefix-context'.
25340         * lib/unicase/empty-prefix-context.c: New file.
25341         * modules/unicase/empty-prefix-context: New file.
25342
25343         New module 'unicase/ignorable'.
25344         * lib/unicase/ignorable.c: New file.
25345         * modules/unicase/ignorable: New file.
25346
25347         New module 'unicase/cased'.
25348         * lib/unicase/caseprop.h: New file.
25349         * lib/unicase/cased.c: New file.
25350         * modules/unicase/cased: New file.
25351
25352         New functions for case mapping of substrings.
25353         * lib/unicase.h (casing_prefix_context_t): New type.
25354         (unicase_empty_prefix_context): New variable.
25355         (u8_casing_prefix_context, u16_casing_prefix_context,
25356         u32_casing_prefix_context, u8_casing_prefixes_context,
25357         u16_casing_prefixes_context, u32_casing_prefixes_context): New
25358         declarations.
25359         (casing_suffix_context_t): New type.
25360         (unicase_empty_suffix_context): New variable.
25361         (u8_casing_suffix_context, u16_casing_suffix_context,
25362         u32_casing_suffix_context, u8_casing_suffixes_context,
25363         u16_casing_suffixes_context, u32_casing_suffixes_context,
25364         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
25365         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
25366         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
25367         declarations.
25368
25369 2009-06-28  Jim Meyering  <meyering@redhat.com>
25370
25371         boostrap: indent only with spaces
25372         * build-aux/bootstrap: Indent only with spaces, never TABs.
25373
25374         bootstrap: split long lines
25375         * build-aux/bootstrap: Keep line length < 80.
25376
25377         bootstrap: sync from coreutils
25378         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
25379         just as autoreconf does.  Verify a list of prerequisite
25380         package-name,version-number pairs if defined in bootstrap.conf.
25381         Refer to README-prereq, if prerequisites are not satisfied.
25382
25383 2009-06-27  Eric Blake  <ebb9@byu.net>
25384
25385         tests: add test for bogus NULL definition
25386         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
25387         * tests/test-stdlib.c: Likewise.
25388         * tests/test-string.c: Likewise.
25389         * tests/test-locale.c: Likewise.
25390         * tests/test-unistd.c: Likewise.
25391         * modules/stdio-tests (Depends-on): Add verify.
25392         * modules/stdlib-tests (Depends-on): Likewise.
25393         * modules/string-tests (Depends-on): Likewise.
25394         * modules/locale-tests (Depends-on): Likewise.
25395         * modules/unistd-tests (Depends-on): Likewise.
25396
25397 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
25398
25399         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
25400         self-explaining comment.
25401         * m4/selinux-selinux-h: Update serial.
25402         (gl_LIBSELINUX): New macro, adding a warning for missing development
25403         packages to code extracted from...
25404         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
25405         Add warning for missing development packages here, too.
25406
25407 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
25408
25409         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
25410
25411 2009-06-25  Eric Blake  <ebb9@byu.net>
25412
25413         version-etc: fix regression
25414         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
25415         gcc.
25416         (version_etc): Use it, to catch bugs with trailing NULL.
25417         * lib/version-etc.c (version_etc_arn): Delete unused argument.
25418         (version_etc_va): Fix logic bug.
25419         * modules/version-etc-tests: Add test.
25420         * tests/test-version-etc.c: New file.
25421         * tests/test-version-etc.sh: Likewise.
25422
25423 2009-06-25  Sam Steingold  <sds@gnu.org>
25424
25425         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
25426         mbtowc declaration.
25427
25428 2009-06-25  Eric Blake  <ebb9@byu.net>
25429
25430         fpurge: migrate into <stdio.h>
25431         * lib/fpurge.h: Delete...
25432         * lib/stdio.in.h (fpurge): ...and declare here, instead.
25433         * lib/fpurge.c (fpurge): Change declaring header.
25434         * modules/fpurge (Files): Drop deleted file.
25435         (Depends-on): Add stdio.
25436         (configure.ac): Set witness.
25437         * modules/stdio (Makefile.am): Support fpurge macros.
25438         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25439         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
25440         * lib/fflush.c: Update client.
25441         * tests/test-fpurge.c: Likewise.
25442         * NEWS: Mention the change.
25443
25444 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25445
25446         * lib/argp-version-etc.c (program_authors): Add const
25447         qualifier.
25448         * lib/version-etc.c: Fix typos in the comments.
25449         * modules/argp-version-etc: Depends on version-etc.
25450
25451 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25452
25453         argp-version-etc: new module.
25454
25455         * lib/argp-version-etc.c: New file.
25456         * lib/argp-version-etc.h: New file.
25457         * modules/argp-version-etc: New file.
25458         * modules/argp-version-etc-tests: New file.
25459         * tests/test-argp-version-etc.c: New test.
25460         * tests/test-argp-version-etc-1.sh: New test.
25461
25462 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25463
25464         Provide additional interfaces and documentation for version-etc
25465         module.
25466
25467         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
25468         interfaces.
25469         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
25470         prototypes.
25471
25472 2009-06-24  Bruno Haible  <bruno@clisp.org>
25473
25474         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
25475         HAVE_LIB${NAME} macro.
25476         Reported by Sam Steingold <sds@gnu.org>.
25477
25478 2009-06-23  Simon Josefsson  <simon@josefsson.org>
25479
25480         * modules/hash-tests (test_hash_LDADD): Link to libintl when
25481         needed.
25482
25483 2009-06-21  Bruno Haible  <bruno@clisp.org>
25484
25485         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
25486         work.
25487         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
25488         together with LIB${NAME}, LTLIB${NAME}.
25489         Reported by Sam Steingold <sds@gnu.org>.
25490
25491 2009-06-20  Jim Meyering  <meyering@redhat.com>
25492
25493         tests: make sc_require_test_exit_idiom more generic
25494         * top/maint.mk (Exit_witness_file): New overridable variable.
25495         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
25496         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
25497
25498 2009-06-19  Jim Meyering  <meyering@redhat.com>
25499
25500         hash: reverse order of src/dst parameters in an internal interface
25501         * lib/hash.c (transfer_entries): Reverse order of parameters to
25502         put DST before SRC.  Adjust callers.
25503
25504         tests: test-hash: avoid wholesale duplication
25505         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
25506         Instead, use a loop and add a single conditional.
25507
25508         tests: test-hash: allow seed selection via a command line argument
25509         * tests/test-hash.c (get_seed): New function.
25510         (main): Use it.
25511
25512 2009-06-19  Eric Blake  <ebb9@byu.net>
25513
25514         hash: avoid memory leak on allocation failure
25515         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
25516         failure.  Factor repeated algorithm...
25517         (transfer_entries): ...into new helper routine.
25518         (hash_delete): React to hash_rehash return value.
25519
25520         hash: reduce memory pressure in hash_rehash no-op case
25521         * lib/hash.c (next_prime): Avoid overflow.
25522         (hash_initialize): Factor bucket size computation...
25523         (compute_bucket_size): ...into new helper function.
25524         (hash_rehash): Use new function and open coding to reduce memory
25525         pressure, and avoid a memory leak in USE_OBSTACK code.
25526         Reported by Jim Meyering.
25527
25528 2009-06-18  Eric Blake  <ebb9@byu.net>
25529
25530         hash: make rotation more obvious
25531         * modules/hash (Depends-on): Add bitrotate and stdint.
25532         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
25533         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
25534         (SIZE_MAX): Rely on headers for definition.
25535         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
25536         (raw_hasher): Use rotr_sz.
25537         Suggested by Jim Meyering.
25538
25539         hash: fix memory leak in last patch
25540         * lib/hash.c (hash_rehash): Avoid memory leak.
25541
25542         hash: avoid no-op rehashing
25543         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
25544
25545         hash: provide default callback functions
25546         * lib/hash.c (raw_hasher, raw_comparator): New functions.
25547         (hash_initialize): Use them as defaults.
25548         * tests/test-hash.c (main): Test this.
25549
25550         hash: minor optimization
25551         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
25552         when possible.
25553         (hash_initialize): Document this promise.
25554         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
25555         * tests/test-hash.c (hash_compare_strings): Test this.
25556
25557 2009-06-18  Bruno Haible  <bruno@clisp.org>
25558
25559         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
25560         going to be replaced anyway.
25561
25562 2009-06-18  Bruno Haible  <bruno@clisp.org>
25563
25564         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
25565         in one place.
25566         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
25567         be replaced anyway.
25568
25569 2009-06-18  Eric Blake  <ebb9@byu.net>
25570
25571         hash: check for resize before insertion
25572         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
25573         threshold before insertion, so that a pathological hash_rehash
25574         that fills every bucket can still trigger another rehash.
25575
25576 2009-06-18  Jim Meyering  <meyering@redhat.com>
25577
25578         hash-tests: add a loop around the small tests
25579         * tests/test-hash.c (main): Repeat small tests with selected
25580         small initial table sizes.
25581
25582 2009-06-17  Eric Blake  <ebb9@byu.net>
25583
25584         hash: minor cleanups
25585         * lib/hash.h (hash_entry): Make opaque, by moving...
25586         * lib/hash.c (hash_entry): ...here.
25587         (hash_insert): Clarify restrictions on what can be inserted.
25588         (hash_get_next): Clarify when it is safe to remove an element
25589         during traversal.
25590         (check_tuning): Skip verification when tuning is known safe.
25591         (hash_initialize): Clarify restrictions on tuning.
25592
25593 2009-06-17  Jim Meyering  <jim@meyering.net>
25594         and Eric Blake  <ebb9@byu.net>
25595
25596         hash-tests: new module
25597         * modules/hash-tests: New file.
25598         * tests/test-hash.c: New file.
25599
25600 2009-06-17  Eric Blake  <ebb9@byu.net>
25601
25602         strstr-simple: document new module
25603         * MODULES.html.sh: Document new module.
25604
25605         strstr, strcasestr: replace on platforms with broken memchr
25606         * modules/strstr: Split into...
25607         * modules/strstr-simple: ...new module that does not care about
25608         performance, but does care about glibc bug.
25609         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
25610         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
25611         if platform memchr is broken, per Debian bug 521737.
25612         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
25613         memchr.
25614         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
25615         * doc/posix-functions/strstr.texi (strstr): Document the fix.
25616         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25617         * modules/mountlist (Depends-on): Add strstr-simple.
25618         * modules/gen-uni-tables (Depends-on): Likewise.
25619         * modules/argz (Depends-on): Add strstr.
25620
25621 2009-06-17  Bruno Haible  <bruno@clisp.org>
25622
25623         * modules/posix_spawn-internal (Depends-on): Add errno.
25624
25625 2009-06-17  Bruno Haible  <bruno@clisp.org>
25626
25627         Define missing ESTALE on Interix 3.5.
25628         * lib/errno.in.h (ESTALE): Assign a value if missing.
25629         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
25630         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
25631         missing.
25632         * doc/posix-headers/errno.texi: Mention the Interix bug.
25633         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
25634
25635 2009-06-15  Eric Blake  <ebb9@byu.net>
25636
25637         memchr, memchr2: add valgrind exception
25638         * lib/memchr.valgrind: New file.
25639         * lib/memchr2.valgrind: New file.
25640         * modules/memchr (Files): Distribute valgrind file.
25641         * modules/memchr2 (Files): Likewise.
25642
25643         docs: memchr is no longer obsolete
25644         * MODULES.html.sh: Move memchr from obsolete to string.h section.
25645         * lib/string.in.h (memchr): Simplify logic.
25646
25647 2009-06-14  Jim Meyering  <meyering@redhat.com>
25648
25649         link-follow: fix the "checking..." message to not mention trailing slash
25650         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
25651         never considered trailing slashes.
25652
25653 2009-06-14  Bruno Haible  <bruno@clisp.org>
25654
25655         * m4/memchr.m4: Mention also the bug on IA-64.
25656         * doc/posix-functions/memchr.texi: Likewise.
25657
25658 2009-06-12  Eric Blake  <ebb9@byu.net>
25659
25660         memchr: detect broken x86_64 and alpha implementations
25661         * modules/memchr-tests (Depends-on): Move mmap detection...
25662         * modules/memchr (Depends-on): ...here.
25663         (configure.ac): Set indicator.
25664         * lib/string.in.h (memchr): Declare replacement.
25665         * modules/string (Makefile.am): Trigger replacement.
25666         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
25667         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
25668         bugs.
25669         * doc/posix-functions/memchr.texi (memchr): Document the bug.
25670         * modules/getpagesize (License): Relax license.
25671
25672 2009-06-11  Bruno Haible  <bruno@clisp.org>
25673
25674         * lib/idpriv.h: Add more references.
25675
25676 2009-06-08  Bruno Haible  <bruno@clisp.org>
25677
25678         Tests for module 'idpriv-droptemp'.
25679         * modules/idpriv-droptemp-tests: New file.
25680         * tests/test-idpriv-droptemp.sh: New file.
25681         * tests/test-idpriv-droptemp.su.sh: New file.
25682         * tests/test-idpriv-droptemp.c: New file.
25683
25684         New module 'idpriv-droptemp'.
25685         * lib/idpriv-droptemp.c: New file.
25686         * modules/idpriv-droptemp: New file.
25687
25688 2009-06-08  Bruno Haible  <bruno@clisp.org>
25689
25690         Tests for module 'idpriv-drop'.
25691         * modules/idpriv-drop-tests: New file.
25692         * tests/test-idpriv-drop.sh: New file.
25693         * tests/test-idpriv-drop.su.sh: New file.
25694         * tests/test-idpriv-drop.c: New file.
25695
25696         New module 'idpriv-drop'.
25697         * lib/idpriv.h: New file.
25698         * lib-idpriv-drop.c: New file.
25699         * m4/idpriv.m4: New file.
25700         * modules/idpriv-drop: New file.
25701
25702 2009-06-08  Bruno Haible  <bruno@clisp.org>
25703
25704         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
25705         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25706         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25707         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25708         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25709         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25710         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25711
25712 2009-06-08  Eric Blake  <ebb9@byu.net>
25713
25714         test-strstr: use memory fence, when possible
25715         * tests/test-strstr.c (main): Use memory fence, in order to be
25716         more likely to trigger Debian bug 521737.
25717         * modules/strstr-tests (Files): Pull in additional files.
25718
25719         memchr: no longer obsolete, for wider field testing
25720         * modules/memchr (Status, Notice): Delete, this module is no
25721         longer obsolete.
25722         * modules/vasnprintf (Depends-on): Add memchr.
25723
25724 2009-06-07  Jim Meyering  <meyering@redhat.com>
25725
25726         hash: declare some functions with the warn_unused_result attribute
25727         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
25728
25729 2009-06-07  Bruno Haible  <bruno@clisp.org>
25730
25731         * tests/test-alignof.c: Don't test int64_t if it does not exist.
25732         Reported by Eric Blake.
25733
25734 2009-06-06  Eric Blake  <ebb9@byu.net>
25735
25736         test-alignof: fix typo with long double
25737         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
25738         compiler error.
25739
25740 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
25741
25742         Escape non-texinfo { and }s.
25743         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
25744         markup error.
25745
25746 2009-06-04  Jim Meyering  <meyering@redhat.com>
25747
25748         gitlog-to-changelog: don't infloop on an empty commit log
25749         * build-aux/gitlog-to-changelog: Warn about an empty log message.
25750         Reported by Boris Petersen <transacid@centerim.org>.
25751
25752 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
25753
25754         version-etc: extend for packagers
25755         Add three new configure options, intended for packagers:
25756           --with-packager="packager name"
25757           --with-packager-version="packager-specific version"
25758           --with-packager-bug-reports="packager bug reporting"
25759         An example with coreutils:
25760           $ ./configure \
25761             --with-packager=Gentoo \
25762             --with-packager-bug-report=http://bugs.gentoo.org/ \
25763             --with-packager-version="patchset 1.6"
25764           $ ./src/ls --version | head -n2
25765           ls (GNU coreutils) 7.1-dirty
25766           Packaged by Gentoo (patchset 1.6)
25767         Note that the bug reporting info via --help doesn't show up because
25768         coreutils uses its own custom emit_bug_reporting_address() implementation
25769         in src/system.h.  If it didn't, it'd look like:
25770           $ ./src/ls --help | tail -n4
25771           Report bugs to <bug-coreutils@gnu.org>.
25772           Report Gentoo bugs to <http://bugs.gentoo.org/>.
25773           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
25774           General help using GNU software: <http://www.gnu.org/gethelp/>.
25775         * lib/version-etc.c: Print new information, if provided.
25776         * m4/version-etc.m4: New file.
25777         * modules/version-etc (Files): Add m4/version-etc.m4.
25778         (configure.ac): Add gl_VERSION_ETC.
25779
25780 2009-05-31  Bruno Haible  <bruno@clisp.org>
25781
25782         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
25783         and 'int64_t'.
25784         * modules/alignof-tests (Dependencies): Add stdint.
25785         Reported by Eric Blake.
25786
25787 2009-05-31  Bruno Haible  <bruno@clisp.org>
25788
25789         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
25790         restriction due to compiler bugs.
25791         Reported by Eric Blake.
25792
25793 2009-05-31  Simon Josefsson  <simon@josefsson.org>
25794             Bruno Haible  <bruno@clisp.org>
25795
25796         Fix test-alignof failure.
25797         * lib/alignof.h (alignof_slot): New macro.
25798         (alignof_type): New macro, with the same semantics as the previous
25799         'alignof'.
25800         (alignof): Alias to alignof_slot.
25801         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
25802         check that the results are usable as constant expressions.
25803
25804 2009-05-31  Bruno Haible  <bruno@clisp.org>
25805
25806         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
25807         * tests/test-memchr.c (main): Check that memchr does not read past the
25808         first occurrence of the byte.
25809         * tests/test-strstr.c (main): Update comment.
25810         Suggested by Eric Blake.
25811
25812 2009-05-30  Bruno Haible  <bruno@clisp.org>
25813
25814         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
25815         detail how to use dumpbin.
25816         Reported by David Byron <dbyron@dbyron.com>.
25817
25818 2009-06-02  Simon Josefsson  <simon@josefsson.org>
25819
25820         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
25821
25822 2009-06-02  Simon Josefsson  <simon@josefsson.org>
25823
25824         * m4/manywarnings.m4: Add GCC 4.4 warnings.
25825
25826 2009-05-28  Bruno Haible  <bruno@clisp.org>
25827
25828         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
25829         build-aux/ files.
25830
25831 2009-05-28  Simon Josefsson  <simon@josefsson.org>
25832
25833         * gnulib-tool (func_import): Transform license on build-aux/ files too.
25834
25835 2009-05-27  Simon Josefsson  <simon@josefsson.org>
25836
25837         * gnulib-tool (sed_transform_main_lib_file)
25838         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
25839         regexps.
25840
25841 2009-05-26  Simon Josefsson  <simon@josefsson.org>
25842
25843         * tests/test-strstr.c: Add another self-test.
25844         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
25845         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
25846
25847 2009-05-23  Bruno Haible  <bruno@clisp.org>
25848
25849         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
25850         change.
25851
25852 2009-05-21  Bruno Haible  <bruno@clisp.org>
25853
25854         Simplify use of mode_t varargs.
25855         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
25856         uses 'mode_t' or 'int'.
25857         * lib/openat.c (openat): Likewise.
25858         * lib/open-safer.c (open_safer): Likewise.
25859         * m4/mode_t.m4: New file.
25860         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
25861         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
25862         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
25863         * modules/open (Files): Add m4/mode_t.m4.
25864         * modules/openat (Files): Likewise.
25865         * modules/fcntl-safer (Files): Likewise.
25866         Suggested by Eric Blake.
25867
25868 2009-05-21  Pádraig Brady  <P@draigbrady.com>
25869
25870         * doc/glibc-functions/fallocate.texi: New file.
25871         * doc/gnulib.texi: Include it.
25872
25873 2009-05-21  Eric Blake  <ebb9@byu.net>
25874             Bruno Haible  <bruno@clisp.org>
25875
25876         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
25877         invocations.
25878         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25879
25880 2009-05-21  Eric Blake  <ebb9@byu.net>
25881             Bruno Haible  <bruno@clisp.org>
25882
25883         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
25884         include_next. Fix of 2008-11-20 commit.
25885         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
25886         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
25887         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
25888         NEXT_MATH_H.
25889         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
25890         instead of NEXT_MATH_H.
25891
25892 2009-05-21  Bruno Haible  <bruno@clisp.org>
25893
25894         Avoid redefinition warnings for SIZE_MAX.
25895         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
25896         Reported by Simon Josefsson.
25897
25898 2009-05-21  Bruno Haible  <bruno@clisp.org>
25899
25900         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
25901         AC_CACHE_VAL.
25902
25903 2009-05-20  Bruno Haible  <bruno@clisp.org>
25904
25905         Make zeroptr.h work on mingw.
25906         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
25907         mprotect.
25908         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
25909         * modules/memchr2-tests (configure.ac): Likewise.
25910         * modules/memcmp-tests (configure.ac): Likewise.
25911         * modules/memmem-tests (configure.ac): Likewise.
25912         * modules/memrchr-tests (configure.ac): Likewise.
25913         Reported by Simon Josefsson.
25914
25915 2009-05-20  Simon Josefsson  <simon@josefsson.org>
25916
25917         * tests/test-glob.c: Include string.h for strcmp prototype.
25918
25919 2009-05-20  Simon Josefsson  <simon@josefsson.org>
25920
25921         * modules/getdelim (Depends-on): Add explicit stdint, although it
25922         was implicitly already pulled in via realloc-posix.
25923         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
25924
25925 2009-05-20  Simon Josefsson  <simon@josefsson.org>
25926
25927         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
25928         G. Christensen" <tgc@jupiterrise.com>.
25929         * m4/sys_socket_h.m4: Check for sa_family_t.
25930         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
25931         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
25932         * tests/test-sys_socket.c: Check that sa_family_t works.
25933
25934 2009-05-18  Eric Blake  <ebb9@byu.net>
25935
25936         maint.mk: allow gnulib_dir in VPATH build
25937         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
25938
25939 2009-05-15  Jim Meyering  <meyering@redhat.com>
25940
25941         maint.mk: Give gnulib_dir a default definition.
25942         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
25943         Thus, most packages no longer need to specify this variable in cfg.mk
25944
25945 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
25946
25947         rename.m4: fix typos that would make non-mingw cross-configure fail
25948         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
25949
25950 2009-05-13  Eric Blake  <ebb9@byu.net>
25951
25952         mmap-anon: avoid out-of-order autoconf expansion
25953         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
25954         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
25955         * modules/memchr-tests (Depends-on): Add extensions.
25956         * modules/memchr2-tests (Depends-on): Add extensions.
25957         * modules/memcmp-tests (Depends-on): Add extensions.
25958         * modules/memmem-tests (Depends-on): Add extensions.
25959         * modules/memrchr-tests (Depends-on): Add extensions.
25960
25961 2009-05-13  Bruno Haible  <bruno@clisp.org>
25962
25963         Make some tests ISO C 99 compliant.
25964         * tests/zerosize-ptr.h: New file.
25965         * tests/test-memchr.c: Include zerosize-ptr.h.
25966         (main): Use a zero-size object pointer instead of NULL.
25967         * tests/test-memchr2.c: Include zerosize-ptr.h.
25968         (main): Use a zero-size object pointer instead of NULL.
25969         * tests/test-memcmp.c: Include zerosize-ptr.h.
25970         (main): Use a zero-size object pointer instead of NULL.
25971         * tests/test-memmem.c: Include zerosize-ptr.h.
25972         (main): Use a zero-size object pointer instead of NULL.
25973         * tests/test-memrchr.c: Include zerosize-ptr.h.
25974         (main): Use a zero-size object pointer instead of NULL.
25975         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
25976         m4/mmap-anon.m4.
25977         (Depends-on): Add getpagesize.
25978         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25979         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
25980         m4/mmap-anon.m4.
25981         (Depends-on): Add getpagesize.
25982         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25983         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
25984         m4/mmap-anon.m4.
25985         (Depends-on): Add getpagesize.
25986         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25987         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
25988         m4/mmap-anon.m4.
25989         (Depends-on): Add getpagesize.
25990         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25991         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
25992         m4/mmap-anon.m4.
25993         (Depends-on): Add getpagesize.
25994         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25995
25996 2009-05-12  Bruno Haible  <bruno@clisp.org>
25997
25998         Tests for module 'alignof'.
25999         * modules/alignof-tests: New file.
26000         * tests/test-alignof.c: New file.
26001
26002 2009-05-12  Bruno Haible  <bruno@clisp.org>
26003
26004         Fix alignof macro.
26005         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
26006         vendor compilers that are always correct.
26007
26008 2009-05-12  Bruno Haible  <bruno@clisp.org>
26009
26010         Make the MAP_ANONYMOUS detection work on HP-UX 11.
26011         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
26012         not whether its fully works.
26013
26014 2009-05-12  Bruno Haible  <bruno@clisp.org>
26015
26016         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
26017
26018 2009-05-12  Jim Meyering  <meyering@redhat.com>
26019
26020         * top/maint.mk: Adjust backslash alignment.
26021
26022 2009-05-11  Simon Josefsson  <simon@josefsson.org>
26023
26024         * top/maint.mk: Make $(srcdir)/build-aux configurable.
26025
26026 2009-05-11  Eric Blake  <ebb9@byu.net>
26027
26028         argp: avoid undefined behavior
26029         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
26030         macros.
26031
26032 2009-05-08  Simon Josefsson  <simon@josefsson.org>
26033
26034         * tests/test-vc-list-files-git.sh: Do git config of user.email and
26035         user.name to prevent git commit from complaining.
26036
26037 2009-05-10  Bruno Haible  <bruno@clisp.org>
26038
26039         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
26040         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
26041         it rewrites every file name only once.
26042         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
26043
26044 2009-05-08  Bruno Haible  <bruno@clisp.org>
26045
26046         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
26047         instead of 'max'.
26048
26049 2009-05-08  Simon Josefsson  <simon@josefsson.org>
26050
26051         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
26052         sockaddr_storage test.
26053
26054 2009-05-07  Simon Josefsson  <simon@josefsson.org>
26055
26056         * modules/sys_socket (Makefile.am): Substitute
26057         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
26058         * m4/sys_socket_h.m4: Check for sockaddr_storage.
26059         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
26060         * tests/test-sys_socket.c: Check sockaddr_storage.
26061
26062 2009-05-08  Bruno Haible  <bruno@clisp.org>
26063
26064         New module 'alignof'.
26065         * lib/alignof.h: New file.
26066         * modules/alignof: New file.
26067
26068 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26069             Bruno Haible  <bruno@clisp.org>
26070
26071         Fix test-file-has-acl on FreeBSD.
26072         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
26073         mask is implicitly added.
26074         * tests/test-file-has-acl.c: Include <signal.h>.
26075         (main): Terminate the test after 5 seconds.
26076         * modules/acl-tests (configure.ac): Check for alarm function.
26077
26078 2009-05-04  Bruno Haible  <bruno@clisp.org>
26079
26080         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
26081         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
26082         * modules/errno (configure.ac): Drop AC_REQUIRE.
26083         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
26084         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
26085
26086 2009-05-04  Simon Josefsson  <simon@josefsson.org>
26087
26088         * modules/glob-tests: New module.
26089         * tests/test-glob.c: Add.
26090
26091 2009-05-04  Simon Josefsson  <simon@josefsson.org>
26092
26093         * modules/fnmatch-tests: New module.
26094         * tests/test-fnmatch.c: Add.
26095
26096 2009-05-04  Eric Blake  <ebb9@byu.net>
26097
26098         maint: make the new no-submodule-changes rule VPATH-safe
26099         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
26100
26101 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26102             Bruno Haible  <bruno@clisp.org>
26103
26104         acl: Fix infinite loop on FreeBSD.
26105         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
26106         of return value from acl_get_entry.
26107         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
26108         Likewise.
26109
26110 2009-05-03  Bruno Haible  <bruno@clisp.org>
26111
26112         * lib/acl-internal.h (acl_entries): Clarify return value.
26113         * lib/acl_entries.c (acl_entries): Likewise.
26114
26115 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26116
26117         Bug fix in acl module.
26118         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
26119
26120 2009-05-03  Bruno Haible  <bruno@clisp.org>
26121
26122         Create gperf-generated file in the source dir, not in the build dir.
26123         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
26124         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
26125         * modules/unicase/locale-language (unicase/locale-languages.h):
26126         Likewise.
26127         * modules/unicase/special-casing (unicase/special-casing-table.h):
26128         Likewise.
26129         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
26130         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
26131         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
26132         Reported by Ralf Wildenhues.
26133
26134 2009-05-03  Bruno Haible  <bruno@clisp.org>
26135
26136         * modules/fnmatch (Description, configure.ac): Taken from
26137         fnmatch-posix.
26138         * modules/fnmatch-posix: Turn into a symbolic reference to the
26139         'fnmatch' module, and deprecate.
26140         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
26141
26142 2009-05-03  Bruno Haible  <bruno@clisp.org>
26143
26144         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
26145         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
26146         Reported by Ralf Wildenhues.
26147
26148 2009-05-04  Simon Josefsson  <simon@josefsson.org>
26149
26150         * m4/fnmatch.m4: Fix fnmatch re-define.
26151
26152 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26153
26154         priv-set: new module and tests; adapt write-any-file
26155         * lib/priv-set.c: New file.
26156         * lib/priv-set.h: New file.
26157         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
26158         * lib/write-any-file.c: Simplify by using priv-set module.
26159         * m4/priv-set.m4: New file.
26160         * modules/priv-set: New file.
26161         * modules/unlinkdir: Add dependency on priv-set module.
26162         * modules/write-any-file: Likewise.
26163
26164         Tests for module 'priv-set'.
26165         * modules/priv-set-tests: New file.
26166         * tests/test-priv-set.c: New file.
26167
26168 2009-05-03  Jim Meyering  <meyering@redhat.com>
26169             Bruno Haible  <bruno@clisp.org>
26170
26171         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
26172         use the converted UTF-8 variant of the name instead.
26173
26174 2009-05-03  Jim Meyering  <meyering@redhat.com>
26175
26176         tests: tighten some getdate tests
26177         * tests/test-getdate.c (main): Tighten tests: require equality,
26178         not just greater than.  Set TZ envvar to UTC0.
26179
26180 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
26181
26182         getdate: correctly interpret "next monday" when run on a Monday
26183         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
26184         that e.g., "next tues" (when run on a tuesday) results in a date
26185         that is one week in the future, and not today's date.
26186         I.e., add a week when the wday is the same as the current one.
26187         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
26188         and earlier by Martin Bernreuther and Jan Minář.
26189         * tests/test-getdate.c (main): Check that "next DAY" is always in
26190         the future and that "last DAY" is always in the past.
26191
26192 2009-05-02  Jim Meyering  <meyering@redhat.com>
26193
26194         build: ensure that a release build fails when a submodule is unclean
26195         * top/maint.mk (no-submodule-changes): New rule.
26196         (alpha beta major): Depend on it.
26197
26198 2009-05-02  Bruno Haible  <bruno@clisp.org>
26199
26200         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
26201         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
26202         shell variable gl_fnmatch_required to detect which variant is
26203         requested.
26204         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
26205         gl_FUNC_FNMATCH_POSIX.
26206         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
26207         exclude fnmatch-posix.
26208
26209 2009-05-02  Bruno Haible  <bruno@clisp.org>
26210
26211         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
26212         * modules/mbsrtowcs (License): Change to LGPLv2+.
26213         * modules/strnlen1 (License): Likewise.
26214         Reported by Simon Josefsson.
26215
26216 2009-05-02  Bruno Haible  <bruno@clisp.org>
26217
26218         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
26219         "cross".
26220         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
26221         gnulib-tool was called with option --source-base=lib.
26222
26223 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26224
26225         Use automake *-local hooks without commands, for extensibility.
26226         * modules/localcharset (Makefile.am): Rename install-exec-local
26227         rule to install-exec-localcharset, and make it a prerequisite of
26228         install-exec-local.  Likewise, rename the uninstall-local rule to
26229         uninstall-localcharset, and make it a prerequisite of the former.
26230
26231 2009-05-01  Bruno Haible  <bruno@clisp.org>
26232
26233         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
26234         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
26235         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
26236         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
26237         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
26238         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
26239         m4/locale-zh.m4, m4/codeset.m4.
26240
26241         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
26242         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
26243         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
26244         m4/locale-zh.m4.
26245
26246         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
26247         REPLACE_WCRTOMB if mbstate_t must be replaced.
26248         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
26249         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
26250
26251 2009-05-01  Bruno Haible  <bruno@clisp.org>
26252
26253         Avoid compiler warnings when redefining macros defined by <libintl.h>.
26254         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
26255         dngettext, dcngettext, textdomain, bindtextdomain,
26256         bind_textdomain_codeset): Undefine before redefining.
26257
26258 2009-04-30  Bruno Haible  <bruno@clisp.org>
26259
26260         Fix bug introduced on 2009-04-25.
26261         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
26262         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
26263         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
26264         is defined.
26265         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
26266         is defined.
26267         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
26268         is defined.
26269         Reported by Elbert_Pol <elbert.pol@gmail.com>.
26270
26271 2009-04-28  Bruno Haible  <bruno@clisp.org>
26272
26273         Comment tweaks.
26274         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
26275         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
26276         * lib/unicase.h (u*_casexfrm): Likewise.
26277         Reported by Paolo Bonzini.
26278
26279 2009-04-28  Bruno Haible  <bruno@clisp.org>
26280
26281         Fix a compilation error.
26282         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
26283         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
26284         Reported by Jim Meyering.
26285
26286 2009-04-27  Bruno Haible  <bruno@clisp.org>
26287
26288         New module 'libunistring'.
26289         * modules/libunistring: New file.
26290         * m4/libunistring.m4: New file.
26291         * MODULES.html.sh (Unicode string functions): Add it.
26292
26293 2009-04-27  Eric Blake  <ebb9@byu.net>
26294
26295         maint.mk: allow package-specific header to provide <config.h>
26296         * top/maint.mk (sc_require_config_h): New variable.
26297         (sc_require_config_h, sc_require_config_h_first): Use it.
26298
26299 2009-04-27  Simon Josefsson  <simon@josefsson.org>
26300
26301         * top/maint.mk (sc_avoid_if_before_free): Except
26302         useless-if-before-free script.
26303
26304 2009-04-27  Eric Blake  <ebb9@byu.net>
26305
26306         maintainer-makefile: depend on all required helper scripts
26307         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
26308         useless-if-before-free.
26309         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
26310         version, rather than assuming gnulib checkout is available.
26311         Reported by Simen Josefsson.
26312
26313 2009-04-26  Bruno Haible  <bruno@clisp.org>
26314
26315         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
26316         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
26317         "../" or "..".
26318
26319 2009-04-26  Bruno Haible  <bruno@clisp.org>
26320
26321         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
26322         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
26323         AC_LIB_HAVE_LINKFLAGS.
26324
26325 2009-04-26  Bruno Haible  <bruno@clisp.org>
26326
26327         Simplify calling convention of u*_conv_from_encoding.
26328         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
26329         u32_conv_from_encoding): Expect a resultbuf argument and return the
26330         result directly as a pointer.
26331         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
26332         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
26333         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
26334         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
26335         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
26336         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
26337         Update.
26338         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
26339         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
26340         * lib/vasnprintf.c (VASNPRINTF): Update.
26341         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
26342         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
26343         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
26344         * NEWS: Mention the change.
26345
26346 2009-04-26  Bruno Haible  <bruno@clisp.org>
26347
26348         Simplify calling convention of u*_conv_to_encoding.
26349         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
26350         u32_conv_to_encoding): Expect a resultbuf argument and return the
26351         result directly as a pointer.
26352         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
26353         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
26354         freeing scaled_offsets if mem_iconveha failed.
26355         * lib/unicase/u-casexfrm.h (FUNC): Update.
26356         * lib/uninorm/u-normxfrm.h (FUNC): Update.
26357         * lib/vasnprintf.c (VASNPRINTF): Update.
26358         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
26359         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
26360         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
26361         * NEWS: Mention the change.
26362
26363 2009-04-26  Bruno Haible  <bruno@clisp.org>
26364
26365         Avoid test failures on AIX and OSF/1.
26366         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
26367         malloc(0).
26368         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
26369         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
26370         Likewise.
26371         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
26372         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
26373         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
26374         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
26375         * doc/posix-functions/malloc.texi: Document the portability problem
26376         related to malloc(0).
26377
26378 2009-04-26  Bruno Haible  <bruno@clisp.org>
26379
26380         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
26381         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
26382         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
26383
26384 2009-04-25  Bruno Haible  <bruno@clisp.org>
26385
26386         Avoid link error when creating a namespace clean library.
26387         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
26388         as macro with arguments if already defined as an alias.
26389         * lib/signbitf.c (gl_signbitf): Don't undefine.
26390         * lib/signbitd.c (gl_signbitd): Don't undefine.
26391         * lib/signbitl.c (gl_signbitl): Don't undefine.
26392
26393 2009-04-25  Jim Meyering  <meyering@redhat.com>
26394
26395         vc-list-files: fix another quoting bug
26396         * build-aux/vc-list-files: Avoid sed backslash expansion
26397         of pathological directory names.
26398
26399 2009-04-25  Eric Blake  <ebb9@byu.net>
26400
26401         vc-list-files: fix shell quoting error
26402         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
26403         timestamp.
26404
26405 2009-04-25  Jim Meyering  <meyering@redhat.com>
26406
26407         vc-list-files: restore lost functionality with subdir argument
26408         * build-aux/vc-list-files: When given a non-"." sub-directory
26409         argument, substitute the $dir/ prefix back onto each resulting name.
26410         Otherwise, coreutils' root_tests check would fail.
26411
26412 2009-04-24  Eric Blake  <ebb9@byu.net>
26413
26414         vc-list-files: ignore git symlinks
26415         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
26416         than ls-files, to ignore git symlinks.
26417
26418         maint.mk: import improvements from m4
26419         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
26420         (move_if_change): Delete unused macro.
26421         (news-date-check, vc-diff-check): Support VPATH builds.
26422         (announcement): Likewise.  Split --bootstrap-tools list...
26423         (boostrap-tools): ...into separate list, which can be overridden
26424         in cfg.mk.
26425         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
26426         requiring dependency on useless-if-before-free module.
26427         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
26428         Support VPATH builds.
26429
26430 2009-04-24  Jim Meyering  <meyering@redhat.com>
26431
26432         maint.mk: remove coreutils-specific rules and variables
26433         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
26434         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
26435         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
26436
26437         maint.mk: remove obsolete rule
26438         * top/maint.mk (rel-check): Remove rule.
26439         (WGET, WGETFLAGS): Remove now-unused variables.
26440
26441 2009-04-24  Simon Josefsson  <simon@josefsson.org>
26442
26443         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
26444         consistency.
26445
26446         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
26447         '$(PATH_SEPARATOR)' instead of ':'.
26448
26449 2009-04-24  Simon Josefsson  <simon@josefsson.org>
26450
26451         * lib/getopt1.c (main): Use 'const' for static array.
26452
26453 2009-04-24  Simon Josefsson  <simon@josefsson.org>
26454
26455         * top/maint.mk: Sync with coreutils.
26456         * NEWS: Explain incompatibilities.
26457
26458 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26459             Bruno Haible  <bruno@clisp.org>
26460
26461         Fix cross-compilation results.
26462         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
26463         statement, as third argument of AC_TRY_RUN.
26464         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26465         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26466         Likewise.
26467         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26468         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26469         Likewise.
26470         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26471         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
26472         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
26473
26474 2009-04-20  Bruno Haible  <bruno@clisp.org>
26475
26476         Avoid test failure on mingw.
26477         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
26478
26479 2009-04-20  Bruno Haible  <bruno@clisp.org>
26480
26481         Avoid compilation error on mingw.
26482         * modules/localename-tests (Depends-on): Add locale.
26483
26484 2009-04-19  Bruno Haible  <bruno@clisp.org>
26485
26486         Support for building a shared library on Windows platforms.
26487         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
26488         (main): Test the presence of UNINORM_NFC here.
26489         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
26490         (main): Test the presence of UNINORM_NFD here.
26491         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
26492         (main): Test the presence of UNINORM_NFKC here.
26493         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
26494         (main): Test the presence of UNINORM_NFKD here.
26495
26496 2009-04-19  Bruno Haible  <bruno@clisp.org>
26497
26498         Avoid a compiler warning.
26499         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
26500         Change type of variable 'sequence'.
26501
26502 2009-04-19  Bruno Haible  <bruno@clisp.org>
26503
26504         * modules/configmake (Makefile.am): When the contents of configmake.h
26505         does not change, arrange to preserve its modification time.
26506
26507 2009-04-17  Simon Josefsson  <simon@josefsson.org>
26508
26509         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
26510         gettext domain.
26511
26512 2009-04-16  Jim Meyering  <meyering@redhat.com>
26513
26514         useless-if-before-free: improve conversion code
26515         * build-aux/useless-if-before-free: Adjust code-in-comment to match
26516         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
26517
26518 2009-04-14  Bruno Haible  <bruno@clisp.org>
26519
26520         * modules/fcntl (Depends-on): Add extensions.
26521         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
26522
26523 2009-04-12  Ben Pfaff  <blp@gnu.org>
26524
26525         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
26526         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
26527
26528 2009-03-20  Ben Pfaff  <blp@gnu.org>
26529
26530         Make rename replace existing destinations on Windows.
26531         * m4/rename.m4: Add test for Mingw.
26532         * lib/rename.c: Add rename replacement that uses MoveFileEx with
26533         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
26534         * doc/posix-functions/rename.texi: Document.
26535
26536 2009-04-10  Bruno Haible  <bruno@clisp.org>
26537
26538         New include file "iconveh.h".
26539         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
26540         * lib/striconveh.h: Include it.
26541         (enum iconv_ilseq_handler): Remove definition.
26542         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
26543         striconveh.h.
26544         * lib/striconveha.c: Include striconveh.h.
26545         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
26546         * modules/striconveh (Files): Add lib/iconveh.h.
26547         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
26548         lib/striconveh.h.
26549
26550 2009-04-10  Bruno Haible  <bruno@clisp.org>
26551
26552         * lib/uniconv.h: Update comment.
26553
26554 2009-04-10  Bruno Haible  <bruno@clisp.org>
26555
26556         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
26557         always.
26558         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
26559         * lib/unistr/u16-mbtouc-aux.c: Likewise.
26560         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
26561         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
26562         "unistring-notinline.h", so that the function gets defined always.
26563         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
26564         * lib/unistr/u8-uctomb.c: Likewise.
26565         * lib/unistr/u16-mbtouc.c: Likewise.
26566         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
26567         * lib/unistr/u16-uctomb.c: Likewise.
26568         * lib/unistr/u32-mbtouc.c: Likewise.
26569         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
26570         * lib/unistr/u32-uctomb.c: Likewise.
26571
26572 2009-04-10  Bruno Haible  <bruno@clisp.org>
26573
26574         Mark 'utime' obsolete.
26575         * modules/utime (Status, Notice): New sections.
26576         Suggested by Jim Meyering.
26577
26578         Fix cross-compile guess for utime test.
26579         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
26580         autoconf.
26581         * doc/posix-functions/utime.texi: Give more precisions.
26582         Reported by Jan <ipif@ymail.com>.
26583
26584 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
26585
26586         filevercmp: correct today's change
26587         * lib/filevercmp.c: Also handle coreutils' test inputs.
26588         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
26589
26590         Fix regression in 'filevercmp' module. Thanks Sven Joachim
26591         for reporting it.
26592         * lib/filevercmp.c: Special handle for "", "." and "..".
26593         * tests/test-filevercmp.c: Enlarge the set suite.
26594
26595 2009-04-07  Jim Meyering  <meyering@redhat.com>
26596
26597         useless-if-before-free: show how to remove braced useless free, too
26598         * build-aux/useless-if-before-free: still only in a comment, though.
26599
26600 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
26601
26602         maint.mk: import changes to syntax-check macros from coreutils
26603         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
26604         Use them in the relevant macros.
26605
26606 2009-04-06  Bruno Haible  <bruno@clisp.org>
26607
26608         Fix unportable use of bit-fields.
26609         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
26610         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
26611         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
26612
26613 2009-04-06  Bruno Haible  <bruno@clisp.org>
26614
26615         Avoid test failures on AIX and OSF/1.
26616         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
26617         that malloc(0) = NULL.
26618         * tests/unicase/test-u8-tolower.c (check): Likewise.
26619         * tests/unicase/test-u8-totitle.c (check): Likewise.
26620         * tests/unicase/test-u8-toupper.c (check): Likewise.
26621         * tests/unicase/test-u16-casefold.c (check): Likewise.
26622         * tests/unicase/test-u16-tolower.c (check): Likewise.
26623         * tests/unicase/test-u16-totitle.c (check): Likewise.
26624         * tests/unicase/test-u16-toupper.c (check): Likewise.
26625         * tests/unicase/test-u32-casefold.c (check): Likewise.
26626         * tests/unicase/test-u32-tolower.c (check): Likewise.
26627         * tests/unicase/test-u32-totitle.c (check): Likewise.
26628         * tests/unicase/test-u32-toupper.c (check): Likewise.
26629         * tests/uninorm/test-u8-nfc.c (check): Likewise.
26630         * tests/uninorm/test-u8-nfd.c (check): Likewise.
26631         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
26632         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
26633         * tests/uninorm/test-u16-nfc.c (check): Likewise.
26634         * tests/uninorm/test-u16-nfd.c (check): Likewise.
26635         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
26636         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
26637         * tests/uninorm/test-u32-nfc.c (check): Likewise.
26638         * tests/uninorm/test-u32-nfd.c (check): Likewise.
26639         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
26640         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
26641
26642 2009-04-05  Bruno Haible  <bruno@clisp.org>
26643
26644         Work around an autoconf limitation.
26645         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
26646         comment line if it would be longer than 3 KB.
26647
26648 2009-04-05  Bruno Haible  <bruno@clisp.org>
26649
26650         Avoid test failure with libiconv-1.13.
26651         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
26652         of the expected test results.
26653
26654 2009-04-05  Bruno Haible  <bruno@clisp.org>
26655
26656         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
26657         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
26658         that it should be installed.
26659
26660 2009-04-05  Bruno Haible  <bruno@clisp.org>
26661
26662         * gnulib-tool: New option --copy-file.
26663         (func_usage): Document it.
26664         (func_dest_tmpfilename): Moved out of func_import.
26665         (func_add_file, func_update_file): New functions, extracted from
26666         func_import.
26667         (func_import): Update.
26668
26669 2009-04-05  Karl Berry  <karl@gnu.org>
26670
26671         * README: prominently mention gnulib-tool.
26672         Rearrange sections so getting the code is near the top.
26673
26674 2009-04-05  Bruno Haible  <bruno@clisp.org>
26675
26676         * lib/unicase.h: Mention u*_cmp2.
26677         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
26678         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
26679         * lib/unicase/ulc-casecmp.c: Likewise.
26680         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
26681         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
26682         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
26683         unistr/u8-cmp.
26684         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
26685         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
26686         unistr/u16-cmp.
26687         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
26688         unistr/u32-cmp.
26689
26690         * lib/uninorm.h: Mention u*_cmp2.
26691         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
26692         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
26693         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
26694         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
26695         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
26696         unistr/u8-cmp.
26697         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
26698         unistr/u16-cmp.
26699         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
26700         unistr/u32-cmp.
26701
26702         New module 'unistr/u32-cmp2'.
26703         * lib/unistr/u32-cmp2.c: New file.
26704         * modules/unistr/u32-cmp2: New file.
26705
26706         New module 'unistr/u16-cmp2'.
26707         * lib/unistr/u16-cmp2.c: New file.
26708         * modules/unistr/u16-cmp2: New file.
26709
26710         New module 'unistr/u8-cmp2'.
26711         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
26712         * lib/unistr/u8-cmp2.c: New file.
26713         * lib/unistr/u-cmp2.h: New file.
26714         * modules/unistr/u8-cmp2: New file.
26715
26716 2009-04-05  Bruno Haible  <bruno@clisp.org>
26717
26718         * lib/unictype.h (uc_property_is_valid): New macro.
26719         * tests/unictype/test-pr_byname.c (main): Use it.
26720
26721         * lib/unistr.h: Doc fixes.
26722         * lib/uniconv.h: Doc fixes.
26723         * lib/unictype.h: Doc fixes.
26724
26725 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
26726
26727         Port coreutils 7.2 to Solaris 8.
26728
26729         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
26730         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
26731         for Solaris 8.  This is a bit of a hack, as it means it's the
26732         caller's responsibility to add -lnsl if needed, but most likely it
26733         won't be needed since only getaddrinfo uses this and getaddrinfo
26734         isn't needed on Solaris 8.
26735
26736         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
26737         problem to Solaris 8 encountered with coreutils 7.2, which
26738         resulted in a message "fnmatch.c:292: warning: passing argument 4
26739         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
26740         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
26741
26742 2009-04-03  Simon Josefsson  <simon@josefsson.org>
26743
26744         * m4/ld-version-script.m4: Add FIXME comment.
26745
26746 2009-04-02  Simon Josefsson  <simon@josefsson.org>
26747
26748         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
26749         SOVERSION variable.
26750
26751 2009-04-02  Bruno Haible  <bruno@clisp.org>
26752
26753         * Makefile (info, html, dvi, pdf): Combine the rules.
26754         Suggested by Jim Meyering.
26755
26756 2009-04-01  Bruno Haible  <bruno@clisp.org>
26757
26758         * Makefile (info, html, dvi, pdf): New targets.
26759         Reported by Reuben Thomas <rrt@sc3d.org>.
26760
26761 2009-04-01  Bruno Haible  <bruno@clisp.org>
26762
26763         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
26764         can be put into PATH.
26765         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
26766
26767 2009-04-01  Bruno Haible  <bruno@clisp.org>
26768
26769         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
26770
26771 2009-04-01  Bruno Haible  <bruno@clisp.org>
26772
26773         Rename module 'visibility'.
26774         * modules/lib-symbol-visibility: Renamed from modules/visibility.
26775         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
26776         * doc/gnulib.texi: Update.
26777         * MODULES.html.sh (Misc): Update.
26778         * NEWS: Mention the change.
26779
26780 2009-04-01  Simon Josefsson  <simon@josefsson.org>
26781
26782         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
26783         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
26784         Eric Blake <ebb9@byu.net> for review.
26785         * MODULES.html.sh: Add lib-msvc-compat.
26786         * doc/gnulib.texi: Link to new section.
26787         * m4/ld-output-def.m4: New file.
26788         * doc/ld-output-def.texi: New file.
26789
26790 2009-04-01  Simon Josefsson  <simon@josefsson.org>
26791
26792         Rename ld-version-script to lib-symbol-versions.  Suggested by
26793         Bruno Haible <bruno@clisp.org>.
26794         * modules/ld-version-script: Renamed to lib-symbol-versions.
26795         * doc/ld-version-script.texi: Fix module name.
26796         * MODULES.html.sh: Add lib-symbol-versions.
26797
26798 2009-03-31  Simon Josefsson  <simon@josefsson.org>
26799
26800         * modules/u64-tests: New file.
26801         * tests/test-u64.c: New file.
26802
26803 2009-03-04  Simon Josefsson  <simon@josefsson.org>
26804
26805         * MODULES.html.sh: Mention u64.
26806         * modules/u64: New module.
26807         * modules/crypto/sha512: Depend on u64 module instead of providing
26808         u64.h.
26809
26810 2009-03-27  Eric Blake  <ebb9@byu.net>
26811
26812         test-strerror: make debugging EAI_SYSTEM easier
26813         * modules/getaddrinfo-tests (Depends-on): Add strerror.
26814         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
26815         failure was EAI_SYSTEM.
26816
26817 2009-03-25  Bruno Haible  <bruno@clisp.org>
26818
26819         Fix a problem with --enable-relocatable on Solaris 7.
26820         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
26821         since 2008-02-24.
26822
26823 2009-03-25  Eric Blake  <ebb9@byu.net>
26824
26825         test-sockets: avoid gcc warning
26826         * tests/test-sockets.c (main): Silence compiler warning.
26827
26828 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
26829
26830         New modules nproc, pthread, contributed by Glen Lenker.
26831
26832         * MODULES.html.sh: Add pthread, nproc.
26833         * lib/nproc.c: New file.
26834         * lib/nproc.h: New file.
26835         * lib/pthread.in.h: New file.
26836         * m4/pthread.m4: New file.
26837         * modules/nproc: New file.
26838         * modules/pthread: New file.
26839
26840 2009-03-24  Simon Josefsson  <simon@josefsson.org>
26841
26842         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
26843         New variable.
26844
26845 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
26846
26847         filevercmp: handle simple~ and numbered.~3~ backup suffixes
26848         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
26849         * tests/test-filevercmp.c: Add tests for backup suffixes.
26850
26851 2009-03-24  Simon Josefsson  <simon@josefsson.org>
26852
26853         * modules/stdlib (Depends-on): Add stdint, needed when defining
26854         struct random_data on, for example, HP-UX 10.20.  Reported by
26855         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26856
26857 2009-03-24  Simon Josefsson  <simon@josefsson.org>
26858
26859         * lib/readline.c (readline): Call fflush on stdout after printing
26860         prompt.
26861
26862 2009-03-20  Bruno Haible  <bruno@clisp.org>
26863
26864         Remove dependency from 'close' module to -lws2_32 on native Windows.
26865         * lib/close-hook.h: New file.
26866         * lib/close-hook.c: New file.
26867         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
26868         w32sock.h.
26869         (_gl_close_fd_maybe_socket): Remove function.
26870         (rpl_close): Invoke execute_all_close_hooks instead of
26871         _gl_close_fd_maybe_socket.
26872         * lib/sockets.c: Include close-hook.h, w32sock.h.
26873         (close_fd_maybe_socket): New function, essentially from lib/close.c.
26874         (close_sockets_hook): New variable.
26875         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
26876         (gl_sockets_cleanup): Unregister it.
26877         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
26878         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
26879         * modules/close-hook: New file.
26880         * modules/close (Files): Remove lib/w32sock.h.
26881         (Depends-on): Add close-hook.
26882         (Link): Remove section.
26883         * modules/sockets (Files): Add lib/w32sock.h.
26884         (Depends-on): Add close-hook.
26885         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
26886         invocation.
26887         * NEWS: Mention that LIB_CLOSE is gone.
26888
26889 2009-03-23  Eric Blake  <ebb9@byu.net>
26890
26891         signal-tests: test previous patch
26892         * tests/test-signal.c: New file.
26893         * modules/signal-tests: Likewise.
26894
26895         signal.h: always support 'volatile sig_atomic_t'
26896         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
26897         (gl_SIGNAL_H_DEFAULTS): Add a default.
26898         * modules/signal (Makefile.am): Substitute if needed.
26899         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
26900         users can blindly add volatile.
26901         * doc/posix-headers/signal.texi (signal.h): Document it.
26902         Reported by Matthew Woehlke.
26903
26904 2009-03-23  Jim Meyering  <meyering@redhat.com>
26905
26906         pathmax: PATH_MAX: use pathconf only when available
26907         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
26908         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
26909         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
26910         This avoids a link failure in a PSP cross-compilation environment
26911         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
26912
26913         * lib/vasnprintf.c (divide): Fix typo in comment.
26914
26915 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26916
26917         * gnulib-tool (func_filter_filelist): Fix comment.
26918
26919 2009-03-20  Bruno Haible  <bruno@clisp.org>
26920
26921         Make sockets.h self-contained.
26922         * lib/sockets.c: Include sockets.h first.
26923         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
26924
26925 2009-03-19  Eric Blake  <ebb9@byu.net>
26926
26927         doc: mention more functions added in cygwin 1.7.0
26928         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
26929         addition.
26930         * doc/posix-functions/log2f.texi: Likewise.
26931
26932 2009-03-19  Jim Meyering  <meyering@redhat.com>
26933
26934         fsusage: avoid syntax error due to statement-before-declaration
26935         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
26936         after all declarations.  Reported by Matthew Woehlke in
26937         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
26938
26939 2009-03-18  Eric Blake  <ebb9@byu.net>
26940
26941         build-aux/compile: sync from automake
26942         * build-aux/compile: New file, from automake.
26943         * config/srclist.txt: Mention build-aux/compile.
26944
26945 2009-03-17  Bruno Haible  <bruno@clisp.org>
26946
26947         * lib/git-merge-changelog.c: Fix typo in comment.
26948         Reported by Reuben Thomas <rrt@sc3d.org>.
26949
26950 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
26951
26952         * m4/regex.m4: update and improve help for
26953         --without-included-regex.
26954
26955 2009-03-17  Simon Josefsson  <simon@josefsson.org>
26956
26957         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
26958         failure on missing include files.
26959
26960 2009-03-17  Eric Blake  <ebb9@byu.net>
26961
26962         doc: mention more functions added in cygwin 1.7.0
26963         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
26964         addition.
26965         * doc/posix-functions/fwscanf.texi: Likewise.
26966         * doc/posix-functions/swprintf.texi: Likewise.
26967         * doc/posix-functions/swscanf.texi: Likewise.
26968         * doc/posix-functions/vfwprintf.texi: Likewise.
26969         * doc/posix-functions/vfwscanf.texi: Likewise.
26970         * doc/posix-functions/vswprintf.texi: Likewise.
26971         * doc/posix-functions/vswscanf.texi: Likewise.
26972         * doc/posix-functions/vwprintf.texi: Likewise.
26973         * doc/posix-functions/vwscanf.texi: Likewise.
26974         * doc/posix-functions/wcscasecmp.texi: Likewise.
26975         * doc/posix-functions/wcsdup.texi: Likewise.
26976         * doc/posix-functions/wcsftime.texi: Likewise.
26977         * doc/posix-functions/wcsncasecmp.texi: Likewise.
26978         * doc/posix-functions/wprintf.texi: Likewise.
26979         * doc/posix-functions/wscanf.texi: Likewise.
26980         * doc/glibc-functions/gethostbyname2.texi: Likewise.
26981
26982 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26983
26984         maint.mk: really add $(AM_MAKEFLAGS)
26985         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
26986         was inadvertently omitted in the last commit.
26987         Spotted by Bruno Haible.
26988
26989         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
26990         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
26991         $(AM_MAKEFLAGS)' rather than plain `make'.
26992
26993         gnulib-tool: execute $MAKE not make
26994         * gnulib-tool: Default $MAKE to 'make'.
26995         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
26996         than make.  Initialize $MAKE in the do-autobuild script.
26997
26998         gnulib-tool: use $MAKE not make in generated files
26999         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
27000         make, in generated files.  Initialize $MAKE in the do-autobuild
27001         script.
27002
27003         * top/GNUmakefile (_have-git-version-gen): Fix typo.
27004
27005         GNUmakefile: disable parallelism only for multiple, recursive targets
27006         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
27007         additions in the Makefile.
27008         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
27009         by Automake.
27010         (.NOTPARALLEL): Only disable parallel builds if multiple targets
27011         are listed on the command line and at least one of them is
27012         listed in $(ALL_RECURSIVE_TARGETS).
27013
27014 2009-03-14  Bruno Haible  <bruno@clisp.org>
27015
27016         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
27017         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
27018         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
27019         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
27020         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
27021         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
27022         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
27023         unistr/u8-uctomb.
27024         * modules/unistr/u8-strchr (Depends-on): Likewise.
27025         * modules/unistr/u8-strrchr (Depends-on): Likewise.
27026         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
27027         unistr/u16-uctomb.
27028         * modules/unistr/u16-strchr (Depends-on): Likewise.
27029         * modules/unistr/u16-strrchr (Depends-on): Likewise.
27030
27031 2009-03-12  Bruno Haible  <bruno@clisp.org>
27032
27033         Work around select() bug on Interix 3.5.
27034         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
27035         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
27036         * m4/select.m4: New file.
27037         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
27038         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
27039         * modules/select (Files): Add m4/select.m4.
27040         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
27041         * modules/nanosleep (Depends-on): Add select.
27042         * modules/poll (Depends-on): Likewise.
27043         * doc/posix-functions/select.texi: Mention the Interix bug.
27044         Reported by Markus Duft <mduft@gentoo.org>.
27045
27046         * lib/select.c: Renamed from lib/winsock-select.c.
27047         * modules/select (Files): Add lib/select.c, remove
27048         lib/winsock-select.c.
27049         (configure.ac): Update.
27050
27051 2009-03-12  Jim Meyering  <meyering@redhat.com>
27052
27053         avoid gcc warnings about unused macro definitions
27054         * lib/readtokens.c (STREQ): Remove unused definition.
27055         * lib/xmalloc.c (SIZE_MAX): Likewise.
27056         * lib/openat-die.c (N_): Likewise.
27057         * lib/mountlist.c (SIZE_MAX): Remove definition.
27058         Instead, include <stdint.h>.
27059         * lib/readutmp.c: Likewise.
27060         * modules/readutmp (Depends-on): Add stdint.
27061         * modules/mountlist (Depends-on): Add stdint.
27062         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
27063
27064 2009-03-10  Bruno Haible  <bruno@clisp.org>
27065
27066         Tests for module 'mbmemcasecoll'.
27067         * modules/mbmemcasecoll-tests: New file.
27068         * tests/test-mbmemcasecoll1.sh: New file.
27069         * tests/test-mbmemcasecoll2.sh: New file.
27070         * tests/test-mbmemcasecoll3.sh: New file.
27071         * tests/test-mbmemcasecoll.c: New file.
27072
27073         New module 'mbmemcasecoll'.
27074         * lib/mbmemcasecoll.h: New file.
27075         * lib/mbmemcasecoll.c: New file.
27076         * modules/mbmemcasecoll: New file.
27077
27078         * tests/test-mbmemcasecmp.h: New file, extracted from
27079         tests/test-mbmemcasecmp.c.
27080         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
27081         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
27082         (main): Update.
27083         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
27084
27085 2009-03-09  Bruno Haible  <bruno@clisp.org>
27086
27087         Tests for module 'mbmemcasecmp'.
27088         * modules/mbmemcasecmp-tests: New file.
27089         * tests/test-mbmemcasecmp1.sh: New file.
27090         * tests/test-mbmemcasecmp2.sh: New file.
27091         * tests/test-mbmemcasecmp3.sh: New file.
27092         * tests/test-mbmemcasecmp.c: New file.
27093
27094         New module 'mbmemcasecmp'.
27095         * lib/mbmemcasecmp.h: New file.
27096         * lib/mbmemcasecmp.c: New file.
27097         * modules/mbmemcasecmp: New file.
27098
27099 2009-03-09  Bruno Haible  <bruno@clisp.org>
27100
27101         Tests for module 'unicase/ulc-casecoll'.
27102         * modules/unicase/ulc-casecoll-tests: New file.
27103         * tests/unicase/test-ulc-casecoll1.sh: New file.
27104         * tests/unicase/test-ulc-casecoll2.sh: New file.
27105         * tests/unicase/test-ulc-casecoll.c: New file.
27106
27107         New module 'unicase/ulc-casecoll'.
27108         * lib/unicase.h (ulc_casecoll): New declaration.
27109         * lib/unicase/ulc-casecoll.c: New file.
27110         * modules/unicase/ulc-casecoll: New file.
27111
27112         New module 'unicase/ulc-casexfrm'.
27113         * lib/unicase.h (ulc_casexfrm): New declaration.
27114         * lib/unicase/ulc-casexfrm.c: New file.
27115         * modules/unicase/ulc-casexfrm: New file.
27116
27117 2009-03-09  Bruno Haible  <bruno@clisp.org>
27118
27119         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
27120         invocations.
27121
27122         * m4/mbscasecmp.m4: Remove file.
27123         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
27124         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
27125
27126         * m4/mbscasestr.m4: Remove file.
27127         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
27128         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
27129
27130         * m4/mbschr.m4: Remove file.
27131         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
27132         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
27133
27134         * m4/mbscspn.m4: Remove file.
27135         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
27136         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
27137
27138         * m4/mbslen.m4: Remove file.
27139         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
27140         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
27141
27142         * m4/mbsncasecmp.m4: Remove file.
27143         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
27144         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
27145
27146         * m4/mbsnlen.m4: Remove file.
27147         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
27148         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
27149
27150         * m4/mbspbrk.m4: Remove file.
27151         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
27152         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
27153
27154         * m4/mbspcasecmp.m4: Remove file.
27155         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
27156         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
27157
27158         * m4/mbsrchr.m4: Remove file.
27159         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
27160         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
27161
27162         * m4/mbssep.m4: Remove file.
27163         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
27164         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
27165
27166         * m4/mbsspn.m4: Remove file.
27167         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
27168         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
27169
27170         * m4/mbsstr.m4: Remove file.
27171         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
27172         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
27173
27174         * m4/mbstok_r.m4: Remove file.
27175         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
27176         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
27177
27178         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
27179
27180         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
27181         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
27182
27183         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
27184
27185 2009-03-08  Bruno Haible  <bruno@clisp.org>
27186
27187         Tests for module 'unicase/ulc-casecmp'.
27188         * modules/unicase/ulc-casecmp-tests: New file.
27189         * tests/unicase/test-ulc-casecmp1.sh: New file.
27190         * tests/unicase/test-ulc-casecmp2.sh: New file.
27191         * tests/unicase/test-ulc-casecmp.c: New file.
27192
27193         New module 'unicase/ulc-casecmp'.
27194         * lib/unicase.h (ulc_casecmp): New declaration.
27195         * lib/unicase/ulc-casecmp.c: New file.
27196         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
27197         'const SRC_UNIT *'.
27198         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
27199         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
27200         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
27201         * modules/unicase/ulc-casecmp: New file.
27202
27203         Tests for module 'unicase/u32-is-cased'.
27204         * modules/unicase/u32-is-cased-tests: New file.
27205         * tests/unicase/test-u32-is-cased.c: New file.
27206
27207         Tests for module 'unicase/u16-is-cased'.
27208         * modules/unicase/u16-is-cased-tests: New file.
27209         * tests/unicase/test-u16-is-cased.c: New file.
27210
27211         Tests for module 'unicase/u8-is-cased'.
27212         * modules/unicase/u8-is-cased-tests: New file.
27213         * tests/unicase/test-u8-is-cased.c: New file.
27214         * tests/unicase/test-is-cased.h: New file.
27215
27216         New module 'unicase/u32-is-cased'.
27217         * lib/unicase/u32-is-cased.c: New file.
27218         * modules/unicase/u32-is-cased: New file.
27219
27220         New module 'unicase/u16-is-cased'.
27221         * lib/unicase/u16-is-cased.c: New file.
27222         * modules/unicase/u16-is-cased: New file.
27223
27224         New module 'unicase/u8-is-cased'.
27225         * lib/unicase/u8-is-cased.c: New file.
27226         * lib/unicase/u-is-cased.h: New file.
27227         * modules/unicase/u8-is-cased: New file.
27228
27229         Tests for module 'unicase/u32-is-casefolded'.
27230         * modules/unicase/u32-is-casefolded-tests: New file.
27231         * tests/unicase/test-u32-is-casefolded.c: New file.
27232
27233         Tests for module 'unicase/u16-is-casefolded'.
27234         * modules/unicase/u16-is-casefolded-tests: New file.
27235         * tests/unicase/test-u16-is-casefolded.c: New file.
27236
27237         Tests for module 'unicase/u8-is-casefolded'.
27238         * modules/unicase/u8-is-casefolded-tests: New file.
27239         * tests/unicase/test-u8-is-casefolded.c: New file.
27240         * tests/unicase/test-is-casefolded.h: New file.
27241
27242         New module 'unicase/u32-is-casefolded'.
27243         * lib/unicase/u32-is-casefolded.c: New file.
27244         * modules/unicase/u32-is-casefolded: New file.
27245
27246         New module 'unicase/u16-is-casefolded'.
27247         * lib/unicase/u16-is-casefolded.c: New file.
27248         * modules/unicase/u16-is-casefolded: New file.
27249
27250         New module 'unicase/u8-is-casefolded'.
27251         * lib/unicase/u8-is-casefolded.c: New file.
27252         * modules/unicase/u8-is-casefolded: New file.
27253
27254         Tests for module 'unicase/u32-is-titlecase'.
27255         * modules/unicase/u32-is-titlecase-tests: New file.
27256         * tests/unicase/test-u32-is-titlecase.c: New file.
27257
27258         Tests for module 'unicase/u16-is-titlecase'.
27259         * modules/unicase/u16-is-titlecase-tests: New file.
27260         * tests/unicase/test-u16-is-titlecase.c: New file.
27261
27262         Tests for module 'unicase/u8-is-titlecase'.
27263         * modules/unicase/u8-is-titlecase-tests: New file.
27264         * tests/unicase/test-u8-is-titlecase.c: New file.
27265         * tests/unicase/test-is-titlecase.h: New file.
27266
27267         New module 'unicase/u32-is-titlecase'.
27268         * lib/unicase/u32-is-titlecase.c: New file.
27269         * modules/unicase/u32-is-titlecase: New file.
27270
27271         New module 'unicase/u16-is-titlecase'.
27272         * lib/unicase/u16-is-titlecase.c: New file.
27273         * modules/unicase/u16-is-titlecase: New file.
27274
27275         New module 'unicase/u8-is-titlecase'.
27276         * lib/unicase/u8-is-titlecase.c: New file.
27277         * modules/unicase/u8-is-titlecase: New file.
27278
27279         Tests for module 'unicase/u32-is-lowercase'.
27280         * modules/unicase/u32-is-lowercase-tests: New file.
27281         * tests/unicase/test-u32-is-lowercase.c: New file.
27282
27283         Tests for module 'unicase/u16-is-lowercase'.
27284         * modules/unicase/u16-is-lowercase-tests: New file.
27285         * tests/unicase/test-u16-is-lowercase.c: New file.
27286
27287         Tests for module 'unicase/u8-is-lowercase'.
27288         * modules/unicase/u8-is-lowercase-tests: New file.
27289         * tests/unicase/test-u8-is-lowercase.c: New file.
27290         * tests/unicase/test-is-lowercase.h: New file.
27291
27292         New module 'unicase/u32-is-lowercase'.
27293         * lib/unicase/u32-is-lowercase.c: New file.
27294         * modules/unicase/u32-is-lowercase: New file.
27295
27296         New module 'unicase/u16-is-lowercase'.
27297         * lib/unicase/u16-is-lowercase.c: New file.
27298         * modules/unicase/u16-is-lowercase: New file.
27299
27300         New module 'unicase/u8-is-lowercase'.
27301         * lib/unicase/u8-is-lowercase.c: New file.
27302         * modules/unicase/u8-is-lowercase: New file.
27303
27304         Tests for module 'unicase/u32-is-uppercase'.
27305         * modules/unicase/u32-is-uppercase-tests: New file.
27306         * tests/unicase/test-u32-is-uppercase.c: New file.
27307
27308         Tests for module 'unicase/u16-is-uppercase'.
27309         * modules/unicase/u16-is-uppercase-tests: New file.
27310         * tests/unicase/test-u16-is-uppercase.c: New file.
27311
27312         Tests for module 'unicase/u8-is-uppercase'.
27313         * modules/unicase/u8-is-uppercase-tests: New file.
27314         * tests/unicase/test-u8-is-uppercase.c: New file.
27315         * tests/unicase/test-is-uppercase.h: New file.
27316
27317         New module 'unicase/u32-is-uppercase'.
27318         * lib/unicase/u32-is-uppercase.c: New file.
27319         * modules/unicase/u32-is-uppercase: New file.
27320
27321         New module 'unicase/u16-is-uppercase'.
27322         * lib/unicase/u16-is-uppercase.c: New file.
27323         * modules/unicase/u16-is-uppercase: New file.
27324
27325         New module 'unicase/u8-is-uppercase'.
27326         * lib/unicase/u8-is-uppercase.c: New file.
27327         * modules/unicase/u8-is-uppercase: New file.
27328
27329         New module 'unicase/u32-is-invariant'.
27330         * lib/unicase/u32-is-invariant.c: New file.
27331         * modules/unicase/u32-is-invariant: New file.
27332
27333         New module 'unicase/u16-is-invariant'.
27334         * lib/unicase/u16-is-invariant.c: New file.
27335         * modules/unicase/u16-is-invariant: New file.
27336
27337         New module 'unicase/u8-is-invariant'.
27338         * lib/unicase/u8-is-invariant.c: New file.
27339         * lib/unicase/invariant.h: New file.
27340         * lib/unicase/u-is-invariant.h: New file.
27341         * modules/unicase/u8-is-invariant: New file.
27342
27343         Tests for module 'unicase/u32-casecoll'.
27344         * modules/unicase/u32-casecoll-tests: New file.
27345         * tests/unicase/test-u32-casecoll.c: New file.
27346
27347         Tests for module 'unicase/u16-casecoll'.
27348         * modules/unicase/u16-casecoll-tests: New file.
27349         * tests/unicase/test-u16-casecoll.c: New file.
27350
27351         Tests for module 'unicase/u8-casecoll'.
27352         * modules/unicase/u8-casecoll-tests: New file.
27353         * tests/unicase/test-u8-casecoll.c: New file.
27354
27355         New module 'unicase/u32-casecoll'.
27356         * lib/unicase/u32-casecoll.c: New file.
27357         * modules/unicase/u32-casecoll: New file.
27358
27359         New module 'unicase/u16-casecoll'.
27360         * lib/unicase/u16-casecoll.c: New file.
27361         * modules/unicase/u16-casecoll: New file.
27362
27363         New module 'unicase/u8-casecoll'.
27364         * lib/unicase/u8-casecoll.c: New file.
27365         * lib/unicase/u-casecoll.h: New file.
27366         * modules/unicase/u8-casecoll: New file.
27367
27368         New module 'unicase/u32-casexfrm'.
27369         * lib/unicase/u32-casexfrm.c: New file.
27370         * modules/unicase/u32-casexfrm: New file.
27371
27372         New module 'unicase/u16-casexfrm'.
27373         * lib/unicase/u16-casexfrm.c: New file.
27374         * modules/unicase/u16-casexfrm: New file.
27375
27376         New module 'unicase/u8-casexfrm'.
27377         * lib/unicase/u8-casexfrm.c: New file.
27378         * lib/unicase/u-casexfrm.h: New file.
27379         * modules/unicase/u8-casexfrm: New file.
27380
27381         Tests for module 'unicase/u32-casecmp'.
27382         * modules/unicase/u32-casecmp-tests: New file.
27383         * tests/unicase/test-u32-casecmp.c: New file.
27384
27385         Tests for module 'unicase/u16-casecmp'.
27386         * modules/unicase/u16-casecmp-tests: New file.
27387         * tests/unicase/test-u16-casecmp.c: New file.
27388
27389         Tests for module 'unicase/u8-casecmp'.
27390         * modules/unicase/u8-casecmp-tests: New file.
27391         * tests/unicase/test-u8-casecmp.c: New file.
27392         * tests/unicase/test-casecmp.h: New file.
27393
27394         New module 'unicase/u32-casecmp'.
27395         * lib/unicase/u32-casecmp.c: New file.
27396         * modules/unicase/u32-casecmp: New file.
27397
27398         New module 'unicase/u16-casecmp'.
27399         * lib/unicase/u16-casecmp.c: New file.
27400         * modules/unicase/u16-casecmp: New file.
27401
27402         New module 'unicase/u8-casecmp'.
27403         * lib/unicase/u8-casecmp.c: New file.
27404         * lib/unicase/u-casecmp.h: New file.
27405         * modules/unicase/u8-casecmp: New file.
27406
27407         Tests for module 'unicase/u32-casefold'.
27408         * modules/unicase/u32-casefold-tests: New file.
27409         * tests/unicase/test-u32-casefold.c: New file.
27410
27411         Tests for module 'unicase/u16-casefold'.
27412         * modules/unicase/u16-casefold-tests: New file.
27413         * tests/unicase/test-u16-casefold.c: New file.
27414
27415         Tests for module 'unicase/u8-casefold'.
27416         * modules/unicase/u8-casefold-tests: New file.
27417         * tests/unicase/test-u8-casefold.c: New file.
27418
27419         New module 'unicase/u32-casefold'.
27420         * lib/unicase/u32-casefold.c: New file.
27421         * modules/unicase/u32-casefold: New file.
27422
27423         New module 'unicase/u16-casefold'.
27424         * lib/unicase/u16-casefold.c: New file.
27425         * modules/unicase/u16-casefold: New file.
27426
27427         New module 'unicase/u8-casefold'.
27428         * lib/unicase/u8-casefold.c: New file.
27429         * lib/unicase/u-casefold.h: New file.
27430         * modules/unicase/u8-casefold: New file.
27431
27432         New module 'unicase/tocasefold'.
27433         * lib/unicase/casefold.h: New file.
27434         * lib/unicase/tocasefold.c: New file.
27435         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
27436         * modules/unicase/tocasefold: New file.
27437
27438         Tests for module 'unicase/u32-totitle'.
27439         * modules/unicase/u32-totitle-tests: New file.
27440         * tests/unicase/test-u32-totitle.c: New file.
27441
27442         Tests for module 'unicase/u16-totitle'.
27443         * modules/unicase/u16-totitle-tests: New file.
27444         * tests/unicase/test-u16-totitle.c: New file.
27445
27446         Tests for module 'unicase/u8-totitle'.
27447         * modules/unicase/u8-totitle-tests: New file.
27448         * tests/unicase/test-u8-totitle.c: New file.
27449
27450         New module 'unicase/u32-totitle'.
27451         * lib/unicase/u32-totitle.c: New file.
27452         * modules/unicase/u32-totitle: New file.
27453
27454         New module 'unicase/u16-totitle'.
27455         * lib/unicase/u16-totitle.c: New file.
27456         * modules/unicase/u16-totitle: New file.
27457
27458         New module 'unicase/u8-totitle'.
27459         * lib/unicase/u8-totitle.c: New file.
27460         * lib/unicase/u-totitle.h: New file.
27461         * modules/unicase/u8-totitle: New file.
27462
27463         Tests for module 'unicase/u32-tolower'.
27464         * modules/unicase/u32-tolower-tests: New file.
27465         * tests/unicase/test-u32-tolower.c: New file.
27466
27467         Tests for module 'unicase/u16-tolower'.
27468         * modules/unicase/u16-tolower-tests: New file.
27469         * tests/unicase/test-u16-tolower.c: New file.
27470
27471         Tests for module 'unicase/u8-tolower'.
27472         * modules/unicase/u8-tolower-tests: New file.
27473         * tests/unicase/test-u8-tolower.c: New file.
27474
27475         New module 'unicase/u32-tolower'.
27476         * lib/unicase/u32-tolower.c: New file.
27477         * modules/unicase/u32-tolower: New file.
27478
27479         New module 'unicase/u16-tolower'.
27480         * lib/unicase/u16-tolower.c: New file.
27481         * modules/unicase/u16-tolower: New file.
27482
27483         New module 'unicase/u8-tolower'.
27484         * lib/unicase/u8-tolower.c: New file.
27485         * modules/unicase/u8-tolower: New file.
27486
27487         Tests for module 'unicase/u32-toupper'.
27488         * modules/unicase/u32-toupper-tests: New file.
27489         * tests/unicase/test-u32-toupper.c: New file.
27490
27491         Tests for module 'unicase/u16-toupper'.
27492         * modules/unicase/u16-toupper-tests: New file.
27493         * tests/unicase/test-u16-toupper.c: New file.
27494
27495         Tests for module 'unicase/u8-toupper'.
27496         * modules/unicase/u8-toupper-tests: New file.
27497         * tests/unicase/test-u8-toupper.c: New file.
27498
27499         New module 'unicase/u32-toupper'.
27500         * lib/unicase/u32-toupper.c: New file.
27501         * modules/unicase/u32-toupper: New file.
27502
27503         New module 'unicase/u16-toupper'.
27504         * lib/unicase/u16-toupper.c: New file.
27505         * modules/unicase/u16-toupper: New file.
27506
27507         New module 'unicase/u8-toupper'.
27508         * lib/unicase/u8-toupper.c: New file.
27509         * modules/unicase/u8-toupper: New file.
27510
27511         New module 'unicase/u32-casemap'.
27512         * lib/unicase/u32-casemap.c: New file.
27513         * modules/unicase/u32-casemap: New file.
27514
27515         New module 'unicase/u16-casemap'.
27516         * lib/unicase/u16-casemap.c: New file.
27517         * modules/unicase/u16-casemap: New file.
27518
27519         New module 'unicase/u8-casemap'.
27520         * lib/unicase/unicasemap.h: New file.
27521         * lib/unicase/u8-casemap.c: New file.
27522         * lib/unicase/u-casemap.h: New file.
27523         * modules/unicase/u8-casemap: New file.
27524
27525         New module 'unicase/special-casing'.
27526         * lib/unicase/special-casing.h: New file.
27527         * lib/unicase/special-casing.c: New file.
27528         * lib/unicase/special-casing-table.gperf: New file, generated by
27529         gen-uni-tables.c.
27530         * modules/unicase/special-casing: New file.
27531
27532         Tests for module 'unicase/locale-language'.
27533         * modules/unicase/locale-language-tests: New file.
27534         * tests/unicase/test-locale-language.sh: New file.
27535         * tests/unicase/test-locale-language.c: New file.
27536
27537         New module 'unicase/locale-language'.
27538         * lib/unicase/locale-language.c: New file.
27539         * lib/unicase/locale-languages.gperf: New file.
27540         * modules/unicase/locale-language: New file.
27541
27542         Generate more tables for case conversion and case folding.
27543         * lib/gen-uni-tables.c (SCC_*): New enum items.
27544         (struct special_casing_rule): New type.
27545         (casing_rules, num_casing_rules, allocated_casing_rules): New
27546         variables.
27547         (add_casing_rule, fill_casing_rules): New functions.
27548         (struct casefold_rule): New type.
27549         (casefolding_rules, num_casefolding_rules,
27550         allocated_casefolding_rules): New variables.
27551         (fill_casefolding_rules): New function.
27552         (unicode_casefold): New variable.
27553         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
27554         sort_casing_rules, output_casing_rules): New functions.
27555         (main): Accept to more arguments: SpecialCasing.txt and
27556         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
27557         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
27558         Output mapping for casefolding.
27559
27560         * lib/unicase.h: Include stdbool.h, uninorm.h.
27561         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
27562         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
27563         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
27564         arguments.
27565         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
27566         resultp arguments.
27567         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
27568         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
27569         resultp arguments.
27570         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
27571         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
27572         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
27573         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
27574         declarations.
27575         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
27576
27577 2009-03-08  Bruno Haible  <bruno@clisp.org>
27578
27579         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
27580         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
27581         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
27582         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
27583
27584 2009-03-07  Bruno Haible  <bruno@clisp.org>
27585
27586         Adjust u*_normcmp, u*_normcoll API.
27587         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
27588         u16_normcoll, u32_normcoll): Change failure conventions.
27589         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
27590         errno and return -1.
27591         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
27592
27593 2009-03-07  Bruno Haible  <bruno@clisp.org>
27594
27595         Tests for module 'uninorm/u32-normcoll'.
27596         * modules/uninorm/u32-normcoll-tests: New file.
27597         * tests/uninorm/test-u32-normcoll.c: New file.
27598
27599         Tests for module 'uninorm/u16-normcoll'.
27600         * modules/uninorm/u16-normcoll-tests: New file.
27601         * tests/uninorm/test-u16-normcoll.c: New file.
27602
27603         Tests for module 'uninorm/u8-normcoll'.
27604         * modules/uninorm/u8-normcoll-tests: New file.
27605         * tests/uninorm/test-u8-normcoll.c: New file.
27606
27607 2009-03-07  Bruno Haible  <bruno@clisp.org>
27608
27609         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
27610         tests/uninorm/test-u32-normcmp.c.
27611         * tests/uninorm/test-u32-normcmp.c: Include it.
27612         (test_nonascii): New function, extracted from main. Add some more
27613         tests.
27614         (main): Invoke test_ascii and test_nonascii.
27615         * modules/uninorm/u32-normcmp-tests (Files): Add
27616         tests/uninorm/test-u32-normcmp.h.
27617         (Depends-on): Remove uninorm/u32-normcmp.
27618
27619         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
27620         tests/uninorm/test-u16-normcmp.c.
27621         * tests/uninorm/test-u16-normcmp.c: Include it.
27622         (test_nonascii): New function, extracted from main. Add some more
27623         tests.
27624         (main): Invoke test_ascii and test_nonascii.
27625         * modules/uninorm/u16-normcmp-tests (Files): Add
27626         tests/uninorm/test-u16-normcmp.h.
27627         (Depends-on): Remove uninorm/u16-normcmp.
27628
27629         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
27630         tests/uninorm/test-u8-normcmp.c.
27631         * tests/uninorm/test-u8-normcmp.c: Include it.
27632         (test_nonascii): New function, extracted from main. Add some more
27633         tests.
27634         (main): Invoke test_ascii and test_nonascii.
27635         * modules/uninorm/u8-normcmp-tests (Files): Add
27636         tests/uninorm/test-u8-normcmp.h.
27637         (Depends-on): Remove uninorm/u8-normcmp.
27638
27639 2009-03-07  Bruno Haible  <bruno@clisp.org>
27640
27641         New module 'uninorm/u32-normcoll'.
27642         * lib/uninorm/u32-normcoll.c: New file.
27643         * modules/uninorm/u32-normcoll: New file.
27644
27645         New module 'uninorm/u16-normcoll'.
27646         * lib/uninorm/u16-normcoll.c: New file.
27647         * modules/uninorm/u16-normcoll: New file.
27648
27649         New module 'uninorm/u8-normcoll'.
27650         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
27651         declarations.
27652         * lib/uninorm/u8-normcoll.c: New file.
27653         * lib/uninorm/u-normcoll.h: New file.
27654         * modules/uninorm/u8-normcoll: New file.
27655
27656         New module 'uninorm/u32-normxfrm'.
27657         * lib/uninorm/u32-normxfrm.c: New file.
27658         * modules/uninorm/u32-normxfrm: New file.
27659
27660         New module 'uninorm/u16-normxfrm'.
27661         * lib/uninorm/u16-normxfrm.c: New file.
27662         * modules/uninorm/u16-normxfrm: New file.
27663
27664         New module 'uninorm/u8-normxfrm'.
27665         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
27666         declarations.
27667         * lib/uninorm/u8-normxfrm.c: New file.
27668         * lib/uninorm/u-normxfrm.h: New file.
27669         * modules/uninorm/u8-normxfrm: New file.
27670
27671 2009-03-07  Bruno Haible  <bruno@clisp.org>
27672
27673         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
27674         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
27675         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
27676
27677 2009-03-07  Bruno Haible  <bruno@clisp.org>
27678
27679         New module 'memxfrm'.
27680         * lib/memxfrm.h: New file.
27681         * lib/memxfrm.c: New file.
27682         * modules/memxfrm: New file.
27683
27684 2009-03-07  Bruno Haible  <bruno@clisp.org>
27685
27686         New module 'memcmp2'.
27687         * lib/memcmp2.h: New file.
27688         * lib/memcmp2.c: New file.
27689         * modules/memcmp2: New file.
27690
27691 2009-03-07  Bruno Haible  <bruno@clisp.org>
27692
27693         Tests for module 'uninorm/decomposing-form'.
27694         * modules/uninorm/decomposing-form-tests: New file.
27695         * tests/uninorm/test-decomposing-form.c: New file.
27696
27697         New module 'uninorm/decomposing-form'.
27698         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
27699         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
27700         Add 'decomposing_variant' field.
27701         * lib/uninorm/decomposing-form.c: New file.
27702         * lib/uninorm/nfc.c (uninorm_nfc): Update.
27703         * lib/uninorm/nfd.c (uninorm_nfd): Update.
27704         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
27705         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
27706         * modules/uninorm/decomposing-form: New file.
27707         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
27708         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
27709
27710 2009-03-07  Bruno Haible  <bruno@clisp.org>
27711
27712         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
27713         strings.
27714
27715 2009-03-06  Bruno Haible  <bruno@clisp.org>
27716
27717         Tests for module 'uninorm/u32-normcmp'.
27718         * tests/uninorm/test-u32-normcmp.c: New file.
27719         * modules/uninorm/u32-normcmp-tests: New file.
27720
27721         Tests for module 'uninorm/u16-normcmp'.
27722         * tests/uninorm/test-u16-normcmp.c: New file.
27723         * modules/uninorm/u16-normcmp-tests: New file.
27724
27725         Tests for module 'uninorm/u8-normcmp'.
27726         * tests/uninorm/test-u8-normcmp.c: New file.
27727         * modules/uninorm/u8-normcmp-tests: New file.
27728
27729         New module 'uninorm/u32-normcmp'.
27730         * lib/uninorm/u32-normcmp.c: New file.
27731         * modules/uninorm/u32-normcmp: New file.
27732
27733         New module 'uninorm/u16-normcmp'.
27734         * lib/uninorm/u16-normcmp.c: New file.
27735         * modules/uninorm/u16-normcmp: New file.
27736
27737         New module 'uninorm/u8-normcmp'.
27738         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
27739         declarations.
27740         * lib/uninorm/u8-normcmp.c: New file.
27741         * lib/uninorm/u-normcmp.h: New file.
27742         * modules/uninorm/u8-normcmp: New file.
27743
27744 2009-03-06  Bruno Haible  <bruno@clisp.org>
27745
27746         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
27747         Reported by Eric Blake.
27748
27749 2009-03-06  Eric Blake  <ebb9@byu.net>
27750             Bruno Haible  <bruno@clisp.org>
27751
27752         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
27753         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
27754         condition.
27755         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
27756         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
27757         condition.
27758         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
27759
27760 2009-03-06  Eric Blake  <ebb9@byu.net>
27761
27762         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
27763         to avoid compiler warnings.
27764         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
27765
27766 2009-03-05  Bruno Haible  <bruno@clisp.org>
27767
27768         * tests/test-ftell.c (main): Disable test beyond end of file on
27769         FreeMiNT.
27770         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
27771
27772 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
27773
27774         * lib/filevercmp.c: Move hidden files up in ordering.
27775         * tests/test-filevercmp.c: Add tests for hidden files.
27776
27777 2009-03-04  Bruno Haible  <bruno@clisp.org>
27778
27779         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
27780         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
27781         AM_CFLAGS.
27782         Reported by Simon Josefsson.
27783
27784 2009-03-03  Bruno Haible  <bruno@clisp.org>
27785
27786         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
27787         Reported by Simon Josefsson.
27788
27789         * doc/ld-version-script.texi: Update node reference.
27790
27791 2009-03-03  Bruno Haible  <bruno@clisp.org>
27792
27793         * modules/visibility (License): Change to 'unlimited'.
27794         Suggested by Simon Josefsson.
27795
27796 2009-03-03  Jim Meyering  <meyering@redhat.com>
27797
27798         unlinkdir: cannot_unlink_dir may modify process state
27799         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
27800         it's neither thread-safe nor appropriate for use in a library.
27801
27802 2009-03-03  Eric Blake  <ebb9@byu.net>
27803
27804         test-closein: silence test under Darwin
27805         * tests/test-closein.sh: Ignore stderr from cat, since we don't
27806         care if it dies from EPIPE or EBADF.
27807
27808 2009-03-03  Bruno Haible  <bruno@clisp.org>
27809
27810         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
27811         earlier.
27812         * doc/visibility.texi: Fix @node and @section.
27813
27814 2009-03-03  Simon Josefsson  <simon@josefsson.org>
27815
27816         * doc/gnulib.texi: Link to sections for ld version script and
27817         visibility.
27818         * doc/visibility.texi: Add @node and @section.
27819         * modules/ld-version-script: New module.
27820         * m4/ld-version-script.m4: New file.
27821         * doc/ld-version-script.texi: New file.
27822
27823 2009-03-02  David Lutterkort  <lutter@redhat.com>
27824
27825         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
27826         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27827
27828 2009-03-02  Bruno Haible  <bruno@clisp.org>
27829
27830         * doc/visibility.texi: Mention libtool's -export-symbols option.
27831
27832 2009-03-02  Jim Meyering  <meyering@redhat.com>
27833
27834         announce-gen: new option: --no-print-checksums
27835         * build-aux/announce-gen (usage): Describe it.
27836         (print_checksums): Print a newline here, not in the [*] footnote.
27837         (main): Honor it.
27838
27839 2009-03-01  Bruno Haible  <bruno@clisp.org>
27840
27841         Use socklen_t in the native Windows replacements prototypes.
27842         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
27843         instead of 'int'.
27844         * lib/getsockopt.c (rpl_getsockopt): Likewise.
27845         * lib/setsockopt.c (rpl_setsockopt): Likewise.
27846         * modules/getsockopt (Depends-on): Add socklen.
27847         * modules/setsockopt (Depends-on): Add socklen.
27848
27849 2009-03-01  Bruno Haible  <bruno@clisp.org>
27850
27851         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
27852         least 4.2.
27853
27854 2009-03-01  Eric Blake  <ebb9@byu.net>
27855             Bruno Haible  <bruno@clisp.org>
27856
27857         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
27858         error messages.
27859         * lib/wait-process.c (wait_subprocess): Omit error message about
27860         deadly signal sent to the child of termsigp != NULL.
27861
27862 2009-03-01  Eric Blake  <ebb9@byu.net>
27863
27864         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
27865
27866 2009-03-01  Bruno Haible  <bruno@clisp.org>
27867
27868         Avoid a gcc warning.
27869         * tests/test-sched.c (b): Make global.
27870         Reported by Eric Blake.
27871
27872 2009-01-19  Martin Lambers  <marlam@marlam.de>
27873
27874         Provide POSIX semantics for socket timeout options on W32.
27875         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
27876         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
27877         * modules/setsockopt: Depend on sys_time module for struct timeval.
27878         * modules/getsockopt: Depend on sys_time module for struct timeval.
27879
27880 2009-03-01  Simon Josefsson  <simon@josefsson.org>
27881
27882         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
27883         __USE_GNU, for consistency with netdb.in.h.
27884         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27885
27886 2009-03-01  Bruno Haible  <bruno@clisp.org>
27887
27888         More support for FreeMiNT.
27889         * lib/fseeko.c (rpl_fseeko): Complete last commit.
27890         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27891
27892 2009-03-01  Bruno Haible  <bruno@clisp.org>
27893
27894         More support for FreeMiNT.
27895         * lib/fpurge.c (fpurge): Correct last commit.
27896         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27897
27898 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27899
27900         Fix unportable awk script in vc-list-files.
27901         * build-aux/vc-list-files: In the replacement awk script, use
27902         substr with a second argument of 1, not zero.
27903         Report by Simon Josefsson.
27904
27905 2009-02-28  Bruno Haible  <bruno@clisp.org>
27906
27907         More support for FreeMiNT.
27908         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
27909         to FreeMiNT today.
27910         * lib/fwriting.c (fwriting): Likewise.
27911         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
27912
27913 2009-02-28  Bruno Haible  <bruno@clisp.org>
27914
27915         * tests/test-freadseek.c (main): Disable test beyond end of file on
27916         FreeMiNT.
27917         * tests/test-ftello.c (main): Likewise.
27918         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
27919
27920 2009-02-28  Bruno Haible  <bruno@clisp.org>
27921
27922         Add tentative support for FreeMiNT.
27923         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
27924         * lib/fpurge.c (fpurge): Likewise.
27925         * lib/freadable.c (freadable): Likewise.
27926         * lib/freading.c (freading): Likewise.
27927         * lib/freadptr.c (freadptr): Likewise.
27928         * lib/freadseek.c (freadptrinc): Likewise.
27929         * lib/fseeko.c (rpl_fseeko): Likewise.
27930         * lib/fseterr.c (fseterr): Likewise.
27931         * lib/fwritable.c (fwritable): Likewise.
27932         * lib/fwriting.c (fwriting): Likewise.
27933         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
27934         Hourihane.
27935         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27936
27937 2009-02-28  Bruno Haible  <bruno@clisp.org>
27938
27939         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
27940         SIGCHLD.
27941         Reported by Jim Meyering.
27942
27943 2009-02-28  Bruno Haible  <bruno@clisp.org>
27944
27945         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
27946         Mention the results of these tests on various platforms.
27947         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
27948         order.
27949         * doc/posix-functions/printf.texi: Likewise.
27950         * doc/posix-functions/snprintf.texi: Likewise.
27951         * doc/posix-functions/sprintf.texi: Likewise.
27952         * doc/posix-functions/vfprintf.texi: Likewise.
27953         * doc/posix-functions/vprintf.texi: Likewise.
27954         * doc/posix-functions/vsnprintf.texi: Likewise.
27955         * doc/posix-functions/vsprintf.texi: Likewise.
27956         * doc/glibc-functions/obstack_printf.texi: Likewise.
27957         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27958
27959 2009-02-28  Bruno Haible  <bruno@clisp.org>
27960
27961         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
27962         Reported by Loïc Minier <lool@dooz.org>.
27963
27964 2009-02-27  Bruno Haible  <bruno@clisp.org>
27965
27966         * gnulib-tool (func_import): Make the sed expression used to create the
27967         sed script for updating the .gitignore file POSIX compliant.
27968         Reported by Eric Blake.
27969
27970 2009-02-27  Bruno Haible  <bruno@clisp.org>
27971
27972         * gnulib-tool (sed): Don't alias as "sed --posix".
27973         Reported by Eric Blake.
27974
27975 2009-02-27  Bruno Haible  <bruno@clisp.org>
27976
27977         Avoid test link errors.
27978         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
27979         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
27980         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
27981         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
27982         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27983
27984 2009-02-27  Bruno Haible  <bruno@clisp.org>
27985
27986         Avoid spurious "(cached)" in configure output.
27987         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
27988         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
27989         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27990         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27991         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27992         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
27993         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27994         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
27995         Reported by Eric Blake.
27996
27997 2009-02-27  Eric Blake  <ebb9@byu.net>
27998
27999         printf: fix regression in previous patch
28000         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
28001
28002 2009-02-27  Bruno Haible  <bruno@clisp.org>
28003
28004         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
28005         value.
28006         * lib/stdint.in.h: Likewise.
28007         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
28008
28009 2009-02-27  Eric Blake  <ebb9@byu.net>
28010
28011         doc: mention more functions added in cygwin 1.7.0
28012         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
28013         addition.
28014         * doc/posix-functions/open_wmemstream.texi: Likewise.
28015         * doc/posix-functions/wcsnlen.texi: Likewise.
28016         * doc/posix-functions/wcsnrtombs.texi: Likewise.
28017         * doc/posix-functions/wcstod.texi: Likewise.
28018         * doc/posix-functions/wcstof.texi: Likewise.
28019         * doc/posix-functions/wcstoimax.texi: Likewise.
28020         * doc/posix-functions/wcstok.texi: Likewise.
28021         * doc/posix-functions/wcstoumax.texi: Likewise.
28022
28023         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
28024         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
28025         * doc/posix-functions/fprintf.texi: Update.
28026         * doc/posix-functions/printf.texi: Update.
28027         * doc/posix-functions/snprintf.texi: Update.
28028         * doc/posix-functions/sprintf.texi: Update.
28029         * doc/posix-functions/vfprintf.texi: Update.
28030         * doc/posix-functions/vprintf.texi: Update.
28031         * doc/posix-functions/vsnprintf.texi: Update.
28032         * doc/posix-functions/vsprintf.texi: Update.
28033         * doc/glibc-functions/obstack_printf.texi: Update.
28034         * doc/glibc-functions/obstack_vprintf.texi: Update.
28035
28036 2009-02-26  Eric Blake  <ebb9@byu.net>
28037
28038         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
28039         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
28040         compilation bug by using runtime conversion.
28041         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
28042         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
28043         * modules/ceill-tests (Files): Use nan.h.
28044         * modules/floorl-tests (Files): Likewise.
28045         * modules/frexpl-tests (Files): Likewise.
28046         * modules/isnanl-tests (Files): Likewise.
28047         * modules/ldexpl-tests (Files): Likewise.
28048         * modules/roundl-tests (Files): Likewise.
28049         * modules/truncl-tests (Files): Likewise.
28050         * tests/test-ceill.c (main): Use a working NaN.
28051         * tests/test-floorl.c (main): Likewise.
28052         * tests/test-frexpl.c (main): Likewise.
28053         * tests/test-isnan.c (test_long_double): Likewise.
28054         * tests/test-isnanl.h (main): Likewise.
28055         * tests/test-ldexpl.h (main): Likewise.
28056         * tests/test-roundl.h (main): Likewise.
28057         * tests/test-truncl.h (main): Likewise.
28058         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
28059
28060 2009-02-26  Eric Blake  <ebb9@byu.net>
28061             Bruno Haible  <bruno@clisp.org>
28062
28063         Work around a *printf bug with %ls on Solaris.
28064         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
28065         precision is specified, sprintf stops converting the wide string
28066         argument when the number of bytes that have been produced by this
28067         conversion equals or exceeds the precision.
28068         * doc/posix-functions/fprintf.texi: Update.
28069         * doc/posix-functions/printf.texi: Update.
28070         * doc/posix-functions/snprintf.texi: Update.
28071         * doc/posix-functions/sprintf.texi: Update.
28072         * doc/posix-functions/vfprintf.texi: Update.
28073         * doc/posix-functions/vprintf.texi: Update.
28074         * doc/posix-functions/vsnprintf.texi: Update.
28075         * doc/posix-functions/vsprintf.texi: Update.
28076         * doc/glibc-functions/obstack_printf.texi: Update.
28077         * doc/glibc-functions/obstack_vprintf.texi: Update.
28078
28079 2009-02-26  Eric Blake  <ebb9@byu.net>
28080
28081         stdlib: favor compiler check of random.h
28082         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
28083         to avoid an ObjC random.h installed by Swarm.
28084
28085 2009-02-26  Bruno Haible  <bruno@clisp.org>
28086
28087         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
28088         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
28089         Reported by Gary V. Vaughan <gary@gnu.org>.
28090
28091 2009-02-26  Bruno Haible  <bruno@clisp.org>
28092
28093         Fix *printf behaviour regarding the %ls directive.
28094         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
28095         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
28096         NEED_PRINTF_DIRECTIVE_LS.
28097         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
28098         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28099         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28100         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
28101         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
28102         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
28103         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
28104         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28105         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28106         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28107         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28108         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
28109         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28110         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28111         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28112         * doc/posix-functions/fprintf.texi: Update.
28113         * doc/posix-functions/printf.texi: Update.
28114         * doc/posix-functions/snprintf.texi: Update.
28115         * doc/posix-functions/sprintf.texi: Update.
28116         * doc/posix-functions/vfprintf.texi: Update.
28117         * doc/posix-functions/vprintf.texi: Update.
28118         * doc/posix-functions/vsnprintf.texi: Update.
28119         * doc/posix-functions/vsprintf.texi: Update.
28120         * doc/glibc-functions/obstack_printf.texi: Update.
28121         * doc/glibc-functions/obstack_vprintf.texi: Update.
28122         Reported by Eric Blake.
28123
28124 2009-02-25  Bruno Haible  <bruno@clisp.org>
28125
28126         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
28127         with known value.
28128         Reported by Gary V. Vaughan <gary@gnu.org>.
28129
28130 2009-02-25  Bruno Haible  <bruno@clisp.org>
28131
28132         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
28133         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
28134         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
28135         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
28136         Reported by Gary V. Vaughan <gary@gnu.org>.
28137
28138 2009-02-25  Bruno Haible  <bruno@clisp.org>
28139
28140         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
28141         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
28142         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
28143         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
28144         Reported by Gary V. Vaughan <gary@gnu.org>.
28145
28146 2009-02-25  Eric Blake  <ebb9@byu.net>
28147
28148         tests: skip fseek/ftell tests if ungetc is broken
28149         * m4/ungetc.m4: New file.
28150         * modules/fseek-tests: Split test, so ungetc dependency is
28151         separate from rest of test.
28152         * modules/fseeko-tests: Likewise.
28153         * modules/ftell-tests: Likewise.
28154         * modules/ftello-tests: Likewise.
28155         * tests/test-fseek.c (main): Isolate ungetc dependency.
28156         * tests/test-fseeko.c (main): Likewise.
28157         * tests/test-ftell.c (main): Likewise.
28158         * tests/test-ftello.c (main): Likewise.
28159         * tests/test-fseek2.sh: New file.
28160         * tests/test-fseeko2.sh: Likewise.
28161         * tests/test-ftell2.sh: Likewise.
28162         * tests/test-ftello2.sh: Likewise.
28163
28164 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
28165
28166         test-getaddrinfo: fix usage of skip return code 77
28167         * tests/test-gettaddrinfo.c: Return skip code 77 only
28168         for first occurance of skip (4x77 is not 77)
28169
28170 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
28171
28172         strtod: avoid C99 decl-after-statement
28173         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
28174
28175 2009-02-24  Eric Blake  <ebb9@byu.net>
28176
28177         strtod: detect HP-UX 11.31 bug
28178         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
28179         Reported by Gary V. Vaughan.
28180
28181 2009-02-23  Bruno Haible  <bruno@clisp.org>
28182
28183         Fix invalid read past end of memory block.
28184         * lib/vasnprintf.c (DCHAR_SET): Define.
28185         (local_wcslen): Define only when needed.
28186         (local_strnlen, local_wcsnlen): New functions.
28187         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
28188         directives that involve a conversion ourselves.
28189         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
28190         wcsnlen, mbrtowc, wcrtomb.
28191         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
28192         * tests/test-vasprintf-posix.c (test_function): Likewise.
28193         * tests/test-snprintf-posix.h (test_function): Likewise.
28194         * tests/test-sprintf-posix.h (test_function): Likewise.
28195         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28196
28197 2009-02-22  Bruno Haible  <bruno@clisp.org>
28198
28199         Implement new clarified decomposition of Hangul syllables.
28200         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
28201         of type LTV, return only a pairwise decomposition.
28202         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
28203         Likewise.
28204         * tests/uninorm/test-decomposition.c (main): Updated expected result.
28205         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
28206         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
28207
28208 2009-02-22  Bruno Haible  <bruno@clisp.org>
28209
28210         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
28211         zero-length results and shrink excess allocated memory.
28212         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
28213         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
28214         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
28215         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
28216         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
28217         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
28218         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
28219         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
28220         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
28221         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
28222         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
28223         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
28224
28225 2009-02-21  Bruno Haible  <bruno@clisp.org>
28226
28227         * doc/gnulib.texi: Include safe-alloc.texi earlier.
28228         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
28229         spaces after a period. Put a space between a macro name and its
28230         argument list. Trivial rewordings.
28231         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
28232         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
28233         (main): Return 0 explicitly.
28234
28235 2009-02-21  Bruno Haible  <bruno@clisp.org>
28236
28237         Tests for module 'uninorm/filter'.
28238         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
28239         * modules/uninorm/filter-tests: New file.
28240
28241         New module 'uninorm/filter'.
28242         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
28243         uninorm_filter_flush, uninorm_filter_free): New declarations.
28244         * lib/uninorm/uninorm-filter.c: New file.
28245         * modules/uninorm/filter: New file.
28246
28247 2009-02-21  Bruno Haible  <bruno@clisp.org>
28248
28249         Tests for module 'uninorm/nfkc'.
28250         * tests/uninorm/test-nfkc.c: New file.
28251         * tests/uninorm/test-u8-nfkc.c: New file.
28252         * tests/uninorm/test-u16-nfkc.c: New file.
28253         * tests/uninorm/test-u32-nfkc.c: New file.
28254         * tests/uninorm/test-u32-nfkc-big.sh: New file.
28255         * tests/uninorm/test-u32-nfkc-big.c: New file.
28256         * modules/uninorm/nfkc-tests: New file.
28257
28258         New module 'uninorm/nfkc'.
28259         * lib/uninorm/nfkc.c: New file.
28260         * modules/uninorm/nfkc: New file.
28261
28262         Tests for module 'uninorm/nfkd'.
28263         * tests/uninorm/test-nfkd.c: New file.
28264         * tests/uninorm/test-u8-nfkd.c: New file.
28265         * tests/uninorm/test-u16-nfkd.c: New file.
28266         * tests/uninorm/test-u32-nfkd.c: New file.
28267         * tests/uninorm/test-u32-nfkd-big.sh: New file.
28268         * tests/uninorm/test-u32-nfkd-big.c: New file.
28269         * modules/uninorm/nfkd-tests: New file.
28270
28271         New module 'uninorm/nfkd'.
28272         * lib/uninorm/nfkd.c: New file.
28273         * modules/uninorm/nfkd: New file.
28274
28275         Tests for module 'uninorm/nfc'.
28276         * tests/uninorm/test-nfc.c: New file.
28277         * tests/uninorm/test-u8-nfc.c: New file.
28278         * tests/uninorm/test-u16-nfc.c: New file.
28279         * tests/uninorm/test-u32-nfc.c: New file.
28280         * tests/uninorm/test-u32-nfc-big.sh: New file.
28281         * tests/uninorm/test-u32-nfc-big.c: New file.
28282         * modules/uninorm/nfc-tests: New file.
28283
28284         New module 'uninorm/nfc'.
28285         * lib/uninorm/nfc.c: New file.
28286         * modules/uninorm/nfc: New file.
28287
28288         Tests for module 'uninorm/nfd'.
28289         * tests/uninorm/test-nfd.c: New file.
28290         * tests/uninorm/test-u8-nfd.c: New file.
28291         * tests/uninorm/test-u16-nfd.c: New file.
28292         * tests/uninorm/test-u32-nfd.c: New file.
28293         * tests/uninorm/test-u32-nfd-big.sh: New file.
28294         * tests/uninorm/test-u32-nfd-big.c: New file.
28295         * tests/uninorm/test-u32-normalize-big.h: New file.
28296         * tests/uninorm/test-u32-normalize-big.c: New file.
28297         * tests/uninorm/NormalizationTest.txt: New file, created from
28298         Unicode 5.1.0 NormalizationTest.txt.
28299         * modules/uninorm/nfd-tests: New file.
28300
28301         New module 'uninorm/nfd'.
28302         * lib/uninorm/nfd.c: New file.
28303         * modules/uninorm/nfd: New file.
28304
28305         New module 'uninorm/u32-normalize'.
28306         * lib/uninorm/u32-normalize.c: New file.
28307         * modules/uninorm/u32-normalize: New file.
28308
28309         New module 'uninorm/u16-normalize'.
28310         * lib/uninorm/u16-normalize.c: New file.
28311         * modules/uninorm/u16-normalize: New file.
28312
28313         New module 'uninorm/u8-normalize'.
28314         * lib/uninorm/u8-normalize.c: New file.
28315         * lib/uninorm/normalize-internal.h: New file.
28316         * lib/uninorm/u-normalize-internal.h: New file.
28317         * modules/uninorm/u8-normalize: New file.
28318
28319         New module 'uninorm/decompose-internal'.
28320         * lib/uninorm/decompose-internal.c: New file.
28321         * modules/uninorm/decompose-internal: New file.
28322
28323         Tests for module 'uninorm/composition'.
28324         * tests/uninorm/test-composition.c: New file.
28325         * modules/uninorm/composition-tests: New file.
28326
28327         New module 'uninorm/composition'.
28328         * lib/uninorm/composition.c: New file.
28329         * lib/uninorm/composition-table.gperf: New file, generated by
28330         gen-uni-tables.
28331         * modules/uninorm/composition: New file.
28332
28333         Tests for module 'uninorm/compat-decomposition'.
28334         * tests/uninorm/test-compat-decomposition.c: New file.
28335         * modules/uninorm/compat-decomposition-tests: New file.
28336
28337         New module 'uninorm/compat-decomposition'.
28338         * lib/uninorm/decompose-internal.h: New file.
28339         * lib/uninorm/compat-decomposition.c: New file.
28340         * modules/uninorm/compat-decomposition: New file.
28341
28342         Tests for module 'uninorm/canonical-decomposition'.
28343         * tests/uninorm/test-canonical-decomposition.c: New file.
28344         * modules/uninorm/canonical-decomposition-tests: New file.
28345
28346         New module 'uninorm/canonical-decomposition'.
28347         * lib/uninorm/canonical-decomposition.c: New file.
28348         * modules/uninorm/canonical-decomposition: New file.
28349
28350         Tests for module 'uninorm/decomposition'.
28351         * tests/uninorm/test-decomposition.c: New file.
28352         * modules/uninorm/decomposition-tests: New file.
28353
28354         New module 'uninorm/decomposition'.
28355         * lib/uninorm/decomposition.c: New file.
28356         * modules/uninorm/decomposition: New file.
28357
28358         New module 'uninorm/decomposition-table'.
28359         * lib/uninorm/decomposition-table.h: New file.
28360         * lib/uninorm/decomposition-table.c: New file.
28361         * lib/uninorm/decomposition-table1.h: New file, generated by
28362         gen-uni-tables.
28363         * lib/uninorm/decomposition-table2.h: New file, generated by
28364         gen-uni-tables.
28365         * modules/uninorm/decomposition-table: New file.
28366
28367         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
28368         (UC_DECOMP_*): New enumeration items.
28369         (get_decomposition): New function.
28370         (struct decomp_table): New type.
28371         (output_decomposition, output_decomposition_tables): New functions.
28372         (unicode_composition_exclusions): New variable.
28373         (fill_composition_exclusions, debug_output_composition_tables): New
28374         functions.
28375         (main): Accept one more argument. Invoke fill_composition_exclusions.
28376         Output decomposition and composition tables.
28377
28378         New module 'uninorm/base'.
28379         * lib/uninorm.h: New file.
28380         * lib/unictype.h: Update comment.
28381         * modules/uninorm/base: New file.
28382
28383 2009-02-21  David Lutterkort  <lutter@redhat.com>
28384
28385         Tests for module 'safe-alloc'.
28386         * tests/test-safe-alloc.c: New file.
28387         * modules/safe-alloc-tests: New file.
28388
28389         New module 'safe-alloc'.
28390         * lib/safe-alloc.h: New file.
28391         * lib/safe-alloc.c: New file.
28392         * m4/safe-alloc.m4: New file.
28393         * modules/safe-alloc: New file.
28394         * doc/safe-alloc.texi: New file.
28395         * doc/gnulib.texi: Include it.
28396         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
28397         safe-alloc.
28398
28399 2009-02-18  Bruno Haible  <bruno@clisp.org>
28400
28401         Fix link error on non-glibc systems.
28402         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
28403         variable.
28404         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28405
28406 2009-02-18  Jim Meyering  <meyering@redhat.com>
28407
28408         fts: avoid used-uninitialized error due to recent change
28409         * lib/fts.c (fts_read): Guard uses of the new member,
28410         parent->fts_n_dirs_remaining, since it's not relevant for
28411         the parent of a directory specified on the command-line.
28412
28413 2009-02-17  James Youngman  <jay@gnu.org>
28414             Bruno Haible  <bruno@clisp.org>
28415
28416         * m4/include_next.m4: Reformulate comment.
28417
28418 2009-02-16  Jim Meyering  <meyering@redhat.com>
28419
28420         fts: add #if guards so that the fts_lgpl module still builds
28421         * lib/fts.c: Guard just-added hash-table-using parts with
28422         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
28423         Reported by Simon Josefsson.
28424
28425 2009-02-15  Bruno Haible  <bruno@clisp.org>
28426
28427         * modules/array-mergesort-tests: New file.
28428         * tests/test-array-mergesort.c: New file.
28429
28430         New module 'array-mergesort'.
28431         * modules/array-mergesort: New file.
28432         * lib/array-mergesort.h: New file.
28433
28434 2009-02-15  Bruno Haible  <bruno@clisp.org>
28435
28436         Fix 2009-02-07 commit.
28437         * lib/gen-uni-tables.c (output_predicate, output_category,
28438         output_combclass, output_bidi_category, output_decimal_digit,
28439         output_digit, output_numeric, output_mirror, output_scripts,
28440         output_ident_category, output_simple_mapping): Fix format directives.
28441         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
28442
28443 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
28444
28445         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
28446         fixes are available from IBM.
28447
28448 2009-02-13  Jim Meyering  <meyering@redhat.com>
28449
28450         fts: arrange not to stat non-directories in more cases
28451         This makes GNU find (when it doesn't need to stat each file)
28452         *much* more efficient at traversing reiserfs file systems.
28453         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
28454         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
28455         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
28456         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
28457         (leaf_optimization_applies): New function.
28458         (LCO_hash, LCO_compare): New helper functions.
28459         (link_count_optimize_ok): New function.
28460         (fts_stat): Initialize new member (if dir).
28461         (fts_read): Decrement parent's fts_n_dirs_remaining count if
28462         we've just stat'ed a directory.  Skip the stat call when possible.
28463         ---
28464         Note this AFS-related exchange:
28465         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
28466         and note find's pioctl call in find/fstype.c.
28467         But that is necessary only if you want to enable the
28468         optimization for AFS, and for now, I don't.
28469
28470         fts: move a function definition "up" (no semantic change)
28471         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
28472         "up" to precede upcoming use of a related function.
28473
28474 2009-02-11  Jim Meyering  <meyering@redhat.com>
28475
28476         fts: correct internal computation of nlinks (optimization-related)
28477         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
28478         whether the current entry is a directory, so don't test it.
28479
28480 2009-02-10  Bruno Haible  <bruno@clisp.org>
28481
28482         Tests for module 'uniwbrk/ulc-wordbreaks'.
28483         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
28484         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
28485         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
28486
28487         Tests for module 'uniwbrk/u32-wordbreaks'.
28488         * modules/uniwbrk/u32-wordbreaks-tests: New file.
28489         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
28490
28491         Tests for module 'uniwbrk/u16-wordbreaks'.
28492         * modules/uniwbrk/u16-wordbreaks-tests: New file.
28493         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
28494
28495         Tests for module 'uniwbrk/u8-wordbreaks'.
28496         * modules/uniwbrk/u8-wordbreaks-tests: New file.
28497         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
28498
28499 2009-02-10  Bruno Haible  <bruno@clisp.org>
28500
28501         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
28502         property.
28503         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
28504         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
28505         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
28506
28507 2009-02-10  Simon Josefsson  <simon@josefsson.org>
28508
28509         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
28510         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
28511
28512 2009-02-10  Bruno Haible  <bruno@clisp.org>
28513
28514         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
28515         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
28516         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
28517         * lib/unilbrk/u8-possible-linebreaks.c: Update.
28518         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
28519         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
28520
28521 2009-02-09  Simon Josefsson  <simon@josefsson.org>
28522
28523         * lib/sockets.h (gl_fd_to_handle): New function.
28524
28525         * tests/test-sockets.c: Call gl_fd_to_handle.
28526
28527 2009-02-09  Bruno Haible  <bruno@clisp.org>
28528
28529         * doc/havelib.texi: Document the conventions on bi-arch systems.
28530
28531 2009-02-08  Bruno Haible  <bruno@clisp.org>
28532
28533         Document the AC_LIB_LINKFLAGS macro.
28534         * doc/havelib.texi: New file, mostly written on 2005-05-24.
28535         * doc/gnulib.texi: Include it.
28536
28537 2009-02-08  Bruno Haible  <bruno@clisp.org>
28538
28539         Fix wrong order of sections, compared to TOC.
28540         * doc/gnulib.texi: Include relocatable-maint.texi after the
28541         "Regular expressions" node, not before.
28542
28543 2009-02-08  Bruno Haible  <bruno@clisp.org>
28544
28545         Tests for module 'unicase/totitle'.
28546         * modules/unicase/totitle-tests: New file.
28547
28548         Tests for module 'unicase/tolower'.
28549         * modules/unicase/tolower-tests: New file.
28550
28551         Tests for module 'unicase/toupper'.
28552         * modules/unicase/toupper-tests: New file.
28553         * tests/unicase/test-mapping-part1.h: New file.
28554         * tests/unicase/test-mapping-part2.h: New file.
28555
28556         New module 'unicase/totitle'.
28557         * modules/unicase/totitle: New file.
28558         * lib/unicase/totitle.c: New file.
28559
28560         New module 'unicase/tolower'.
28561         * modules/unicase/tolower: New file.
28562         * lib/unicase/tolower.c: New file.
28563
28564         New module 'unicase/toupper'.
28565         * modules/unicase/toupper: New file.
28566         * lib/unicase/toupper.c: New file.
28567         * lib/unicase/simple-mapping.h: New file.
28568
28569         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
28570         (mapping_table): New structure.
28571         (output_simple_mapping): New function.
28572         (main): Invoke output_simple_mapping_test and output_simple_mapping.
28573         * modules/gen-uni-tables (Description): Update.
28574         * lib/unicase/toupper.h: New file, automatically generated by
28575         gen-uni-tables.
28576         * lib/unicase/tolower.h: New file, automatically generated by
28577         gen-uni-tables.
28578         * lib/unicase/totitle.h: New file, automatically generated by
28579         gen-uni-tables.
28580         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
28581         gen-uni-tables.
28582         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
28583         gen-uni-tables.
28584         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
28585         gen-uni-tables.
28586
28587         New module 'unicase/base'.
28588         * modules/unicase/base: New file.
28589         * lib/unicase.h: New file.
28590
28591 2009-02-08  Bruno Haible  <bruno@clisp.org>
28592
28593         New module 'uniwbrk/ulc-wordbreaks'.
28594         * modules/uniwbrk/ulc-wordbreaks: New file.
28595         * lib/uniwbrk/ulc-wordbreaks.c: New file.
28596
28597         New module 'uniwbrk/u32-wordbreaks'.
28598         * modules/uniwbrk/u32-wordbreaks: New file.
28599         * lib/uniwbrk/u32-wordbreaks.c: New file.
28600
28601         New module 'uniwbrk/u16-wordbreaks'.
28602         * modules/uniwbrk/u16-wordbreaks: New file.
28603         * lib/uniwbrk/u16-wordbreaks.c: New file.
28604
28605         New module 'uniwbrk/u8-wordbreaks'.
28606         * modules/uniwbrk/u8-wordbreaks: New file.
28607         * lib/uniwbrk/u8-wordbreaks.c: New file.
28608         * lib/uniwbrk/u-wordbreaks.h: New file.
28609
28610         New module 'uniwbrk/table'.
28611         * modules/uniwbrk/table: New file.
28612         * lib/uniwbrk/wbrktable.h: New file.
28613         * lib/uniwbrk/wbrktable.c: New file.
28614
28615         New module 'uniwbrk/wordbreak-property'.
28616         * modules/uniwbrk/wordbreak-property: New file.
28617         * lib/uniwbrk/wordbreak-property.c: New file.
28618
28619         * lib/gen-uni-tables.c (WBP_*): New enum items.
28620         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
28621         (unicode_org_wbp): New variable.
28622         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
28623         New functions.
28624         (wbp_table): New structure.
28625         (output_wbp, output_wbrk_tables): New functions.
28626         (main): Accept additional argument. Invoke fill_org_wbp,
28627         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
28628         output_wbrk_tables.
28629         * modules/gen-uni-tables (Description): Update.
28630         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
28631         gen-uni-tables.
28632
28633         New module 'uniwbrk/base'.
28634         * modules/uniwbrk/base: New file.
28635         * lib/uniwbrk.h: New file.
28636
28637 2009-02-08  Bruno Haible  <bruno@clisp.org>
28638
28639         Update to Unicode 5.1.0.
28640         * lib/gen-uni-tables.c (is_property_alphabetic): Include
28641         U+2185..U+2188.
28642         (is_property_default_ignorable_code_point): Don't include characters
28643         of category Cc or Cs and not-a-characters.
28644         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
28645         U+0D79, U+109E, U+109F, U+A60C.
28646         * lib/unictype/bidi_of.h: Regenerated.
28647         * lib/unictype/blocks.h: Regenerated.
28648         * lib/unictype/categ_C.h: Regenerated.
28649         * lib/unictype/categ_Cf.h: Regenerated.
28650         * lib/unictype/categ_Cn.h: Regenerated.
28651         * lib/unictype/categ_L.h: Regenerated.
28652         * lib/unictype/categ_Ll.h: Regenerated.
28653         * lib/unictype/categ_Lm.h: Regenerated.
28654         * lib/unictype/categ_Lo.h: Regenerated.
28655         * lib/unictype/categ_Lu.h: Regenerated.
28656         * lib/unictype/categ_M.h: Regenerated.
28657         * lib/unictype/categ_Mc.h: Regenerated.
28658         * lib/unictype/categ_Me.h: Regenerated.
28659         * lib/unictype/categ_Mn.h: Regenerated.
28660         * lib/unictype/categ_N.h: Regenerated.
28661         * lib/unictype/categ_Nd.h: Regenerated.
28662         * lib/unictype/categ_Nl.h: Regenerated.
28663         * lib/unictype/categ_No.h: Regenerated.
28664         * lib/unictype/categ_P.h: Regenerated.
28665         * lib/unictype/categ_Pd.h: Regenerated.
28666         * lib/unictype/categ_Pe.h: Regenerated.
28667         * lib/unictype/categ_Pf.h: Regenerated.
28668         * lib/unictype/categ_Pi.h: Regenerated.
28669         * lib/unictype/categ_Po.h: Regenerated.
28670         * lib/unictype/categ_Ps.h: Regenerated.
28671         * lib/unictype/categ_S.h: Regenerated.
28672         * lib/unictype/categ_Sk.h: Regenerated.
28673         * lib/unictype/categ_Sm.h: Regenerated.
28674         * lib/unictype/categ_So.h: Regenerated.
28675         * lib/unictype/categ_of.h: Regenerated.
28676         * lib/unictype/combining.h: Regenerated.
28677         * lib/unictype/ctype_alnum.h: Regenerated.
28678         * lib/unictype/ctype_alpha.h: Regenerated.
28679         * lib/unictype/ctype_graph.h: Regenerated.
28680         * lib/unictype/ctype_lower.h: Regenerated.
28681         * lib/unictype/ctype_print.h: Regenerated.
28682         * lib/unictype/ctype_punct.h: Regenerated.
28683         * lib/unictype/ctype_upper.h: Regenerated.
28684         * lib/unictype/decdigit.h: Regenerated.
28685         * lib/unictype/digit.h: Regenerated.
28686         * lib/unictype/mirror.h: Regenerated.
28687         * lib/unictype/numeric.h: Regenerated.
28688         * lib/unictype/pr_alphabetic.h: Regenerated.
28689         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
28690         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
28691         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
28692         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
28693         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
28694         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
28695         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
28696         * lib/unictype/pr_combining.h: Regenerated.
28697         * lib/unictype/pr_dash.h: Regenerated.
28698         * lib/unictype/pr_decimal_digit.h: Regenerated.
28699         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
28700         * lib/unictype/pr_deprecated.h: Regenerated.
28701         * lib/unictype/pr_diacritic.h: Regenerated.
28702         * lib/unictype/pr_extender.h: Regenerated.
28703         * lib/unictype/pr_format_control.h: Regenerated.
28704         * lib/unictype/pr_grapheme_base.h: Regenerated.
28705         * lib/unictype/pr_grapheme_extend.h: Regenerated.
28706         * lib/unictype/pr_grapheme_link.h: Regenerated.
28707         * lib/unictype/pr_id_continue.h: Regenerated.
28708         * lib/unictype/pr_id_start.h: Regenerated.
28709         * lib/unictype/pr_ideographic.h: Regenerated.
28710         * lib/unictype/pr_ignorable_control.h: Regenerated.
28711         * lib/unictype/pr_lowercase.h: Regenerated.
28712         * lib/unictype/pr_math.h: Regenerated.
28713         * lib/unictype/pr_numeric.h: Regenerated.
28714         * lib/unictype/pr_other_alphabetic.h: Regenerated.
28715         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
28716         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
28717         * lib/unictype/pr_other_id_continue.h: Regenerated.
28718         * lib/unictype/pr_other_lowercase.h: Regenerated.
28719         * lib/unictype/pr_other_math.h: Regenerated.
28720         * lib/unictype/pr_punctuation.h: Regenerated.
28721         * lib/unictype/pr_sentence_terminal.h: Regenerated.
28722         * lib/unictype/pr_soft_dotted.h: Regenerated.
28723         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
28724         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
28725         * lib/unictype/pr_unified_ideograph.h: Regenerated.
28726         * lib/unictype/pr_uppercase.h: Regenerated.
28727         * lib/unictype/pr_xid_continue.h: Regenerated.
28728         * lib/unictype/pr_xid_start.h: Regenerated.
28729         * lib/unictype/pr_zero_width.h: Regenerated.
28730         * lib/unictype/scripts.h: Regenerated.
28731         * lib/unictype/scripts_byname.gperf: Regenerated.
28732         * lib/unictype/sy_java_ident.h: Regenerated.
28733         * lib/unilbrk/lbrkprop1.h: Regenerated.
28734         * lib/unilbrk/lbrkprop2.h: Regenerated.
28735         * tests/unictype/test-categ_C.c: Regenerated.
28736         * tests/unictype/test-categ_Cf.c: Regenerated.
28737         * tests/unictype/test-categ_Cn.c: Regenerated.
28738         * tests/unictype/test-categ_L.c: Regenerated.
28739         * tests/unictype/test-categ_Ll.c: Regenerated.
28740         * tests/unictype/test-categ_Lm.c: Regenerated.
28741         * tests/unictype/test-categ_Lo.c: Regenerated.
28742         * tests/unictype/test-categ_Lu.c: Regenerated.
28743         * tests/unictype/test-categ_M.c: Regenerated.
28744         * tests/unictype/test-categ_Mc.c: Regenerated.
28745         * tests/unictype/test-categ_Me.c: Regenerated.
28746         * tests/unictype/test-categ_Mn.c: Regenerated.
28747         * tests/unictype/test-categ_N.c: Regenerated.
28748         * tests/unictype/test-categ_Nd.c: Regenerated.
28749         * tests/unictype/test-categ_Nl.c: Regenerated.
28750         * tests/unictype/test-categ_No.c: Regenerated.
28751         * tests/unictype/test-categ_P.c: Regenerated.
28752         * tests/unictype/test-categ_Pd.c: Regenerated.
28753         * tests/unictype/test-categ_Pe.c: Regenerated.
28754         * tests/unictype/test-categ_Pf.c: Regenerated.
28755         * tests/unictype/test-categ_Pi.c: Regenerated.
28756         * tests/unictype/test-categ_Po.c: Regenerated.
28757         * tests/unictype/test-categ_Ps.c: Regenerated.
28758         * tests/unictype/test-categ_S.c: Regenerated.
28759         * tests/unictype/test-categ_Sk.c: Regenerated.
28760         * tests/unictype/test-categ_Sm.c: Regenerated.
28761         * tests/unictype/test-categ_So.c: Regenerated.
28762         * tests/unictype/test-ctype_alnum.c: Regenerated.
28763         * tests/unictype/test-ctype_alpha.c: Regenerated.
28764         * tests/unictype/test-ctype_graph.c: Regenerated.
28765         * tests/unictype/test-ctype_lower.c: Regenerated.
28766         * tests/unictype/test-ctype_print.c: Regenerated.
28767         * tests/unictype/test-ctype_punct.c: Regenerated.
28768         * tests/unictype/test-ctype_upper.c: Regenerated.
28769         * tests/unictype/test-decdigit.h: Regenerated.
28770         * tests/unictype/test-digit.h: Regenerated.
28771         * tests/unictype/test-numeric.h: Regenerated.
28772         * tests/unictype/test-pr_alphabetic.c: Regenerated.
28773         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
28774         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
28775         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
28776         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
28777         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
28778         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
28779         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
28780         * tests/unictype/test-pr_combining.c: Regenerated.
28781         * tests/unictype/test-pr_dash.c: Regenerated.
28782         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
28783         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
28784         * tests/unictype/test-pr_deprecated.c: Regenerated.
28785         * tests/unictype/test-pr_diacritic.c: Regenerated.
28786         * tests/unictype/test-pr_extender.c: Regenerated.
28787         * tests/unictype/test-pr_format_control.c: Regenerated.
28788         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
28789         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
28790         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
28791         * tests/unictype/test-pr_id_continue.c: Regenerated.
28792         * tests/unictype/test-pr_id_start.c: Regenerated.
28793         * tests/unictype/test-pr_ideographic.c: Regenerated.
28794         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
28795         * tests/unictype/test-pr_lowercase.c: Regenerated.
28796         * tests/unictype/test-pr_math.c: Regenerated.
28797         * tests/unictype/test-pr_numeric.c: Regenerated.
28798         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
28799         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
28800         Regenerated.
28801         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
28802         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
28803         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
28804         * tests/unictype/test-pr_other_math.c: Regenerated.
28805         * tests/unictype/test-pr_punctuation.c: Regenerated.
28806         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
28807         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
28808         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
28809         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
28810         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
28811         * tests/unictype/test-pr_uppercase.c: Regenerated.
28812         * tests/unictype/test-pr_xid_continue.c: Regenerated.
28813         * tests/unictype/test-pr_xid_start.c: Regenerated.
28814         * tests/unictype/test-pr_zero_width.c: Regenerated.
28815
28816         Update to Unicode 5.1.0.
28817         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
28818         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
28819         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
28820         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
28821         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
28822         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
28823         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
28824         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
28825         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
28826         (nonspacing_table_ind): Update.
28827         * tests/uniwidth/test-uc_width2.sh: Update expected result.
28828
28829         Update to Unicode 5.1.0.
28830         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
28831         code transform.
28832         * lib/uniname/uniname.c (unicode_character_name,
28833         unicode_name_character): Add the range 0x1Fxxx to the code transform.
28834         * lib/uniname/uninames.h: Regenerated.
28835         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
28836
28837 2009-02-07  Bruno Haible  <bruno@clisp.org>
28838
28839         Merge gen-ctype and gen-lbrk into a single program.
28840         * lib/gen-uni-tables.c: New file, incorporating
28841         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
28842         Add directory prefixes to the names of the generated files.
28843         * lib/unictype/gen-ctype.c: Remove file.
28844         * lib/unilbrk/gen-lbrk.c: Remove file.
28845         * modules/gen-uni-tables: New file.
28846         * modules/unictype/gen-ctype: Remove file.
28847         * modules/unilbrk/gen-lbrk: Remove file.
28848
28849 2009-02-07  Bruno Haible  <bruno@clisp.org>
28850
28851         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
28852
28853         New module 'unistr/u32-strcoll'.
28854         * modules/unistr/u32-strcoll: New file.
28855         * lib/unistr/u32-strcoll.c: New file.
28856
28857         New module 'unistr/u16-strcoll'.
28858         * modules/unistr/u16-strcoll: New file.
28859         * lib/unistr/u16-strcoll.c: New file.
28860
28861         New module 'unistr/u8-strcoll'.
28862         * modules/unistr/u8-strcoll: New file.
28863         * lib/unistr/u8-strcoll.c: New file.
28864         * lib/unistr/u-strcoll.h: New file.
28865
28866 2009-02-07  Bruno Haible  <bruno@clisp.org>
28867
28868         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
28869         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
28870         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
28871         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
28872         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
28873         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
28874
28875 2009-02-07  Bruno Haible  <bruno@clisp.org>
28876
28877         Make 64-bit clean.
28878         * lib/unictype/gen-ctype.c (output_predicate, output_category,
28879         output_combclass, output_bidi_category, output_decimal_digit,
28880         output_digit, output_numeric, output_mirror, output_scripts,
28881         output_ident_category): Use proper width specifier in format strings.
28882
28883 2009-02-07  Bruno Haible  <bruno@clisp.org>
28884
28885         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
28886         failure behaviour.
28887
28888 2009-02-07  Jim Meyering  <meyering@redhat.com>
28889
28890         regex: avoid compilation failure with upcoming gcc-4.4
28891         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
28892         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
28893         "... error: integer overflow in preprocessor expression".
28894
28895 2009-02-05  Ben Pfaff  <blp@gnu.org>
28896
28897         Fix link errors on Windows when close module is used.
28898         * modules/close: Add $(LIB_CLOSE) to Link section.
28899         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
28900         $(LIB_CLOSE) on Windows.
28901
28902 2009-02-05  Jim Meyering  <meyering@redhat.com>
28903
28904         still avoid unused-parameter warnings, but do it cleanly
28905         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
28906         (get_fs_usage): Cast to void instead.
28907         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
28908         (dev_from_mount_options, read_file_system_list): Cast to void.
28909         Prompted by Bruno Haible.
28910
28911 2009-02-04  Jim Meyering  <meyering@redhat.com>
28912
28913         fsusage.c: correct copyright year
28914         * lib/fsusage.c: Reflect year in which the change is pushed into
28915
28916         avoid misc. warnings
28917         * lib/fsusage.c (UNUSED_PARAM): Define.
28918         (get_fs_usage): Mark parameter "disk" as unused.
28919         * lib/getugroups.c (getgrent): Use "void" in prototype.
28920         * lib/mountlist.c: Mark unused parameters.
28921         (read_file_system_list): Declare a local with "const".
28922         * lib/nanosleep.c (getnow): Declare static.
28923         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
28924
28925         dirfd: set errno upon failure
28926         * lib/dirfd.c: Include <errno.h>.
28927         Set errno to ENOTSUP when returning -1.
28928         * modules/dirfd (Depends-on): Add errno.
28929         Suggested by John Kodis <kodis@comcast.net>.
28930
28931 2009-02-01  Bruno Haible  <bruno@clisp.org>
28932
28933         Don't assume sizeof (long) >= sizeof (void *).
28934         * lib/memcmp.c: Include stdint.h.
28935         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
28936         srcp2 to 'const byte *'.
28937         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
28938         types to uintptr_t.
28939         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
28940         * modules/memcmp (Depends-on): Add stdint.
28941         Reported by Ozkan Sezer <sezeroz@gmail.com>.
28942
28943 2009-01-30  Eric Blake  <ebb9@byu.net>
28944
28945         fix more require-before-expand issues
28946         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
28947         expand, AC_PROG_AWK.
28948         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
28949
28950 2009-01-28  Eric Blake  <ebb9@byu.net>
28951
28952         version-etc: use consistent URL formatting
28953         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
28954         Improve formatting.  Use fputs for string without %.
28955
28956 2009-01-28  Jim Meyering  <meyering@redhat.com>
28957
28958         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
28959         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
28960         "underquoted definition of NAME" from autoconf-2.59.
28961
28962 2009-01-28  Bruno Haible  <bruno@clisp.org>
28963
28964         * doc/gnulib.texi: Add "Obsolete modules" to index.
28965
28966 2009-01-28  Jim Meyering  <meyering@redhat.com>
28967
28968         useless-if-before-free: recognize more variants
28969         * build-aux/useless-if-before-free: Also recognize e.g.,
28970         if (NULL != p) free (p);
28971
28972 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
28973
28974         test-getaddrinfo: skip (don't fail) this test when there's no network
28975         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
28976         on the presumption that it means you lack network access.
28977
28978 2009-01-26  Jim Meyering  <meyering@redhat.com>
28979
28980         fflush: avoid warnings on modern systems
28981         * lib/fflush.c (rpl_fflush): Move declarations of locals,
28982         pos and result, into scopes where they're used.
28983
28984 2009-01-26  Eric Blake  <ebb9@byu.net>
28985
28986         Silence warning reintroduced by recent extensions patch.
28987         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
28988         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
28989         autoconf.
28990
28991         Backport improved autoconf semantics of AC_DEFUN_ONCE.
28992         * m4/00gnulib.m4: New file.
28993         * gnulib-tool (func_get_filelist): Always use it.
28994         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
28995         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
28996
28997 2009-01-25  Bruno Haible  <bruno@clisp.org>
28998
28999         Make test-quotearg work on MacOS X and AIX.
29000         * tests/test-quotearg.sh: New file.
29001         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
29002         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
29003         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
29004         include <libintl.h>.
29005         (fake_locale): Remove variable.
29006         (gettext, dgettext, dcgettext): Remove functions.
29007         (main): Instead of setting a fake locale, set a real locale. Call
29008         textdomain and bindtextdomain.
29009         * modules/quotearg-tests (Files): Add the new files.
29010         (Depends-on): Add gettext, setenv, unsetenv.
29011         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
29012         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
29013         Augment TESTS_ENVIRONMENT.
29014
29015 2009-01-25  Bruno Haible  <bruno@clisp.org>
29016
29017         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
29018         fr_FR.ISO8859-1 locale on MacOS X.
29019         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
29020         ja_JP.eucJP locale on MacOS X.
29021         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
29022         zh_CN.GB18030 locale on MacOS X.
29023
29024 2009-01-25  Bruno Haible  <bruno@clisp.org>
29025
29026         Avoid link errors on MacOS X 10.3.
29027         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
29028         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
29029
29030 2009-01-25  Bruno Haible  <bruno@clisp.org>
29031
29032         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
29033         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
29034         * modules/pipe (Files): Remove m4/posix_spawn.m4.
29035         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
29036         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
29037         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
29038         posix_spawnattr_init, posix_spawnattr_setsigmask,
29039         posix_spawnattr_setflags, posix_spawnattr_destroy.
29040
29041         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
29042         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
29043         * modules/execute (Files): Remove m4/posix_spawn.m4.
29044         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
29045         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
29046         posix_spawnattr_init, posix_spawnattr_setsigmask,
29047         posix_spawnattr_setflags, posix_spawnattr_destroy.
29048
29049 2009-01-25  Bruno Haible  <bruno@clisp.org>
29050
29051         * lib/glthread/threadlib.c: Include <stdlib.h>.
29052
29053 2009-01-25  Bruno Haible  <bruno@clisp.org>
29054
29055         * lib/glthread/threadlib.c (dummy): New declaration.
29056
29057 2009-01-25  Bruno Haible  <bruno@clisp.org>
29058
29059         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
29060         multibyte characters also for the GB18030 encoding. Don't crash when
29061         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
29062
29063 2009-01-25  Bruno Haible  <bruno@clisp.org>
29064
29065         Avoid redefining 'struct random_data' on OSF/1 5.1.
29066         * lib/stdlib.in.h: Include <random.h> if it exists.
29067         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
29068         HAVE_RANDOM_H. Include <random.h> when testing whether
29069         'struct random_data' exists.
29070         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
29071
29072 2009-01-25  Bruno Haible  <bruno@clisp.org>
29073
29074         Don't install charset.alias on MacOS X >= 10.3.
29075         * lib/localcharset.c (DARWIN7): New macro.
29076         (get_charset_aliases): Hardcode the result for Darwin7.
29077         * modules/localcharset (install-exec-local): Don't install
29078         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
29079
29080 2009-01-25  Bruno Haible  <bruno@clisp.org>
29081
29082         Don't install charset.alias on mingw and Cygwin.
29083         * modules/localcharset (install-exec-local): Don't install
29084         charset.alias on mingw and Cygwin, if the file does not yet exist.
29085         The result for these platforms is hardcoded in localcharset.c.
29086
29087 2009-01-25  Bruno Haible  <bruno@clisp.org>
29088
29089         Make it possible again to use AC_GNU_SOURCE together with gnulib.
29090         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
29091         before requiring AC_USE_SYSTEM_EXTENSIONS.
29092
29093 2009-01-25  Jim Meyering  <meyering@redhat.com>
29094
29095         c-strtod: avoid warnings
29096         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
29097         "assignment discards qualifiers from pointer target type" warnings.
29098
29099 2009-01-24  Bruno Haible  <bruno@clisp.org>
29100
29101         Add support for non-UTF-8 locales on MacOS X.
29102         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
29103         canonical encodings. For Darwin 7 and newer, don't map traditional
29104         encodings to UTF-8.
29105         Reported by Vincent Lefevre <vincent@vinc17.org>
29106         at <http://savannah.gnu.org/bugs/?25235>.
29107
29108 2009-01-24  Bruno Haible  <bruno@clisp.org>
29109
29110         * doc/gnulib.texi (Obsolete modules): New section.
29111         Reported by Mike Frysinger <vapier@gentoo.org>.
29112
29113 2009-01-24  Bruno Haible  <bruno@clisp.org>
29114
29115         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
29116         (%.dvi): New rule.
29117
29118 2009-01-24  Bruno Haible  <bruno@clisp.org>
29119
29120         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
29121         Reported by Eric Blake.
29122
29123 2009-01-24  Bruno Haible  <bruno@clisp.org>
29124
29125         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
29126         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
29127         Reported by Gary V. Vaughan <gary@gnu.org>.
29128
29129 2009-01-24  Bruno Haible  <bruno@clisp.org>
29130
29131         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
29132
29133 2009-01-23  Bruno Haible  <bruno@clisp.org>
29134
29135         Make c-strtod, c-strtold usable in libraries.
29136         * lib/c-strtod.c: Include string.h instead of xalloc.h.
29137         (C_STRTOD): Call strdup instead of xstrdup.
29138         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
29139         * modules/c-strtold (Depends-on): Likewise.
29140         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
29141         * NEWS: Mention the change.
29142         Reported by Michael Gold <mgold@ncf.ca>.
29143
29144 2009-01-23  Jim Meyering  <meyering@redhat.com>
29145
29146         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
29147         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
29148         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
29149
29150 2009-01-23  Simon Josefsson  <simon@josefsson.org>
29151
29152         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
29153         GNU CoreUtils.
29154         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
29155         * modules/version-etc (Description): Update.
29156
29157 2009-01-22  Bruno Haible  <bruno@clisp.org>
29158
29159         Cache the C locale object.
29160         * lib/c-strtod.c (c_locale_cache): New variable.
29161         (c_locale): New function.
29162         (C_STRTOD): Use it, and don't call freelocale.
29163         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
29164         Suggested by Paolo Bonzini.
29165
29166 2009-01-21  Bruno Haible  <bruno@clisp.org>
29167
29168         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
29169         conditions other than overflow.
29170
29171 2009-01-21  Bruno Haible  <bruno@clisp.org>
29172
29173         * lib/c-strtod.c: Include errno.h.
29174         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
29175         value from STRTOD_L and STRTOD.
29176
29177 2009-01-21  Bruno Haible  <bruno@clisp.org>
29178         and Jim Meyering  <meyering@redhat.com>
29179
29180         nanosleep: skip configure test (fail it) for apple universal builds
29181         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
29182         universal builds, assume that nanosleep does not work.
29183         * modules/nanosleep (Depends-on): Add multiarch.
29184
29185         mktime: skip configure test (fail it) for apple universal builds
29186         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
29187         universal builds, assume that mktime does not work.
29188         * modules/mktime (Depends-on): Add multiarch.
29189
29190 2009-01-21  Eric Blake  <ebb9@byu.net>
29191
29192         multiarch: avoid expand-before-require warning
29193         * modules/multiarch (configure.ac): Require, rather than expand,
29194         gl_MULTIARCH.
29195         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
29196         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
29197         enforce that all clients require it.  Partial reversion of
29198         2008-12-29 patch.
29199
29200         error: avoid expand-before-require warning
29201         * modules/errno (configure.ac): Require, rather than expand,
29202         gl_HEADER_ERRNO_H.
29203         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
29204         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
29205         enforce that all clients require it.
29206
29207         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
29208         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
29209         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
29210         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
29211
29212 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
29213
29214         Revert:
29215         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
29216
29217         regex: do not depend on obsolete modules.
29218         * modules/regex: Remove memcmp and memmove.
29219
29220 2009-01-20  Bruno Haible  <bruno@clisp.org>
29221
29222         Make the 'link' module link on Windows NT 4.
29223         * lib/link.c (_WIN32_WINNT): Don't define.
29224         (CreateHardLinkFuncType): New type.
29225         (CreateHardLinkFunc, initialized): New variables.
29226         (initialize): New function.
29227         (link): Invoke CreateHardLink indirectly through the function pointer.
29228
29229 2009-01-20  Bruno Haible  <bruno@clisp.org>
29230
29231         Fix compilation failure on mingw.
29232         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
29233
29234 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
29235
29236         * doc/c-strtod.texi: Mention a couple of restrictions.
29237
29238 2009-01-20  Jim Meyering  <meyering@redhat.com>
29239
29240         gettimeofday: move more declarations out of functions
29241         * lib/gettimeofday.c: Move extern declarations of tzset and
29242         gmtime out of containing functions.  Prompted by Bruno Haible.
29243
29244 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
29245
29246         regex: do not depend on obsolete modules.
29247         * modules/regex: Remove memcmp and memmove.
29248
29249 2009-01-19  Bruno Haible  <bruno@clisp.org>
29250
29251         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
29252         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
29253         gl_BIGENDIAN, not AC_C_BIGENDIAN.
29254         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
29255         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
29256
29257 2009-01-19  Bruno Haible  <bruno@clisp.org>
29258
29259         * tests/test-link.c: Include <errno.h>.
29260         (main): Exit with code 77 when a hard link cannot be created due to
29261         the file system.
29262         * tests/test-link.sh: Skip test when a hard link cannot be created due
29263         to the file system.
29264         Suggested by Eric Blake.
29265
29266 2009-01-19  Martin Lambers  <marlam@marlam.de>
29267
29268         * modules/link-tests: New file.
29269         * tests/test-link.sh: New file.
29270         * tests/test-link.c: New file.
29271
29272 2009-01-19  Eric Blake  <ebb9@byu.net>
29273
29274         doc: mention another function added in cygwin 1.7.0
29275         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
29276         Another new function in cygwin 1.7.
29277
29278 2009-01-19  Bruno Haible  <bruno@clisp.org>
29279
29280         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
29281         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
29282         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
29283         gl_BIGENDIAN, not AC_C_BIGENDIAN.
29284         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29285         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
29286         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29287         * m4/md4.m4 (gl_MD4): Likewise.
29288         * m4/md5.m4 (gl_MD5): Likewise.
29289         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
29290         * m4/sha1.m4 (gl_SHA1): Likewise.
29291         * m4/sha256.m4 (gl_SHA256): Likewise.
29292         * m4/sha512.m4 (gl_SHA512): Likewise.
29293
29294 2009-01-19  Bruno Haible  <bruno@clisp.org>
29295
29296         * modules/uniname/uniname-tests (Depends-on): Add progname.
29297         * tests/uniname/test-uninames.c: Include progname.h.
29298         (main): Call set_program_name.
29299
29300         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
29301         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
29302         (main): Call set_program_name.
29303
29304         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
29305         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
29306         (main): Call set_program_name.
29307
29308         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
29309         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
29310         (main): Call set_program_name.
29311
29312         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
29313         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
29314         (main): Call set_program_name.
29315
29316         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
29317         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
29318         (main): Call set_program_name.
29319
29320         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
29321         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
29322         (main): Call set_program_name.
29323
29324         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
29325         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
29326         (main): Call set_program_name.
29327
29328         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
29329         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
29330         (main): Call set_program_name.
29331
29332 2009-01-19  Eric Blake  <ebb9@byu.net>
29333
29334         test-unistd: test previous patch
29335         * tests/test-unistd.c: Test *_FILENO macros.
29336
29337         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
29338         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
29339         Guarantee a definition.
29340         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
29341         * modules/unistd-safer (Depends-on): Add dependency on unistd.
29342         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
29343         * lib/dup-safer.c (STDERR_FILENO): Likewise.
29344         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
29345         Likewise.
29346         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
29347         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
29348         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
29349         Likewise.
29350         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
29351         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
29352         (STDERR_FILENO): Likewise.
29353         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
29354         (STDERR_FILENO): Likewise.
29355         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
29356         (STDERR_FILENO): Likewise.
29357         Reported by Elbert Pol.
29358
29359 2009-01-19  Eric Blake  <ebb9@byu.net>
29360
29361         doc: mention more functions added in cygwin 1.7.0
29362         * doc/posix-functions/abort.texi (abort): Update wording related
29363         to cygwin.
29364         * doc/posix-functions/daylight.texi (daylight): Likewise.
29365         * doc/posix-functions/optarg.texi (optarg): Likewise.
29366         * doc/posix-functions/optarg.texi (opterr): Likewise.
29367         * doc/posix-functions/optarg.texi (optind): Likewise.
29368         * doc/posix-functions/optarg.texi (optopt): Likewise.
29369         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
29370         worked in 1.5.x, and was withdrawn in 1.7.
29371         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
29372         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
29373         cygwin versions.
29374         * doc/posix-functions/perror.texi (perror): Likewise.
29375         * doc/posix-functions/printf.texi (printf): Likewise.
29376         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
29377         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
29378         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
29379         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
29380         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
29381         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
29382         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
29383         Likewise.
29384         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
29385         Likewise.
29386         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
29387         this function.
29388         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
29389         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
29390         Likewise.
29391         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
29392         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
29393         * doc/posix-functions/confstr.texi (confstr): Likewise.
29394         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
29395         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
29396         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
29397         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
29398         * doc/posix-functions/fputws.texi (fputws): Likewise.
29399         * doc/posix-functions/fwide.texi (fwide): Likewise.
29400         * doc/posix-functions/getwc.texi (getwc): Likewise.
29401         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
29402         * doc/posix-functions/putwc.texi (putwc): Likewise.
29403         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
29404         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
29405         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
29406         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
29407         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
29408         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
29409         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
29410         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
29411         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
29412         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
29413         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
29414
29415 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
29416
29417         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
29418         * lib/ioctl.c: Include <sys/ioctl.h>.
29419
29420 2009-01-19  Simon Josefsson  <simon@josefsson.org>
29421
29422         * modules/getdate-tests (Depends-on): Add progname.
29423         * tests/test-getdate.c: Use progname module, to avoid link errors
29424         on non-glibc systems.
29425
29426 2009-01-18  Simon Josefsson  <simon@josefsson.org>
29427
29428         * modules/filenamecat-tests (Depends-on): Add progname.
29429         * modules/fstrcmp-tests (Depends-on): Likewise.
29430
29431         * tests/test-filenamecat.c: Use progname module, to avoid link
29432         errors on non-glibc systems.
29433         * tests/test-fstrcmp.c: Likewise.
29434
29435 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
29436
29437         gettimeofday: avoid warning: nested extern declaration of 'localtime'
29438         * lib/gettimeofday.c: Move extern declaration out of function.
29439
29440 2009-01-18  Bruno Haible  <bruno@clisp.org>
29441
29442         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
29443         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
29444         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
29445
29446 2009-01-18  Bruno Haible  <bruno@clisp.org>
29447
29448         * lib/strftime.c (MEMPCPY): Remove unused macro.
29449         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
29450
29451 2009-01-18  Martin Lambers  <marlam@marlam.de>
29452
29453         New module 'link'.
29454         * lib/unistd.in.h (link): New declaration.
29455         * lib/link.c: New file.
29456         * m4/link.m4: New file.
29457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
29458         HAVE_LINK.
29459         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
29460         * modules/link: New file.
29461         * doc/posix-functions/link.texi: Mention the new module.
29462
29463 2009-01-18  Bruno Haible  <bruno@clisp.org>
29464
29465         * tests/test-avltree_list.c (main): Call set_program_name.
29466         * tests/test-avltree_oset.c (main): Likewise.
29467         * tests/test-obstack-printf.c: Include progname.h.
29468         (main): Call set_program_name.
29469         * tests/test-quotearg.c: Include progname.h.
29470         (main): Call set_program_name.
29471         * tests/test-xmemdup0.c: Include progname.h.
29472         (main): Call set_program_name.
29473
29474 2009-01-18  Bruno Haible  <bruno@clisp.org>
29475
29476         New module 'alphasort'.
29477         * lib/dirent.in.h (alphasort): New declaration.
29478         * lib/alphasort.c: New file, from glibc with modifications.
29479         * m4/alphasort.m4: New file.
29480         * modules/alphasort: New file.
29481         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
29482         HAVE_ALPHASORT.
29483         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
29484         HAVE_ALPHASORT.
29485         * doc/posix-functions/alphasort.texi: Mention the new module and the
29486         portability problems.
29487
29488 2009-01-18  Bruno Haible  <bruno@clisp.org>
29489
29490         New module 'scandir'.
29491         * lib/dirent.in.h (scandir): New declaration.
29492         * lib/scandir.c: New file, from glibc with modifications.
29493         * m4/scandir.m4: New file.
29494         * modules/scandir: New file.
29495         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
29496         HAVE_SCANDIR.
29497         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
29498         HAVE_SCANDIR.
29499         * doc/posix-functions/scandir.texi: Mention the new module and the
29500         portability problems.
29501
29502 2009-01-17  Bruno Haible  <bruno@clisp.org>
29503
29504         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
29505         Update documentation.
29506         (func_remove_suffix): Escape all dots in the suffix. Update
29507         documentation.
29508         (func_filter_filelist): Update documentation.
29509         Reported by Ralf Wildenhues.
29510
29511 2009-01-17  Bruno Haible  <bruno@clisp.org>
29512
29513         * modules/dprintf-posix-tests: New file.
29514         * tests/test-dprintf-posix.sh: New file.
29515         * tests/test-dprintf-posix.c: New file.
29516
29517         New modules 'dprintf', 'dprintf-posix'.
29518         * lib/stdio.in.h (dprintf): New declaration.
29519         * lib/dprintf.c: New file.
29520         * m4/dprintf.m4: New file.
29521         * m4/dprintf-posix.m4: New file.
29522         * modules/dprintf: New file.
29523         * modules/dprintf-posix: New file.
29524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
29525         HAVE_DPRINTF, REPLACE_DPRINTF.
29526         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
29527         HAVE_DPRINTF, REPLACE_DPRINTF.
29528         * doc/posix-functions/dprintf.texi: Mention the new modules.
29529
29530 2009-01-17  Bruno Haible  <bruno@clisp.org>
29531
29532         * modules/vdprintf-posix-tests: New file.
29533         * tests/test-vdprintf-posix.sh: New file.
29534         * tests/test-vdprintf-posix.c: New file.
29535
29536         New modules 'vdprintf', 'vdprintf-posix'.
29537         * lib/stdio.in.h (vdprintf): New declaration.
29538         * lib/vdprintf.c: New file.
29539         * m4/vdprintf.m4: New file.
29540         * m4/vdprintf-posix.m4: New file.
29541         * modules/vdprintf: New file.
29542         * modules/vdprintf-posix: New file.
29543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
29544         HAVE_VDPRINTF, REPLACE_VDPRINTF.
29545         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
29546         HAVE_VDPRINTF, REPLACE_VDPRINTF.
29547         * doc/posix-functions/vdprintf.texi: Mention the new modules.
29548
29549 2009-01-17  Bruno Haible  <bruno@clisp.org>
29550
29551         Fix replacement of fopen on mingw.
29552         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
29553         mingw.
29554
29555 2009-01-17  Bruno Haible  <bruno@clisp.org>
29556
29557         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
29558         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
29559
29560 2009-01-17  Bruno Haible  <bruno@clisp.org>
29561
29562         Avoid test-fflush2.sh failure on mingw.
29563         * tests/test-fflush2.c: Include binary-io.h.
29564         (main): Put standard input into binary mode.
29565         * modules/fflush-tests (Depends-on): Add binary-io.
29566
29567 2009-01-17  Bruno Haible  <bruno@clisp.org>
29568
29569         * lib/wchar.in.h: In another particular situation, include only the
29570         system's <wchar.h> file.
29571         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
29572         Reported by Albert Chin-A-Young <china@thewrittenword.com>
29573         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
29574
29575 2009-01-17  Bruno Haible  <bruno@clisp.org>
29576
29577         Support for stripping executables in --enable-relocatable.
29578         * build-aux/install-reloc: Expect one more argument, or an environment
29579         variable RELOC_STRIP_PROG. If set, strip the destination program and
29580         its wrapper.
29581         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
29582         RELOC_STRIP_PROG.
29583         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
29584         to set RELOCATABLE_STRIP.
29585         * NEWS: Mention the new Makefile requirement.
29586
29587 2009-01-17  Bruno Haible  <bruno@clisp.org>
29588
29589         * build-aux/install-reloc: Remove debugging information left over by
29590         C compiler on MacOS X.
29591
29592 2009-01-17  Bruno Haible  <bruno@clisp.org>
29593
29594         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
29595         * lib/progreloc.c (find_executable): Fix type of pointer passed to
29596         _NSGetExecutablePath.
29597
29598 2009-01-16  Jim Meyering  <meyering@redhat.com>
29599
29600         strerror: avoid warnings about discarding "const"
29601         * lib/strerror.c (rpl_strerror): Instead of returning a const
29602         string from each and every "case", use a variable, and add a single
29603         cast after the switch.
29604
29605 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
29606
29607         * lib/arpa_inet.in.h: Add extern "C" block for C++.
29608
29609 2009-01-16  Bruno Haible  <bruno@clisp.org>
29610
29611         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
29612         array initializer syntax that also works in C++ mode.
29613         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29614
29615 2009-01-16  Jim Meyering  <meyering@redhat.com>
29616
29617         poll: suppress a warning
29618         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
29619         to ignore "...unsigned expression < 0 is always false" warnings.
29620
29621 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
29622
29623         poll: remove declarations of unused variables
29624         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
29625         sockbuf and optlen.
29626
29627 2009-01-15  Bruno Haible  <bruno@clisp.org>
29628
29629         Make fflush-after-ungetc POSIX compliant on BSD systems.
29630         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
29631         (clear_ungetc_buffer): Implement also for other systems.
29632         (rpl_fflush): On glibc systems, invoke
29633         clear_ungetc_buffer_preserving_position. Otherwise, invoke
29634         clear_ungetc_buffer after fetching the stream's position, not before.
29635
29636 2009-01-15  Bruno Haible  <bruno@clisp.org>
29637
29638         Make fflush-after-ungetc POSIX compliant on glibc systems.
29639         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
29640         after ungetc.
29641         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
29642         (rpl_fflush): On glibc systems, simply call the system's fflush
29643         function after clearing the ungetc buffer.
29644         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
29645         Instead, lseek only to the end of file, then use the system's fseeko
29646         for the rest. On glibc systems, reset the EOF indicator bit.
29647
29648 2009-01-15  Jim Meyering  <meyering@redhat.com>
29649
29650         openmp.m4: revert quote-adding change, for portability to older autoconf
29651         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
29652         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
29653         Simon Josefsson noticed the problem when using autoconf-2.61.
29654
29655 2009-01-15  Bruno Haible  <bruno@clisp.org>
29656
29657         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
29658         * tests/test-fflush2.c (ASSERT): Always fail.
29659         (main): Add two tests for fflush() after ungetc(), taking into account
29660         the Austin Group's clarification.
29661         Suggested by Eric Blake.
29662
29663 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
29664
29665         mktime.m4: remove K&R-style function prototypes
29666         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
29667         for the Sun C++ compiler.
29668
29669 2009-01-14  Bruno Haible  <bruno@clisp.org>
29670
29671         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
29672         while including <wchar.h>.
29673         * lib/wchar.in.h: In two particular situations on HP-UX, include only
29674         the system's <wchar.h> file.
29675         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29676
29677 2009-01-14  Bruno Haible  <bruno@clisp.org>
29678
29679         * m4/csharp.m4: Don't mention gettext on the serial number line.
29680         * m4/csharpexec.m4: Likewise.
29681         * m4/eaccess.m4: Likewise.
29682         * m4/javaexec.m4: Likewise.
29683         * m4/sig_atomic_t.m4: Likewise.
29684         * m4/tmpdir.m4: Likewise.
29685         * m4/intldir.m4: Bump gettext version.
29686         * m4/lib-ld.m4: Likewise.
29687
29688 2009-01-14  Bruno Haible  <bruno@clisp.org>
29689
29690         * lib/progname.c (set_program_name): Add more comments.
29691         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
29692
29693 2009-01-14  Simon Josefsson  <simon@josefsson.org>
29694
29695         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
29696         were sys/stat.h does not define it.
29697
29698 2009-01-14  Jim Meyering  <meyering@redhat.com>
29699
29700         many *.m4 files: improve m4 quoting
29701         99% of this change was performed by running the following commands:
29702         git ls-files | grep '\.m4$' | xargs perl -pi \
29703           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
29704           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
29705           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
29706           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
29707         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
29708         The remainder were to add Copyright dates, increment serial numbers,
29709         undo some changes in comments, exclude m4/intl.m4, and add quotes
29710         around the "1" in ",1" where the unusual spacing prohibited the
29711         above regexps from doing the job.  For more details, see
29712         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
29713         * m4/acl.m4: Modified.
29714         * m4/afs.m4: Likewise.
29715         * m4/alloca.m4: Likewise.
29716         * m4/argp.m4: Likewise.
29717         * m4/argz.m4: Likewise.
29718         * m4/atexit.m4: Likewise.
29719         * m4/bison-i18n.m4: Likewise.
29720         * m4/bison.m4: Likewise.
29721         * m4/byteswap.m4: Likewise.
29722         * m4/c-stack.m4: Likewise.
29723         * m4/c-strtod.m4: Likewise.
29724         * m4/calloc.m4: Likewise.
29725         * m4/canonicalize-lgpl.m4: Likewise.
29726         * m4/chown.m4: Likewise.
29727         * m4/clock_time.m4: Likewise.
29728         * m4/codeset.m4: Likewise.
29729         * m4/copy-file.m4: Likewise.
29730         * m4/csharp.m4: Likewise.
29731         * m4/csharpcomp.m4: Likewise.
29732         * m4/csharpexec.m4: Likewise.
29733         * m4/d-ino.m4: Likewise.
29734         * m4/d-type.m4: Likewise.
29735         * m4/dirfd.m4: Likewise.
29736         * m4/double-slash-root.m4: Likewise.
29737         * m4/eaccess.m4: Likewise.
29738         * m4/eealloc.m4: Likewise.
29739         * m4/environ.m4: Likewise.
29740         * m4/errno_h.m4: Likewise.
29741         * m4/euidaccess.m4: Likewise.
29742         * m4/execute.m4: Likewise.
29743         * m4/fatal-signal.m4: Likewise.
29744         * m4/fchdir.m4: Likewise.
29745         * m4/fcntl_h.m4: Likewise.
29746         * m4/fileblocks.m4: Likewise.
29747         * m4/filenamecat.m4: Likewise.
29748         * m4/findprog.m4: Likewise.
29749         * m4/flexmember.m4: Likewise.
29750         * m4/fnmatch.m4: Likewise.
29751         * m4/fopen.m4: Likewise.
29752         * m4/fpending.m4: Likewise.
29753         * m4/fprintf-posix.m4: Likewise.
29754         * m4/free.m4: Likewise.
29755         * m4/frexp.m4: Likewise.
29756         * m4/frexpl.m4: Likewise.
29757         * m4/fsusage.m4: Likewise.
29758         * m4/ftruncate.m4: Likewise.
29759         * m4/gc-camellia.m4: Likewise.
29760         * m4/gc-random.m4: Likewise.
29761         * m4/gc.m4: Likewise.
29762         * m4/getaddrinfo.m4: Likewise.
29763         * m4/getcwd-abort-bug.m4: Likewise.
29764         * m4/getcwd-path-max.m4: Likewise.
29765         * m4/getdate.m4: Likewise.
29766         * m4/getdomainname.m4: Likewise.
29767         * m4/getgroups.m4: Likewise.
29768         * m4/gethostname.m4: Likewise.
29769         * m4/gethrxtime.m4: Likewise.
29770         * m4/getline.m4: Likewise.
29771         * m4/getloadavg.m4: Likewise.
29772         * m4/getndelim2.m4: Likewise.
29773         * m4/getpass.m4: Likewise.
29774         * m4/gettext.m4: Likewise.
29775         * m4/gettime.m4: Likewise.
29776         * m4/gettimeofday.m4: Likewise.
29777         * m4/gnulib-common.m4: Likewise.
29778         * m4/group-member.m4: Likewise.
29779         * m4/host-os.m4: Likewise.
29780         * m4/iconv.m4: Likewise.
29781         * m4/iconv_open.m4: Likewise.
29782         * m4/inet_ntop.m4: Likewise.
29783         * m4/inet_pton.m4: Likewise.
29784         * m4/inline.m4: Likewise.
29785         * m4/intldir.m4: Likewise.
29786         * m4/intlmacosx.m4: Likewise.
29787         * m4/intmax.m4: Likewise.
29788         * m4/intmax_t.m4: Likewise.
29789         * m4/inttypes.m4: Likewise.
29790         * m4/inttypes_h.m4: Likewise.
29791         * m4/inttypes-pri.m4: Likewise.
29792         * m4/isapipe.m4: Likewise.
29793         * m4/isnand.m4: Likewise.
29794         * m4/isnanf.m4: Likewise.
29795         * m4/isnanl.m4: Likewise.
29796         * m4/javacomp.m4: Likewise.
29797         * m4/javaexec.m4: Likewise.
29798         * m4/jm-winsz1.m4: Likewise.
29799         * m4/jm-winsz2.m4: Likewise.
29800         * m4/lchown.m4: Likewise.
29801         * m4/lcmessage.m4: Likewise.
29802         * m4/ldexpl.m4: Likewise.
29803         * m4/lib-ld.m4: Likewise.
29804         * m4/lib-link.m4: Likewise.
29805         * m4/libsigsegv.m4: Likewise.
29806         * m4/link-follow.m4: Likewise.
29807         * m4/localcharset.m4: Likewise.
29808         * m4/locale-fr.m4: Likewise.
29809         * m4/locale-ja.m4: Likewise.
29810         * m4/locale-tr.m4: Likewise.
29811         * m4/locale-zh.m4: Likewise.
29812         * m4/lock.m4: Likewise.
29813         * m4/longlong.m4: Likewise.
29814         * m4/ls-mntd-fs.m4: Likewise.
29815         * m4/lstat.m4: Likewise.
29816         * m4/malloc.m4: Likewise.
29817         * m4/mathl.m4: Likewise.
29818         * m4/mbrtowc.m4: Likewise.
29819         * m4/mbstate_t.m4: Likewise.
29820         * m4/mbswidth.m4: Likewise.
29821         * m4/memchr.m4: Likewise.
29822         * m4/memcmp.m4: Likewise.
29823         * m4/memcpy.m4: Likewise.
29824         * m4/memmem.m4: Likewise.
29825         * m4/memmove.m4: Likewise.
29826         * m4/mempcpy.m4: Likewise.
29827         * m4/memrchr.m4: Likewise.
29828         * m4/memset.m4: Likewise.
29829         * m4/minmax.m4: Likewise.
29830         * m4/mkdir-slash.m4: Likewise.
29831         * m4/mkdtemp.m4: Likewise.
29832         * m4/mktime.m4: Likewise.
29833         * m4/mmap-anon.m4: Likewise.
29834         * m4/mountlist.m4: Likewise.
29835         * m4/nanosleep.m4: Likewise.
29836         * m4/nls.m4: Likewise.
29837         * m4/nocrash.m4: Likewise.
29838         * m4/open.m4: Likewise.
29839         * m4/openat.m4: Likewise.
29840         * m4/openmp.m4: Likewise.
29841         * m4/pathmax.m4: Likewise.
29842         * m4/perl.m4: Likewise.
29843         * m4/physmem.m4: Likewise.
29844         * m4/pipe.m4: Likewise.
29845         * m4/po.m4: Likewise.
29846         * m4/poll.m4: Likewise.
29847         * m4/posixtm.m4: Likewise.
29848         * m4/posixver.m4: Likewise.
29849         * m4/printf-frexp.m4: Likewise.
29850         * m4/printf-frexpl.m4: Likewise.
29851         * m4/printf-posix.m4: Likewise.
29852         * m4/printf-posix-rpl.m4: Likewise.
29853         * m4/printf.m4: Likewise.
29854         * m4/progtest.m4: Likewise.
29855         * m4/putenv.m4: Likewise.
29856         * m4/readline.m4: Likewise.
29857         * m4/readlink.m4: Likewise.
29858         * m4/readutmp.m4: Likewise.
29859         * m4/realloc.m4: Likewise.
29860         * m4/regex.m4: Likewise.
29861         * m4/relocatable.m4: Likewise.
29862         * m4/relocatable-lib.m4: Likewise.
29863         * m4/rename-dest-slash.m4: Likewise.
29864         * m4/rename.m4: Likewise.
29865         * m4/rmdir-errno.m4: Likewise.
29866         * m4/rmdir.m4: Likewise.
29867         * m4/roundf.m4: Likewise.
29868         * m4/roundl.m4: Likewise.
29869         * m4/rpmatch.m4: Likewise.
29870         * m4/save-cwd.m4: Likewise.
29871         * m4/selinux-selinux-h.m4: Likewise.
29872         * m4/setenv.m4: Likewise.
29873         * m4/settime.m4: Likewise.
29874         * m4/sig2str.m4: Likewise.
29875         * m4/sig_atomic_t.m4: Likewise.
29876         * m4/signalblocking.m4: Likewise.
29877         * m4/signbit.m4: Likewise.
29878         * m4/sigpipe.m4: Likewise.
29879         * m4/sockets.m4: Likewise.
29880         * m4/sockpfaf.m4: Likewise.
29881         * m4/st_dm_mode.m4: Likewise.
29882         * m4/stat-time.m4: Likewise.
29883         * m4/stdbool.m4: Likewise.
29884         * m4/stdint.m4: Likewise.
29885         * m4/stdint_h.m4: Likewise.
29886         * m4/stpcpy.m4: Likewise.
29887         * m4/stpncpy.m4: Likewise.
29888         * m4/strcase.m4: Likewise.
29889         * m4/strchrnul.m4: Likewise.
29890         * m4/strcspn.m4: Likewise.
29891         * m4/strdup.m4: Likewise.
29892         * m4/strftime.m4: Likewise.
29893         * m4/strndup.m4: Likewise.
29894         * m4/strnlen.m4: Likewise.
29895         * m4/strpbrk.m4: Likewise.
29896         * m4/strptime.m4: Likewise.
29897         * m4/strsep.m4: Likewise.
29898         * m4/strtod.m4: Likewise.
29899         * m4/strtoimax.m4: Likewise.
29900         * m4/strtok_r.m4: Likewise.
29901         * m4/strtol.m4: Likewise.
29902         * m4/strtoll.m4: Likewise.
29903         * m4/strtoul.m4: Likewise.
29904         * m4/strtoull.m4: Likewise.
29905         * m4/strtoumax.m4: Likewise.
29906         * m4/strverscmp.m4: Likewise.
29907         * m4/threadlib.m4: Likewise.
29908         * m4/timegm.m4: Likewise.
29909         * m4/tm_gmtoff.m4: Likewise.
29910         * m4/tmpdir.m4: Likewise.
29911         * m4/tmpfile.m4: Likewise.
29912         * m4/tzset.m4: Likewise.
29913         * m4/uintmax_t.m4: Likewise.
29914         * m4/unlinkdir.m4: Likewise.
29915         * m4/unlocked-io.m4: Likewise.
29916         * m4/uptime.m4: Likewise.
29917         * m4/userspec.m4: Likewise.
29918         * m4/utimbuf.m4: Likewise.
29919         * m4/utime.m4: Likewise.
29920         * m4/utimes-null.m4: Likewise.
29921         * m4/utimes.m4: Likewise.
29922         * m4/vararrays.m4: Likewise.
29923         * m4/vasnprintf.m4: Likewise.
29924         * m4/vfprintf-posix.m4: Likewise.
29925         * m4/vprintf-posix.m4: Likewise.
29926         * m4/wait-process.m4: Likewise.
29927         * m4/wchar_t.m4: Likewise.
29928         * m4/wint_t.m4: Likewise.
29929         * m4/write-any-file.m4: Likewise.
29930         * m4/yield.m4: Likewise.
29931
29932 2009-01-13  Bruno Haible  <bruno@clisp.org>
29933
29934         Avoid test-copy-file.sh failures when ACL support insufficient.
29935         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
29936         TESTS_ENVIRONMENT.
29937         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
29938         Reported by Jim Meyering.
29939
29940 2009-01-13  Bruno Haible  <bruno@clisp.org>
29941
29942         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
29943         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
29944         * modules/unistdio/u8-printf-parse (Files): Likewise.
29945         * modules/unistdio/u32-printf-parse (Files): Likewise.
29946         * modules/unistdio/ulc-printf-parse (Files): Likewise.
29947
29948 2009-01-13  Simon Josefsson  <simon@josefsson.org>
29949
29950         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
29951         and m4/inttypes_h.m4 too.
29952
29953 2009-01-12  Eric Blake  <ebb9@byu.net>
29954
29955         tests: IRIX 6.2 cc can't compile -0.0 into .data
29956         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
29957         rather than at compile-time.
29958         * tests/test-floorl.c (minus_zero): Likewise.
29959         * tests/test-frexpl.c (minus_zero): Likewise.
29960         * tests/test-isnan.c (minus_zerol): Likewise.
29961         * tests/test-isnanl.h (minus_zero): Likewise.
29962         * tests/test-ldexpl.c (minus_zero): Likewise.
29963         * tests/test-roundl.c (minus_zero): Likewise.
29964         * tests/test-signbit.c (minus_zerol): Likewise.
29965         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
29966         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
29967         * tests/test-truncl.c (minus_zero): Likewise.
29968         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
29969         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
29970         Reported by Tom G. Christensen and Nelson H. F. Beebe.
29971
29972 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
29973
29974         regex: fix glibc bug 9697
29975         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
29976         handling.
29977
29978 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
29979
29980         regex: fix glibc bug 697
29981         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
29982         being NULL also if there are no backreferences.
29983
29984 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
29985
29986         regex: merge glibc changes
29987         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
29988         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
29989         re_string_skip_chars, re_string_reconstruct): Likewise.
29990         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
29991
29992 2009-01-07  Jim Meyering  <meyering@redhat.com>
29993
29994         poll: filter through cppi
29995         * lib/poll.c: Indent cpp directives to reflect nesting.
29996
29997 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
29998
29999         poll: don't return uninitialized
30000         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
30001
30002 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
30003
30004         avoid compile failure on AIX 6.1
30005         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
30006         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
30007
30008 2009-01-04  Jim Meyering  <meyering@redhat.com>
30009
30010         remove duplicate inclusion of <stdio.h>
30011         * tests/test-fprintf-posix.c: Likewise.
30012         * tests/test-printf-posix.c: Likewise.
30013         * tests/test-snprintf-posix.c: Likewise.
30014         * tests/test-sprintf-posix.c: Likewise.
30015         * tests/test-vasprintf-posix.c: Likewise.
30016         * tests/test-vfprintf-posix.c: Likewise.
30017         * tests/test-vprintf-posix.c: Likewise.
30018         * tests/test-vsnprintf-posix.c: Likewise.
30019         * tests/test-vsprintf-posix.c: Likewise.
30020
30021 2009-01-03  Jim Meyering  <meyering@redhat.com>
30022
30023         gnulib-tool: fix sed-based filtering
30024         * gnulib-tool (func_filter_filelist): Remove extra backslash
30025         in sed_fff_filter definition.
30026
30027 2009-01-02  Jim Meyering  <meyering@redhat.com>
30028
30029         strftime: avoid compilation failure on Solaris 2.6
30030         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
30031         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
30032         Don't #define mbrlen or mbsinit, since now they're guaranteed to
30033         be available.  Reported by Tom G. Christensen.  Details in
30034         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
30035
30036 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30037             Bruno Haible  <bruno@clisp.org>
30038
30039         Speed up gnulib-tool by doing more string processing through shell
30040         built-ins.
30041         * gnulib-tool (fast_func_append): New variable.
30042         (func_remove_prefix, func_remove_suffix): New functions.
30043         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
30044         (func_filter_filelist): New function.
30045         (func_get_dependencies): Use func_remove_suffix instead of sed.
30046         (func_get_automake_snippet): Use func_filter_filelist instead of a
30047         subshell and sed invocation.
30048
30049 2009-01-01  Bruno Haible  <bruno@clisp.org>
30050
30051         Fix a security bug.
30052         * gnulib-tool (func_import, import, update): Don't allow the characters
30053         '"', '$', '`', '\' in macro arguments that become part of commands that
30054         are evaluated.
30055
30056 2009-01-01  Bruno Haible  <bruno@clisp.org>
30057
30058         * gnulib-tool (func_reset_sigpipe): Add more comments.
30059
30060 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30061
30062         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
30063         func_emit_tests_Makefile_am, func_import): Abort loops early if we
30064         already know the answer.
30065
30066 2009-01-01  Jim Meyering  <meyering@redhat.com>
30067
30068         * lib/version-etc.c (version_etc_va): Update copyright year.
30069
30070 2008-12-30  Bruno Haible  <bruno@clisp.org>
30071
30072         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
30073         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
30074         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
30075
30076 2008-12-29  Eric Blake  <ebb9@byu.net>
30077
30078         multiarch: avoid autoconf AC_REQUIRE bug
30079         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
30080         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
30081         2.63 and older.
30082         Reported by Bruno Haible, and analyzed in
30083         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
30084
30085 2008-12-29  Bruno Haible  <bruno@clisp.org>
30086
30087         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
30088         files in subdirectories correctly.
30089         Reported by Ralf Wildenhues.
30090
30091 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30092
30093         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
30094         rather than 'join FILE -', for Solaris join.
30095
30096 2008-12-29  Bruno Haible  <bruno@clisp.org>
30097
30098         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
30099         quoting.
30100         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
30101         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
30102         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
30103         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
30104         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
30105         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
30106         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
30107         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
30108         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30109         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
30110         * m4/nls.m4 (AM_NLS): Likewise.
30111         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
30112         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
30113         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30114         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
30115         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
30116         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30117         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
30118         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
30119         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
30120         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30121         * m4/xsize.m4 (gl_XSIZE): Likewise.
30122         Suggested by Jim Meyering.
30123
30124 2008-11-17  Bruce Korb  <bkorb@gnu.org>
30125
30126         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
30127         * lib/parse-duration.c: use a switch instead of cascading if's.
30128
30129 2008-12-29  Eric Blake  <ebb9@byu.net>
30130
30131         wchar.h: supply WEOF on Irix 5.3
30132         * lib/wchar.in.h (wint_t): Also supply WEOF.
30133         * lib/wctype.in.h (wint_t): Likewise.
30134         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
30135         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
30136         Reported by Tom G. Christensen.
30137
30138 2008-12-26  Bruno Haible  <bruno@clisp.org>
30139
30140         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
30141         i486, i586, i686.
30142
30143 2008-12-26  Bruno Haible  <bruno@clisp.org>
30144
30145         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
30146
30147 2008-12-26  Bruno Haible  <bruno@clisp.org>
30148
30149         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
30150         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
30151         not __STDC_CONSTANT_MACROS.
30152         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
30153
30154 2008-12-25  Bruno Haible  <bruno@clisp.org>
30155
30156         Add support for universal builds to vasnprintf.
30157         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
30158         universal builds, guess no.
30159         * modules/vasnprintf-posix (Depends-on): Add multiarch.
30160         * modules/vasprintf-posix (Depends-on): Likewise.
30161         * modules/fprintf-posix (Depends-on): Likewise.
30162         * modules/vfprintf-posix (Depends-on): Likewise.
30163         * modules/snprintf-posix (Depends-on): Likewise.
30164         * modules/vsnprintf-posix (Depends-on): Likewise.
30165         * modules/sprintf-posix (Depends-on): Likewise.
30166         * modules/vsprintf-posix (Depends-on): Likewise.
30167         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30168         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30169         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30170         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30171         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30172         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30173         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30174
30175         Add support for universal builds to <inttypes.h>.
30176         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
30177         _SCNu64_PREFIX): In Apple
30178         universal builds, define directly, using _LP64.
30179         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
30180         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
30181         * modules/inttypes (Depends-on): Add multiarch.
30182         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
30183
30184         Add support for universal builds to <stdint.h>.
30185         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
30186         universal builds, define directly, using _LP64.
30187         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
30188         Apple universal builds, don't test for the size and suffix of ptrdiff_t
30189         and size_t.
30190         * modules/stdint (Depends-on): Add multiarch.
30191         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
30192
30193         New module 'multiarch'.
30194         * modules/multiarch: New file.
30195         * m4/multiarch.m4: New file.
30196
30197 2008-12-25  Bruno Haible  <bruno@clisp.org>
30198
30199         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
30200
30201 2008-12-25  Bruno Haible  <bruno@clisp.org>
30202
30203         * modules/btowc (License): Relicense under LGPLv2+.
30204         * modules/mbsinit (License): Likewise.
30205         * modules/mbrtowc (License): Likewise.
30206         * modules/wcrtomb (License): Likewise.
30207         * modules/streq (License): Likewise.
30208         Reported by David Lutterkort <lutter@redhat.com>.
30209
30210 2008-12-23  Bruno Haible  <bruno@clisp.org>
30211
30212         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
30213
30214 2008-12-23  Bruno Haible  <bruno@clisp.org>
30215
30216         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
30217         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
30218         GETADDRINFO_LIB, not in LIBS.
30219         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
30220         * modules/canon-host (Link): Likewise.
30221         * NEWS: Mention the change.
30222         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
30223         GETADDRINFO_LIB.
30224
30225 2008-12-22  Bruno Haible  <bruno@clisp.org>
30226
30227         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
30228         * doc/posix-functions/iswalpha_l.texi: Likewise.
30229         * doc/posix-functions/iswblank_l.texi: Likewise.
30230         * doc/posix-functions/iswcntrl_l.texi: Likewise.
30231         * doc/posix-functions/iswctype_l.texi: Likewise.
30232         * doc/posix-functions/iswdigit_l.texi: Likewise.
30233         * doc/posix-functions/iswgraph_l.texi: Likewise.
30234         * doc/posix-functions/iswlower_l.texi: Likewise.
30235         * doc/posix-functions/iswprint_l.texi: Likewise.
30236         * doc/posix-functions/iswpunct_l.texi: Likewise.
30237         * doc/posix-functions/iswspace_l.texi: Likewise.
30238         * doc/posix-functions/iswupper_l.texi: Likewise.
30239         * doc/posix-functions/iswxdigit_l.texi: Likewise.
30240         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
30241         * doc/posix-functions/open_wmemstream.texi: Likewise.
30242         * doc/posix-functions/swscanf.texi: Likewise.
30243         * doc/posix-functions/towctrans_l.texi: Likewise.
30244         * doc/posix-functions/towlower.texi: Likewise.
30245         * doc/posix-functions/towlower_l.texi: Likewise.
30246         * doc/posix-functions/towupper.texi: Likewise.
30247         * doc/posix-functions/towupper_l.texi: Likewise.
30248         * doc/posix-functions/vfwprintf.texi: Likewise.
30249         * doc/posix-functions/vfwscanf.texi: Likewise.
30250         * doc/posix-functions/vswscanf.texi: Likewise.
30251         * doc/posix-functions/vwprintf.texi: Likewise.
30252         * doc/posix-functions/vwscanf.texi: Likewise.
30253         * doc/posix-functions/wcpcpy.texi: Likewise.
30254         * doc/posix-functions/wcpncpy.texi: Likewise.
30255         * doc/posix-functions/wcscasecmp.texi: Likewise.
30256         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
30257         * doc/posix-functions/wcscoll_l.texi: Likewise.
30258         * doc/posix-functions/wcsdup.texi: Likewise.
30259         * doc/posix-functions/wcsncasecmp.texi: Likewise.
30260         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
30261         * doc/posix-functions/wcsnlen.texi: Likewise.
30262         * doc/posix-functions/wcsnrtombs.texi: Likewise.
30263         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
30264         * doc/posix-functions/wctrans_l.texi: Likewise.
30265         * doc/posix-functions/wctype_l.texi: Likewise.
30266         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
30267         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
30268         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
30269         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
30270         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
30271         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
30272         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
30273         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
30274         * doc/glibc-functions/wcschrnul.texi: Likewise.
30275         * doc/glibc-functions/wcsftime_l.texi: Likewise.
30276         * doc/glibc-functions/wcstod_l.texi: Likewise.
30277         * doc/glibc-functions/wcstof_l.texi: Likewise.
30278         * doc/glibc-functions/wcstol_l.texi: Likewise.
30279         * doc/glibc-functions/wcstold_l.texi: Likewise.
30280         * doc/glibc-functions/wcstoll_l.texi: Likewise.
30281         * doc/glibc-functions/wcstoq.texi: Likewise.
30282         * doc/glibc-functions/wcstoul_l.texi: Likewise.
30283         * doc/glibc-functions/wcstoull_l.texi: Likewise.
30284         * doc/glibc-functions/wcstouq.texi: Likewise.
30285         * doc/glibc-functions/wmempcpy.texi: Likewise.
30286
30287 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
30288             Eric Blake  <ebb9@byu.net>
30289             Paolo Bonzini  <bonzini@gnu.org>
30290             Bruno Haible  <bruno@clisp.org>
30291
30292         Make c-stack work on Haiku.
30293         * lib/c-stack.c (SA_ONSTACK): Define fallback.
30294         (c_stack_action): Use SA_ONSTACK flag.
30295
30296 2008-12-22  Bruno Haible  <bruno@clisp.org>
30297
30298         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
30299
30300 2008-12-22  Bruno Haible  <bruno@clisp.org>
30301
30302         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
30303         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
30304         being overridden.
30305         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
30306         New macros.
30307         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
30308         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
30309         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
30310         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
30311
30312 2008-12-22  Bruno Haible  <bruno@clisp.org>
30313
30314         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
30315         from test code.
30316
30317 2008-12-22  Eric Blake  <ebb9@byu.net>
30318
30319         Avoid gcc warnings on cygwin.
30320         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
30321         Avoid unused variable.
30322         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
30323         Likewise.
30324
30325 2008-12-22  Bruno Haible  <bruno@clisp.org>
30326
30327         Remove HAVE_MBRTOWC conditionals.
30328         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
30329         (mbscasecmp): Assume mbrtowc function.
30330         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
30331         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
30332         * lib/mbschr.c: Include mbuiter.h unconditionally.
30333         (mbschr): Assume mbrtowc function.
30334         * lib/mbscspn.c: Include mbuiter.h unconditionally.
30335         (mbscspn): Assume mbrtowc function.
30336         * lib/mbslen.c: Include mbuiter.h unconditionally.
30337         (mbslen): Assume mbrtowc function.
30338         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
30339         (mbsncasecmp): Assume mbrtowc function.
30340         * lib/mbsnlen.c: Include mbiter.h unconditionally.
30341         (mbsnlen): Assume mbrtowc function.
30342         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
30343         (mbspbrk): Assume mbrtowc function.
30344         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
30345         (mbspcasecmp): Assume mbrtowc function.
30346         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
30347         (mbsrchr): Assume mbrtowc function.
30348         * lib/mbssep.c: Include mbuiter.h unconditionally.
30349         (mbssep): Assume mbrtowc function.
30350         * lib/mbsspn.c: Include mbuiter.h unconditionally.
30351         (mbsspn): Assume mbrtowc function.
30352         * lib/mbsstr.c: Include mbuiter.h unconditionally.
30353         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
30354         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
30355         (mbstok_r): Assume mbrtowc function.
30356         * lib/propername.c: Include mbuiter.h unconditionally.
30357         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
30358         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
30359         (trim2): Assume mbrtowc function.
30360         * lib/mbswidth.c (mbsinit): Remove fallback definition.
30361         (mbsnwidth): Assume mbrtowc function.
30362         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
30363         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
30364         fallback definitions.
30365         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
30366
30367 2008-12-22  Bruno Haible  <bruno@clisp.org>
30368
30369         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
30370
30371 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
30372
30373         * modules/regex: Request emulations for the mb*/wc* functions we need.
30374         * m4/regex.m4: Don't look for those functions here.
30375         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
30376
30377 2008-12-22  Bruno Haible  <bruno@clisp.org>
30378
30379         * modules/fnmatch (Depends-on): Remove duplicated dependency.
30380
30381 2008-12-21  Bruno Haible  <bruno@clisp.org>
30382
30383         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
30384         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
30385         (Include): Remove conditionalization.
30386         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
30387         (Include): Remove conditionalization.
30388         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
30389         (Include): Remove conditionalization.
30390         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
30391         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30392         * NEWS: Mention the change.
30393         Reported by Alan Hourihane <alanh@fairlite.co.uk>
30394         via Sergey Poznyakoff <gray@gnu.org.ua>.
30395
30396 2008-12-21  Bruno Haible  <bruno@clisp.org>
30397
30398         * MODULES.html.sh (Extended multibyte and wide character utilities
30399         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
30400         wcrtomb, wcsrtombs.
30401         (Support for systems lacking POSIX:2008): Add accept, bind, close,
30402         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
30403         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
30404         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
30405
30406 2008-12-21  Bruno Haible  <bruno@clisp.org>
30407
30408         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
30409
30410 2008-12-21  Bruno Haible  <bruno@clisp.org>
30411
30412         * modules/wcsnrtombs-tests: New file.
30413         * tests/test-wcsnrtombs1.sh: New file.
30414         * tests/test-wcsnrtombs2.sh: New file.
30415         * tests/test-wcsnrtombs3.sh: New file.
30416         * tests/test-wcsnrtombs4.sh: New file.
30417         * tests/test-wcsnrtombs.c: New file.
30418
30419         New module 'wcsnrtombs'.
30420         * lib/wchar.in.h (wcsnrtombs): New declaration.
30421         * lib/wcsnrtombs.c: New file.
30422         * lib/wcsrtombs-state.c: New file.
30423         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
30424         (internal_state): Remove variable.
30425         * m4/wcsnrtombs.m4: New file.
30426         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
30427         compilation units.
30428         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
30429         HAVE_WCSNRTOMBS.
30430         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
30431         HAVE_WCSNRTOMBS.
30432         * modules/wcsnrtombs: New file.
30433         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
30434         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
30435
30436 2008-12-21  Bruno Haible  <bruno@clisp.org>
30437
30438         * modules/wcsrtombs-tests: New file.
30439         * tests/test-wcsrtombs1.sh: New file.
30440         * tests/test-wcsrtombs2.sh: New file.
30441         * tests/test-wcsrtombs3.sh: New file.
30442         * tests/test-wcsrtombs4.sh: New file.
30443         * tests/test-wcsrtombs.c: New file.
30444
30445         New module 'wcsrtombs'.
30446         * lib/wchar.in.h (wcsrtombs): New declaration.
30447         * lib/wcsrtombs.c: New file.
30448         * m4/wcsrtombs.m4: New file.
30449         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
30450         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
30451         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
30452         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
30453         * modules/wcsrtombs: New file.
30454         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
30455         bugs.
30456
30457 2008-12-21  Bruno Haible  <bruno@clisp.org>
30458
30459         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
30460         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
30461         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
30462         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
30463         if not correct.
30464         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
30465         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
30466         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
30467         m4/locale-zh.m4, m4/codeset.m4.
30468         * doc/posix-functions/wcrtomb.texi: Document the bug.
30469
30470 2008-12-21  Bruno Haible  <bruno@clisp.org>
30471
30472         Work around a btowc() bug on IRIX 6.5.
30473         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
30474         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
30475         REPLACE_WTOBC if not.
30476         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
30477         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
30478         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
30479
30480 2008-12-21  Bruno Haible  <bruno@clisp.org>
30481
30482         * modules/wcrtomb-tests: New file.
30483         * tests/test-wcrtomb.sh: New file.
30484         * tests/test-wcrtomb.c: New file.
30485
30486         New module 'wcrtomb'.
30487         * lib/wchar.in.h (wcrtomb): New declaration.
30488         * lib/wcrtomb.c: New file.
30489         * m4/wcrtomb.m4: New file.
30490         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
30491         HAVE_WCRTOMB.
30492         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
30493         HAVE_WCRTOMB.
30494         * modules/wcrtomb: New file.
30495         * doc/posix-functions/wcrtomb.texi: Mention the new module.
30496
30497 2008-12-21  Bruno Haible  <bruno@clisp.org>
30498
30499         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
30500         * modules/mbsrtowcs (Files): Likewise.
30501         * modules/wctob (Files): Likewise.
30502         * modules/c-strcase-tests (Files): Likewise.
30503         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30504         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30505         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30506         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30507         * modules/vasnprintf-posix-tests (Files): Likewise.
30508
30509 2008-12-21  William Pursell  <bill.pursell@gmail.com>
30510
30511         gitlog-to-changelog: pass all command-line arguments to git-log
30512         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
30513         it is sometimes convenient to filter the commits in various ways.
30514         gitlog-to-changelog only allows --since to specify a start date,
30515         but git-log itself supports many other filtering mechanisms.
30516         At the moment, I want to filter by branch name.  Rather than
30517         adding a --branch option to gitlog-to-changelog, it seems more
30518         flexible to simply pass all options directly to git-log and let
30519         git do the work.  Notice that this effectively makes --since a
30520         redundant option for gitlog-to-changelog, but removing it would
30521         require current usage to change since calls would then require
30522         an additional '--'.
30523
30524 2008-12-21  Bruno Haible  <bruno@clisp.org>
30525
30526         * modules/mbsnrtowcs-tests: New file.
30527         * tests/test-mbsnrtowcs1.sh: New file.
30528         * tests/test-mbsnrtowcs2.sh: New file.
30529         * tests/test-mbsnrtowcs3.sh: New file.
30530         * tests/test-mbsnrtowcs4.sh: New file.
30531         * tests/test-mbsnrtowcs.c: New file.
30532
30533         New module 'mbsnrtowcs'.
30534         * lib/wchar.in.h (mbsnrtowcs): New declaration.
30535         * lib/mbsnrtowcs.c: New file.
30536         * lib/mbsrtowcs-state.c: New file.
30537         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
30538         (internal_state): Remove variable.
30539         * m4/mbsnrtowcs.m4: New file.
30540         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
30541         compilation units.
30542         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
30543         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
30544         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
30545         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
30546         * modules/mbsnrtowcs: New file.
30547         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
30548         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
30549         portability problem.
30550
30551 2008-12-21  Bruno Haible  <bruno@clisp.org>
30552
30553         Work around mbsrtowcs bug.
30554         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
30555         (gl_FUNC_MBSRTOWCS): Invoke it.
30556         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
30557         m4/locale-zh.m4.
30558         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
30559
30560 2008-12-21  Bruno Haible  <bruno@clisp.org>
30561
30562         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
30563
30564 2008-12-21  Bruno Haible  <bruno@clisp.org>
30565
30566         Update doc for AIX.
30567         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
30568         16-bit wchar_t type.
30569         * doc/posix-functions/btowc.texi: Likewise.
30570         * doc/posix-functions/fgetwc.texi: Likewise.
30571         * doc/posix-functions/fgetws.texi: Likewise.
30572         * doc/posix-functions/fputwc.texi: Likewise.
30573         * doc/posix-functions/fputws.texi: Likewise.
30574         * doc/posix-functions/fwide.texi: Likewise.
30575         * doc/posix-functions/fwprintf.texi: Likewise.
30576         * doc/posix-functions/fwscanf.texi: Likewise.
30577         * doc/posix-functions/getwchar.texi: Likewise.
30578         * doc/posix-functions/getwc.texi: Likewise.
30579         * doc/posix-functions/iswalnum.texi: Likewise.
30580         * doc/posix-functions/iswalpha.texi: Likewise.
30581         * doc/posix-functions/iswblank.texi: Likewise.
30582         * doc/posix-functions/iswcntrl.texi: Likewise.
30583         * doc/posix-functions/iswctype.texi: Likewise.
30584         * doc/posix-functions/iswdigit.texi: Likewise.
30585         * doc/posix-functions/iswgraph.texi: Likewise.
30586         * doc/posix-functions/iswlower.texi: Likewise.
30587         * doc/posix-functions/iswprint.texi: Likewise.
30588         * doc/posix-functions/iswpunct.texi: Likewise.
30589         * doc/posix-functions/iswspace.texi: Likewise.
30590         * doc/posix-functions/iswupper.texi: Likewise.
30591         * doc/posix-functions/iswxdigit.texi: Likewise.
30592         * doc/posix-functions/mbrtowc.texi: Likewise.
30593         * doc/posix-functions/mbsrtowcs.texi: Likewise.
30594         * doc/posix-functions/mbstowcs.texi: Likewise.
30595         * doc/posix-functions/mbtowc.texi: Likewise.
30596         * doc/posix-functions/putwchar.texi: Likewise.
30597         * doc/posix-functions/putwc.texi: Likewise.
30598         * doc/posix-functions/swprintf.texi: Likewise.
30599         * doc/posix-functions/tolower.texi: Likewise.
30600         * doc/posix-functions/toupper.texi: Likewise.
30601         * doc/posix-functions/towctrans.texi: Likewise.
30602         * doc/posix-functions/ungetwc.texi: Likewise.
30603         * doc/posix-functions/vswprintf.texi: Likewise.
30604         * doc/posix-functions/wcrtomb.texi: Likewise.
30605         * doc/posix-functions/wcscat.texi: Likewise.
30606         * doc/posix-functions/wcschr.texi: Likewise.
30607         * doc/posix-functions/wcscmp.texi: Likewise.
30608         * doc/posix-functions/wcscoll.texi: Likewise.
30609         * doc/posix-functions/wcscpy.texi: Likewise.
30610         * doc/posix-functions/wcscspn.texi: Likewise.
30611         * doc/posix-functions/wcsftime.texi: Likewise.
30612         * doc/posix-functions/wcslen.texi: Likewise.
30613         * doc/posix-functions/wcsncat.texi: Likewise.
30614         * doc/posix-functions/wcsncmp.texi: Likewise.
30615         * doc/posix-functions/wcsncpy.texi: Likewise.
30616         * doc/posix-functions/wcspbrk.texi: Likewise.
30617         * doc/posix-functions/wcsrchr.texi: Likewise.
30618         * doc/posix-functions/wcsrtombs.texi: Likewise.
30619         * doc/posix-functions/wcsspn.texi: Likewise.
30620         * doc/posix-functions/wcsstr.texi: Likewise.
30621         * doc/posix-functions/wcstod.texi: Likewise.
30622         * doc/posix-functions/wcstof.texi: Likewise.
30623         * doc/posix-functions/wcstoimax.texi: Likewise.
30624         * doc/posix-functions/wcstok.texi: Likewise.
30625         * doc/posix-functions/wcstold.texi: Likewise.
30626         * doc/posix-functions/wcstoll.texi: Likewise.
30627         * doc/posix-functions/wcstol.texi: Likewise.
30628         * doc/posix-functions/wcstombs.texi: Likewise.
30629         * doc/posix-functions/wcstoull.texi: Likewise.
30630         * doc/posix-functions/wcstoul.texi: Likewise.
30631         * doc/posix-functions/wcstoumax.texi: Likewise.
30632         * doc/posix-functions/wcswidth.texi: Likewise.
30633         * doc/posix-functions/wcsxfrm.texi: Likewise.
30634         * doc/posix-functions/wctob.texi: Likewise.
30635         * doc/posix-functions/wctomb.texi: Likewise.
30636         * doc/posix-functions/wctrans.texi: Likewise.
30637         * doc/posix-functions/wctype.texi: Likewise.
30638         * doc/posix-functions/wcwidth.texi: Likewise.
30639         * doc/posix-functions/wmemchr.texi: Likewise.
30640         * doc/posix-functions/wmemcmp.texi: Likewise.
30641         * doc/posix-functions/wmemcpy.texi: Likewise.
30642         * doc/posix-functions/wmemmove.texi: Likewise.
30643         * doc/posix-functions/wmemset.texi: Likewise.
30644         * doc/posix-functions/wprintf.texi: Likewise.
30645         * doc/posix-functions/wscanf.texi: Likewise.
30646
30647 2008-12-21  Bruno Haible  <bruno@clisp.org>
30648
30649         Update doc for HP-UX 11.11.
30650         * doc/posix-functions/btowc.texi: Clarify that the function is missing
30651         in HP-UX version 11.00, not in all versions of HP-UX 11.
30652         * doc/posix-functions/fwide.texi: Likewise.
30653         * doc/posix-functions/fwprintf.texi: Likewise.
30654         * doc/posix-functions/fwscanf.texi: Likewise.
30655         * doc/posix-functions/inet_ntop.texi: Likewise.
30656         * doc/posix-functions/inet_pton.texi: Likewise.
30657         * doc/posix-functions/mbrlen.texi: Likewise.
30658         * doc/posix-functions/mbrtowc.texi: Likewise.
30659         * doc/posix-functions/mbsinit.texi: Likewise.
30660         * doc/posix-functions/mbsrtowcs.texi: Likewise.
30661         * doc/posix-functions/swprintf.texi: Likewise.
30662         * doc/posix-functions/swscanf.texi: Likewise.
30663         * doc/posix-functions/towctrans.texi: Likewise.
30664         * doc/posix-functions/vfwprintf.texi: Likewise.
30665         * doc/posix-functions/vswprintf.texi: Likewise.
30666         * doc/posix-functions/vwprintf.texi: Likewise.
30667         * doc/posix-functions/wcrtomb.texi: Likewise.
30668         * doc/posix-functions/wcsrtombs.texi: Likewise.
30669         * doc/posix-functions/wcsstr.texi: Likewise.
30670         * doc/posix-functions/wctob.texi: Likewise.
30671         * doc/posix-functions/wctrans.texi: Likewise.
30672         * doc/posix-functions/wmemchr.texi: Likewise.
30673         * doc/posix-functions/wmemcmp.texi: Likewise.
30674         * doc/posix-functions/wmemcpy.texi: Likewise.
30675         * doc/posix-functions/wmemmove.texi: Likewise.
30676         * doc/posix-functions/wmemset.texi: Likewise.
30677         * doc/posix-functions/wprintf.texi: Likewise.
30678         * doc/posix-functions/wscanf.texi: Likewise.
30679
30680 2008-12-21  Bruno Haible  <bruno@clisp.org>
30681
30682         Work around a portability problem.
30683         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
30684         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
30685
30686 2008-12-20  Bruno Haible  <bruno@clisp.org>
30687
30688         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
30689         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
30690         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
30691         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
30692         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
30693
30694         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
30695         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
30696         set.
30697         (GNULIB_defined_mbstate_t): New macro.
30698         (mbsinit): Redefine if REPLACE_MBSINIT is set.
30699         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
30700         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
30701         reuses the system's mbrtowc function but works around the bugs.
30702         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
30703         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
30704         macros.
30705         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
30706         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
30707         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
30708         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
30709         REPLACE_MBSINIT if mbsinit needs to be overridden.
30710         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
30711         REPLACE_MBSINIT, REPLACE_MBRTOWC.
30712         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
30713         REPLACE_MBSINIT, REPLACE_MBRTOWC.
30714         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
30715         m4/locale-zh.m4.
30716         (Depends): Add mbsinit.
30717         * modules/mbsinit (Depends): Add mbrtowc.
30718         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
30719
30720 2008-12-20  Bruno Haible  <bruno@clisp.org>
30721
30722         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
30723         so that there are no conversion errors on AIX.
30724         * tests/test-mbsrtowcs.c (main): LIkewise.
30725
30726 2008-12-20  Bruno Haible  <bruno@clisp.org>
30727
30728         Work around wctob bug on Solaris <= 9.
30729         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
30730         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
30731         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
30732         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
30733         * modules/wctob (Files): Add m4/locale-fr.m4.
30734         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
30735
30736 2008-12-20  Bruno Haible  <bruno@clisp.org>
30737
30738         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
30739         /dev/null.
30740         * tests/test-select-in.sh: Likewise.
30741         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30742
30743 2008-12-20  Bruno Haible  <bruno@clisp.org>
30744
30745         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
30746         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
30747         Cygwin 1.5.x.
30748
30749 2008-12-20  Bruno Haible  <bruno@clisp.org>
30750
30751         Ensure mbstate_t is defined on HP-UX 11.11.
30752         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
30753         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
30754         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
30755         AC_USE_SYSTEM_EXTENSIONS.
30756         * modules/fnmatch (Depends-on): Add extensions.
30757         * modules/mbrlen (Depends-on): Likewise.
30758         * modules/mbrtowc (Depends-on): Likewise.
30759         * modules/mbsinit (Depends-on): Likewise.
30760         * modules/mbsrtowcs (Depends-on): Likewise.
30761         * modules/mbswidth (Depends-on): Likewise.
30762         * modules/quotearg (Depends-on): Likewise.
30763         * modules/strftime (Depends-on): Likewise.
30764
30765 2008-12-20  Bruno Haible  <bruno@clisp.org>
30766
30767         Ensure wctob is declared on IRIX 6.5.
30768         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
30769         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
30770         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
30771         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
30772         of HAVE_WCTOB.
30773         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
30774         HAVE_WCTOB.
30775         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
30776
30777 2008-12-19  Bruno Haible  <bruno@clisp.org>
30778
30779         * modules/mbsrtowcs-tests: New file.
30780         * tests/test-mbsrtowcs1.sh: New file.
30781         * tests/test-mbsrtowcs2.sh: New file.
30782         * tests/test-mbsrtowcs3.sh: New file.
30783         * tests/test-mbsrtowcs4.sh: New file.
30784         * tests/test-mbsrtowcs.c: New file.
30785
30786         New module 'mbsrtowcs'.
30787         * lib/wchar.in.h (mbsrtowcs): New declaration.
30788         * lib/mbsrtowcs.c: New file.
30789         * m4/mbsrtowcs.m4: New file.
30790         * modules/mbsrtowcs: New file.
30791         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
30792         HAVE_MBSRTOWCS.
30793         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
30794         HAVE_MBSRTOWCS.
30795         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
30796
30797 2008-12-19  Bruno Haible  <bruno@clisp.org>
30798
30799         New module 'mbrlen'.
30800         * lib/wchar.in.h (mbrlen): New declaration.
30801         * lib/mbrlen.c: New file.
30802         * m4/mbrlen.m4: New file.
30803         * modules/mbrlen: New file.
30804         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
30805         HAVE_MBRLEN.
30806         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
30807         HAVE_MBRLEN.
30808         * doc/posix-functions/mbrlen.texi: Document the new module.
30809
30810 2008-12-19  Bruno Haible  <bruno@clisp.org>
30811
30812         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
30813         * modules/mbrtowc (Depends-on): Add verify.
30814         Suggested by Paul Eggert.
30815
30816 2008-12-18  Bruno Haible  <bruno@clisp.org>
30817
30818         * modules/mbsinit-tests: New file.
30819         * tests/test-mbsinit.sh: New file.
30820         * tests/test-mbsinit.c: New file.
30821
30822 2008-12-18  Bruno Haible  <bruno@clisp.org>
30823
30824         * modules/mbrtowc-tests: New file.
30825         * tests/test-mbrtowc1.sh: New file.
30826         * tests/test-mbrtowc2.sh: New file.
30827         * tests/test-mbrtowc3.sh: New file.
30828         * tests/test-mbrtowc4.sh: New file.
30829         * tests/test-mbrtowc.c: New file.
30830
30831         New module 'mbrtowc'.
30832         * lib/wchar.in.h (mbstate_t): Override when the system does not have
30833         mbsinit and mbrtowc.
30834         (mbrtowc): New declaration.
30835         * lib/mbrtowc.c: New file.
30836         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
30837         * modules/mbrtowc: New file.
30838         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
30839         HAVE_MBRTOWC.
30840         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
30841         HAVE_MBRTOWC.
30842         * doc/posix-functions/mbrtowc.texi: Document the new module.
30843
30844 2008-12-18  Bruno Haible  <bruno@clisp.org>
30845
30846         New module 'wctob'.
30847         * lib/wchar.in.h (wctob): New declaration.
30848         * lib/wctob.c: New file.
30849         * m4/wctob.m4: New file.
30850         * modules/wctob: New file.
30851         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
30852         HAVE_WCTOB.
30853         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
30854         * doc/posix-functions/wctob.texi: Document the new module.
30855
30856 2008-12-18  Bruno Haible  <bruno@clisp.org>
30857
30858         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
30859         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
30860
30861 2008-12-18  Simon Josefsson  <simon@josefsson.org>
30862
30863         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
30864         G. Christensen" <tgc@jupiterrise.com>.
30865
30866         * lib/flock.c: Need to include errno.h.  Reported by "Tom
30867         G. Christensen" <tgc@jupiterrise.com>.
30868
30869         * lib/flock.c: Need to include string.h.  Reported by "Tom
30870         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
30871         <ebb9@byu.net>.
30872
30873 2008-12-18  Bruno Haible  <bruno@clisp.org>
30874
30875         * m4/locale-ja.m4: New file, from GNU gettext.
30876
30877 2008-12-17  Bruno Haible  <bruno@clisp.org>
30878
30879         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
30880         Suggested by Eric Blake.
30881
30882 2008-12-17  Bruno Haible  <bruno@clisp.org>
30883
30884         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
30885
30886 2008-12-17  Bruno Haible  <bruno@clisp.org>
30887
30888         * lib/mbsinit.c: Include verify.h. Verify an assumption.
30889         * modules/mbsinit (Depends-on): Add verify.
30890         Suggested by Paul Eggert.
30891
30892 2008-12-17  Bruno Haible  <bruno@clisp.org>
30893
30894         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
30895         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
30896         gl_FUNC_MBRTOWC.
30897         * m4/mbiter.m4 (gl_MBITER): LIkewise.
30898         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
30899         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
30900         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
30901         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
30902         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
30903         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
30904         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
30905         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
30906         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
30907         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
30908         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
30909         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
30910         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
30911         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
30912         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30913         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
30914         * modules/trim (configure.ac): Likewise.
30915
30916 2008-12-17  Bruno Haible  <bruno@clisp.org>
30917
30918         * modules/btowc-tests: New file.
30919         * tests/test-btowc1.sh: New file.
30920         * tests/test-btowc2.sh: New file.
30921         * tests/test-btowc.c: New file.
30922
30923         New module 'btowc'.
30924         * lib/wchar.in.h (btowc): New declaration.
30925         * lib/btowc.c: New file.
30926         * m4/btowc.m4: New file.
30927         * modules/btowc: New file.
30928         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
30929         HAVE_BTOWC.
30930         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
30931         * doc/posix-functions/btowc.texi: Document the new module.
30932
30933 2008-12-17  Bruno Haible  <bruno@clisp.org>
30934
30935         New module 'mbsinit'.
30936         * lib/wchar.in.h (mbsinit): New declaration.
30937         * lib/mbsinit.c: New file.
30938         * m4/mbsinit.m4: New file.
30939         * modules/mbsinit: New file.
30940         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
30941         HAVE_MBSINIT.
30942         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
30943         HAVE_MBSINIT.
30944         * doc/posix-functions/mbsinit.texi: Document the new module.
30945
30946 2008-12-16  Bruno Haible  <bruno@clisp.org>
30947
30948         * lib/unistd.in.h: Add comment.
30949         * tests/test-environ.c: Don't include <stdlib.h>.
30950
30951 2008-12-16  Bruno Haible  <bruno@clisp.org>
30952
30953         * lib/parse-duration.h (parse_duration): Document return value
30954         convention.
30955         * lib/parse-duration.c: Include specification header first. Add
30956         comments.
30957         (_): Remove macro.
30958         (parse_year_month_day, parse_hour_minute_second): Move side effects
30959         outside of strchr call.
30960         (parse_non_iso8601): Move side effects outside of isspace call.
30961         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
30962         call.
30963
30964 2008-12-16  Bruno Haible  <bruno@clisp.org>
30965
30966         * tests/test-parse-duration.sh: Produce no output when the test
30967         succeeds.
30968
30969 2008-12-16  Bruno Haible  <bruno@clisp.org>
30970
30971         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
30972         expressions.
30973
30974 2008-12-15  Bruno Haible  <bruno@clisp.org>
30975
30976         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
30977         * doc/glibc-functions/flistxattr.texi: Likewise.
30978         * doc/glibc-functions/fopencookie.texi: Likewise.
30979         * doc/glibc-functions/fremovexattr.texi: Likewise.
30980         * doc/glibc-functions/fsetxattr.texi: Likewise.
30981         * doc/glibc-functions/getxattr.texi: Likewise.
30982         * doc/glibc-functions/lgetxattr.texi: Likewise.
30983         * doc/glibc-functions/listxattr.texi: Likewise.
30984         * doc/glibc-functions/llistxattr.texi: Likewise.
30985         * doc/glibc-functions/lremovexattr.texi: Likewise.
30986         * doc/glibc-functions/lsetxattr.texi: Likewise.
30987         * doc/glibc-functions/removexattr.texi: Likewise.
30988         * doc/glibc-functions/setxattr.texi: Likewise.
30989         * doc/posix-functions/open_memstream.texi: Likewise.
30990
30991 2008-12-15  Eric Blake  <ebb9@byu.net>
30992
30993         Update doc for cygwin 1.7.
30994         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
30995         functions.
30996         * doc/posix-functions/fchmodat.texi: Likewise.
30997         * doc/posix-functions/fchownat.texi: Likewise.
30998         * doc/posix-functions/fdopendir.texi: Likewise.
30999         * doc/posix-functions/fmemopen.texi: Likewise.
31000         * doc/posix-functions/freeaddrinfo.texi: Likewise.
31001         * doc/posix-functions/fstatat.texi: Likewise.
31002         * doc/posix-functions/futimens.texi: Likewise.
31003         * doc/posix-functions/gai_strerror.texi: Likewise.
31004         * doc/posix-functions/getaddrinfo.texi: Likewise.
31005         * doc/posix-functions/getnameinfo.texi: Likewise.
31006         * doc/posix-functions/if_freenameindex.texi: Likewise.
31007         * doc/posix-functions/if_indextoname.texi: Likewise.
31008         * doc/posix-functions/if_nameindex.texi: Likewise.
31009         * doc/posix-functions/if_nametoindex.texi: Likewise.
31010         * doc/posix-functions/insque.texi: Likewise.
31011         * doc/posix-functions/linkat.texi: Likewise.
31012         * doc/posix-functions/llrint.texi: Likewise.
31013         * doc/posix-functions/llrintf.texi: Likewise.
31014         * doc/posix-functions/llrintl.texi: Likewise.
31015         * doc/posix-functions/lockf.texi: Likewise.
31016         * doc/posix-functions/lrintl.texi: Likewise.
31017         * doc/posix-functions/mkdirat.texi: Likewise.
31018         * doc/posix-functions/mkfifoat.texi: Likewise.
31019         * doc/posix-functions/mknodat.texi: Likewise.
31020         * doc/posix-functions/mq_close.texi: Likewise.
31021         * doc/posix-functions/mq_getattr.texi: Likewise.
31022         * doc/posix-functions/mq_notify.texi: Likewise.
31023         * doc/posix-functions/mq_open.texi: Likewise.
31024         * doc/posix-functions/mq_receive.texi: Likewise.
31025         * doc/posix-functions/mq_send.texi: Likewise.
31026         * doc/posix-functions/mq_setattr.texi: Likewise.
31027         * doc/posix-functions/mq_timedreceive.texi: Likewise.
31028         * doc/posix-functions/mq_timedsend.texi: Likewise.
31029         * doc/posix-functions/mq_unlink.texi: Likewise.
31030         * doc/posix-functions/open_memstream.texi: Likewise.
31031         * doc/posix-functions/openat.texi: Likewise.
31032         * doc/posix-functions/posix_fadvise.texi: Likewise.
31033         * doc/posix-functions/posix_fallocate.texi: Likewise.
31034         * doc/posix-functions/posix_madvise.texi: Likewise.
31035         * doc/posix-functions/posix_memalign.texi: Likewise.
31036         * doc/posix-functions/posix_openpt.texi: Likewise.
31037         * doc/posix-functions/readlinkat.texi: Likewise.
31038         * doc/posix-functions/remque.texi: Likewise.
31039         * doc/posix-functions/renameat.texi: Likewise.
31040         * doc/posix-functions/rintl.texi: Likewise.
31041         * doc/posix-functions/sem_unlink.texi: Likewise.
31042         * doc/posix-functions/shm_open.texi: Likewise.
31043         * doc/posix-functions/shm_unlink.texi: Likewise.
31044         * doc/posix-functions/signgam.texi: Likewise.
31045         * doc/posix-functions/sigset.texi: Likewise.
31046         * doc/posix-functions/stpcpy.texi: Likewise.
31047         * doc/posix-functions/stpncpy.texi: Likewise.
31048         * doc/posix-functions/strerror.texi: Likewise.
31049         * doc/posix-functions/strtod.texi: Likewise.
31050         * doc/posix-functions/symlinkat.texi: Likewise.
31051         * doc/posix-functions/unlinkat.texi: Likewise.
31052         * doc/posix-functions/utimensat.texi: Likewise.
31053         * doc/glibc-functions/bindresvport.texi: Likewise.
31054         * doc/glibc-functions/dn_expand.texi: Likewise.
31055         * doc/glibc-functions/exp10.texi: Likewise.
31056         * doc/glibc-functions/exp10f.texi: Likewise.
31057         * doc/glibc-functions/fgetxattr.texi: Likewise.
31058         * doc/glibc-functions/flistxattr.texi: Likewise.
31059         * doc/glibc-functions/fopencookie.texi: Likewise.
31060         * doc/glibc-functions/freeifaddrs.texi: Likewise.
31061         * doc/glibc-functions/fremovexattr.texi: Likewise.
31062         * doc/glibc-functions/fsetxattr.texi: Likewise.
31063         * doc/glibc-functions/getifaddrs.texi: Likewise.
31064         * doc/glibc-functions/getxattr.texi: Likewise.
31065         * doc/glibc-functions/lgetxattr.texi: Likewise.
31066         * doc/glibc-functions/listxattr.texi: Likewise.
31067         * doc/glibc-functions/llistxattr.texi: Likewise.
31068         * doc/glibc-functions/lremovexattr.texi: Likewise.
31069         * doc/glibc-functions/lsetxattr.texi: Likewise.
31070         * doc/glibc-functions/pow10.texi: Likewise.
31071         * doc/glibc-functions/pow10f.texi: Likewise.
31072         * doc/glibc-functions/rcmd_af.texi: Likewise.
31073         * doc/glibc-functions/removexattr.texi: Likewise.
31074         * doc/glibc-functions/res_init.texi: Likewise.
31075         * doc/glibc-functions/res_mkquery.texi: Likewise.
31076         * doc/glibc-functions/res_query.texi: Likewise.
31077         * doc/glibc-functions/res_querydomain.texi: Likewise.
31078         * doc/glibc-functions/res_send.texi: Likewise.
31079         * doc/glibc-functions/rresvport_af.texi: Likewise.
31080         * doc/glibc-functions/setxattr.texi: Likewise.
31081         * doc/glibc-functions/strcasestr.texi: Likewise.
31082
31083 2008-12-15  Bruno Haible  <bruno@clisp.org>
31084
31085         Fix compilation error on OSF/1 4.0.
31086         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
31087         <sys/time.h>, simply delegate to the system header.
31088         Reported by Daniel Richard G. <oss@teragram.com>.
31089
31090 2008-12-15  Bruno Haible  <bruno@clisp.org>
31091
31092         * doc/posix-functions/openat.texi: Mention the 'openat' module.
31093         * doc/posix-functions/fchmodat.texi: Likewise.
31094         * doc/posix-functions/fchownat.texi: Likewise.
31095         * doc/posix-functions/fdopendir.texi: Likewise.
31096         * doc/posix-functions/fstatat.texi: Likewise.
31097         * doc/posix-functions/mkdirat.texi: Likewise.
31098         * doc/posix-functions/unlinkat.texi: Likewise.
31099
31100 2008-12-14  Bruno Haible  <bruno@clisp.org>
31101
31102         Update doc for POSIX:2008.
31103         * doc/posix-functions/faccessat.texi: New file.
31104         * doc/posix-functions/fchmodat.texi: New file.
31105         * doc/posix-functions/fchownat.texi: New file.
31106         * doc/posix-functions/fdopendir.texi: New file.
31107         * doc/posix-functions/fstatat.texi: New file.
31108         * doc/posix-functions/futimens.texi: New file.
31109         * doc/posix-functions/linkat.texi: New file.
31110         * doc/posix-functions/mkdirat.texi: New file.
31111         * doc/posix-functions/mkfifoat.texi: New file.
31112         * doc/posix-functions/mknodat.texi: New file.
31113         * doc/posix-functions/open_wmemstream.texi: New file.
31114         * doc/posix-functions/openat.texi: New file.
31115         * doc/posix-functions/psiginfo.texi: New file.
31116         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
31117         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
31118         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
31119         * doc/posix-functions/readlinkat.texi: New file.
31120         * doc/posix-functions/renameat.texi: New file.
31121         * doc/posix-functions/strerror_l.texi: New file.
31122         * doc/posix-functions/symlinkat.texi: New file.
31123         * doc/posix-functions/unlinkat.texi: New file.
31124         * doc/posix-functions/utimensat.texi: New file.
31125         * doc/gnulib.texi (Function Substitutes): Add these subsections.
31126
31127 2008-12-14  Bruno Haible  <bruno@clisp.org>
31128
31129         Update doc for POSIX:2008.
31130         * doc/posix-functions/alphasort.texi: Renamed from
31131         doc/glibc-functions/alphasort.texi.
31132         * doc/posix-functions/dirfd.texi: Renamed from
31133         doc/glibc-functions/dirfd.texi.
31134         * doc/posix-functions/dprintf.texi: Renamed from
31135         doc/glibc-functions/dprintf.texi.
31136         * doc/posix-functions/duplocale.texi: Renamed from
31137         doc/glibc-functions/duplocale.texi.
31138         * doc/posix-functions/fexecve.texi: Renamed from
31139         doc/glibc-functions/fexecve.texi.
31140         * doc/posix-functions/fmemopen.texi: Renamed from
31141         doc/glibc-functions/fmemopen.texi.
31142         * doc/posix-functions/freelocale.texi: Renamed from
31143         doc/glibc-functions/freelocale.texi.
31144         * doc/posix-functions/getdate_err.texi: Renamed from
31145         doc/glibc-functions/getdate_err.texi.
31146         * doc/posix-functions/isalnum_l.texi: Renamed from
31147         doc/glibc-functions/isalnum_l.texi.
31148         * doc/posix-functions/isalpha_l.texi: Renamed from
31149         doc/glibc-functions/isalpha_l.texi.
31150         * doc/posix-functions/isblank_l.texi: Renamed from
31151         doc/glibc-functions/isblank_l.texi.
31152         * doc/posix-functions/iscntrl_l.texi: Renamed from
31153         doc/glibc-functions/iscntrl_l.texi.
31154         * doc/posix-functions/isdigit_l.texi: Renamed from
31155         doc/glibc-functions/isdigit_l.texi.
31156         * doc/posix-functions/isgraph_l.texi: Renamed from
31157         doc/glibc-functions/isgraph_l.texi.
31158         * doc/posix-functions/islower_l.texi: Renamed from
31159         doc/glibc-functions/islower_l.texi.
31160         * doc/posix-functions/isprint_l.texi: Renamed from
31161         doc/glibc-functions/isprint_l.texi.
31162         * doc/posix-functions/ispunct_l.texi: Renamed from
31163         doc/glibc-functions/ispunct_l.texi.
31164         * doc/posix-functions/isspace_l.texi: Renamed from
31165         doc/glibc-functions/isspace_l.texi.
31166         * doc/posix-functions/isupper_l.texi: Renamed from
31167         doc/glibc-functions/isupper_l.texi.
31168         * doc/posix-functions/iswalnum_l.texi: Renamed from
31169         doc/glibc-functions/iswalnum_l.texi.
31170         * doc/posix-functions/iswalpha_l.texi: Renamed from
31171         doc/glibc-functions/iswalpha_l.texi.
31172         * doc/posix-functions/iswblank_l.texi: Renamed from
31173         doc/glibc-functions/iswblank_l.texi.
31174         * doc/posix-functions/iswcntrl_l.texi: Renamed from
31175         doc/glibc-functions/iswcntrl_l.texi.
31176         * doc/posix-functions/iswctype_l.texi: Renamed from
31177         doc/glibc-functions/iswctype_l.texi.
31178         * doc/posix-functions/iswdigit_l.texi: Renamed from
31179         doc/glibc-functions/iswdigit_l.texi.
31180         * doc/posix-functions/iswgraph_l.texi: Renamed from
31181         doc/glibc-functions/iswgraph_l.texi.
31182         * doc/posix-functions/iswlower_l.texi: Renamed from
31183         doc/glibc-functions/iswlower_l.texi.
31184         * doc/posix-functions/iswprint_l.texi: Renamed from
31185         doc/glibc-functions/iswprint_l.texi.
31186         * doc/posix-functions/iswpunct_l.texi: Renamed from
31187         doc/glibc-functions/iswpunct_l.texi.
31188         * doc/posix-functions/iswspace_l.texi: Renamed from
31189         doc/glibc-functions/iswspace_l.texi.
31190         * doc/posix-functions/iswupper_l.texi: Renamed from
31191         doc/glibc-functions/iswupper_l.texi.
31192         * doc/posix-functions/iswxdigit_l.texi: Renamed from
31193         doc/glibc-functions/iswxdigit_l.texi.
31194         * doc/posix-functions/isxdigit_l.texi: Renamed from
31195         doc/glibc-functions/isxdigit_l.texi.
31196         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
31197         doc/glibc-functions/mbsnrtowcs.texi.
31198         * doc/posix-functions/mkdtemp.texi: Renamed from
31199         doc/glibc-functions/mkdtemp.texi.
31200         * doc/posix-functions/newlocale.texi: Renamed from
31201         doc/glibc-functions/newlocale.texi.
31202         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
31203         doc/glibc-functions/nl_langinfo_l.texi.
31204         * doc/posix-functions/open_memstream.texi: Renamed from
31205         doc/glibc-functions/open_memstream.texi.
31206         * doc/posix-functions/opterr.texi: Renamed from
31207         doc/glibc-functions/opterr.texi.
31208         * doc/posix-functions/optind.texi: Renamed from
31209         doc/glibc-functions/optind.texi.
31210         * doc/posix-functions/optopt.texi: Renamed from
31211         doc/glibc-functions/optopt.texi.
31212         * doc/posix-functions/psignal.texi: Renamed from
31213         doc/glibc-functions/psignal.texi.
31214         * doc/posix-functions/scandir.texi: Renamed from
31215         doc/glibc-functions/scandir.texi.
31216         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
31217         doc/glibc-functions/sched_get_priority_min.texi.
31218         * doc/posix-functions/signgam.texi: Renamed from
31219         doc/glibc-functions/signgam.texi.
31220         * doc/posix-functions/stpcpy.texi: Renamed from
31221         doc/glibc-functions/stpcpy.texi.
31222         * doc/posix-functions/stpncpy.texi: Renamed from
31223         doc/glibc-functions/stpncpy.texi.
31224         * doc/posix-functions/strcasecmp_l.texi: Renamed from
31225         doc/glibc-functions/strcasecmp_l.texi.
31226         * doc/posix-functions/strcoll_l.texi: Renamed from
31227         doc/glibc-functions/strcoll_l.texi.
31228         * doc/posix-functions/strfmon_l.texi: Renamed from
31229         doc/glibc-functions/strfmon_l.texi.
31230         * doc/posix-functions/strftime_l.texi: Renamed from
31231         doc/glibc-functions/strftime_l.texi.
31232         * doc/posix-functions/strncasecmp_l.texi: Renamed from
31233         doc/glibc-functions/strncasecmp_l.texi.
31234         * doc/posix-functions/strndup.texi: Renamed from
31235         doc/glibc-functions/strndup.texi.
31236         * doc/posix-functions/strnlen.texi: Renamed from
31237         doc/glibc-functions/strnlen.texi.
31238         * doc/posix-functions/strsignal.texi: Renamed from
31239         doc/glibc-functions/strsignal.texi.
31240         * doc/posix-functions/strxfrm_l.texi: Renamed from
31241         doc/glibc-functions/strxfrm_l.texi.
31242         * doc/posix-functions/timer_gettime.texi: Renamed from
31243         doc/glibc-functions/timer_gettime.texi.
31244         * doc/posix-functions/tolower_l.texi: Renamed from
31245         doc/glibc-functions/tolower_l.texi.
31246         * doc/posix-functions/toupper_l.texi: Renamed from
31247         doc/glibc-functions/toupper_l.texi.
31248         * doc/posix-functions/towctrans_l.texi: Renamed from
31249         doc/glibc-functions/towctrans_l.texi.
31250         * doc/posix-functions/towlower_l.texi: Renamed from
31251         doc/glibc-functions/towlower_l.texi.
31252         * doc/posix-functions/towupper_l.texi: Renamed from
31253         doc/glibc-functions/towupper_l.texi.
31254         * doc/posix-functions/uselocale.texi: Renamed from
31255         doc/glibc-functions/uselocale.texi.
31256         * doc/posix-functions/vdprintf.texi: Renamed from
31257         doc/glibc-functions/vdprintf.texi.
31258         * doc/posix-functions/wcpcpy.texi:
31259         Renamed from doc/glibc-functions/wcpcpy.texi.
31260         * doc/posix-functions/wcpncpy.texi: Renamed from
31261         doc/glibc-functions/wcpncpy.texi.
31262         * doc/posix-functions/wcscasecmp.texi: Renamed from
31263         doc/glibc-functions/wcscasecmp.texi.
31264         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
31265         doc/glibc-functions/wcscasecmp_l.texi.
31266         * doc/posix-functions/wcscoll_l.texi: Renamed from
31267         doc/glibc-functions/wcscoll_l.texi.
31268         * doc/posix-functions/wcsdup.texi: Renamed from
31269         doc/glibc-functions/wcsdup.texi.
31270         * doc/posix-functions/wcsncasecmp.texi: Renamed from
31271         doc/glibc-functions/wcsncasecmp.texi.
31272         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
31273         doc/glibc-functions/wcsncasecmp_l.texi.
31274         * doc/posix-functions/wcsnlen.texi: Renamed from
31275         doc/glibc-functions/wcsnlen.texi.
31276         * doc/posix-functions/wcsnrtombs.texi: Renamed from
31277         doc/glibc-functions/wcsnrtombs.texi.
31278         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
31279         doc/glibc-functions/wcsxfrm_l.texi.
31280         * doc/posix-functions/wctrans_l.texi: Renamed from
31281         doc/glibc-functions/wctrans_l.texi.
31282         * doc/posix-functions/wctype_l.texi: Renamed from
31283         doc/glibc-functions/wctype_l.texi.
31284         * doc/gnulib.texi (Function Substitutes): Add these subsections.
31285         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
31286         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
31287         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
31288         these subsections.
31289         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
31290         Remove sections.
31291
31292 2008-12-14  Bruno Haible  <bruno@clisp.org>
31293
31294         Update doc for POSIX:2008.
31295         * doc/posix-functions/*.texi: Update URL of POSIX specification.
31296
31297 2008-12-14  Bruno Haible  <bruno@clisp.org>
31298
31299         Update doc for POSIX:2008.
31300         * doc/pastposix-functions/bcmp.texi: Renamed from
31301         doc/posix-functions/bcmp.texi.
31302         * doc/pastposix-functions/bcopy.texi: Renamed from
31303         doc/posix-functions/bcopy.texi.
31304         * doc/pastposix-functions/bsd_signal.texi: Renamed from
31305         doc/posix-functions/bsd_signal.texi.
31306         * doc/pastposix-functions/bzero.texi: Renamed from
31307         doc/posix-functions/bzero.texi.
31308         * doc/pastposix-functions/ecvt.texi: Renamed from
31309         doc/posix-functions/ecvt.texi.
31310         * doc/pastposix-functions/fcvt.texi: Renamed from
31311         doc/posix-functions/fcvt.texi.
31312         * doc/pastposix-functions/ftime.texi: Renamed from
31313         doc/posix-functions/ftime.texi.
31314         * doc/pastposix-functions/gcvt.texi: Renamed from
31315         doc/posix-functions/gcvt.texi.
31316         * doc/pastposix-functions/getcontext.texi: Renamed from
31317         doc/posix-functions/getcontext.texi.
31318         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
31319         doc/posix-functions/gethostbyaddr.texi.
31320         * doc/pastposix-functions/gethostbyname.texi: Renamed from
31321         doc/posix-functions/gethostbyname.texi.
31322         * doc/pastposix-functions/getwd.texi: Renamed from
31323         doc/posix-functions/getwd.texi.
31324         * doc/pastposix-functions/h_errno.texi: Renamed from
31325         doc/posix-functions/h_errno.texi.
31326         * doc/pastposix-functions/index.texi: Renamed from
31327         doc/posix-functions/index.texi.
31328         * doc/pastposix-functions/makecontext.texi: Renamed from
31329         doc/posix-functions/makecontext.texi.
31330         * doc/pastposix-functions/mktemp.texi: Renamed from
31331         doc/posix-functions/mktemp.texi.
31332         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
31333         doc/posix-functions/pthread_attr_getstackaddr.texi.
31334         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
31335         doc/posix-functions/pthread_attr_setstackaddr.texi.
31336         * doc/pastposix-functions/rindex.texi: Renamed from
31337         doc/posix-functions/rindex.texi.
31338         * doc/pastposix-functions/scalb.texi: Renamed from
31339         doc/posix-functions/scalb.texi.
31340         * doc/pastposix-functions/setcontext.texi: Renamed from
31341         doc/posix-functions/setcontext.texi.
31342         * doc/pastposix-functions/swapcontext.texi: Renamed from
31343         doc/posix-functions/swapcontext.texi.
31344         * doc/pastposix-functions/ualarm.texi: Renamed from
31345         doc/posix-functions/ualarm.texi.
31346         * doc/pastposix-functions/usleep.texi: Renamed from
31347         doc/posix-functions/usleep.texi.
31348         * doc/pastposix-functions/vfork.texi: Renamed from
31349         doc/posix-functions/vfork.texi.
31350         * doc/pastposix-functions/wcswcs.texi: Renamed from
31351         doc/posix-functions/wcswcs.texi.
31352         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
31353         (Function Substitutes): Update.
31354
31355 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31356
31357         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
31358         m4/strerror.m4.
31359
31360 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31361             Bruno Haible  <bruno@clisp.org>
31362
31363         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
31364
31365 2008-12-13  Bruno Haible  <bruno@clisp.org>
31366
31367         * modules/strtoull (Depends-on): Remove unistd.
31368
31369 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31370
31371         * modules/strtoull (Depends-on): Add stdlib.
31372
31373 2008-12-11  Simon Josefsson  <simon@josefsson.org>
31374
31375         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
31376
31377 2008-12-10  Jim Meyering  <meyering@redhat.com>
31378
31379         gl_ASSERT: don't say assertions are disabled when they're not
31380         * m4/assert.m4 (gl_ASSERT): Do not make configure report
31381         "checking whether to enable assertions... no", when they are in
31382         fact enabled.  This is solely a bug in the output of configure.
31383         In spite of saying "no", NDEBUG was not defined in that case.
31384         Also, as noted by Eric Blake, leave assertions enabled upon
31385         --enable-assert=INVALID.
31386
31387 2008-12-10  Bruno Haible  <bruno@clisp.org>
31388
31389         Change MODULES.html to refer to POSIX:2008 where possible.
31390         * MODULES.html.sh (POSIX2008_URL): New variable.
31391         (posix_headers): Remove sys/timeb, ucontext.
31392         (posix2001_headers): New variable.
31393         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
31394         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
31395         index, makecontext, mktemp, pthread_attr_getstackaddr,
31396         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
31397         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
31398         (posix2001_functions): New variable.
31399         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
31400         otherwise.
31401
31402 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31403
31404         add missing include to parse-duration.c
31405         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
31406         * modules/parse-duration (Depends-on): Add xalloc.
31407
31408         fix sed script reading maint.mk
31409         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
31410         (syntax-check-rules): Use it.
31411
31412 2008-12-09  Bruno Haible  <bruno@clisp.org>
31413
31414         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
31415         MacOS X 10.4/PowerPC.
31416         Reported by Simon Josefsson.
31417
31418 2008-12-08  Jim Meyering  <meyering@redhat.com>
31419
31420         work around mingw's lack of some S_IF definitions
31421         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
31422         Reported by Simon Josefsson.
31423
31424 2008-12-08  Bruno Haible  <bruno@clisp.org>
31425
31426         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
31427         applied to variables. Needed on MacOS X 10.4/PowerPC.
31428         Reported by Simon Josefsson.
31429
31430 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
31431         and Eric Blake  <ebb9@byu.net>
31432
31433         assert: honor --enable-assert
31434         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
31435         order to honor --enable-assert, rather than treating it as a
31436         synonym for --disable-assert.
31437
31438 2008-12-08  Jim Meyering  <meyering@redhat.com>
31439
31440         * lib/posixtm.c: Remove now-useless declaration of mktime.
31441
31442         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
31443
31444 2008-12-07  Bruno Haible  <bruno@clisp.org>
31445
31446         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
31447         test_once): Mark functions as static.
31448         * tests/test-tls.c (test_tls): Likewise.
31449
31450 2008-12-07  Bruno Haible  <bruno@clisp.org>
31451
31452         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
31453         iconv_register_autodetect.
31454
31455 2008-12-07  Jim Meyering  <meyering@redhat.com>
31456
31457         posixtm.c: avoid a warning
31458         * lib/posixtm.c (posixtime): Don't initialize tm0.
31459         It's no longer needed to placate gcc4's -Wuninitialized,
31460         and the attempt to placate would elicit a new warning.
31461
31462         unicodeio.c: mark unused parameters
31463         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
31464         (fallback_failure_callback): Likewise.
31465
31466 2008-12-07  Bruno Haible  <bruno@clisp.org>
31467
31468         * gnulib-tool (func_create_testdir): When building the tests
31469         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
31470         Reported by Simon Josefsson.
31471
31472 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31473
31474         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
31475
31476 2008-12-06  Bruno Haible  <bruno@clisp.org>
31477
31478         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
31479         Suggested by Eric Blake.
31480
31481 2008-12-06  Bruno Haible  <bruno@clisp.org>
31482
31483         Fix a c-stack test failure on MacOS X.
31484         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
31485         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
31486         handler for SIGBUS as well.
31487         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
31488         install a signal handler for SIGBUS as well.
31489         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
31490
31491 2008-12-06  Bruno Haible  <bruno@clisp.org>
31492
31493         Advocacy documentation.
31494         * doc/gnulib-intro.texi (Benefits): New section.
31495         * doc/gnulib.texi: Update.
31496
31497 2008-12-06  Bruno Haible  <bruno@clisp.org>
31498
31499         Document the 'manywarnings' module.
31500         * doc/manywarnings.texi: New file.
31501         * doc/gnulib.texi: Include it.
31502
31503 2008-12-05  Eric Blake  <ebb9@byu.net>
31504
31505         tests: silence some gcc warnings
31506         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
31507         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
31508         type mismatches.
31509
31510 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31511             Bruno Haible  <bruno@clisp.org>
31512
31513         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
31514
31515 2008-11-29  Jim Meyering  <meyering@redhat.com>
31516
31517         unicodeio.c: mark unused parameters
31518         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
31519         (fallback_failure_callback): Likewise.
31520
31521         fts: fix a thinko
31522         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
31523         (set_stat_type): Return S_IF*-valued "type" directly.
31524         Prompted by James Youngman's spotting a related bug.
31525         Confirmed by further testing through find.
31526
31527         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
31528         * lib/fts.c (D_TYPE): Define.
31529         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
31530         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
31531         (s_ifmt_shift_bits): New function.
31532         (set_stat_type): New function.
31533         (fts_build): When not calling fts_stat, call set_stat_type
31534         to propagate dirent.d_type info to fts_read caller.
31535         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
31536         fts_statp->st_mode type information may be valid.
31537
31538 2008-11-28  Simon Josefsson  <simon@josefsson.org>
31539
31540         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
31541         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
31542         <sds@gnu.org>.
31543
31544 2008-11-20  Bruno Haible  <bruno@clisp.org>
31545
31546         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
31547         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
31548         INCLUDE_NEXT.
31549         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
31550         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
31551         * modules/math (Makefile.am): Substitute
31552         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
31553         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31554
31555 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
31556             Bruno Haible  <bruno@clisp.org>
31557
31558         * lib/stdint.in.h: Define all type macros so that their expansion is
31559         a single typedef'ed token. Fixes a compilation failure in Boost which
31560         does "using ::int8_t;".
31561
31562 2008-11-18  Simon Josefsson  <simon@josefsson.org>
31563
31564         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
31565         gl_MANYWARN_ALL_GCC.
31566         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
31567         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
31568         * modules/manywarnings: New file.
31569         * MODULES.html.sh: Mention manywarnings module.
31570
31571 2008-11-18  Bruno Haible  <bruno@clisp.org>
31572
31573         * doc/gnulib-tool.texi (Unit tests): New section.
31574
31575 2008-11-18  Simon Josefsson  <simon@josefsson.org>
31576
31577         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
31578         paths like 'lib/po/foo.po'.
31579
31580 2008-11-17  Simon Josefsson  <simon@josefsson.org>
31581
31582         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
31583         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
31584
31585 2008-11-17  Simon Josefsson  <simon@josefsson.org>
31586
31587         * m4/warnings.m4: Use CPPFLAGS to really check whether the
31588         parameter works.
31589
31590 2008-11-17  Simon Josefsson  <simon@josefsson.org>
31591
31592         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
31593
31594 2008-11-17  Bruce Korb  <bkorb@gnu.org>
31595
31596         * modules/parse-duration-tests: New file.
31597         * tests/test-parse-duration.sh: New file.
31598         * tests/test-parse-duration.c: New file.
31599
31600         New module 'parse-duration'.
31601         * lib/parse-duration.h: New file.
31602         * lib/parse-duration.c: New file.
31603         * modules/parse-duration: New file.
31604
31605 2008-11-17  Bruno Haible  <bruno@clisp.org>
31606
31607         * tests/test-select-out.sh: Comment out the first pipe test.
31608         Reported by Simon Josefsson.
31609
31610 2008-11-17  Bruno Haible  <bruno@clisp.org>
31611
31612         * modules/getaddrinfo (Depends-on): Add servent, hostent.
31613         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
31614         gl_HOSTENT.
31615
31616 2008-11-17  Bruno Haible  <bruno@clisp.org>
31617
31618         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
31619         -lnetwork and -lnet. Needed for Haiku and BeOS.
31620
31621 2008-11-16  Bruno Haible  <bruno@clisp.org>
31622
31623         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
31624
31625 2008-11-16  Bruno Haible  <bruno@clisp.org>
31626
31627         Avoid test failure on Haiku.
31628         * tests/test-fsync.c: Include <errno.h>.
31629         (main): Don't require that fsync (0) fails.
31630
31631 2008-11-15  Bruno Haible  <bruno@clisp.org>
31632
31633         New module 'hostent'.
31634         * modules/hostent: New file.
31635         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
31636
31637 2008-11-15  Bruno Haible  <bruno@clisp.org>
31638
31639         New module 'servent'.
31640         * modules/servent: New file.
31641         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
31642
31643 2008-11-15  Bruno Haible  <bruno@clisp.org>
31644
31645         Avoid generating same test program with two different rules.
31646         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
31647         test-frexp to test-frexp-nolibm.
31648         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
31649         test-frexpl to test-frexpl-nolibm.
31650
31651 2008-11-15  Bruno Haible  <bruno@clisp.org>
31652
31653         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
31654         $(FREXPL_LIBM).
31655
31656 2008-11-15  Bruno Haible  <bruno@clisp.org>
31657
31658         * lib/netdb.in.h: Activate the definitions also when the system's
31659         <netdb.h> has 'struct addrinfo'.
31660         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
31661         EAI_OVERFLOW or AI_NUMERICSERV.
31662         * doc/posix-headers/netdb.texi: Document the problem.
31663
31664 2008-11-15  Bruno Haible  <bruno@clisp.org>
31665
31666         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
31667
31668         Make the 'sched' module work on platforms where <sched.h> exists but
31669         is incomplete (such as Haiku).
31670         * lib/sched.in.h; Include the system's <sched.h> if it exists.
31671         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
31672         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
31673         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
31674         HAVE_STRUCT_SCHED_PARAM.
31675         * modules/sched (Depends-on): Add include_next.
31676         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
31677         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
31678         * doc/posix-headers/sched.texi: Document the issue.
31679
31680 2008-11-13  Jim Meyering  <meyering@redhat.com>
31681
31682         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
31683         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
31684         test would fail due to the difference in the Report bugs to ...
31685         line.  The expected address is empty, "<>", while the actual
31686         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
31687
31688 2008-11-12  Bruno Haible  <bruno@clisp.org>
31689
31690         lstat: don't compile lstat.c on systems lacking lstat
31691         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
31692         which don't have lstat; this is handled by lib/sys_stat.in.h already.
31693         Reported by Daniel P. Berrange via Jim Meyering.
31694
31695 2008-11-12  Jim Meyering  <meyering@redhat.com>
31696
31697         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
31698
31699 2008-11-12  Simon Josefsson  <simon@josefsson.org>
31700
31701         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
31702         instead.
31703
31704 2008-11-12  Bruno Haible  <bruno@clisp.org>
31705
31706         * lib/unicodeio.c: Include unistr.h.
31707         (utf8_wctomb): Remove function.
31708         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
31709
31710 2008-11-12  Simon Josefsson  <simon@josefsson.org>
31711
31712         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
31713         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
31714         <bruno@clisp.org>.
31715         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
31716
31717 2008-11-12  Simon Josefsson  <simon@josefsson.org>
31718
31719         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
31720         * doc/gnulib.texi: Add section for warnings.
31721
31722 2008-11-11  Bruno Haible  <bruno@clisp.org>
31723
31724         * lib/sockets.h: Add a comment.
31725
31726 2008-11-11  Karl Berry  <karl@gnu.org>
31727
31728         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
31729
31730 2008-11-11  Eric Blake  <ebb9@byu.net>
31731
31732         fdl.texi: avoid git symlinks
31733         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
31734
31735 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31736
31737         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
31738
31739 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31740
31741         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
31742         (gl_WARN_ADD): Substitute $2 if literal.
31743
31744 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31745
31746         * m4/warning.m4: Remove.
31747
31748 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31749
31750         * m4/warnings.m4: Almost complete rewrite. :-)
31751
31752 2008-11-10  Simon Josefsson  <simon@josefsson.org>
31753
31754         * modules/warnings: New module.
31755         * m4/warnings.m4: New file.
31756         * MODULES.html.sh: Mention warnings module.
31757         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
31758         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31759
31760 2008-11-10  Eric Blake  <ebb9@byu.net>
31761
31762         fdl.texi: make a symlink to the latest version
31763         * doc/standards.texi: Revert today's earlier change.
31764         * doc/fdl-1.2.texi: Rename from old fdl.texi...
31765         * doc/fdl.texi: ...and replace this with a symlink to the newer
31766         fdl-1.3.texi.
31767
31768 2008-11-10  Bruno Haible  <bruno@clisp.org>
31769
31770         * tests/test-select-fd.c (main): Accept the result file name as fourth
31771         argument.
31772         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
31773         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
31774
31775 2008-11-10  Bruno Haible  <bruno@clisp.org>
31776
31777         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
31778         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
31779         as autoconf-substituted macros.
31780         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
31781         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
31782         gl_NETDB_H_DEFAULTS. Set these variables.
31783         * modules/netdb (Makefile.am): Substitute these variables.
31784
31785 2008-11-10  Eric Blake  <ebb9@byu.net>
31786
31787         standards.texi: include correct file for FDL 1.3
31788         * doc/standards.texi (GNU Free Documentation License): Change
31789         include file to pull in FDL 1.3, not 1.2.
31790
31791         fdl.texi: revert accidental change to license
31792         * doc/fdl.texi: This is FDL 1.2, not 1.3.
31793
31794 2008-11-10  Bruno Haible  <bruno@clisp.org>
31795
31796         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
31797         cross-compiling guesses also when the native compile gives no result.
31798
31799 2008-11-10  Bruno Haible  <bruno@clisp.org>
31800
31801         * lib/spawni.c (__spawni): Force variable into the stack.
31802
31803 2008-11-10  Bruno Haible  <bruno@clisp.org>
31804
31805         Add support for Haiku.
31806         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
31807         glibc and BeOS, but also on Haiku.
31808         * lib/fpurge.c (fpurge): Likewise.
31809         * lib/freadable.c (freadable): Likewise.
31810         * lib/freadahead.c (freadahead): Likewise.
31811         * lib/freading.c (freading): Likewise.
31812         * lib/freadptr.c (freadptr): Likewise.
31813         * lib/freadseek.c (freadptrinc): Likewise.
31814         * lib/fseeko.c (rpl_fseeko): Likewise.
31815         * lib/fseterr.c (fseterr): Likewise.
31816         * lib/fwritable.c (fwritable): Likewise.
31817         * lib/fwriting.c (fwriting): Likewise.
31818         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
31819
31820 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
31821
31822         * lib/config.charset: Treat Haiku like BeOS.
31823
31824 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
31825
31826         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
31827         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
31828
31829 2008-11-08  Bruno Haible  <bruno@clisp.org>
31830
31831         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
31832         AC_CACHE_CHECK.
31833
31834 2008-11-08  Bruno Haible  <bruno@clisp.org>
31835
31836         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
31837
31838 2008-11-08  Bruno Haible  <bruno@clisp.org>
31839
31840         * tests/test-select-fd.c: New file.
31841         * tests/test-select-in.sh: New file.
31842         * tests/test-select-out.sh: New file.
31843         * tests/test-select-stdin.c: New file.
31844         * modules/select-tests (Files): Add the new files.
31845         (Depends-on): Add gettimeofday.
31846         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
31847         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
31848         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
31849
31850 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
31851             Bruno Haible  <bruno@clisp.org>
31852
31853         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
31854
31855 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
31856
31857         * build-aux/pmccabe2html: Added support for C++ source files.
31858
31859 2008-11-05  Ben Pfaff  <blp@gnu.org>
31860
31861         Fix lib/close.c build on Windows.
31862         * modules/close (Files): Add lib/w32sock.h.
31863
31864 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
31865
31866         Accept Bison's NEWS format.
31867         * build-aux/announce-gen (print_news_deltas): Tweak
31868         $re_prefix.
31869
31870 2008-11-04  Bruno Haible  <bruno@clisp.org>
31871
31872         * modules/random_r (Maintainer): Add glibc.
31873
31874 2008-11-04  Simon Josefsson  <simon@josefsson.org>
31875
31876         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
31877         by karl@freefriends.org (Karl Berry).
31878         * doc/alloca.texi: Likewise.
31879         * doc/c-ctype.texi: Likewise.
31880         * doc/c-strcase.texi: Likewise.
31881         * doc/c-strcaseeq.texi: Likewise.
31882         * doc/c-strcasestr.texi: Likewise.
31883         * doc/c-strstr.texi: Likewise.
31884         * doc/c-strtod.texi: Likewise.
31885         * doc/c-strtold.texi: Likewise.
31886         * doc/ctime.texi: Likewise.
31887         * doc/error.texi: Likewise.
31888         * doc/fdl.texi: Likewise.
31889         * doc/gcd.texi: Likewise.
31890         * doc/getdate.texi: Likewise.
31891         * doc/gnulib-intro.texi: Likewise.
31892         * doc/gnulib-tool.texi: Likewise.
31893         * doc/gnulib.texi: Likewise.
31894         * doc/inet_ntoa.texi: Likewise.
31895         * doc/maintain.texi: Likewise.
31896         * doc/make-stds.texi: Likewise.
31897         * doc/quote.texi: Likewise.
31898         * doc/regexprops-generic.texi: Likewise.
31899         * doc/standards.texi: Likewise.
31900         * doc/verify.texi: Likewise.
31901         * doc/visibility.texi: Likewise.
31902         * doc/gnulib.texi (GNU Free Documentation License): Include
31903         fdl-1.3.texi instead of fdl.texi.
31904
31905 2008-11-04  Simon Josefsson  <simon@josefsson.org>
31906
31907         * doc/fdl-1.3.texi: New file, from
31908         <http://www.gnu.org/licenses/fdl-1.3.texi>.
31909         * modules/fdl-1.3: Add.
31910         * MODULES.html.sh: Add fdl-1.3.
31911
31912 2008-11-03  Bruno Haible  <bruno@clisp.org>
31913
31914         Make determination of absolute name of header file work with AIX xlc.
31915         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
31916         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
31917         preprocessing.
31918         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31919         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
31920
31921 2008-11-03  Simon Josefsson  <simon@josefsson.org>
31922
31923         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
31924         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
31925         <ludo@gnu.org>.
31926
31927 2008-11-02  Bruno Haible  <bruno@clisp.org>
31928
31929         Mark 'strpbrk' obsolete.
31930         * modules/strpbrk (Status, Notice): New sections.
31931         * modules/strtok_r (Depends-on): Add strpbrk.
31932
31933 2008-11-02  Bruno Haible  <bruno@clisp.org>
31934
31935         Mark 'strdup' obsolete.
31936         * modules/strdup (Status, Notice): New sections.
31937         * modules/findprog (Depends-on): Add strdup.
31938         * modules/getaddrinfo (Depends-on): Likewise.
31939         * modules/localename (Depends-on): Likewise.
31940         * modules/relocatable-lib (Depends-on): Likewise.
31941         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
31942         * modules/relocatable-prog (Depends-on): Likewise.
31943         * modules/trim (Depends-on): Likewise.
31944         * modules/unictype/gen-ctype (Depends-on): Likewise.
31945         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
31946
31947 2008-11-02  Bruno Haible  <bruno@clisp.org>
31948
31949         Mark 'strcspn' obsolete.
31950         * modules/strcspn (Status, Notice): New sections.
31951
31952 2008-11-02  Bruno Haible  <bruno@clisp.org>
31953
31954         Mark 'rmdir' obsolete.
31955         * modules/rmdir (Status, Notice): New sections.
31956         * modules/clean-temp (Depends-on): Add rmdir.
31957         * modules/openat (Depends-on): Likewise.
31958
31959 2008-11-02  Bruno Haible  <bruno@clisp.org>
31960
31961         Mark 'raise' obsolete.
31962         * modules/raise (Status, Notice): New sections.
31963         (Include): Specify <signal.h>.
31964         * modules/stdio (Depends-on): Add raise.
31965         * modules/write (Depends-on): Likewise.
31966
31967 2008-11-02  Bruno Haible  <bruno@clisp.org>
31968
31969         Mark 'memset' obsolete.
31970         * modules/memset (Status, Notice): New sections.
31971
31972 2008-11-02  Bruno Haible  <bruno@clisp.org>
31973
31974         Mark 'memmove' obsolete.
31975         * modules/memmove (Status, Notice): New sections.
31976         * modules/argp (Depends-on): Add memmove.
31977         * modules/argz (Depends-on): Likewise.
31978         * modules/canonicalize (Depends-on): Likewise.
31979         * modules/canonicalize-lgpl (Depends-on): Likewise.
31980         * modules/fts (Depends-on): Likewise.
31981         * modules/getcwd (Depends-on): Likewise.
31982         * modules/human (Depends-on): Likewise.
31983         * modules/regex (Depends-on): Likewise.
31984         * modules/striconveh (Depends-on): Likewise.
31985         * modules/trim (Depends-on): Likewise.
31986         * modules/unistr/u8-move (Depends-on): Likewise.
31987         * modules/unistr/u16-move (Depends-on): Likewise.
31988         * modules/unistr/u32-move (Depends-on): Likewise.
31989
31990 2008-11-02  Bruno Haible  <bruno@clisp.org>
31991
31992         Mark 'memcpy' obsolete.
31993         * modules/memcpy (Status, Notice): New sections.
31994
31995 2008-11-02  Bruno Haible  <bruno@clisp.org>
31996
31997         Mark 'memcmp' obsolete.
31998         * modules/memcmp (Status, Notice): New sections.
31999         * modules/argmatch (Depends-on): Add memchr.
32000         * modules/backupfile (Depends-on): Likewise.
32001         * modules/c-strcasestr (Depends-on): Likewise.
32002         * modules/crypto/des (Depends-on): Likewise.
32003         * modules/csharpcomp (Depends-on): Likewise.
32004         * modules/fnmatch (Depends-on): Likewise.
32005         * modules/git-merge-changelog (Depends-on): Likewise.
32006         * modules/isnand (Depends-on): Likewise.
32007         * modules/isnand-nolibm (Depends-on): Likewise.
32008         * modules/isnanf (Depends-on): Likewise.
32009         * modules/isnanf-nolibm (Depends-on): Likewise.
32010         * modules/isnanl (Depends-on): Likewise.
32011         * modules/isnanl-nolibm (Depends-on): Likewise.
32012         * modules/mbchar (Depends-on): Likewise.
32013         * modules/memcoll (Depends-on): Likewise.
32014         * modules/quotearg (Depends-on): Likewise.
32015         * modules/regex (Depends-on): Likewise.
32016         * modules/relocatable-prog (Depends-on): Likewise.
32017         * modules/same (Depends-on): Likewise.
32018         * modules/signbit (Depends-on): Likewise.
32019         * modules/strcasestr-simple (Depends-on): Likewise.
32020         * modules/unictype/gen-ctype (Depends-on): Likewise.
32021         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
32022         * modules/uniname/uniname (Depends-on): Likewise.
32023         * modules/unistr/u8-cmp (Depends-on): Likewise.
32024
32025 2008-11-02  Bruno Haible  <bruno@clisp.org>
32026
32027         Mark 'memchr' obsolete.
32028         * modules/memchr (Status, Notice): New sections.
32029         * modules/argp (Depends-on): Add memchr.
32030         * modules/base64 (Depends-on): Likewise.
32031         * modules/c-strcasestr (Depends-on): Likewise.
32032         * modules/chdir-long (Depends-on): Likewise.
32033         * modules/fnmatch (Depends-on): Likewise.
32034         * modules/getsubopt (Depends-on): Likewise.
32035         * modules/git-merge-changelog (Depends-on): Likewise.
32036         * modules/glob (Depends-on): Likewise.
32037         * modules/strcasestr-simple (Depends-on): Likewise.
32038         * modules/strnlen (Depends-on): Likewise.
32039
32040 2008-11-02  Bruno Haible  <bruno@clisp.org>
32041
32042         Mark 'atexit' obsolete.
32043         * modules/atexit (Status, Notice): New sections.
32044         * modules/chdir-long (Depends-on): Add atexit.
32045         * modules/wait-process (Depends-on): Likewise.
32046
32047 2008-11-02  Bruno Haible  <bruno@clisp.org>
32048
32049         * gnulib-tool: New option --with-obsolete.
32050         (func_usage): Document it.
32051         (func_modules_transitive_closure): Drop obsolete dependencies if
32052         incobsolete is not true.
32053         (func_import): Read and save the incobsolete variable to the cache.
32054
32055 2008-11-02  Bruno Haible  <bruno@clisp.org>
32056
32057         * modules/TEMPLATE-EXTENDED: New field 'Status'.
32058         * gnulib-tool: New option --extract-status.
32059         (func_usage): Document it.
32060         (sed_extract_prog): Recognize it.
32061         (func_get_status): New function.
32062
32063 2008-10-30  Simon Josefsson  <simon@josefsson.org>
32064
32065         * modules/sockets (License): Change from LGPL to LGPLv2+.
32066
32067 2008-10-28  Simon Josefsson  <simon@josefsson.org>
32068
32069         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
32070
32071 2008-10-28  Simon Josefsson  <simon@josefsson.org>
32072
32073         * MODULES.html.sh (Support for systems lacking POSIX:2001):
32074         Mention times and sys_times.
32075         * modules/sys_times, modules/sys_times-tests: New modules.
32076         * modules/times, modules/times-tests: Likewise
32077         * m4/sys_times_h.m4: New file.
32078         * lib/sys_times.in.h: Likewise
32079         * lib/times.c: Likewise.
32080         * tests/test-sys_times.c: Likewise.
32081         * tests/test-times.c: Likewise.
32082         * doc/posix-headers/sys_times.texi: Update.
32083         * doc/posix-functions/times.texi: Update.
32084
32085 2008-10-28  Jim Meyering  <meyering@redhat.com>
32086
32087         * modules/tempname (Depends-on): Add lstat.
32088
32089         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
32090
32091 2008-10-28  Simon Josefsson  <simon@josefsson.org>
32092
32093         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
32094         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
32095         using idiom used elsewhere in gnulib.
32096
32097 2008-10-27  Jim Meyering  <meyering@redhat.com>
32098
32099         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
32100
32101 2008-10-27  Simon Josefsson  <simon@josefsson.org>
32102
32103         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
32104         TESTS_ENVIRONMENT, for shell scripts that needs to call built
32105         programs.
32106         * tests/test-argp-2.sh: Use $EXEEXT when needed.
32107
32108 2008-10-27  Simon Josefsson  <simon@josefsson.org>
32109
32110         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
32111
32112 2008-10-27  Bruno Haible  <bruno@clisp.org>
32113
32114         * tests/test-lstat.c: Include <stdio.h>.
32115
32116 2008-10-27  Simon Josefsson  <simon@josefsson.org>
32117
32118         * modules/lstat-tests: New module.
32119         * tests/test-lstat.c: New file.
32120
32121 2008-10-26  Jim Meyering  <meyering@redhat.com>
32122
32123         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
32124
32125 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32126             Bruno Haible  <bruno@clisp.org>
32127
32128         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
32129         * modules/configmake (Include): Add a note that the include must come
32130         after all system headers.
32131         * lib/javaversion.c: Include configmake.h after all other includes.
32132
32133 2008-10-26  Bruno Haible  <bruno@clisp.org>
32134
32135         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
32136         HAVE_STRUCT_RANDOM_DATA to 1.
32137         (gl_STDLIB_H): Simplify.
32138
32139 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32140
32141         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
32142         substitute HAVE_STRUCT_RANDOM_DATA.
32143         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
32144         random_data.
32145         * modules/stdlib (Makefile.am): Substitute
32146         HAVE_STRUCT_RANDOM_DATA.
32147
32148 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32149
32150         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
32151         * doc/gnulib-intro.texi (Copyright): Likewise.
32152
32153 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32154
32155         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
32156         findings.
32157
32158 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
32159             Bruno Haible  <bruno@clisp.org>
32160
32161         * lib/unistd.in.h: Include <winsock2.h>.
32162         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
32163         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
32164         Provide dummy declarations.
32165         (gethostname): Override.
32166         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
32167         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
32168         gl_PREREQ_SYS_H_WINSOCK2.
32169         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
32170         * doc/posix-functions/gethostname.texi: More details.
32171
32172 2008-10-25  Bruno Haible  <bruno@clisp.org>
32173
32174         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
32175         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
32176         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
32177
32178         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
32179         here ...
32180         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
32181         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
32182         gl_UNISTD_H_DEFAULTS.
32183
32184 2008-10-25  Eric Blake  <ebb9@byu.net>
32185
32186         signbit: avoid spurious compiler failure
32187         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
32188         declarations inside function.
32189
32190 2008-10-24  Simon Josefsson  <simon@josefsson.org>
32191             Bruno Haible  <bruno@clisp.org>
32192
32193         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
32194         * modules/random_r (Depends-on): Add stdint.
32195
32196 2008-10-24  Bruno Haible  <bruno@clisp.org>
32197
32198         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
32199         Eggert.
32200         * modules/strerror (License): Likewise.
32201
32202 2008-10-24  Jim Meyering  <meyering@redhat.com>
32203
32204         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
32205         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
32206
32207 2008-10-24  Eric Blake  <ebb9@byu.net>
32208
32209         getgroups: fix compilation when getgroups is available
32210         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
32211         but with <config.h> override of getgroups disabled.
32212
32213 2008-10-24  Simon Josefsson  <simon@josefsson.org>
32214
32215         * doc/gnulib.texi (Header files): Add note about C++ problems.
32216         Explained by Bruno Haible <bruno@clisp.org>.
32217
32218 2008-10-23  Bruno Haible  <bruno@clisp.org>
32219
32220         Define a dummy SA_NODEFER macro on Interix.
32221         * lib/signal.in.h (SA_NODEFER): Define fallback.
32222         Reported by Aleksey Cheusov <cheusov@tut.by> via
32223         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
32224
32225 2008-10-23  Bruno Haible  <bruno@clisp.org>
32226
32227         * modules/freadahead (License): Change to LGPLv2+.
32228         Suggested by Simon Josefsson.
32229
32230 2008-10-23  Jim Meyering  <meyering@redhat.com>
32231
32232         random_r: new module
32233         * modules/random_r: New file.
32234         * m4/random_r.m4: New file.
32235         * lib/random_r.c: New file, from glibc.
32236         * modules/random_r-tests: New file.
32237         * tests/test-random_r.c: New file.
32238         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
32239          Declare.
32240         (RAND_MAX): Define.
32241         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
32242         * modules/stdlib: Substitute them, too.
32243         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
32244         * doc/glibc-functions/initstate_r.texi: Mention the new module.
32245         * doc/glibc-functions/random_r.texi: Likewise.
32246         * doc/glibc-functions/setstate_r.texi: Likewise.
32247         * doc/glibc-functions/srandom_r.texi: Likewise.
32248         * config/srclist.txt: Mention it.
32249
32250 2008-10-23  David Lutterkort  <lutter@redhat.com>
32251
32252         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
32253         link requirement
32254
32255 2008-10-23  Jim Meyering  <meyering@redhat.com>
32256
32257         selinux-h: mark parameters of stub functions as intentionally unused
32258         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
32259         * lib/se-context.in.h: Likewise.
32260
32261 2008-10-22  Simon Josefsson  <simon@josefsson.org>
32262
32263         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
32264
32265 2008-10-22  Simon Josefsson  <simon@josefsson.org>
32266
32267         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
32268
32269 2008-10-22  Eric Blake  <ebb9@byu.net>
32270
32271         glthread/thread: avoid compiler warning
32272         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
32273         Add unreachable abort to silence compiler.
32274
32275 2008-10-22  Eric Blake  <ebb9@byu.net>
32276
32277         netdb: also supply struct addrinfo for cygwin 1.5.x
32278         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
32279         older cygwin.
32280         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
32281         cygwin.
32282         * doc/posix-headers/netdb.texi (netdb.h): Document this.
32283
32284 2008-10-22  Bruno Haible  <bruno@clisp.org>
32285
32286         * users.txt: Update entry about pspp.
32287
32288 2008-10-21  Bruno Haible  <bruno@clisp.org>
32289
32290         Simplification.
32291         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
32292         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
32293
32294         Simplification.
32295         * lib/ioctl.c (ioctl): Don't undefine.
32296         * lib/socket.c (socket): Don't undefine.
32297
32298         Remove unused module indicator macros.
32299         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
32300         GNULIB_$1 as a C macro.
32301
32302         * doc/posix-functions/close.texi: Undo last change.
32303         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
32304         Windows platforms.
32305
32306 2008-10-21  Bruno Haible  <bruno@clisp.org>
32307
32308         Add gethostname() declaration to <unistd.h>.
32309         * lib/unistd.in.h (gethostname): New declaration.
32310         * lib/gethostname.c: Include <unistd.h>.
32311         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
32312         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
32313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
32314         and HAVE_GETHOSTNAME.
32315         * modules/gethostname (Depends-on): Add unistd.
32316         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32317         (Include): Specify <unistd.h>.
32318         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
32319         HAVE_GETHOSTNAME.
32320         * tests/test-gethostname.c: Include <unistd.h> first.
32321
32322 2008-10-21  Bruno Haible  <bruno@clisp.org>
32323
32324         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
32325         * modules/select-tests (Depends-on): Likewise.
32326         Reported by Simon Josefsson.
32327
32328 2008-10-21  Simon Josefsson  <simon@josefsson.org>
32329
32330         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
32331         * lib/accept.c: New file, based on winsock.c.
32332         * lib/bind.c: New file, based on winsock.c.
32333         * lib/connect.c: New file, based on winsock.c.
32334         * lib/getpeername.c: New file, based on winsock.c.
32335         * lib/getsockname.c: New file, based on winsock.c.
32336         * lib/getsockopt.c: New file, based on winsock.c.
32337         * lib/ioctl.c: New file, based on winsock.c.
32338         * lib/listen.c: New file, based on winsock.c.
32339         * lib/recv.c: New file, based on winsock.c.
32340         * lib/recvfrom.c: New file, based on winsock.c.
32341         * lib/send.c: New file, based on winsock.c.
32342         * lib/sendto.c: New file, based on winsock.c.
32343         * lib/setsockopt.c: New file, based on winsock.c.
32344         * lib/shutdown.c: New file, based on winsock.c.
32345         * lib/socket.c: New file, based on winsock.c.
32346         * lib/w32sock.h: New file, based on winsock.c.
32347         * lib/winsock.c: Remove file.
32348         * modules/accept: Likewise.
32349         * modules/bind: Likewise.
32350         * modules/connect: Likewise.
32351         * modules/getpeername: Likewise.
32352         * modules/getsockname: Likewise.
32353         * modules/getsockopt: Likewise.
32354         * modules/ioctl: Likewise.
32355         * modules/listen: Likewise.
32356         * modules/recv: Likewise.
32357         * modules/recvfrom: Likewise.
32358         * modules/send: Likewise.
32359         * modules/sendto: Likewise.
32360         * modules/setsockopt: Likewise.
32361         * modules/shutdown: Likewise.
32362         * modules/socket: Use socket.c instead of winsock.c.
32363         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
32364         * doc/posix-functions/accept.texi: Doc fix.
32365         * doc/posix-functions/bind.texi: Doc fix.
32366         * doc/posix-functions/close.texi: Doc fix.
32367         * doc/posix-functions/connect.texi: Doc fix.
32368         * doc/posix-functions/getpeername.texi: Doc fix.
32369         * doc/posix-functions/getsockname.texi: Doc fix.
32370         * doc/posix-functions/getsockopt.texi: Doc fix.
32371         * doc/posix-functions/ioctl.texi: Doc fix.
32372         * doc/posix-functions/listen.texi: Doc fix.
32373         * doc/posix-functions/recv.texi: Doc fix.
32374         * doc/posix-functions/recvfrom.texi: Doc fix.
32375         * doc/posix-functions/send.texi: Doc fix.
32376         * doc/posix-functions/sendto.texi: Doc fix.
32377         * doc/posix-functions/setsockopt.texi: Doc fix.
32378         * doc/posix-functions/shutdown.texi: Doc fix.
32379         * doc/posix-functions/socket.texi: Doc fix.
32380
32381 2008-10-20  Bruno Haible  <bruno@clisp.org>
32382
32383         Take into account the role of SIGABRT_COMPAT on Windows 2008.
32384         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
32385         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
32386         as an alias for SIGABRT.
32387         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
32388         (sigaction): Map it to SIGABRT.
32389         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
32390
32391 2008-10-20  Bruno Haible  <bruno@clisp.org>
32392
32393         * lib/fts.c: Don't include lstat.h.
32394         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
32395
32396         Move the lstat() declaration to <sys/stat.h>.
32397         * lib/lstat.h: Remove file.
32398         * lib/sys_stat.in.h: Add special invocation convention.
32399         (lstat): New declaration.
32400         * lib/lstat.c (orig_lstat): New function.
32401         (rpl_lstat): Use orig_lstat instead of lstat.
32402         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
32403         AC_C_INLINE. Set REPLACE_LSTAT.
32404         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
32405         and REPLACE_LSTAT.
32406         * modules/lstat (Files): Remove lib/lstat.h.
32407         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
32408         (Include): Specify <sys/stat.h> instead of lstat.h.
32409         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
32410         REPLACE_LSTAT.
32411         * NEWS: Mention the change.
32412
32413 2008-10-20  Bruno Haible  <bruno@clisp.org>
32414
32415         * modules/posix_spawn-tests: New file.
32416         * tests/test-posix_spawn3.c: New file.
32417
32418 2008-10-20  Bruno Haible  <bruno@clisp.org>
32419
32420         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
32421         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
32422         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
32423         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
32424         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
32425
32426 2008-10-20  Bruno Haible  <bruno@clisp.org>
32427
32428         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
32429         of posix_spawn on AIX 5.3.
32430
32431 2008-10-20  Bruno Haible  <bruno@clisp.org>
32432
32433         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
32434
32435 2008-10-20  Bruno Haible  <bruno@clisp.org>
32436
32437         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
32438         of AC_LANG_PROGRAM.
32439
32440 2008-10-20  Simon Josefsson  <simon@josefsson.org>
32441
32442         * lib/netdb.in.h: Don't define GNU specific constants until they
32443         are supported or needed.  Reported by Bruno Haible
32444         <bruno@clisp.org>.
32445
32446 2008-10-20  Simon Josefsson  <simon@josefsson.org>
32447
32448         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
32449
32450 2008-10-20  Simon Josefsson  <simon@josefsson.org>
32451
32452         * lib/getaddrinfo.h: Remove file.
32453         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
32454         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
32455         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
32456         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
32457         * modules/netdb: Substitute GNULIB_GETADDRINFO.
32458         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
32459         * tests/test-getaddrinfo.c: Likewise.
32460         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
32461         * NEWS: Mention change.
32462
32463 2008-10-19  Bruno Haible  <bruno@clisp.org>
32464
32465         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
32466
32467 2008-10-19  Bruno Haible  <bruno@clisp.org>
32468
32469         * lib/wait-process.c: Include simply <sys/wait.h>.
32470         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
32471         WIFSTOPPED): Remove fallback definitions.
32472         * modules/wait-process (Depends-on): Add sys_wait.
32473
32474         New module 'sys_wait'.
32475         * modules/sys_wait: New file.
32476         * lib/sys_wait.in.h: New file, partially copied from
32477         lib/wait-process.c.
32478         * m4/sys_wait_h.m4: New file.
32479         * doc/posix-headers/sys_wait.texi: Mention the new module.
32480
32481 2008-10-19  Bruno Haible  <bruno@clisp.org>
32482
32483         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
32484
32485 2008-10-19  Bruno Haible  <bruno@clisp.org>
32486
32487         Assume that waitpid() fills an 'int' status, not a 'union wait'.
32488         * lib/wait-process.c (WAIT_T): Remove type.
32489         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
32490         (wait_subprocess): Update.
32491
32492 2008-10-19  Bruno Haible  <bruno@clisp.org>
32493
32494         New module 'atoll'.
32495         * modules/atoll: New file.
32496         * lib/stdlib.in.h (atoll): New declaration.
32497         * lib/atoll.c: New file, from glibc with modifications.
32498         * m4/atoll.m4: New file.
32499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
32500         HAVE_ATOLL.
32501         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
32502         * doc/posix-functions/atoll.texi: Mention the new module.
32503
32504 2008-10-19  Bruno Haible  <bruno@clisp.org>
32505
32506         Add strtoull() declaration to <stdlib.h>.
32507         * lib/stdlib.in.h (strtoull): New declaration.
32508         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
32509         Set HAVE_STRTOULL.
32510         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
32511         HAVE_STRTOULL.
32512         * modules/strtoull (Depends-on): Add stdlib.
32513         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32514         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
32515         HAVE_STRTOULL.
32516
32517 2008-10-19  Bruno Haible  <bruno@clisp.org>
32518
32519         Add strtoll() declaration to <stdlib.h>.
32520         * lib/stdlib.in.h (strtoll): New declaration.
32521         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
32522         Set HAVE_STRTOLL.
32523         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
32524         HAVE_STRTOLL.
32525         * modules/strtoll (Depends-on): Add stdlib.
32526         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32527         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
32528
32529 2008-10-19  Bruno Haible  <bruno@clisp.org>
32530
32531         * modules/bcopy (Depends-on): Add strings.
32532         (Include): Specify <strings.h>.
32533
32534 2008-10-19  Bruno Haible  <bruno@clisp.org>
32535
32536         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
32537
32538 2008-10-19  Bruno Haible  <bruno@clisp.org>
32539
32540         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
32541         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
32542         mingw.
32543
32544 2008-10-19  Bruno Haible  <bruno@clisp.org>
32545
32546         * lib/atanl.c: Don't include isnanl.h.
32547         * lib/cosl.c: Likewise.
32548         * lib/ldexpl.c: Likewise.
32549         * lib/logl.c: Likewise.
32550         * lib/sinl.c: Likewise.
32551         * lib/sqrtl.c: Likewise.
32552         * lib/tanl.c: Likewise.
32553
32554         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
32555         * lib/isnanf.h: Remove file.
32556         * lib/isnand.h: Remove file.
32557         * lib/isnanl.h: Remove file.
32558         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
32559         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
32560         macros.
32561         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
32562         HAVE_ISNANF, don't define it as a C macro.
32563         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
32564         HAVE_ISNAND, don't define it as a C macro.
32565         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
32566         HAVE_ISNANL, don't define it as a C macro.
32567         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
32568         HAVE_ISNAN[FDL].
32569         * modules/isnanf (Files): Remove lib/isnanf.h.
32570         (Depends-on): Add math.
32571         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
32572         (Include): Specify <math.h> instead of isnanf.h.
32573         * modules/isnand (Files): Remove lib/isnand.h.
32574         (Depends-on): Add math.
32575         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
32576         (Include): Specify <math.h> instead of isnand.h.
32577         * modules/isnanl (Files): Remove lib/isnanl.h.
32578         (Depends-on): Add math.
32579         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
32580         (Include): Specify <math.h> instead of isnanl.h.
32581         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
32582         HAVE_ISNAN[FDL].
32583         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
32584         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
32585         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
32586         * NEWS: Mention the change.
32587
32588 2008-10-18  Bruno Haible  <bruno@clisp.org>
32589
32590         Add getusershell(), setusershell(), endusershell() declarations to
32591         <unistd.h>.
32592         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
32593         declarations.
32594         * lib/getusershell.c: Include unistd.h.
32595         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
32596         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
32597         HAVE_GETUSERSHELL.
32598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
32599         and HAVE_GETUSERSHELL.
32600         * modules/getusershell (Depends-on): Add unistd, extensions.
32601         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32602         (Include): Specify <unistd.h>.
32603         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
32604         HAVE_GETUSERSHELL.
32605
32606 2008-10-18  Bruno Haible  <bruno@clisp.org>
32607
32608         Add a getloadavg() declaration to <stdlib.h>.
32609         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
32610         getloadavg declaration.
32611         (getloadavg): New declaration.
32612         * lib/getloadavg.c: Include <stdlib.h> first.
32613         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
32614         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
32615         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
32616         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
32617         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
32618         * modules/getloadavg (Depends-on): Add stdlib, extensions.
32619         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32620         (Include): Specify <stdlib.h>.
32621         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
32622         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
32623
32624 2008-10-18  Bruno Haible  <bruno@clisp.org>
32625
32626         * lib/dirchownmod.c: Don't include lchmod.h.
32627
32628         Move the lchmod() declaration to <sys/stat.h>.
32629         * lib/lchmod.h: Remove file.
32630         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
32631         (lchmod): New declaration, moved here from lib/lchown.h.
32632         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
32633         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
32634         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
32635         and HAVE_LCHMOD.
32636         * modules/lchmod (Files): Remove lib/lchmod.h.
32637         (Depends-on): Add sys_stat, extensions.
32638         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
32639         (Include): Specify <sys/stat.h> instead of lchmod.h.
32640         * modules/sys_stat (Depends-on): Add link-warning.
32641         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
32642         definition of GL_LINK_WARNING.
32643         * NEWS: Mention the change.
32644
32645 2008-10-18  Bruno Haible  <bruno@clisp.org>
32646
32647         * lib/fchdir.c: Don't include dirfd.h.
32648         * lib/fts.c: Likewise.
32649         * lib/getcwd.c: Likewise.
32650         * lib/glob.c: Likewise.
32651
32652         Move the dirfd() declaration to <dirent.h>.
32653         * lib/dirfd.h: Remove file.
32654         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
32655         (dirfd): New declaration.
32656         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
32657         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
32658         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
32659         HAVE_DECL_DIRFD.
32660         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
32661         HAVE_DECL_DIRFD.
32662         * modules/dirfd (Files): Remove lib/dirfd.h.
32663         (Depends-on): Add dirent, extensions.
32664         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
32665         (Include): Specify <dirent.h> instead of dirfd.h.
32666         * modules/dirent (Depends-on): Add link-warning.
32667         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
32668         definition of GL_LINK_WARNING.
32669         * NEWS: Mention the change.
32670
32671 2008-10-18  Bruno Haible  <bruno@clisp.org>
32672
32673         Move the euidaccess() declaration to <unistd.h>.
32674         * lib/euidaccess.h: Remove file.
32675         * lib/unistd.in.h (euidaccess): New declaration.
32676         * lib/euidaccess.c: Don't include euidaccess.h.
32677         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
32678         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
32679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
32680         and HAVE_EUIDACCESS.
32681         * modules/euidaccess (Files): Remove lib/euidaccess.h.
32682         (Depends-on): Add unistd.
32683         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32684         (Include): Specify <unistd.h> instead of euidaccess.h.
32685         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
32686         HAVE_EUIDACCESS.
32687         * NEWS: Mention the change.
32688
32689 2008-10-18  Bruno Haible  <bruno@clisp.org>
32690
32691         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
32692
32693         Move the getdomainname() declaration to <unistd.h>.
32694         * lib/getdomainname.h: Remove file.
32695         * lib/unistd.in.h (getdomainname): New declaration.
32696         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
32697         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
32698         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
32699         HAVE_GETDOMAINNAME.
32700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32701         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
32702         * modules/getdomainname (Files): Remove lib/getdomainname.h.
32703         (Depends-on): Add unistd, extensions.
32704         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32705         (Includes): Specify <unistd.h> instead of getdomainname.h.
32706         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
32707         HAVE_GETDOMAINNAME.
32708         * NEWS: Mention the change.
32709
32710 2008-10-18  Bruno Haible  <bruno@clisp.org>
32711
32712         * modules/dirent: New file.
32713         * m4/dirent_h.m4: New file.
32714         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
32715         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
32716         * modules/fchdir (Files): Remove lib/dirent.in.h.
32717         (Depends-on): Add dirent.
32718         (Makefile.am): Move rules to modules/dirent.
32719         * doc/posix-headers/dirent.texi: Mention the new module.
32720
32721 2008-10-18  Bruno Haible  <bruno@clisp.org>
32722
32723         Avoid -Wunused-parameter warnings in public gnulib header files.
32724         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
32725         macro.
32726         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
32727
32728 2008-10-18  Bruno Haible  <bruno@clisp.org>
32729
32730         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
32731         * doc/glibc-functions/error.texi: Mention the module 'error'.
32732         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
32733         * doc/glibc-functions/getdomainname.texi: Mention the module
32734         'getdomainname'.
32735         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
32736         * doc/glibc-functions/getpagesize.texi: Mention the module
32737         'getpagesize'.
32738         * doc/glibc-functions/getusershell.texi: Mention the module
32739         'getusershell'.
32740         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
32741         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
32742         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
32743         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
32744         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
32745         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
32746         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
32747         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
32748         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
32749         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
32750         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
32751         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
32752         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
32753         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
32754
32755 2008-10-17  Bruno Haible  <bruno@clisp.org>
32756
32757         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
32758         HP-UX and IRIX, use -0.0L.
32759         * tests/test-ceill.c (minus_zero): Likewise.
32760         * tests/test-floorl.c (minus_zero): Likewise.
32761         * tests/test-frexpl.c (minus_zero): Likewise.
32762         * tests/test-isnan.c (minus_zerol): Likewise.
32763         * tests/test-isnanl.h (minus_zero): Likewise.
32764         * tests/test-ldexpl.c (minus_zero): Likewise.
32765         * tests/test-roundl.c (minus_zero): Likewise.
32766         * tests/test-signbit.c (minus_zerol): Likewise.
32767         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
32768         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
32769         * tests/test-truncl.c (minus_zero): Likewise.
32770         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
32771         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
32772         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
32773         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
32774
32775 2008-10-17  Bruno Haible  <bruno@clisp.org>
32776
32777         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
32778         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
32779         that it gets activated only for gcc >= 3.0.
32780         * lib/dirent.in.h: Likewise.
32781         * lib/errno.in.h: Likewise.
32782         * lib/fcntl.in.h: Likewise.
32783         * lib/float.in.h: Likewise.
32784         * lib/iconv.in.h: Likewise.
32785         * lib/inttypes.in.h: Likewise.
32786         * lib/locale.in.h: Likewise.
32787         * lib/math.in.h: Likewise.
32788         * lib/netdb.in.h: Likewise.
32789         * lib/netinet_in.in.h: Likewise.
32790         * lib/search.in.h: Likewise.
32791         * lib/signal.in.h: Likewise.
32792         * lib/spawn.in.h: Likewise.
32793         * lib/stdarg.in.h: Likewise.
32794         * lib/stdint.in.h: Likewise.
32795         * lib/stdio.in.h: Likewise.
32796         * lib/stdlib.in.h: Likewise.
32797         * lib/string.in.h: Likewise.
32798         * lib/strings.in.h: Likewise.
32799         * lib/sys_file.in.h: Likewise.
32800         * lib/sys_ioctl.in.h: Likewise.
32801         * lib/sys_select.in.h: Likewise.
32802         * lib/sys_socket.in.h: Likewise.
32803         * lib/sys_stat.in.h: Likewise.
32804         * lib/sys_time.in.h: Likewise.
32805         * lib/sysexits.in.h: Likewise.
32806         * lib/time.in.h: Likewise.
32807         * lib/unistd.in.h: Likewise.
32808         * lib/wchar.in.h: Likewise.
32809         * lib/wctype.in.h: Likewise.
32810         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32811
32812 2008-10-17  Jim Meyering  <meyering@redhat.com>
32813
32814         ignore-value: don't depend on inline module
32815         * modules/ignore-value (Depends-on): Remove 'inline'.
32816         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
32817         Suggestion from Bruno Haible.
32818
32819 2008-10-17  Bruno Haible  <bruno@clisp.org>
32820
32821         New implementation of condition variables for Win32.
32822         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
32823         (gl_linked_waitqueue_t): New type.
32824         (gl_cond_t): Use it.
32825         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
32826         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
32827         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
32828         (glthread_cond_init_func, glthread_cond_wait_func,
32829         glthread_cond_timedwait_func, glthread_cond_signal_func,
32830         glthread_cond_broadcast_func, glthread_cond_destroy_func):
32831         Reimplemented on the basis of gl_linked_waitqueue_t.
32832         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
32833         gl_waitqueue_t.
32834         (gl_rwlock_t): Update.
32835         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
32836
32837 2008-10-17  Simon Josefsson  <simon@josefsson.org>
32838
32839         * modules/recvfrom (Depends-on): Add dependency on getpeername.
32840         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32841
32842 2008-10-17  Jim Meyering  <meyering@redhat.com>
32843
32844         ignore-value: new module
32845         * modules/ignore-value: New file.
32846         * lib/ignore-value.h: New file.
32847         * MODULES.html.sh (Compiler warning management): New section,
32848         just for this module.  More to come.
32849
32850 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
32851
32852         open-safer.c: avoid 'signed and unsigned in conditional...' warning
32853         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
32854         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
32855
32856 2008-10-16  Jim Meyering  <meyering@redhat.com>
32857
32858         openat-die.c: avoid 'no previous prototype' warning
32859         * lib/openat-die.c: Include "openat.h".
32860         Reported by Reuben Thomas <rrt@sc3d.org>.
32861
32862 2008-10-16  Simon Josefsson  <simon@josefsson.org>
32863
32864         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
32865         * lib/netdb.in.h: Fix typo.
32866         Reported by Bruno Haible  <bruno@clisp.org>
32867
32868         * lib/netdb.in.h: Include sys/socket.h for platforms without
32869         netdb.h, to get structures like hostent on MinGW.
32870         * modules/netdb (Depends-on): Add sys_socket.
32871
32872 2008-10-15  Simon Josefsson  <simon@josefsson.org>
32873
32874         * modules/netdb, modules/netdb-tests: New file.
32875         * m4/netdb_h.m4: New file.
32876         * lib/netdb.in.h: Add, currently just an empty file pending
32877         definitions.
32878         * tests/test-netdb.c: New file.
32879         * doc/posix-headers/netdb.texi: Mention that we replace it if
32880         needed.
32881         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32882         netdb.
32883
32884 2008-10-15  Simon Josefsson  <simon@josefsson.org>
32885
32886         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
32887         with code.
32888
32889 2008-10-13  Bruno Haible  <bruno@clisp.org>
32890
32891         * lib/glthread/cond.c (glthread_cond_wait_func,
32892         glthread_cond_timedwait_func): Add a comment.
32893
32894 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32895
32896         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
32897         * tests/test-select.c: Likewise,
32898
32899 2008-10-13  Bruno Haible  <bruno@clisp.org>
32900
32901         * lib/glthread/cond.c (glthread_cond_wait_func,
32902         glthread_cond_timedwait_func): Fix variable name.
32903         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32904
32905 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
32906
32907         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
32908         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
32909         struct sockaddr.sa_len.
32910         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
32911
32912 2008-10-13  Simon Josefsson  <simon@josefsson.org>
32913
32914         * build-aux/pmccabe2html: Add css and css_url parameters.
32915
32916 2008-10-12  Bruno Haible  <bruno@clisp.org>
32917
32918         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
32919         calling aclx_get.
32920         Reported by Rainer Tammer <tammer@tammer.net>.
32921
32922 2008-10-12  Bruno Haible  <bruno@clisp.org>
32923
32924         Use msvcrt aware primitives for creation/termination of Win32 threads.
32925         * lib/glthread/thread.c: Include <process.h>.
32926         (glthread_create_func): Use _beginthreadex instead of CreateThread.
32927         (wrapper_func): Update signature.
32928         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
32929
32930 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32931             Bruno Haible  <bruno@clisp.org>
32932
32933         Provide a Win32 implementation of the 'cond' module.
32934         * lib/glthread/cond.h [USE_WIN32]: New implementation.
32935         * lib/glthread/cond.c (glthread_cond_init_func,
32936         glthread_cond_wait_func, glthread_cond_timedwait_func,
32937         glthread_cond_signal_func, glthread_cond_broadcast_func,
32938         glthread_cond_destroy_func) [USE_WIN32]: New functions.
32939         * modules/cond (Dependencies): Add gettimeofday.
32940
32941 2008-10-11  Bruno Haible  <bruno@clisp.org>
32942
32943         Make sleep work on older versions of mingw.
32944         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
32945         only whether it exists.
32946         * doc/posix-functions/sleep.texi: Mention the problem with older
32947         versions of mingw.
32948
32949 2008-10-11  Bruno Haible  <bruno@clisp.org>
32950
32951         New module 'shutdown'.
32952         * modules/shutdown: New file.
32953         * lib/sys_socket.in.h (shutdown): New declaration.
32954         * lib/winsock.c (shutdown): New function.
32955         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32956         GNULIB_SHUTDOWN.
32957         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
32958         * doc/posix-functions/shutdown.texi: Document the new module.
32959
32960 2008-10-11  Jim Meyering  <meyering@redhat.com>
32961
32962         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
32963
32964 2008-10-11  Bruno Haible  <bruno@clisp.org>
32965
32966         New module 'fclose'.
32967         * modules/fclose: New file.
32968         * lib/stdio.in.h (fclose): New declaration.
32969         * lib/fclose.c: New file.
32970         * m4/fclose.m4: New file.
32971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
32972         REPLACE_FCLOSE.
32973         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
32974         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
32975         REPLACE_FCLOSE.
32976         * modules/close (Depends-on): fclose.
32977         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
32978
32979 2008-10-11  Bruno Haible  <bruno@clisp.org>
32980
32981         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
32982         set errno and don't call _close.
32983
32984 2008-10-10  Bruno Haible  <bruno@clisp.org>
32985
32986         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
32987         ACL, not afterwards. Fixes test failure on Cygwin.
32988
32989 2008-10-09  Ben Pfaff  <blp@gnu.org>
32990
32991         * build-aux/announce-gen: Fix gnulib version related part of usage
32992         message.  Die with a useful error message if no tarballs are
32993         found.
32994
32995 2008-10-10  Jim Meyering  <meyering@redhat.com>
32996
32997         bootstrap: use git's --depth=N option only if it's supported
32998         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
32999         recognize the --depth option.  Reported by Pádraig Brady.
33000
33001 2008-10-09  Bruno Haible  <bruno@clisp.org>
33002
33003         New module 'ioctl'.
33004         * modules/ioctl: New file.
33005         * lib/sys_socket.in.h (ioctl): Remove declaration.
33006         * lib/winsock.c: Include <sys/ioctl.h>.
33007         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
33008         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
33009         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
33010         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
33011         * doc/posix-functions/ioctl.texi: Mention the new module.
33012
33013 2008-10-09  Bruno Haible  <bruno@clisp.org>
33014
33015         New module 'sys_ioctl'.
33016         * lib/sys_ioctl.in.h: New file.
33017         * m4/sys_ioctl_h.m4: New file.
33018         * modules/sys_ioctl: New file.
33019         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
33020
33021 2008-10-09  Bruno Haible  <bruno@clisp.org>
33022
33023         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
33024         * lib/winsock.c: Include <stdarg.h>.
33025         (rpl_ioctl): Change to second argument 'int' and then varargs.
33026
33027 2008-10-09  Bruno Haible  <bruno@clisp.org>
33028
33029         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
33030         when the sys_socket module is present and the system has <winsock2.h>.
33031
33032 2008-10-09  Bruno Haible  <bruno@clisp.org>
33033
33034         * doc/posix-functions/close.texi: Mention module 'close' instead of
33035         module 'sys_socket'.
33036
33037 2008-10-09  Bruno Haible  <bruno@clisp.org>
33038
33039         * doc/glibc-headers/sys_ioctl.texi: New file.
33040         * doc/gnulib.texi: Include it.
33041
33042 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33043             Bruno Haible  <bruno@clisp.org>
33044
33045         Combine the two replacements of 'close'.
33046         * lib/sys_socket.in.h (close): Define to a reminder to include
33047         <unistd.h>.
33048         (_gl_close_fd_maybe_socket): New declaration.
33049         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
33050         * lib/winsock.c (close): Remove undefinition.
33051         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
33052         needed for the gnulib module 'close'.
33053         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
33054         define to an error symbol or to a warning, if suitable.
33055         * lib/close.c: Include <sys/socket.h>.
33056         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
33057         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
33058         UNISTD_H_HAVE_WINSOCK2_H.
33059         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
33060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33061         UNISTD_H_HAVE_WINSOCK2_H.
33062         * modules/sys_socket (Files): Add m4/unistd_h.m4.
33063         (configure.ac): Set a module indicator.
33064         (Makefile.am): Substitute GNULIB_CLOSE.
33065         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
33066         * modules/poll-tests (Depends-on): Add close.
33067         * modules/select-tests (Depends-on): Likewise.
33068
33069 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33070             Bruno Haible  <bruno@clisp.org>
33071
33072         New module 'close'.
33073         * modules/close: New file.
33074         * lib/unistd.in.h (close): Move declaration out of the
33075         FCHDIR_REPLACEMENT scope.
33076         (_gl_unregister_fd): New declaration.
33077         * lib/close.c: New file.
33078         * lib/fchdir.c (rpl_close): Remove function.
33079         * m4/close.m4: New file.
33080         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
33081         close.
33082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
33083         REPLACE_CLOSE.
33084         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
33085         REPLACE_CLOSE.
33086         * modules/fchdir (Depends-on): Add close.
33087
33088 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33089             Bruno Haible  <bruno@clisp.org>
33090
33091         * lib/fcntl.in.h (open): Simplify conditionals.
33092         (_gl_register_fd): New declaration.
33093         * lib/fchdir.c (rpl_open): Remove function.
33094         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
33095         also.
33096         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
33097         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
33098         open.
33099
33100 2008-10-09  Jim Meyering  <meyering@redhat.com>
33101
33102         GNUmakefile: use the more name-space-friendly "_version"
33103         * top/GNUmakefile (_dummy): Update.
33104         (_version): Rename from "version".
33105
33106 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33107             Bruno Haible  <bruno@clisp.org>
33108
33109         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
33110         rpl_close.
33111         (_gl_register_fd): New function, extracted from rpl_open.
33112         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
33113         (rpl_open, rpl_opendir): Use _gl_register_fd.
33114
33115 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33116
33117         Fix organization of 'open' replacement.
33118         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
33119         (gl_FUNC_OPEN): Use it.
33120         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
33121
33122 2008-10-08  Bruno Haible  <bruno@clisp.org>
33123
33124         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
33125
33126 2008-10-08  Simon Josefsson  <simon@josefsson.org>
33127
33128         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
33129         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
33130         listen).
33131
33132 2008-10-08  Eric Blake  <ebb9@byu.net>
33133
33134         GNUmakefile: add 'make version' target
33135         * top/GNUmakefile (_curr-ver): Split version update rules...
33136         (version): ...into a target.
33137
33138 2008-10-07  Bruno Haible  <bruno@clisp.org>
33139
33140         Use a more portable replacement expression for -0.0L.
33141         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
33142         instead of -0.0L. Fix m4 quotation.
33143
33144         * tests/test-signbit.c: Include <float.h>.
33145         (minus_zero): New variable.
33146         (test_signbitl): Use minus_zero instead of -zero.
33147         * modules/signbit-tests (Depends-on): Add float.
33148
33149         * tests/test-ceill.c: Include <float.h>.
33150         (zero): Remove variable.
33151         (minus_zero): New variable.
33152         (main): Use minus_zero instead of -zero.
33153         * modules/ceill-tests (Depends-on): Add float.
33154
33155         * tests/test-floorl.c: Include <float.h>.
33156         (zero): Remove variable.
33157         (minus_zero): New variable.
33158         (main): Use minus_zero instead of -zero.
33159         * modules/floorl-tests (Depends-on): Add float.
33160
33161         * tests/test-roundl.c: Include <float.h>.
33162         (zero): Remove variable.
33163         (minus_zero): New variable.
33164         (main): Use minus_zero instead of -zero.
33165         * modules/roundl-tests (Depends-on): Add float.
33166
33167         * tests/test-truncl.c: Include <float.h>.
33168         (zero): Remove variable.
33169         (minus_zero): New variable.
33170         (main): Use minus_zero instead of -zero.
33171         * modules/truncl-tests (Depends-on): Add float.
33172
33173         * tests/test-frexpl.c (zero): Remove variable.
33174         (minus_zero): New variable.
33175         (main): Use minus_zero instead of -zero.
33176         * modules/frexpl-tests (Depends-on): Add float.
33177
33178         * tests/test-isnan.c (zerol): Remove variable.
33179         (minus_zerol): New variable.
33180         (test_long_double): Use minus_zerol instead of -zerol.
33181         * modules/isnan-tests (Depends-on): Add float.
33182
33183         * tests/test-isnanl.h (zero): Remove variable.
33184         (minus_zero): New variable.
33185         (main): Use minus_zero instead of -zero.
33186         * modules/isnanl-nolibm-tests (Depends-on): Add float.
33187         * modules/isnanl-tests (Depends-on): Add float.
33188
33189         * tests/test-ldexpl.c (zero): Remove variable.
33190         (minus_zero): New variable.
33191         (main): Use minus_zero instead of -zero.
33192         * modules/ldexpl-tests (Depends-on): Add float.
33193
33194         * tests/test-snprintf-posix.h (zerol): Remove variable.
33195         (minus_zerol): New variable.
33196         (test_function): Use minus_zerol instead of -zerol.
33197         * modules/snprintf-posix-tests (Depends-on): Add float.
33198         * modules/vsnprintf-posix-tests (Depends-on): Add float.
33199
33200         * tests/test-sprintf-posix.h (zerol): Remove variable.
33201         (minus_zerol): New variable.
33202         (test_function): Use minus_zerol instead of -zerol.
33203         * modules/sprintf-posix-tests (Depends-on): Add float.
33204         * modules/vsprintf-posix-tests (Depends-on): Add float.
33205
33206         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
33207         (minus_zerol): New variable.
33208         (test_function): Use minus_zerol instead of -zerol.
33209         * modules/vasnprintf-posix-tests (Depends-on): Add float.
33210
33211         * tests/test-vasprintf-posix.c (zerol): Remove variable.
33212         (minus_zerol): New variable.
33213         (test_function): Use minus_zerol instead of -zerol.
33214         * modules/vasprintf-posix-tests (Depends-on): Add float.
33215
33216 2008-10-07  Simon Josefsson  <simon@josefsson.org>
33217
33218         * MODULES.html.sh (Support for building documentation): Mention
33219         pmccabe2html.  Sort entries.
33220
33221         Add pmccabe2html module, from gnupdf.
33222         * build-aux/pmccabe.css: New file.
33223         * build-aux/pmccabe2html: New file.
33224         * m4/pmccabe2html.m4: New file.
33225         * modules/pmccabe2html: New file.
33226
33227 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
33228
33229         flock: new module
33230         * MODULES.html.sh: Add to list of modules.
33231         * lib/flock.c: flock implementation for Windows and Unix systems
33232         which have fcntl.
33233         * doc/glibc-functions/flock.texi: Update documentation.
33234         * lib/sys_file.in.h: <sys/file.h> header file.
33235         * m4/flock.m4: M4 macros.
33236         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
33237         * modules/flock: flock module.
33238         * modules/flock-tests: flock tests module.
33239         * modules/sys_file: sys/file.h module.
33240         * tests/test-flock.c: test suite for flock.
33241
33242 2008-10-06  Jim Meyering  <meyering@redhat.com>
33243
33244         bootstrap: check for LT_INIT more portably still ;-)
33245         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
33246         Spotted by Bruno Haible.
33247
33248 2008-10-06  Eric Blake  <ebb9@byu.net>
33249
33250         test-signbit: avoid tripping Irix cc bug on -0.0L
33251         * tests/test-signbit.c (minus_zerol): Delete, and replace with
33252         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
33253         entire testsuite consistent and avoids an Irix 6.2 bug.
33254
33255 2008-10-05  Bruno Haible  <bruno@clisp.org>
33256             Jim Meyering  <jim@meyering.net>
33257
33258         Add an option for ignoring EPIPE during close_stdout.
33259         * lib/closeout.h: Include <stdbool.h>.
33260         (close_stdout_set_ignore_EPIPE): New declaration.
33261         * lib/closeout.c: Include <stdbool.h>.
33262         (ignore_EPIPE): New variable.
33263         (close_stdout_set_ignore_EPIPE): New function.
33264         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
33265         * lib/close-stream.c (close_stream): Mention the possible EPIPE
33266         failure.
33267         * modules/closeout (Depends-on): Add stdbool.
33268
33269 2008-10-05  Bruno Haible  <bruno@clisp.org>
33270
33271         * modules/accept: New file.
33272         * modules/bind: New file.
33273         * modules/connect: New file.
33274         * modules/getpeername: New file.
33275         * modules/getsockname: New file.
33276         * modules/getsockopt: New file.
33277         * modules/listen: New file.
33278         * modules/recv: New file.
33279         * modules/recvfrom: New file.
33280         * modules/send: New file.
33281         * modules/sendto: New file.
33282         * modules/setsockopt: New file.
33283         * modules/socket: New file.
33284         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
33285         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33286         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
33287         the particular module is requested. Add a link warning when the
33288         particular module is not requested.
33289         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
33290         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
33291         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
33292         the particular module is requested.
33293         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
33294         gl_SYS_SOCKET_H_DEFAULTS): New macros.
33295         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
33296         * modules/sys_socket (Depends-on): Add link-warning.
33297         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
33298         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
33299         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
33300         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
33301         GL_LINK_WARNING.
33302         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
33303         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
33304         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
33305         * doc/posix-functions/getpeername.texi: Mention the new module
33306         'getpeername'.
33307         * doc/posix-functions/getsockname.texi: Mention the new module
33308         'getsockname'.
33309         * doc/posix-functions/getsockopt.texi: Mention the new module
33310         'getsockopt'.
33311         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
33312         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
33313         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
33314         * doc/posix-functions/send.texi: Mention the new module 'send'.
33315         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
33316         * doc/posix-functions/setsockopt.texi: Mention the new module
33317         'setsockopt'.
33318         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
33319         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
33320         listen, connect, accept.
33321         * modules/select-tests (Depends-on): Likewise.
33322
33323 2008-10-05  Bruno Haible  <bruno@clisp.org>
33324
33325         * lib/winsock.c (strerror): Remove unused #undef.
33326         (rpl_close): Remove unused local variable.
33327
33328         * modules/sys_socket (Depends-on); Add errno.
33329
33330 2008-10-05  Bruno Haible  <bruno@clisp.org>
33331
33332         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
33333         (select): Add a link warning when the 'select' module is not used.
33334         * modules/sys_select (Depends-on): Add link-warning.
33335         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
33336         Suggested by Paolo Bonzini.
33337
33338 2008-10-05  Jim Meyering  <meyering@redhat.com>
33339
33340         bootstrap: check for LT_INIT more portably
33341         * build-aux/bootstrap: Avoid using grep -E, since it's not
33342         portable enough.  Suggestion from Bruno Haible.
33343
33344 2008-10-05  Bruno Haible  <bruno@clisp.org>
33345
33346         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
33347         as being fixed by gnulib.
33348
33349 2008-10-05  Bruno Haible  <bruno@clisp.org>
33350
33351         * modules/select-tests: New file, mostly copied from
33352         modules/sys_select-tests.
33353         * tests/test-select.c: New file, mostly copied from
33354         tests/test-sys_select.c.
33355         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
33356         * modules/sys_select-tests (Depends-on): Remove all dependencies.
33357         (Makefile.am): Remove test_sys_select_LDADD.
33358
33359         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
33360         to an undefined symbol, for an error message.
33361         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
33362         (gl_SYS_SELECT_H_DEFAULTS): New macro.
33363         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
33364         winsock-select.c here.
33365         * modules/sys_select (Files): Remove lib/winsock-select.c.
33366         (Depends-on): Remove alloca.
33367         (Makefile.am): Substitute GNULIB_SELECT.
33368         * modules/select: New file.
33369         * doc/posix-functions/select.texi: Update.
33370
33371 2008-10-05  Bruno Haible  <bruno@clisp.org>
33372
33373         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
33374         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
33375         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
33376         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
33377         getdtablesize.
33378         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
33379         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
33380
33381 2008-10-05  Bruno Haible  <bruno@clisp.org>
33382
33383         * modules/getdtablesize-tests: New file.
33384         * tests/test-getdtablesize.c: New file.
33385
33386         New module 'getdtablesize'.
33387         * lib/unistd.in.h (getdtablesize): New declaration.
33388         * lib/getdtablesize.c: New file.
33389         * m4/getdtablesize.m4: New file.
33390         * modules/getdtablesize: New file.
33391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33392         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
33393         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
33394         HAVE_GETDTABLESIZE.
33395         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
33396
33397 2008-10-05  Bruno Haible  <bruno@clisp.org>
33398
33399         * modules/sched (Makefile.am): Fix typo.
33400         Reported by Simon Josefsson.
33401
33402 2008-10-05  Jim Meyering  <meyering@redhat.com>
33403
33404         bootstrap: check for LT_INIT, too
33405         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
33406         are deprecated.  Suggestion from Ralf Wildenhues.
33407
33408 2008-10-05  Bruno Haible  <bruno@clisp.org>
33409
33410         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
33411         overriding them by ours.
33412         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
33413
33414 2008-10-05  Jim Meyering  <meyering@redhat.com>
33415
33416         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
33417         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
33418         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
33419
33420 2008-10-04  Bruno Haible  <bruno@clisp.org>
33421
33422         * modules/dup2 (License): Change to LGPLv2+.
33423         * modules/sleep (License): Likewise.
33424         * modules/perror (License): Likewise.
33425         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
33426         Blake.
33427         * modules/signal (License): Likewise.
33428         * modules/sigprocmask (License): Likewise.
33429         * modules/raise (License): Change to LGPLv2+, with approval by Jim
33430         Meyering.
33431
33432 2008-10-04  Bruno Haible  <bruno@clisp.org>
33433
33434         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
33435         Reported by Rainer Tammer <tammer@tammer.net>.
33436
33437 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
33438             Bruno Haible  <bruno@clisp.org>
33439
33440         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
33441         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
33442         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
33443
33444 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
33445
33446         filevercmp: new module
33447         * lib/filevercmp.h: New function filevercmp comparing version strings.
33448         * lib/filevercmp.c: Implementation of filevercmp function.
33449         * modules/filevercmp: Module metadata.
33450         * tests/test-filevercmp.c: Unit test for new module.
33451         * modules/filevercmp-tests: Unit test metadata.
33452         * MODULES.html.sh: Add filevercmp module.
33453
33454 2008-10-03  Bruno Haible  <bruno@clisp.org>
33455
33456         * lib/c-ctype.h: Add comment.
33457         Reported by Jim Meyering.
33458
33459 2008-10-02  Bruno Haible  <bruno@clisp.org>
33460
33461         * modules/posix_spawn-internal (Depends-on): Add 'open'.
33462
33463 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
33464
33465         * build-aux/bootstrap: Allow renaming bootstrap, and change the
33466         name of bootstrap.conf accordingly.
33467
33468 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
33469
33470         * build-aux/bootstrap: Install git-merge-changelog configuration
33471         items into .gitconfig if needed.
33472
33473 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
33474
33475         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
33476         git repository, and initialize/update it accordingly.
33477
33478 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
33479
33480         * modules/fsync-tests: New file.
33481         * tests/test-fsync.c: New file.
33482
33483         New module 'fsync'.
33484         * lib/fsync.c: New file.
33485         * m4/fsync.m4: New file.
33486         * modules/fsync: New file.
33487         * lib/unistd.in.h (fsync): New declaration.
33488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
33489         GNULIB_FSYNC and HAVE_FSYNC.
33490         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
33491         * MODULES.html.sh (posix_functions): Add fsync.
33492         * doc/posix-functions/fsync.texi: Mention the new module.
33493
33494 2008-10-02  Jim Meyering  <meyering@redhat.com>
33495
33496         fts.c: sync with similar code from coreutils' remove.c
33497         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
33498         Guard also with "#if defined __linux__", since for now at least,
33499         this code is Linux-kernel-specific.
33500
33501 2008-10-02  Jim Meyering  <meyering@redhat.com>
33502
33503         fts: bug fixes
33504         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
33505         Include <sys/vfs.h>, not <sys/statfs.h>.
33506
33507         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
33508         Include <sys/vfs.h>, not <sys/statfs.h>.
33509
33510 2008-10-01  Bruno Haible  <bruno@clisp.org>
33511
33512         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
33513         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
33514         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
33515         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
33516         * doc/posix-functions/posix_spawnp.texi: Likewise.
33517         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
33518         whether posix_spawn actually works.
33519         * m4/pipe.m4 (gl_PIPE): Likewise.
33520         * modules/execute (Files): Add m4/posix_spawn.m4.
33521         * modules/pipe (Files): Add m4/posix_spawn.m4.
33522         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
33523
33524 2008-10-01  Jim Meyering  <meyering@redhat.com>
33525
33526         remove trailing spaces
33527         * NEWS: Likewise.
33528         * lib/poll.c (poll): Likewise.
33529         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
33530         * lib/winsock.c (rpl_close): Likewise.
33531         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
33532         * modules/yield: Likewise.
33533         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
33534         * tests/test-sys_select.c (connect_to_socket): Likewise.
33535
33536         fts.c: adjust a new interface to be more generally useful
33537         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
33538         (fts_build): Adjust caller.
33539
33540 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33541
33542         * modules/cond-tests: New file.
33543         * tests/test-cond.c: New file.
33544
33545 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33546             Bruno Haible  <bruno@clisp.org>
33547
33548         * modules/cond (Dependencies): Add errno, time.
33549         * lib/glthread/cond.h: Include <time.h>.
33550         (gl_cond_define, gl_cond_define_initialized): Use the same definition
33551         across platforms.
33552
33553 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33554             Bruno Haible  <bruno@clisp.org>
33555
33556         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
33557
33558 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33559             Bruno Haible  <bruno@clisp.org>
33560
33561         * modules/tls-tests (Depends-on): Add thread, yield.
33562         (configure.ac): Remove all checks.
33563         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
33564         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
33565         gl_thread_self): Remove definitions. Include glthread/thread.h and
33566         glthread/yield.h instead.
33567         (test_tls): Pass an additional NULL argument to gl_thread_join.
33568
33569 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33570             Bruno Haible  <bruno@clisp.org>
33571
33572         * modules/lock-tests (Depends-on): Add thread, yield.
33573         (configure.ac): Remove all checks.
33574         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
33575         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
33576         gl_thread_self): Remove definitions. Include glthread/thread.h and
33577         glthread/yield.h instead.
33578         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
33579         additional NULL argument to gl_thread_join.
33580
33581 2008-09-30  Bruno Haible  <bruno@clisp.org>
33582
33583         Fix the Win32 implementation of the 'thread' module.
33584         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
33585         pointer type.
33586         (gl_thread_self): Invoke gl_thread_self_func.
33587         (gl_thread_self_func): New declaration.
33588         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
33589         (do_init_self_key, init_self_key): New functions.
33590         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
33591         Remove some fields.
33592         (running_threads, running_lock): Remove variables.
33593         (get_current_thread_handle): New function.
33594         (gl_thread_self_func, wrapper_func, glthread_create_func,
33595         glthread_join_func, gl_thread_exit_func): Largely rewritten and
33596         simplified.
33597
33598 2008-09-30  Bruno Haible  <bruno@clisp.org>
33599
33600         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
33601         files.
33602
33603 2008-09-30  Jim Meyering  <meyering@redhat.com>
33604
33605         fts.m4: correct the test for statfs.f_type
33606         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
33607         when checking for statfs.f_type.
33608
33609 2008-09-15  Simon Josefsson  <simon@josefsson.org>
33610
33611         tests: avoid some compiler warnings
33612         * tests/test-memchr.c (main): Pass NULL indirectly.
33613         * tests/test-getdate.c (main): Remove unused variable 'ret'.
33614
33615 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
33616
33617         getdate.y: disallow countable dayshifts like "4 yesterday ago"
33618         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
33619         exactly specified dayshifts.
33620         (dayshift): New rule.
33621         (rel): Add dayshift.
33622         (relative_time_table) [tomorrow, yesterday, today, now]:
33623         Use tDAY_SHIFT in place of tDAY_UNIT.
33624         * tests/test-getdate.c: Add tests for now-disallowed countable
33625         dayshifts, e.g., "4 yesterday ago".
33626
33627 2008-09-29  Bruno Haible  <bruno@clisp.org>
33628
33629         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
33630         * tests/test-posix_spawn1.in.sh: Renamed from
33631         tests/test-posix_spawn.in.sh.
33632         * tests/test-posix_spawn2.c: New file.
33633         * tests/test-posix_spawn2.in.sh: New file.
33634         * modules/posix_spawnp-tests (Files): Update.
33635         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
33636
33637 2008-09-29  Bruno Haible  <bruno@clisp.org>
33638
33639         Propagate effects of putenv/setenv/unsetenv to child processes.
33640         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
33641         * lib/pipe.c (create_pipe): Likewise.
33642
33643 2008-09-29  Bruno Haible  <bruno@clisp.org>
33644
33645         Enable use of shell scripts as executables in mingw.
33646         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
33647         run the program as a shell script.
33648         * lib/pipe.c (create_pipe): Likewise.
33649         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
33650         resulting array.
33651
33652 2008-09-29  Eric Blake  <ebb9@byu.net>
33653
33654         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
33655
33656 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
33657
33658         * doc/posix-functions/accept.texi: Update mingw problems.
33659         * doc/posix-functions/bind.texi: Update mingw problems.
33660         * doc/posix-functions/close.texi: Update mingw problems.
33661         * doc/posix-functions/connect.texi: Update mingw problems.
33662         * doc/posix-functions/getpeername.texi: Update mingw problems.
33663         * doc/posix-functions/getsockname.texi: Update mingw problems.
33664         * doc/posix-functions/getsockopt.texi: Update mingw problems.
33665         * doc/posix-functions/ioctl.texi: Update mingw problems.
33666         * doc/posix-functions/listen.texi: Update mingw problems.
33667         * doc/posix-functions/recv.texi: Update mingw problems.
33668         * doc/posix-functions/recvfrom.texi: Update mingw problems.
33669         * doc/posix-functions/select.texi: Update mingw problems.
33670         * doc/posix-functions/send.texi: Update mingw problems.
33671         * doc/posix-functions/sendto.texi: Update mingw problems.
33672         * doc/posix-functions/setsockopt.texi: Update mingw problems.
33673         * doc/posix-functions/socket.texi: Update mingw problems.
33674
33675 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
33676             Bruno Haible  <bruno@clisp.org>
33677
33678         * lib/sys_select.in.h: Include sys/time.h.
33679         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
33680         * modules/sys_select: Depend on sys_time.
33681         * tests/test-sys_select.c: Test that sys/select.h defines struct
33682         timeval fully.
33683
33684 2008-09-29  Bruno Haible  <bruno@clisp.org>
33685
33686         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
33687         * lib/sys_select.in.h: Likewise.
33688
33689 2008-09-29  Bruno Haible  <bruno@clisp.org>
33690
33691         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
33692
33693 2008-09-29  Bruno Haible  <bruno@clisp.org>
33694
33695         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
33696         Set LIBSOCKET instead of augmenting LIBS.
33697         * modules/sockets (Link): New section.
33698         * modules/sockets-tests (test_sockets_LDADD): New variable.
33699         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
33700         * modules/poll-tests (test_poll_LDADD): New variable.
33701         * NEWS: Document the change.
33702
33703 2008-09-29  Bruno Haible  <bruno@clisp.org>
33704
33705         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
33706         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
33707         ARPA_INET_H directly.
33708         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33709
33710 2008-09-28  Bruno Haible  <bruno@clisp.org>
33711
33712         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
33713         from gl_HEADER_SYS_SOCKET.
33714         (gl_HEADER_SYS_SOCKET): Invoke it.
33715         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33716
33717 2008-09-28  Bruno Haible  <bruno@clisp.org>
33718
33719         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
33720         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
33721         Needed on OSF/1 4.0.
33722
33723 2008-09-28  Bruno Haible  <bruno@clisp.org>
33724
33725         Override open more carefully.
33726         * lib/open.c (orig_open): New function.
33727         (rpl_open): Use orig_open instead of open.
33728         * lib/fcntl.in.h: Add special invocation convention.
33729         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
33730         (gl_FUNC_OPEN): Invoke it.
33731
33732         Override freopen more carefully.
33733         * lib/freopen.c (orig_freopen): New function.
33734         (rpl_freopen): Use orig_freopen instead of freopen.
33735         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
33736         (gl_FUNC_FREOPEN): Invoke it.
33737
33738         Override fopen more carefully.
33739         * lib/fopen.c (orig_fopen): New function.
33740         (rpl_fopen): Use orig_fopen instead of fopen.
33741         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
33742         (gl_FUNC_FOPEN): Invoke it.
33743         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
33744
33745 2008-09-28  Bruno Haible  <bruno@clisp.org>
33746
33747         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
33748         SIGPIPE.
33749
33750 2008-09-28  Bruno Haible  <bruno@clisp.org>
33751
33752         * tests/test-sigaction.c (handler, main): Disable the check whether
33753         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
33754         glibc systems with LinuxThreads.
33755
33756 2008-09-28  Bruno Haible  <bruno@clisp.org>
33757
33758         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
33759
33760         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
33761         with AIX xlc.
33762         * lib/fcntl.in.h (open): Likewise.
33763         Reported by Rainer Tammer <tammer@tammer.net>.
33764
33765 2008-09-28  Bruno Haible  <bruno@clisp.org>
33766
33767         * modules/posix_spawnp-tests: New file.
33768         * tests/test-posix_spawn.c: New file.
33769         * tests/test-posix_spawn.in.sh: New file.
33770
33771         New module 'posix_spawnp'.
33772         * modules/posix_spawnp: New file.
33773         * lib/spawnp.c: New file, from GNU libc with modifications.
33774         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
33775
33776         New module 'posix_spawn'.
33777         * modules/posix_spawn: New file.
33778         * lib/spawn.c: New file, from GNU libc with modifications.
33779         * doc/posix-functions/posix_spawn.texi: Mention the new module.
33780
33781         New module 'posix_spawnattr_destroy'.
33782         * modules/posix_spawnattr_destroy: New file.
33783         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
33784         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
33785         module.
33786
33787         New module 'posix_spawnattr_setsigmask'.
33788         * modules/posix_spawnattr_setsigmask: New file.
33789         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
33790         modifications.
33791         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
33792         new module.
33793
33794         New module 'posix_spawnattr_getsigmask'.
33795         * modules/posix_spawnattr_getsigmask: New file.
33796         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
33797         modifications.
33798         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
33799         new module.
33800
33801         New module 'posix_spawnattr_setsigdefault'.
33802         * modules/posix_spawnattr_setsigdefault: New file.
33803         * lib/spawnattr_setdefault.c: New file, from GNU libc with
33804         modifications.
33805         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
33806         new module.
33807
33808         New module 'posix_spawnattr_getsigdefault'.
33809         * modules/posix_spawnattr_getsigdefault: New file.
33810         * lib/spawnattr_getdefault.c: New file, from GNU libc with
33811         modifications.
33812         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
33813         new module.
33814
33815         New module 'posix_spawnattr_setschedpolicy'.
33816         * modules/posix_spawnattr_setschedpolicy: New file.
33817         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
33818         modifications.
33819         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
33820         new module.
33821
33822         New module 'posix_spawnattr_getschedpolicy'.
33823         * modules/posix_spawnattr_getschedpolicy: New file.
33824         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
33825         modifications.
33826         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
33827         new module.
33828
33829         New module 'posix_spawnattr_setschedparam'.
33830         * modules/posix_spawnattr_setschedparam: New file.
33831         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
33832         modifications.
33833         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
33834         new module.
33835
33836         New module 'posix_spawnattr_getschedparam'.
33837         * modules/posix_spawnattr_getschedparam: New file.
33838         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
33839         modifications.
33840         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
33841         new module.
33842
33843         New module 'posix_spawnattr_setpgroup'.
33844         * modules/posix_spawnattr_setpgroup: New file.
33845         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
33846         modifications.
33847         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
33848         module.
33849
33850         New module 'posix_spawnattr_getpgroup'.
33851         * modules/posix_spawnattr_getpgroup: New file.
33852         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
33853         modifications.
33854         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
33855         module.
33856
33857         New module 'posix_spawnattr_setflags'.
33858         * modules/posix_spawnattr_setflags: New file.
33859         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
33860         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
33861         module.
33862
33863         New module 'posix_spawnattr_getflags'.
33864         * modules/posix_spawnattr_getflags: New file.
33865         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
33866         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
33867         module.
33868
33869         New module 'posix_spawnattr_init'.
33870         * modules/posix_spawnattr_init: New file.
33871         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
33872         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
33873         module.
33874
33875         New module 'posix_spawn_file_actions_destroy'.
33876         * modules/posix_spawn_file_actions_destroy: New file.
33877         * lib/spawn_faction_destroy.c: New file, from GNU libc with
33878         modifications.
33879         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
33880         the new module.
33881
33882         New module 'posix_spawn_file_actions_addopen'.
33883         * modules/posix_spawn_file_actions_addopen: New file.
33884         * lib/spawn_faction_addopen.c: New file, from GNU libc with
33885         modifications.
33886         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
33887         the new module.
33888
33889         New module 'posix_spawn_file_actions_adddup2'.
33890         * modules/posix_spawn_file_actions_adddup2: New file.
33891         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
33892         modifications.
33893         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
33894         the new module.
33895
33896         New module 'posix_spawn_file_actions_addclose'.
33897         * modules/posix_spawn_file_actions_addclose: New file.
33898         * lib/spawn_faction_addclose.c: New file, from GNU libc with
33899         modifications.
33900         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
33901         the new module.
33902
33903         New module 'posix_spawn_file_actions_init'.
33904         * modules/posix_spawn_file_actions_init: New file.
33905         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
33906         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
33907         new module.
33908
33909         New module 'posix_spawn-internal'.
33910         * modules/posix_spawn-internal: New file.
33911         * lib/spawn_int.h: New file, from GNU libc with modifications.
33912         * lib/spawni.c: New file, from GNU libc with modifications.
33913         * m4/posix_spawn.m4: New file.
33914
33915         New module 'spawn'.
33916         * modules/spawn: New file.
33917         * lib/spawn.in.h: New file, from GNU libc with modifications.
33918         * m4/spawn_h.m4: New file.
33919         * doc/posix-headers/spawn.texi: Mention the new module.
33920
33921 2008-09-28  Bruno Haible  <bruno@clisp.org>
33922
33923         * modules/sched-tests: New file.
33924         * tests/test-sched.c: New file.
33925
33926         New module 'sched'.
33927         * modules/sched: New file.
33928         * lib/sched.in.h: New file.
33929         * m4/sched_h.m4: New file.
33930         * doc/posix-headers/sched.texi: Mention the new module.
33931
33932 2008-09-27  Eric Blake  <ebb9@byu.net>
33933
33934         Fix previous patch, and tweak references to $0.
33935         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
33936         (func_version, func_gnulib_dir): Don't call this program
33937         gnulib-tool.
33938         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
33939         with using $0 in function.
33940         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
33941         (func_fatal_error): Reuse the name the user invoked us with.
33942
33943 2008-09-27  Bruno Haible  <bruno@clisp.org>
33944
33945         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
33946         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
33947         (gl_ICONV_H): Not here.
33948         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
33949         instead of assigning ICONV_H directly.
33950
33951         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
33952         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
33953         WCHAR_H directly.
33954
33955 2008-09-27  Bruno Haible  <bruno@clisp.org>
33956
33957         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
33958         * modules/arpa_inet (Depends-on): Add link-warning.
33959         (Makefile.am): Insert the definition of GL_LINK-WARNING.
33960         * modules/unistd (Makefile.am): Likewise.
33961
33962 2008-09-26  Bruno Haible  <bruno@clisp.org>
33963
33964         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
33965         variables.
33966         (func_version): Essentially copied from gnulib-tool.
33967         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
33968         func_readlink): Copied from gnulib-tool.
33969
33970 2008-09-26  Bruno Haible  <bruno@clisp.org>
33971
33972         * gnulib-tool (func_version): Change directory to $gnulib_dir before
33973         invoking git-version-gen.
33974
33975 2008-09-26  Bruno Haible  <bruno@clisp.org>
33976
33977         * posix-modules: Update to directory names changed on 2008-01-19.
33978         Remove commas in output before splitting into words. No more need to
33979         avoid 'ftruncate' since 2007-02-19.
33980
33981 2008-09-26  Bruno Haible  <bruno@clisp.org>
33982
33983         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
33984
33985 2008-09-26  Bruno Haible  <bruno@clisp.org>
33986
33987         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
33988         * modules/fwriteerror (Depends-on): Add errno.
33989
33990 2008-09-26  Bruno Haible  <bruno@clisp.org>
33991
33992         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
33993         * tests/test-vc-list-files-cvs.sh: Likewise.
33994
33995 2008-09-26  Bruno Haible  <bruno@clisp.org>
33996
33997         * doc/posix-headers/sys_resource.texi: Reorder items.
33998
33999 2008-09-26  Jim Meyering  <meyering@redhat.com>
34000
34001         fts: tweak inode comparison function
34002         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
34003         inode numbers, as documented.
34004
34005         fts: sort dirent entries on inode number before traversing
34006         This avoids a quadratic, seek-related performance penalty when
34007         operating on a directory containing many entries (measurable at 10k;
34008         3.5 hours at 2 million entries with a cold cache) on certain types
34009         of file systems, including ext3 and ext4, but not tmpfs.
34010         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
34011         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
34012         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
34013         (fs_handles_readdir_ordered_dirents_efficiently): New function.
34014         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
34015         (fts_build): Set the stat.st_ino member from D_INO.
34016         If it is likely to be useful, sort dirent entries on inode number.
34017
34018         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
34019         and the struct statfs.f_type member.
34020         * modules/fts (Depends-on): Add d-ino.
34021
34022 2008-09-26  Bruno Haible  <bruno@clisp.org>
34023
34024         * modules/sigpipe-die (Depends-on): Add sigpipe.
34025
34026         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
34027         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
34028         and GNULIB_STDIO_H_SIGPIPE are set.
34029         * lib/stdio-write.c: New file.
34030         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
34031         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34032         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34033         REPLACE_STDIO_WRITE_FUNCS.
34034         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
34035         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34036         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34037         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
34038         * modules/stdio (Files): Add lib/stdio-write.c.
34039         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
34040         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34041         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34042         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
34043         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
34044         REPLACE_FPRINTF_POSIX.
34045         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
34046         REPLACE_PRINTF_POSIX.
34047         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
34048         REPLACE_VFPRINTF_POSIX.
34049         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
34050         REPLACE_VPRINTF_POSIX.
34051         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
34052         SIGPIPE issue.
34053         * doc/posix-functions/fputc.texi: Likewise.
34054         * doc/posix-functions/fputs.texi: Likewise.
34055         * doc/posix-functions/fwrite.texi: Likewise.
34056         * doc/posix-functions/printf.texi: Likewise.
34057         * doc/posix-functions/putc.texi: Likewise.
34058         * doc/posix-functions/putchar.texi: Likewise.
34059         * doc/posix-functions/puts.texi: Likewise.
34060         * doc/posix-functions/vfprintf.texi: Likewise.
34061         * doc/posix-functions/vprintf.texi: Likewise.
34062
34063         * modules/safe-write (Depends-on): Add write.
34064
34065         * modules/sigpipe-tests: New file.
34066         * tests/test-sigpipe.c: New file.
34067         * tests/test-sigpipe.sh: New file.
34068
34069         * modules/write: New file.
34070         * lib/unistd.in.h: Include <sys/types.h>.
34071         (write): New declaration.
34072         * lib/write.c: New file.
34073         * m4/write.m4: New file.
34074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34075         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
34076         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
34077         GNULIB_WRITE, REPLACE_WRITE.
34078         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
34079         and the SIGPIPE issue.
34080
34081         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
34082         (raise): New declaration.
34083         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
34084         (ext_signal): New function.
34085         (rpl_raise): New function.
34086         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
34087         GNULIB_SIGNAL_H_SIGPIPE.
34088         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
34089         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
34090
34091         * modules/sigpipe: New file.
34092         * m4/sigpipe.m4: New file.
34093
34094 2008-09-25  Derek Price  <derek@ximbiot.com>
34095             Bruno Haible  <bruno@clisp.org>
34096
34097         * gnulib-tool (func_import): Report all license incompatibilities, not
34098         just the first one.
34099
34100 2008-09-25  Bruno Haible  <bruno@clisp.org>
34101
34102         * gnulib-tool (func_import): When computing the edits, consider not
34103         only the Makefile.ams that exist but also those that will be generated.
34104
34105 2008-09-25  Simon Josefsson  <simon@josefsson.org>
34106
34107         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
34108         fixes gnulib-tool --test warning about duplicate dependency.
34109
34110 2008-09-25  Bruno Haible  <bruno@clisp.org>
34111
34112         * gnulib-tool: Don't ask the user to perform edits in the generated
34113         Makefile.ams.
34114         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
34115         apply to the Makefile.am being generated.
34116         (func_emit_tests_Makefile_am): Execute edits that apply to the
34117         Makefile.am being generated.
34118         (func_import): Setup list of Makefile.am edits before emitting the
34119         Makefile.ams, not at the end.
34120         (func_create_testdir): Update.
34121         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34122
34123 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34124
34125         * gnulib-tool (func_import): Store the --tests-base option in the
34126         comment in gnulib-cache.m4.
34127
34128 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
34129
34130         * NEWS: Document increased portability that sys_select now provides.
34131
34132         * lib/sys_select.in.h: Install select wrapper.
34133         * lib/sys_socket.in.h: Use more descriptive name when there is no
34134         select wrapper.
34135         * lib/winsock-select.c: New.
34136         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
34137         Require gl_HEADER_SYS_SOCKET.
34138         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
34139         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
34140         * tests/test-sys_select.c: Add functional tests.
34141
34142 2008-09-24  Eric Blake  <ebb9@byu.net>
34143
34144         open, fopen: close fd leak in last patch
34145         * lib/open.c (rpl_open): Close fd before returning error.
34146         * lib/fopen.c (rpl_fopen): Close fd before returning error.
34147         * doc/posix-functions/open.texi (open): Document that Irix also
34148         has the bug.
34149         * doc/posix-functions/fopen.texi (fopen): Likewise.
34150         Reported by Paolo Bonzini.
34151
34152 2008-09-24  Bruno Haible  <bruno@clisp.org>
34153
34154         Ensure that a filename ending in a slash cannot be used to access a
34155         non-directory.
34156         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
34157         to check whether it's really a directory.
34158         * lib/fopen.c: Include fcntl.h, unistd.h.
34159         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
34160         and fdopen().
34161         * modules/fopen (Depends-on): Add unistd.
34162         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
34163         * tests/test-fopen.c (main): Likewise.
34164         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
34165         * doc/posix-functions/fopen.texi: Likewise.
34166         Reported by Eric Blake.
34167
34168 2008-09-23  Eric Blake  <ebb9@byu.net>
34169
34170         c-stack: avoid compiler optimizations when provoking overflow
34171         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
34172         recursion harder to optimize, to ensure a stack overflow occurs.
34173         * tests/test-c-stack.c (recurse): Likewise.
34174         Borrowed from libsigsegv.
34175
34176         c-stack: work around Irix sigaltstack bug
34177         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
34178         whether sigaltstack uses wrong end of stack_t (copied in part from
34179         libsigsegv).
34180         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
34181         Irix bug, without requiring an over-allocation.
34182         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
34183         bug.
34184
34185         fopen: document mingw bug on directories
34186         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
34187         not allowing a stream visiting a directory, even though reading
34188         from such a stream is not portable.
34189
34190 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
34191
34192         * lib/poll.c: Rewrite.
34193         * modules/poll: Depend on alloca.
34194
34195 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
34196
34197         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
34198         instead define prototypes for a full set of wrappers.  Ensure
34199         that Cygwin does not use the compatibility code, which is only
34200         for MinGW.
34201         * lib/winsock.c: New.
34202         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
34203         * modules/sys_socket: Add lib/winsock.c.
34204
34205         * modules/poll-tests: Add errno and perror.
34206         * tests/test-poll.c: Use ioctl, not ioctlsocket.
34207
34208 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
34209
34210         * tests/test-poll.c: Downgrade minimum needed Winsock version.
34211
34212 2008-09-23  Bruno Haible  <bruno@clisp.org>
34213
34214         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
34215         * doc/glibc-functions/*: Likewise.
34216
34217 2008-09-23  Simon Josefsson  <simon@josefsson.org>
34218
34219         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
34220         success.
34221
34222 2008-09-22  Eric Blake  <ebb9@byu.net>
34223             Bruno Haible  <bruno@clisp.org>
34224
34225         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
34226         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
34227         supply %A but mishandle pseudo-NaN.
34228         Reported by Simon Josefsson.
34229
34230 2008-09-21  Bruno Haible  <bruno@clisp.org>
34231
34232         * tests/test-lock.c (main): Tweak skip message.
34233         * tests/test-tls.c (main): Likewise.
34234
34235 2008-09-21  Bruno Haible  <bruno@clisp.org>
34236
34237         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
34238         whether 'struct sigaction' has sa_sigaction here...
34239         (gl_PREREQ_SIG_HANDLER_H): ... not here.
34240         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
34241
34242 2008-09-21  Bruno Haible  <bruno@clisp.org>
34243
34244         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
34245         section.
34246         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
34247         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
34248         the new section.
34249         (Support for obsolete systems lacking POSIX:2001): New section.
34250         (String handling <string.h>): Move strdup to the new section.
34251         Suggested by Simon Josefsson and Paolo Bonzini.
34252
34253 2008-09-21  Bruno Haible  <bruno@clisp.org>
34254
34255         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
34256         exponents in %e and %g results on 'long double'. Needed for mingw's
34257         improved *printf functions.
34258         * tests/test-vasprintf-posix.c (test_function): Likewise.
34259         * tests/test-snprintf-posix.h (test_function): Likewise.
34260         * tests/test-sprintf-posix.h (test_function): Likewise.
34261         Reported by Eric Blake.
34262
34263 2008-09-21  Bruno Haible  <bruno@clisp.org>
34264
34265         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
34266         * tests/test-sprintf-posix.h (test_function): Likewise.
34267
34268 2008-09-21  Bruno Haible  <bruno@clisp.org>
34269
34270         * modules/getpass (Depends-on): Add strdup-posix.
34271
34272         New module 'strdup-posix'.
34273         * modules/strdup-posix: New file.
34274         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
34275         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
34276         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34277         REPLACE_STRDUP.
34278         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
34279         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
34280         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34281         strdup-posix.
34282
34283         * modules/strdup (Depends-on): Remove malloc-posix.
34284
34285 2008-09-20  Bruno Haible  <bruno@clisp.org>
34286
34287         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
34288         Wildenhues.
34289
34290 2008-09-20  Bruno Haible  <bruno@clisp.org>
34291
34292         Ensure that wint_t gets defined on IRIX 5.3.
34293         * lib/wchar.in.h (wint_t): Define if not defined by the system.
34294         * lib/wctype.in.h (wint_t): Likewise.
34295         (__wctype_wint_t): Remove type.
34296         (isw*): Use wint_t instead of __wctype_wint_t.
34297         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
34298         * modules/wchar (Files): Add m4/wint_t.m4.
34299         (Makefile.am): Substitute HAVE_WINT_T.
34300         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
34301         * tests/test-wctype.c: Check that wint_t is defined.
34302         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
34303         * doc/posix-headers/wctype.texi: Likewise.
34304         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34305
34306 2008-09-18  Bruno Haible  <bruno@clisp.org>
34307
34308         * gnulib-tool (func_exit): Update comment.
34309
34310 2008-09-18  Simon Josefsson  <simon@josefsson.org>
34311
34312         * modules/getaddrinfo (Depends-on): Remove strdup, this module
34313         assumes strdup exists and does not depend on strdup to return
34314         ENOMEM on out of memory conditions.
34315
34316 2008-09-18  Bruno Haible  <bruno@clisp.org>
34317
34318         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
34319         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
34320         digits for the exponent.
34321
34322 2008-09-18  Jim Meyering  <meyering@redhat.com>
34323             Bruno Haible  <bruno@clisp.org>
34324
34325         * lib/vasnprintf.c (decimal_point_char): Define also if
34326         NEED_PRINTF_INFINITE_LONG_DOUBLE.
34327
34328 2008-09-16  Bruno Haible  <bruno@clisp.org>
34329         and Eric Blake  <ebb9@byu.net>
34330
34331         vasnprintf: support Irix 5.3
34332         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
34333         that mishandle long double infinity.
34334         Reported by Tom G. Christensen.
34335
34336 2008-09-16  Bruno Haible  <bruno@clisp.org>
34337
34338         * doc/glibc-functions/scandir.texi: Mention the function is missing on
34339         Solaris 9.
34340         * doc/glibc-functions/alphasort.texi: Likewise.
34341         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
34342
34343 2008-09-16  Jim Meyering  <meyering@redhat.com>
34344
34345         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
34346         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
34347         a umask modification leak out of a subshell.  Otherwise, the
34348         opensolaris /bin/sh would be accepted and thus cause unwarranted
34349         failures in the coreutils test suite.
34350
34351 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
34352
34353         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
34354         to succeed.
34355
34356 2008-09-16  Jim Meyering  <meyering@redhat.com>
34357
34358         avoid spurious test failure when library is built without ACL support
34359         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
34360         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
34361         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
34362         * tests/test-copy-acl.sh: Likewise.
34363
34364 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34365
34366         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
34367         based on character occurrence counts.
34368
34369 2008-09-15  Eric Blake  <ebb9@byu.net>
34370
34371         tests: avoid some compiler warnings
34372         * tests/test-memchr.c (main): Pass NULL indirectly.
34373         * tests/test-closein.c (main): Avoid unused variable.
34374
34375 2008-09-15  Bruno Haible  <bruno@clisp.org>
34376
34377         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
34378         are missing on OpenBSD 4.0 individually.
34379         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34380
34381 2008-09-15  Bruno Haible  <bruno@clisp.org>
34382
34383         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
34384         * doc/posix-functions/strerror.texi: Mention also Cygwin.
34385         * doc/posix-functions/perror.texi: Likewise.
34386         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
34387         is missing.
34388         Reported by Eric Blake.
34389
34390         * lib/errno.in.h: Use replacement values >= 2000.
34391         Reported by Eric Blake.
34392
34393 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34394
34395         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
34396         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
34397         limit.
34398         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
34399         compareseq was aborted.
34400
34401 2008-09-14  Bruno Haible  <bruno@clisp.org>
34402
34403         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
34404         yvec_edit_count.
34405         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
34406         (fstrcmp_bounded): Simplify result computation accordingly.
34407
34408 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34409
34410         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
34411         (fstrcmp): Define in terms of fstrcmp_bounded.
34412         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
34413         lower_bound argument.
34414         Return quickly if the result is certainly < lower_bound.
34415         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
34416
34417 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34418
34419         * lib/diffseq.h (EARLY_ABORT): New macro.
34420         (compareseq): Change return type to bool. Return true when EARLY_ABORT
34421         evaluates to true.
34422
34423 2008-09-14  Bruno Haible  <bruno@clisp.org>
34424
34425         * modules/perror-tests: New file.
34426         * tests/test-perror.sh: New file.
34427         * tests/test-perror.c: New file.
34428
34429         New module 'perror'.
34430         * lib/stdio.in.h (perror): New declaration.
34431         * lib/perror.c: New file.
34432         * m4/perror.m4: New file.
34433         * modules/perror: New file.
34434         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
34435         * doc/posix-functions/perror.texi: Mention the perror module.
34436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
34437         REPLACE_PERROR.
34438         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
34439         REPLACE_PERROR.
34440
34441 2008-09-14  Bruno Haible  <bruno@clisp.org>
34442
34443         * modules/stdio (Makefile.am): Reorder to match the order in
34444         lib/stdio.in.h.
34445         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34446
34447 2008-09-13  Bruno Haible  <bruno@clisp.org>
34448
34449         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
34450
34451 2008-09-13  Bruno Haible  <bruno@clisp.org>
34452
34453         Extend strerror to cover the added errno values.
34454         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
34455         (rpl_strerror): Provide error messages for the added errno values and
34456         for the WSA* values.
34457         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
34458         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
34459         strerror.
34460         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
34461         * modules/strerror (Depends-on): Add errno.
34462         * doc/posix-functions/strerror.texi: Document the change.
34463         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
34464         and EOVERFLOW.
34465
34466 2008-09-13  Bruno Haible  <bruno@clisp.org>
34467
34468         * modules/EOVERFLOW: Remove file.
34469         * m4/eoverflow.m4: Remove file.
34470         * modules/EOVERFLOW-tests: Remove file.
34471         * tests/test-EOVERFLOW.c: Remove file.
34472         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
34473         * modules/ftell (Depends-on): Likewise.
34474         * modules/getdelim (Depends-on): Likewise.
34475         * modules/getugroups (Depends-on): Likewise.
34476         * modules/poll (Depends-on): Likewise.
34477         * modules/snprintf (Depends-on): Likewise.
34478         * modules/sprintf-posix (Depends-on): Likewise.
34479         * modules/vasnprintf (Depends-on): Likewise.
34480         * modules/vasprintf (Depends-on): Likewise.
34481         * modules/vfprintf-posix (Depends-on): Likewise.
34482         * modules/vsnprintf (Depends-on): Likewise.
34483         * modules/vsprintf-posix (Depends-on): Likewise.
34484         * modules/xvasprintf (Depends-on): Likewise.
34485         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34486         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
34487         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
34488         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
34489         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34490         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
34491         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
34492         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
34493         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34494         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
34495         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
34496         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
34497         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34498         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
34499         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
34500         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
34501         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34502         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
34503         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
34504         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
34505         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34506         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
34507         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
34508         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
34509         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
34510         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34511         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
34512         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
34513         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
34514         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
34515         * MODULES.html.sh: Remove EOVERFLOW.
34516         * NEWS: Mention the change.
34517
34518 2008-09-13  Bruno Haible  <bruno@clisp.org>
34519
34520         * modules/errno-tests: New file.
34521         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
34522
34523         * lib/errno.in.h: New file.
34524         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
34525         * modules/errno: New file.
34526         * doc/posix-headers/errno.texi: Update documentation.
34527         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
34528
34529 2008-09-13  Bruno Haible  <bruno@clisp.org>
34530
34531         * tests/test-poll.c: Use #if for native Windows, rather than testing
34532         __MSVCRT__.
34533
34534 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34535             Bruno Haible  <bruno@clisp.org>
34536
34537         * lib/glob.c: Don't include <pwd.h> on native Windows.
34538         (WINDOWS32): New macro.
34539         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
34540
34541 2008-09-13  Bruno Haible  <bruno@clisp.org>
34542
34543         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
34544         (ETIMEDOUT): Remove macro.
34545         (glthread_cond_timedwait_multithreaded): New declaration.
34546         (glthread_cond_timedwait): Use it.
34547         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
34548         (glthread_cond_timedwait_multithreaded): New function.
34549
34550 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
34551
34552         * modules/poll-tests: Do not check for io.h.
34553         * tests/test-poll.c: Check for __MSVCRT__ instead.
34554
34555 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
34556
34557         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
34558         * modules/poll-tests: Add inet_pton, stdbool, sockets.
34559         * tests/test-poll.c: Use them.  Use _pipe on Windows.
34560
34561 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
34562
34563         * modules/poll-tests: New.
34564         * tests/test-poll.c: New.
34565
34566 2008-09-12  Eric Blake  <ebb9@byu.net>
34567
34568         frexp: test for NetBSD failure on -0.0
34569         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
34570         not all, bugs from NetBSD 3.0 have been fixed.
34571         * doc/posix-functions/frexp.texi (frexp): Document bug.
34572         Reported by Thomas Klausner.
34573
34574         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
34575         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
34576         literal -0.0.
34577         Reported by Jonathan C. Patschke <jp@centtech.com>.
34578
34579 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34580
34581         * lib/glthread/cond.h: Use dummy implementation also if
34582         USE_WIN32_THREADS.
34583
34584 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34585
34586         * modules/fnmatch-posix (License): Change to LGPLv2+.
34587         * modules/fnmatch-gnu (License): Likewise.
34588
34589 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34590
34591         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
34592
34593 2008-09-11  Jim Meyering  <meyering@redhat.com>
34594
34595         * users.txt: Add gtk-vnc.
34596
34597 2008-09-08  Simon Josefsson  <simon@josefsson.org>
34598
34599         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
34600         rotate amounts.
34601
34602         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
34603         required for 16-bit and 8-bit rotates.
34604         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
34605         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
34606         UINT8_MAX instead of hard-coded constants.
34607         Suggested by Paul Eggert.
34608
34609 2008-09-07  Bruno Haible  <bruno@clisp.org>
34610
34611         * tests/test-striconveh.c (main): Check behaviour when converting from
34612         UTF-7.
34613
34614         Make striconveh work better with stateful encodings.
34615         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
34616         that iconv does not increment the inptr when returning -1/EINVAL.
34617
34618 2008-09-07  Bruno Haible  <bruno@clisp.org>
34619
34620         * build-aux/config.rpath: Update according to libtool-2.2.6.
34621         * build-aux/config.libpath: Likewise.
34622
34623 2008-09-06  Bruno Haible  <bruno@clisp.org>
34624
34625         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
34626         * lib/freadptr.c (freadptr): Likewise.
34627         * lib/freadseek.c (freadptrinc): Likewise.
34628         Reported by Simon Josefsson.
34629
34630 2008-09-06  Bruno Haible  <bruno@clisp.org>
34631
34632         * modules/freadptr (License): Change to LGPLv2+.
34633         * modules/freadseek (License): Likewise.
34634         Suggested by Eric Blake.
34635
34636         * modules/memchr2 (License): Change to LGPLv2+.
34637         Approved by Eric Blake.
34638
34639 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34640             Bruno Haible  <bruno@clisp.org>
34641
34642         Make gnulib-tool work with native 'sed' on AIX.
34643         * gnulib-tool (sed_noop): New variable.
34644         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
34645         func_add_or_update, func_create_testdir): Use it to initialize sed
34646         script variables.
34647         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34648
34649 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
34650             Bruno Haible  <bruno@clisp.org>
34651
34652         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
34653         also works after #include directives.
34654
34655 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
34656
34657         getdate.y: reject an out-of-range timezone value
34658         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
34659         the range [-24...+24].  When specified with only one or two digits,
34660         * tests/test-getdate.c: Tests for the fix.
34661         * doc/getdate.texi: Document this change.
34662
34663 2008-09-03  Bruno Haible  <bruno@clisp.org>
34664
34665         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
34666
34667 2008-09-02  Simon Josefsson  <simon@josefsson.org>
34668
34669         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
34670         <bruce.korb@gmail.com> with ideas from Ben Pfaff
34671         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
34672         Blake <ebb9@byu.net>.
34673
34674         * tests/test-bitrotate.c: Add more test vectors.
34675
34676 2008-09-02  Eric Blake  <ebb9@byu.net>
34677
34678         vasnprintf-posix: handle large precision via %.*d
34679         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
34680         when handling it ourselves.
34681         * tests/test-vasnprintf-posix.c (test_function): Add test.
34682         * tests/test-snprintf-posix.h (test_function): Likewise.
34683         * tests/test-sprintf-posix.h (test_function): Likewise.
34684         * tests/test-vasprintf-posix.c (test_function): Likewise.
34685         Reported by Alain Guibert.
34686
34687 2008-09-01  Eric Blake  <ebb9@byu.net>
34688
34689         c-stack: make configure-time check more robust
34690         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
34691         successful sigaction call.
34692         Reported by Tom G. Christensen.
34693
34694 2008-09-01  Bruno Haible  <bruno@clisp.org>
34695
34696         New module 'findprog-lgpl'.
34697         * modules/findprog-lgpl: New file.
34698         * lib/findprog-lgpl.c: New file.
34699         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
34700         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
34701         to decide whether to use strdup or xstrdup, concatenated_filename or
34702         xconcatenated_filename.
34703
34704 2008-09-01  Bruno Haible  <bruno@clisp.org>
34705
34706         Split module 'concat-filename' into 'concat-filename' (LGPL) and
34707         'xconcat-filename' (GPL).
34708         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
34709         (License): Change to LGPLv2+.
34710         * modules/xconcat-filename: New file.
34711         * lib/concat-filename.h (concatenated_filename): Change specification.
34712         (xconcatenated_filename): New declaration.
34713         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
34714         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
34715         memory situations.
34716         * lib/xconcat-filename.c: New file.
34717         * NEWS: Mention the change.
34718         * lib/findprog.c: Include concat-filename.h, not filename.h.
34719         (find_in_path): Use xconcatenated_filename instead of
34720         concatenated_filename.
34721         * lib/javacomp.c: Include concat-filename.h, not filename.h.
34722         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
34723         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
34724         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
34725         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
34726         instead of concatenated_filename.
34727         * lib/javaexec.c: Include concat-filename.h, not filename.h.
34728         (execute_java_class): Use xconcatenated_filename instead of
34729         concatenated_filename.
34730         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
34731         * modules/javacomp (Depends-on): Likewise.
34732         * modules/javaexec (Depends-on): Likewise.
34733
34734 2008-09-01  Bruno Haible  <bruno@clisp.org>
34735
34736         Split module 'filename' into 'filename' and 'concat-filename'.
34737         * modules/filename: Keep only lib/filename.h.
34738         (License): Change to LGPLv2+.
34739         * modules/concat-filename: New file, extracted from modules/filename.
34740         * lib/filename.h (concatenated_filename): Remove declaration.
34741         * lib/concat-filename.h: New file, extracted from lib/filename.h.
34742         * lib/concat-filename.c: Include concat-filename.h.
34743         * NEWS: Mention the change.
34744
34745 2008-09-01  Simon Josefsson  <simon@josefsson.org>
34746
34747         * lib/bitrotate.h (rotl8, rotr8): Add.
34748
34749         * modules/bitrotate (configure.ac): Need
34750         AC_REQUIRE([AC_C_INLINE]).
34751         (Description): Mention stdint.h.  Reported by Bruno Haible
34752         <bruno@clisp.org>.
34753
34754         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
34755         Paolo Bonzini <bonzini@gnu.org>.
34756
34757 2008-08-31  Bruno Haible  <bruno@clisp.org>
34758
34759         Assume Solaris specific bi-arch conventions on Solaris systems.
34760         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
34761         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
34762         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
34763         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
34764         like acl_libdirstem.
34765         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
34766         acl_libdirstem.
34767         * NEWS: Mention the change.
34768         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
34769
34770 2008-08-31  Jim Meyering  <meyering@redhat.com>
34771
34772         * lib/strftime.h: Add comments describing the two added arguments.
34773
34774         remove duplicate #include directives
34775         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
34776         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
34777
34778 2008-08-31  Bruno Haible  <bruno@clisp.org>
34779
34780         New module 'sigpipe-die'.
34781         * modules/sigpipe-die: New file.
34782         * lib/sigpipe-die.h: New file.
34783         * lib/sigpipe-die.c: New file.
34784         * MODULES.html.sh (Signal handling): Add sigpipe-die.
34785
34786 2008-08-31  Bruno Haible  <bruno@clisp.org>
34787
34788         Don't override previously installed signal handlers.
34789         * lib/fatal-signal.c (saved_sigactions): New variable.
34790         (uninstall_handlers): Reset the signal to the saved handler, not
34791         to SIG_DFL (except when ignored).
34792         (install_handlers): Save the previous handlers.
34793
34794 2008-08-30  Bruno Haible  <bruno@clisp.org>
34795
34796         * gnulib-tool (func_reset_sigpipe): New function.
34797         (func_get_automake_snippet, func_modules_transitive_closure,
34798         func_import): Invoke it before a join command that reads from stdin,
34799         to avoid "echo: write error: Broken pipe" error messages on stderr.
34800         Reported by Sam Steingold <sds@gnu.org>.
34801
34802 2008-08-30  Bruno Haible  <bruno@clisp.org>
34803
34804         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
34805         Code copied from m4/open.m4.
34806         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
34807         access and the filename ends in a slash. Code copied from lib/open.c.
34808         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
34809         * tests/test-fopen.c (main): Check against bug with trailing slash.
34810
34811 2008-08-29  Bruno Haible  <bruno@clisp.org>
34812
34813         Avoid some "gcc -pedantic" warnings.
34814         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
34815         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
34816         * lib/dirent.in.h: Likewise.
34817         * lib/fcntl.in.h: Likewise.
34818         * lib/float.in.h: Likewise.
34819         * lib/iconv.in.h: Likewise.
34820         * lib/inttypes.in.h: Likewise.
34821         * lib/locale.in.h: Likewise.
34822         * lib/math.in.h: Likewise.
34823         * lib/netinet_in.in.h: Likewise.
34824         * lib/search.in.h: Likewise.
34825         * lib/signal.in.h: Likewise.
34826         * lib/stdarg.in.h: Likewise.
34827         * lib/stdint.in.h: Likewise.
34828         * lib/stdio.in.h: Likewise.
34829         * lib/stdlib.in.h: Likewise.
34830         * lib/string.in.h: Likewise.
34831         * lib/strings.in.h: Likewise.
34832         * lib/sys_select.in.h: Likewise.
34833         * lib/sys_socket.in.h: Likewise.
34834         * lib/sys_stat.in.h: Likewise.
34835         * lib/sys_time.in.h: Likewise.
34836         * lib/sysexits.in.h: Likewise.
34837         * lib/time.in.h: Likewise.
34838         * lib/unistd.in.h: Likewise.
34839         * lib/wchar.in.h: Likewise.
34840         * lib/wctype.in.h: Likewise.
34841         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
34842         * modules/fchdir (Makefile.am): Likewise.
34843         * modules/fcntl (Makefile.am): Likewise.
34844         * modules/float (Makefile.am): Likewise.
34845         * modules/iconv_open (Makefile.am): Likewise.
34846         * modules/inttypes (Makefile.am): Likewise.
34847         * modules/locale (Makefile.am): Likewise.
34848         * modules/math (Makefile.am): Likewise.
34849         * modules/netinet_in (Makefile.am): Likewise.
34850         * modules/search (Makefile.am): Likewise.
34851         * modules/signal (Makefile.am): Likewise.
34852         * modules/stdarg (Makefile.am): Likewise.
34853         * modules/stdint (Makefile.am): Likewise.
34854         * modules/stdio (Makefile.am): Likewise.
34855         * modules/stdlib (Makefile.am): Likewise.
34856         * modules/string (Makefile.am): Likewise.
34857         * modules/strings (Makefile.am): Likewise.
34858         * modules/sys_select (Makefile.am): Likewise.
34859         * modules/sys_socket (Makefile.am): Likewise.
34860         * modules/sys_stat (Makefile.am): Likewise.
34861         * modules/sys_time (Makefile.am): Likewise.
34862         * modules/sysexits (Makefile.am): Likewise.
34863         * modules/time (Makefile.am): Likewise.
34864         * modules/unistd (Makefile.am): Likewise.
34865         * modules/wchar (Makefile.am): Likewise.
34866         * modules/wctype (Makefile.am): Likewise.
34867         Reported by Reuben Thomas <rrt@sc3d.org>.
34868
34869 2008-08-29  Bruno Haible  <bruno@clisp.org>
34870
34871         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
34872         any more.
34873
34874 2008-08-29  Simon Josefsson  <simon@josefsson.org>
34875
34876         * MODULES.html.sh (Misc): Add bitrotate.
34877
34878         * modules/bitrotate: New file.
34879
34880         * lib/bitrotate.h: New file.
34881
34882         * modules/bitrotate-tests: New file.
34883
34884         * tests/test-bitrotate.c: New file.
34885
34886         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
34887         on the bitrotate module.
34888
34889         * lib/arctwo.c: Use new bitrotate module.
34890
34891 2008-08-29  Jim Meyering  <meyering@redhat.com>
34892
34893         bootstrap: merge changes from coreutils
34894         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
34895         of copied files.  Remove a kludge, now that this is fixed.
34896         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
34897         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
34898         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
34899
34900 2008-08-29  Bruno Haible  <bruno@clisp.org>
34901
34902         * MODULES.html.sh: Remove --cvs-urls option.
34903
34904 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
34905
34906         maint.mk: adjust to file name change
34907         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
34908
34909 2008-08-28  Jim Meyering  <meyering@redhat.com>
34910
34911         * modules/getndelim2 (License): Relicense to LGPLv2+.
34912         Approved by Richard Stallman for the version of 1995, and by
34913         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
34914
34915 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
34916
34917         * lib/getdelim.c (flockfile, funlockfile): Make all of them
34918         dummy if one is not available.  Do not touch them if
34919         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
34920         (getc_maybe_unlocked): New.
34921         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
34922
34923 2008-08-26  Eric Blake  <ebb9@byu.net>
34924
34925         doc/INSTALL: resync from autoconf
34926         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
34927         (INSTALL_PRELUDE): Delete; this is done more efficiently by
34928         moving...
34929         * install.texi [!autoconf]: ...here.  Resync from autoconf.
34930         * INSTALL: Regenerate.
34931         * INSTALL.ISO: New file.
34932         * INSTALL.UTF-8: Likewise.
34933
34934 2008-08-26  Jim Meyering  <meyering@redhat.com>
34935
34936         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
34937         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
34938         these definitions conditional, so that they may be overridden, too.
34939
34940 2008-08-26  Bruno Haible  <bruno@clisp.org>
34941
34942         Generate INSTALL file variants with prettier quotes.
34943         * doc/Makefile (INSTALL_PRELUDE): New macro.
34944         (INSTALL): Use it.
34945         (INSTALL.ISO, INSTALL.UTF-8): New rules.
34946
34947 2008-08-26  Bruno Haible  <bruno@clisp.org>
34948
34949         Run makeinfo in an English locale.
34950         * doc/Makefile (MAKEINFO): New variable.
34951
34952 2008-08-26  Bruno Haible  <bruno@clisp.org>
34953
34954         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
34955         Suggested by Eric Blake.
34956
34957 2008-08-25  Bruno Haible  <bruno@clisp.org>
34958
34959         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
34960
34961 2008-08-25  Eric Blake  <ebb9@byu.net>
34962
34963         c-stack: test that stack overflow can be caught
34964         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
34965         that platform allows handling stack overflow; at least OS/2 EMX
34966         has sigaltstack, but crashes before transferring control to
34967         handler on stack overflow.
34968         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
34969         check for HAVE_STACK_OVERFLOW_HANDLING.
34970         Reported by Elbert Pol.
34971
34972 2008-08-25  Bruno Haible  <bruno@clisp.org>
34973
34974         * doc/posix-functions/strftime.texi: Fix description of strftime
34975         module.
34976
34977 2008-08-24  Bruno Haible  <bruno@clisp.org>
34978
34979         * tests/uniwidth/test-uc_width2.c: New file.
34980         * tests/uniwidth/test-uc_width2.sh: New file.
34981         * modules/uniwidth/width-tests (Files): Add the new files.
34982         (TESTS): Add uniwidth/test-uc_width2.sh.
34983         (TESTS_ENVIRONMENT): New variable.
34984         (check_PROGRAMS): Add test-uc_width2.
34985         (test_uc_width2_SOURCES): New variable.
34986
34987         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
34988         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
34989         not 0x00AB.
34990         Reported by Alexander V. Lukyanov <lav@netis.ru>.
34991
34992 2008-08-22  Eric Blake  <ebb9@byu.net>
34993
34994         test-lock, test-tls: mention why a test is skipped
34995         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
34996         skipped.
34997         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
34998
34999         count-one-bits: relax license
35000         * modules/count-one-bits (License): Relicense to LGPLv2+.
35001         Suggested by Ludovic Courtès, approved by Ben Pfaff.
35002
35003 2008-08-22  Andreas Schwab  <schwab@suse.de>
35004
35005         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35006         Remove spurious space in assignment.
35007
35008 2008-08-21  Simon Josefsson  <simon@josefsson.org>
35009
35010         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
35011         Paul Eggert <eggert@CS.UCLA.EDU>.
35012
35013 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
35014
35015         * modules/gettext: Add m4/threadlib.m4.
35016
35017 2008-08-19  Eric Blake  <ebb9@byu.net>
35018
35019         test-c-stack: fix compilation failure on FreeBSD 5.0
35020         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
35021         headers before <sys/resource.h>.
35022         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
35023         the bug.
35024         Reported by Nelson H. F. Beebe.
35025
35026         strverscmp: migrate from "strverscmp.h" to <string.h>
35027         * modules/string (Makefile.am): Add new hooks.
35028         * modules/strverscmp (Files): Remove strverscmp.h.
35029         (Depends-on): Add string.
35030         (configure.ac): Add indicator.
35031         (Include): Mention new header.
35032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
35033         defaults.
35034         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
35035         results.
35036         * lib/strverscmp.h: Delete.
35037         * lib/string.in.h (strverscmp): Provide declaration, when needed.
35038         * tests/test-strverscmp.c (includes): Adjust client.
35039         * lib/check-version.c (includes): Likewise.
35040         * NEWS: Document the change.
35041
35042         strverscmp: add unit test
35043         * modules/strverscmp-tests: New file.
35044         * tests/test-strverscmp.c: Likewise.
35045
35046 2008-08-19  Simon Josefsson  <simon@josefsson.org>
35047
35048         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
35049         regarding Windows crypto stuff, from Mono.
35050
35051 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
35052
35053         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
35054         if present, for intel RND.  Return error on failures.
35055
35056 2008-08-18  Ben Pfaff  <blp@gnu.org>
35057
35058         gitlog-to-changelog: give better diagnostic for failed pipe-open
35059         * build-aux/gitlog-to-changelog: Improve error message: suggest
35060         that the version of Git may be too old.
35061
35062 2008-08-18  Simon Josefsson  <simon@josefsson.org>
35063
35064         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
35065         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
35066
35067 2008-08-18  Bruno Haible  <bruno@clisp.org>
35068
35069         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
35070         pthread_in_use().
35071
35072 2008-08-18  Bruno Haible  <bruno@clisp.org>
35073
35074         * lib/glthread/threadlib.c: Include <pthread.h>.
35075
35076 2008-08-18  Bruno Haible  <bruno@clisp.org>
35077
35078         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
35079         glthread_recursive_lock_* macros.
35080         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
35081         Fix syntax error.
35082
35083 2008-08-18  Bruno Haible  <bruno@clisp.org>
35084
35085         * lib/glthread/thread.c: Avoid forcing a context switch right after
35086         thread creation.
35087
35088 2008-08-17  Bruno Haible  <bruno@clisp.org>
35089
35090         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
35091         * lib/glthread/thread.h: Provide Win32 specific implementation.
35092         * modules/thread (Files): Add lib/glthread/thread.c.
35093         (Depends-on): Add lock.
35094         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
35095
35096 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35097
35098         New module 'yield'.
35099         * modules/yield: New file.
35100         * lib/glthread/yield.h: New file.
35101         * m4/yield.m4: New file.
35102         * MODULES.html.sh (Multithreading): Add yield.
35103
35104 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35105
35106         New module 'thread'.
35107         * modules/thread: New file.
35108         * lib/glthread/thread.h: New file.
35109         * m4/thread.m4: New file.
35110         * MODULES.html.sh (Multithreading): Add thread.
35111
35112 2008-08-17  Bruno Haible  <bruno@clisp.org>
35113
35114         * lib/glthread/lock.h: Include <stdlib.h> always.
35115         * lib/glthread/tls.h: Likewise.
35116         * lib/glthread/cond.h: Likewise.
35117
35118 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35119
35120         New module 'cond'.
35121         * modules/cond: New file.
35122         * lib/glthread/cond.h: New file.
35123         * lib/glthread/cond.c: New file.
35124         * m4/cond.m4: New file.
35125         * MODULES.html.sh (Multithreading): Add cond.
35126
35127 2008-08-16  Eric Blake  <ebb9@byu.net>
35128
35129         c-stack: fix regression on Irix 5.3 from 2008-06-21
35130         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
35131         sa_sigaction...
35132         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
35133         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
35134         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
35135         * modules/signal (Makefile.am): Use the value.
35136         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
35137         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
35138         * doc/posix-headers/signal.texi (signal.h): Document this
35139         portability issue.
35140         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
35141         Reported by Tom G. Christensen.
35142
35143 2008-08-17  Bruno Haible  <bruno@clisp.org>
35144
35145         New module 'threadlib'.
35146         * modules/threadlib: New file.
35147         * lib/glthread/threadlib.c: New file, extracted from
35148         lib/glthread/lock.c.
35149         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
35150         functions.
35151         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
35152         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
35153         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
35154         macros.
35155         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
35156         (gl_DISABLE_THREADS): Remove macro.
35157         * modules/lock (Files): Remove build-aux/config.rpath.
35158         (Depends-on): Remove havelib. Add threadlib.
35159         (configure.ac-early): Remove section.
35160         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
35161         * modules/tls (Depends-on): Remove lock. Add threadlib.
35162         (Link): New section, copied from threadlib.
35163         * MODULES.html.sh (Multithreading): Add threadlib.
35164
35165 2008-08-14  Bruno Haible  <bruno@clisp.org>
35166
35167         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
35168         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
35169         glthread_rwlock_unlock, glthread_rwlock_destroy,
35170         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
35171         glthread_recursive_lock_destroy): Define as macros always.
35172         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
35173         glthread_lock_lock.
35174         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
35175         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
35176         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
35177         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
35178         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
35179         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
35180         (glthread_recursive_lock_lock_func): Renamed from
35181         glthread_recursive_lock_lock.
35182         (glthread_recursive_lock_unlock_func): Renamed from
35183         glthread_recursive_lock_unlock.
35184         (glthread_recursive_lock_destroy_func): Renamed from
35185         glthread_recursive_lock_destroy.
35186
35187 2008-08-14  Bruno Haible  <bruno@clisp.org>
35188
35189         * lib/glthread/lock.h: Renamed from lib/lock.h.
35190         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
35191         * lib/glthread/tls.h: Renamed from lib/tls.h.
35192         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
35193         * lib/fstrcmp.c: Update includes.
35194         * lib/strsignal.c: Update includes.
35195         * modules/lock (Files, Makefile.am): Update.
35196         (Include): Change to "glthread/lock.h".
35197         * modules/tls (Files, Makefile.am): Update.
35198         (Include): Change to "glthread/tls.h".
35199         * tests/test-lock.c: Update includes.
35200         * tests/test-tls.c: Update includes.
35201         * NEWS: Mention the renamed header files.
35202
35203 2008-08-11  Jim Meyering  <meyering@redhat.com>
35204
35205         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
35206
35207 2008-08-11  Eric Blake  <ebb9@byu.net>
35208
35209         test-c-stack: avoid C99-ism
35210         * tests/test-c-stack.c (main): Fix whitespace, move declaration
35211         before statement.
35212         Reported by Alain Guibert.
35213
35214 2008-08-10  Jim Meyering  <meyering@redhat.com>
35215
35216         ensure that return value of uinttostr et al are not ignored
35217         * lib/inttostr.h (__GNUC_PREREQ): Define.
35218         (__attribute_warn_unused_result__): Define.
35219         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
35220
35221 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
35222
35223         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
35224         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
35225
35226 2008-08-07  Jim Meyering  <meyering@redhat.com>
35227
35228         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
35229
35230         * modules/mkstemp (License): Relicense under LGPLv2+.
35231         * modules/tempname (License): Likewise.
35232
35233 2008-08-06  Bruno Haible  <bruno@clisp.org>
35234
35235         * lib/poll.c (poll): Further micro-optimization.
35236
35237 2008-08-06  Jim Meyering  <meyering@redhat.com>
35238
35239         inet_pton.c: use locale-independent tolower
35240         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
35241         (inet_pton6): Use c_tolower rather than tolower.
35242         * modules/inet_pton (Depends-on): Add c-ctype.
35243
35244 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
35245
35246         * lib/poll.c (poll): Avoid division when timeout is 0, cache
35247         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
35248
35249 2008-08-06  Jim Meyering  <meyering@redhat.com>
35250
35251         * modules/inet_pton (License): Relicense under LGPLv2+.
35252
35253 2008-08-03  Bruno Haible  <bruno@clisp.org>
35254
35255         Additional non-aborting API for lock and tls.
35256         * lib/lock.h: Include <errno.h>.
35257         (glthread_lock_init): New macro/function.
35258         (gl_lock_init): Define as wrapper around glthread_lock_init.
35259         (glthread_lock_lock): New macro/function.
35260         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
35261         (glthread_lock_unlock): New macro/function.
35262         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
35263         (glthread_lock_destroy): New macro/function.
35264         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
35265         (glthread_rwlock_init): New macro/function.
35266         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
35267         (glthread_rwlock_rdlock): New macro/function.
35268         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
35269         (glthread_rwlock_wrlock): New macro/function.
35270         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
35271         (glthread_rwlock_unlock): New macro/function.
35272         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
35273         (glthread_rwlock_destroy): New macro/function.
35274         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
35275         (glthread_recursive_lock_init): New macro/function.
35276         (gl_recursive_lock_init): Define as wrapper around
35277         glthread_recursive_lock_init.
35278         (glthread_recursive_lock_lock): New macro/function.
35279         (gl_recursive_lock_lock): Define as wrapper around
35280         glthread_recursive_lock_lock.
35281         (glthread_recursive_lock_unlock): New macro/function.
35282         (gl_recursive_lock_unlock): Define as wrapper around
35283         glthread_recursive_lock_unlock.
35284         (glthread_recursive_lock_destroy): New macro/function.
35285         (gl_recursive_lock_destroy): Define as wrapper around
35286         glthread_recursive_lock_destroy.
35287         (glthread_once): New macro/function.
35288         (gl_once): Define as wrapper around glthread_once.
35289         Update function declarations.
35290         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
35291         glthread_rwlock_init. Return error code.
35292         (glthread_rwlock_rdlock_multithreaded): Renamed from
35293         glthread_rwlock_rdlock. Return error code.
35294         (glthread_rwlock_wrlock_multithreaded): Renamed from
35295         glthread_rwlock_wrlock. Return error code.
35296         (glthread_rwlock_unlock_multithreaded): Renamed from
35297         glthread_rwlock_unlock. Return error code.
35298         (glthread_rwlock_destroy_multithreaded): Renamed from
35299         glthread_rwlock_destroy. Return error code.
35300         (glthread_recursive_lock_init_multithreaded): Renamed from
35301         glthread_recursive_lock_init. Return error code.
35302         (glthread_recursive_lock_lock_multithreaded): Renamed from
35303         glthread_recursive_lock_lock. Return error code.
35304         (glthread_recursive_lock_unlock_multithreaded): Renamed from
35305         glthread_recursive_lock_unlock. Return error code.
35306         (glthread_recursive_lock_destroy_multithreaded): Renamed from
35307         glthread_recursive_lock_destroy. Return error code.
35308         (glthread_once_call): Make static.
35309         (glthread_once_multithreaded): Renamed from glthread_once.
35310         * lib/tls.h: Include <errno.h>.
35311         (glthread_tls_key_init): New macro/function.
35312         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
35313         (glthread_tls_set): New macro/function.
35314         (gl_tls_set): Define as wrapper around glthread_tls_set.
35315         (glthread_tls_key_destroy): New macro/function.
35316         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
35317         Update function declarations.
35318         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
35319         glthread_tls_get.
35320         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35321
35322 2008-08-04  Eric Blake  <ebb9@byu.net>
35323
35324         gnumakefile: use space, not TAB, outside of targets
35325         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
35326
35327 2008-08-02  Jim Meyering  <meyering@redhat.com>
35328
35329         getdate.y: avoid locale-dependent date parsing failure
35330         In Turkish locales, getdate would fail to recognize keywords
35331         containing a lowercase "i".  The solution is not to rely on
35332         locale-sensitive case-conversion.
35333         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
35334         (lookup_word): Use c_toupper in place of toupper.
35335         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
35336         Reported by Vefa Bicakci <bicave@superonline.com> in
35337         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
35338         * modules/getdate (Depends-on): Add c-ctype.
35339
35340 2008-08-02  Bruno Haible  <bruno@clisp.org>
35341
35342         * gnulib-tool (func_import): When updating or creating a .gitignore
35343         file, prepend each added line with a slash, and ignore leading slashes
35344         from the existing lines.
35345         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
35346
35347 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35348
35349         Portability fix for GNU make 3.79.1.
35350         * top/GNUmakefile: Avoid 'else COND', which older GNU make
35351         versions do not understand.
35352
35353 2008-08-01  Bruno Haible  <bruno@clisp.org>
35354
35355         Work around bug of HP-UX 10.20 cc with -0.0 literal.
35356         * tests/test-isnanf.h (zero): New variable.
35357         (main): Avoid literal -0.0f.
35358         * tests/test-isnand.h (zero): New variable.
35359         (main): Avoid literal -0.0.
35360         * tests/test-isnanl.h (zero): New variable.
35361         (main): Avoid literal -0.0L.
35362         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
35363         (test_float, test_double, test_long_double): Avoid literals -0.0f,
35364         -0.0, -0.0L.
35365         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
35366         (test_signbitd): Avoid literal -0.0.
35367         (test_signbitl): Avoid literal -0.0L.
35368         * tests/test-ceilf1.c (zero): New variable.
35369         (main): Avoid literal -0.0f.
35370         * tests/test-ceill.c (zero): New variable.
35371         (main): Avoid literal -0.0L.
35372         * tests/test-floorf1.c (zero): New variable.
35373         (main): Avoid literal -0.0f.
35374         * tests/test-floorl.c (zero): New variable.
35375         (main): Avoid literal -0.0L.
35376         * tests/test-roundf1.c (zero): New variable.
35377         (main): Avoid literal -0.0f.
35378         * tests/test-round1.c (zero): New variable.
35379         (main): Avoid literal -0.0.
35380         * tests/test-roundl.c (zero): New variable.
35381         (main): Avoid literal -0.0L.
35382         * tests/test-truncf1.c (zero): New variable.
35383         (main): Avoid literal -0.0f.
35384         * tests/test-trunc1.c (zero): New variable.
35385         (main): Avoid literal -0.0.
35386         * tests/test-truncl.c (zero): New variable.
35387         (main): Avoid literal -0.0L.
35388         * tests/test-frexp.c (zero): New variable.
35389         (main): Avoid literal -0.0.
35390         * tests/test-frexpl.c (zero): New variable.
35391         (main): Avoid literal -0.0L.
35392         * tests/test-ldexpl.c (zero): New variable.
35393         (main): Avoid literal -0.0L.
35394         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
35395         (zerod, zerol): New variables.
35396         (test_function): Avoid literals -0.0, -0.0L.
35397         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
35398         (zerod, zerol): New variables.
35399         (test_function): Avoid literals -0.0, -0.0L.
35400         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
35401         (zerod, zerol): New variables.
35402         (test_function): Avoid literals -0.0, -0.0L.
35403         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
35404         (zerod, zerol): New variables.
35405         (test_function): Avoid literals -0.0, -0.0L.
35406         * tests/test-strtod.c (zero): New variable.
35407         (main): Avoid literal -0.0.
35408         Reported by Jonathan C. Patschke <jp@centtech.com>.
35409
35410 2008-07-31  Jim Meyering  <meyering@redhat.com>
35411
35412         sha256.h: correct definition of SHA224_DIGEST_SIZE
35413         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
35414         Reported by Paulie Pena IV <paulie4@gmail.com>.
35415         Define as 224 / 8, rather than as a literal.
35416         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
35417         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
35418         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
35419
35420 2008-07-31  Bruno Haible  <bruno@clisp.org>
35421
35422         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
35423         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
35424         Reported by Jonathan Patschke <jp@centtech.com>.
35425
35426 2008-07-31  Bruno Haible  <bruno@clisp.org>
35427
35428         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
35429         Reported by Paolo Bonzini <bonzini@gnu.org>.
35430
35431 2008-07-30  Eric Blake  <ebb9@byu.net>
35432
35433         test-strtod: allow compilation without -lm
35434         * tests/test-strtod.c (main): Avoid link dependence on fabs.
35435         Reported by Dennis Clarke <blastwave@gmail.com>.
35436
35437 2008-07-28  Jim Meyering  <meyering@redhat.com>
35438
35439         bootstrap: work also when there are no .po files in po/
35440         * build-aux/bootstrap (update_po_files): Complete the change
35441         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
35442
35443 2008-07-27  Jim Meyering  <meyering@redhat.com>
35444
35445         * users.txt: Add zile.
35446
35447 2008-07-26  Ben Pfaff  <blp@gnu.org>
35448
35449         Add missing dependencies on new m4/exponent[fdl].m4 files.
35450         * modules/isnanf-nolibm: Add m4/exponentf.m4.
35451         * modules/isnand-nolibm: Add m4/exponentd.m4.
35452         * modules/isnanl-nolibm: Add m4/exponentl.m4.
35453         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
35454         m4/isnan[fdl].m4, because the macros actually used moved.
35455         Reported by Jim Meyering.
35456
35457 2008-07-14  Ben Pfaff  <blp@gnu.org>
35458
35459         Add isinf module.
35460         * lib/isinf.c: New file.
35461         * lib/math.in.h: Define isinf macro if we have decided to replace
35462         it.
35463         * m4/isinf.m4: New file.
35464         * m4/math_h.m4: Initialize and substitute variables for isinf
35465         module.
35466         * modules/isinf: New file.
35467         * modules/isinf-tests: New file.
35468         * modules/math: Add substitutions for new module.
35469         * tests/test-isinf.c: New file.
35470         * doc/posix-functions/isinf.texi: Mention new module.
35471         * MODULES.html.sh: Mention new module.
35472
35473 2008-07-14  Ben Pfaff  <blp@gnu.org>
35474
35475         Factor out some macros for use by additional modules.
35476         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
35477         exponentf.m4.
35478         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
35479         exponentd.m4.
35480         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
35481         file exponentl.m4.
35482         * m4/exponentf.m4: New file.
35483         * m4/exponentd.m4: New file.
35484         * m4/exponentl.m4: New file.
35485         * modules/isnanf: Use new file m4/exponentf.m4.
35486         * modules/isnand: Use new file m4/exponentd.m4.
35487         * modules/isnanl: Use new file m4/exponentl.m4.
35488
35489 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
35490
35491         mktime.c: normalize tp->tm_isdst value to -1/0/1.
35492         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
35493         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
35494         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
35495
35496         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
35497         readlink on platforms without PATH_MAX.
35498
35499 2008-07-21  Eric Blake  <ebb9@byu.net>
35500
35501         Warn, not fail, on stale version.
35502         * top/GNUmakefile (_curr-ver): Tone down previous patch.
35503
35504         Don't allow installation with stale devel version number.
35505         * top/GNUmakefile (_is-install-target): New macro.
35506         (_curr-ver): Forbid installation with stale version number.
35507
35508 2008-07-20  Bruno Haible  <bruno@clisp.org>
35509
35510         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
35511         TESTS_ENVIRONMENT.
35512         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
35513
35514 2008-07-20  Bruno Haible  <bruno@clisp.org>
35515
35516         * lib/c-stack.h (c_stack_action): Add documentation.
35517         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
35518
35519 2008-07-20  Bruno Haible  <bruno@clisp.org>
35520
35521         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
35522         * modules/readlink (License): Likewise.
35523
35524 2008-07-17  Eric Blake  <ebb9@byu.net>
35525
35526         * modules/c-stack (Link): Fix typo.
35527
35528         Make c-stack use libsigsegv, when available.
35529         * modules/c-stack (Depends-on): Add libsigsegv.
35530         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
35531         needed.
35532         * lib/c-stack.c (SIGSTKSZ): Define fallback.
35533         (segv_handler, overflow_handler, c_stack_action)
35534         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
35535         implementation when libsigsegv is available, but only when using
35536         the library is necessary.
35537         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
35538         comment, explaining why XSI check fails on Linux.
35539         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
35540         * tests/test-c-stack2.sh: Tweak skip message.
35541         * NEWS: Document new link-time requirements.
35542
35543 2008-07-16  Eric Blake  <ebb9@byu.net>
35544
35545         c-stack: Expose false positives when not using libsigsegv.
35546         * modules/c-stack-tests (Files): Expand test.
35547         * tests/test-c-stack.c (main): Add means to conditionally trigger
35548         non-overflow SIGSEGV.
35549         * tests/test-c-stack2.sh: New file.
35550
35551 2008-07-14  Bruno Haible  <bruno@clisp.org>
35552
35553         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
35554         Reported by Eric Blake.
35555
35556 2008-07-14  Sam Steingold  <sds@gnu.org>
35557             Bruno Haible  <bruno@clisp.org>
35558
35559         New module libsigsegv.
35560         * modules/libsigsegv: New file.
35561         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
35562         modifications.
35563         * MODULES.html.sh (Signal handling): New section.
35564
35565 2008-07-14  Bruno Haible  <bruno@clisp.org>
35566
35567         * modules/unictype/ctype-* (Description): Add the word "function".
35568         Improves the resulting doc in MODULES.html.
35569
35570 2008-07-12  Ben Pfaff  <blp@gnu.org>
35571
35572         Add longlong module.
35573         * modules/longlong: New file.
35574
35575 2008-07-12  Bruno Haible  <bruno@clisp.org>
35576
35577         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
35578         to empty.
35579
35580 2008-07-10  Ben Pfaff  <blp@gnu.org>
35581
35582         Add isnan module.
35583         * doc/posix-functions/isnan.texi: Mention new module.
35584         * lib/math.in.h: Define isnan macro if we have decided to replace
35585         it.
35586         * m4/isnan.m4: New file.
35587         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
35588         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
35589         also.
35590         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
35591         redundancy.
35592         * m4/math_h.m4: Initialize and substitute variables for isnan
35593         module.
35594         * modules/isnan: New file.
35595         * modules/isnan-tests: New file.
35596         * modules/math: Add substitutions for new module.
35597         * tests/test-isnan.c: New file.
35598         * MODULES.html.sh: Mention new module.
35599
35600 2008-07-10  Ben Pfaff  <blp@gnu.org>
35601
35602         Add isnanf module.
35603         * lib/isnanf.m4: New file.
35604         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
35605         (gl_HAVE_ISNANF_IN_LIBM): New macro.
35606         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
35607         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
35608         * modules/isnanf: New file.
35609         * modules/isnanf-tests: New file.
35610         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
35611         files.
35612         * tests/test-isnanf-nolibm.c: factored most of its contents into
35613         new file tests/test-isnanf.h.
35614         * tests/test-isnanf.h: New file.
35615         * tests/test-isnanf.c: New file.
35616         * MODULES.html.sh: Mention new module.
35617         * doc/glibc-functions/isnanf.texi: Mention new module.
35618
35619 2008-07-10  Ben Pfaff  <blp@gnu.org>
35620
35621         Add isnand module.
35622         * lib/isnand.h: New file.
35623         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
35624         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
35625         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
35626         functionality also.
35627         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
35628         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
35629         (gl_HAVE_ISNAND_IN_LIBM): New macro.
35630         * modules/isnand: New file.
35631         * modules/isnand-tests: New file.
35632         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
35633         files.
35634         * tests/test-isnand-nolibm.c: factored most of its contents into
35635         new file tests/test-isnand.h.
35636         * tests/test-isnand.h: New file.
35637         * tests/test-isnand.c: New file.
35638         * MODULES.html.sh: Mention new module.
35639
35640 2008-07-10  Ben Pfaff  <blp@gnu.org>
35641
35642         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
35643         * lib/isnand.h: Rename lib/isnand-nolibm.h.
35644         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
35645         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
35646         * modules/isnanf-nolibm: Update references to renamed files.
35647         * modules/isnand-nolibm: Likewise.
35648         * modules/isnanf-nolibm-tests: Likewise.
35649         * modules/isnand-nolibm-tests: Likewise.
35650         * lib/frexp.c: Likewise.
35651         * lib/isfinite.c: Likewise.
35652         * lib/signbitd.c: Likewise.
35653         * lib/signbitf.c: Likewise.
35654         * lib/vasnprintf.c: Likewise.
35655         * tests/test-ceilf1.c: Likewise.
35656         * tests/test-ceilf2.c: Likewise.
35657         * tests/test-floorf1.c: Likewise.
35658         * tests/test-floorf2.c: Likewise.
35659         * tests/test-frexp.c: Likewise.
35660         * tests/test-round1.c: Likewise.
35661         * tests/test-round2.c: Likewise.
35662         * tests/test-roundf1.c: Likewise.
35663         * tests/test-strtod.c: Likewise.
35664         * tests/test-trunc1.c: Likewise.
35665         * tests/test-trunc2.c: Likewise.
35666         * tests/test-truncf1.c: Likewise.
35667         * tests/test-truncf2.c: Likewise.
35668         * NEWS: Mention the renamed header files.
35669
35670 2008-07-11  Jim Meyering  <meyering@redhat.com>
35671
35672         vc-list-files: make the last-resort awk code more portable
35673         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
35674         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
35675         does not support it.
35676
35677 2008-07-10  Eric Blake  <ebb9@byu.net>
35678
35679         Work with tar's bootstrap.
35680         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
35681         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
35682         an m4 comment.
35683
35684 2008-07-09  Jim Meyering  <meyering@redhat.com>
35685
35686         posix-shell.m4: fix typo that made this test malfunction
35687         * m4/posix-shell.m4: Remove capitalization in variable name.
35688
35689 2008-07-08  Bruno Haible  <bruno@clisp.org>
35690
35691         * m4/onceonly.m4: Update comments.
35692         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35693
35694 2008-07-04  Jim Meyering  <meyering@redhat.com>
35695
35696         * users.txt: Add vc-dwim.
35697         (bison, coreutils): Use the gitweb URL.
35698
35699 2008-07-03  Jim Meyering  <meyering@redhat.com>
35700
35701         * users.txt: Add libffcall.  From Sam Steingold.
35702
35703 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
35704
35705         getdate.y: do not ignore TZ with relative day, month or year offset
35706         * lib/getdate.y (get_date): Move the tz-handling block to follow the
35707         relative-date-handling, since otherwise, the latter would clobber the
35708         sole output (an updated Start value) of the tz-handling block.
35709         * tests/test-getdate.c: Tests for the fix
35710
35711 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35712
35713         Recognize 'foo_LIBRARIES += libgnu.a'.
35714         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
35715         makefile snippet has already specified an installation location,
35716         also using '+='.
35717
35718 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
35719
35720         getdate.y: factor out common actions
35721         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
35722         Use them in place of open-coded actions.
35723
35724 2008-07-01  Simon Josefsson  <simon@josefsson.org>
35725
35726         Add self-test for getdate module.
35727         * modules/getdate-tests: New file.
35728         * tests/test-getdate.c: New file.
35729
35730 2008-06-29  Bruno Haible  <bruno@clisp.org>
35731
35732         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
35733         .gitignore.
35734         Reported by Sylvain Beucler <beuc@beuc.net>.
35735
35736 2008-06-29  Bruno Haible  <bruno@clisp.org>
35737
35738         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
35739         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
35740
35741 2008-06-29  Bruno Haible  <bruno@clisp.org>
35742
35743         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
35744         EXTRA_DIST.
35745         Reported by Sylvain Beucler <beuc@beuc.net>.
35746
35747 2008-06-26  Jim Meyering  <meyering@redhat.com>
35748
35749         make several modules depend on the "open" module
35750         This provides slightly increased consistency when opening-for-write
35751         the name of a non-directory spelled with a trailing slash.
35752         * modules/chdir-safer: Likewise.
35753         * modules/chown: Likewise.
35754         * modules/clean-temp: Likewise.
35755         * modules/copy-file: Likewise.
35756         * modules/fchdir: Likewise.
35757         * modules/fcntl-safer: Likewise.
35758         * modules/pipe: Likewise.
35759         * modules/utime: Likewise.
35760         Prompted by Eric Blake and Bruno Haible.
35761
35762 2008-06-24  Andreas Schwab  <schwab@suse.de>
35763
35764         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
35765         literals can be used as initializers for global variables.
35766
35767 2008-06-23  Eric Blake  <ebb9@byu.net>
35768
35769         Make gnulib-cache.m4 easier to diff.
35770         * gnulib-tool (func_import): Allow newlines when reading cached
35771         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
35772
35773 2008-06-23  Bruno Haible  <bruno@clisp.org>
35774
35775         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
35776         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
35777         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
35778         m4/signalblocking.m4.
35779         (gl_PREREQ_SIGACTION): Don't invoke it.
35780         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
35781         gl_PREREQ_SIG_HANDLER_H.
35782         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35783         Don't check for sigaction here.
35784
35785 2008-06-23  Bruno Haible  <bruno@clisp.org>
35786
35787         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
35788         (install_handlers): Don't set the SA_RESETHAND flag.
35789
35790 2008-06-23  Bruno Haible  <bruno@clisp.org>
35791
35792         * m4/sigaction.m4: Comment fixes.
35793         * lib/signal.in.h: Likewise.
35794
35795 2008-06-23  Eric Blake  <ebb9@byu.net>
35796
35797         Fix typo.
35798         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
35799
35800         Avoid SA_ namespace.
35801         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
35802         Reported by Ralf Wildenhues.
35803
35804         Avoid test failure due to SA_RESTORER.
35805         * tests/test-sigaction.c (SA_MASK): New macro.
35806         (main): Avoid failing due to extension flags being set.
35807         Reported by Jim Meyering.
35808
35809         Revert use of sig-handler.h in sigprocmask.c.
35810         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
35811         it requires the existence of struct sigaction.
35812         * lib/sigprocmask.c (handler_t): Restore typedef.
35813         (rpl_signal, old_handlers): Use local type.
35814
35815 2008-06-22  Bruno Haible  <bruno@clisp.org>
35816
35817         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
35818         conditionally.
35819         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35820
35821 2008-06-22  Bruno Haible  <bruno@clisp.org>
35822
35823         * doc/posix-functions/siginterrupt.texi: Move note.
35824
35825         * lib/signal.in.h (SA_RESTART): New macro.
35826         * lib/sigaction.c: Update comment.
35827
35828         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
35829
35830         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
35831         (gl_PREREQ_SIGPROCMASK): Invoke it.
35832         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
35833
35834         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
35835
35836         * lib/sigprocmask.c: Update a comment.
35837
35838 2008-06-21  Eric Blake  <ebb9@byu.net>
35839
35840         Use sigaction module rather than signal().
35841         * modules/c-stack (Depends-on): Add sigaction.
35842         * modules/fatal-signal (Depends-on): Likewise.
35843         * modules/nanosleep (Depends-on): Likewise.
35844         * modules/sigprocmask (Files): Add sig-handler.h.
35845         * modules/sigaction (Files): Likewise.
35846         * lib/sig-handler.h (get_handler): New file, suggested by Paul
35847         Eggert.
35848         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
35849         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
35850         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
35851         (init_fatal_signals): Likewise.
35852         * lib/nanosleep.c (rpl_nanosleep): Likewise.
35853         (siginterrupt): Delete fallback.
35854         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
35855         instead.
35856         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
35857         siginterrupt.
35858
35859         New module sigaction, for mingw.
35860         * modules/sigaction: New module...
35861         * modules/sigaction-tests: ...and its test.
35862         * m4/sigaction.m4: New file.
35863         * lib/sigaction.c: Likewise.
35864         * tests/test-sigaction.c: Likewise.
35865         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
35866         * modules/signal (Makefile.am): Likewise.
35867         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
35868         needed.
35869         * doc/posix-headers/signal.texi (signal.h): Mention provided
35870         types.
35871         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
35872         that sigaction is preferable.
35873         * doc/posix-functions/sigaction.texi (sigaction): Mention new
35874         module.
35875         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35876         sigaction.
35877
35878         Improve robustness of sigprocmask by overriding signal.
35879         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
35880         is in use.
35881         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
35882         (SIGKILL, SIGSTOP): Provide fallbacks.
35883         (rpl_signal): Implement.
35884         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
35885         signal can be called inside handlers.
35886
35887         Fix nanosleep module on mingw.
35888         * modules/nanosleep (Depends-on): Add sys_select.
35889         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
35890
35891         Fix licensing of sigprocmask.
35892         * modules/raise (License): Relicense as LGPL.
35893
35894 2008-06-21  Bruno Haible  <bruno@clisp.org>
35895
35896         * lib/propername.c (proper_name_utf8): Don't use the transliterated
35897         result if it contains question marks.
35898         Reported by Michael Geng <linux@michaelgeng.de>.
35899
35900 2008-06-19  Bruno Haible  <bruno@clisp.org>
35901
35902         Fix CVS-ism.
35903         * doc/gnulib.texi: Include updated-stamp.texi.
35904         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
35905         (updated-stamp.texi): New rule.
35906         (gnulib.info): Depend on it.
35907         * doc/.gitignore: Add updated-stamp.texi.
35908         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
35909
35910 2008-06-19  Bruno Haible  <bruno@clisp.org>
35911
35912         * doc/Makefile (gnulib.info): Update and simplify dependencies.
35913         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
35914
35915 2008-06-19  Eric Blake  <ebb9@byu.net>
35916
35917         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
35918         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
35919         Reported by Stepan Kasal.
35920
35921 2008-06-18  Bruno Haible  <bruno@clisp.org>
35922
35923         * lib/fatal-signal.c (init_fatal_signals): Add comment.
35924         Reported by Eric Blake.
35925
35926 2008-06-18  Eric Blake  <ebb9@byu.net>
35927
35928         Work around cygwin 1.5.25 strsignal bug.
35929         * tests/test-strsignal.c: Allow for const char *.
35930         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
35931
35932 2008-06-18  Simon Josefsson  <simon@josefsson.org>
35933
35934         * users.txt: Update URL to article and add author/date
35935         information.
35936
35937 2008-06-17  Bruno Haible  <bruno@clisp.org>
35938
35939         New macro gl_DISABLE_THREADS.
35940         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
35941         if the user did not pass --enable-threads or --disable-threads option.
35942         (gl_DISABLE_THREADS): New macro.
35943         Reported by Eric Blake <ebb9@byu.net>.
35944
35945 2008-06-17  Bruno Haible  <bruno@clisp.org>
35946
35947         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
35948         when the macro ignores it.
35949         Based on a patch by Eric Blake <ebb9@byu.net>.
35950
35951 2008-06-17  Bruno Haible  <bruno@clisp.org>
35952
35953         * modules/tls (License): Change to LGPLv2+.
35954         Reported by Eric Blake.
35955
35956 2008-06-17  Eric Blake  <ebb9@byu.net>
35957
35958         Simplify c-stack prerequisites.
35959         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
35960         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
35961         no longer requires <ucontext.h> to exist.  Optimize setrlimit
35962         check.
35963         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
35964         <sys/resource.h>.
35965
35966         Move c-stack test into testsuite.
35967         * modules/c-stack-tests: New file.
35968         * lib/c-stack.c [DEBUG]: Move test program...
35969         * tests/test-c-stack.c: ...into this new file.  Skip rather than
35970         fail test if sigaltstack is lacking.
35971         * tests/test-c-stack.sh: New driver file.
35972
35973 2008-06-16  Eric Blake  <ebb9@byu.net>
35974
35975         Use raise module consistently.
35976         * modules/fatal-signal (Depends-on): Add raise.
35977         * modules/sigprocmask (Depends-on): Likewise.
35978         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
35979         * lib/sigprocmask.c (sigprocmask): Likewise.
35980         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35981         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
35982
35983         Fix compliance bug in sigpending.
35984         * lib/sigprocmask.c (sigpending): Return pending array via
35985         parameter, not return value.
35986
35987 2008-06-14  Eric Blake  <ebb9@byu.net>
35988
35989         Improve obstack-printf test code.
35990         * tests/test-obstack-printf.c (test_function): Fix comment, and
35991         simplify usage of obstack_* in macros.  Add a test for coverage.
35992         Reported by Bruno Haible.
35993
35994 2008-06-14  Bruno Haible  <bruno@clisp.org>
35995
35996         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
35997         array size as a constant, not as a const variable.
35998         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
35999         AC_USE_SYSTEM_EXTENSIONS.
36000         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36001         Test whether the obstack_printf function actually exists.
36002         * modules/obstack-printf (Depends-on): Add extensions.
36003         (Include): Remove obstack.h.
36004         * modules/obstack-printf-posix (Depends-on): Add extensions.
36005         (Include): Remove obstack.h.
36006
36007 2008-06-13  Eric Blake  <ebb9@byu.net>
36008
36009         Add obstack-printf and obstack-printf-posix modules.
36010         * modules/obstack-printf: New file.
36011         * modules/obstack-printf-posix: Likewise.
36012         * MODULES.html.sh (Misc): Mention them.
36013         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36014         Likewise.
36015         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36016         Likewise.
36017         * modules/stdio (Makefile.am): Accomodate new modules.
36018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36019         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
36020         Declare.
36021         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
36022         functions.
36023         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
36024         (gl_REPLACE_OBSTACK_PRINTF): New macros
36025         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
36026         * tests/test-obstack-printf.c: New file.
36027         * modules/obstack-printf-tests: Likewise.
36028         * modules/obstack-printf-posix-tests: Likewise.
36029
36030 2008-06-11  Bruno Haible  <bruno@clisp.org>
36031
36032         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
36033         * lib/open.c: Include errno.h.
36034         (open): Fail when attempting to write to a file that has a trailing
36035         slash.
36036         * tests/test-open.c (main): Test against trailing slash bug.
36037         * doc/posix-functions/open.texi: Mention the trailing slash bug.
36038
36039 2008-06-10  Bruno Haible  <bruno@clisp.org>
36040
36041         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
36042         for $? to work inside the trap command, with various /bin/sh-s.
36043         * tests/test-vc-list-files-cvs.sh: Likewise.
36044
36045 2008-06-10  Bruno Haible  <bruno@clisp.org>
36046
36047         * lib/acl-internal.h: Don't include gettext.h here.
36048         * lib/set-mode-acl.c: Include gettext.h here.
36049         * lib/copy-acl.c: Likewise.
36050
36051 2008-06-10  Bruno Haible  <bruno@clisp.org>
36052
36053         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
36054         * lib/wait-process.c (wait_subprocess): Likewise.
36055         * lib/execute.h (execute): Add termsigp argument.
36056         * lib/execute.c (execute): Likewise.
36057         * lib/csharpcomp.c (compile_csharp_using_pnet,
36058         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
36059         * lib/csharpexec.c (execute_csharp_using_pnet,
36060         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
36061         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
36062         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
36063         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
36064         is_jikes_present): Update.
36065         * lib/javaexec.c (execute_java_class): Update.
36066         * lib/javaversion.c (execute_and_read_line): Update.
36067         * NEWS: Document the changes.
36068         Reported by Eric Blake.
36069
36070 2008-06-10  Eric Blake  <ebb9@byu.net>
36071
36072         Add missing include.
36073         * tests/test-strstr.c (includes): Add <signal.h>.
36074         * tests/test-strcasestr.c (includes): Likewise.
36075         * tests/test-memmem.c (includes): Likewise.
36076
36077 2008-06-10  Bruno Haible  <bruno@clisp.org>
36078
36079         * lib/wait-process.c (wait_subprocess): Add an assertion.
36080
36081 2008-06-10  Bruno Haible  <bruno@clisp.org>
36082
36083         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
36084
36085 2008-06-10  Bruno Haible  <bruno@clisp.org>
36086
36087         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
36088         using alarm().
36089         * tests/test-strcasestr.c (main): Likewise.
36090         * tests/test-strstr.c (main): Likewise.
36091
36092 2008-06-09  Bruno Haible  <bruno@clisp.org>
36093
36094         Work around the Solaris 10 ACE ACLs ABI change.
36095         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
36096         declare if ACL_NO_TRIVIAL is present.
36097         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
36098         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
36099         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
36100         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
36101         define if ACL_NO_TRIVIAL is present.
36102         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
36103         and use the current ABI.
36104         (file_has_acl): Use same #if condition as elsewhere.
36105         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
36106         in use, and use the current ABI.
36107         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
36108         Reported by Jim Meyering.
36109
36110 2008-06-09  Eric Blake  <ebb9@byu.net>
36111
36112         Work around environments that (stupidly) ignore SIGALRM.
36113         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
36114         before using alarm().
36115         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36116         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
36117         Reported by Ian Beckwith <ianb@erislabs.net>.
36118
36119         Produce autobuild blurb earlier in log.
36120         * modules/autobuild (configure.ac-early): Move AB_INIT here.
36121
36122 2008-06-09  Jim Meyering  <meyering@redhat.com>
36123         and OndÅ™ej Vašík  <ovasik@redhat.com>
36124
36125         utimens.c: correct kernel bug work-around
36126         OndÅ™ej Vašík found that the invalid return value of 280 indicates
36127         failure, not success, and the kernel bug we're trying to work
36128         around affects not just the utimensat call, but also the fallback
36129         futimens call.
36130         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
36131         not success.
36132         [HAVE_FUTIMENS]: Use the same work-around, here.
36133
36134 2008-06-09  Jim Meyering  <meyering@redhat.com>
36135
36136         add more guards around definition of ACE_-related code
36137         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
36138         ALLOW and ACE_OWNER are also defined.
36139
36140 2008-06-08  Bruno Haible  <bruno@clisp.org>
36141
36142         * lib/acl-internal.h: Add me as co-author.
36143         * lib/file-has-acl.c: Likewise.
36144         * lib/set-mode-acl.c: Likewise.
36145         * lib/copy-acl.c: Likewise.
36146
36147 2008-06-08  Bruno Haible  <bruno@clisp.org>
36148
36149         Add support for AIX ACLs.
36150         * lib/acl-internal.h (acl_nontrivial): New declaration.
36151         * lib/file-has-acl.c (acl_nontrivial): New function.
36152         (file_has_acl): Add implementation using AIX 4 ACL API.
36153         * lib/set-mode-acl.c (qset_acl): Likewise.
36154         * lib/copy-acl.c (qcopy_acl): Likewise.
36155
36156 2008-06-08  Bruno Haible  <bruno@clisp.org>
36157
36158         Add support for HP-UX ACLs.
36159         * lib/acl-internal.h (acl_nontrivial): New declaration.
36160         * lib/file-has-acl.c (acl_nontrivial): New function.
36161         (file_has_acl): Add implementation using HP-UX 11 ACL API.
36162         * lib/set-mode-acl.c (qset_acl): Likewise.
36163         * lib/copy-acl.c (qcopy_acl): Likewise.
36164
36165 2008-06-08  Bruno Haible  <bruno@clisp.org>
36166
36167         Add support for Cygwin ACLs.
36168         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
36169         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
36170         the chmod_or_fchmod call.
36171         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
36172
36173 2008-06-08  Bruno Haible  <bruno@clisp.org>
36174
36175         Fix bug with setuid modes in Solaris 10+ code.
36176         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
36177         succeeded, when the mode contains some special bits.
36178
36179 2008-06-08  Bruno Haible  <bruno@clisp.org>
36180
36181         Add support for Solaris 7..10 ACLs.
36182         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
36183         declarations.
36184         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
36185         functions.
36186         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
36187         * lib/set-mode-acl.c (qset_acl): Likewise.
36188         * lib/copy-acl.c (qcopy_acl): Likewise.
36189
36190 2008-06-08  Bruno Haible  <bruno@clisp.org>
36191
36192         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
36193         declaration.
36194         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
36195         (acl_access_nontrivial): Remove MacOS X case.
36196         (file_has_acl): Use acl_extended_nontrivial.
36197         * lib/copy-acl.c (qcopy_acl): Likewise.
36198
36199 2008-06-08  Bruno Haible  <bruno@clisp.org>
36200
36201         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
36202
36203 2008-06-08  Jim Meyering  <meyering@redhat.com>
36204
36205         * modules/acl (Maintainer): Add Bruno Haible.
36206
36207 2008-06-07  Bruno Haible  <bruno@clisp.org>
36208
36209         Improve support for Tru64 ACLs.
36210         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
36211         ACL on OSF/1.
36212
36213 2008-06-07  Bruno Haible  <bruno@clisp.org>
36214
36215         Add support for MacOS X ACLs.
36216         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
36217         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
36218         * lib/set-mode-acl.c (qset_acl): Likewise.
36219         * lib/copy-acl.c (qcopy_acl): Likewise.
36220
36221 2008-06-07  Bruno Haible  <bruno@clisp.org>
36222
36223         Fix memory leak introduced on 2008-05-22.
36224         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
36225         use.
36226
36227 2008-06-07  Bruno Haible  <bruno@clisp.org>
36228
36229         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
36230         to construct an empty ACL.
36231
36232 2008-06-07  Bruno Haible  <bruno@clisp.org>
36233
36234         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
36235         precisely.
36236         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
36237
36238 2008-06-07  Bruno Haible  <bruno@clisp.org>
36239
36240         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
36241         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
36242
36243 2008-06-07  Bruno Haible  <bruno@clisp.org>
36244
36245         * doc/posix-functions/_setjmp.texi: Explain the use of this function
36246         regardless of POSIX.
36247         * doc/posix-functions/_longjmp.texi: Likewise.
36248         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
36249         SystemV platform in this case.
36250
36251 2008-06-06  Eric Blake  <ebb9@byu.net>
36252
36253         Document abort() bugs.
36254         * doc/posix-functions/abort.texi (abort): Mention anomalies.
36255
36256         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
36257         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
36258         sigsetjmp.
36259         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
36260         siglongjmp, but only as a macro.
36261         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
36262         is obsolete.
36263         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
36264
36265         Tweak documentation to cover cygwin argz bugs.
36266         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
36267         argz bug fix; no code change needed since no cygwin releases
36268         occurred between the last fix and the bug being tested.
36269         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
36270         module and recently fixed cygwin bugs.
36271         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
36272         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
36273         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
36274         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
36275         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
36276         Likewise.
36277         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
36278         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
36279         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
36280         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
36281         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
36282         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
36283         Likewise.
36284
36285         Avoid gcc warning on cygwin.
36286         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
36287         !ACL_NO_TRIVIAL]: Avoid unused variable.
36288
36289 2008-06-05  Eric Blake  <ebb9@byu.net>
36290
36291         Be tolerant of UNKNOWN version in gnulib-tool test dir.
36292         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
36293         git-version-gen fails to come up with a version.
36294         Reported by Simon Josefsson.
36295
36296 2008-06-05  Jim Meyering  <meyering@redhat.com>
36297             Paul Eggert  <eggert@cs.ucla.edu>
36298
36299         utimens.c: work around a probable Linux kernel bug
36300         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
36301         appears to be a kernel bug that causes utimensat to return 280
36302         instead of 0, indicating success.
36303
36304 2008-06-04  Bruno Haible  <bruno@clisp.org>
36305
36306         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
36307         2008-06-01 commit.
36308
36309 2008-06-04  Bruno Haible  <bruno@clisp.org>
36310
36311         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
36312         * lib/file-has-acl.c (acl_access_nontrivial): New function.
36313         (file_has_acl): Use it. Save errno afterwards.
36314         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
36315
36316 2008-06-03  Bruno Haible  <bruno@clisp.org>
36317
36318         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
36319         draft code. Simplify #ifs.
36320         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
36321         Put Solaris code after POSIX-draft code. Fix comments regarding
36322         Solaris 10, HP-UX. Mention Cygwin.
36323         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
36324
36325 2008-06-03  Eric Blake  <ebb9@byu.net>
36326
36327         Provide fallback for older kernels.
36328         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
36329         Provide runtime fallback if kernel lacks support.
36330         Reported by Mike Frysinger.
36331
36332 2008-06-02  Bruno Haible  <bruno@clisp.org>
36333
36334         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
36335         it exists.
36336
36337 2008-06-02  Bruno Haible  <bruno@clisp.org>
36338
36339         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
36340         * lib/copy-acl.c (qcopy_acl): Update comment.
36341
36342 2008-06-02  Bruno Haible  <bruno@clisp.org>
36343
36344         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
36345         like ACL APIs.
36346
36347 2008-06-02  Bruno Haible  <bruno@clisp.org>
36348
36349         * tests/test-file-has-acl.sh: Use different code for Cygwin.
36350         * tests/test-set-mode-acl.sh: Likewise.
36351         * tests/test-copy-acl.sh: Likewise.
36352         * tests/test-copy-file.sh: Likewise.
36353
36354 2008-06-02  Bruno Haible  <bruno@clisp.org>
36355
36356         * tests/test-file-has-acl.sh: Remove unused code.
36357
36358 2008-06-01  Bruno Haible  <bruno@clisp.org>
36359
36360         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
36361         (copy_acl): Just a wrapper around qcopy_acl that emits the error
36362         messages.
36363         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
36364
36365 2008-06-01  Bruno Haible  <bruno@clisp.org>
36366
36367         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
36368         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
36369         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
36370         APIs.
36371         * modules/acl-tests (configure.ac): Remove tests now contained in
36372         m4/acl.m4.
36373
36374 2008-06-02  Jim Meyering  <meyering@redhat.com>
36375
36376         announce-gen: use a better key-server host name
36377         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
36378         it may be more consistently reliable.  Suggested by Werner Koch
36379         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
36380
36381 2008-06-01  Bruno Haible  <bruno@clisp.org>
36382
36383         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
36384         Reported by Voroskoi Andras <voroskoi@gmail.com>.
36385
36386 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
36387
36388         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
36389
36390 2008-06-01  Bruno Haible  <bruno@clisp.org>
36391
36392         New ACL tests.
36393         * tests/test-file-has-acl.sh: New file.
36394         * tests/test-file-has-acl.c: New file.
36395         * tests/test-set-mode-acl.sh: New file.
36396         * tests/test-set-mode-acl.c: New file.
36397         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
36398         * tests/test-copy-acl.c: New file.
36399         * modules/acl-tests: New file, based on modules/copy-file-tests.
36400         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
36401         (Depends-on): Add acl-tests.
36402         (configure.ac): Remove checks.
36403         (Makefile.am): Don't create test-sameacls program here any more.
36404
36405 2008-06-01  Bruno Haible  <bruno@clisp.org>
36406
36407         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
36408         * tests/test-sameacls.c: Include progname.h.
36409         (main): Invoke set_program_name. Portability fixes for MacOS X,
36410         Solaris, HP-UX.
36411
36412 2008-06-01  Bruno Haible  <bruno@clisp.org>
36413
36414         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
36415         function.
36416         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
36417
36418 2008-06-01  Bruno Haible  <bruno@clisp.org>
36419
36420         * modules/rpmatch (Depends-on): Add strdup.
36421
36422 2008-06-01  Bruno Haible  <bruno@clisp.org>
36423
36424         * lib/pipe.c: Include unistd-safer.h.
36425         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
36426         * modules/pipe (Depends-on): Add unistd-safer.
36427
36428 2008-05-30  Simon Josefsson  <simon@josefsson.org>
36429
36430         * modules/autobuild (configure.ac): Call AB_INIT.
36431
36432 2008-05-30  Simon Josefsson  <simon@josefsson.org>
36433
36434         * tests/test-getaddrinfo.c: Don't print debug messages by default.
36435         Suggested by Bruno Haible <bruno@clisp.org>.
36436
36437 2008-05-30  Simon Josefsson  <simon@josefsson.org>
36438
36439         * tests/test-base64.c: Cast size_t to unsigned long when invoking
36440         printf.  Use %lu instead of %d.  Reported by Bruno Haible
36441         <bruno@clisp.org>.
36442
36443 2008-05-29  Eric Blake  <ebb9@byu.net>
36444
36445         Prefer new POSIX 200x interfaces over futimesat.
36446         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
36447         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
36448         when available.
36449         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
36450
36451 2008-05-28  Bruno Haible  <bruno@clisp.org>
36452
36453         * modules/stpcpy (License): Change to LGPLv2+.
36454         Requested by David Lutterkort <dlutter@redhat.com>.
36455
36456 2008-05-27  Bruno Haible  <bruno@clisp.org>
36457
36458         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
36459         current mingw.
36460         Reported by Jose E. Marchesi <jemarch@gnu.org>.
36461
36462 2008-05-27  Bruno Haible  <bruno@clisp.org>
36463
36464         * modules/iconv_open (Link): New section, from module 'iconv'.
36465         * modules/striconv (Link): Likewise.
36466         * modules/striconveh (Link): Likewise.
36467         * modules/xstriconv (Link): Likewise.
36468         * modules/unicodeio (Link): Likewise.
36469         * modules/propername (Link): Likewise.
36470         Reported by Jim Meyering.
36471
36472 2008-05-26  Jim Meyering  <meyering@redhat.com>
36473
36474         sha256: do not artificially restrict buffer length to be < 2^32
36475         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
36476         uint32_t to size_t.
36477         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
36478         to match.
36479
36480         avoid unaligned access errors, e.g., on sparc
36481         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
36482         direct access through a possibly-unaligned uint64* pointer.
36483         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
36484         direct access through a possibly-unaligned uint32* pointer.
36485         Prompted by this patch from Tom "spot" Callaway:
36486         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
36487
36488         sha512.c: fix typo in comment
36489         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
36490
36491 2008-05-25  Bruno Haible  <bruno@clisp.org>
36492
36493         * lib/set-mode-acl.c: Renamed from lib/acl.c.
36494         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
36495         (Makefile.am): Update lib_SOURCES.
36496
36497 2008-05-25  Bruno Haible  <bruno@clisp.org>
36498
36499         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
36500
36501 2008-05-25  Jim Meyering  <meyering@redhat.com>
36502
36503         useless-if-before-free: freed expr may have white-space differences
36504         * build-aux/useless-if-before-free: Recognize cases in which the
36505         freed expression differs from the tested one in embedded white
36506         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
36507         $1 was used, so we can't make any regexp shy.  Improved tests now
36508         detect this.
36509
36510         useless-if-before-free: accept white space in the expression.
36511         * build-aux/useless-if-before-free: For now, any white space
36512         in the expression must be identical in the free argument.
36513
36514         useless-if-before-free: efficiency tweak
36515         * build-aux/useless-if-before-free: Make the expression-matching
36516         regexp "shy".
36517         Make the *outer* regexp shy, not the expr-matching one.
36518
36519         update code-in-comment to accept cast of free arg
36520         * build-aux/useless-if-before-free: Update regexp.
36521
36522 2008-05-25  Bruno Haible  <bruno@clisp.org>
36523
36524         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
36525         * modules/copy-file-tests (Files, Makefile.am): Update.
36526         * tests/test-copy-file.c (func_test_copy): Update.
36527
36528 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
36529
36530         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
36531
36532 2008-05-23  Bruno Haible  <bruno@clisp.org>
36533
36534         Improve support for ACLs on OSF/1.
36535         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
36536         Remove fallback for unknown flavors of ACLs.
36537
36538 2008-05-22  Bruno Haible  <bruno@clisp.org>
36539
36540         Add support for ACLs on OSF/1.
36541         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
36542         replacements.
36543         (acl_free_text): New macro fallback.
36544         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
36545         acl_free.
36546         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
36547         acl_free_text function. Require AC_C_INLINE.
36548
36549 2008-05-22  Bruno Haible  <bruno@clisp.org>
36550
36551         Make copy_acl work on MacOS X 10.5.
36552         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
36553         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
36554         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
36555         If MODE_INSIDE_ACL, don't assume that every system has the same text
36556         representation for ACLs as FreeBSD.
36557         * lib/copy-acl.c (copy_acl): Add support for platforms with
36558         !MODE_INSIDE_ACL.
36559         * lib/file-has-acl.c (file_has_acl): Likewise.
36560         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
36561         FreeBSD, MacOS X, or IRIX, respectively.
36562
36563 2008-05-22  Bruno Haible  <bruno@clisp.org>
36564
36565         * lib/acl.h: Don't include <sys/acl.h>.
36566         (GETACLCNT): Move fallback to lib/acl-internal.h.
36567         * lib/acl-internal.h: Include <sys/acl.h> here.
36568         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
36569
36570 2008-05-22  Bruno Haible  <bruno@clisp.org>
36571
36572         Split off copy_acl function to separate file.
36573         * lib/copy-acl.c: New file, extracted from lib/acl.c.
36574         * lib/acl.c (copy_acl): Moved function to separate file.
36575         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
36576         * modules/acl (Files): Add lib/copy-acl.c.
36577         (Makefiles.am): Augment lib_SOURCES.
36578
36579 2008-05-22  Bruno Haible  <bruno@clisp.org>
36580
36581         * modules/copy-file-tests: New file.
36582         * tests/test-copy-file.sh: New file.
36583         * tests/test-copy-file.c: New file.
36584         * tests/test-copy-file-sameacls.c: New file.
36585
36586 2008-05-22  Eric Blake  <ebb9@byu.net>
36587
36588         Avoid gcc warning.
36589         * tests/test-memcmp.c (main): Pass NULL indirectly.
36590
36591 2008-05-21  Bruno Haible  <bruno@clisp.org>
36592
36593         Add reference doc about ACLs.
36594         * doc/acl-resources.txt: New file.
36595         * doc/acl-cygwin.txt: New file.
36596
36597 2008-05-21  Bruno Haible  <bruno@clisp.org>
36598
36599         Avoid one more warning from gcc.
36600         * lib/vasnprintf.c (IF_LINT): Update comments.
36601         (VASNPRINTF): Use it also for the 'prefix' array initializer.
36602
36603 2008-05-21  Jim Meyering  <meyering@redhat.com>
36604
36605         avoid a warning from gcc
36606         * lib/vasnprintf.c (IF_LINT): Define.
36607         (scale10_round_decimal_long_double):
36608         Use it to avoid a "may be used uninitialized" warning.
36609         (scale10_round_decimal_double): Likewise.
36610
36611 2008-05-21  Simon Josefsson  <simon@josefsson.org>
36612
36613         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
36614         declared.
36615
36616 2008-05-20  Bruno Haible  <bruno@clisp.org>
36617
36618         * tests/test-memcmp.c (main): Test also the sign of the result. Test
36619         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
36620
36621 2008-05-20  Simon Josefsson  <simon@josefsson.org>
36622
36623         * modules/memcmp-tests: New file.
36624         * tests/test-memcmp.c: New file.
36625
36626 2008-05-19  Bruno Haible  <bruno@clisp.org>
36627
36628         * modules/propername (Notice, configure.ac): Put quoted "..." into
36629         --keyword option.
36630         * lib/propername.h: Update comments accordingly.
36631         Reported by Eric Blake.
36632
36633 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
36634
36635         * modules/getpass-gnu (Depends-on): Add fseeko.
36636
36637 2008-05-19  Simon Josefsson  <simon@josefsson.org>
36638
36639         * modules/base64-tests: New file.
36640
36641 2008-05-19  Bo Borgerson <gigabo@gmail.com>
36642
36643         * lib/base64.c (base64_decode_ctx): If a decode context structure
36644         was passed in use it to ignore newlines.  If a context structure
36645         was _not_ passed in, continue to treat newlines as garbage (this
36646         is the historical behavior).  Formerly base64_decode.
36647         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
36648         takes a decode context structure.
36649         * lib/base64.h (base64_decode): Macro for four-argument calls.
36650         (base64_decode_alloc): Likewise.
36651         * lib/base64.c (base64_decode_ctx): If a decode context structure
36652         was passed in use it to ignore newlines.  If a context structure
36653         was _not_ passed in, continue to treat newlines as garbage (this
36654         is the historical behavior).  Formerly base64_decode.
36655         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
36656         takes a decode context structure.
36657         * lib/base64.h (base64_decode): Macro for four-argument calls.
36658         (base64_decode_alloc): Likewise.
36659
36660 2008-05-19  Jim Meyering  <meyering@redhat.com>
36661
36662         avoid a warning from gcc
36663         * lib/trim.c (IF_LINT): Define.
36664         (trim2): Use it to avoid a "may be used uninitialized" warning.
36665
36666         Fix doc typo.
36667         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
36668
36669 2008-05-19  Bruno Haible  <bruno@clisp.org>
36670
36671         * doc/glibc-functions/getpass.texi: Document limits of other
36672         implementations.
36673
36674 2008-05-19  Simon Josefsson  <simon@josefsson.org>
36675             Bruno Haible <bruno@clisp.org>
36676
36677         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
36678
36679 2008-05-18  Bruno Haible  <bruno@clisp.org>
36680
36681         * modules/propername: New file, from GNU gettext.
36682         * lib/propername.h: New file, from GNU gettext.
36683         * lib/propername.c: New file, from GNU gettext.
36684         * MODULES.html.sh (Internationalization functions): Add propername.
36685
36686 2008-05-16  Jim Meyering  <meyering@redhat.com>
36687             Bruno Haible  <bruno@clisp.org>
36688
36689         Avoid some warnings from "gcc -Wshadow".
36690         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
36691
36692 2008-05-15  Eric Blake  <ebb9@byu.net>
36693
36694         Extend previous patch to cygwin 1.7.0.
36695         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
36696         fast implementation in cygwin >= 1.7.0.
36697         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
36698         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36699
36700 2008-05-15  Bruno Haible  <bruno@clisp.org>
36701
36702         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
36703         implementation in glibc >= 2.9.
36704         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
36705         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36706
36707 2008-05-15  Bruno Haible  <bruno@clisp.org>
36708
36709         * MODULES.html.sh (Internationalization functions): Remove linebreak.
36710         (Unicode string functions): Add unilbrk/*.
36711         Reported by Karl Berry.
36712
36713 2008-05-15  Eric Blake  <ebb9@byu.net>
36714
36715         Fix violation of <stdbool.h> replacement in regex.
36716         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
36717         * lib/regexec.c (re_search_internal): Likewise.
36718         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
36719
36720 2008-05-15  Jim Meyering  <meyering@redhat.com>
36721
36722         avoid distracting test output when git or cvs is not found
36723         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
36724         * tests/test-vc-list-files-git.sh: Likewise.
36725
36726 2008-05-15  Eric Blake  <ebb9@byu.net>
36727
36728         Glibc finally accepted the memmem speedup code, bugzilla #5514.
36729         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
36730         glibc version.
36731         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
36732         * doc/posix-functions/strstr.texi (strstr): Likewise.
36733         * lib/str-two-way.h (MAX): Sychronize with glibc.
36734
36735 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
36736
36737         * lib/regcomp.c (optimize_utf8): Add a note on why we test
36738         opr.ctx_type.
36739         (calc_first): Initialize constraint field.
36740         (duplicate_node_closure): Use it instead of special casing ANCHORS.
36741         Fix grammar.
36742         (duplicate_node): Merge constraint field for all node types.
36743         (calc_eclosure_iter): Look at constraint field for all node types.
36744         * lib/regex_internal.c (create_cd_newstate): Don't look at
36745         opr.ctx_type.
36746
36747 2008-05-14  Bruno Haible  <bruno@clisp.org>
36748
36749         Help GCC to do better code generation.
36750         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
36751         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
36752         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
36753         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
36754         Declare with attribute 'malloc' if supported.
36755
36756 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
36757
36758         use "echo STR|wc -c" rather than unportable "expr length STR"
36759         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
36760         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
36761
36762 2008-05-14  Jim Meyering  <meyering@redhat.com>
36763
36764         use dd ibs=$n count=1 ... rather than less-portable head -c$n
36765         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
36766         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
36767         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
36768         via Collin Lasse.
36769
36770 2008-05-14  Eric Blake  <ebb9@byu.net>
36771
36772         Avoid quadratic growth in gl_LIBSOURCES.
36773         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
36774         Suggested by Bruno Haible.
36775
36776         Test xmemdup0.
36777         * modules/xmemdup0-tests: New file.
36778         * tests/test-xmemdup0.c: Likewise.
36779
36780 2008-05-13  Eric Blake  <ebb9@byu.net>
36781
36782         Split xmemdup0 into its own module.
36783         * modules/xmemdup0: New file.
36784         * lib/xmemdup0.h: Likewise.
36785         * lib/xmemdup0.c: Likewise.
36786         * MODULES.html.sh (Memory management functions): Add xmemdup0.
36787         * lib/xalloc.h (xmemdup0): Remove.
36788         * lib/xmalloc.c (xmemdup0): Likewise.
36789
36790 2008-05-13  Eric Blake  <ebb9@byu.net>
36791             Bruno Haible  <bruno@clisp.org>
36792
36793         Reduce number of forks required during autoconf.
36794         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
36795         and gl_LIBSOURCES_DIR.
36796         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
36797         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
36798         m4_syscmd per file.
36799         <m4_foreach_w>: Move...
36800         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
36801
36802 2008-05-13  Eric Blake  <ebb9@byu.net>
36803
36804         * gnulib-tool: Fix various comment typos.
36805
36806 2008-05-12  Bruno Haible  <bruno@clisp.org>
36807
36808         Tailor the linebreaking algorithm.
36809         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
36810
36811 2008-05-12  Bruno Haible  <bruno@clisp.org>
36812
36813         Update to Unicode 5.0.0.
36814         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
36815         LBP_JV, LBP_JT. Redistribute values.
36816         (unilbrk_table): Change size.
36817         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
36818         Unicode TR#14 rev. 22.
36819         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
36820         LBP_JV, LBP_JT. Redistribute values.
36821         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
36822         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
36823         Update.
36824         * lib/unilbrk/lbrkprop1.h: Regenerated.
36825         * lib/unilbrk/lbrkprop2.h: Regenerated.
36826         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
36827         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
36828         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
36829         Likewise.
36830         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
36831         Likewise.
36832         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
36833         result.
36834         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
36835         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
36836         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
36837         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
36838         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
36839         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
36840
36841 2008-05-11  Bruno Haible  <bruno@clisp.org>
36842
36843         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
36844
36845 2008-05-11  Bruno Haible  <bruno@clisp.org>
36846
36847         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
36848         * modules/unilbrk/gen-lbrk: New file.
36849
36850 2008-05-11  Bruno Haible  <bruno@clisp.org>
36851
36852         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
36853         * m4/sha512.m4 (gl_SHA512): Likewise.
36854
36855 2008-05-11  Jim Meyering  <meyering@redhat.com>
36856
36857         New modules: crypto/sha256, crypto/sha512 (from coreutils)
36858         * modules/crypto/sha256: New file.
36859         * modules/crypto/sha512: Likewise.
36860         * lib/sha256.c: Likewise.
36861         * lib/sha256.h: Likewise.
36862         * lib/sha512.c: Likewise.
36863         * lib/sha512.h: Likewise.
36864         * lib/u64.h: Likewise.
36865         * m4/sha256.m4: Likewise.
36866         * m4/sha512.m4: Likewise.
36867         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
36868
36869 2008-05-10  Bruno Haible  <bruno@clisp.org>
36870
36871         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
36872         (Input/Output <stdio.h>): Add xprintf.
36873         (Signal handling <signal.h>): Add strsignal.
36874         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
36875         (Core language properties): Add func.
36876         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
36877         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
36878         strings.
36879         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
36880         (Input/output): New section.
36881         (File system functions): Add openat-die, stat-macros.
36882         (Networking functions): Add sockets.
36883         (Unicode string functions): Add unictype/*.
36884         (Support for building libraries and executables): Add gperf.
36885         (Support for building documentation): Add agpl-3.0.
36886         (Misc): Add nocrash.
36887
36888 2008-05-10  Bruno Haible  <bruno@clisp.org>
36889
36890         * modules/unictype/gen-ctype: New file.
36891
36892 2008-05-10  Jim Meyering  <meyering@redhat.com>
36893
36894         Make chdir-safer.c more efficient on a system with no symlinks.
36895         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
36896         also if ELOOP is zero.  Suggested by Bruno Haible.
36897
36898         Make chdir-safer.c slightly safer.
36899         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
36900         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
36901
36902         Avoid compile failure on systems without ELOOP (like mingw).
36903         * lib/chdir-safer.c (ELOOP): Define if not already defined.
36904         Reported by Bruno Haible.
36905
36906 2008-05-10  Bruno Haible  <bruno@clisp.org>
36907
36908         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
36909         (is_utf8_encoding): Use a case-insensitive comparison.
36910         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
36911         streq.
36912
36913 2008-05-10  Bruno Haible  <bruno@clisp.org>
36914
36915         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
36916         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
36917         * lib/unilbrk/ulc-common.h (iconv_string_length,
36918         iconv_string_keeping_offsets): Remove declarations.
36919         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
36920         Don't include <iconv.h>, streq.h, xsize.h.
36921         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
36922         conversion.
36923         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
36924         <iconv.h>, streq.h, xsize.h.
36925         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
36926         conversion.
36927         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
36928         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
36929         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
36930         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
36931
36932 2008-05-10  Bruno Haible  <bruno@clisp.org>
36933
36934         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
36935         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
36936
36937         * modules/unilbrk/u32-width-linebreaks-tests: New file.
36938         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
36939
36940         * modules/unilbrk/u16-width-linebreaks-tests: New file.
36941         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
36942
36943         * modules/unilbrk/u8-width-linebreaks-tests: New file.
36944         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
36945
36946         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
36947         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
36948
36949         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
36950         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
36951
36952         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
36953         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
36954
36955         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
36956         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
36957
36958 2008-05-10  Bruno Haible  <bruno@clisp.org>
36959
36960         Split up 'linebreak' module.
36961         * lib/unilbrk.h: New file, based on lib/linebreak.h.
36962         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
36963         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
36964         modifications.
36965         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
36966         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
36967         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
36968         lib/linebreak.c.
36969         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
36970         lib/linebreak.c.
36971         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
36972         lib/linebreak.c.
36973         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
36974         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
36975         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
36976         lib/linebreak.c.
36977         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
36978         lib/linebreak.c.
36979         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
36980         lib/linebreak.c.
36981         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
36982         lib/linebreak.c.
36983         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
36984         lib/linebreak.c.
36985         * modules/unilbrk/base: New file.
36986         * modules/unilbrk/tables: New file.
36987         * modules/unilbrk/u8-possible-linebreaks: New file.
36988         * modules/unilbrk/u16-possible-linebreaks: New file.
36989         * modules/unilbrk/u32-possible-linebreaks: New file.
36990         * modules/unilbrk/ulc-common: New file.
36991         * modules/unilbrk/ulc-possible-linebreaks: New file.
36992         * modules/unilbrk/u8-width-linebreaks: New file.
36993         * modules/unilbrk/u16-width-linebreaks: New file.
36994         * modules/unilbrk/u32-width-linebreaks: New file.
36995         * modules/unilbrk/ulc-width-linebreaks: New file.
36996         * lib/linebreak.h: Remove file.
36997         * lib/linebreak.c: Remove file.
36998         * m4/linebreak.m4: Remove file.
36999         * modules/linebreak: Remove file.
37000         * NEWS: Mention the changes.
37001
37002 2008-05-09  Eric Blake  <ebb9@byu.net>
37003
37004         Add xmemdup0.
37005         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
37006         implementation.
37007         * lib/xmalloc.c (xmemdup0): New C implementation.
37008
37009 2008-05-08  Bruno Haible  <bruno@clisp.org>
37010
37011         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
37012
37013 2008-05-07  Eric Blake  <ebb9@byu.net>
37014
37015         Support cross-compilation of <wctype.h>.
37016         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
37017         AC_CACHE_CHECK.
37018
37019 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
37020
37021         * build-aux/vc-list-files: Add support for bzr.
37022
37023 2008-05-03  Jim Meyering  <meyering@redhat.com>
37024
37025         avoid failed assertion with tight malloc
37026         * tests/test-getndelim2.c: Correct an off-by-one assertion.
37027
37028 2008-05-03  Simon Josefsson  <simon@josefsson.org>
37029
37030         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
37031         are needed from arpa/inet.h.
37032         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
37033         Reported by Bruno Haible.
37034
37035 2008-05-02  Jim Meyering  <meyering@redhat.com>
37036
37037         avoid compilation error on FreeBSD 6
37038         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
37039
37040 2008-05-01  Jim Meyering  <meyering@redhat.com>
37041
37042         useless-if-before-free: correct --help's exit status description
37043         * build-aux/useless-if-before-free (usage): Like grep, exit 0
37044         for one or more matches, etc.  Reported by Bruno Haible.
37045
37046         vc-list-files: make the stand-alone gnulib test work
37047         * modules/vc-list-files-tests (configure.ac):
37048         Define and AC_SUBST abs_aux_dir.
37049         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
37050         $(abs_top_srcdir) to each script and having each of them
37051         duplicate the work of setting PATH, set PATH here, using
37052         the new variable, abs_aux_dir instead.
37053         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
37054         * tests/test-vc-list-files-git.sh: Likewise.
37055         Reported by Bruno Haible.
37056
37057 2008-05-01  Bruno Haible  <bruno@clisp.org>
37058
37059         * lib/getndelim2.c (getndelim2): Fix newsize computation during
37060         reallocation. Rename 'done' to 'found_delimiter'.
37061
37062 2008-05-01  Jim Meyering  <meyering@redhat.com>
37063
37064         vc-list-files: accommodate /bin/sh like the one from Solaris 10
37065         * build-aux/vc-list-files: Use `...`, not $(...).
37066
37067 2008-04-30  Jim Meyering  <meyering@redhat.com>
37068
37069         add tests for vc-list-files
37070         * modules/vc-list-files-tests: New module.
37071         * tests/test-vc-list-files-cvs.sh: New file.
37072         * tests/test-vc-list-files-git.sh: New file.
37073
37074         avoid a warning from gcc
37075         * lib/getndelim2.c (IF_LINT): Define.
37076         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
37077
37078         vc-list-files: work properly with build-aux/cvsu, too
37079         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
37080         to all cvs-based clauses.
37081
37082         vc-list-files: work properly in the CVS+awk case, too
37083         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
37084
37085         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
37086         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
37087         take more than one file argument, so .  Add quotes, just in case $dir
37088         ever contains a shell meta-character.  Prompted by Soren Hansen in
37089         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
37090
37091 2008-04-29  Eric Blake  <ebb9@byu.net>
37092
37093         Optimize getndelim2 to use block operations when possible.
37094         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
37095         freadseek, and memchr2.
37096         * lib/getndelim2.c (getndelim2): Use them for block reads.
37097
37098 2008-04-29  Bruno Haible  <bruno@clisp.org>
37099
37100         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
37101         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37102         * modules/inet_ntop (Depends-on): Add extensions.
37103         * modules/inet_pton (Depends-on): Likewise.
37104         Reported by Simon Josefsson.
37105
37106 2008-04-29  Jim Meyering  <meyering@redhat.com>
37107
37108         When the is more than one match in a block, match all of them.
37109         * build-aux/useless-if-before-free: Iterate through each block
37110         until there are no more matches.
37111
37112         Fix broken useless-if-before-free script.
37113         * build-aux/useless-if-before-free: Fix typo: missing "?" after
37114         the expression to match cast of argument to free-like function.
37115
37116 2008-04-29  Eric Blake  <ebb9@byu.net>
37117
37118         Use new header.
37119         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
37120
37121 2008-04-29  Jim Meyering  <meyering@redhat.com>
37122
37123         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
37124         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
37125         by gnulib to exist and to declare e.g., inet_ntop.
37126         Don't include "inet_ntop.h", now removed.
37127
37128         * m4/arpa_inet_h.m4: Remove trailing blanks.
37129
37130 2008-04-29  Eric Blake  <ebb9@byu.net>
37131
37132         Silence valgrind on safe reads beyond potential array bounds.
37133         * lib/rawmemchr.valgrind: New file.
37134         * lib/strchrnul.valgrind: Likewise.
37135         * modules/rawmemchr (Files): Distribute new file.
37136         * modules/strchrnul (Files): Likewise.
37137         Suggested by Bruno Haible.
37138
37139 2008-04-29  Bruno Haible  <bruno@clisp.org>
37140
37141         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
37142         (inet_ntop, inet_pton): Change portability warning's wording.
37143         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
37144         Invoke gl_CHECK_NEXT_HEADERS.
37145         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
37146         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
37147         set ARPA_INET_H.
37148         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37149         * modules/arpa_inet (Description): No longer only for systems that
37150         lack it.
37151         (Depends-on): Add include_next.
37152         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
37153         HAVE_ARPA_INET_H.
37154
37155 2008-04-29  Jim Meyering  <meyering@redhat.com>
37156
37157         * modules/mkdir (License): Re-license as LGPLv2+.
37158
37159 2008-04-29  Bruno Haible  <bruno@clisp.org>
37160
37161         * modules/rawmemchr (Maintainer): Set to Eric.
37162         * modules/strchrnul (Maintainer): Likewise.
37163
37164 2008-04-29  Simon Josefsson  <simon@josefsson.org>
37165
37166         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
37167         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
37168
37169         * modules/arpa_inet (arpa/inet.h): Use them.
37170
37171 2008-04-28  Eric Blake  <ebb9@byu.net>
37172
37173         Test getndelim2.
37174         * modules/getndelim2-tests: New file.
37175         * tests/test-getndelim2.c: Likewise.
37176         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
37177         stream.
37178         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
37179
37180         * MODULES.html.sh: Document new module.
37181
37182 2008-04-20  Bruno Haible  <bruno@clisp.org>
37183
37184         * lib/c-stack.c (die): Use raise.
37185         * modules/c-stack (Depends-on): Add raise.
37186
37187 2008-04-28  Bruno Haible  <bruno@clisp.org>
37188
37189         Expect rpmatch to be declared.
37190         * lib/yesno.c (rpmatch): Remove declaration.
37191
37192         Declare rpmatch.
37193         * lib/stdlib.in.h (rpmatch): New declaration.
37194         * lib/rpmatch.c: Include <stdlib.h> first.
37195         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
37196         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
37197         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
37198         HAVE_RPMATCH.
37199         * modules/rpmatch (Depends-on): Add stdlib, extensions.
37200         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37201         (Include): Set to <stdlib.h>.
37202         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
37203         HAVE_RPMATCH.
37204         * NEWS: Document the change.
37205
37206 2008-04-28  Bruno Haible  <bruno@clisp.org>
37207
37208         Change rpmatch to use nl_langinfo when appropriate.
37209         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
37210         (N_): New macro.
37211         (localized_pattern): New function/macro.
37212         (try): Remove match, nomatch arguments. Copy the pattern into safe
37213         memory before caching it.
37214         (rpmatch): Use localized_pattern. Add translator comments.
37215         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
37216         Suggested by Eric Blake.
37217         * modules/rpmatch (Depends-on): Add stdbool.
37218
37219 2008-04-28  Eric Blake  <ebb9@byu.net>
37220
37221         Add rawmemchr module, matching glibc.
37222         * modules/string (Makefile.am): New indicator.
37223         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
37224         * lib/string.in.h (rawmemchr): Declare when appropriate.
37225         * modules/rawmemchr: New file.
37226         * m4/rawmemchr.m4: Likewise.
37227         * lib/rawmemchr.c: Likewise.
37228         * modules/rawmemchr-tests: Likewise.
37229         * tests/test-rawmemchr.c: Likewise.
37230         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
37231         module.
37232         * modules/strchrnul (Depends-on): Add rawmemchr.
37233         * lib/strchrnul.c (strchrnul): Optimize a corner case.
37234
37235         Whitespace cleanup.
37236         * tests/test-strchrnul.c: Reindent.
37237         * lib/strchrnul.c: Likewise.
37238
37239         Optimize and test strchrnul.
37240         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
37241         * modules/strchrnul-tests: New file.
37242         * tests/test-strchrnul.c: Likewise.
37243
37244         Remove intprops dependency.
37245         * modules/memchr (Depends-on): Remove intprops.
37246         * modules/memrchr (Depends-on): Likewise.
37247         * modules/memchr2 (Depends-on): Likewise.
37248         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
37249         * lib/memrchr.c (__memrchr): Likewise.
37250         * lib/memrchr2.c (memchr2): Likewise.
37251         Reported by Simon Josefsson.
37252
37253 2008-04-28  Simon Josefsson  <simon@josefsson.org>
37254
37255         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
37256         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37257
37258 2008-04-28  Simon Josefsson  <simon@josefsson.org>
37259
37260         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
37261
37262         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
37263
37264         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
37265
37266         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
37267         declarations.
37268         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
37269
37270         * m4/inet_pton.m4: Don't check for header files.
37271
37272         * m4/inet_ntop.m4: Don't check for header files.
37273
37274 2008-04-28  Simon Josefsson  <simon@josefsson.org>
37275
37276         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
37277         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
37278         trigger for cygwin).
37279         Reported by Bruno Haible  <bruno@clisp.org>.
37280
37281 2008-04-28  Bruno Haible  <bruno@clisp.org>
37282
37283         * doc/posix-functions/strdup.texi: Mention mingw problem.
37284
37285 2008-04-27  Bruno Haible  <bruno@clisp.org>
37286
37287         * modules/stat-time-tests (Depends-on): Add sleep.
37288         * tests/test-stat-time.c (force_unlink): New function.
37289         (cleanup): Use it.
37290         (test_mtime): Remove the ctime related tests.
37291         (test_ctime): New function, containing the ctime related tests.
37292         (main): Call test_ctime, except on native Windows platforms.
37293
37294 2008-04-27  Bruno Haible  <bruno@clisp.org>
37295
37296         * lib/rpmatch.c (rpmatch): Add some comments.
37297         Reported by James Youngman <jay@gnu.org>.
37298
37299 2008-04-27  Bruno Haible  <bruno@clisp.org>
37300
37301         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
37302         quiet NaNs.
37303
37304 2008-04-27  Bruno Haible  <bruno@clisp.org>
37305
37306         Make test-yesno.sh work on mingw.
37307         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
37308         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
37309         (main): Set stdin to binary mode.
37310         * modules/yesno-tests (Depends-on): Add binary-io.
37311
37312 2008-04-27  Bruno Haible  <bruno@clisp.org>
37313
37314         Fix 'isfinite' on x86, x86_64, ia64 platforms.
37315         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
37316         argument that lie outside the IEEE 854 domain.
37317         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
37318         (gl_ISFINITE): Use it.
37319         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
37320
37321 2008-04-27  Bruno Haible  <bruno@clisp.org>
37322
37323         Allow local renaming in config.h.
37324         * lib/memrchr.c (memrchr): Don't undefine outside libc.
37325
37326 2008-04-27  Bruno Haible  <bruno@clisp.org>
37327
37328         * lib/memchr.c (__memchr): Change type of 'i'.
37329         * lib/memchr2.c (memchr2): Likewise.
37330
37331 2008-04-26  Eric Blake  <ebb9@byu.net>
37332         and Bruno Haible  <bruno@clisp.org>
37333
37334         Optimize and test memrchr.
37335         * modules/memrchr (Depends-on): Add intprops.
37336         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
37337         * modules/memrchr-tests: New file.
37338         * tests/test-memrchr.c: New file.
37339
37340 2008-04-26  Bruno Haible  <bruno@clisp.org>
37341
37342         Add tentative support for DragonFly BSD.
37343         * lib/stdio-impl.h: Add macros for DragonFly BSD.
37344         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
37345         fp.
37346         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
37347         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
37348         * lib/fpurge.c (fpurge): Likewise.
37349         * lib/freadable.c (freaadable): Likewise.
37350         * lib/freadahead.c (freadahead): Likewise.
37351         * lib/freading.c (freading): Likewise.
37352         * lib/freadptr.c (freadptr): Likewise.
37353         * lib/freadseek.c (freadptrinc): Likewise.
37354         * lib/fseeko.c (fseeko): Likewise.
37355         * lib/fseterr.c (fseterr): Likewise.
37356         * lib/fwritable.c (fwritable): Likewise.
37357         * lib/fwriting.c (fwriting): Likewise.
37358
37359 2008-04-26  Bruno Haible  <bruno@clisp.org>
37360
37361         * lib/stdio-impl.h: New file.
37362         * lib/fbufmode.c: Include stdio-impl.h.
37363         (fbufmode): Use fp_, remove redundant #defines.
37364         * lib/fflush.c: Include stdio-impl.h.
37365         (clear_ungetc_buffer): Remove redundant #defines.
37366         * lib/fpurge.c: Include stdio-impl.h.
37367         (fpurge): Remove redundant #defines.
37368         * lib/freadable.c: Include stdio-impl.h.
37369         (freadable): Remove redundant #defines.
37370         * lib/freadahead.c: Include stdio-impl.h.
37371         (freadahead): Remove redundant #defines.
37372         * lib/freading.c: Include stdio-impl.h.
37373         (freading): Remove redundant #defines.
37374         * lib/freadptr.c: Include stdio-impl.h.
37375         (freadptr): Remove redundant #defines.
37376         * lib/freadseek.c: Include stdio-impl.h.
37377         (freadptrinc): Remove redundant #defines.
37378         * lib/fseeko.c: Include stdio-impl.h.
37379         (rpl_fseeko): Remove redundant #defines.
37380         * lib/fseterr.c: Include stdio-impl.h.
37381         (fseterr): Remove redundant #defines.
37382         * lib/fwritable.c: Include stdio-impl.h.
37383         (fwritable: Remove redundant #defines.
37384         * lib/fwriting.c: Include stdio-impl.h.
37385         (fwriting): Remove redundant #defines.
37386         * modules/fbufmode (Files): Add lib/stdio-impl.h.
37387         * modules/fflush (Files): Likewise.
37388         * modules/fpurge (Files): Likewise.
37389         * modules/freadable (Files): Likewise.
37390         * modules/freadahead (Files): Likewise.
37391         * modules/freading (Files): Likewise.
37392         * modules/freadptr (Files): Likewise.
37393         * modules/freadseek (Files): Likewise.
37394         * modules/fseeko (Files): Likewise.
37395         * modules/fseterr (Files): Likewise.
37396         * modules/fwritable (Files): Likewise.
37397         * modules/fwriting (Files): Likewise.
37398
37399 2008-04-26  Bruno Haible  <bruno@clisp.org>
37400
37401         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
37402         restore_seek_optimization, update_fpos_cache): New functions, extracted
37403         from rpl_fflush.
37404         (rpl_fflush): Use them.
37405         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
37406         (gl_REPLACE_FFLUSH): Use it.
37407
37408 2008-04-26  Bruno Haible  <bruno@clisp.org>
37409
37410         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
37411         on Solaris.
37412         * tests/test-xstrtoimax.sh: Likewise.
37413         * tests/test-xstrtoumax.sh: Likewise.
37414         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37415
37416 2008-04-26  Bruno Haible  <bruno@clisp.org>
37417
37418         * modules/memchr-tests: New file.
37419         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
37420
37421 2008-04-26  Eric Blake  <ebb9@byu.net>
37422             Bruno Haible  <bruno@clisp.org>
37423
37424         * lib/memchr.c: Include intprops.h.
37425         (__memchr): Optimize parallel detection of matching bytes. Rename local
37426         variables. Add explanatory comments.
37427
37428 2008-04-26  Bruno Haible  <bruno@clisp.org>
37429
37430         Fix module 'memchr', broken since 2000-10-28.
37431         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
37432
37433 2008-04-26  Bruno Haible  <bruno@clisp.org>
37434
37435         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
37436         comments.
37437
37438 2008-04-25  Eric Blake  <ebb9@byu.net>
37439
37440         Use native fstatat on cygwin 1.7.0.
37441         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
37442         first.
37443
37444 2008-04-23  Eric Blake  <ebb9@byu.net>
37445
37446         Improve memchr2 performance.
37447         * lib/memchr2.c (memchr2): Further optimize parallel detection of
37448         NUL bytes.
37449         * modules/memchr2 (Depends-on): Use intprops.h.
37450
37451 2008-04-23  Simon Josefsson  <simon@josefsson.org>
37452
37453         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
37454         an inline function instead of a CPP macro.  Patch by Ben Pfaff
37455         <blp@cs.stanford.edu>.
37456
37457 2008-04-23  Simon Josefsson  <simon@josefsson.org>
37458
37459         * lib/arpa_inet.in.h: New file.
37460
37461         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
37462         (Makefile.am): Sed in substitute header file.
37463
37464         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
37465         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
37466
37467         * modules/inet_ntop (configure.ac): Use
37468         gl_ARPA_INET_MODULE_INDICATOR.
37469
37470         * modules/inet_pton (configure.ac): Use
37471         gl_ARPA_INET_MODULE_INDICATOR.
37472
37473 2008-04-22  Jim Meyering  <meyering@redhat.com>
37474
37475         * modules/verify (License): Re-license as LGPLv2+.
37476
37477 2008-04-22  Simon Josefsson  <simon@josefsson.org>
37478
37479         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
37480         parameter to void* as per POSIX standard (MinGW uses char*).
37481
37482 2008-04-21  Bruno Haible  <bruno@clisp.org>
37483
37484         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
37485         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
37486         Define to replacements if REPLACE_ISWCNTRL is 1.
37487         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
37488         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
37489         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
37490         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
37491         what it fixes.
37492         * doc/posix-functions/iswalpha.texi: Likewise.
37493         * doc/posix-functions/iswblank.texi: Likewise.
37494         * doc/posix-functions/iswcntrl.texi: Likewise.
37495         * doc/posix-functions/iswdigit.texi: Likewise.
37496         * doc/posix-functions/iswgraph.texi: Likewise.
37497         * doc/posix-functions/iswlower.texi: Likewise.
37498         * doc/posix-functions/iswprint.texi: Likewise.
37499         * doc/posix-functions/iswpunct.texi: Likewise.
37500         * doc/posix-functions/iswspace.texi: Likewise.
37501         * doc/posix-functions/iswupper.texi: Likewise.
37502         * doc/posix-functions/iswxdigit.texi: Likewise.
37503         Reported by Alain Guibert.
37504
37505 2008-04-21  Bruno Haible  <bruno@clisp.org>
37506
37507         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
37508         Patch by Alain Guibert.
37509
37510 2008-04-21  Bruno Haible  <bruno@clisp.org>
37511
37512         Fix test failures on mingw.
37513         * tests/test-xstrtol.c (print_no_progname): New function.
37514         (main): Install it in error_print_progname hook.
37515         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
37516         * tests/test-xstrtoimax.sh: Likewise.
37517         * tests/test-xstrtoumax.sh: Likewise.
37518
37519 2008-04-21  Bruno Haible  <bruno@clisp.org>
37520
37521         Fix test failure on mingw.
37522         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
37523
37524 2008-04-21  Bruno Haible  <bruno@clisp.org>
37525
37526         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
37527         Actually assign a value.
37528
37529 2008-04-20  Bruno Haible  <bruno@clisp.org>
37530
37531         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
37532         take 2.
37533         * lib/canonicalize.c (canonicalize_file_name): Elide if the
37534         'canonicalize-lgpl' module is also used.
37535         * lib/canonicalize-lgpl.c: Undo last change.
37536         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
37537
37538 2008-04-20  Bruno Haible  <bruno@clisp.org>
37539
37540         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
37541         config.h. Provide _mkdir based fallback for mingw.
37542         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
37543         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
37544         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
37545         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
37546         rather than defining mkdir in config.h.
37547         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
37548         (gl_SYS_STAT_H_DEFAULTS): New macro.
37549         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
37550         HAVE_IO_H any more.
37551         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
37552         HAVE_DECL_MKDIR and HAVE_IO_H.
37553
37554 2008-04-20  Bruno Haible  <bruno@clisp.org>
37555
37556         * lib/isapipe.c: Port to native Windows platforms.
37557
37558 2008-04-20  Bruno Haible  <bruno@clisp.org>
37559
37560         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
37561
37562 2008-04-21  Eric Blake  <ebb9@byu.net>
37563
37564         Work around preprocessors that don't handle UINTMAX_MAX.
37565         * lib/memchr2.c (memchr2): Avoid embedded #if.
37566         Reported by Alain Guibert, fix suggested by Bruno Haible.
37567
37568 2008-04-21  Simon Josefsson  <simon@josefsson.org>
37569
37570         * doc/posix-functions/strftime.texi (strftime): Explain better
37571         Windows incompatibility.  Suggested by Micah Cowan
37572         <micah@cowan.name>.
37573
37574 2008-04-20  Bruno Haible  <bruno@clisp.org>
37575
37576         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
37577         unistr/u8-mblen.
37578
37579 2008-04-20  Bruno Haible  <bruno@clisp.org>
37580
37581         Fix test failure on platforms with non-GNU iconv.
37582         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
37583         (U_TO_U8): Use it, rather than u16_to_u8.
37584         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
37585         units at the end of the input string.
37586         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
37587
37588 2008-04-20  Bruno Haible  <bruno@clisp.org>
37589
37590         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
37591         when the resulting length is 0.
37592         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
37593
37594 2008-04-20  Bruno Haible  <bruno@clisp.org>
37595
37596         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
37597         works.
37598         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
37599
37600 2008-04-20  Bruno Haible  <bruno@clisp.org>
37601
37602         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
37603         * modules/tsearch-tests (configure.ac): Test for initstate function.
37604
37605 2008-04-20  Bruno Haible  <bruno@clisp.org>
37606
37607         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
37608         for nlink_t if missing.
37609         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
37610
37611 2008-04-19  Bruno Haible  <bruno@clisp.org>
37612
37613         Work around snprintf bug on Linux libc5.
37614         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
37615         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
37616         gl_SNPRINTF_SIZE1.
37617         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37618         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
37619         that test failed.
37620         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
37621         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
37622         * modules/snprintf (Files): Add m4/printf.m4.
37623         * modules/vsnprintf (Files): Likewise.
37624         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
37625         * doc/posix-functions/vsnprintf.texi: Likewise.
37626
37627 2008-04-19  Bruno Haible  <bruno@clisp.org>
37628
37629         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
37630         from 0.0058 to less than 10^-7.
37631
37632 2008-04-19  Bruno Haible  <bruno@clisp.org>
37633
37634         Fix rounding when a precision is given.
37635         * lib/vasnprintf.c (is_borderline): New function.
37636         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
37637         9...9x.
37638         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
37639         %e, %g.
37640         * tests/test-vasprintf-posix.c (test_function): Likewise.
37641         * tests/test-snprintf-posix.h (test_function): Likewise.
37642         * tests/test-sprintf-posix.h (test_function): Likewise.
37643         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
37644         * tests/test-printf-posix.h (test_function): Likewise.
37645         * tests/test-printf-posix.output: Update.
37646         Reported by John Darrington <john@darrington.wattle.id.au> via
37647         Ben Pfaff <blp@cs.stanford.edu>.
37648
37649 2008-04-18  Simon Josefsson  <simon@josefsson.org>
37650
37651         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
37652         Suggested by Bruno Haible <bruno@clisp.org>.
37653
37654 2008-04-17  Bruno Haible  <bruno@clisp.org>
37655
37656         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
37657         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
37658         implementation.
37659         Patch by Bruce Merry <bmerry@gmail.com>.
37660
37661 2008-04-17  Simon Josefsson  <simon@josefsson.org>
37662
37663         * doc/posix-functions/strftime.texi (strftime): Mention that %e
37664         doesn't work under Windows.
37665
37666 2008-04-16  Bruno Haible  <bruno@clisp.org>
37667
37668         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
37669         New macros.
37670         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
37671         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
37672         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
37673         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
37674         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
37675         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
37676         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
37677         macros.
37678         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
37679         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
37680         Northern Sotho, Uighur.
37681
37682 2008-04-16  Bruno Haible  <bruno@clisp.org>
37683
37684         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
37685         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
37686         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
37687         Reported by Daniel Bergström <daniel@octocode.com>.
37688
37689 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
37690             Bruno Haible  <bruno@clisp.org>
37691
37692         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
37693         function.
37694         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
37695         New functions, mostly extracted from gl_locale_name_default.
37696         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
37697
37698 2008-04-16  Eric Blake  <ebb9@byu.net>
37699
37700         Adjust strtod detection to catch glibc 2.7 bug.
37701         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
37702         Reported by John Gatewood Ham.
37703
37704 2008-04-16  Bruno Haible  <bruno@clisp.org>
37705
37706         Add tentative support for Linux libc5.
37707         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
37708         * lib/fpurge.c (fpurge): Likewise.
37709         * lib/freadable.c (freadable): Likewise.
37710         * lib/freadahead.c (freadahead): Likewise.
37711         * lib/freading.c (freading): Likewise.
37712         * lib/freadptr.c (freadptr): Likewise.
37713         * lib/freadseek.c (freadptrinc): Likewise.
37714         * lib/fseeko.c (rpl_fseeko): Likewise.
37715         * lib/fseterr.c (fseterr): Likewise.
37716         * lib/fwritable.c (fwritable): Likewise.
37717         * lib/fwriting.c (fwriting): Likewise.
37718         Reported by Alain Guibert <alguibert+bts@free.fr>.
37719
37720 2008-04-15  Bruno Haible  <bruno@clisp.org>
37721
37722         * modules/mathl (configure.ac): Define module indicator.
37723
37724 2008-04-15  Bruno Haible  <bruno@clisp.org>
37725
37726         * lib/logl.c (logl): Remove unused variables.
37727
37728 2008-04-15  Bruno Haible  <bruno@clisp.org>
37729
37730         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
37731         fails.
37732
37733 2008-04-15  Bruno Haible  <bruno@clisp.org>
37734
37735         * lib/trim.c (trim2): Fix argument of isspace() macro.
37736
37737 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
37738
37739         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
37740         to 0.
37741         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
37742
37743 2008-04-14  Bruno Haible  <bruno@clisp.org>
37744
37745         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
37746         AC_LANG_PROGRAM argument.
37747         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
37748         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
37749         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
37750         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37751         * m4/math_h.m4 (gl_MATH_H): Likewise.
37752         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
37753         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37754         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
37755         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
37756         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
37757         * m4/regex.m4 (gl_REGEX): Likewise.
37758         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
37759         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
37760         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37761         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
37762         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37763         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37764         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37765         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37766
37767 2008-04-14  Jim Meyering  <meyering@redhat.com>
37768
37769         test-strtod: fix typos: s/abs/fabs/
37770         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
37771
37772 2008-04-13  Bruno Haible  <bruno@clisp.org>
37773
37774         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
37775         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
37776         module is also used and while not building the reloc-wrapper.
37777
37778 2008-04-13  Bruno Haible  <bruno@clisp.org>
37779
37780         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
37781
37782 2008-04-13  Bruno Haible  <bruno@clisp.org>
37783
37784         Fix AIX compilation failure introduced on 2008-04-02.
37785         * tests/test-frexp.c (exp): Undefine before redefining.
37786         * tests/test-frexpl.c (exp): Likewise.
37787
37788 2008-04-13  Bruno Haible  <bruno@clisp.org>
37789
37790         Work around a HP-UX stdio bug.
37791         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
37792         * tests/test-ftello.c (main): Likewise.
37793         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
37794         * doc/posix-functions/ftello.texi: Likewise.
37795
37796 2008-04-13  Bruno Haible  <bruno@clisp.org>
37797
37798         Make test-signbit pass on HP-UX/hppa.
37799         * tests/test-signbit.c (minus_zerol): New variable.
37800         (test_signbitl): Use it.
37801
37802 2008-04-13  Bruno Haible  <bruno@clisp.org>
37803
37804         Make truncl work on OSF/1 4.0.
37805         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
37806         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
37807         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
37808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
37809         HAVE_DECL_TRUNCL.
37810         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
37811         HAVE_DECL_TRUNCL.
37812         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
37813
37814 2008-04-13  Bruno Haible  <bruno@clisp.org>
37815
37816         * lib/unictype.h: Remove trailing comma from enumeration definitions.
37817
37818 2008-04-13  Bruno Haible  <bruno@clisp.org>
37819
37820         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
37821         expression, so as to avoid HP-UX 11 cc compiler bug.
37822
37823 2008-04-13  Bruno Haible  <bruno@clisp.org>
37824
37825         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
37826
37827 2008-04-13  Bruno Haible  <bruno@clisp.org>
37828
37829         * lib/git-merge-changelog.c: Remove empty declaration outside of
37830         functions.
37831
37832 2008-04-13  Bruno Haible  <bruno@clisp.org>
37833
37834         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
37835
37836 2008-04-13  Bruno Haible  <bruno@clisp.org>
37837
37838         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
37839         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
37840         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
37841         also if it exists but lacks definitions of the SHUT_* macros.
37842         * modules/sys_socket (Description): Update.
37843         Reported by Elbert Pol <e.pol@chello.nl>.
37844
37845 2008-04-13  Bruno Haible  <bruno@clisp.org>
37846
37847         * lib/localcharset.c (OS2): Don't redefine if already defined.
37848         Reported by Elbert Pol <e.pol@chello.nl>.
37849
37850 2008-04-13  Bruno Haible  <bruno@clisp.org>
37851
37852         * lib/binary-io.h [__EMX__]: Include <io.h>.
37853         Reported by Elbert Pol <e.pol@chello.nl>.
37854
37855 2008-04-12  Bruno Haible  <bruno@clisp.org>
37856
37857         * lib/fpucw.h: Enable the definitions also for x86_64.
37858         Needed for NetBSD/x86_64.
37859         Reported by Thomas Klausner <tk@giga.or.at>.
37860
37861 2008-04-12  Bruno Haible  <bruno@clisp.org>
37862
37863         * tests/test-strtod.c: Include isnand.h.
37864         (main): Use isnand instead of isnan.
37865         Reported by Jim Meyering.
37866
37867 2008-04-12  Bruno Haible  <bruno@clisp.org>
37868
37869         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
37870         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
37871
37872 2008-04-12  Jim Meyering  <meyering@redhat.com>
37873
37874         * m4/math_h.m4 (gl_MATH_H): Fix typos.
37875
37876 2008-04-12  Bruno Haible  <bruno@clisp.org>
37877
37878         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
37879         Reported by Elbert Pol <e.pol@chello.nl>.
37880
37881 2008-04-12  Eric Blake  <ebb9@byu.net>
37882
37883         Work around Solaris 10 math.h bug.
37884         * m4/math_h.m4 (gl_MATH_H): Check for bug.
37885         (gl_MATH_H_DEFAULTS): Set up default.
37886         * modules/math (Makefile.am): Replace new indicators.
37887         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
37888         * tests/test-math.c (main): Test this.
37889         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
37890         * doc/posix-headers/math.texi (math.h): Mention bug.
37891         Reported by Nelson H. F. Beebe and Jim Meyering.
37892
37893 2008-04-11  Bruno Haible  <bruno@clisp.org>
37894
37895         Adapt to future versions of Apple GCC.
37896         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
37897         Reported by Peter O'Gorman <peter@pogma.com>.
37898
37899 2008-04-11  Bruno Haible  <bruno@clisp.org>
37900
37901         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
37902
37903 2008-04-11  Bruno Haible  <bruno@clisp.org>
37904
37905         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
37906
37907         * modules/getaddrinfo-tests (Makefile.am): Define
37908         test_getaddrinfo_LDADD.
37909
37910 2008-04-11  Bruno Haible  <bruno@clisp.org>
37911
37912         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
37913         (init): Fix syntax error.
37914         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
37915         is declared.
37916
37917 2008-04-11  Bruno Haible  <bruno@clisp.org>
37918
37919         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
37920         * modules/glob (Depends-on): Add stdbool.
37921
37922 2008-04-11  Bruno Haible  <bruno@clisp.org>
37923
37924         * lib/trim.c: Include <string.h>.
37925
37926 2008-04-11  Eric Blake  <ebb9@byu.net>
37927
37928         Avoid compile failure on OS/2.
37929         * lib/regex_internal.h (internal_function): Disable optimization
37930         on OS/2 (__EMX__), where it caused compiler error.
37931         Reported by Elbert Pol.
37932
37933 2008-04-11  Bruno Haible  <bruno@clisp.org>
37934
37935         Flush the standard error stream before aborting. Needed on mingw.
37936         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
37937         * tests/test-array_list.c (ASSERT): Likewise.
37938         * tests/test-array_oset.c (ASSERT): Likewise.
37939         * tests/test-avltree_list.c (ASSERT): Likewise.
37940         * tests/test-avltree_oset.c (ASSERT): Likewise.
37941         * tests/test-avltreehash_list.c (ASSERT): Likewise.
37942         * tests/test-binary-io.c (ASSERT): Likewise.
37943         * tests/test-byteswap.c (ASSERT): Likewise.
37944         * tests/test-c-ctype.c (ASSERT): Likewise.
37945         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
37946         * tests/test-c-strcasestr.c (ASSERT): Likewise.
37947         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
37948         * tests/test-c-strstr.c (ASSERT): Likewise.
37949         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
37950         * tests/test-canonicalize.c (ASSERT): Likewise.
37951         * tests/test-carray_list.c (ASSERT): Likewise.
37952         * tests/test-ceilf1.c (ASSERT): Likewise.
37953         * tests/test-ceilf2.c (ASSERT): Likewise.
37954         * tests/test-ceill.c (ASSERT): Likewise.
37955         * tests/test-count-one-bits.c (ASSERT): Likewise.
37956         * tests/test-fbufmode.c (ASSERT): Likewise.
37957         * tests/test-fflush2.c (ASSERT): Likewise.
37958         * tests/test-floorf1.c (ASSERT): Likewise.
37959         * tests/test-floorf2.c (ASSERT): Likewise.
37960         * tests/test-floorl.c (ASSERT): Likewise.
37961         * tests/test-fopen.c (ASSERT): Likewise.
37962         * tests/test-fpending.c (ASSERT): Likewise.
37963         * tests/test-fprintf-posix.c (ASSERT): Likewise.
37964         * tests/test-fpurge.c (ASSERT): Likewise.
37965         * tests/test-freadable.c (ASSERT): Likewise.
37966         * tests/test-freadahead.c (ASSERT): Likewise.
37967         * tests/test-freading.c (ASSERT): Likewise.
37968         * tests/test-freadptr.c (ASSERT): Likewise.
37969         * tests/test-freadptr2.c (ASSERT): Likewise.
37970         * tests/test-freadseek.c (ASSERT): Likewise.
37971         * tests/test-freopen.c (ASSERT): Likewise.
37972         * tests/test-frexp.c (ASSERT): Likewise.
37973         * tests/test-frexpl.c (ASSERT): Likewise.
37974         * tests/test-fseek.c (ASSERT): Likewise.
37975         * tests/test-fseeko.c (ASSERT): Likewise.
37976         * tests/test-fstrcmp.c (ASSERT): Likewise.
37977         * tests/test-ftell.c (ASSERT): Likewise.
37978         * tests/test-ftello.c (ASSERT): Likewise.
37979         * tests/test-func.c (ASSERT): Likewise.
37980         * tests/test-fwritable.c (ASSERT): Likewise.
37981         * tests/test-fwriting.c (ASSERT): Likewise.
37982         * tests/test-getdelim.c (ASSERT): Likewise.
37983         * tests/test-getline.c (ASSERT): Likewise.
37984         * tests/test-i-ring.c (ASSERT): Likewise.
37985         * tests/test-iconv-utf.c (ASSERT): Likewise.
37986         * tests/test-iconv.c (ASSERT): Likewise.
37987         * tests/test-isfinite.c (ASSERT): Likewise.
37988         * tests/test-isnand.c (ASSERT): Likewise.
37989         * tests/test-isnanf.c (ASSERT): Likewise.
37990         * tests/test-isnanl.h (ASSERT): Likewise.
37991         * tests/test-ldexpl.c (ASSERT): Likewise.
37992         * tests/test-linked_list.c (ASSERT): Likewise.
37993         * tests/test-linkedhash_list.c (ASSERT): Likewise.
37994         * tests/test-localename.c (ASSERT): Likewise.
37995         * tests/test-lseek.c (ASSERT): Likewise.
37996         * tests/test-mbscasecmp.c (ASSERT): Likewise.
37997         * tests/test-mbscasestr1.c (ASSERT): Likewise.
37998         * tests/test-mbscasestr2.c (ASSERT): Likewise.
37999         * tests/test-mbscasestr3.c (ASSERT): Likewise.
38000         * tests/test-mbscasestr4.c (ASSERT): Likewise.
38001         * tests/test-mbschr.c (ASSERT): Likewise.
38002         * tests/test-mbscspn.c (ASSERT): Likewise.
38003         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
38004         * tests/test-mbspbrk.c (ASSERT): Likewise.
38005         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
38006         * tests/test-mbsrchr.c (ASSERT): Likewise.
38007         * tests/test-mbsspn.c (ASSERT): Likewise.
38008         * tests/test-mbsstr1.c (ASSERT): Likewise.
38009         * tests/test-mbsstr2.c (ASSERT): Likewise.
38010         * tests/test-mbsstr3.c (ASSERT): Likewise.
38011         * tests/test-memchr2.c (ASSERT): Likewise.
38012         * tests/test-memmem.c (ASSERT): Likewise.
38013         * tests/test-open.c (ASSERT): Likewise.
38014         * tests/test-printf-frexp.c (ASSERT): Likewise.
38015         * tests/test-printf-frexpl.c (ASSERT): Likewise.
38016         * tests/test-printf-posix.c (ASSERT): Likewise.
38017         * tests/test-quotearg.c (ASSERT): Likewise.
38018         * tests/test-rbtree_list.c (ASSERT): Likewise.
38019         * tests/test-rbtree_oset.c (ASSERT): Likewise.
38020         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
38021         * tests/test-round1.c (ASSERT): Likewise.
38022         * tests/test-roundf1.c (ASSERT): Likewise.
38023         * tests/test-roundl.c (ASSERT): Likewise.
38024         * tests/test-signbit.c (ASSERT): Likewise.
38025         * tests/test-sleep.c (ASSERT): Likewise.
38026         * tests/test-snprintf-posix.c (ASSERT): Likewise.
38027         * tests/test-snprintf.c (ASSERT): Likewise.
38028         * tests/test-sprintf-posix.c (ASSERT): Likewise.
38029         * tests/test-stat-time.c (ASSERT): Likewise.
38030         * tests/test-strcasestr.c (ASSERT): Likewise.
38031         * tests/test-strerror.c (ASSERT): Likewise.
38032         * tests/test-striconv.c (ASSERT): Likewise.
38033         * tests/test-striconveh.c (ASSERT): Likewise.
38034         * tests/test-striconveha.c (ASSERT): Likewise.
38035         * tests/test-strsignal.c (ASSERT): Likewise.
38036         * tests/test-strstr.c (ASSERT): Likewise.
38037         * tests/test-strtod.c (ASSERT): Likewise.
38038         * tests/test-trunc1.c (ASSERT): Likewise.
38039         * tests/test-trunc2.c (ASSERT): Likewise.
38040         * tests/test-truncf1.c (ASSERT): Likewise.
38041         * tests/test-truncf2.c (ASSERT): Likewise.
38042         * tests/test-truncl.c (ASSERT): Likewise.
38043         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
38044         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
38045         * tests/test-vasnprintf.c (ASSERT): Likewise.
38046         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
38047         * tests/test-vasprintf.c (ASSERT): Likewise.
38048         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
38049         * tests/test-vprintf-posix.c (ASSERT): Likewise.
38050         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
38051         * tests/test-vsnprintf.c (ASSERT): Likewise.
38052         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
38053         * tests/test-wcwidth.c (ASSERT): Likewise.
38054         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
38055         * tests/test-xprintf-posix.c (ASSERT): Likewise.
38056         * tests/test-xvasprintf.c (ASSERT): Likewise.
38057         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
38058         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
38059         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
38060         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
38061         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
38062         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
38063         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
38064         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
38065         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
38066         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
38067         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
38068         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
38069         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
38070         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
38071         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
38072         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
38073         * tests/unictype/test-block_list.c (ASSERT): Likewise.
38074         * tests/unictype/test-block_of.c (ASSERT): Likewise.
38075         * tests/unictype/test-block_test.c (ASSERT): Likewise.
38076         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
38077         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
38078         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
38079         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
38080         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
38081         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
38082         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
38083         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
38084         * tests/unictype/test-combining.c (ASSERT): Likewise.
38085         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
38086         * tests/unictype/test-digit.c (ASSERT): Likewise.
38087         * tests/unictype/test-mirror.c (ASSERT): Likewise.
38088         * tests/unictype/test-numeric.c (ASSERT): Likewise.
38089         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
38090         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
38091         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
38092         * tests/unictype/test-scripts.c (ASSERT): Likewise.
38093         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
38094         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
38095         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
38096         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
38097         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
38098         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
38099         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
38100         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
38101         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
38102         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
38103         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
38104         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
38105         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
38106         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
38107         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
38108         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
38109         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
38110         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
38111         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
38112         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
38113         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
38114         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
38115         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
38116         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
38117         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
38118         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
38119         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
38120         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
38121         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
38122         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
38123         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
38124         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
38125         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
38126         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
38127         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
38128         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
38129         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
38130         Reported by Eric Blake.
38131
38132 2008-04-11  Bruno Haible  <bruno@clisp.org>
38133
38134         * lib/wchar.in.h: Tweak comment.
38135
38136 2008-04-11  Bruno Haible  <bruno@clisp.org>
38137
38138         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
38139         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
38140         gl_COMMON.
38141         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
38142
38143 2008-04-11  Bruno Haible  <bruno@clisp.org>
38144
38145         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
38146
38147 2008-04-11  Simon Josefsson  <simon@josefsson.org>
38148
38149         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
38150         of attempting to use non-existing /dev/*random.  Based on patch
38151         from Adam Strzelecki <ono@java.pl> in
38152         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
38153
38154 2008-04-08  Bruno Haible  <bruno@clisp.org>
38155
38156         Add tentative support for emx+gcc.
38157         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
38158         * lib/fpurge.c (fpurge): Likewise.
38159         * lib/freadable.c (freadable): Likewise.
38160         * lib/freadahead.c (freadahead): Likewise.
38161         * lib/freading.c (freading): Likewise.
38162         * lib/freadptr.c (freadptr): Likewise.
38163         * lib/freadseek.c (freadptrinc): Likewise.
38164         * lib/fseeko.c (rpl_fseeko): Likewise.
38165         * lib/fseterr.c (fseterr): Likewise.
38166         * lib/fwritable.c (fwritable): Likewise.
38167         * lib/fwriting.c (fwriting): Likewise.
38168         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
38169
38170 2008-04-09  Eric Blake  <ebb9@byu.net>
38171
38172         Avoid some autoconf warnings.
38173         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
38174         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
38175         * m4/afs.m4 (gl_AFS): Likewise.
38176         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
38177         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
38178         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38179         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
38180         (gl_INTEGER_TYPE_SUFFIX): Likewise.
38181         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
38182         (AC_CHECK_DECLS_ONCE): Likewise.
38183         Rename file...
38184         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
38185         gnulib-tool requires autoconf 2.59 or better.
38186         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
38187
38188 2008-04-08  Eric Blake  <ebb9@byu.net>
38189
38190         Use 'git describe --match' if present (added in git 1.5.5).
38191         * build-aux/git-version-gen: Limit result to tags that match 'v*'
38192         if possible.
38193
38194 2008-04-08  Bruno Haible  <bruno@clisp.org>
38195
38196         Add tentative support for OpenServer.
38197         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
38198         _ptr, _cnt.
38199         * lib/fpurge.c (fpurge): Likewise.
38200         * lib/freadable.c (freadable): Likewise.
38201         * lib/freadahead.c (freadahead): Likewise.
38202         * lib/freading.c (freading): Likewise.
38203         * lib/freadptr.c (freadptr): Likewise.
38204         * lib/freadseek.c (freadptrinc): Likewise.
38205         * lib/fseeko.c (rpl_fseeko): Likewise.
38206         * lib/fseterr.c (fseterr): Likewise.
38207         * lib/fwritable.c (fwritable): Likewise.
38208         * lib/fwriting.c (fwriting): Likewise.
38209         Reported by Roger Cornelius <rac@tenzing.org> and
38210         Brian K. White <brian@aljex.com>.
38211
38212 2008-04-06  Jim Meyering  <meyering@redhat.com>
38213
38214         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
38215
38216 2008-04-06  Bruno Haible  <bruno@clisp.org>
38217
38218         Avoid possible error with non-ASCII bytes in UTF-8 locales.
38219         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
38220         * tests/test-printf-posix.sh: Likewise.
38221         * tests/test-vfprintf-posix.sh: Likewise.
38222         * tests/test-vprintf-posix.sh: Likewise.
38223         * tests/test-xprintf-posix.sh: Likewise.
38224
38225 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38226
38227         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
38228         hide error from 'ls', needed on OS/2.
38229         Report by Elbert Pol <elbert.pol@gmail.com>.
38230
38231 2008-04-04  Eric Blake  <ebb9@byu.net>
38232
38233         Make test-fseeko.c failures meaningful.
38234         * tests/test-fseeko.c: Print line number on failure.
38235         * tests/test-fseek.c: Likewise.
38236         Reported by Nelson H. F. Beebe.
38237
38238         Improve strtod bug detection check.
38239         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
38240         required for Solaris 10.
38241         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
38242
38243 2008-04-04  Bruno Haible  <bruno@clisp.org>
38244
38245         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
38246         by m4/setenv.m4.
38247
38248 2008-04-03  Eric Blake  <ebb9@byu.net>
38249
38250         Ensure sane .version contents.
38251         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
38252         version string.
38253         * build-aux/git-version-gen: Improve documentation.
38254
38255         Make GNU make output nicer.
38256         * top/GNUmakefile [!_have-Makefile]: Add dependency on
38257         MAKECMDGOALS to enforce message for all command line targets.  Set
38258         srcdir for use in maint.mk.
38259
38260         Another maintainer tweak.
38261         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
38262         a target that regenerates version.
38263
38264 2008-04-03  Jim Meyering  <meyering@redhat.com>
38265
38266         vc-list-files: don't cause coreutils "make po-check" failure
38267         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
38268
38269 2008-04-03  Eric Blake  <ebb9@byu.net>
38270
38271         Allow VPATH usage of vc-list-files.
38272         * build-aux/vc-list-files (scriptversion): Add timestamp.
38273         (options): Add --help, --version, -C.
38274         (CVS): Support installed cvsu.
38275
38276 2008-04-02  Bruno Haible  <bruno@clisp.org>
38277
38278         Avoid some "statement with no effect" warnings from gcc.
38279         * tests/test-wctype.c (main): Explicitly ignore unused values.
38280         Reported by Jim Meyering.
38281
38282 2008-04-02  Jim Meyering  <meyering@redhat.com>
38283
38284         Avoid some warnings from "gcc -Wshadow".
38285         * tests/test-frexp.c (exp): Define to a different identifier.
38286         * tests/test-frexpl.c (exp): Likewise.
38287
38288 2008-04-03  Jim Meyering  <meyering@redhat.com>
38289
38290         bootstrap: remove dangling *.[ch] symlinks from lib
38291         * build-aux/bootstrap [dangling symlink removal]: Move find's
38292         -depth option to precede all others, to avoid a warning.
38293         Remove *.[ch] files too, and from "$source_base" (usually lib/).
38294
38295 2008-04-02  Bruno Haible  <bruno@clisp.org>
38296
38297         Avoid some warnings from "gcc -Wshadow".
38298         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
38299         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
38300         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
38301         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
38302         Reported by Jim Meyering.
38303
38304 2008-04-01  Bruno Haible  <bruno@clisp.org>
38305
38306         Fix test to work on IRIX 6.5 with cc.
38307         * tests/test-math.c (numeric_equal): New function.
38308         (main): Use it.
38309
38310 2008-04-01  Bruno Haible  <bruno@clisp.org>
38311
38312         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
38313
38314 2008-04-01  Bruno Haible  <bruno@clisp.org>
38315
38316         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
38317         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38318         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
38319         (Depends-on): Remove math.
38320
38321         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
38322         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38323         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
38324         (Depends-on): Remove math.
38325
38326         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
38327         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38328         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
38329         (Depends-on): Remove math.
38330         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
38331         (Depends-on): Remove math.
38332
38333         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
38334         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38335         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
38336         (Depends-on): Remove math.
38337         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
38338         (Depends-on): Remove math.
38339
38340         * tests/test-round1.c: Include nan.h.
38341         (main): Use NaNd instead of NAN.
38342         * modules/round-tests (Files): Add tests/nan.h.
38343
38344         * tests/test-trunc1.c: Include nan.h.
38345         (main): Use NaNd instead of NAN.
38346         * modules/trunc-tests (Files): Add tests/nan.h.
38347
38348         * tests/test-roundf1.c: Include nan.h.
38349         (main): Use NaNf instead of NAN.
38350         * modules/roundf-tests (Files): Add tests/nan.h.
38351
38352         * tests/test-truncf1.c: Include nan.h.
38353         (main): Use NaNf instead of NAN.
38354         * modules/truncf-tests (Files): Add tests/nan.h.
38355
38356         * tests/test-ceilf1.c: Include nan.h.
38357         (main): Use NaNf instead of NAN.
38358         * modules/ceilf-tests (Files): Add tests/nan.h.
38359
38360         * tests/test-floorf1.c: Include nan.h.
38361         (main): Use NaNf instead of NAN.
38362         * modules/floorf-tests (Files): Add tests/nan.h.
38363
38364         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
38365         (main): Use NaNf instead of NAN.
38366         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
38367
38368         * tests/test-isnand.c: Include nan.h instead of <math.h>.
38369         (main): Use NaNd instead of NAN.
38370         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
38371
38372         * tests/test-frexp.c: Include nan.h.
38373         (main): Use NaNd instead of NAN.
38374         * modules/frexp-tests (Files): Add tests/nan.h.
38375
38376         * lib/isnan.c: Don't include <math.h>.
38377         (FUNC): Don't use NAN macro.
38378         * modules/isnand-nolibm (Depends-on): Remove math.
38379         * modules/isnanf-nolibm (Depends-on): Remove math.
38380         * modules/isnanl (Depends-on): Remove math.
38381         * modules/isnanl-nolibm (Depends-on): Remove math.
38382
38383         * tests/nan.h: New file.
38384
38385 2008-04-01  Eric Blake  <ebb9@byu.net>
38386
38387         Fix typos.
38388         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
38389         values to be the right type.
38390
38391         For now, cater to gnulib strtod inaccuracies.
38392         * tests/test-strtod.c (main): Allow 1-ulp error on expected
38393         fractional results.  While not as nice from a QoI perspective, it
38394         is a quicker patch than correctly implementing decimal to binary
38395         rounding.
38396
38397 2008-03-31  Eric Blake  <ebb9@byu.net>
38398
38399         Guarantee a definition of NAN.
38400         * lib/math.in.h (NAN): Define if missing.
38401         * tests/test-math.c (main): Test it.
38402         * doc/posix-headers/math.texi (math.h): Document this.
38403         * lib/isnan.c (rpl_isnand): Use it.
38404         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
38405         * tests/test-floorf1.c (NaN): Likewise.
38406         * tests/test-frexp.c (NaN): Likewise.
38407         * tests/test-isnand.c (NaN): Likewise.
38408         * tests/test-isnanf.c (NaN): Likewise.
38409         * tests/test-round1.c (NaN): Likewise.
38410         * tests/test-roundf1.c (NaN): Likewise.
38411         * tests/test-snprintf-posix.h (NaN): Likewise.
38412         * tests/test-sprintf-posix.h (NaN): Likewise.
38413         * tests/test-trunc1.c (NaN): Likewise.
38414         * tests/test-truncf1.c (NaN): Likewise.
38415         * tests/test-vasnprintf-posix.c (NaN): Likewise.
38416         * tests/test-vasprintf-posix.c (NaN): Likewise.
38417         * modules/isnand-nolibm (Depends-on): Add math.
38418         * modules/isnanf-nolibm (Depends-on): Likewise.
38419         * modules/isnanl (Depends-on): Likewise.
38420         * modules/isnanl-nolibm (Depends-on): Likewise.
38421         * modules/snprintf-posix-tests (Depends-on): Likewise.
38422         * modules/sprintf-posix-tests (Depends-on): Likewise.
38423         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
38424         * modules/vsprintf-posix-tests (Depends-on): Likewise.
38425         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
38426         * modules/vasprintf-posix-tests (Depends-on): Likewise.
38427
38428 2008-03-31  Bruno Haible  <bruno@clisp.org>
38429
38430         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
38431         * doc/posix-functions/strtod.texi: Likewise.
38432
38433 2008-03-31  Bruno Haible  <bruno@clisp.org>
38434
38435         * tests/test-strtod.c (main): Don't use C99 syntax.
38436
38437 2008-03-31  Bruno Haible  <bruno@clisp.org>
38438
38439         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
38440         Reported by Eric Blake.
38441
38442 2008-03-31  Jim Meyering  <meyering@redhat.com>
38443
38444         Don't compare actual signbit return values.
38445         * tests/test-strtod.c (main): Rather, compare only their
38446         zero/non-zero nature.
38447
38448 2008-03-31  Eric Blake  <ebb9@byu.net>
38449
38450         More strtod documentation.
38451         * doc/posix-functions/strtod.texi (strtod): Interpret more test
38452         failures as distinct bugs.
38453
38454 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
38455
38456         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
38457         Problem reported by Erik Benada in
38458         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
38459
38460 2008-03-30  Bruno Haible  <bruno@clisp.org>
38461
38462         * tests/test-strtod.c: Add comments about which assertion fails on which
38463         platform.
38464         * doc/posix-functions/strtod.texi: Add info about many more platforms.
38465
38466 2008-03-30  Eric Blake  <ebb9@byu.net>
38467
38468         Test signbit behavior on zeros.
38469         * tests/test-signbit.c (test_signbitf): Add tests for zero.
38470         (test_signbitd, test_signbitl): Likewise.
38471
38472         More strtod touchups.
38473         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
38474         sign of negative underflow, for now.  Use .5, not .1.
38475         * doc/posix-functions/strtod.texi (strtod): Mention these
38476         limitations.
38477         Reported by Jim Meyering.
38478
38479 2008-03-30  Bruno Haible  <bruno@clisp.org>
38480
38481         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
38482         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
38483
38484 2008-03-30  Bruno Haible  <bruno@clisp.org>
38485
38486         Avoid failure when attempting to return empty iconv results on some
38487         platforms.
38488         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
38489         allocation, don't report ENOMEM when the resulting string is empty.
38490
38491 2008-03-30  Bruno Haible  <bruno@clisp.org>
38492
38493         Fix buffer overrun.
38494         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
38495         Don't consider the width for tmp_length. Check count against tmp_length
38496         before doing the padding. Ensure enough allocation during padding.
38497
38498 2008-03-30  Eric Blake  <ebb9@byu.net>
38499
38500         strtod touchups.
38501         * lib/strtod.c (strtod): Avoid compiler warnings.
38502         Reported by Jim Meyering.
38503
38504 2008-03-30  Bruno Haible  <bruno@clisp.org>
38505
38506         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
38507         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
38508         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
38509         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
38510         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
38511         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
38512         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
38513         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
38514
38515         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
38516         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
38517         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
38518         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
38519         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
38520         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
38521         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
38522         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
38523
38524         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
38525         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
38526         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
38527         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
38528         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
38529         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
38530         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
38531         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
38532
38533         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
38534         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
38535
38536         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
38537         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
38538
38539         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
38540         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
38541
38542         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
38543         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
38544         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
38545
38546         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
38547         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
38548         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
38549
38550         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
38551         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
38552         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
38553
38554         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
38555         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
38556         * modules/vasprintf (Depends-on): Add EOVERFLOW.
38557
38558         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
38559         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
38560         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
38561         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
38562         (Depends-on): Add EOVERFLOW.
38563         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
38564         (Depends-on): Add EOVERFLOW.
38565         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
38566         (Depends-on): Add EOVERFLOW.
38567         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
38568         (Depends-on): Add EOVERFLOW.
38569         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
38570         (Depends-on): Add EOVERFLOW.
38571         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
38572         (Depends-on): Add EOVERFLOW.
38573         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
38574         (Depends-on): Add EOVERFLOW.
38575         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
38576         (Depends-on): Add EOVERFLOW.
38577
38578         * lib/sprintf.c (EOVERFLOW): Remove fallback.
38579         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
38580         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
38581
38582         * lib/snprintf.c (EOVERFLOW): Remove fallback.
38583         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
38584         * modules/snprintf (Depends-on): Add EOVERFLOW.
38585
38586         * lib/poll.c (EOVERFLOW): Remove fallback.
38587         * modules/poll (Depends-on): Add EOVERFLOW.
38588
38589         * lib/getugroups.c (EOVERFLOW): Remove fallback.
38590         * modules/getugroups (Depends-on): Add EOVERFLOW.
38591
38592         * lib/getdelim.c (EOVERFLOW): Remove fallback.
38593         * modules/getdelim (Depends-on): Add EOVERFLOW.
38594
38595         * lib/ftell.c (EOVERFLOW): Remove fallback.
38596         * modules/ftell (Depends-on): Add EOVERFLOW.
38597
38598         * lib/fprintf.c (EOVERFLOW): Remove fallback.
38599         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
38600         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
38601
38602         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
38603
38604         * modules/EOVERFLOW-tests: New file.
38605         * tests/test-EOVERFLOW.c: New file.
38606
38607         * modules/EOVERFLOW: New file.
38608         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
38609
38610 2008-03-30  Bruno Haible  <bruno@clisp.org>
38611
38612         Fix bug introduced on 2007-06-10.
38613         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
38614         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
38615
38616 2008-03-30  Bruno Haible  <bruno@clisp.org>
38617
38618         Improve freadseek's efficiency after ungetc.
38619         * lib/freadseek.c: Include freadahead.h.
38620         (freadptrinc): New function, extracted from freadseek.
38621         (freadseek): Use it in a loop. Use freadahead to determine the number
38622         of loop iterations.
38623         * modules/freadseek (Depends-on): Add freadahead.
38624         (configure.ac): Require AC_C_INLINE.
38625
38626 2008-03-30  Bruno Haible  <bruno@clisp.org>
38627
38628         * lib/freadseek.c (freadseek): Don't ignore the return value of
38629         freadptr.
38630
38631 2008-03-29  Eric Blake  <ebb9@byu.net>
38632
38633         Add hex float support.
38634         * modules/strtod (Depends-on): Add c-ctype.
38635         (Link): Mention POW_LIB.
38636         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
38637         whitespace between 'e' and exponent.
38638         * tests/test-strtod.c (main): Enable hex float tests.
38639         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
38640         now provides.
38641
38642         Document various strtod bugs, with some fixes.
38643         * doc/posix-functions/strtod.texi (strtod): Document bugs with
38644         "-0x", "inf", "nan", and hex constants.
38645         * doc/posix-functions/atof.texi (atof): Likewise.
38646         * modules/stdlib (Makefile.am): Support strtod.
38647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
38648         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
38649         detect additional strtod bugs.
38650         * lib/stdlib.in.h (rpl_strtod): Add declarations.
38651         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
38652         bool where appropriate.  Parse 'inf' and 'nan'.
38653         * tests/test-strtod.c: New file.
38654         * modules/strtod (Depends-on): Add stdbool, stdlib.
38655         (configure.ac): Turn on module indicator.
38656         * modules/strtod-tests: New module.
38657
38658 2008-03-29  Eric Blake  <ebb9@byu.net>
38659
38660         Fix ftell on mingw.
38661         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
38662         * modules/ftell-tests (Depends-on): Add binary-io.
38663         * modules/ftello-tests (Depends-on): Likewise.
38664         * tests/test-ftell.c (main): Enhance test to cover behavior after
38665         ungetc.  Enforce binary mode.
38666         * tests/test-ftello.c (main): Likewise.
38667
38668         Pass test-freadseek on cygwin.
38669         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
38670         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
38671         ungetc buffer.
38672
38673         * tests/test-fflush2.c (main): Fix typo.
38674
38675 2008-03-29  Bruno Haible  <bruno@clisp.org>
38676
38677         * tests/test-fflush2.c (main): Temporarily disable the contents of
38678         this test.
38679         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
38680         Reported by Eric Blake.
38681
38682 2008-03-28  Simon Josefsson  <simon@josefsson.org>
38683
38684         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
38685         (GC_SHA224_DIGEST_SIZE): Add.
38686
38687         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
38688         (gc_hash_digest_length): Likewise.
38689         (gc_hash_buffer): Likewise.
38690
38691 2008-03-25  Bruno Haible  <bruno@clisp.org>
38692
38693         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
38694         detail which gettext release to use.
38695         Reported by Simon Josefsson.
38696
38697 2008-03-26  Jim Meyering  <meyering@redhat.com>
38698
38699         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
38700         * modules/gnumakefile (clean-GNUmakefile): Also, use
38701         test ... && ... || : syntax rather than if-then ... fi.
38702
38703         gnumakefile: Don't double-quote-expand $(VPATH) value.
38704         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
38705
38706 2008-03-24  Eric Blake  <ebb9@byu.net>
38707
38708         Alter GNUmakefile to install into top directory.
38709         * modules/maintainer-makefile: Split, and add dependency...
38710         * modules/gnumakefile: to this new module.
38711         * build-aux/GNUmakefile: Move...
38712         * top/GNUmakefile: ...here.
38713         * build-aux/maint.mk: Move...
38714         * top/maint.mk: ...here.
38715         * MODULES.html.sh (Support for maintaining...): Document new
38716         module.
38717
38718 2008-03-23  Bruno Haible  <bruno@clisp.org>
38719
38720         * gnulib-tool: New options --vc-files, --no-vc-files.
38721         (func_usage): Document them.
38722         (vc_files): New variable.
38723         (func_import): Consider vc_files.
38724         (func_create_testdir): Set vc_files to empty.
38725         Suggested by Jim Meyering and Karl Berry.
38726
38727 2008-03-23  Bruno Haible  <bruno@clisp.org>
38728
38729         Fix regex compilation error on HP-UX 11.
38730         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
38731         * modules/regex (Files): Add m4/mbstate_t.m4.
38732         Reported by Ton Voon <ton.voon@altinity.com>.
38733
38734 2008-03-23  Bruno Haible  <bruno@clisp.org>
38735
38736         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
38737
38738 2008-03-23  Eric Blake  <ebb9@byu.net>
38739             Bruno Haible  <bruno@clisp.org>
38740
38741         Install files from top/ in the destination directory.
38742         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
38743         augmentation also for the files from top/.
38744         (func_import, func_create_testdir): Rewrite file names:
38745         top/filename -> filename.
38746
38747 2008-03-23  Bruno Haible  <bruno@clisp.org>
38748
38749         Tweak "gnulib --version" output.
38750         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
38751
38752 2008-03-23  Bruno Haible  <bruno@clisp.org>
38753
38754         Tweak "gnulib --version" output.
38755         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
38756         rather than contents of ChangeLog, when possible.
38757
38758 2008-03-21  Eric Blake  <ebb9@byu.net>
38759
38760         More --version tweaks.
38761         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
38762         date of last ChangeLog entry.
38763
38764 2008-03-21  Jim Meyering  <meyering@redhat.com>
38765
38766         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
38767
38768 2008-03-20  Eric Blake  <ebb9@byu.net>
38769
38770         VPATH fix.
38771         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
38772
38773 2008-03-20  Simon Josefsson  <simon@josefsson.org>
38774
38775         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
38776         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
38777
38778 2008-03-20  Eric Blake  <ebb9@byu.net>
38779
38780         Sync GNUmakefile with coreutils.
38781         * build-aux/GNUmakefile (have-Makefile): Rename...
38782         (_have-Makefile): ...to this, for namespace consideration.
38783         (GNUmakefile.cfg): Include, if present.
38784         (_autoreconf): Define a default.
38785         (_is-dist-target): New rule for rebuilds to pick up intra-release
38786         version.
38787         (maint-cfg.mk): Rename...
38788         (cfg.mk): ...to this.
38789
38790 2008-03-18  Jim Meyering  <meyering@redhat.com>
38791
38792         New script and module: mktempd
38793         * MODULES.html.sh (maint+release support): Add mktempd.
38794         * build-aux/mktempd: New file.
38795         * modules/mktempd: New file.
38796
38797 2008-03-15  Jim Meyering  <meyering@redhat.com>
38798
38799         Undo last change.
38800         * lib/sha1.c, lib/md5.c: 63 != ~63.
38801         Reported by Andreas Schwab.
38802
38803         sha1.c, md5.c: Hoist a redundant expression.
38804         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
38805         "ctx->buflen" only once, before calling *_process_block.
38806         * lib/md5.c (md5_process_bytes): Likewise.
38807
38808 2008-03-14  Eric Blake  <ebb9@byu.net>
38809
38810         Bump copyright year in files generated by gnulib-tool.
38811         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
38812         gnulib-tool, rather than hard-coding it.
38813
38814         Fix 'gnulib-tool --version' output to work with git.
38815         * gnulib-tool (func_gnulib_dir): New function, extracted from...
38816         (startup): ...here.
38817         (func_version): Use it to invoke git-version-gen, rather than
38818         relying on CVS keyword expansion.  Modernize wording.
38819         (cvsdatestamp, last_checkin_date, version): Kill unused
38820         variables.
38821
38822 2008-03-12  Jim Meyering  <meyering@redhat.com>
38823
38824         Recognize optional cast of the argument to free.
38825         * build-aux/useless-if-before-free: Update regexps.
38826
38827         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
38828
38829 2008-03-11  Bruno Haible  <bruno@clisp.org>
38830
38831         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
38832         by a single package.
38833         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
38834         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
38835         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
38836         Reported by Sam Steingold <sds@gnu.org>.
38837
38838 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38839
38840         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
38841         repositories.
38842
38843 2008-03-11  Bruno Haible  <bruno@clisp.org>
38844
38845         Avoid conflicts between local macro definitions.
38846         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
38847         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
38848
38849 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
38850             Bruno Haible  <bruno@clisp.org>
38851
38852         Make va_copy work with some version of xlc on AIX 5.1.
38853         * lib/stdarg.in.h: New file.
38854         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
38855         On AIX, use a <stdarg.h> file substitute.
38856         * modules/stdarg (Files): Add lib/stdarg.in.h.
38857         (Depends-on): Add include_next.
38858         (Makefile.am): Build a stdarg.h substitute if requested.
38859         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
38860
38861 2008-03-10  Bruno Haible  <bruno@clisp.org>
38862
38863         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
38864         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38865         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
38866
38867 2008-03-10  Bruno Haible  <bruno@clisp.org>
38868
38869         * modules/stdlib (Depends-on): Add include_next, remove
38870         absolute-header.
38871
38872 2008-03-09  Bruno Haible  <bruno@clisp.org>
38873
38874         * lib/freadahead.h (freadahead): Document more precisely.
38875         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
38876         the sum of both buffer sizes.
38877         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
38878         * NEWS: Document the change.
38879
38880 2008-03-09  Bruno Haible  <bruno@clisp.org>
38881
38882         Extend freadptr to return also the buffer size.
38883         * lib/freadptr.h (freadptr): Add sizep argument.
38884         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
38885         (freadptr): Add sizep argument. Determine buffer size like freadahead
38886         does.
38887         * tests/test-freadptr.c: Don't include freadahead.h.
38888         (main): Adapt for new calling convention of freadptr.
38889         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
38890         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
38891         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
38892         tests/test-freadptr2.sh.
38893         (Depends): Remove freadahead.
38894         (TESTS): Add test-freadptr2.sh.
38895         (check_PROGRAMS): Add test-freadptr2.
38896
38897 2008-03-09  Bruno Haible  <bruno@clisp.org>
38898
38899         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
38900         Report and solution by Simon Josefsson.
38901
38902 2008-03-06  Bruno Haible  <bruno@clisp.org>
38903
38904         Make fflush after ungetc work on BSD platforms.
38905         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
38906         * tests/test-fflush2.c: New file.
38907         * tests/test-fflush2.sh: New file.
38908         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
38909         tests/test-fflush2.c.
38910         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
38911         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
38912
38913 2008-03-06  Eric Blake  <ebb9@byu.net>
38914
38915         Likewise for ftello.
38916         * modules/ftello (Dependencies): Add extensions.
38917         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
38918
38919 2008-03-06  Bruno Haible  <bruno@clisp.org>
38920
38921         * modules/fseeko (Dependencies): Add extensions.
38922         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
38923         Needed on glibc systems.
38924
38925 2008-03-06  Bruno Haible  <bruno@clisp.org>
38926
38927         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
38928         email address.
38929         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
38930
38931 2008-03-06  Bruno Haible  <bruno@clisp.org>
38932
38933         * users.txt: Add libgnupdf.
38934
38935 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
38936
38937         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
38938         (Header File Substitutes, Function Substitutes,
38939         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
38940         (Build robot for gnulib): Fix typo.
38941
38942 2008-03-06  Bruno Haible  <bruno@clisp.org>
38943
38944         * doc/gnulib-tool.texi (VCS Issues): Small updates.
38945         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
38946
38947 2008-03-06  Bruno Haible  <bruno@clisp.org>
38948
38949         * doc/func.texi: New file, extracted from doc/gnulib.texi.
38950         * doc/gnulib.texi: Include it.
38951
38952 2008-03-06  Simon Josefsson  <simon@josefsson.org>
38953
38954         * modules/func (License): Change license to unlimited; there was
38955         no LGPL parts in the module anyway.
38956
38957 2008-03-06  Simon Josefsson  <simon@josefsson.org>
38958
38959         * modules/__func__: Renamed to modules/func.
38960         * modules/__func__-tests: Renamed to modules/func-tests.
38961         * tests/test-__func__.c: Renamed to tests/test-func.c.
38962         * m4/__func__.m4: Renamed to m4/func.m4.
38963         * doc/gnulib.texi (__func__): Section renamed to func.
38964         Suggested by Eric Blake <ebb9@byu.net>.
38965
38966 2008-03-06  Simon Josefsson  <simon@josefsson.org>
38967
38968         * doc/gnulib.texi (__func__): Use C99 terminology when talking
38969         about __func__.  Make example self-contained.  Suggested by Eric
38970         Blake <ebb9@byu.net>.
38971
38972         * tests/test-__func__.c (main): Avoid extraneous () around __func.
38973         Suggested by Eric Blake <ebb9@byu.net>.
38974
38975 2008-03-06  Simon Josefsson  <simon@josefsson.org>
38976
38977         * modules/__func__: New file.
38978         * modules/__func__-tests: New file.
38979         * tests/test-__func__.c: New file.
38980         * m4/__func__.m4: New file.
38981         * doc/gnulib.texi (__func__): Document __func__ module.
38982
38983 2008-03-05  Simon Josefsson  <simon@josefsson.org>
38984
38985         * modules/byteswap (License): Re-license as LGPLv2+.
38986
38987 2008-03-05  Simon Josefsson  <simon@josefsson.org>
38988
38989         * doc/Makefile: Add pdf target.
38990
38991 2008-03-05  Simon Josefsson  <simon@josefsson.org>
38992
38993         * modules/inline (License): Use 'unlimited', since there are only
38994         *.m4 files in this module.
38995
38996 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
38997             Bruno Haible  <bruno@clisp.org>
38998
38999         Add support for HP C 7.1 on OpenVMS 8.3.
39000         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
39001
39002 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
39003
39004         Update VMS specifics.
39005         * lib/getopt.c [VMS]: Remove include of unixlib.h.
39006
39007 2008-03-02  Jim Meyering  <meyering@redhat.com>
39008
39009         Remove the last dependency on the "free" module.
39010         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
39011         Reported by Bob Proulx.
39012
39013         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
39014
39015         Remove useless "if" tests before free.  Deprecate "free" module.
39016         * doc/posix-functions/free.texi: Mention that this
39017         module is no longer useful.
39018         * modules/free (Notice): Say this module is obsolete.
39019         * modules/readutmp (Depends-on): Remove free.
39020         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
39021         * lib/putenv.c (putenv): Likewise.
39022         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
39023         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
39024         * tests/test-c-strcasestr.c (main): Likewise.
39025         * tests/test-c-strstr.c (main): Likewise.
39026         * tests/test-mbscasestr1.c (main): Likewise.
39027         * tests/test-mbscasestr2.c (main): Likewise.
39028         * tests/test-mbsstr1.c (main): Likewise.
39029         * tests/test-mbsstr2.c (main): Likewise.
39030         * tests/test-memmem.c (main): Likewise.
39031         * tests/test-strcasestr.c (main): Likewise.
39032         * tests/test-striconv.c (main): Likewise.
39033         * tests/test-striconveh.c (main): Likewise.
39034         * tests/test-striconveha.c (main): Likewise.
39035         * tests/test-strstr.c (main): Likewise.
39036
39037         * build-aux/git-version-gen: Adjust a comment and the Usage string.
39038
39039         bootstrap: sync from coreutils again
39040         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
39041
39042 2008-03-01  Jim Meyering  <meyering@redhat.com>
39043
39044         bootstrap: sync from coreutils
39045         * build-aux/bootstrap (update_po_files): Copy a .po file into place
39046         also when the target doesn't exist.
39047
39048 2008-03-01  Eric Blake  <ebb9@byu.net>
39049
39050         Fix bugs in last patch.
39051         * lib/memchr2.c (memchr2): Fix typo.
39052         * tests/test-memchr2.c: Test previous bug, and don't use GNU
39053         extension.
39054         Reported by Bruce Korb.
39055
39056         New module 'memchr2'.
39057         * modules/memchr2: New file.
39058         * modules/memchr2-tests: Likewise.
39059         * lib/memchr2.h: Likewise.
39060         * lib/memchr2.c: Likewise, based on memchr.c.
39061         * tests/test-memchr2.c: New test.
39062         * MODULES.html.sh (String handling): Add memchr2.
39063
39064 2008-02-29  Bruno Haible  <bruno@clisp.org>
39065
39066         * modules/freadseek-tests: New file.
39067         * tests/test-freadseek.sh: New file.
39068         * tests/test-freadseek.c: New file.
39069
39070         New module 'freadseek'.
39071         * modules/freadseek: New file.
39072         * lib/freadseek.h: New file.
39073         * lib/freadseek.c: New file.
39074         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
39075
39076 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
39077
39078         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
39079         wydawca.
39080
39081         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
39082         program_invocation_name and program_invocation_short_name are
39083         present.
39084
39085 2008-02-28  Bruno Haible  <bruno@clisp.org>
39086
39087         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
39088         * tests/test-freadptr.sh: Also test non-seekable stdin.
39089
39090 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
39091
39092         * build-aux/bootstrap (source_base, m4_base)
39093         (doc_base, tests_base): New variables.
39094         (gnulib_tool_options): Do not hardcode base directories, use
39095         the above variables instead.
39096
39097 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
39098
39099         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
39100
39101 2008-02-28  Bruno Haible  <bruno@clisp.org>
39102
39103         * modules/freadptr-tests: New file.
39104         * tests/test-freadptr.sh: New file.
39105         * tests/test-freadptr.c: New file.
39106
39107         New module 'freadptr'.
39108         * modules/freadptr: New file.
39109         * lib/freadptr.h: New file.
39110         * lib/freadptr.c: New file.
39111         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
39112
39113 2008-02-26  Karl Berry  <karl@freefriends.org>
39114
39115         Sync from Libtool:
39116         * libltdl/argz.c (argz_add, argz_count): New functions.
39117         * libltdl/argz.in.h: Declare them.
39118         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
39119
39120 2008-02-22  Bruno Haible  <bruno@clisp.org>
39121
39122         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
39123         is a pointer type.  Needed for HP-UX 10.
39124         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
39125         * doc/posix-functions/gmtime_r.texi: Likewise.
39126         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
39127
39128 2008-02-24  Bruno Haible  <bruno@clisp.org>
39129
39130         * modules/environ-tests: New file.
39131         * tests/test-environ.c: New file.
39132
39133         New module 'environ'.
39134         * modules/environ: New file.
39135         * lib/unistd.in.h (environ): New declaration.
39136         * m4/environ.m4: New file.
39137         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
39138         after use.
39139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
39140         HAVE_DECL_ENVIRON.
39141         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
39142         HAVE_DECL_ENVIRON.
39143         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
39144         wrong claim that 'environ' is missing on some systems.
39145         * modules/execute (Depends-on): Add environ.
39146         * lib/execute.c (environ): Remove fallback declaration.
39147         * modules/pipe (Depends-on): Add environ.
39148         * lib/pipe.c (environ): Remove fallback declaration.
39149         * modules/setenv (Depends-on): Add environ.
39150         * lib/setenv.c (environ): Remove fallback declaration.
39151         * modules/unsetenv (Depends-on): Add environ.
39152         * lib/unsetenv.c (environ): Remove fallback declaration.
39153         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
39154         m4/environ.m4.
39155         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
39156         (gl_PREREQ_UNSETENV): Likewise.
39157
39158 2008-02-24  Bruno Haible  <bruno@clisp.org>
39159
39160         * doc/posix-functions/environ.texi: Document the MacOS X problem.
39161
39162 2008-02-20  Bob Proulx  <bob@proulx.com>
39163
39164         Enable use of older two part flavor 'git describe'.
39165         * build-aux/git-version-gen: If using the older two part flavor of
39166         git version then recreate the third part now present in the
39167         newer three part flavor of git describe.
39168
39169 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
39170
39171         * lib/fts.c (fts_build): Typo correction to comment.
39172
39173 2008-02-17  Bruno Haible  <bruno@clisp.org>
39174
39175         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
39176         generating no-op conflicts.
39177
39178 2008-02-17  Bruno Haible  <bruno@clisp.org>
39179
39180         Speed up by 10%.
39181         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
39182         result_entries, rather than an index-based loop.
39183
39184 2008-02-17  Bruno Haible  <bruno@clisp.org>
39185
39186         Speed up by 25%.
39187         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
39188         'hashcode_cached'.
39189         (entry_create): New function.
39190         (entry_hashcode): Use the cached hashcode if possible.
39191         (read_changelog_file, try_split_merged_entry): Use entry_create.
39192
39193 2008-02-17  Bruno Haible  <bruno@clisp.org>
39194
39195         Speed up from O(n^2) to O(n) for long ChangeLog files.
39196         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
39197         (read_changelog_file): Change implementation of entries_reversed list
39198         to rbtreehash.
39199         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
39200
39201 2008-02-17  Bruno Haible  <bruno@clisp.org>
39202
39203         New option --split-merged-entry.
39204         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
39205         (find_paragraph_end, try_split_merged_entry): New functions.
39206         (long_options): Add option --split-merged-entry.
39207         (usage): Document option --split-merged-entry.
39208         (main): Implement option --split-merged-entry.
39209         Reported by Eric Blake.
39210
39211 2008-02-17  Bruno Haible  <bruno@clisp.org>
39212
39213         * lib/git-merge-changelog.c: Include c-strstr.h.
39214         (main): Support the "git pull --rebase" situation.
39215         * modules/git-merge-changelog (Depends-on): Add c-strstr.
39216         Reported by Eric Blake.
39217
39218 2008-02-16  Eric Blake  <ebb9@byu.net>
39219
39220         Avoid doubling \ in common case of "c-maybe" quoting style.
39221         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
39222         eliding outer quotes.
39223         * lib/quotearg.h: Document this.
39224         * tests/test-quotearg.c (result_strings, inputs, results_g)
39225         (flag_results, locale_results): Test it by adding a new string to
39226         each test group.
39227         (compare_strings): Test new string.
39228
39229 2008-02-13  Eric Blake  <ebb9@byu.net>
39230
39231         Avoid trigraph quoting in default output.
39232         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
39233         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
39234         unless explicitly requested.
39235         * tests/test-quotearg.c (flag_results, main): Add additional tests.
39236
39237 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
39238
39239         Don't rely on signed integer overflowing to negative value.
39240         * lib/getugroups.c (getugroups): Include <limits.h>.
39241         Instead, compare against INT_MAX, and increment only if the test passes.
39242
39243 2008-02-13  Jim Meyering  <meyering@redhat.com>
39244         and Eric Blake  <ebb9@byu.net>
39245
39246         Avoid shadowing warning and compile errors on Linux.
39247         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
39248         forwarding macros on Linux.
39249         (dcgettext): Define a stub, for Linux.
39250         (results_g, main): Avoid warnings.
39251
39252 2008-02-12  Eric Blake  <ebb9@byu.net>
39253
39254         Silence warning in last patch.
39255         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
39256
39257         Quotearg part 4: add tests, fix c-maybe colon quoting.
39258         * lib/quotearg.h: Improve documentation.
39259         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
39260         escapes when adding outer quotes.  When quoting trigraphs, use
39261         valid C notation.  When quoting NUL, omit extra characters if next
39262         character is not digit.  Alter prototype.
39263         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
39264         callers.
39265         * modules/quotearg-tests: New module.
39266         * tests/test-quotearg.c: New test.
39267
39268 2008-02-07  Eric Blake  <ebb9@byu.net>
39269
39270         Quotearg part 3: add flag to control outer quote elision.
39271         * lib/quotearg.h (c_maybe_quoting_style): New style.
39272         (enum quoting_flags): Better documentation of flags.
39273         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
39274         c-maybe style.
39275         (quotearg_buffer_restyled): Handle new flag to elide outer
39276         quotes.
39277
39278         Quotearg part 2: add flag that can control NUL elision.
39279         * lib/quotearg.h (set_quoting_flags): New prototype.
39280         * lib/quotearg.c (struct quoting_options): Add flag field.
39281         (set_quoting_flags): New function.
39282         (quotearg_buffer_restyled): Add flags parameter.
39283         (quotearg_alloc_mem): Set the flag if length cannot be returned.
39284         (quotearg_n_options): Set the flag, since length cannot be
39285         returned.
39286         (quoting_options_from_style): Default flags correctly.
39287
39288         Quotearg part 1: more wrappers, restore quotearg_char state.
39289         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
39290         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
39291         (quotearg_colon_mem): New wrappers.
39292         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
39293         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
39294         functions.
39295         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
39296         (quotearg_colon_mem): New functions.
39297
39298 2008-02-11  Bruno Haible  <bruno@clisp.org>
39299
39300         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
39301         library in the current directory: it does not work with parallel make.
39302         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39303
39304 2008-02-11  Bruno Haible  <bruno@clisp.org>
39305
39306         * .gitattributes: New file.
39307
39308 2008-02-11  Jim Meyering  <meyering@redhat.com>
39309
39310         useless-if-before-free: Fix reversed exit values.
39311         * build-aux/useless-if-before-free: Use correct values
39312         for EXIT_MATCH and EXIT_NO_MATCH.
39313
39314         * build-aux/useless-if-before-free: Close stdout carefully.
39315
39316 2008-02-10  Bruno Haible  <bruno@clisp.org>
39317
39318         New module 'git-merge-changelog'.
39319         * modules/git-merge-changelog: New file.
39320         * lib/git-merge-changelog.c: New file.
39321
39322 2008-02-10  Jim Meyering  <meyering@redhat.com>
39323
39324         useless-if-before-free: New option: --list (-l).
39325
39326         useless-if-before-free: Don't exit immediately upon open failure.
39327         * build-aux/useless-if-before-free: Exit 2 for errors.
39328         Upon failure to open a file, don't exit immediately.
39329         Rather, just warn and continue with any remaining files.
39330
39331 2008-02-10  Bruno Haible  <bruno@clisp.org>
39332
39333         New abstract list operation 'node_set_value'.
39334         * lib/gl_list.h (gl_list_node_set_value): New function.
39335         (struct gl_list_implementation): New field node_set_value.
39336         * lib/gl_list.c (gl_list_node_set_value): New function.
39337         * lib/gl_array_list.c (gl_array_node_set_value): New function.
39338         (gl_array_list_implementation): Update.
39339         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
39340         (gl_carray_list_implementation): Update.
39341         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
39342         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
39343         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
39344         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
39345         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
39346         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
39347         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
39348         Update.
39349         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
39350         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
39351         (gl_sublist_list_implementation): Update.
39352
39353 2008-02-10  Bruno Haible  <bruno@clisp.org>
39354
39355         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
39356         Needed when ELEMENT is #defined to 'some_type *'.
39357
39358 2008-02-10  Jim Meyering  <meyering@redhat.com>
39359
39360         New script and module: useless-if-before-free
39361         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
39362         * build-aux/useless-if-before-free: New file.
39363         * modules/useless-if-before-free: New file.
39364
39365         * build-aux/gitlog-to-changelog: Use committer date, not author date.
39366
39367         xstrtol_error: Fix typo.
39368         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
39369         s/exit_failure/exit_status/.
39370
39371 2008-02-09  Jim Meyering  <meyering@redhat.com>
39372
39373         New script and module: gitlog-to-changelog
39374         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
39375         * modules/gitlog-to-changelog: New file.
39376         * build-aux/gitlog-to-changelog: New file.
39377
39378 2008-02-08  Jim Meyering  <meyering@redhat.com>
39379
39380         Avoid two "parameter unused" warnings.
39381         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
39382         Mark "st" as used.
39383
39384         Use "git COMMAND", not "git-COMMAND".
39385         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
39386         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
39387         * build-aux/git-version-gen: Use "git status", not "git-status".
39388
39389 2008-02-07  Bruno Haible  <bruno@clisp.org>
39390
39391         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
39392         Avoids a crash on Windows Vista.
39393         Reported by Adam Strzelecki <ono@java.pl> via
39394         Simon Josefsson <simon@josefsson.org>.
39395
39396 2008-02-06  Bruno Haible  <bruno@clisp.org>
39397
39398         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
39399         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
39400         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
39401         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
39402         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39403         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39404         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
39405         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
39406         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39407         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39408         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39409         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39410         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39411         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39412         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39413         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
39414         left-adjust flag.
39415         * tests/test-snprintf-posix.h (test_function): Likewise.
39416         * tests/test-sprintf-posix.h (test_function): Likewise.
39417         * tests/test-vasprintf-posix.c (test_function): Likewise.
39418         * doc/posix-functions/fprintf.texi: Update.
39419         * doc/posix-functions/printf.texi: Update.
39420         * doc/posix-functions/snprintf.texi: Update.
39421         * doc/posix-functions/sprintf.texi: Update.
39422         * doc/posix-functions/vfprintf.texi: Update.
39423         * doc/posix-functions/vprintf.texi: Update.
39424         * doc/posix-functions/vsnprintf.texi: Update.
39425         * doc/posix-functions/vsprintf.texi: Update.
39426         Reported by Peter Fales <psfales@alcatel-lucent.com>.
39427
39428 2008-02-06  Bruno Haible  <bruno@clisp.org>
39429
39430         Fix bug introduced on 2008-01-26.
39431         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
39432
39433 2008-02-06  Bruno Haible  <bruno@clisp.org>
39434
39435         Fix bug introduced on 2007-06-10.
39436         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
39437         !NEED_PRINTF_FLAG_ZERO.
39438
39439 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
39440
39441         getloadavg: use libperfstat on AIX5
39442         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
39443
39444 2008-02-03  Bruno Haible  <bruno@clisp.org>
39445
39446         * lib/diffseq.h: Add comments about required #includes.
39447         Reported by Michael Biggs <gnulib@doubleplum.net>.
39448
39449 2008-02-01  Bruno Haible  <bruno@clisp.org>
39450
39451         * users.txt: Add gnuit.
39452
39453 2008-01-31  Bruno Haible  <bruno@clisp.org>
39454
39455         * lib/md4.c (set_uint32): Mark as inline.
39456         * lib/md5.c (set_uint32): Likewise.
39457         * lib/sha1.c (set_uint32): Likewise.
39458         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
39459         * m4/md5.m4 (gl_MD5): Likewise.
39460         * m4/sha1.m4 (gl_SHA1): Likewise.
39461
39462 2008-01-31  Jim Meyering  <meyering@redhat.com>
39463
39464         Use "sizeof VAR", rather than a literal "4".
39465         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
39466         * lib/md4.c (md4_read_ctx): Likewise.
39467         * lib/sha1.c (sha1_read_ctx): Likewise.
39468
39469 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39470
39471         * tests/test-sha1.c: New file, based on test-md5.c.
39472
39473         * modules/crypto/sha1-tests: New file.
39474
39475 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39476
39477         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
39478
39479 2008-01-31  Jim Meyering  <meyering@redhat.com>
39480
39481         Prefer "sizeof v" over the equivalent "4".
39482         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
39483         * lib/md5.c (set_uint32): Likewise.
39484         * lib/sha1.c (set_uint32): Likewise.
39485
39486 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39487
39488         * lib/sha1.c (set_uint32): Mark function as static.
39489
39490 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39491
39492         md2: clarify comments to say that alignment is not required.
39493         * lib/md2.h: Remove warning about alignment in comment.
39494         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
39495         never been required.
39496
39497 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39498
39499         md4: adapt alignment constraint fix from sha1.
39500         * lib/md4.c (set_uint32): New function, from sha1.c
39501         (md4_read_ctx): Use it.
39502         (md4_finish_ctx): Doc fix.
39503         * lib/md4.h: Doc fix.
39504
39505 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39506
39507         md5: adapt alignment constraint fix from sha1.
39508         * lib/md5.c (set_uint32): New function, from sha1.c
39509         (md5_read_ctx): Use it.
39510         (md5_finish_ctx): Doc fix.
39511         * lib/md5.h: Doc fix.
39512
39513 2008-01-30  Peter Palfrader  <weasel@debian.org>
39514
39515         sha1: remove the result buffer alignment constraint
39516         * lib/sha1.c (set_uint32): New function.
39517         (sha1_read_ctx): Rewrite to remove the result buffer alignment
39518         constraint.
39519         (sha1_finish_ctx): Remove comment warning about alignment constraint.
39520         * lib/sha1.h: Likewise.
39521
39522 2008-01-30  Andreas Schwab  <schwab@suse.de>
39523             Bruno Haible  <bruno@clisp.org>
39524
39525         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
39526         correct definition of LDBL_MIN_EXP.
39527
39528 2008-01-30  Karl Berry  <karl@gnu.org>
39529
39530         * config/srclist-update: try to preserve x bit on updates.
39531         * config/srclistvars.sh: update for karl.
39532
39533 2008-01-29  Jim Meyering  <meyering@redhat.com>
39534
39535         vasnprintf.c: Avoid warning about unused label
39536         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
39537         "overflow" label definition and associated code with the
39538         same cpp condition that guards the sole use of that label.
39539
39540 2008-01-26  Bruno Haible  <bruno@clisp.org>
39541
39542         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
39543         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
39544         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
39545         * lib/isnanl-nolibm.h (isnanl): Likewise.
39546         Reported by Paul Eggert <eggert@cs.ucla.edu>.
39547
39548 2008-01-26  Bruno Haible  <bruno@clisp.org>
39549
39550         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
39551         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
39552
39553 2008-01-26  Bruno Haible  <bruno@clisp.org>
39554
39555         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
39556         GCC >= 4.0 built-in.
39557         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
39558
39559 2008-01-26  Bruno Haible  <bruno@clisp.org>
39560
39561         Rename isnan, applicable to 'double' only, to isnand.
39562         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
39563         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
39564         (configure.ac): Update.
39565         (Include): Replace "isnan.h" with "isnand.h".
39566         * m4/isnand.m4: Renamed from m4/isnan.m4.
39567         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
39568         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
39569         instead of isnan.c.
39570         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
39571         instead of HAVE_ISNAN_IN_LIBC.
39572         (isnand): Renamed from isnan.
39573         * lib/isnand.c: New file.
39574         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
39575         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
39576         (Makefile.am): Update.
39577         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
39578         Include isnand.h instead of isnan.h.
39579         (main): Test isnand instead of isnan.
39580         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
39581         isnan-nolibm.
39582         * modules/frexp (Depends-on): Likewise.
39583         * modules/frexp-tests (Depends-on): Likewise.
39584         * modules/frexp-nolibm (Depends-on): Likewise.
39585         * modules/frexp-nolibm-tests (Depends-on): Likewise.
39586         * modules/isfinite (Depends-on): Likewise.
39587         * modules/round-tests (Depends-on): Likewise.
39588         * modules/signbit (Depends-on): Likewise.
39589         * modules/signbit-tests (Depends-on): Likewise.
39590         * modules/snprintf-posix (Depends-on): Likewise.
39591         * modules/sprintf-posix (Depends-on): Likewise.
39592         * modules/trunc-tests (Depends-on): Likewise.
39593         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39594         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39595         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39596         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39597         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39598         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39599         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39600         * modules/vasnprintf-posix (Depends-on): Likewise.
39601         * modules/vasprintf-posix (Depends-on): Likewise.
39602         * modules/vfprintf-posix (Depends-on): Likewise.
39603         * modules/vsnprintf-posix (Depends-on): Likewise.
39604         * modules/vsprintf-posix (Depends-on): Likewise.
39605         * lib/frexp.c: Include isnand.h instead of isnan.h.
39606         (ISNAN): Set to isnand instead of isnan.
39607         * lib/isfinite.c: Include isnand.h instead of isnan.h.
39608         (gl_isfinited): Use isnand instead of isnan.
39609         * lib/signbitd.c: Include isnand.h instead of isnan.h.
39610         (gl_signbitd): Use isnand instead of isnan.
39611         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
39612         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
39613         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
39614         (main): Use isnand instead of isnan.
39615         * tests/test-round1.c: Include isnand.h.
39616         (main): Use isnand instead of isnan.
39617         * tests/test-round2.c: Include isnand.h instead of isnan.h.
39618         (ISNAN): Set to isnand instead of isnan.
39619         * tests/test-trunc1.c: Include isnand.h.
39620         (main): Use isnand instead of isnan.
39621         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
39622         (equal): Use isnand instead of isnan.
39623         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
39624         isnand-nolibm.
39625         * NEWS: Mention the change.
39626
39627 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
39628             Bruno Haible  <bruno@clisp.org>
39629
39630         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
39631         the GCC builtins for signbits are present and set
39632         REPLACE_SIGNBIT_USING_GCC if so.
39633         * lib/math.in.h (signbit): Define using GCC builtins if
39634         REPLACE_SIGNBIT_USING_GCC is set.
39635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
39636         REPLACE_SIGNBIT_USING_GCC.
39637         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
39638
39639 2008-01-25  Jim Meyering  <meyering@redhat.com>
39640
39641         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
39642         * lib/poll.c: Include <config.h>, not "config.h".
39643         * tests/test-getaddrinfo.c: Likewise.
39644
39645 2008-01-25  Simon Josefsson  <simon@josefsson.org>
39646
39647         * modules/sockets-tests: New file.
39648
39649 2008-01-24  Simon Josefsson  <simon@josefsson.org>
39650
39651         * modules/sockets: New module, can be used to call WSA_Startup and
39652         WSA_Cleanup when needed.
39653
39654         * lib/sockets.h, lib/sockets.c: New files.
39655
39656         * m4/sockets.m4: New file.
39657
39658         * tests/test-sockets.c: New file.
39659
39660 2008-01-19  Bruno Haible  <bruno@clisp.org>
39661
39662         * doc/posix-headers: Renamed from doc/headers.
39663         * doc/posix-functions: Renamed from doc/functions.
39664         * doc/gnulib.texi: Update.
39665
39666 2008-01-19  Bruno Haible  <bruno@clisp.org>
39667
39668         * doc/glibc-functions/strcasestr.texi: Include contents of
39669         doc/functions/strcasestr.texi, fixing the list of platforms.
39670         * doc/functions/strcasestr.texi: Remove file.
39671
39672 2008-01-19  Bruno Haible  <bruno@clisp.org>
39673
39674         * doc/glibc-functions/memmem.texi: Include contents of
39675         doc/functions/memmem.texi.
39676         * doc/functions/memmem.texi: Remove file.
39677
39678 2008-01-18  Bruno Haible  <bruno@clisp.org>
39679
39680         * doc/glibc-functions/*.texi: New files.
39681         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
39682         to use the new files.
39683
39684 2008-01-17  Bruno Haible  <bruno@clisp.org>
39685
39686         * tests/test-gethostname.c (main): Fix printf statement.
39687
39688 2008-01-17  Simon Josefsson  <simon@josefsson.org>
39689
39690         * modules/gethostname-tests: New file.
39691
39692         * tests/test-gethostname.c: New file.
39693
39694 2008-01-17  Simon Josefsson  <simon@josefsson.org>
39695
39696         * lib/gethostname.c: Include string.h unconditionally, strncpy is
39697         used by the UNAME case.  Reported by Bruno Haible
39698         <bruno@clisp.org>.
39699
39700 2008-01-17  Eric Blake  <ebb9@byu.net>
39701
39702         Convert c-strcasestr to be more efficient.
39703         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
39704         (Depends-on): Add c-strcase, remove malloca, strnlen.
39705         * tests/test-c-strcasestr.c (main): Enhance test.
39706         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
39707
39708 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
39709
39710         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
39711         Use it in creating po/Makevars.
39712
39713 2008-01-15  Simon Josefsson  <simon@josefsson.org>
39714
39715         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
39716         Applications that requires it should initialize libgcrypt
39717         manually.
39718
39719 2008-01-16  Simon Josefsson  <simon@josefsson.org>
39720
39721         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
39722
39723 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
39724
39725         Fix problem with getdate on mingw32 reported by Simon Josefsson
39726         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
39727         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
39728         tzname", when deciding whether to declare tzname.
39729         * lib/strftime.c (tzname): Likewise.
39730
39731 2008-01-15  Bruno Haible  <bruno@clisp.org>
39732
39733         Work around a MacOS X 10.5 bug in frexpl().
39734         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
39735         * doc/functions/frexpl.texi: Document the bug.
39736         Reported by Elias Pipping <pipping@gentoo.org>.
39737
39738 2008-01-14  Eric Blake  <ebb9@byu.net>
39739
39740         Touch up previous patch.
39741         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
39742         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
39743
39744         Convert strcasestr module to use Two-Way algorithm.
39745         * modules/strcasestr-simple: New module, based on the old
39746         strcasestr, but with Two-Way rather than KMP.
39747         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
39748         * lib/string.in.h (rpl_strcasestr): Declare.
39749         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
39750         performance.
39751         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
39752         * modules/string (Makefile.am): Support strcasestr.
39753         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39754         * modules/strcasestr-tests (Depends-on): Check for alarm.
39755         * tests/test-strcasestr.c: Augment test.
39756         * lib/str-two-way.h: Clean up stray macro.
39757         * NEWS: Document new module.
39758         * MODULES.html.sh (string handling): Likewise.
39759         * doc/functions/strcasestr.texi: New file.
39760         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
39761         here, since it is not a POSIX function.
39762
39763 2008-01-14  Colin Watson  <cjwatson@debian.org>
39764             Bruno Haible  <bruno@clisp.org>
39765
39766         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
39767         works fine; if not, set REPLACE_STRSIGNAL.
39768         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
39769         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39770         REPLACE_STRSIGNAL.
39771         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
39772         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
39773         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
39774
39775 2008-01-14  Bruno Haible  <bruno@clisp.org>
39776
39777         * modules/strsignal (Include): Change to <string.h>.
39778
39779 2008-01-14  Colin Watson  <cjwatson@debian.org>
39780
39781         * modules/argp (Notice): Add a notice recommending to change
39782         XGETTEXT_OPTIONS.
39783         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
39784
39785 2008-01-13  Colin Watson  <cjwatson@debian.org>
39786
39787         * modules/strsignal-tests: New file.
39788         * tests/test-strsignal.c: New file.
39789
39790         * lib/strsignal.c: New file, from glibc with modifications.
39791         * lib/siglist.h: New file, from glibc with modifications.
39792         * lib/string.in.h (strsignal): New declaration.
39793         * m4/strsignal.m4: New file.
39794         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39795         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
39796         * modules/strsignal: New file.
39797         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
39798         HAVE_DECL_STRSIGNAL.
39799
39800 2008-01-13  Bruno Haible  <bruno@clisp.org>
39801
39802         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
39803         locale encoding is not ASCII. Needed for OpenBSD 4.0.
39804         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
39805         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39806
39807 2008-01-13  Bruno Haible  <bruno@clisp.org>
39808
39809         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
39810         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
39811         * lib/argp.h (__attribute__): Likewise.
39812         * lib/c-stack.c (__attribute__): Likewise.
39813         * lib/error.h (__attribute__): Likewise.
39814         * lib/fts.c (__attribute__): Likewise.
39815         * lib/openat.h (__attribute__): Likewise.
39816         * lib/stdio.in.h (__attribute__): Likewise.
39817         * lib/string.in.h (__attribute__): Likewise.
39818         * lib/utimens.c (__attribute__): Likewise.
39819         * lib/vasnprintf.h (__attribute__): Likewise.
39820         * lib/xalloc.h (__attribute__): Likewise.
39821         * lib/xprintf.h (__attribute__): Likewise.
39822         * lib/xstrtol.h (__attribute__): Likewise.
39823         * lib/xvasprintf.h (__attribute__): Likewise.
39824
39825 2008-01-12  Bruno Haible  <bruno@clisp.org>
39826
39827         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
39828         * doc/glibc-headers/a.out.texi: New file.
39829         * doc/glibc-headers/aliases.texi: New file.
39830         * doc/glibc-headers/alloca.texi: New file.
39831         * doc/glibc-headers/ar.texi: New file.
39832         * doc/glibc-headers/argp.texi: New file.
39833         * doc/glibc-headers/argz.texi: New file.
39834         * doc/glibc-headers/byteswap.texi: New file.
39835         * doc/glibc-headers/crypt.texi: New file.
39836         * doc/glibc-headers/endian.texi: New file.
39837         * doc/glibc-headers/envz.texi: New file.
39838         * doc/glibc-headers/err.texi: New file.
39839         * doc/glibc-headers/error.texi: New file.
39840         * doc/glibc-headers/execinfo.texi: New file.
39841         * doc/glibc-headers/fpu_control.texi: New file.
39842         * doc/glibc-headers/fstab.texi: New file.
39843         * doc/glibc-headers/fts.texi: New file.
39844         * doc/glibc-headers/getopt.texi: New file.
39845         * doc/glibc-headers/ieee754.texi: New file.
39846         * doc/glibc-headers/ifaddrs.texi: New file.
39847         * doc/glibc-headers/libintl.texi: New file.
39848         * doc/glibc-headers/mcheck.texi: New file.
39849         * doc/glibc-headers/mntent.texi: New file.
39850         * doc/glibc-headers/obstack.texi: New file.
39851         * doc/glibc-headers/paths.texi: New file.
39852         * doc/glibc-headers/printf.texi: New file.
39853         * doc/glibc-headers/pty.texi: New file.
39854         * doc/glibc-headers/resolv.texi: New file.
39855         * doc/glibc-headers/shadow.texi: New file.
39856         * doc/glibc-headers/sysexits.texi: New file.
39857         * doc/glibc-headers/ttyent.texi: New file.
39858
39859 2008-01-12  Jim Meyering  <meyering@redhat.com>
39860
39861         announce-gen: emit Gnulib's git-based version string.
39862         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
39863         New option --gnulib-version=V, where V is expected to be
39864         the output of running git describe in the gnulib directory.
39865         (get_tool_versions): Request feedback on xdelta.  I suspect it's
39866         not useful, and plan to stop publishing an xdelta file with each
39867         coreutils release.
39868
39869         * build-aux/announce-gen: Also check for lzma-compressed files.
39870
39871 2008-01-11  Bruno Haible  <bruno@clisp.org>
39872
39873         * tests/test-memmem.c (main): Increase maximum allowed time.
39874         * tests/test-strstr.c (main): Likewise.
39875
39876 2008-01-11  Bruno Haible  <bruno@clisp.org>
39877
39878         * doc/functions/memmem.texi: Add more precisions about platforms.
39879         * doc/functions/strstr.texi: Likewise.
39880
39881 2008-01-10  Eric Blake  <ebb9@byu.net>
39882
39883         * m4/strstr.m4: Delete cruft from copy-n-paste.
39884         Reported by Bruno Haible.
39885
39886 2008-01-10  Bruno Haible  <bruno@clisp.org>
39887
39888         Make c-strstr rely on strstr.
39889         * lib/c-strstr.c: Don't include str-kmp.h.
39890         (c_strstr): Define in terms of strstr.
39891         * modules/c-strstr (Files): Remove lib/str-kmp.h.
39892         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
39893
39894 2008-01-10  Bruno Haible  <bruno@clisp.org>
39895
39896         * doc/gnulib.texi (String Functions in C Locale): New section.
39897         * doc/c-ctype.texi: New file.
39898         * doc/c-strcase.texi: New file.
39899         * doc/c-strcaseeq.texi: New file.
39900         * doc/c-strcasestr.texi: New file.
39901         * doc/c-strstr.texi: New file.
39902         * doc/c-strtod.texi: New file.
39903         * doc/c-strtold.texi: New file.
39904
39905 2008-01-10  Eric Blake  <ebb9@byu.net>
39906
39907         * lib/relocatable.h: Fix a comment.
39908
39909 2008-01-10  Eric Blake  <ebb9@byu.net>
39910
39911         Share two-way algorithm.
39912         * lib/str-two-way.h: New file, merged from...
39913         * lib/memmem.c: ...here...
39914         * lib/strstr.c: ...and here.
39915         * modules/memmem (Files): Use it.
39916         * modules/strstr (Files): Likewise.
39917
39918         Avoid quadratic strstr implementations.
39919         * lib/strstr.c: New file.
39920         * m4/strstr.m4: Likewise.
39921         * modules/strstr: Likewise.
39922         * modules/strstr-tests: Likewise.
39923         * tests/test-strstr.c: Likewise.
39924         * lib/string.in.h (rpl_strstr): Declare.
39925         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
39926         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
39927         * modules/string (Makefile.am): Likewise.
39928         * MODULES.html.sh (string handling): Mention new module.
39929         * doc/functions/strstr.texi (strstr): Document the bug.
39930
39931 2008-01-10  Bruno Haible  <bruno@clisp.org>
39932
39933         * lib/relocatable.h (relocate): State whether result is freshly
39934         allocated or not.
39935         * lib/relocatable.c (relocate): Return a freshly allocated string
39936         instead of a pointer to a privately held string.
39937         Reported by Sylvain Beucler <beuc@gnu.org>.
39938
39939 2008-01-10  Colin Watson  <cjwatson@debian.org>
39940
39941         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
39942         s/S_ISNLK/S_ISLNK/.
39943
39944 2008-01-09  Bruno Haible  <bruno@clisp.org>
39945
39946         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
39947         and other files.
39948         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
39949         if it's only a guess.
39950         * modules/memmem: Simplify by depending on memmem-simple.
39951
39952 2008-01-09  Bruno Haible  <bruno@clisp.org>
39953
39954         Work around OpenBSD 4.0 tdelete() bug.
39955         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
39956         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
39957         macros and don't redefine the enum values.
39958         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
39959         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
39960         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
39961
39962 2008-01-09  Bruno Haible  <bruno@clisp.org>
39963
39964         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
39965         (main): Don't perform the tests if setlocale did not install a UTF-8
39966         locale. Needed on OpenBSD 4.0.
39967         * modules/wcwidth-tests (Depends-on): Add localcharset.
39968
39969 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
39970
39971         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
39972         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
39973         * NEWS: announce this.
39974         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
39975
39976 2008-01-09  Simon Josefsson  <simon@josefsson.org>
39977         and Eric Blake  <ebb9@byu.net>
39978
39979         Add memmem-simple module.
39980         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
39981         (gl_FUNC_MEMMEM): Separate performance from presence checks.
39982         * modules/memmem-simple: New file.
39983         * modules/memmem (Description): Tweak.
39984         * MODULES.html.sh (string handling): Mention new module.
39985         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
39986         addressed by memmem-simple.
39987         * NEWS: Document the difference.
39988
39989 2008-01-09  Eric Blake  <ebb9@byu.net>
39990
39991         Give gcc some memmem optimization hints.
39992         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
39993         (strcasestr): Declare as pure.
39994         * modules/memmem (Maintainer): Claim my implementation.
39995
39996 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39997
39998         Support AIX 6.1 and higher.
39999         * build-aux/config.libpath: Likewise.
40000         * build-aux/config.rpath: Likewise.
40001
40002 2008-01-08  Jim Meyering  <meyering@redhat.com>
40003             Bruno Haible  <bruno@clisp.org>
40004
40005         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
40006         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
40007         Reported by Peter Fales in
40008         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
40009
40010 2008-01-08  Bruno Haible  <bruno@clisp.org>
40011
40012         * modules/unictype/category-of (Depends-on): Add
40013         unictype/category-none.
40014         * modules/unictype/category-and-tests (Depends-on): Add
40015         unictype/category-{L,N,Lu,Nd}.
40016         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
40017         * modules/unictype/category-or-tests (Depends-on): Add
40018         unictype/category-{L,N}.
40019         * modules/unictype/category-name-tests (Depends-on): Add
40020         unictype/category-{Z,Nl}.
40021         Reported by Simon Josefsson.
40022
40023 2008-01-08  Bruno Haible  <bruno@clisp.org>
40024
40025         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
40026         convention better.
40027         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
40028         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
40029         Reported by Peter Miller <millerp@canb.auug.org.au>.
40030
40031 2008-01-08  Eric Blake  <ebb9@byu.net>
40032
40033         Rewrite memmem to guarantee linear complexity without malloc.
40034         * lib/memmem.c (memmem): Use Two-Way rather than
40035         Knuth-Morris-Pratt, to allow O(1) space usage.
40036         (critical_factorization, two_way_short_needle)
40037         (two_way_long_needle): New functions.
40038         (knuth_morris_pratt): Delete.
40039         * modules/memmem (Depends-on): No longer need malloca or stdbool.
40040         Add stdint.
40041         * tests/test-memmem.c (main): Add tests for periodic needle and
40042         sublinear performance.
40043         * doc/functions/memmem.texi (memmem): Document other deficiencies
40044         in cygwin and older glibc.
40045
40046 2008-01-08  Bruno Haible  <bruno@clisp.org>
40047
40048         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
40049         augmentation.
40050
40051 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
40052
40053         Add a configure time option: --disable-acl.
40054         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
40055         AC_ARG_ENABLE(acl).
40056
40057 2008-01-06  Simon Josefsson  <simon@josefsson.org>
40058
40059         * tests/test-localename.c: Don't include obsolete "setenv.h".
40060
40061         * modules/localename-tests (Depends-on): Need unsetenv.
40062
40063 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40064
40065         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
40066
40067 2008-01-06  Colin Watson  <cjwatson@debian.org>
40068
40069         * users.txt: Add man-db.
40070
40071 2008-01-07  Bruno Haible  <bruno@clisp.org>
40072
40073         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
40074         previous section name.
40075
40076 2008-01-07  Bruno Haible  <bruno@clisp.org>
40077
40078         * lib/progname.c (set_program_name): Don't strip off a leading
40079         "lt-" prefix outside a .libs directory.
40080         Suggested by Paul Eggert.
40081
40082 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
40083             Bruno Haible  <bruno@clisp.org>
40084
40085         Improve memory cleanup in 'relocatable' module.
40086         * lib/relocatable.h (compute_curr_prefix): Change return type to
40087         'char *'.
40088         * lib/relocatable.c (compute_curr_prefix): Change return type to
40089         'char *'. Free curr_installdir after use.
40090         (relocate): Free curr_prefix_better after use.
40091         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
40092
40093 2008-01-01  Bruno Haible  <bruno@clisp.org>
40094
40095         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
40096         failure on older glibc systems.
40097         Reported by Peter Fales <psfales@alcatel-lucent.com>.
40098
40099 2008-01-05  Eric Blake  <ebb9@byu.net>
40100
40101         Avoid quadratic system memmem.
40102         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
40103         Reported by Ralf Wildenhues.
40104
40105         Fix memmem test for mingw.
40106         * modules/memmem-tests (configure.ac): Check for alarm.
40107         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
40108         it.
40109         * doc/functions/memmem.texi: New file.
40110         * doc/gnulib.texi (Function Substitutes): Add memmem.
40111         Reported by Bruno Haible.
40112
40113 2008-01-04  Bruno Haible  <bruno@clisp.org>
40114
40115         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
40116         Require gl_HEADER_STRINGS_H_DEFAULTS, not
40117         gl_HEADER_STRING_H_DEFAULTS.
40118
40119 2008-01-04  Eric Blake  <ebb9@byu.net>
40120
40121         Shorten duration of memmem test.
40122         * tests/test-memmem.c (main): Use alarm to declare failure if test
40123         is taking too long.
40124         Reported by Ralf Wildenhues.
40125
40126 2007-12-21  Simon Josefsson  <simon@josefsson.org>
40127
40128         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
40129         string, needed by strerror.
40130
40131 2008-01-03  Colin Watson  <cjwatson@debian.org>
40132             Bruno Haible  <bruno@clisp.org>
40133
40134         * doc/gnulib-tool.texi (Localization): New section.
40135
40136 2008-01-02  Bruno Haible  <bruno@clisp.org>
40137
40138         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
40139         variables to 'unsigned char *' type.
40140         Reported by Paul Eggert.
40141
40142 2008-01-02  Jim Meyering  <jim@meyering.net>
40143
40144         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
40145
40146 2007-12-31  Jim Meyering  <jim@meyering.net>
40147
40148         Avoid use of private FTS type name.
40149         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
40150
40151 2007-12-30  Karl Berry  <karl@gnu.org>
40152
40153         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
40154         work around defect in Texinfo and/or the standalone Info browser.
40155
40156 2007-12-30  Bruno Haible  <bruno@clisp.org>
40157
40158         Unify 5 copies of the KMP code.
40159         * lib/str-kmp.h: New file.
40160         * lib/c-strcasestr.c: Include str-kmp.h.
40161         (knuth_morris_pratt): Remove function.
40162         (c_strcasestr): Update.
40163         * lib/c-strstr.c: Include str-kmp.h.
40164         (knuth_morris_pratt): Remove function.
40165         (c_strcasestr): Update.
40166         * lib/mbscasestr.c: Include str-kmp.h.
40167         (knuth_morris_pratt_unibyte): Remove function.
40168         * lib/mbsstr.c: Include str-kmp.h.
40169         (knuth_morris_pratt_unibyte): Remove function.
40170         * lib/strcasestr.c: Include str-kmp.h.
40171         (knuth_morris_pratt): Remove function.
40172         (strcasestr): Update.
40173         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
40174         * modules/c-strstr (Files): Likewise.
40175         * modules/mbscasestr (Files): Likewise.
40176         * modules/mbsstr (Files): Likewise.
40177         * modules/strcasestr (Files): Likewise.
40178         Suggested by Paul Eggert.
40179
40180 2007-12-30  Bruno Haible  <bruno@clisp.org>
40181
40182         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
40183         defined.
40184
40185 2007-12-30  Bruno Haible  <bruno@clisp.org>
40186
40187         * lib/xmalloca.h: Include xalloc.h.
40188         (xnmalloca): New macro.
40189
40190 2007-12-30  Bruno Haible  <bruno@clisp.org>
40191
40192         * lib/malloca.h (nmalloca): New macro.
40193         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
40194         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
40195         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
40196         knuth_morris_pratt_multibyte): Likewise.
40197         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
40198         knuth_morris_pratt_multibyte): Likewise.
40199         * lib/memmem.c (knuth_morris_pratt): Likewise.
40200         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
40201
40202 2007-12-25  Bruno Haible  <bruno@clisp.org>
40203
40204         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
40205         * lib/glob.c: Don't include openat.h.
40206         (link_exists2_p): Add back the code that deals with the
40207         !GLOB_ALTDIRFUNC case.
40208         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
40209         let it do the filename concatenation.
40210         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
40211         * modules/glob (Depends-on): Remove openat.
40212
40213 2007-12-31  Bruno Haible  <bruno@clisp.org>
40214
40215         * modules/dirfd (License): Change to LGPLv2+.
40216         Approved by Jim Meyering.
40217
40218 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40219
40220         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
40221         when multiplying M by sizeof (size_t).
40222
40223 2007-12-10  Martin Lambers  <marlam@marlam.de>
40224
40225         Override getpagesize on mingw.
40226         * lib/getpagesize.c: New file.
40227         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
40228         * modules/getpagesize (Files): Add lib/getpagesize.c.
40229         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
40230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40231         REPLACE_GETPAGESIZE.
40232         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
40233
40234 2007-12-25  Bruno Haible  <bruno@clisp.org>
40235
40236         * modules/localcharset (Notice): New field.
40237         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
40238         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
40239
40240 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40241             Bruno Haible  <bruno@clisp.org>
40242
40243         Avoid using the syntax symbol() in formatted documentation.
40244         * MODULES.html.sh (func_module): When replacing symbol() with a
40245         hyperlink, remove the parentheses. Show an error if some remain.
40246         Recognize and render the '...' syntax.
40247         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
40248         Rework. Add paragraph about GCC's inlining.
40249         * doc/alloca.texi: Likewise.
40250         * doc/error.texi: Remove parentheses from symbol reference.
40251         * doc/gnulib-intro.texi: Likewise.
40252         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
40253         * modules/fnmatch (Description): Reword to say "the ... function".
40254         * modules/full-read (Description): Likewise.
40255         * modules/full-write (Description): Likewise.
40256         * modules/safe-read (Description): Likewise.
40257         * modules/safe-write (Description): Likewise.
40258         * modules/strchrnul (Description): Likewise.
40259         * modules/trim (Description): Likewise.
40260         * modules/error (Description): Remove parentheses from symbol
40261         references.
40262         * modules/verror (Description): Likewise.
40263         Reported by Karl Berry.
40264
40265 2007-12-25  Bruno Haible  <bruno@clisp.org>
40266
40267         Fixup after 2007-10-16 commit.
40268         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
40269
40270 2007-12-24  Bruno Haible  <bruno@clisp.org>
40271
40272         Make --enable-relocatable work with DESTDIR.
40273         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
40274         to compute installdir from destprog.
40275         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
40276         also set the RELOC_DESTDIR variable.
40277         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
40278
40279 2007-12-24  Bruno Haible  <bruno@clisp.org>
40280
40281         Fix link error due to xalloc_die().
40282         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
40283         of xreadlink.
40284         * lib/relocwrapper.c: Update comments.
40285         * build-aux/install-reloc: Remove xreadlink.c from file list.
40286         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
40287         xreadlink.c.
40288         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
40289
40290 2007-12-24  Bruno Haible  <bruno@clisp.org>
40291
40292         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
40293         * lib/setenv.h: Remove file.
40294         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
40295         lib/setenv.h.
40296         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
40297         (Depends-on): Add stdlib.
40298         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
40299         gl_FUNC_UNSETENV.
40300         (Include): Replace setenv.h with <stdlib.h>.
40301         * modules/unsetenv: New file.
40302         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
40303         * lib/unsetenv.c: Include <stdlib.h> first.
40304         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
40305         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
40306         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
40307         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
40308         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
40309         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
40310         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
40311         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
40312         * doc/functions/unsetenv.texi: Update.
40313         * modules/xsetenv (Depends-on): Add unsetenv.
40314         * modules/getdate (Depends-on): Likewise.
40315         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
40316         * lib/xsetenv.c: Don't include setenv.h.
40317         * lib/getdate.y: Likewise.
40318         * lib/relocwrapper.c: Likewise.
40319         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
40320         (Depends-on): Add stdlib.
40321         * NEWS: Mention the changes.
40322         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
40323
40324 2007-12-23  Bruno Haible  <bruno@clisp.org>
40325
40326         * lib/memmem.c (memmem): Use lowercase variable names. Tab
40327         indentation.
40328
40329 2007-12-23  Bruno Haible  <bruno@clisp.org>
40330
40331         * lib/c-strcasestr.c: Add more comments.
40332         * lib/c-strstr.c: Likewise.
40333         * lib/mbscasestr.c: Likewise.
40334         * lib/mbsstr.c: Likewise.
40335         * lib/strcasestr.c: Likewise.
40336         * lib/memmem.c: Likewise.
40337
40338 2007-12-23  Bruno Haible  <bruno@clisp.org>
40339
40340         * tests/test-memmem.c: Include <string.h> first.
40341
40342 2007-12-22  Bruno Haible  <bruno@clisp.org>
40343
40344         * gnulib-tool (func_create_testdir): Change $auxdir while generating
40345         the contents of $testsbase.
40346         Reported by Ralf Wildenhues.
40347
40348 2007-12-22  Bruno Haible  <bruno@clisp.org>
40349
40350         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
40351         two variables local_ldadd_before, local_ldadd_last.
40352
40353 2007-12-20  Eric Blake  <ebb9@byu.net>
40354
40355         Work around circular library issue when cross-compiling.
40356         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
40357         that progname.o does not need to pull in rpl_memcmp.
40358
40359 2007-12-19  Eric Blake  <ebb9@byu.net>
40360
40361         Fix memmem to avoid O(n^2) worst-case complexity.
40362         * lib/memmem.c (knuth_morris_pratt): New function.
40363         (memmem): Use it if first few naive iterations fail.
40364         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
40365         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
40366         * modules/memchr (License): Likewise.
40367         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
40368         malloca.
40369         * tests/test-memmem.c: Rewrite, borrowing ideas from
40370         test-mbsstr1.c; the old version wouldn't even compile!
40371         * modules/memmem-tests: New file.
40372         * lib/string.in.h (rpl_memmem): Add declaration.
40373         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
40374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
40375         REPLACE_MEMMEM.
40376
40377 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40378
40379         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
40380         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
40381         before any system include files, and undef after them all.  This
40382         should fix a problem on VMS reported by John E. Malmberg in
40383         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
40384
40385 2007-12-17  Eric Blake  <ebb9@byu.net>
40386
40387         Revert addition of verify, for BSD/OS.
40388         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
40389         can't handle large files, for the sake of obsolete platforms.
40390         * modules/fseeko (Depends-on): Remove verify.
40391         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
40392         * doc/functions/ftello.texi (ftello): Likewise.
40393         * doc/functions/fgetpos.texi (fgetpos): Likewise.
40394         Reported by Larry Jones.
40395
40396 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
40397
40398         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
40399         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
40400
40401 2007-12-17  Jim Meyering  <meyering@redhat.com>
40402
40403         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
40404         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
40405         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
40406         * modules/getcwd (Depends-on): Add openat.
40407         Reported by Petr Salinger.
40408
40409 2007-12-17  Bruno Haible  <bruno@clisp.org>
40410
40411         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
40412         avoid a segmentation fault of the configure test on x86_64 systems.
40413
40414 2007-12-15  Jim Meyering  <meyering@redhat.com>
40415
40416         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
40417
40418 2007-12-13  Eric Blake  <ebb9@byu.net>
40419
40420         Another fseek test.
40421         * tests/test-fseek.c (main): Also test ungetc handling.
40422         * tests/test-fseeko.c (main): Likewise.
40423         * modules/fseeko (Depends-on): Add verify.
40424         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
40425         large.
40426         Reported by Larry Jones.
40427
40428         Fix fseeko on mingw.
40429         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
40430         seek.
40431
40432         Beef up fseek tests.
40433         * tests/test-fseek.c (main): Also test eof handling.
40434         * tests/test-fseeko.c (main): Likewise.
40435         Reported by Larry Jones.
40436
40437 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
40438
40439         Fix fseeko on BSD-based platforms.
40440         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
40441         successful seek.
40442
40443 2007-12-12  Eric Blake  <ebb9@byu.net>
40444
40445         Allow circular dependency of separate libtests.a
40446         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
40447         when use_libtests.
40448
40449 2007-12-11  Eric Blake  <ebb9@byu.net>
40450
40451         Fix bug with -0.0L in previous patch.
40452         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
40453         * tests/test-isnan.c (main): Also test on zeroes.
40454         * tests/test-isnanf.c (main): Likewise.
40455         * tests/test-isnanl.h (main): Likewise.
40456
40457         Detect pseudo-denormals on x86 even when cross-compiling.
40458         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
40459         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
40460         invalid bit patterns that happen to satisfy ==.
40461
40462         Avoid link failures with separate libtests.a.
40463         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
40464         last, to satisfy circular dependencies.
40465
40466 2007-12-11  Eric Blake  <ebb9@byu.net>
40467         and Bruno Haible  <bruno@clisp.org>
40468
40469         Fix OpenBSD 4.0 <float.h> handling of long double.
40470         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
40471         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
40472         * doc/headers/float.texi (float.h): Document OpenBSD bug.
40473
40474 2007-12-11  Jim Meyering  <meyering@redhat.com>
40475
40476         * users.txt: Add libvirt.
40477
40478         Support versions of autoconf prior to 2.59c.
40479         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
40480         if it is not already defined.
40481
40482 2007-12-09  Bruno Haible  <bruno@clisp.org>
40483
40484         Let 'gnulib-tool --import' collect sources needed for the tests in
40485         tests/ rather than in lib/.
40486         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
40487         argument. If true, add rules to generate libtests.a, and put libtests.a
40488         into $(LDADD). Consider source files in subdirectories and set
40489         uses_subdirs.
40490         (func_emit_initmacro_start, func_emit_initmacro_end,
40491         func_emit_initmacro_done): Pass all arguments explicitly.
40492         (func_import): Determine two module lists main_modules,
40493         testsrelated_modules. Determine use_libtests. Determine two variables
40494         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
40495         instead of just sed_transform_lib_file. Determine two variables
40496         main_files and testsrelated_files. Compute 'files' as the union of
40497         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
40498         func_add_or_update. In the generated gnulib-comp.m4, collect the
40499         object files for tests/ in different variables than those for lib/.
40500         Substitute LIBTESTS_LIBDEPS.
40501         (func_create_testdir): Combine the uses_subdirs results from
40502         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
40503
40504 2007-12-09  Bruno Haible  <bruno@clisp.org>
40505
40506         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
40507         the build-aux directory.
40508
40509 2007-12-09  Bruno Haible  <bruno@clisp.org>
40510
40511         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
40512         introduced on 2006-09-09.
40513
40514 2007-12-07  Jim Meyering  <meyering@redhat.com>
40515
40516         Let these macros work also with autoconf-2.59.
40517         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
40518         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
40519         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
40520
40521 2007-12-06  Jim Meyering  <meyering@redhat.com>
40522
40523         Avoid a configure-time syntax error in gl_FUNC_ACL.
40524         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
40525         function in each branch, before testing the cache variable.
40526
40527 2007-12-04  Eric Blake  <ebb9@byu.net>
40528
40529         Make scripts executable.
40530         * build-aux/config.guess: Add execute permissions.
40531         * build-aux/config.sub: Likewise.
40532         * build-aux/gendocs.sh: Likewise.
40533
40534         Fix frexp on mingw.
40535         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
40536         cross-compiling.
40537         * doc/functions/frexp.texi (frexp): Document the bug.
40538
40539         Make cygwin fseeko check more reliable.
40540         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
40541         version numbers, rather than unrelated feature check.
40542         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
40543         * doc/functions/ftello.texi (ftello): Likewise.
40544         Reported by Bruno Haible.
40545
40546         * m4/strerror.m4: Bump version number.
40547
40548 2007-12-03  Bruno Haible  <bruno@clisp.org>
40549
40550         * doc/functions/mprotect.texi: Mention the mingw problem.
40551
40552 2007-12-03  Eric Blake  <ebb9@byu.net>
40553
40554         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
40555         REPLACE_STRERROR is initialized before this macro.
40556
40557 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
40558
40559         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
40560         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
40561         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
40562         put -lsec in even for programs other than 'ls'.  This fixes a problem
40563         for gettext reported by Bruno Haible in
40564         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
40565         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
40566         Add support for Solaris 10.  This isn't efficient, but should get the
40567         job done for now.
40568
40569 2007-12-03  James Youngman  <jay@gnu.org>
40570
40571         * doc/regexprops-generic.texi: change "an close-group" to "a
40572         close-group" and "illegal" to "not allowed".
40573
40574 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40575
40576         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
40577         pr_byname.h. Needed for the rare case when the maintainer has done
40578         "make maintainer-clean" in the source directory and then attempts a
40579         build outside the source directory.
40580         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
40581         scripts_byname.h.
40582
40583 2007-12-02  Martin Lambers <marlam@marlam.de>
40584             Bruno Haible  <bruno@clisp.org>
40585
40586         * lib/getpagesize.h: Remove file.
40587         * lib/unistd.in.h: Include declaration of getpagesize here.
40588         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
40589         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
40590         HAVE_SYS_PARAM_H.
40591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
40592         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
40593         * modules/getpagesize (Files): Remove lib/getpagesize.h.
40594         (Depends-on): Add unistd.
40595         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40596         (Include): Use <unistd.h> instead of getpagesize.h.
40597         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
40598         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
40599         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
40600         gl_GETPAGESIZE invocation, already handled by module dependency.
40601         * lib/pagealign_alloc.c: Don't include getpagesize.h.
40602
40603 2007-12-02  Bruno Haible  <bruno@clisp.org>
40604
40605         * modules/strings-tests: New file.
40606         * tests/test-strings.c: New file.
40607
40608         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
40609         * lib/strings.in.h: New file.
40610         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
40611         * m4/strings_h.m4: New file.
40612         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
40613         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
40614         * modules/strings: New file.
40615         * modules/string (Makefile.am): Update.
40616         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
40617         Reported by Karl Berry.
40618
40619 2007-12-01  Eric Blake  <ebb9@byu.net>
40620
40621         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
40622         accomodate fix in cygwin 1.5.25.
40623
40624 2007-12-01  Jim Meyering  <meyering@redhat.com>
40625
40626         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
40627         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
40628         that would inhibit utf8-optimization of a regexp containing line-
40629         or buffer-anchors, e.g., `^', `$'.
40630
40631 2007-11-30  Bruno Haible  <bruno@clisp.org>
40632
40633         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
40634         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
40635         glthread_recursive_lock_init.
40636         * lib/lock.c (glthread_recursive_lock_init)
40637         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
40638         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40639
40640 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
40641
40642         New function qset_acl, like set_acl but with syscall semantics.
40643         * lib/acl.h (qset_acl): New decl.
40644         * lib/acl.c (qset_acl): New function.
40645         (set_acl): Use new function.  Use more-consistent diagnostics.
40646
40647 2007-11-28  Jim Meyering  <meyering@redhat.com>
40648
40649         * modules/physmem (License): Change from GPL to LGPLv2+.
40650
40651 2007-11-26  Bruno Haible  <bruno@clisp.org>
40652
40653         * lib/vasnprintf.c (decode_long_double): Don't abort if the
40654         'long double' type has excess precision.
40655         Reported by Jim Meyering in
40656         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
40657
40658 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40659
40660         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
40661         Sync from <http://gnu.org/licenses>.
40662         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
40663         with license text from same location.
40664         * doc/maintain.texi, doc/standards.texi:  Sync from
40665         <http://savannah.gnu.org/projects/gnustandards>.
40666
40667 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
40668         and Jim Meyering  <meyering@redhat.com>
40669
40670         Adjust getdate' grammar to accept a slightly more regular language.
40671         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
40672         Before, the former was rejected.
40673         * lib/getdate.y (digits_to_date_time): New function, factored
40674         out of ...
40675         (number): ...here.  Just call digits_to_date_time.
40676         (hybrid): New non-terminal to handle an <unsigned number,
40677         signed relative offset> sequence consistently.
40678
40679 2007-11-18  Jim Meyering  <meyering@redhat.com>
40680
40681         Pull my changes from coreutils:
40682         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
40683         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
40684         use of $gnulib_tool_option_extras, so that it's separated from the
40685         preceding argument.
40686
40687         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
40688         * build-aux/bootstrap (cp_mark_as_generated): Create any required
40689         parent destination directories before copying a file into place.
40690
40691 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
40692
40693         bootstrap: work also with 4-argument variant of AC_INIT
40694         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
40695
40696 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40697
40698         Port test-getaddrinfo to Solaris.
40699         Problem reported by Bruno Haible in
40700         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
40701         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
40702         explanation of setting 'hints'.
40703         Don't reject an implementation merely because it returns EAI_SERVICE.
40704         (EAI_SERVICE): Define to 0 if not defined.
40705
40706 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
40707
40708         The license of gnu-make and posix-shell is now "GPLed build tool".
40709         * modules/gnu-make (License): Likewise.
40710         * modules/posix-shell (License): Likewise.
40711
40712         New module posix-shell, for determining a POSIX shell
40713         or perhaps something that is close enough to a POSIX shell.
40714         * m4/posix-shell.m4: New file.
40715         * modules/posix-shell: New file.
40716
40717         * MODULES.html.sh: Mention new module.
40718
40719         New module gnu-make, for determining whether we're using GNU Make.
40720         * m4/gnu-make.m4: New file.
40721         * modules/gnu-make: New file.
40722         * MODULES.html.sh: Mention new module.
40723
40724 2007-11-14  Jim Meyering  <meyering@redhat.com>
40725
40726         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
40727         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
40728         use this macro to create a function _definition_.
40729         Remove useless "#undef ARGMATCH_DIE".
40730
40731 2007-11-14  Bruno Haible  <bruno@clisp.org>
40732
40733         * lib/config.charset: Update for OpenBSD 4.1.
40734         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
40735
40736 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
40737
40738         Document 64-bit #if problems in stdint.texi.
40739         * doc/headers/stdint.texi (stdint.h): Mention problems with
40740         64-bit-#if, and how to work around them.
40741
40742         Don't insist on 'long long int' support in the preprocessor.  It
40743         breaks too many things.  For example, PRIdMAX still uses a 'long
40744         long int' format with the latest Sun compiler, even though
40745         HAVE_LONG_LONG_INT isn't defined due to that compiler's
40746         preprocessor problem.  This causes the latest coreutils to dump
40747         core on Solaris 10 sparc with the Sun C compiler.
40748         Instead, fix the 2007-10-16 problem in a different way, by evaluating
40749         the troublesome expressions at configure-time, not at #if-time.
40750         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
40751         preprocessor.
40752         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
40753         compile-time C checks, done at 'configure'-time.
40754         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
40755         * modules/inttypes (Makefile): Substitute the new symbols that
40756         gl_INTTYPES_H now generates.
40757         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
40758
40759 2007-11-12  Bruno Haible  <bruno@clisp.org>
40760
40761         Tests for Unicode character classification functions.
40762
40763         * modules/unictype/bidicategory-byname-tests: New file.
40764         * modules/unictype/bidicategory-name-tests: New file.
40765         * modules/unictype/bidicategory-of-tests: New file.
40766         * modules/unictype/bidicategory-test-tests: New file.
40767         * modules/unictype/block-list-tests: New file.
40768         * modules/unictype/block-of-tests: New file.
40769         * modules/unictype/block-test-tests: New file.
40770         * modules/unictype/category-C-tests: New file.
40771         * modules/unictype/category-Cc-tests: New file.
40772         * modules/unictype/category-Cf-tests: New file.
40773         * modules/unictype/category-Cn-tests: New file.
40774         * modules/unictype/category-Co-tests: New file.
40775         * modules/unictype/category-Cs-tests: New file.
40776         * modules/unictype/category-L-tests: New file.
40777         * modules/unictype/category-Ll-tests: New file.
40778         * modules/unictype/category-Lm-tests: New file.
40779         * modules/unictype/category-Lo-tests: New file.
40780         * modules/unictype/category-Lt-tests: New file.
40781         * modules/unictype/category-Lu-tests: New file.
40782         * modules/unictype/category-M-tests: New file.
40783         * modules/unictype/category-Mc-tests: New file.
40784         * modules/unictype/category-Me-tests: New file.
40785         * modules/unictype/category-Mn-tests: New file.
40786         * modules/unictype/category-N-tests: New file.
40787         * modules/unictype/category-Nd-tests: New file.
40788         * modules/unictype/category-Nl-tests: New file.
40789         * modules/unictype/category-No-tests: New file.
40790         * modules/unictype/category-P-tests: New file.
40791         * modules/unictype/category-Pc-tests: New file.
40792         * modules/unictype/category-Pd-tests: New file.
40793         * modules/unictype/category-Pe-tests: New file.
40794         * modules/unictype/category-Pf-tests: New file.
40795         * modules/unictype/category-Pi-tests: New file.
40796         * modules/unictype/category-Po-tests: New file.
40797         * modules/unictype/category-Ps-tests: New file.
40798         * modules/unictype/category-S-tests: New file.
40799         * modules/unictype/category-Sc-tests: New file.
40800         * modules/unictype/category-Sk-tests: New file.
40801         * modules/unictype/category-Sm-tests: New file.
40802         * modules/unictype/category-So-tests: New file.
40803         * modules/unictype/category-Z-tests: New file.
40804         * modules/unictype/category-Zl-tests: New file.
40805         * modules/unictype/category-Zp-tests: New file.
40806         * modules/unictype/category-Zs-tests: New file.
40807         * modules/unictype/category-and-not-tests: New file.
40808         * modules/unictype/category-and-tests: New file.
40809         * modules/unictype/category-byname-tests: New file.
40810         * modules/unictype/category-name-tests: New file.
40811         * modules/unictype/category-none-tests: New file.
40812         * modules/unictype/category-of-tests: New file.
40813         * modules/unictype/category-or-tests: New file.
40814         * modules/unictype/category-test-withtable-tests: New file.
40815         * modules/unictype/combining-class-tests: New file.
40816         * modules/unictype/ctype-alnum-tests: New file.
40817         * modules/unictype/ctype-alpha-tests: New file.
40818         * modules/unictype/ctype-blank-tests: New file.
40819         * modules/unictype/ctype-cntrl-tests: New file.
40820         * modules/unictype/ctype-digit-tests: New file.
40821         * modules/unictype/ctype-graph-tests: New file.
40822         * modules/unictype/ctype-lower-tests: New file.
40823         * modules/unictype/ctype-print-tests: New file.
40824         * modules/unictype/ctype-punct-tests: New file.
40825         * modules/unictype/ctype-space-tests: New file.
40826         * modules/unictype/ctype-upper-tests: New file.
40827         * modules/unictype/ctype-xdigit-tests: New file.
40828         * modules/unictype/decimal-digit-tests: New file.
40829         * modules/unictype/digit-tests: New file.
40830         * modules/unictype/mirror-tests: New file.
40831         * modules/unictype/numeric-tests: New file.
40832         * modules/unictype/property-alphabetic-tests: New file.
40833         * modules/unictype/property-ascii-hex-digit-tests: New file.
40834         * modules/unictype/property-bidi-arabic-digit-tests: New file.
40835         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
40836         * modules/unictype/property-bidi-block-separator-tests: New file.
40837         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
40838         * modules/unictype/property-bidi-common-separator-tests: New file.
40839         * modules/unictype/property-bidi-control-tests: New file.
40840         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
40841         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
40842         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
40843         * modules/unictype/property-bidi-european-digit-tests: New file.
40844         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
40845         * modules/unictype/property-bidi-left-to-right-tests: New file.
40846         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
40847         * modules/unictype/property-bidi-other-neutral-tests: New file.
40848         * modules/unictype/property-bidi-pdf-tests: New file.
40849         * modules/unictype/property-bidi-segment-separator-tests: New file.
40850         * modules/unictype/property-bidi-whitespace-tests: New file.
40851         * modules/unictype/property-byname-tests: New file.
40852         * modules/unictype/property-combining-tests: New file.
40853         * modules/unictype/property-composite-tests: New file.
40854         * modules/unictype/property-currency-symbol-tests: New file.
40855         * modules/unictype/property-dash-tests: New file.
40856         * modules/unictype/property-decimal-digit-tests: New file.
40857         * modules/unictype/property-default-ignorable-code-point-tests: New file.
40858         * modules/unictype/property-deprecated-tests: New file.
40859         * modules/unictype/property-diacritic-tests: New file.
40860         * modules/unictype/property-extender-tests: New file.
40861         * modules/unictype/property-format-control-tests: New file.
40862         * modules/unictype/property-grapheme-base-tests: New file.
40863         * modules/unictype/property-grapheme-extend-tests: New file.
40864         * modules/unictype/property-grapheme-link-tests: New file.
40865         * modules/unictype/property-hex-digit-tests: New file.
40866         * modules/unictype/property-hyphen-tests: New file.
40867         * modules/unictype/property-id-continue-tests: New file.
40868         * modules/unictype/property-id-start-tests: New file.
40869         * modules/unictype/property-ideographic-tests: New file.
40870         * modules/unictype/property-ids-binary-operator-tests: New file.
40871         * modules/unictype/property-ids-trinary-operator-tests: New file.
40872         * modules/unictype/property-ignorable-control-tests: New file.
40873         * modules/unictype/property-iso-control-tests: New file.
40874         * modules/unictype/property-join-control-tests: New file.
40875         * modules/unictype/property-left-of-pair-tests: New file.
40876         * modules/unictype/property-line-separator-tests: New file.
40877         * modules/unictype/property-logical-order-exception-tests: New file.
40878         * modules/unictype/property-lowercase-tests: New file.
40879         * modules/unictype/property-math-tests: New file.
40880         * modules/unictype/property-non-break-tests: New file.
40881         * modules/unictype/property-not-a-character-tests: New file.
40882         * modules/unictype/property-numeric-tests: New file.
40883         * modules/unictype/property-other-alphabetic-tests: New file.
40884         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
40885         * modules/unictype/property-other-grapheme-extend-tests: New file.
40886         * modules/unictype/property-other-id-continue-tests: New file.
40887         * modules/unictype/property-other-id-start-tests: New file.
40888         * modules/unictype/property-other-lowercase-tests: New file.
40889         * modules/unictype/property-other-math-tests: New file.
40890         * modules/unictype/property-other-uppercase-tests: New file.
40891         * modules/unictype/property-paired-punctuation-tests: New file.
40892         * modules/unictype/property-paragraph-separator-tests: New file.
40893         * modules/unictype/property-pattern-syntax-tests: New file.
40894         * modules/unictype/property-pattern-white-space-tests: New file.
40895         * modules/unictype/property-private-use-tests: New file.
40896         * modules/unictype/property-punctuation-tests: New file.
40897         * modules/unictype/property-quotation-mark-tests: New file.
40898         * modules/unictype/property-radical-tests: New file.
40899         * modules/unictype/property-sentence-terminal-tests: New file.
40900         * modules/unictype/property-soft-dotted-tests: New file.
40901         * modules/unictype/property-space-tests: New file.
40902         * modules/unictype/property-terminal-punctuation-tests: New file.
40903         * modules/unictype/property-test-tests: New file.
40904         * modules/unictype/property-titlecase-tests: New file.
40905         * modules/unictype/property-unassigned-code-value-tests: New file.
40906         * modules/unictype/property-unified-ideograph-tests: New file.
40907         * modules/unictype/property-uppercase-tests: New file.
40908         * modules/unictype/property-variation-selector-tests: New file.
40909         * modules/unictype/property-white-space-tests: New file.
40910         * modules/unictype/property-xid-continue-tests: New file.
40911         * modules/unictype/property-xid-start-tests: New file.
40912         * modules/unictype/property-zero-width-tests: New file.
40913         * modules/unictype/scripts-tests: New file.
40914         * modules/unictype/syntax-c-ident-tests: New file.
40915         * modules/unictype/syntax-c-whitespace-tests: New file.
40916         * modules/unictype/syntax-java-ident-tests: New file.
40917         * modules/unictype/syntax-java-whitespace-tests: New file.
40918         * tests/unictype/test-bidi_byname.c: New file.
40919         * tests/unictype/test-bidi_name.c: New file.
40920         * tests/unictype/test-bidi_of.c: New file.
40921         * tests/unictype/test-bidi_test.c: New file.
40922         * tests/unictype/test-block_list.c: New file.
40923         * tests/unictype/test-block_of.c: New file.
40924         * tests/unictype/test-block_test.c: New file.
40925         * tests/unictype/test-categ_and.c: New file.
40926         * tests/unictype/test-categ_and_not.c: New file.
40927         * tests/unictype/test-categ_byname.c: New file.
40928         * tests/unictype/test-categ_name.c: New file.
40929         * tests/unictype/test-categ_none.c: New file.
40930         * tests/unictype/test-categ_of.c: New file.
40931         * tests/unictype/test-categ_or.c: New file.
40932         * tests/unictype/test-categ_test_withtable.c: New file.
40933         * tests/unictype/test-combining.c: New file.
40934         * tests/unictype/test-decdigit.c: New file.
40935         * tests/unictype/test-digit.c: New file.
40936         * tests/unictype/test-mirror.c: New file.
40937         * tests/unictype/test-numeric.c: New file.
40938         * tests/unictype/test-pr_byname.c: New file.
40939         * tests/unictype/test-pr_test.c: New file.
40940         * tests/unictype/test-predicate-part1.h: New file.
40941         * tests/unictype/test-predicate-part2.h: New file.
40942         * tests/unictype/test-scripts.c: New file.
40943         * tests/unictype/test-sy_c_ident.c: New file.
40944         * tests/unictype/test-sy_java_ident.c: New file.
40945
40946         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
40947         for Unicode 5.0.0.
40948         * tests/unictype/test-categ_Cc.c: Likewise.
40949         * tests/unictype/test-categ_Cf.c: Likewise.
40950         * tests/unictype/test-categ_Cn.c: Likewise.
40951         * tests/unictype/test-categ_Co.c: Likewise.
40952         * tests/unictype/test-categ_Cs.c: Likewise.
40953         * tests/unictype/test-categ_L.c: Likewise.
40954         * tests/unictype/test-categ_Ll.c: Likewise.
40955         * tests/unictype/test-categ_Lm.c: Likewise.
40956         * tests/unictype/test-categ_Lo.c: Likewise.
40957         * tests/unictype/test-categ_Lt.c: Likewise.
40958         * tests/unictype/test-categ_Lu.c: Likewise.
40959         * tests/unictype/test-categ_M.c: Likewise.
40960         * tests/unictype/test-categ_Mc.c: Likewise.
40961         * tests/unictype/test-categ_Me.c: Likewise.
40962         * tests/unictype/test-categ_Mn.c: Likewise.
40963         * tests/unictype/test-categ_N.c: Likewise.
40964         * tests/unictype/test-categ_Nd.c: Likewise.
40965         * tests/unictype/test-categ_Nl.c: Likewise.
40966         * tests/unictype/test-categ_No.c: Likewise.
40967         * tests/unictype/test-categ_P.c: Likewise.
40968         * tests/unictype/test-categ_Pc.c: Likewise.
40969         * tests/unictype/test-categ_Pd.c: Likewise.
40970         * tests/unictype/test-categ_Pe.c: Likewise.
40971         * tests/unictype/test-categ_Pf.c: Likewise.
40972         * tests/unictype/test-categ_Pi.c: Likewise.
40973         * tests/unictype/test-categ_Po.c: Likewise.
40974         * tests/unictype/test-categ_Ps.c: Likewise.
40975         * tests/unictype/test-categ_S.c: Likewise.
40976         * tests/unictype/test-categ_Sc.c: Likewise.
40977         * tests/unictype/test-categ_Sk.c: Likewise.
40978         * tests/unictype/test-categ_Sm.c: Likewise.
40979         * tests/unictype/test-categ_So.c: Likewise.
40980         * tests/unictype/test-categ_Z.c: Likewise.
40981         * tests/unictype/test-categ_Zl.c: Likewise.
40982         * tests/unictype/test-categ_Zp.c: Likewise.
40983         * tests/unictype/test-categ_Zs.c: Likewise.
40984         * tests/unictype/test-ctype_alnum.c: Likewise.
40985         * tests/unictype/test-ctype_alpha.c: Likewise.
40986         * tests/unictype/test-ctype_blank.c: Likewise.
40987         * tests/unictype/test-ctype_cntrl.c: Likewise.
40988         * tests/unictype/test-ctype_digit.c: Likewise.
40989         * tests/unictype/test-ctype_graph.c: Likewise.
40990         * tests/unictype/test-ctype_lower.c: Likewise.
40991         * tests/unictype/test-ctype_print.c: Likewise.
40992         * tests/unictype/test-ctype_punct.c: Likewise.
40993         * tests/unictype/test-ctype_space.c: Likewise.
40994         * tests/unictype/test-ctype_upper.c: Likewise.
40995         * tests/unictype/test-ctype_xdigit.c: Likewise.
40996         * tests/unictype/test-decdigit.h: Likewise.
40997         * tests/unictype/test-digit.h: Likewise.
40998         * tests/unictype/test-numeric.h: Likewise.
40999         * tests/unictype/test-pr_alphabetic.c: Likewise.
41000         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
41001         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
41002         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
41003         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
41004         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
41005         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
41006         * tests/unictype/test-pr_bidi_control.c: Likewise.
41007         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
41008         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
41009         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
41010         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
41011         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
41012         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
41013         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
41014         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
41015         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
41016         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
41017         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
41018         * tests/unictype/test-pr_combining.c: Likewise.
41019         * tests/unictype/test-pr_composite.c: Likewise.
41020         * tests/unictype/test-pr_currency_symbol.c: Likewise.
41021         * tests/unictype/test-pr_dash.c: Likewise.
41022         * tests/unictype/test-pr_decimal_digit.c: Likewise.
41023         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
41024         * tests/unictype/test-pr_deprecated.c: Likewise.
41025         * tests/unictype/test-pr_diacritic.c: Likewise.
41026         * tests/unictype/test-pr_extender.c: Likewise.
41027         * tests/unictype/test-pr_format_control.c: Likewise.
41028         * tests/unictype/test-pr_grapheme_base.c: Likewise.
41029         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
41030         * tests/unictype/test-pr_grapheme_link.c: Likewise.
41031         * tests/unictype/test-pr_hex_digit.c: Likewise.
41032         * tests/unictype/test-pr_hyphen.c: Likewise.
41033         * tests/unictype/test-pr_id_continue.c: Likewise.
41034         * tests/unictype/test-pr_id_start.c: Likewise.
41035         * tests/unictype/test-pr_ideographic.c: Likewise.
41036         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
41037         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
41038         * tests/unictype/test-pr_ignorable_control.c: Likewise.
41039         * tests/unictype/test-pr_iso_control.c: Likewise.
41040         * tests/unictype/test-pr_join_control.c: Likewise.
41041         * tests/unictype/test-pr_left_of_pair.c: Likewise.
41042         * tests/unictype/test-pr_line_separator.c: Likewise.
41043         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
41044         * tests/unictype/test-pr_lowercase.c: Likewise.
41045         * tests/unictype/test-pr_math.c: Likewise.
41046         * tests/unictype/test-pr_non_break.c: Likewise.
41047         * tests/unictype/test-pr_not_a_character.c: Likewise.
41048         * tests/unictype/test-pr_numeric.c: Likewise.
41049         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
41050         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
41051         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
41052         * tests/unictype/test-pr_other_id_continue.c: Likewise.
41053         * tests/unictype/test-pr_other_id_start.c: Likewise.
41054         * tests/unictype/test-pr_other_lowercase.c: Likewise.
41055         * tests/unictype/test-pr_other_math.c: Likewise.
41056         * tests/unictype/test-pr_other_uppercase.c: Likewise.
41057         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
41058         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
41059         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
41060         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
41061         * tests/unictype/test-pr_private_use.c: Likewise.
41062         * tests/unictype/test-pr_punctuation.c: Likewise.
41063         * tests/unictype/test-pr_quotation_mark.c: Likewise.
41064         * tests/unictype/test-pr_radical.c: Likewise.
41065         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
41066         * tests/unictype/test-pr_soft_dotted.c: Likewise.
41067         * tests/unictype/test-pr_space.c: Likewise.
41068         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
41069         * tests/unictype/test-pr_titlecase.c: Likewise.
41070         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
41071         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
41072         * tests/unictype/test-pr_uppercase.c: Likewise.
41073         * tests/unictype/test-pr_variation_selector.c: Likewise.
41074         * tests/unictype/test-pr_white_space.c: Likewise.
41075         * tests/unictype/test-pr_xid_continue.c: Likewise.
41076         * tests/unictype/test-pr_xid_start.c: Likewise.
41077         * tests/unictype/test-pr_zero_width.c: Likewise.
41078         * tests/unictype/test-sy_c_whitespace.c: Likewise.
41079         * tests/unictype/test-sy_java_whitespace.c: Likewise.
41080
41081 2007-11-12  Bruno Haible  <bruno@clisp.org>
41082
41083         Unicode character classification functions.
41084         * lib/unictype.h: New file.
41085         * modules/unictype/base: New file.
41086         * modules/unictype/category-L: New file.
41087         * modules/unictype/category-Lu: New file.
41088         * modules/unictype/category-Ll: New file.
41089         * modules/unictype/category-Lt: New file.
41090         * modules/unictype/category-Lm: New file.
41091         * modules/unictype/category-Lo: New file.
41092         * modules/unictype/category-M: New file.
41093         * modules/unictype/category-Mn: New file.
41094         * modules/unictype/category-Mc: New file.
41095         * modules/unictype/category-Me: New file.
41096         * modules/unictype/category-N: New file.
41097         * modules/unictype/category-Nd: New file.
41098         * modules/unictype/category-Nl: New file.
41099         * modules/unictype/category-No: New file.
41100         * modules/unictype/category-P: New file.
41101         * modules/unictype/category-Pc: New file.
41102         * modules/unictype/category-Pd: New file.
41103         * modules/unictype/category-Ps: New file.
41104         * modules/unictype/category-Pe: New file.
41105         * modules/unictype/category-Pi: New file.
41106         * modules/unictype/category-Pf: New file.
41107         * modules/unictype/category-Po: New file.
41108         * modules/unictype/category-S: New file.
41109         * modules/unictype/category-Sm: New file.
41110         * modules/unictype/category-Sc: New file.
41111         * modules/unictype/category-Sk: New file.
41112         * modules/unictype/category-So: New file.
41113         * modules/unictype/category-Z: New file.
41114         * modules/unictype/category-Zs: New file.
41115         * modules/unictype/category-Zl: New file.
41116         * modules/unictype/category-Zp: New file.
41117         * modules/unictype/category-C: New file.
41118         * modules/unictype/category-Cc: New file.
41119         * modules/unictype/category-Cf: New file.
41120         * modules/unictype/category-Cs: New file.
41121         * modules/unictype/category-Co: New file.
41122         * modules/unictype/category-Cn: New file.
41123         * modules/unictype/category-or: New file.
41124         * modules/unictype/category-of: New file.
41125         * modules/unictype/category-test: New file.
41126         * modules/unictype/category-test-withtable: New file.
41127         * modules/unictype/category-byname: New file.
41128         * modules/unictype/category-none: New file.
41129         * modules/unictype/category-and: New file.
41130         * modules/unictype/category-and-not: New file.
41131         * modules/unictype/category-name: New file.
41132         * modules/unictype/combining-class: New file.
41133         * modules/unictype/category-all: New file.
41134         * modules/unictype/bidicategory-all: New file.
41135         * modules/unictype/bidicategory-byname: New file.
41136         * modules/unictype/bidicategory-name: New file.
41137         * modules/unictype/bidicategory-of: New file.
41138         * modules/unictype/bidicategory-test: New file.
41139         * modules/unictype/decimal-digit: New file.
41140         * modules/unictype/digit: New file.
41141         * modules/unictype/numeric: New file.
41142         * modules/unictype/mirror: New file.
41143         * modules/unictype/property-white-space: New file.
41144         * modules/unictype/property-alphabetic: New file.
41145         * modules/unictype/property-other-alphabetic: New file.
41146         * modules/unictype/property-not-a-character: New file.
41147         * modules/unictype/property-default-ignorable-code-point: New file.
41148         * modules/unictype/property-other-default-ignorable-code-point: New
41149         file.
41150         * modules/unictype/property-deprecated: New file.
41151         * modules/unictype/property-logical-order-exception: New file.
41152         * modules/unictype/property-variation-selector: New file.
41153         * modules/unictype/property-private-use: New file.
41154         * modules/unictype/property-unassigned-code-value: New file.
41155         * modules/unictype/property-uppercase: New file.
41156         * modules/unictype/property-other-uppercase: New file.
41157         * modules/unictype/property-lowercase: New file.
41158         * modules/unictype/property-other-lowercase: New file.
41159         * modules/unictype/property-titlecase: New file.
41160         * modules/unictype/property-soft-dotted: New file.
41161         * modules/unictype/property-id-start: New file.
41162         * modules/unictype/property-other-id-start: New file.
41163         * modules/unictype/property-id-continue: New file.
41164         * modules/unictype/property-other-id-continue: New file.
41165         * modules/unictype/property-xid-start: New file.
41166         * modules/unictype/property-xid-continue: New file.
41167         * modules/unictype/property-pattern-white-space: New file.
41168         * modules/unictype/property-pattern-syntax: New file.
41169         * modules/unictype/property-join-control: New file.
41170         * modules/unictype/property-grapheme-base: New file.
41171         * modules/unictype/property-grapheme-extend: New file.
41172         * modules/unictype/property-other-grapheme-extend: New file.
41173         * modules/unictype/property-grapheme-link: New file.
41174         * modules/unictype/property-bidi-control: New file.
41175         * modules/unictype/property-bidi-left-to-right: New file.
41176         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
41177         * modules/unictype/property-bidi-arabic-right-to-left: New file.
41178         * modules/unictype/property-bidi-european-digit: New file.
41179         * modules/unictype/property-bidi-eur-num-separator: New file.
41180         * modules/unictype/property-bidi-eur-num-terminator: New file.
41181         * modules/unictype/property-bidi-arabic-digit: New file.
41182         * modules/unictype/property-bidi-common-separator: New file.
41183         * modules/unictype/property-bidi-block-separator: New file.
41184         * modules/unictype/property-bidi-segment-separator: New file.
41185         * modules/unictype/property-bidi-whitespace: New file.
41186         * modules/unictype/property-bidi-non-spacing-mark: New file.
41187         * modules/unictype/property-bidi-boundary-neutral: New file.
41188         * modules/unictype/property-bidi-pdf: New file.
41189         * modules/unictype/property-bidi-embedding-or-override: New file.
41190         * modules/unictype/property-bidi-other-neutral: New file.
41191         * modules/unictype/property-hex-digit: New file.
41192         * modules/unictype/property-ascii-hex-digit: New file.
41193         * modules/unictype/property-ideographic: New file.
41194         * modules/unictype/property-unified-ideograph: New file.
41195         * modules/unictype/property-radical: New file.
41196         * modules/unictype/property-ids-binary-operator: New file.
41197         * modules/unictype/property-ids-trinary-operator: New file.
41198         * modules/unictype/property-zero-width: New file.
41199         * modules/unictype/property-space: New file.
41200         * modules/unictype/property-non-break: New file.
41201         * modules/unictype/property-iso-control: New file.
41202         * modules/unictype/property-format-control: New file.
41203         * modules/unictype/property-dash: New file.
41204         * modules/unictype/property-hyphen: New file.
41205         * modules/unictype/property-punctuation: New file.
41206         * modules/unictype/property-line-separator: New file.
41207         * modules/unictype/property-paragraph-separator: New file.
41208         * modules/unictype/property-quotation-mark: New file.
41209         * modules/unictype/property-sentence-terminal: New file.
41210         * modules/unictype/property-terminal-punctuation: New file.
41211         * modules/unictype/property-currency-symbol: New file.
41212         * modules/unictype/property-math: New file.
41213         * modules/unictype/property-other-math: New file.
41214         * modules/unictype/property-paired-punctuation: New file.
41215         * modules/unictype/property-left-of-pair: New file.
41216         * modules/unictype/property-combining: New file.
41217         * modules/unictype/property-composite: New file.
41218         * modules/unictype/property-decimal-digit: New file.
41219         * modules/unictype/property-numeric: New file.
41220         * modules/unictype/property-diacritic: New file.
41221         * modules/unictype/property-extender: New file.
41222         * modules/unictype/property-ignorable-control: New file.
41223         * modules/unictype/property-test: New file.
41224         * modules/unictype/property-byname: New file.
41225         * modules/unictype/property-all: New file.
41226         * modules/unictype/scripts: New file.
41227         * modules/unictype/scripts-all: New file.
41228         * modules/unictype/block-of: New file.
41229         * modules/unictype/block-test: New file.
41230         * modules/unictype/block-list: New file.
41231         * modules/unictype/block-all: New file.
41232         * modules/unictype/syntax-c-whitespace: New file.
41233         * modules/unictype/syntax-java-whitespace: New file.
41234         * modules/unictype/syntax-c-ident: New file.
41235         * modules/unictype/syntax-java-ident: New file.
41236         * modules/unictype/ctype-alnum: New file.
41237         * modules/unictype/ctype-alpha: New file.
41238         * modules/unictype/ctype-cntrl: New file.
41239         * modules/unictype/ctype-digit: New file.
41240         * modules/unictype/ctype-graph: New file.
41241         * modules/unictype/ctype-lower: New file.
41242         * modules/unictype/ctype-print: New file.
41243         * modules/unictype/ctype-punct: New file.
41244         * modules/unictype/ctype-space: New file.
41245         * modules/unictype/ctype-upper: New file.
41246         * modules/unictype/ctype-xdigit: New file.
41247         * modules/unictype/ctype-blank: New file.
41248         * lib/unictype/bidi_byname.c: New file.
41249         * lib/unictype/bidi_name.c: New file.
41250         * lib/unictype/bidi_of.c: New file.
41251         * lib/unictype/bidi_test.c: New file.
41252         * lib/unictype/bitmap.h: New file.
41253         * lib/unictype/block_test.c: New file.
41254         * lib/unictype/blocks.c: New file.
41255         * lib/unictype/categ_C.c: New file.
41256         * lib/unictype/categ_Cc.c: New file.
41257         * lib/unictype/categ_Cf.c: New file.
41258         * lib/unictype/categ_Cn.c: New file.
41259         * lib/unictype/categ_Co.c: New file.
41260         * lib/unictype/categ_Cs.c: New file.
41261         * lib/unictype/categ_L.c: New file.
41262         * lib/unictype/categ_Ll.c: New file.
41263         * lib/unictype/categ_Lm.c: New file.
41264         * lib/unictype/categ_Lo.c: New file.
41265         * lib/unictype/categ_Lt.c: New file.
41266         * lib/unictype/categ_Lu.c: New file.
41267         * lib/unictype/categ_M.c: New file.
41268         * lib/unictype/categ_Mc.c: New file.
41269         * lib/unictype/categ_Me.c: New file.
41270         * lib/unictype/categ_Mn.c: New file.
41271         * lib/unictype/categ_N.c: New file.
41272         * lib/unictype/categ_Nd.c: New file.
41273         * lib/unictype/categ_Nl.c: New file.
41274         * lib/unictype/categ_No.c: New file.
41275         * lib/unictype/categ_P.c: New file.
41276         * lib/unictype/categ_Pc.c: New file.
41277         * lib/unictype/categ_Pd.c: New file.
41278         * lib/unictype/categ_Pe.c: New file.
41279         * lib/unictype/categ_Pf.c: New file.
41280         * lib/unictype/categ_Pi.c: New file.
41281         * lib/unictype/categ_Po.c: New file.
41282         * lib/unictype/categ_Ps.c: New file.
41283         * lib/unictype/categ_S.c: New file.
41284         * lib/unictype/categ_Sc.c: New file.
41285         * lib/unictype/categ_Sk.c: New file.
41286         * lib/unictype/categ_Sm.c: New file.
41287         * lib/unictype/categ_So.c: New file.
41288         * lib/unictype/categ_Z.c: New file.
41289         * lib/unictype/categ_Zl.c: New file.
41290         * lib/unictype/categ_Zp.c: New file.
41291         * lib/unictype/categ_Zs.c: New file.
41292         * lib/unictype/categ_and.c: New file.
41293         * lib/unictype/categ_and_not.c: New file.
41294         * lib/unictype/categ_byname.c: New file.
41295         * lib/unictype/categ_name.c: New file.
41296         * lib/unictype/categ_none.c: New file.
41297         * lib/unictype/categ_of.c: New file.
41298         * lib/unictype/categ_or.c: New file.
41299         * lib/unictype/categ_test.c: New file.
41300         * lib/unictype/combining.c: New file.
41301         * lib/unictype/ctype_alnum.c: New file.
41302         * lib/unictype/ctype_alpha.c: New file.
41303         * lib/unictype/ctype_blank.c: New file.
41304         * lib/unictype/ctype_cntrl.c: New file.
41305         * lib/unictype/ctype_digit.c: New file.
41306         * lib/unictype/ctype_graph.c: New file.
41307         * lib/unictype/ctype_lower.c: New file.
41308         * lib/unictype/ctype_print.c: New file.
41309         * lib/unictype/ctype_punct.c: New file.
41310         * lib/unictype/ctype_space.c: New file.
41311         * lib/unictype/ctype_upper.c: New file.
41312         * lib/unictype/ctype_xdigit.c: New file.
41313         * lib/unictype/decdigit.c: New file.
41314         * lib/unictype/digit.c: New file.
41315         * lib/unictype/identsyntaxmap.h: New file.
41316         * lib/unictype/mirror.c: New file.
41317         * lib/unictype/numeric.c: New file.
41318         * lib/unictype/pr_alphabetic.c: New file.
41319         * lib/unictype/pr_ascii_hex_digit.c: New file.
41320         * lib/unictype/pr_bidi_arabic_digit.c: New file.
41321         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
41322         * lib/unictype/pr_bidi_block_separator.c: New file.
41323         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
41324         * lib/unictype/pr_bidi_common_separator.c: New file.
41325         * lib/unictype/pr_bidi_control.c: New file.
41326         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
41327         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
41328         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
41329         * lib/unictype/pr_bidi_european_digit.c: New file.
41330         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
41331         * lib/unictype/pr_bidi_left_to_right.c: New file.
41332         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
41333         * lib/unictype/pr_bidi_other_neutral.c: New file.
41334         * lib/unictype/pr_bidi_pdf.c: New file.
41335         * lib/unictype/pr_bidi_segment_separator.c: New file.
41336         * lib/unictype/pr_bidi_whitespace.c: New file.
41337         * lib/unictype/pr_byname.c: New file.
41338         * lib/unictype/pr_byname.gperf: New file.
41339         * lib/unictype/pr_combining.c: New file.
41340         * lib/unictype/pr_composite.c: New file.
41341         * lib/unictype/pr_currency_symbol.c: New file.
41342         * lib/unictype/pr_dash.c: New file.
41343         * lib/unictype/pr_decimal_digit.c: New file.
41344         * lib/unictype/pr_default_ignorable_code_point.c: New file.
41345         * lib/unictype/pr_deprecated.c: New file.
41346         * lib/unictype/pr_diacritic.c: New file.
41347         * lib/unictype/pr_extender.c: New file.
41348         * lib/unictype/pr_format_control.c: New file.
41349         * lib/unictype/pr_grapheme_base.c: New file.
41350         * lib/unictype/pr_grapheme_extend.c: New file.
41351         * lib/unictype/pr_grapheme_link.c: New file.
41352         * lib/unictype/pr_hex_digit.c: New file.
41353         * lib/unictype/pr_hyphen.c: New file.
41354         * lib/unictype/pr_id_continue.c: New file.
41355         * lib/unictype/pr_id_start.c: New file.
41356         * lib/unictype/pr_ideographic.c: New file.
41357         * lib/unictype/pr_ids_binary_operator.c: New file.
41358         * lib/unictype/pr_ids_trinary_operator.c: New file.
41359         * lib/unictype/pr_ignorable_control.c: New file.
41360         * lib/unictype/pr_iso_control.c: New file.
41361         * lib/unictype/pr_join_control.c: New file.
41362         * lib/unictype/pr_left_of_pair.c: New file.
41363         * lib/unictype/pr_line_separator.c: New file.
41364         * lib/unictype/pr_logical_order_exception.c: New file.
41365         * lib/unictype/pr_lowercase.c: New file.
41366         * lib/unictype/pr_math.c: New file.
41367         * lib/unictype/pr_non_break.c: New file.
41368         * lib/unictype/pr_not_a_character.c: New file.
41369         * lib/unictype/pr_numeric.c: New file.
41370         * lib/unictype/pr_other_alphabetic.c: New file.
41371         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
41372         * lib/unictype/pr_other_grapheme_extend.c: New file.
41373         * lib/unictype/pr_other_id_continue.c: New file.
41374         * lib/unictype/pr_other_id_start.c: New file.
41375         * lib/unictype/pr_other_lowercase.c: New file.
41376         * lib/unictype/pr_other_math.c: New file.
41377         * lib/unictype/pr_other_uppercase.c: New file.
41378         * lib/unictype/pr_paired_punctuation.c: New file.
41379         * lib/unictype/pr_paragraph_separator.c: New file.
41380         * lib/unictype/pr_pattern_syntax.c: New file.
41381         * lib/unictype/pr_pattern_white_space.c: New file.
41382         * lib/unictype/pr_private_use.c: New file.
41383         * lib/unictype/pr_punctuation.c: New file.
41384         * lib/unictype/pr_quotation_mark.c: New file.
41385         * lib/unictype/pr_radical.c: New file.
41386         * lib/unictype/pr_sentence_terminal.c: New file.
41387         * lib/unictype/pr_soft_dotted.c: New file.
41388         * lib/unictype/pr_space.c: New file.
41389         * lib/unictype/pr_terminal_punctuation.c: New file.
41390         * lib/unictype/pr_test.c: New file.
41391         * lib/unictype/pr_titlecase.c: New file.
41392         * lib/unictype/pr_unassigned_code_value.c: New file.
41393         * lib/unictype/pr_unified_ideograph.c: New file.
41394         * lib/unictype/pr_uppercase.c: New file.
41395         * lib/unictype/pr_variation_selector.c: New file.
41396         * lib/unictype/pr_white_space.c: New file.
41397         * lib/unictype/pr_xid_continue.c: New file.
41398         * lib/unictype/pr_xid_start.c: New file.
41399         * lib/unictype/pr_zero_width.c: New file.
41400         * lib/unictype/scripts.c: New file.
41401         * lib/unictype/sy_c_ident.c: New file.
41402         * lib/unictype/sy_c_whitespace.c: New file.
41403         * lib/unictype/sy_java_ident.c: New file.
41404         * lib/unictype/sy_java_whitespace.c: New file.
41405
41406         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
41407         Unicode 5.0.0.
41408         * lib/unictype/blocks.h: Likewise.
41409         * lib/unictype/categ_C.h: Likewise.
41410         * lib/unictype/categ_Cc.h: Likewise.
41411         * lib/unictype/categ_Cf.h: Likewise.
41412         * lib/unictype/categ_Cn.h: Likewise.
41413         * lib/unictype/categ_Co.h: Likewise.
41414         * lib/unictype/categ_Cs.h: Likewise.
41415         * lib/unictype/categ_L.h: Likewise.
41416         * lib/unictype/categ_Ll.h: Likewise.
41417         * lib/unictype/categ_Lm.h: Likewise.
41418         * lib/unictype/categ_Lo.h: Likewise.
41419         * lib/unictype/categ_Lt.h: Likewise.
41420         * lib/unictype/categ_Lu.h: Likewise.
41421         * lib/unictype/categ_M.h: Likewise.
41422         * lib/unictype/categ_Mc.h: Likewise.
41423         * lib/unictype/categ_Me.h: Likewise.
41424         * lib/unictype/categ_Mn.h: Likewise.
41425         * lib/unictype/categ_N.h: Likewise.
41426         * lib/unictype/categ_Nd.h: Likewise.
41427         * lib/unictype/categ_Nl.h: Likewise.
41428         * lib/unictype/categ_No.h: Likewise.
41429         * lib/unictype/categ_P.h: Likewise.
41430         * lib/unictype/categ_Pc.h: Likewise.
41431         * lib/unictype/categ_Pd.h: Likewise.
41432         * lib/unictype/categ_Pe.h: Likewise.
41433         * lib/unictype/categ_Pf.h: Likewise.
41434         * lib/unictype/categ_Pi.h: Likewise.
41435         * lib/unictype/categ_Po.h: Likewise.
41436         * lib/unictype/categ_Ps.h: Likewise.
41437         * lib/unictype/categ_S.h: Likewise.
41438         * lib/unictype/categ_Sc.h: Likewise.
41439         * lib/unictype/categ_Sk.h: Likewise.
41440         * lib/unictype/categ_Sm.h: Likewise.
41441         * lib/unictype/categ_So.h: Likewise.
41442         * lib/unictype/categ_Z.h: Likewise.
41443         * lib/unictype/categ_Zl.h: Likewise.
41444         * lib/unictype/categ_Zp.h: Likewise.
41445         * lib/unictype/categ_Zs.h: Likewise.
41446         * lib/unictype/categ_of.h: Likewise.
41447         * lib/unictype/combining.h: Likewise.
41448         * lib/unictype/ctype_alnum.h: Likewise.
41449         * lib/unictype/ctype_alpha.h: Likewise.
41450         * lib/unictype/ctype_blank.h: Likewise.
41451         * lib/unictype/ctype_cntrl.h: Likewise.
41452         * lib/unictype/ctype_digit.h: Likewise.
41453         * lib/unictype/ctype_graph.h: Likewise.
41454         * lib/unictype/ctype_lower.h: Likewise.
41455         * lib/unictype/ctype_print.h: Likewise.
41456         * lib/unictype/ctype_punct.h: Likewise.
41457         * lib/unictype/ctype_space.h: Likewise.
41458         * lib/unictype/ctype_upper.h: Likewise.
41459         * lib/unictype/ctype_xdigit.h: Likewise.
41460         * lib/unictype/decdigit.h: Likewise.
41461         * lib/unictype/digit.h: Likewise.
41462         * lib/unictype/mirror.h: Likewise.
41463         * lib/unictype/numeric.h: Likewise.
41464         * lib/unictype/pr_alphabetic.h: Likewise.
41465         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
41466         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
41467         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
41468         * lib/unictype/pr_bidi_block_separator.h: Likewise.
41469         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
41470         * lib/unictype/pr_bidi_common_separator.h: Likewise.
41471         * lib/unictype/pr_bidi_control.h: Likewise.
41472         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
41473         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
41474         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
41475         * lib/unictype/pr_bidi_european_digit.h: Likewise.
41476         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
41477         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
41478         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
41479         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
41480         * lib/unictype/pr_bidi_pdf.h: Likewise.
41481         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
41482         * lib/unictype/pr_bidi_whitespace.h: Likewise.
41483         * lib/unictype/pr_combining.h: Likewise.
41484         * lib/unictype/pr_composite.h: Likewise.
41485         * lib/unictype/pr_currency_symbol.h: Likewise.
41486         * lib/unictype/pr_dash.h: Likewise.
41487         * lib/unictype/pr_decimal_digit.h: Likewise.
41488         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
41489         * lib/unictype/pr_deprecated.h: Likewise.
41490         * lib/unictype/pr_diacritic.h: Likewise.
41491         * lib/unictype/pr_extender.h: Likewise.
41492         * lib/unictype/pr_format_control.h: Likewise.
41493         * lib/unictype/pr_grapheme_base.h: Likewise.
41494         * lib/unictype/pr_grapheme_extend.h: Likewise.
41495         * lib/unictype/pr_grapheme_link.h: Likewise.
41496         * lib/unictype/pr_hex_digit.h: Likewise.
41497         * lib/unictype/pr_hyphen.h: Likewise.
41498         * lib/unictype/pr_id_continue.h: Likewise.
41499         * lib/unictype/pr_id_start.h: Likewise.
41500         * lib/unictype/pr_ideographic.h: Likewise.
41501         * lib/unictype/pr_ids_binary_operator.h: Likewise.
41502         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
41503         * lib/unictype/pr_ignorable_control.h: Likewise.
41504         * lib/unictype/pr_iso_control.h: Likewise.
41505         * lib/unictype/pr_join_control.h: Likewise.
41506         * lib/unictype/pr_left_of_pair.h: Likewise.
41507         * lib/unictype/pr_line_separator.h: Likewise.
41508         * lib/unictype/pr_logical_order_exception.h: Likewise.
41509         * lib/unictype/pr_lowercase.h: Likewise.
41510         * lib/unictype/pr_math.h: Likewise.
41511         * lib/unictype/pr_non_break.h: Likewise.
41512         * lib/unictype/pr_not_a_character.h: Likewise.
41513         * lib/unictype/pr_numeric.h: Likewise.
41514         * lib/unictype/pr_other_alphabetic.h: Likewise.
41515         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
41516         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
41517         * lib/unictype/pr_other_id_continue.h: Likewise.
41518         * lib/unictype/pr_other_id_start.h: Likewise.
41519         * lib/unictype/pr_other_lowercase.h: Likewise.
41520         * lib/unictype/pr_other_math.h: Likewise.
41521         * lib/unictype/pr_other_uppercase.h: Likewise.
41522         * lib/unictype/pr_paired_punctuation.h: Likewise.
41523         * lib/unictype/pr_paragraph_separator.h: Likewise.
41524         * lib/unictype/pr_pattern_syntax.h: Likewise.
41525         * lib/unictype/pr_pattern_white_space.h: Likewise.
41526         * lib/unictype/pr_private_use.h: Likewise.
41527         * lib/unictype/pr_punctuation.h: Likewise.
41528         * lib/unictype/pr_quotation_mark.h: Likewise.
41529         * lib/unictype/pr_radical.h: Likewise.
41530         * lib/unictype/pr_sentence_terminal.h: Likewise.
41531         * lib/unictype/pr_soft_dotted.h: Likewise.
41532         * lib/unictype/pr_space.h: Likewise.
41533         * lib/unictype/pr_terminal_punctuation.h: Likewise.
41534         * lib/unictype/pr_titlecase.h: Likewise.
41535         * lib/unictype/pr_unassigned_code_value.h: Likewise.
41536         * lib/unictype/pr_unified_ideograph.h: Likewise.
41537         * lib/unictype/pr_uppercase.h: Likewise.
41538         * lib/unictype/pr_variation_selector.h: Likewise.
41539         * lib/unictype/pr_white_space.h: Likewise.
41540         * lib/unictype/pr_xid_continue.h: Likewise.
41541         * lib/unictype/pr_xid_start.h: Likewise.
41542         * lib/unictype/pr_zero_width.h: Likewise.
41543         * lib/unictype/scripts.h: Likewise.
41544         * lib/unictype/scripts_byname.gperf: Likewise.
41545         * lib/unictype/sy_c_ident.h: Likewise.
41546         * lib/unictype/sy_c_whitespace.h: Likewise.
41547         * lib/unictype/sy_java_ident.h: Likewise.
41548         * lib/unictype/sy_java_whitespace.h: Likewise.
41549
41550         * lib/unictype/Makefile: New file.
41551         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
41552         glibc.
41553         * lib/unictype/3level.h: New file, copied from glibc.
41554         * lib/unictype/3levelbit.h: New file.
41555
41556 2007-11-11  Bruno Haible  <bruno@clisp.org>
41557
41558         * modules/gperf: New file.
41559         * modules/iconv_open (Depends-on): Add it.
41560         (Makefile.am): Remove the GPERF definition.
41561
41562 2007-11-11  Bruno Haible  <bruno@clisp.org>
41563
41564         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
41565         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
41566
41567 2007-11-11  Bruno Haible  <bruno@clisp.org>
41568
41569         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
41570         (usage): Remove function.
41571
41572 2007-11-11  Bruno Haible  <bruno@clisp.org>
41573
41574         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
41575         gl_FUNC_CEILF_LIBS.
41576         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
41577         gl_FUNC_CEIL_LIBS.
41578         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
41579         gl_FUNC_CEILL_LIBS.
41580         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
41581         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
41582         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
41583
41584 2007-11-11  Bruno Haible  <bruno@clisp.org>
41585
41586         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
41587         roundf were declared but do not exist on functions.
41588         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
41589         roundl were declared but do not exist on functions.
41590         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
41591         HAVE_FLOORL_AND_CEILL, respectively.
41592         Needed for Sun C on Solaris 10.
41593
41594 2007-11-11  Bruno Haible  <bruno@clisp.org>
41595
41596         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
41597         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
41598         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
41599         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
41600         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
41601         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
41602         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
41603         HAVE_DECL_ROUNDF.
41604         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
41605         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
41606         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
41607         of HAVE_DECL_ROUND*.
41608         * modules/math (Makefile.am): Update.
41609
41610 2007-11-10  Bruno Haible  <bruno@clisp.org>
41611
41612         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
41613         ptrdiff_t as m4/intl.m4.
41614
41615 2007-11-10  Jim Meyering  <meyering@redhat.com>
41616
41617         Avoid link failure for the argmatch test.
41618         * tests/test-argmatch.c (usage): Define function to avoid a link
41619         failure: argmatch_die requires a usage function.
41620
41621 2007-11-09  Bruno Haible  <bruno@clisp.org>
41622
41623         * doc/functions/snprintf.texi: Mention BeOS deficiency.
41624         * doc/functions/vsnprintf.texi: Likewise.
41625         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
41626         with a size argument < 2.
41627
41628 2007-11-09  Bruno Haible  <bruno@clisp.org>
41629
41630         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
41631         buffer. Fixes an inefficiency introduced on 2007-11-03.
41632
41633 2007-11-09  Bruno Haible  <bruno@clisp.org>
41634
41635         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
41636         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
41637
41638 2007-11-08  Jim Meyering  <meyering@redhat.com>
41639
41640         Change cache variable name prefix "jm_" to "gl_" everywhere.
41641         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
41642         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
41643         * m4/uptime.m4: s/gl_/jm_/
41644
41645 2007-11-07  Bruno Haible  <bruno@clisp.org>
41646
41647         Update to GNU gettext 0.17.
41648         * m4/intl.m4: Update to GNU gettext 0.17.
41649         * m4/po.m4: Likewise.
41650         * modules/gettext (Files): Remove m4/ulonglong.m4.
41651         (configure.ac): Require gettext infrastructure from version 0.17.
41652
41653 2007-11-06  Bruno Haible  <bruno@clisp.org>
41654
41655         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
41656         symbolic values are not defined in a public header.
41657         * lib/freadable.c (freadable) [QNX]: Likewise.
41658         * lib/freadahead.c (freadahead) [QNX]: Likewise.
41659         * lib/freading.c (freading) [QNX]: Likewise.
41660         * lib/fseterr.c (fseterr) [QNX]: Likewise.
41661         * lib/fwritable.c (fwritable) [QNX]: Likewise.
41662         * lib/fwriting.c (fwriting) [QNX]: Likewise.
41663         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
41664         Reported by Alain Magloire.
41665
41666         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
41667
41668 2007-11-05  Bruno Haible  <bruno@clisp.org>
41669
41670         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
41671         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
41672         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
41673         Reported by Eric Blake.
41674
41675 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41676             Bruno Haible  <bruno@clisp.org>
41677
41678         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
41679         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
41680         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
41681         (malloc): Undefine also before including <stdlib.h>.
41682         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
41683         Needed on OSF/1 4.0.
41684
41685 2007-11-05  Jim Meyering  <meyering@redhat.com>
41686
41687         git-version-gen: sync from coreutils.
41688         * build-aux/git-version-gen: Add comments.
41689         Change the first '-' to '.' in the snapshot version string,
41690         e.g., 6.9-377-08144 -> 6.9.377-08144
41691         Remove first parameter.
41692         Don't declare a version "-dirty" merely because a time
41693         stamp has changed.
41694
41695 2007-11-04  Bruno Haible  <bruno@clisp.org>
41696
41697         * lib/lock.h: Protect all macro definitions containing an 'if'
41698         statement through a "do { ... } while (0)".
41699         * lib/tls.h: Likewise.
41700
41701 2007-11-04  Bruno Haible  <bruno@clisp.org>
41702
41703         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
41704
41705 2007-11-04  Bruno Haible  <bruno@clisp.org>
41706
41707         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
41708         * modules/fprintf-posix (Depends-on): Add nocrash.
41709         * modules/snprintf-posix (Depends-on): Likewise.
41710         * modules/sprintf-posix (Depends-on): Likewise.
41711         * modules/vasnprintf-posix (Depends-on): Likewise.
41712         * modules/vasprintf-posix (Depends-on): Likewise.
41713         * modules/vfprintf-posix (Depends-on): Likewise.
41714         * modules/vsnprintf-posix (Depends-on): Likewise.
41715         * modules/vsprintf-posix (Depends-on): Likewise.
41716         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41717         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41718         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41719         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41720         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41721         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41722         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41723
41724 2007-11-04  Bruno Haible  <bruno@clisp.org>
41725
41726         * modules/nocrash: New file.
41727         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
41728         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
41729
41730 2007-11-04  Bruno Haible  <bruno@clisp.org>
41731
41732         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
41733         precision handling.
41734         * tests/test-vasprintf-posix.c (test_function): Likewise.
41735         * tests/test-snprintf-posix.h (test_function): Likewise.
41736         * tests/test-sprintf-posix.h (test_function): Likewise.
41737
41738         Fix *printf behaviour for large precisions on mingw and BeOS.
41739         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
41740         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
41741         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
41742         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41743         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41744         gl_PRINTF_PRECISION and test its result. Invoke
41745         gl_PREREQ_VASNPRINTF_PRECISION.
41746         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41747         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41748         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41749         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41750         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41751         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41752         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41753         * doc/functions/fprintf.texi: Update.
41754         * doc/functions/printf.texi: Update.
41755         * doc/functions/snprintf.texi: Update.
41756         * doc/functions/sprintf.texi: Update.
41757         * doc/functions/vfprintf.texi: Update.
41758         * doc/functions/vprintf.texi: Update.
41759         * doc/functions/vsnprintf.texi: Update.
41760         * doc/functions/vsprintf.texi: Update.
41761
41762 2007-11-04  Bruno Haible  <bruno@clisp.org>
41763
41764         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
41765
41766 2007-11-04  Bruno Haible  <bruno@clisp.org>
41767
41768         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
41769         Reported by Sylvain Beucler <beuc@gnu.org>.
41770
41771 2007-11-03  Bruno Haible  <bruno@clisp.org>
41772
41773         * tests/test-fprintf-posix2.sh: New file.
41774         * tests/test-fprintf-posix2.c: New file.
41775         * modules/fprintf-posix-tests (Files): Add them.
41776         (TESTS): Add test-fprintf-posix2.sh.
41777         (configure.ac): Check for getrlimit and setrlimit.
41778         (check_PROGRAMS): Add test-fprintf-posix2.
41779
41780         * tests/test-printf-posix2.sh: New file.
41781         * tests/test-printf-posix2.c: New file.
41782         * modules/printf-posix-tests (Files): Add them.
41783         (TESTS): Add test-printf-posix2.sh.
41784         (configure.ac): Check for getrlimit and setrlimit.
41785         (check_PROGRAMS): Add test-printf-posix2.
41786
41787         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
41788         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
41789         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
41790         (decode_double): New function, copied from decode_long_double.
41791         (scale10_round_decimal_decoded): New function, extracted from
41792         scale10_round_decimal_long_double.
41793         (scale10_round_decimal_long_double): Use it.
41794         (scale10_round_decimal_double): New function.
41795         (floorlog10): New function.
41796         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
41797         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
41798         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41799         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41800         gl_PRINTF_ENOMEM and test its result. Invoke
41801         gl_PREREQ_VASNPRINTF_ENOMEM.
41802         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41803         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41804         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41805         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41806         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41807         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41808         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41809         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
41810         * modules/snprintf-posix (Depends-on): Likewise.
41811         * modules/sprintf-posix (Depends-on): Likewise.
41812         * modules/vasnprintf-posix (Depends-on): Likewise.
41813         * modules/vasprintf-posix (Depends-on): Likewise.
41814         * modules/vfprintf-posix (Depends-on): Likewise.
41815         * modules/vsnprintf-posix (Depends-on): Likewise.
41816         * modules/vsprintf-posix (Depends-on): Likewise.
41817         * doc/functions/fprintf.texi: Update.
41818         * doc/functions/printf.texi: Update.
41819         * doc/functions/snprintf.texi: Update.
41820         * doc/functions/sprintf.texi: Update.
41821         * doc/functions/vfprintf.texi: Update.
41822         * doc/functions/vprintf.texi: Update.
41823         * doc/functions/vsnprintf.texi: Update.
41824         * doc/functions/vsprintf.texi: Update.
41825
41826 2007-11-03  Bruno Haible  <bruno@clisp.org>
41827
41828         * modules/frexp-nolibm-tests: New file.
41829
41830         * modules/frexp-nolibm: New file.
41831         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
41832
41833 2007-11-03  Bruno Haible  <bruno@clisp.org>
41834
41835         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
41836         value is C99 compliant.
41837         Needed for OSF/1 5.1.
41838
41839 2007-11-03  Bruno Haible  <bruno@clisp.org>
41840
41841         Fix out-of-memory handling of vasnprintf.
41842         * lib/printf-parse.c: Include <errno.h>.
41843         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
41844         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
41845         is already set.
41846
41847 2007-11-02  Eric Blake  <ebb9@byu.net>
41848
41849         Fix tests on cygwin.
41850         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
41851
41852 2007-11-01  Bruno Haible  <bruno@clisp.org>
41853
41854         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
41855         warning.
41856         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
41857         needed for POSIX compatibility.
41858
41859 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41860
41861         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
41862         for compatibility with GNU.
41863
41864 2007-11-01  Bruno Haible  <bruno@clisp.org>
41865
41866         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
41867         (putenv): Renamed from rpl_putenv. Change argument type from
41868         'const char *' to 'char *'.
41869         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
41870         of defining putenv in config.h, just set REPLACE_PUTENV.
41871         * modules/putenv (Depends-on): Add stdlib.
41872         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41873         (Include): Use <stdlib.h>.
41874         * lib/stdlib.in.h (putenv): New declaration.
41875         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
41876         REPLACE_PUTENV.
41877         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
41878         REPLACE_PUTENV.
41879         Needed for MacOS X 10.5.0.
41880         Reported by Peter O'Gorman <peter@pogma.com>.
41881
41882 2007-11-01  Jim Meyering  <meyering@redhat.com>
41883
41884         Treat an empty date string exactly like "0".
41885         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
41886         if the remaining date string (to be parsed) is empty, use "0".
41887         Reported by Mischa Molhoek and discussed in this thread:
41888         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
41889
41890 2007-10-31  Bruno Haible  <bruno@clisp.org>
41891
41892         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
41893         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
41894         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
41895         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
41896         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
41897         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
41898
41899 2007-10-31  Bruno Haible  <bruno@clisp.org>
41900
41901         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
41902         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
41903         (AC_TYPE_LONG_LONG_INT): Use it.
41904         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
41905         it as well.
41906         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
41907         to m4/longlong.m4.
41908         * modules/stdint (Files): Remove m4/ulonglong.m4.
41909         * modules/strtoull (Files): Use m4/longlong.m4 instead of
41910         m4/ulonglong.m4.
41911         * modules/strtoumax (Files): Likewise.
41912
41913 2007-10-30  Bruno Haible  <bruno@clisp.org>
41914
41915         * modules/xvasprintf-posix: New file.
41916         Suggested by Eric Blake.
41917
41918 2007-10-30  Bruno Haible  <bruno@clisp.org>
41919
41920         * modules/xprintf-posix-tests: New file.
41921         * tests/test-xprintf-posix.sh: New file.
41922         * tests/test-xprintf-posix.c: New file.
41923         * tests/test-xfprintf-posix.c: New file.
41924
41925         * modules/xprintf-posix: New file.
41926
41927 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41928
41929         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
41930         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
41931         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
41932
41933 2007-10-29  Bruno Haible  <bruno@clisp.org>
41934
41935         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
41936         contain the special marker '_cv_'.
41937         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41938         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41939         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41940         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
41941         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41942         Reported by Ralf Wildenhues.
41943
41944 2007-10-29  Bruno Haible  <bruno@clisp.org>
41945
41946         * gnulib-tool (func_import): When --lgpl is not specified, set
41947         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
41948         GPLv3.
41949         Reported by Simon Josefsson.
41950
41951 2007-10-28  Bruno Haible  <bruno@clisp.org>
41952
41953         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
41954         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
41955         HAVE_DECL_ISFINITE.
41956         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
41957         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
41958         HAVE_DECL_ISFINITE.
41959
41960 2007-10-28  Bruno Haible  <bruno@clisp.org>
41961
41962         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
41963         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
41964
41965 2007-10-28  Bruno Haible  <bruno@clisp.org>
41966
41967         Fix link errors with Sun C 5.0 on Solaris 10.
41968         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
41969         function is declared but not present in the compiler's libm.
41970         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
41971         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
41972         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
41973         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
41974         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
41975         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
41976         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
41977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
41978         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
41979         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
41980         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
41981         HAVE_DECL_FLOORL.
41982
41983 2007-10-28  Bruno Haible  <bruno@clisp.org>
41984
41985         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
41986         gl_FUNC_FLOORL. Cache the result.
41987         (gl_FUNC_FLOORL): Use it.
41988         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
41989         gl_FUNC_CEILL. Cache the result.
41990         (gl_FUNC_CEILL): Use it.
41991
41992         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
41993         gl_FUNC_FLOOR. Cache the result.
41994         (gl_FUNC_FLOOR): Use it.
41995         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
41996         gl_FUNC_CEIL. Cache the result.
41997         (gl_FUNC_CEIL): Use it.
41998
41999         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
42000         gl_FUNC_FLOORF. Cache the result.
42001         (gl_FUNC_FLOORF): Use it.
42002         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
42003         gl_FUNC_CEILF. Cache the result.
42004         (gl_FUNC_CEILF): Use it.
42005
42006 2007-10-28  Bruno Haible  <bruno@clisp.org>
42007
42008         * gnulib-tool: Allow specifying the LGPL version number through
42009         --lgpl=2 or --lgpl=3.
42010         (func_usage): Document --lgpl with argument.
42011         Handle --lgpl=... arguments.
42012         (func_import): Recognize also gl_LGPL calls with an argument. When
42013         --lgpl=2 is used and the module's license is just LGPL, report an
42014         error. Set sed_transform_lib_file according to the lgpl variable. In
42015         the generated files, use --lgpl or gl_LGPL invocations with argument,
42016         if necessary.
42017         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
42018         an LGPv2+ license.
42019         * doc/gnulib-tool.texi (Modified imports): Update explanation of
42020         gl_LGPL macro.
42021
42022 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42023             Bruno Haible  <bruno@clisp.org>
42024
42025         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
42026         (u16_uctomb_aux): Likewise.
42027         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
42028         !HAVE_INLINE.
42029         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
42030
42031 2007-10-28  Bruno Haible  <bruno@clisp.org>
42032
42033         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
42034         Invoke AM_GETTEXT_OPTION if it exists.
42035         * modules/vasprintf: Likewise.
42036         * modules/verror: Likewise.
42037         * modules/xprintf: Likewise.
42038         * modules/xvasprintf: Likewise.
42039
42040 2007-10-27  Ben Pfaff  <blp@gnu.org>
42041
42042         * lib/math.in.h: Define isfinite macro and prototypes for
42043         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
42044         implementations.
42045         * m4/math_h.m4: New substitutions for isfinite module.
42046         * lib/isfinite.c: New file.
42047         * m4/isfinite.m4: New file.
42048         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
42049         * modules/isfinite: New file.
42050         * modules/isfinite-tests: New file.
42051         * tests/tests-isfinite.c: New file.
42052         * doc/functions/isfinite.texi: Mention isfinite module.
42053         * MODULES.html.sh: Mention new module.
42054
42055 2007-10-27  Ben Pfaff  <blp@gnu.org>
42056
42057         Ralf Wildenhues reported that Tru64 4.0D declares the round
42058         functions but does not have definitions.
42059         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
42060         cannot be found in any library, set the output variable to
42061         "missing" instead of "".
42062         * m4/round.m4: Also use our substitute if we cannot find round in
42063         any library, even if it is declared.
42064         * m4/roundf.m4: Likewise for roundf.
42065         * m4/roundl.m4: Likewise for roundl.
42066         * lib/math.in.h: Undefine roundf, round, roundl before defining
42067         their replacements, to allow for hypothetical systems where these
42068         may be defined as macros but not available in libraries.
42069
42070 2007-10-27  Bruno Haible  <bruno@clisp.org>
42071
42072         * doc/gnulib.texi: Invoke @firstparagraphindent.
42073         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
42074         changes in gnulib.
42075         (Source changes): New section.
42076
42077 2007-10-26  Bruno Haible  <bruno@clisp.org>
42078
42079         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
42080         borrowed from autoconf.
42081
42082 2007-10-26  Bruno Haible  <bruno@clisp.org>
42083
42084         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
42085         strerror returned the empty string. Needed on HP-UX 11.00.
42086
42087 2007-10-24  Micah Cowan  <micah@cowan.name>
42088
42089         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
42090         * build-aux/bootstrap: Remove support for now-unnecessary option,
42091         --cvs-user, and envvars CVS_USER, CVS_RSH.
42092
42093 2007-10-24  Jim Meyering  <meyering@redhat.com>
42094
42095         Avoid diagnostics from sha1sum when there is no cached checksum.
42096         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
42097         if the po.s1 file hasn't been created yet.
42098
42099         * build-aux/bootstrap: Sync from coreutils:
42100         2007-10-24  Jim Meyering  <meyering@redhat.com>
42101         Get gnulib from the git repository, not from an obsolete cvs one.
42102         * build-aux/bootstrap: Suggestion from Micah Cowan.
42103         2007-10-04  Jim Meyering  <jim@meyering.net>
42104         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
42105         (update_po_files): Work also when there are no .po files in po/.
42106
42107 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42108
42109         * README: Append ".git" to git and cg examples.
42110         Problem reported by Benoit Sigoure.
42111
42112 2007-10-23  Micah Cowan  <micah@cowan.name>
42113
42114         * users.txt: Add wget.
42115
42116 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42117
42118         Fix linking of some unistdio tests on FreeBSD.
42119         * modules/unistdio/u16-vsnprintf-tests
42120         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
42121         * modules/unistdio/u16-vsprintf-tests
42122         (test_u16_vsnprintf1_LDADD): Likewise.
42123         * modules/unistdio/u32-vsnprintf-tests
42124         (test_u32_vsnprintf1_LDADD): Likewise.
42125         * modules/unistdio/u32-vsprintf-tests
42126         (test_u32_vsprintf1_LDADD): Likewise.
42127         * modules/unistdio/u8-vsnprintf-tests
42128         (test_u8_vsnprintf1_LDADD): Likewise.
42129         * modules/unistdio/u8-vsprintf-tests
42130         (test_u8_vsprintf1_LDADD): Likewise.
42131         * modules/unistdio/ulc-vsnprintf-tests
42132         (test_ulc_vsnprintf1_LDADD): Likewise.
42133         * modules/unistdio/ulc-vsprintf-tests
42134         (test_ulc_vsprintf1_LDADD): Likewise.
42135
42136         Fix linking of some uniconv tests on FreeBSD.
42137         * modules/uniconv/u16-conv-from-enc-tests
42138         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
42139         * modules/uniconv/u16-conv-to-enc-tests
42140         (test_u16_conv_to_enc_LDADD): Likewise.
42141         * modules/uniconv/u16-strconv-from-enc-tests
42142         (test_u16_strconv_from_enc_LDADD): Likewise.
42143         * modules/uniconv/u16-strconv-to-enc-tests
42144         (test_u16_strconv_to_enc_LDADD): Likewise.
42145         * modules/uniconv/u32-conv-from-enc-tests
42146         (test_u32_conv_from_enc_LDADD): Likewise.
42147         * modules/uniconv/u32-conv-to-enc-tests
42148         (test_u32_conv_to_enc_LDADD): Likewise.
42149         * modules/uniconv/u32-strconv-from-enc-tests
42150         (test_u32_strconv_from_enc_LDADD): Likewise.
42151         * modules/uniconv/u32-strconv-to-enc-tests
42152         (test_u32_strconv_to_enc_LDADD): Likewise.
42153         * modules/uniconv/u8-conv-from-enc-tests
42154         (test_u8_conv_from_enc_LDADD): Likewise.
42155         * modules/uniconv/u8-conv-to-enc-tests
42156         (test_u8_conv_to_enc_LDADD): Likewise.
42157         * modules/uniconv/u8-strconv-from-enc-tests
42158         (test_u8_strconv_from_enc_LDADD): Likewise.
42159         * modules/uniconv/u8-strconv-to-enc-tests
42160         (test_u8_strconv_to_enc_LDADD): Likewise.
42161
42162 2007-10-22  Bruno Haible  <bruno@clisp.org>
42163
42164         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
42165         size.
42166
42167 2007-10-22  Eric Blake  <ebb9@byu.net>
42168
42169         Tweak x*printf documentation.
42170         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
42171         variable name and comments.
42172         Suggested by Bruno Haible.
42173
42174 2007-10-22  Bruno Haible  <bruno@clisp.org>
42175
42176         * lib/acl.c (copy_acl): Fix file name in comment.
42177
42178 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
42179
42180         Fix Tru64 problem with stdbool.h.
42181         * lib/stdbool.in.h (false, true):
42182         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
42183         Don't declare as an enum in this situation; it runs afoul of Tru64.
42184         Problem reported by Steven M. Schweda in
42185         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
42186
42187 2007-10-22  Eric Blake  <ebb9@byu.net>
42188
42189         Also wrap vf?printf.
42190         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
42191         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
42192         (xvprintf, xvfprintf): New functions.
42193
42194 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42195
42196         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
42197         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
42198
42199         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
42200         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
42201
42202 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
42203
42204         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
42205         by Bruno Haible.
42206
42207 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42208
42209         * lib/getloadavg.c
42210         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
42211         Undef `sys' after including sys/table.h, for Tru64 4.0D.
42212
42213         * tests/test-i-ring.c: Work for C89.
42214
42215 2007-10-22  Bruno Haible  <bruno@clisp.org>
42216
42217         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
42218         -1u, in preprocessor expression, so that we don't test for the bug
42219         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
42220         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
42221
42222 2007-10-22  Eric Blake  <ebb9@byu.net>
42223
42224         * tests/test-yesno.sh: Silence stderr during test.
42225
42226 2007-10-22  Simon Josefsson  <simon@josefsson.org>
42227
42228         * modules/crypto/gc-camellia: New file.
42229
42230         * m4/gc-camellia.m4: New file.
42231
42232         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
42233
42234         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
42235
42236 2007-10-22  Simon Josefsson  <simon@josefsson.org>
42237
42238         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
42239         --help to stdout.  Reported by sms@antinode.org (Steven
42240         M. Schweda).
42241
42242 2007-10-22  Simon Josefsson  <simon@josefsson.org>
42243
42244         * users.txt: Fix link to libksba.
42245
42246 2007-10-21  Ben Pfaff  <blp@gnu.org>
42247
42248         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
42249         round.c roundf implementation that depends on floorf and ceilf to
42250         be tested unconditionally.
42251
42252 2007-10-21  Ben Pfaff  <blp@gnu.org>
42253
42254         * m4/check-libm-func.m4: Removed.
42255         * m4/check-math-lib.m4: New file.
42256         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
42257         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
42258         definition and lack of AC_LIBOBJ([roundf]).
42259         * m4/roundl.m4: Ditto, and similarly for roundl.
42260         * modules/round: Reference new m4 file.
42261         * modules/roundf: Ditto.
42262         * modules/roundl: Ditto.
42263         * tests/test-round2.c (main): Use ROUND instead of round.
42264         Bug report from Bruno Haible.
42265
42266 2007-10-21  Bruno Haible  <bruno@clisp.org>
42267
42268         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
42269         context.
42270
42271 2007-10-21  Bruno Haible  <bruno@clisp.org>
42272
42273         * tests/test-wcwidth.c (main): Allow negative result for some control
42274         characters.
42275
42276         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
42277         Needed on OSF/1 5.1.
42278
42279 2007-10-21  Bruno Haible  <bruno@clisp.org>
42280
42281         * tests/test-floorf1.c: Include isnanf.h.
42282         (main): Use isnanf() instead of isnan().
42283         * tests/test-ceilf1.c: Include isnanf.h.
42284         (main): Use isnanf() instead of isnan().
42285         * tests/test-truncf1.c: Include isnanf.h.
42286         (main): Use isnanf() instead of isnan().
42287         * tests/test-roundf1.c: Include isnanf.h.
42288         (main): Use isnanf() instead of isnan().
42289
42290 2007-10-21  Eric Blake  <ebb9@byu.net>
42291
42292         * users.txt: Update URL for m4.
42293
42294 2007-10-21  Bruno Haible  <bruno@clisp.org>
42295
42296         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
42297
42298 2007-10-21  Bruno Haible  <bruno@clisp.org>
42299
42300         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
42301         Git's management files if the CVS files are not present.
42302
42303 2007-10-20  Bruno Haible  <bruno@clisp.org>
42304
42305         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
42306         gcc-3.4.x.
42307
42308 2007-10-20  Ben Pfaff  <blp@gnu.org>
42309
42310         * lib/math.in.h: Declare round, roundf, roundl if we are providing
42311         implementations.
42312         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
42313         * lib/round.c: New file.
42314         * lib/roundf.c: New file.
42315         * lib/roundl.c: New file.
42316         * m4/round.m4: New file.
42317         * m4/roundf.m4: New file.
42318         * m4/roundl.m4: New file.
42319         * m4/check-libm-func-m4: New file.
42320         * modules/math: Replace round, roundf, roundl related @VARS@ in
42321         math.in.h.
42322         * modules/round: New file.
42323         * modules/round-tests: New file.
42324         * modules/roundf: New file.
42325         * modules/roundf-tests: New file.
42326         * modules/roundl: New file.
42327         * modules/roundl-tests: New file.
42328         * tests/test-round1.c: New file.
42329         * tests/test-round2.c: New file.
42330         * tests/test-roundf1.c: New file.
42331         * tests/test-roundf2.c: New file.
42332         * tests/test-roundl.c: New file.
42333         * doc/functions/round.texi: Mention round module.
42334         * doc/functions/roundf.texi: Mention roundf module.
42335         * doc/functions/roundl.texi: Mention roundl module.
42336         * MODULES.html.sh: Mention new modules.
42337         Thanks to Bruno Haible for suggestions.
42338
42339 2007-10-20  Jim Meyering  <meyering@redhat.com>
42340
42341         * lib/xprintf.c: Include <config.h> unconditionally.
42342
42343         Change xprintf's license to GPL.
42344         * modules/xprintf (License): s/LGPL/GPL/, since this module
42345         depends on modules (exit and exitfail) which are GPL.
42346         Suggestion from Bruno Haible.
42347
42348         xprintf fixes.
42349         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
42350         Use a clearer diagnostic.
42351         Patch from Bruno Haible.
42352
42353 2007-10-20  Bruno Haible  <bruno@clisp.org>
42354
42355         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
42356         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
42357         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42358
42359 2007-10-20  Bruno Haible  <bruno@clisp.org>
42360
42361         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
42362         precision in the comparison result > x - 1 or similar.
42363         * tests/test-ceilf2.c (correct_result_p): Likewise.
42364         * tests/test-truncf2.c (correct_result_p): Likewise.
42365         * tests/test-trunc2.c (correct_result_p): Likewise.
42366         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42367
42368 2007-10-20  Bruno Haible  <bruno@clisp.org>
42369
42370         * modules/ceil: New file.
42371         * m4/ceil.m4: New file.
42372         * doc/functions/ceil.texi: Mention the 'ceil' module.
42373
42374 2007-10-20  Bruno Haible  <bruno@clisp.org>
42375
42376         * modules/floor: New file.
42377         * m4/floor.m4: New file.
42378         * doc/functions/floor.texi: Mention the 'floor' module.
42379
42380 2007-10-20  Bruno Haible  <bruno@clisp.org>
42381
42382         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
42383         of %a.
42384         * modules/floorf-tests (Depends-on): Likewise.
42385         * modules/truncf-tests (Depends-on): Likewise.
42386         * modules/trunc-tests (Depends-on): Likewise.
42387         Reported by Ben Pfaff.
42388
42389 2007-10-19  Jim Meyering  <meyering@redhat.com>
42390
42391         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
42392         Don't bother testing specific errno values.  Just test ferror.
42393
42394         New module: xprintf
42395         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
42396
42397 2007-10-19  Bruno Haible  <bruno@clisp.org>
42398
42399         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
42400         syntax.
42401         * modules/javaexec (Makefile.am): Likewise.
42402         * modules/relocatable-prog (Makefile.am): Likewise.
42403         Suggested by Jim Meyering.
42404
42405 2007-10-18  Bruno Haible  <bruno@clisp.org>
42406
42407         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
42408         Reported by Jim Meyering.
42409
42410 2007-10-18  Eric Blake  <ebb9@byu.net>
42411
42412         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
42413
42414 2007-10-18  Bruno Haible  <bruno@clisp.org>
42415
42416         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
42417         the format string into writable memory. Needed in Fortify conditions.
42418
42419 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
42420             Bruno Haible  <bruno@clisp.org>
42421
42422         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
42423         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
42424         * modules/trim (Depends-on): Add mbchar.
42425         (configure.ac): Add gl_FUNC_MBRTOWC.
42426         (Makefile.am): Augment lib_SOURCES.
42427
42428 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42429
42430         Modify glob.c to use fstatat and dirfd, to simplify it.
42431         Suggested by Eric Blake.
42432         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
42433         Don't include <stdbool.h>; not used.
42434         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
42435         (link_exists_p): Simplify implementation, since we can now assume
42436         dirfd and fstatat.
42437         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
42438
42439 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42440
42441         * gnulib-tool (func_get_dependencies): Fix sed script to
42442         match only tests.
42443
42444 2007-10-17  Bruno Haible  <bruno@clisp.org>
42445
42446         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
42447         allow locale names without encoding suffix.
42448         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42449         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42450
42451 2007-10-16  Bruno Haible  <bruno@clisp.org>
42452
42453         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
42454         * lib/getgroups.c (getgroups): Likewise.
42455         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
42456
42457 2007-10-16  Bruno Haible  <bruno@clisp.org>
42458
42459         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
42460         * modules/malloc-posix (License): Likewise.
42461         * modules/realloc-posix (License): Likewise.
42462         * modules/calloc-posix (License): Likewise.
42463         * modules/intprops (License): Change from GPL to LGPL, with
42464         Paul Eggert's approval.
42465
42466 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42467
42468         Merge glibc changes into lib/glob.c.
42469
42470         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
42471         2007-10-15 04:59:03 UTC.  Here are the changes:
42472
42473         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
42474
42475         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
42476
42477         * lib/glob.c: Add some branch prediction throughout.
42478
42479         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
42480
42481         [BZ #5103]
42482         * lib/glob.c (glob): Recognize patterns starting \/.
42483
42484         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
42485
42486         [BZ #3996]
42487         * lib/glob.c (attribute_hidden): Define if not defined.
42488         (glob): Unescape dirname, filename or username when needed and not
42489         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
42490         is NULL.  Handle unescaped [ in pattern without closing ].
42491         Don't pass GLOB_CHECK down to recursive glob for directories.
42492         (__glob_pattern_type): New function.
42493         (__glob_pattern_p): Implement using __glob_pattern_type.
42494         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
42495         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
42496         Remove unreachable code.
42497
42498         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
42499
42500         * lib/glob.c (glob_in_dir): Add some comments and asserts to
42501         explain why there are no leaks.
42502
42503         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
42504
42505         [BZ #3253]
42506         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
42507         time, rather allocate increasingly bigger arrays of pointers, if
42508         possible with alloca, if too large with malloc.
42509
42510 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42511
42512         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
42513         Problem reported by H.Merijn Brand in
42514         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
42515         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
42516         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
42517
42518 2007-10-15  Bruno Haible  <bruno@clisp.org>
42519
42520         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
42521         with explicit rpl_ prefix.
42522         * lib/fopen.c (fopen): Likewise.
42523         * lib/freopen.c (freopen): Likewise.
42524         * lib/iconv.c (iconv): Likewise.
42525         * lib/iconv_close.c (iconv_close): Likewise.
42526
42527 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42528
42529         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
42530
42531 2007-10-15  Bruno Haible  <bruno@clisp.org>
42532
42533         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
42534         <stddef.h> instead of <stdlib.h> since we only need NULL.
42535         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42536
42537 2007-10-15  Bruno Haible  <bruno@clisp.org>
42538
42539         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
42540         Replace paragraph talking about LIBOBJS.
42541         Reported by Colin Watson <cjwatson@debian.org>.
42542
42543 2007-10-15  Bruno Haible  <bruno@clisp.org>
42544
42545         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
42546         <stdlib.h> before using NULL.
42547
42548 2007-10-15  Simon Josefsson  <simon@josefsson.org>
42549
42550         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
42551         Reported by Albert Chin <china@thewrittenword.com>.
42552
42553 2007-10-14  Bruno Haible  <bruno@clisp.org>
42554
42555         * modules/iconv_open-utf-tests: New file.
42556         * tests/test-iconv-utf.c: New file.
42557
42558         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
42559         * modules/iconv_open-utf: New file.
42560         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
42561         (iconv, iconv_close): New declarations.
42562         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
42563         be defined.
42564         (iconv_open): Add special handling of conversion between UTF-8 and
42565         UTF-{16,32}{BE,LE}.
42566         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
42567         * lib/iconv_close.c: New file.
42568         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
42569         gl_FUNC_ICONV_OPEN.
42570         (gl_FUNC_ICONV_OPEN): Use it.
42571         (gl_FUNC_ICONV_OPEN_UTF): New macro.
42572         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
42573         and REPLACE_ICONV_UTF.
42574         * modules/iconv_open (Depends-on): Add c-strcase.
42575         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
42576         ICONV_CONST.
42577         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
42578
42579 2007-10-13  Albert Chin  <china@thewrittenword.com>
42580             Bruno Haible  <bruno@clisp.org>
42581
42582         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
42583         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
42584
42585 2007-10-13  Bruno Haible  <bruno@clisp.org>
42586
42587         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
42588         defined, use the ISO C99 inline semantics.
42589         * lib/argp.h (ARGP_EI): Likewise.
42590
42591 2007-10-13  Bruno Haible  <bruno@clisp.org>
42592
42593         Handle 'inline' change in gcc 4.3.0.
42594         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
42595         argp_fmtstream_write, argp_fmtstream_set_lmargin,
42596         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
42597         argp_fmtstream_point): Disable 'extern' declaration if the function
42598         definition is going to be provided inline.
42599         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
42600         semantics, not the ISO C99 inline semantics.
42601         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
42602         'extern' declaration if the function definition is going to be provided
42603         inline.
42604         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
42605         the GNU C inline semantics, not the ISO C99 inline semantics. With
42606         GCC 4.2, avoid a warning.
42607
42608 2007-10-13  Bruno Haible  <bruno@clisp.org>
42609
42610         * lib/freading.h (freading): Enable the use of __freading for
42611         glibc >= 2.7.
42612         * lib/freading.c (freading): Likewise.
42613
42614 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42615
42616         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
42617         "warning: C99 inline functions are not supported; using GNU89".
42618
42619 2007-10-12  Bruno Haible  <bruno@clisp.org>
42620
42621         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
42622         of 2.
42623         * tests/test-ceilf2.c: New file.
42624         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
42625
42626         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
42627         * modules/ceilf-tests: Update.
42628
42629 2007-10-12  Bruno Haible  <bruno@clisp.org>
42630
42631         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
42632         of 2.
42633         * tests/test-floorf2.c: New file.
42634         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
42635
42636         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
42637         * modules/floorf-tests: Update.
42638
42639 2007-10-12  Bruno Haible  <bruno@clisp.org>
42640
42641         * tests/test-trunc2.c: New file.
42642         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
42643
42644         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
42645         * modules/trunc-tests: Update.
42646
42647 2007-10-12  Bruno Haible  <bruno@clisp.org>
42648
42649         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
42650         of 2.
42651         * tests/test-truncf2.c: New file.
42652         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
42653
42654         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
42655         * modules/truncf-tests: Update.
42656
42657 2007-10-11  Eric Blake  <ebb9@byu.net>
42658
42659         Don't claim strerror is broken on Interix.
42660         * doc/functions/strerror.texi (strerror): Known broken systems are
42661         now Solaris 8, and not Interix.
42662         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
42663         Interix on cross-compile.
42664         Reported by Martin Koeppe in
42665         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
42666
42667 2007-10-11  Bruno Haible  <bruno@clisp.org>
42668
42669         * modules/i-ring-tests: New file.
42670         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
42671         instead of assert.
42672
42673 2007-10-11  Bruno Haible  <bruno@clisp.org>
42674
42675         * modules/filenamecat-tests: New file.
42676         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
42677         * lib/filenamecat.c: Remove test code.
42678
42679 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42680
42681         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
42682
42683         * lib/strerror.c: Include <string.h> always, to test interface,
42684         and to remove the need for the dummy.
42685         Include intprops.h to compute width instead of doing it ourselves
42686         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
42687         (strerror): Define it to return NULL if there's no system strerror.
42688         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
42689         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
42690         ancient pre-strerror Unix systems well any more.  Saying "unknown
42691         system error" is enough.
42692         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
42693         simpler strerror.c implementation.
42694         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
42695         Simplify the tests to reflect the simpler strerror implementation.
42696         * modules/strerror (Depends-on): Add intprops.
42697
42698 2007-10-09  Eric Blake  <ebb9@byu.net>
42699
42700         Silence test-fpending.
42701         * modules/fpending-tests (Files): Add wrapper script.
42702         * tests/test-fpending.sh: New file.
42703
42704 2007-10-09  Bruno Haible  <bruno@clisp.org>
42705
42706         * MODULES.html.sh (func_module): Don't create a hyperlink for
42707         function names like 'printf_frexp'.
42708         (Misc): Add crc, memxor.
42709         (Characteristics of floating types): New section.
42710         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
42711         isnanf-nolibm, signbit, trunc, truncf, truncl.
42712         (Enhancements for ISO C 99 functions): New subsection Input/output.
42713         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
42714         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
42715         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
42716         (Compatibility checks for POSIX:2001 functions): Add clock-time.
42717         (Enhancements for POSIX:2001 functions): Add chdir-long.
42718         (File system functions): Add areadlink, chdir-safer, read-file.
42719         Remove cycle-check.
42720         (File system as inode set): New section.
42721         (Date and time): Add gethrxtime.
42722         (Multithreading): Add openmp.
42723         (Internationalization functions): Add localename.
42724         (Unicode string functions): Add unistr/u*-mbsnlen.
42725         (Support for maintaining and releasing projects): Add git-version-gen.
42726         (Lone files): Remove directories.
42727
42728 2007-10-08  Ben Pfaff  <blp@gnu.org>
42729
42730         * lib/xmalloca.h: Fix typo in comment.
42731
42732 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42733
42734         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
42735         when avoiding problems with integer overflow.  Use a portable test
42736         instead.
42737
42738 2007-10-08  Simon Josefsson  <simon@josefsson.org>
42739
42740         * modules/dummy (License): Change to LGPLv2+.
42741         * modules/float (License): Likewise
42742         * modules/realloc (License): Likewise
42743         * modules/stdlib (License): Likewise
42744
42745 2007-10-07  Bruno Haible  <bruno@clisp.org>
42746
42747         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
42748         * floor.c (TWO_MANT_DIG): Likewise.
42749         * ceil.c (TWO_MANT_DIG): Likewise.
42750         Reported by Ben Pfaff.
42751
42752 2007-10-07  Bruno Haible  <bruno@clisp.org>
42753
42754         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
42755         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
42756         * lib/frexp.c (FUNC): Likewise.
42757         * lib/printf-frexp.h (printf_frexp): Likewise.
42758         * lib/printf-frexpl.h (printf_frexpl): Likewise.
42759         * lib/printf-frexp.c (FUNC): Likewise.
42760         Suggested by Jim Meyering.
42761
42762 2007-10-07  Jim Meyering  <meyering@redhat.com>
42763
42764         Make xnanosleep's integer overflow test more robust.
42765         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
42766         so that gcc-4.3.0 doesn't optimize away this test for overflow.
42767
42768 2007-10-07  Bruno Haible  <bruno@clisp.org>
42769
42770         * NEWS: Mention the license change.
42771
42772         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
42773         abbreviations in the modules files.
42774
42775         Change copyright notice from GPLv2+ to GPLv3+.
42776         * README: Change copyright notice.
42777         * MODULES.html.sh: Likewise.
42778         * build-aux/bootstrap.conf: Likewise.
42779         * build-aux/config.libpath: Likewise.
42780         * build-aux/csharpcomp.sh.in: Likewise.
42781         * build-aux/csharpexec.sh.in: Likewise.
42782         * build-aux/install-reloc: Likewise.
42783         * build-aux/javacomp.sh.in: Likewise.
42784         * build-aux/javaexec.sh.in: Likewise.
42785         * build-aux/ldd.sh.in: Likewise.
42786         * build-aux/reloc-ldflags: Likewise.
42787         * build-aux/relocatable.sh.in: Likewise.
42788         * build-aux/x-to-1.in: Likewise.
42789         * check-module: Likewise.
42790         * config/srclistvars.sh: Likewise.
42791         * gnulib-tool: Likewise.
42792         * lib/acl-internal.h: Likewise.
42793         * lib/acl.c: Likewise.
42794         * lib/acl.h: Likewise.
42795         * lib/acl_entries.c: Likewise.
42796         * lib/areadlink-with-size.c: Likewise.
42797         * lib/areadlink.c: Likewise.
42798         * lib/areadlink.h: Likewise.
42799         * lib/argmatch.c: Likewise.
42800         * lib/argmatch.h: Likewise.
42801         * lib/argp-ba.c: Likewise.
42802         * lib/argp-eexst.c: Likewise.
42803         * lib/argp-fmtstream.c: Likewise.
42804         * lib/argp-fmtstream.h: Likewise.
42805         * lib/argp-fs-xinl.c: Likewise.
42806         * lib/argp-help.c: Likewise.
42807         * lib/argp-namefrob.h: Likewise.
42808         * lib/argp-parse.c: Likewise.
42809         * lib/argp-pin.c: Likewise.
42810         * lib/argp-pv.c: Likewise.
42811         * lib/argp-pvh.c: Likewise.
42812         * lib/argp-xinl.c: Likewise.
42813         * lib/argp.h: Likewise.
42814         * lib/at-func.c: Likewise.
42815         * lib/atanl.c: Likewise.
42816         * lib/backupfile.c: Likewise.
42817         * lib/backupfile.h: Likewise.
42818         * lib/basename.c: Likewise.
42819         * lib/binary-io.h: Likewise.
42820         * lib/byteswap.in.h: Likewise.
42821         * lib/c-stack.c: Likewise.
42822         * lib/c-stack.h: Likewise.
42823         * lib/c-strcasestr.c: Likewise.
42824         * lib/c-strcasestr.h: Likewise.
42825         * lib/c-strstr.c: Likewise.
42826         * lib/c-strstr.h: Likewise.
42827         * lib/c-strtod.c: Likewise.
42828         * lib/calloc.c: Likewise.
42829         * lib/canon-host.c: Likewise.
42830         * lib/canon-host.h: Likewise.
42831         * lib/canonicalize-lgpl.c: Likewise.
42832         * lib/canonicalize.c: Likewise.
42833         * lib/canonicalize.h: Likewise.
42834         * lib/ceil.c: Likewise.
42835         * lib/ceilf.c: Likewise.
42836         * lib/ceill.c: Likewise.
42837         * lib/chdir-long.c: Likewise.
42838         * lib/chdir-long.h: Likewise.
42839         * lib/chdir-safer.c: Likewise.
42840         * lib/chdir-safer.h: Likewise.
42841         * lib/chown.c: Likewise.
42842         * lib/classpath.c: Likewise.
42843         * lib/classpath.h: Likewise.
42844         * lib/clean-temp.c: Likewise.
42845         * lib/clean-temp.h: Likewise.
42846         * lib/cloexec.c: Likewise.
42847         * lib/close-stream.c: Likewise.
42848         * lib/closein.c: Likewise.
42849         * lib/closein.h: Likewise.
42850         * lib/closeout.c: Likewise.
42851         * lib/closeout.h: Likewise.
42852         * lib/concat-filename.c: Likewise.
42853         * lib/copy-file.c: Likewise.
42854         * lib/copy-file.h: Likewise.
42855         * lib/count-one-bits.h: Likewise.
42856         * lib/crc.c: Likewise.
42857         * lib/crc.h: Likewise.
42858         * lib/creat-safer.c: Likewise.
42859         * lib/csharpcomp.c: Likewise.
42860         * lib/csharpcomp.h: Likewise.
42861         * lib/csharpexec.c: Likewise.
42862         * lib/csharpexec.h: Likewise.
42863         * lib/cycle-check.c: Likewise.
42864         * lib/cycle-check.h: Likewise.
42865         * lib/diacrit.c: Likewise.
42866         * lib/diacrit.h: Likewise.
42867         * lib/diffseq.h: Likewise.
42868         * lib/dirchownmod.c: Likewise.
42869         * lib/dirent.in.h: Likewise.
42870         * lib/dirfd.c: Likewise.
42871         * lib/dirfd.h: Likewise.
42872         * lib/dirname.c: Likewise.
42873         * lib/dirname.h: Likewise.
42874         * lib/dummy.c: Likewise.
42875         * lib/dup-safer.c: Likewise.
42876         * lib/dup2.c: Likewise.
42877         * lib/eealloc.h: Likewise.
42878         * lib/error.c: Likewise.
42879         * lib/error.h: Likewise.
42880         * lib/euidaccess.c: Likewise.
42881         * lib/exclude.c: Likewise.
42882         * lib/exclude.h: Likewise.
42883         * lib/execute.c: Likewise.
42884         * lib/execute.h: Likewise.
42885         * lib/exitfail.c: Likewise.
42886         * lib/exitfail.h: Likewise.
42887         * lib/expl.c: Likewise.
42888         * lib/fatal-signal.c: Likewise.
42889         * lib/fatal-signal.h: Likewise.
42890         * lib/fbufmode.c: Likewise.
42891         * lib/fbufmode.h: Likewise.
42892         * lib/fchdir.c: Likewise.
42893         * lib/fchmodat.c: Likewise.
42894         * lib/fchownat.c: Likewise.
42895         * lib/fcntl--.h: Likewise.
42896         * lib/fcntl-safer.h: Likewise.
42897         * lib/fcntl.in.h: Likewise.
42898         * lib/fd-safer.c: Likewise.
42899         * lib/fflush.c: Likewise.
42900         * lib/file-has-acl.c: Likewise.
42901         * lib/file-set.c: Likewise.
42902         * lib/file-type.c: Likewise.
42903         * lib/file-type.h: Likewise.
42904         * lib/fileblocks.c: Likewise.
42905         * lib/filemode.c: Likewise.
42906         * lib/filemode.h: Likewise.
42907         * lib/filename.h: Likewise.
42908         * lib/filenamecat.c: Likewise.
42909         * lib/filenamecat.h: Likewise.
42910         * lib/findprog.c: Likewise.
42911         * lib/findprog.h: Likewise.
42912         * lib/float.in.h: Likewise.
42913         * lib/floor.c: Likewise.
42914         * lib/floorf.c: Likewise.
42915         * lib/floorl.c: Likewise.
42916         * lib/fopen-safer.c: Likewise.
42917         * lib/fopen.c: Likewise.
42918         * lib/fpending.c: Likewise.
42919         * lib/fpending.h: Likewise.
42920         * lib/fprintf.c: Likewise.
42921         * lib/fprintftime.h: Likewise.
42922         * lib/fpucw.h: Likewise.
42923         * lib/fpurge.c: Likewise.
42924         * lib/fpurge.h: Likewise.
42925         * lib/freadable.c: Likewise.
42926         * lib/freadable.h: Likewise.
42927         * lib/freadahead.c: Likewise.
42928         * lib/freadahead.h: Likewise.
42929         * lib/freading.c: Likewise.
42930         * lib/freading.h: Likewise.
42931         * lib/free.c: Likewise.
42932         * lib/freopen.c: Likewise.
42933         * lib/frexp.c: Likewise.
42934         * lib/frexpl.c: Likewise.
42935         * lib/fseek.c: Likewise.
42936         * lib/fseterr.c: Likewise.
42937         * lib/fseterr.h: Likewise.
42938         * lib/fstatat.c: Likewise.
42939         * lib/fstrcmp.c: Likewise.
42940         * lib/fstrcmp.h: Likewise.
42941         * lib/fsusage.c: Likewise.
42942         * lib/fsusage.h: Likewise.
42943         * lib/ftell.c: Likewise.
42944         * lib/ftello.c: Likewise.
42945         * lib/fts-cycle.c: Likewise.
42946         * lib/fts.c: Likewise.
42947         * lib/fts_.h: Likewise.
42948         * lib/full-read.c: Likewise.
42949         * lib/full-read.h: Likewise.
42950         * lib/full-write.c: Likewise.
42951         * lib/full-write.h: Likewise.
42952         * lib/fwritable.c: Likewise.
42953         * lib/fwritable.h: Likewise.
42954         * lib/fwriteerror.c: Likewise.
42955         * lib/fwriteerror.h: Likewise.
42956         * lib/fwriting.c: Likewise.
42957         * lib/fwriting.h: Likewise.
42958         * lib/gcd.c: Likewise.
42959         * lib/gcd.h: Likewise.
42960         * lib/getcwd.c: Likewise.
42961         * lib/getdate.h: Likewise.
42962         * lib/getdate.y: Likewise.
42963         * lib/getdomainname.c: Likewise.
42964         * lib/getdomainname.h: Likewise.
42965         * lib/getgroups.c: Likewise.
42966         * lib/gethostname.c: Likewise.
42967         * lib/gethrxtime.c: Likewise.
42968         * lib/gethrxtime.h: Likewise.
42969         * lib/getloadavg.c: Likewise.
42970         * lib/getndelim2.c: Likewise.
42971         * lib/getndelim2.h: Likewise.
42972         * lib/getnline.c: Likewise.
42973         * lib/getnline.h: Likewise.
42974         * lib/getopt.c: Likewise.
42975         * lib/getopt.in.h: Likewise.
42976         * lib/getopt1.c: Likewise.
42977         * lib/getopt_int.h: Likewise.
42978         * lib/getpagesize.h: Likewise.
42979         * lib/getsubopt.c: Likewise.
42980         * lib/gettime.c: Likewise.
42981         * lib/getugroups.c: Likewise.
42982         * lib/getugroups.h: Likewise.
42983         * lib/getusershell.c: Likewise.
42984         * lib/gl_anyavltree_list1.h: Likewise.
42985         * lib/gl_anyavltree_list2.h: Likewise.
42986         * lib/gl_anyhash_list1.h: Likewise.
42987         * lib/gl_anyhash_list2.h: Likewise.
42988         * lib/gl_anylinked_list1.h: Likewise.
42989         * lib/gl_anylinked_list2.h: Likewise.
42990         * lib/gl_anyrbtree_list1.h: Likewise.
42991         * lib/gl_anyrbtree_list2.h: Likewise.
42992         * lib/gl_anytree_list1.h: Likewise.
42993         * lib/gl_anytree_list2.h: Likewise.
42994         * lib/gl_anytree_oset.h: Likewise.
42995         * lib/gl_anytreehash_list1.h: Likewise.
42996         * lib/gl_anytreehash_list2.h: Likewise.
42997         * lib/gl_array_list.c: Likewise.
42998         * lib/gl_array_list.h: Likewise.
42999         * lib/gl_array_oset.c: Likewise.
43000         * lib/gl_array_oset.h: Likewise.
43001         * lib/gl_avltree_list.c: Likewise.
43002         * lib/gl_avltree_list.h: Likewise.
43003         * lib/gl_avltree_oset.c: Likewise.
43004         * lib/gl_avltree_oset.h: Likewise.
43005         * lib/gl_avltreehash_list.c: Likewise.
43006         * lib/gl_avltreehash_list.h: Likewise.
43007         * lib/gl_carray_list.c: Likewise.
43008         * lib/gl_carray_list.h: Likewise.
43009         * lib/gl_linked_list.c: Likewise.
43010         * lib/gl_linked_list.h: Likewise.
43011         * lib/gl_linkedhash_list.c: Likewise.
43012         * lib/gl_linkedhash_list.h: Likewise.
43013         * lib/gl_list.c: Likewise.
43014         * lib/gl_list.h: Likewise.
43015         * lib/gl_oset.c: Likewise.
43016         * lib/gl_oset.h: Likewise.
43017         * lib/gl_rbtree_list.c: Likewise.
43018         * lib/gl_rbtree_list.h: Likewise.
43019         * lib/gl_rbtree_oset.c: Likewise.
43020         * lib/gl_rbtree_oset.h: Likewise.
43021         * lib/gl_rbtreehash_list.c: Likewise.
43022         * lib/gl_rbtreehash_list.h: Likewise.
43023         * lib/gl_sublist.c: Likewise.
43024         * lib/gl_sublist.h: Likewise.
43025         * lib/group-member.c: Likewise.
43026         * lib/group-member.h: Likewise.
43027         * lib/hard-locale.c: Likewise.
43028         * lib/hard-locale.h: Likewise.
43029         * lib/hash-pjw.c: Likewise.
43030         * lib/hash-pjw.h: Likewise.
43031         * lib/hash-triple.c: Likewise.
43032         * lib/hash.c: Likewise.
43033         * lib/hash.h: Likewise.
43034         * lib/human.c: Likewise.
43035         * lib/human.h: Likewise.
43036         * lib/i-ring.c: Likewise.
43037         * lib/i-ring.h: Likewise.
43038         * lib/idcache.c: Likewise.
43039         * lib/imaxabs.c: Likewise.
43040         * lib/imaxdiv.c: Likewise.
43041         * lib/inet_pton.c: Likewise.
43042         * lib/inet_pton.h: Likewise.
43043         * lib/intprops.h: Likewise.
43044         * lib/inttostr.c: Likewise.
43045         * lib/inttostr.h: Likewise.
43046         * lib/inttypes.in.h: Likewise.
43047         * lib/isapipe.c: Likewise.
43048         * lib/isdir.c: Likewise.
43049         * lib/isnan.c: Likewise.
43050         * lib/isnan.h: Likewise.
43051         * lib/isnanf.c: Likewise.
43052         * lib/isnanf.h: Likewise.
43053         * lib/isnanl-nolibm.h: Likewise.
43054         * lib/isnanl.c: Likewise.
43055         * lib/isnanl.h: Likewise.
43056         * lib/javacomp.c: Likewise.
43057         * lib/javacomp.h: Likewise.
43058         * lib/javaexec.c: Likewise.
43059         * lib/javaexec.h: Likewise.
43060         * lib/javaversion.c: Likewise.
43061         * lib/javaversion.h: Likewise.
43062         * lib/javaversion.java: Likewise.
43063         * lib/lbrkprop.h: Likewise.
43064         * lib/lchmod.h: Likewise.
43065         * lib/lchown.c: Likewise.
43066         * lib/ldexpl.c: Likewise.
43067         * lib/linebreak.c: Likewise.
43068         * lib/linebreak.h: Likewise.
43069         * lib/linebuffer.c: Likewise.
43070         * lib/linebuffer.h: Likewise.
43071         * lib/locale.in.h: Likewise.
43072         * lib/logl.c: Likewise.
43073         * lib/long-options.c: Likewise.
43074         * lib/long-options.h: Likewise.
43075         * lib/lstat.c: Likewise.
43076         * lib/lstat.h: Likewise.
43077         * lib/math.in.h: Likewise.
43078         * lib/mbchar.c: Likewise.
43079         * lib/mbchar.h: Likewise.
43080         * lib/mbfile.h: Likewise.
43081         * lib/mbiter.h: Likewise.
43082         * lib/mbscasecmp.c: Likewise.
43083         * lib/mbscasestr.c: Likewise.
43084         * lib/mbschr.c: Likewise.
43085         * lib/mbscspn.c: Likewise.
43086         * lib/mbslen.c: Likewise.
43087         * lib/mbsncasecmp.c: Likewise.
43088         * lib/mbsnlen.c: Likewise.
43089         * lib/mbspbrk.c: Likewise.
43090         * lib/mbspcasecmp.c: Likewise.
43091         * lib/mbsrchr.c: Likewise.
43092         * lib/mbssep.c: Likewise.
43093         * lib/mbsspn.c: Likewise.
43094         * lib/mbsstr.c: Likewise.
43095         * lib/mbstok_r.c: Likewise.
43096         * lib/mbswidth.c: Likewise.
43097         * lib/mbswidth.h: Likewise.
43098         * lib/mbuiter.h: Likewise.
43099         * lib/memcasecmp.c: Likewise.
43100         * lib/memcasecmp.h: Likewise.
43101         * lib/memchr.c: Likewise.
43102         * lib/memcmp.c: Likewise.
43103         * lib/memcoll.c: Likewise.
43104         * lib/memcoll.h: Likewise.
43105         * lib/memcpy.c: Likewise.
43106         * lib/memrchr.c: Likewise.
43107         * lib/mkancesdirs.c: Likewise.
43108         * lib/mkdir-p.c: Likewise.
43109         * lib/mkdir-p.h: Likewise.
43110         * lib/mkdir.c: Likewise.
43111         * lib/mkdirat.c: Likewise.
43112         * lib/mkdtemp.c: Likewise.
43113         * lib/mkstemp-safer.c: Likewise.
43114         * lib/mkstemp.c: Likewise.
43115         * lib/modechange.c: Likewise.
43116         * lib/modechange.h: Likewise.
43117         * lib/mountlist.c: Likewise.
43118         * lib/mountlist.h: Likewise.
43119         * lib/mpsort.c: Likewise.
43120         * lib/nanosleep.c: Likewise.
43121         * lib/obstack.c: Likewise.
43122         * lib/obstack.h: Likewise.
43123         * lib/open-safer.c: Likewise.
43124         * lib/open.c: Likewise.
43125         * lib/openat-die.c: Likewise.
43126         * lib/openat-priv.h: Likewise.
43127         * lib/openat-proc.c: Likewise.
43128         * lib/openat.c: Likewise.
43129         * lib/openat.h: Likewise.
43130         * lib/pagealign_alloc.c: Likewise.
43131         * lib/pagealign_alloc.h: Likewise.
43132         * lib/physmem.c: Likewise.
43133         * lib/physmem.h: Likewise.
43134         * lib/pipe-safer.c: Likewise.
43135         * lib/pipe.c: Likewise.
43136         * lib/pipe.h: Likewise.
43137         * lib/posixtm.c: Likewise.
43138         * lib/posixtm.h: Likewise.
43139         * lib/posixver.c: Likewise.
43140         * lib/printf-frexp.c: Likewise.
43141         * lib/printf-frexp.h: Likewise.
43142         * lib/printf-frexpl.c: Likewise.
43143         * lib/printf-frexpl.h: Likewise.
43144         * lib/printf.c: Likewise.
43145         * lib/progname.c: Likewise.
43146         * lib/progname.h: Likewise.
43147         * lib/progreloc.c: Likewise.
43148         * lib/putenv.c: Likewise.
43149         * lib/quote.c: Likewise.
43150         * lib/quote.h: Likewise.
43151         * lib/quotearg.c: Likewise.
43152         * lib/quotearg.h: Likewise.
43153         * lib/raise.c: Likewise.
43154         * lib/readline.c: Likewise.
43155         * lib/readline.h: Likewise.
43156         * lib/readlink.c: Likewise.
43157         * lib/readtokens.c: Likewise.
43158         * lib/readtokens.h: Likewise.
43159         * lib/readtokens0.c: Likewise.
43160         * lib/readtokens0.h: Likewise.
43161         * lib/readutmp.c: Likewise.
43162         * lib/readutmp.h: Likewise.
43163         * lib/realloc.c: Likewise.
43164         * lib/relocwrapper.c: Likewise.
43165         * lib/rename-dest-slash.c: Likewise.
43166         * lib/rename.c: Likewise.
43167         * lib/rmdir.c: Likewise.
43168         * lib/rpmatch.c: Likewise.
43169         * lib/safe-read.c: Likewise.
43170         * lib/safe-read.h: Likewise.
43171         * lib/safe-write.c: Likewise.
43172         * lib/safe-write.h: Likewise.
43173         * lib/same-inode.h: Likewise.
43174         * lib/same.c: Likewise.
43175         * lib/same.h: Likewise.
43176         * lib/save-cwd.c: Likewise.
43177         * lib/save-cwd.h: Likewise.
43178         * lib/savedir.c: Likewise.
43179         * lib/savedir.h: Likewise.
43180         * lib/savewd.c: Likewise.
43181         * lib/savewd.h: Likewise.
43182         * lib/search.in.h: Likewise.
43183         * lib/setenv.c: Likewise.
43184         * lib/setenv.h: Likewise.
43185         * lib/settime.c: Likewise.
43186         * lib/sh-quote.c: Likewise.
43187         * lib/sh-quote.h: Likewise.
43188         * lib/sig2str.c: Likewise.
43189         * lib/sig2str.h: Likewise.
43190         * lib/signal.in.h: Likewise.
43191         * lib/signbitd.c: Likewise.
43192         * lib/signbitf.c: Likewise.
43193         * lib/signbitl.c: Likewise.
43194         * lib/sigprocmask.c: Likewise.
43195         * lib/sincosl.c: Likewise.
43196         * lib/sleep.c: Likewise.
43197         * lib/sprintf.c: Likewise.
43198         * lib/sqrtl.c: Likewise.
43199         * lib/stat-time.h: Likewise.
43200         * lib/stdio--.h: Likewise.
43201         * lib/stdio-safer.h: Likewise.
43202         * lib/stdlib--.h: Likewise.
43203         * lib/stdlib-safer.h: Likewise.
43204         * lib/stdlib.in.h: Likewise.
43205         * lib/stpcpy.c: Likewise.
43206         * lib/stpncpy.c: Likewise.
43207         * lib/strchrnul.c: Likewise.
43208         * lib/strcspn.c: Likewise.
43209         * lib/strerror.c: Likewise.
43210         * lib/strftime.c: Likewise.
43211         * lib/strftime.h: Likewise.
43212         * lib/striconveh.c: Likewise.
43213         * lib/striconveh.h: Likewise.
43214         * lib/striconveha.c: Likewise.
43215         * lib/striconveha.h: Likewise.
43216         * lib/stripslash.c: Likewise.
43217         * lib/strnlen1.c: Likewise.
43218         * lib/strnlen1.h: Likewise.
43219         * lib/strtod.c: Likewise.
43220         * lib/strtoimax.c: Likewise.
43221         * lib/strtok_r.c: Likewise.
43222         * lib/strtol.c: Likewise.
43223         * lib/strtoll.c: Likewise.
43224         * lib/strtoul.c: Likewise.
43225         * lib/strtoull.c: Likewise.
43226         * lib/sysexits.in.h: Likewise.
43227         * lib/tempname.c: Likewise.
43228         * lib/tempname.h: Likewise.
43229         * lib/timespec.h: Likewise.
43230         * lib/tls.c: Likewise.
43231         * lib/tls.h: Likewise.
43232         * lib/tmpdir.c: Likewise.
43233         * lib/tmpdir.h: Likewise.
43234         * lib/tmpfile-safer.c: Likewise.
43235         * lib/tmpfile.c: Likewise.
43236         * lib/trigl.c: Likewise.
43237         * lib/trigl.h: Likewise.
43238         * lib/trim.c: Likewise.
43239         * lib/trim.h: Likewise.
43240         * lib/trunc.c: Likewise.
43241         * lib/truncf.c: Likewise.
43242         * lib/truncl.c: Likewise.
43243         * lib/tsearch.c: Likewise.
43244         * lib/unicodeio.c: Likewise.
43245         * lib/unicodeio.h: Likewise.
43246         * lib/unistd--.h: Likewise.
43247         * lib/unistd-safer.h: Likewise.
43248         * lib/unistdio/ulc-fprintf.c: Likewise.
43249         * lib/unistdio/ulc-vfprintf.c: Likewise.
43250         * lib/unlinkdir.c: Likewise.
43251         * lib/unlinkdir.h: Likewise.
43252         * lib/unlocked-io.h: Likewise.
43253         * lib/unsetenv.c: Likewise.
43254         * lib/userspec.c: Likewise.
43255         * lib/utime.c: Likewise.
43256         * lib/utimecmp.c: Likewise.
43257         * lib/utimecmp.h: Likewise.
43258         * lib/utimens.c: Likewise.
43259         * lib/verify.h: Likewise.
43260         * lib/verror.c: Likewise.
43261         * lib/verror.h: Likewise.
43262         * lib/version-etc-fsf.c: Likewise.
43263         * lib/version-etc.c: Likewise.
43264         * lib/version-etc.h: Likewise.
43265         * lib/vfprintf.c: Likewise.
43266         * lib/vprintf.c: Likewise.
43267         * lib/vsprintf.c: Likewise.
43268         * lib/w32spawn.h: Likewise.
43269         * lib/wait-process.c: Likewise.
43270         * lib/wait-process.h: Likewise.
43271         * lib/wcwidth.c: Likewise.
43272         * lib/write-any-file.c: Likewise.
43273         * lib/xalloc-die.c: Likewise.
43274         * lib/xalloc.h: Likewise.
43275         * lib/xasprintf.c: Likewise.
43276         * lib/xgetcwd.c: Likewise.
43277         * lib/xgetcwd.h: Likewise.
43278         * lib/xgetdomainname.c: Likewise.
43279         * lib/xgetdomainname.h: Likewise.
43280         * lib/xgethostname.c: Likewise.
43281         * lib/xmalloc.c: Likewise.
43282         * lib/xmalloca.c: Likewise.
43283         * lib/xmalloca.h: Likewise.
43284         * lib/xmemcoll.c: Likewise.
43285         * lib/xnanosleep.c: Likewise.
43286         * lib/xreadlink.c: Likewise.
43287         * lib/xreadlink.h: Likewise.
43288         * lib/xsetenv.c: Likewise.
43289         * lib/xsetenv.h: Likewise.
43290         * lib/xstriconv.c: Likewise.
43291         * lib/xstriconv.h: Likewise.
43292         * lib/xstrndup.c: Likewise.
43293         * lib/xstrndup.h: Likewise.
43294         * lib/xstrtod.c: Likewise.
43295         * lib/xstrtod.h: Likewise.
43296         * lib/xstrtol-error.c: Likewise.
43297         * lib/xstrtol.c: Likewise.
43298         * lib/xstrtol.h: Likewise.
43299         * lib/xtime.h: Likewise.
43300         * lib/xvasprintf.c: Likewise.
43301         * lib/xvasprintf.h: Likewise.
43302         * lib/yesno.c: Likewise.
43303         * lib/yesno.h: Likewise.
43304         * posix-modules: Likewise.
43305         * tests/test-alloca-opt.c: Likewise.
43306         * tests/test-arcfour.c: Likewise.
43307         * tests/test-arctwo.c: Likewise.
43308         * tests/test-argmatch.c: Likewise.
43309         * tests/test-argp-2.sh: Likewise.
43310         * tests/test-argp.c: Likewise.
43311         * tests/test-arpa_inet.c: Likewise.
43312         * tests/test-array_list.c: Likewise.
43313         * tests/test-array_oset.c: Likewise.
43314         * tests/test-atexit.c: Likewise.
43315         * tests/test-avltree_list.c: Likewise.
43316         * tests/test-avltree_oset.c: Likewise.
43317         * tests/test-avltreehash_list.c: Likewise.
43318         * tests/test-base64.c: Likewise.
43319         * tests/test-binary-io.c: Likewise.
43320         * tests/test-byteswap.c: Likewise.
43321         * tests/test-c-ctype.c: Likewise.
43322         * tests/test-c-strcasecmp.c: Likewise.
43323         * tests/test-c-strcasestr.c: Likewise.
43324         * tests/test-c-strncasecmp.c: Likewise.
43325         * tests/test-c-strstr.c: Likewise.
43326         * tests/test-canonicalize-lgpl.c: Likewise.
43327         * tests/test-canonicalize.c: Likewise.
43328         * tests/test-carray_list.c: Likewise.
43329         * tests/test-ceilf.c: Likewise.
43330         * tests/test-ceill.c: Likewise.
43331         * tests/test-count-one-bits.c: Likewise.
43332         * tests/test-crc.c: Likewise.
43333         * tests/test-dirname.c: Likewise.
43334         * tests/test-fbufmode.c: Likewise.
43335         * tests/test-fcntl.c: Likewise.
43336         * tests/test-fflush.c: Likewise.
43337         * tests/test-floorf.c: Likewise.
43338         * tests/test-floorl.c: Likewise.
43339         * tests/test-fopen.c: Likewise.
43340         * tests/test-fprintf-posix.c: Likewise.
43341         * tests/test-fprintf-posix.h: Likewise.
43342         * tests/test-fpurge.c: Likewise.
43343         * tests/test-freadable.c: Likewise.
43344         * tests/test-freadahead.c: Likewise.
43345         * tests/test-freading.c: Likewise.
43346         * tests/test-freopen.c: Likewise.
43347         * tests/test-frexp.c: Likewise.
43348         * tests/test-frexpl.c: Likewise.
43349         * tests/test-fseek.c: Likewise.
43350         * tests/test-fseeko.c: Likewise.
43351         * tests/test-fseterr.c: Likewise.
43352         * tests/test-fstrcmp.c: Likewise.
43353         * tests/test-ftell.c: Likewise.
43354         * tests/test-ftello.c: Likewise.
43355         * tests/test-fwritable.c: Likewise.
43356         * tests/test-fwriting.c: Likewise.
43357         * tests/test-getaddrinfo.c: Likewise.
43358         * tests/test-getpass.c: Likewise.
43359         * tests/test-gettimeofday.c: Likewise.
43360         * tests/test-hmac-md5.c: Likewise.
43361         * tests/test-hmac-sha1.c: Likewise.
43362         * tests/test-iconv.c: Likewise.
43363         * tests/test-iconvme.c: Likewise.
43364         * tests/test-inttypes.c: Likewise.
43365         * tests/test-isnan.c: Likewise.
43366         * tests/test-isnanf.c: Likewise.
43367         * tests/test-isnanl-nolibm.c: Likewise.
43368         * tests/test-isnanl.c: Likewise.
43369         * tests/test-isnanl.h: Likewise.
43370         * tests/test-ldexpl.c: Likewise.
43371         * tests/test-linked_list.c: Likewise.
43372         * tests/test-linkedhash_list.c: Likewise.
43373         * tests/test-locale.c: Likewise.
43374         * tests/test-localename.c: Likewise.
43375         * tests/test-lock.c: Likewise.
43376         * tests/test-lseek.c: Likewise.
43377         * tests/test-malloca.c: Likewise.
43378         * tests/test-math.c: Likewise.
43379         * tests/test-mbscasecmp.c: Likewise.
43380         * tests/test-mbscasestr1.c: Likewise.
43381         * tests/test-mbscasestr2.c: Likewise.
43382         * tests/test-mbscasestr3.c: Likewise.
43383         * tests/test-mbscasestr4.c: Likewise.
43384         * tests/test-mbschr.c: Likewise.
43385         * tests/test-mbscspn.c: Likewise.
43386         * tests/test-mbsncasecmp.c: Likewise.
43387         * tests/test-mbspbrk.c: Likewise.
43388         * tests/test-mbspcasecmp.c: Likewise.
43389         * tests/test-mbsrchr.c: Likewise.
43390         * tests/test-mbsspn.c: Likewise.
43391         * tests/test-mbsstr1.c: Likewise.
43392         * tests/test-mbsstr2.c: Likewise.
43393         * tests/test-mbsstr3.c: Likewise.
43394         * tests/test-md5.c: Likewise.
43395         * tests/test-memmem.c: Likewise.
43396         * tests/test-netinet_in.c: Likewise.
43397         * tests/test-open.c: Likewise.
43398         * tests/test-printf-frexp.c: Likewise.
43399         * tests/test-printf-frexpl.c: Likewise.
43400         * tests/test-printf-posix.c: Likewise.
43401         * tests/test-printf-posix.h: Likewise.
43402         * tests/test-rbtree_list.c: Likewise.
43403         * tests/test-rbtree_oset.c: Likewise.
43404         * tests/test-rbtreehash_list.c: Likewise.
43405         * tests/test-read-file.c: Likewise.
43406         * tests/test-rijndael.c: Likewise.
43407         * tests/test-search.c: Likewise.
43408         * tests/test-signbit.c: Likewise.
43409         * tests/test-sleep.c: Likewise.
43410         * tests/test-snprintf-posix.c: Likewise.
43411         * tests/test-snprintf-posix.h: Likewise.
43412         * tests/test-snprintf.c: Likewise.
43413         * tests/test-sprintf-posix.c: Likewise.
43414         * tests/test-sprintf-posix.h: Likewise.
43415         * tests/test-stat-time.c: Likewise.
43416         * tests/test-stdbool.c: Likewise.
43417         * tests/test-stdint.c: Likewise.
43418         * tests/test-stdio.c: Likewise.
43419         * tests/test-stdlib.c: Likewise.
43420         * tests/test-stpncpy.c: Likewise.
43421         * tests/test-strcasestr.c: Likewise.
43422         * tests/test-striconv.c: Likewise.
43423         * tests/test-striconveh.c: Likewise.
43424         * tests/test-striconveha.c: Likewise.
43425         * tests/test-string.c: Likewise.
43426         * tests/test-sys_select.c: Likewise.
43427         * tests/test-sys_socket.c: Likewise.
43428         * tests/test-sys_stat.c: Likewise.
43429         * tests/test-sys_time.c: Likewise.
43430         * tests/test-sysexits.c: Likewise.
43431         * tests/test-time.c: Likewise.
43432         * tests/test-tls.c: Likewise.
43433         * tests/test-trunc.c: Likewise.
43434         * tests/test-truncf.c: Likewise.
43435         * tests/test-truncl.c: Likewise.
43436         * tests/test-unistd.c: Likewise.
43437         * tests/test-vasnprintf-posix.c: Likewise.
43438         * tests/test-vasnprintf-posix2.c: Likewise.
43439         * tests/test-vasnprintf.c: Likewise.
43440         * tests/test-vasprintf-posix.c: Likewise.
43441         * tests/test-vasprintf.c: Likewise.
43442         * tests/test-verify.c: Likewise.
43443         * tests/test-vfprintf-posix.c: Likewise.
43444         * tests/test-vprintf-posix.c: Likewise.
43445         * tests/test-vsnprintf-posix.c: Likewise.
43446         * tests/test-vsnprintf.c: Likewise.
43447         * tests/test-vsprintf-posix.c: Likewise.
43448         * tests/test-wchar.c: Likewise.
43449         * tests/test-wctype.c: Likewise.
43450         * tests/test-wcwidth.c: Likewise.
43451         * tests/test-xstrtol.c: Likewise.
43452         * tests/test-xvasprintf.c: Likewise.
43453         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
43454         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
43455         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
43456         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
43457         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
43458         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
43459         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
43460         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
43461         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
43462         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
43463         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
43464         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
43465         * tests/uniname/test-uninames.c: Likewise.
43466         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
43467         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
43468         * tests/unistdio/test-u16-printf1.h: Likewise.
43469         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
43470         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
43471         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
43472         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
43473         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
43474         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
43475         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
43476         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
43477         * tests/unistdio/test-u32-printf1.h: Likewise.
43478         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
43479         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
43480         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
43481         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
43482         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
43483         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
43484         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
43485         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
43486         * tests/unistdio/test-u8-printf1.h: Likewise.
43487         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
43488         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
43489         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
43490         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
43491         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
43492         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
43493         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
43494         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
43495         * tests/unistdio/test-ulc-printf1.h: Likewise.
43496         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
43497         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
43498         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
43499         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
43500         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
43501         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
43502         * tests/uniwidth/test-u16-strwidth.c: Likewise.
43503         * tests/uniwidth/test-u16-width.c: Likewise.
43504         * tests/uniwidth/test-u32-strwidth.c: Likewise.
43505         * tests/uniwidth/test-u32-width.c: Likewise.
43506         * tests/uniwidth/test-u8-strwidth.c: Likewise.
43507         * tests/uniwidth/test-u8-width.c: Likewise.
43508         * tests/uniwidth/test-uc_width.c: Likewise.
43509         * config/srclist-update: Likewise.
43510         (fixlicense): Update to GPLv3+.
43511
43512         Change copyright notice from LGPLv2.1+ to LGPLv3+.
43513         * tests/test-tsearch.c: Change copyright notice.
43514
43515         Change copyright notice from LGPLv2.0+ to LGPLv3+.
43516         * lib/c-strcaseeq.h: Change copyright notice.
43517         * lib/streq.h: Likewise.
43518         * lib/uniconv.h: Likewise.
43519         * lib/uniconv/u-conv-from-enc.h: Likewise.
43520         * lib/uniconv/u-conv-to-enc.h: Likewise.
43521         * lib/uniconv/u-strconv-from-enc.h: Likewise.
43522         * lib/uniconv/u-strconv-to-enc.h: Likewise.
43523         * lib/uniconv/u16-conv-from-enc.c: Likewise.
43524         * lib/uniconv/u16-conv-to-enc.c: Likewise.
43525         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
43526         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
43527         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
43528         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
43529         * lib/uniconv/u32-conv-from-enc.c: Likewise.
43530         * lib/uniconv/u32-conv-to-enc.c: Likewise.
43531         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
43532         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
43533         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
43534         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
43535         * lib/uniconv/u8-conv-from-enc.c: Likewise.
43536         * lib/uniconv/u8-conv-to-enc.c: Likewise.
43537         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
43538         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
43539         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
43540         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
43541         * lib/uniname.h: Likewise.
43542         * lib/uniname/uniname.c: Likewise.
43543         * lib/unistdio.h: Likewise.
43544         * lib/unistdio/u-asnprintf.h: Likewise.
43545         * lib/unistdio/u-asprintf.h: Likewise.
43546         * lib/unistdio/u-printf-args.c: Likewise.
43547         * lib/unistdio/u-printf-args.h: Likewise.
43548         * lib/unistdio/u-printf-parse.h: Likewise.
43549         * lib/unistdio/u-snprintf.h: Likewise.
43550         * lib/unistdio/u-sprintf.h: Likewise.
43551         * lib/unistdio/u-vasprintf.h: Likewise.
43552         * lib/unistdio/u-vsnprintf.h: Likewise.
43553         * lib/unistdio/u-vsprintf.h: Likewise.
43554         * lib/unistdio/u16-asnprintf.c: Likewise.
43555         * lib/unistdio/u16-asprintf.c: Likewise.
43556         * lib/unistdio/u16-printf-parse.c: Likewise.
43557         * lib/unistdio/u16-snprintf.c: Likewise.
43558         * lib/unistdio/u16-sprintf.c: Likewise.
43559         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
43560         * lib/unistdio/u16-u16-asprintf.c: Likewise.
43561         * lib/unistdio/u16-u16-snprintf.c: Likewise.
43562         * lib/unistdio/u16-u16-sprintf.c: Likewise.
43563         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
43564         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
43565         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
43566         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
43567         * lib/unistdio/u16-vasnprintf.c: Likewise.
43568         * lib/unistdio/u16-vasprintf.c: Likewise.
43569         * lib/unistdio/u16-vsnprintf.c: Likewise.
43570         * lib/unistdio/u16-vsprintf.c: Likewise.
43571         * lib/unistdio/u32-asnprintf.c: Likewise.
43572         * lib/unistdio/u32-asprintf.c: Likewise.
43573         * lib/unistdio/u32-printf-parse.c: Likewise.
43574         * lib/unistdio/u32-snprintf.c: Likewise.
43575         * lib/unistdio/u32-sprintf.c: Likewise.
43576         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
43577         * lib/unistdio/u32-u32-asprintf.c: Likewise.
43578         * lib/unistdio/u32-u32-snprintf.c: Likewise.
43579         * lib/unistdio/u32-u32-sprintf.c: Likewise.
43580         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
43581         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
43582         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
43583         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
43584         * lib/unistdio/u32-vasnprintf.c: Likewise.
43585         * lib/unistdio/u32-vasprintf.c: Likewise.
43586         * lib/unistdio/u32-vsnprintf.c: Likewise.
43587         * lib/unistdio/u32-vsprintf.c: Likewise.
43588         * lib/unistdio/u8-asnprintf.c: Likewise.
43589         * lib/unistdio/u8-asprintf.c: Likewise.
43590         * lib/unistdio/u8-printf-parse.c: Likewise.
43591         * lib/unistdio/u8-snprintf.c: Likewise.
43592         * lib/unistdio/u8-sprintf.c: Likewise.
43593         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
43594         * lib/unistdio/u8-u8-asprintf.c: Likewise.
43595         * lib/unistdio/u8-u8-snprintf.c: Likewise.
43596         * lib/unistdio/u8-u8-sprintf.c: Likewise.
43597         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
43598         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
43599         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
43600         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
43601         * lib/unistdio/u8-vasnprintf.c: Likewise.
43602         * lib/unistdio/u8-vasprintf.c: Likewise.
43603         * lib/unistdio/u8-vsnprintf.c: Likewise.
43604         * lib/unistdio/u8-vsprintf.c: Likewise.
43605         * lib/unistdio/ulc-asnprintf.c: Likewise.
43606         * lib/unistdio/ulc-asprintf.c: Likewise.
43607         * lib/unistdio/ulc-printf-parse.c: Likewise.
43608         * lib/unistdio/ulc-snprintf.c: Likewise.
43609         * lib/unistdio/ulc-sprintf.c: Likewise.
43610         * lib/unistdio/ulc-vasnprintf.c: Likewise.
43611         * lib/unistdio/ulc-vasprintf.c: Likewise.
43612         * lib/unistdio/ulc-vsnprintf.c: Likewise.
43613         * lib/unistdio/ulc-vsprintf.c: Likewise.
43614         * lib/unistr.h: Likewise.
43615         * lib/unistr/u-cpy-alloc.h: Likewise.
43616         * lib/unistr/u-cpy.h: Likewise.
43617         * lib/unistr/u-endswith.h: Likewise.
43618         * lib/unistr/u-move.h: Likewise.
43619         * lib/unistr/u-set.h: Likewise.
43620         * lib/unistr/u-startswith.h: Likewise.
43621         * lib/unistr/u-stpcpy.h: Likewise.
43622         * lib/unistr/u-stpncpy.h: Likewise.
43623         * lib/unistr/u-strcat.h: Likewise.
43624         * lib/unistr/u-strcpy.h: Likewise.
43625         * lib/unistr/u-strcspn.h: Likewise.
43626         * lib/unistr/u-strdup.h: Likewise.
43627         * lib/unistr/u-strlen.h: Likewise.
43628         * lib/unistr/u-strncat.h: Likewise.
43629         * lib/unistr/u-strncpy.h: Likewise.
43630         * lib/unistr/u-strnlen.h: Likewise.
43631         * lib/unistr/u-strpbrk.h: Likewise.
43632         * lib/unistr/u-strspn.h: Likewise.
43633         * lib/unistr/u-strstr.h: Likewise.
43634         * lib/unistr/u-strtok.h: Likewise.
43635         * lib/unistr/u16-check.c: Likewise.
43636         * lib/unistr/u16-chr.c: Likewise.
43637         * lib/unistr/u16-cmp.c: Likewise.
43638         * lib/unistr/u16-cpy-alloc.c: Likewise.
43639         * lib/unistr/u16-cpy.c: Likewise.
43640         * lib/unistr/u16-endswith.c: Likewise.
43641         * lib/unistr/u16-mblen.c: Likewise.
43642         * lib/unistr/u16-mbsnlen.c: Likewise.
43643         * lib/unistr/u16-mbtouc-aux.c: Likewise.
43644         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
43645         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
43646         * lib/unistr/u16-mbtouc.c: Likewise.
43647         * lib/unistr/u16-mbtoucr.c: Likewise.
43648         * lib/unistr/u16-move.c: Likewise.
43649         * lib/unistr/u16-next.c: Likewise.
43650         * lib/unistr/u16-prev.c: Likewise.
43651         * lib/unistr/u16-set.c: Likewise.
43652         * lib/unistr/u16-startswith.c: Likewise.
43653         * lib/unistr/u16-stpcpy.c: Likewise.
43654         * lib/unistr/u16-stpncpy.c: Likewise.
43655         * lib/unistr/u16-strcat.c: Likewise.
43656         * lib/unistr/u16-strchr.c: Likewise.
43657         * lib/unistr/u16-strcmp.c: Likewise.
43658         * lib/unistr/u16-strcpy.c: Likewise.
43659         * lib/unistr/u16-strcspn.c: Likewise.
43660         * lib/unistr/u16-strdup.c: Likewise.
43661         * lib/unistr/u16-strlen.c: Likewise.
43662         * lib/unistr/u16-strmblen.c: Likewise.
43663         * lib/unistr/u16-strmbtouc.c: Likewise.
43664         * lib/unistr/u16-strncat.c: Likewise.
43665         * lib/unistr/u16-strncmp.c: Likewise.
43666         * lib/unistr/u16-strncpy.c: Likewise.
43667         * lib/unistr/u16-strnlen.c: Likewise.
43668         * lib/unistr/u16-strpbrk.c: Likewise.
43669         * lib/unistr/u16-strrchr.c: Likewise.
43670         * lib/unistr/u16-strspn.c: Likewise.
43671         * lib/unistr/u16-strstr.c: Likewise.
43672         * lib/unistr/u16-strtok.c: Likewise.
43673         * lib/unistr/u16-to-u32.c: Likewise.
43674         * lib/unistr/u16-to-u8.c: Likewise.
43675         * lib/unistr/u16-uctomb-aux.c: Likewise.
43676         * lib/unistr/u16-uctomb.c: Likewise.
43677         * lib/unistr/u32-check.c: Likewise.
43678         * lib/unistr/u32-chr.c: Likewise.
43679         * lib/unistr/u32-cmp.c: Likewise.
43680         * lib/unistr/u32-cpy-alloc.c: Likewise.
43681         * lib/unistr/u32-cpy.c: Likewise.
43682         * lib/unistr/u32-endswith.c: Likewise.
43683         * lib/unistr/u32-mblen.c: Likewise.
43684         * lib/unistr/u32-mbsnlen.c: Likewise.
43685         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
43686         * lib/unistr/u32-mbtouc.c: Likewise.
43687         * lib/unistr/u32-mbtoucr.c: Likewise.
43688         * lib/unistr/u32-move.c: Likewise.
43689         * lib/unistr/u32-next.c: Likewise.
43690         * lib/unistr/u32-prev.c: Likewise.
43691         * lib/unistr/u32-set.c: Likewise.
43692         * lib/unistr/u32-startswith.c: Likewise.
43693         * lib/unistr/u32-stpcpy.c: Likewise.
43694         * lib/unistr/u32-stpncpy.c: Likewise.
43695         * lib/unistr/u32-strcat.c: Likewise.
43696         * lib/unistr/u32-strchr.c: Likewise.
43697         * lib/unistr/u32-strcmp.c: Likewise.
43698         * lib/unistr/u32-strcpy.c: Likewise.
43699         * lib/unistr/u32-strcspn.c: Likewise.
43700         * lib/unistr/u32-strdup.c: Likewise.
43701         * lib/unistr/u32-strlen.c: Likewise.
43702         * lib/unistr/u32-strmblen.c: Likewise.
43703         * lib/unistr/u32-strmbtouc.c: Likewise.
43704         * lib/unistr/u32-strncat.c: Likewise.
43705         * lib/unistr/u32-strncmp.c: Likewise.
43706         * lib/unistr/u32-strncpy.c: Likewise.
43707         * lib/unistr/u32-strnlen.c: Likewise.
43708         * lib/unistr/u32-strpbrk.c: Likewise.
43709         * lib/unistr/u32-strrchr.c: Likewise.
43710         * lib/unistr/u32-strspn.c: Likewise.
43711         * lib/unistr/u32-strstr.c: Likewise.
43712         * lib/unistr/u32-strtok.c: Likewise.
43713         * lib/unistr/u32-to-u16.c: Likewise.
43714         * lib/unistr/u32-to-u8.c: Likewise.
43715         * lib/unistr/u32-uctomb.c: Likewise.
43716         * lib/unistr/u8-check.c: Likewise.
43717         * lib/unistr/u8-chr.c: Likewise.
43718         * lib/unistr/u8-cmp.c: Likewise.
43719         * lib/unistr/u8-cpy-alloc.c: Likewise.
43720         * lib/unistr/u8-cpy.c: Likewise.
43721         * lib/unistr/u8-endswith.c: Likewise.
43722         * lib/unistr/u8-mblen.c: Likewise.
43723         * lib/unistr/u8-mbsnlen.c: Likewise.
43724         * lib/unistr/u8-mbtouc-aux.c: Likewise.
43725         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
43726         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
43727         * lib/unistr/u8-mbtouc.c: Likewise.
43728         * lib/unistr/u8-mbtoucr.c: Likewise.
43729         * lib/unistr/u8-move.c: Likewise.
43730         * lib/unistr/u8-next.c: Likewise.
43731         * lib/unistr/u8-prev.c: Likewise.
43732         * lib/unistr/u8-set.c: Likewise.
43733         * lib/unistr/u8-startswith.c: Likewise.
43734         * lib/unistr/u8-stpcpy.c: Likewise.
43735         * lib/unistr/u8-stpncpy.c: Likewise.
43736         * lib/unistr/u8-strcat.c: Likewise.
43737         * lib/unistr/u8-strchr.c: Likewise.
43738         * lib/unistr/u8-strcmp.c: Likewise.
43739         * lib/unistr/u8-strcpy.c: Likewise.
43740         * lib/unistr/u8-strcspn.c: Likewise.
43741         * lib/unistr/u8-strdup.c: Likewise.
43742         * lib/unistr/u8-strlen.c: Likewise.
43743         * lib/unistr/u8-strmblen.c: Likewise.
43744         * lib/unistr/u8-strmbtouc.c: Likewise.
43745         * lib/unistr/u8-strncat.c: Likewise.
43746         * lib/unistr/u8-strncmp.c: Likewise.
43747         * lib/unistr/u8-strncpy.c: Likewise.
43748         * lib/unistr/u8-strnlen.c: Likewise.
43749         * lib/unistr/u8-strpbrk.c: Likewise.
43750         * lib/unistr/u8-strrchr.c: Likewise.
43751         * lib/unistr/u8-strspn.c: Likewise.
43752         * lib/unistr/u8-strstr.c: Likewise.
43753         * lib/unistr/u8-strtok.c: Likewise.
43754         * lib/unistr/u8-to-u16.c: Likewise.
43755         * lib/unistr/u8-to-u32.c: Likewise.
43756         * lib/unistr/u8-uctomb-aux.c: Likewise.
43757         * lib/unistr/u8-uctomb.c: Likewise.
43758         * lib/unitypes.h: Likewise.
43759         * lib/uniwidth.h: Likewise.
43760         * lib/uniwidth/cjk.h: Likewise.
43761         * lib/uniwidth/u16-strwidth.c: Likewise.
43762         * lib/uniwidth/u16-width.c: Likewise.
43763         * lib/uniwidth/u32-strwidth.c: Likewise.
43764         * lib/uniwidth/u32-width.c: Likewise.
43765         * lib/uniwidth/u8-strwidth.c: Likewise.
43766         * lib/uniwidth/u8-width.c: Likewise.
43767         * lib/uniwidth/width.c: Likewise.
43768
43769 2007-10-07  Bruno Haible  <bruno@clisp.org>
43770
43771         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
43772         The file is still under LGPL (see modules/inttypes).
43773
43774 2007-10-06  Bruno Haible  <bruno@clisp.org>
43775
43776         * modules/trunc (Dependencies): Add 'extensions'.
43777         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
43778         Reported by Ben Pfaff <blp@gnu.org>.
43779
43780 2007-10-06  Bruno Haible  <bruno@clisp.org>
43781
43782         * modules/freopen-tests: New file.
43783         * tests/test-freopen.c: New file.
43784
43785         * modules/fopen-tests: New file.
43786         * tests/test-fopen.c: New file.
43787
43788         * modules/fopen: New file.
43789         * lib/fopen.c: New file.
43790         * m4/fopen.m4: New file.
43791         * modules/freopen: New file.
43792         * lib/freopen.c: New file.
43793         * m4/freopen.m4: New file.
43794         * lib/stdio.in.h (fopen, freopen): New declarations.
43795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
43796         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
43797         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
43798         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
43799         * doc/functions/fopen.texi: Mention the 'fopen' module.
43800         * doc/functions/freopen.texi: Mention the 'freopen' module.
43801
43802 2007-10-06  Bruno Haible  <bruno@clisp.org>
43803
43804         * modules/open-tests: New file.
43805         * tests/test-open.c: New file.
43806
43807         * modules/open: New file.
43808         * lib/open.c: New file.
43809         * m4/open.m4: New file.
43810         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
43811         lib/open.c does.
43812         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
43813         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
43814         macros.
43815         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
43816         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
43817         REPLACE_OPEN.
43818         * doc/functions/open.texi: Mention the 'open' module.
43819
43820 2007-10-04  Bruno Haible  <bruno@clisp.org>
43821
43822         * modules/ceill-tests: New file.
43823         * tests/test-ceill.c: New file.
43824
43825         * modules/ceill: New file.
43826         * lib/ceill.c: Replace entire file.
43827         * m4/ceill.m4: New file.
43828         * lib/math.in.h (ceill): Replace declaration.
43829         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
43830         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
43831         * doc/functions/ceill.texi: Mention the 'ceill' module.
43832         * modules/mathl (Files): Remove lib/ceill.c.
43833         (Depends-on): Add ceill.
43834
43835 2007-10-04  Bruno Haible  <bruno@clisp.org>
43836
43837         * modules/ceilf-tests: New file.
43838         * tests/test-ceilf.c: New file.
43839
43840         * modules/ceilf: New file.
43841         * lib/ceil.c: New file.
43842         * lib/ceilf.c: New file.
43843         * m4/ceilf.m4: New file.
43844         * lib/math.in.h (ceilf): New declaration.
43845         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
43846         HAVE_DECL_CEILF.
43847         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
43848         HAVE_DECL_CEILF.
43849         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
43850
43851 2007-10-04  Bruno Haible  <bruno@clisp.org>
43852
43853         * modules/floorl-tests: New file.
43854         * tests/test-floorl.c: New file.
43855
43856         * modules/floorl: New file.
43857         * lib/floorl.c: Replace entire file.
43858         * m4/floorl.m4: New file.
43859         * lib/math.in.h (floorl): Replace declaration.
43860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
43861         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
43862         * doc/functions/floorl.texi: Mention the 'floorl' module.
43863         * modules/mathl (Files): Remove lib/floorl.c.
43864         (Depends-on): Add floorl.
43865
43866 2007-10-04  Bruno Haible  <bruno@clisp.org>
43867
43868         * modules/floorf-tests: New file.
43869         * tests/test-floorf.c: New file.
43870
43871         * modules/floorf: New file.
43872         * lib/floor.c: New file.
43873         * lib/floorf.c: New file.
43874         * m4/floorf.m4: New file.
43875         * lib/math.in.h (floorf): New declaration.
43876         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
43877         HAVE_DECL_FLOORF.
43878         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
43879         HAVE_DECL_FLOORF.
43880         * doc/functions/floorf.texi: Mention the 'floorf' module.
43881
43882 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
43883             Bruno Haible  <bruno@clisp.org>
43884
43885         Advertise for the Git server instead of the CVS server.
43886         * doc/gnulib-intro.texi (Steady Development): Mention the Git
43887         repository instead of the CVS one.
43888         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
43889         about all VCS systems generically.
43890         * doc/gnulib.texi (Introduction): Capitalize `Git'.
43891
43892 2007-10-04  Bruno Haible  <bruno@clisp.org>
43893
43894         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
43895         means.
43896         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
43897
43898 2007-10-04  Bruno Haible  <bruno@clisp.org>
43899
43900         * modules/truncl-tests: New file.
43901         * tests/test-truncl.c: New file.
43902
43903         * modules/truncl: New file.
43904         * lib/truncl.c: New file.
43905         * m4/truncl.m4: New file.
43906         * lib/math.in.h (truncl): New declaration.
43907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
43908         HAVE_DECL_TRUNCL.
43909         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
43910         HAVE_DECL_TRUNCL.
43911         * doc/functions/truncl.texi: Mention the 'truncl' module.
43912
43913 2007-10-04  Bruno Haible  <bruno@clisp.org>
43914
43915         * modules/truncf-tests: New file.
43916         * tests/test-truncf.c: New file.
43917
43918         * modules/truncf: New file.
43919         * lib/trunc.c: Make paramerizable through USE_* macros.
43920         * lib/truncf.c: New file.
43921         * m4/truncf.m4: New file.
43922         * lib/math.in.h (truncf): New declaration.
43923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
43924         HAVE_DECL_TRUNCF.
43925         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
43926         HAVE_DECL_TRUNCF.
43927         * doc/functions/truncf.texi: Mention the 'truncf' module.
43928
43929 2007-10-03  Bruno Haible  <bruno@clisp.org>
43930
43931         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
43932         augmentation also for tests modules.
43933         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
43934         * modules/atexit-tests (Makefile.am): Likewise.
43935         * modules/binary-io-tests (Makefile.am): Likewise.
43936         * modules/c-strcase-tests (Makefile.am): Likewise.
43937         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
43938         * modules/canonicalize-tests (Makefile.am): Likewise.
43939         * modules/closein-tests (Makefile.am): Likewise.
43940         * modules/fprintf-posix-tests (Makefile.am): Likewise.
43941         * modules/freadahead-tests (Makefile.am): Likewise.
43942         * modules/fseek-tests (Makefile.am): Likewise.
43943         * modules/fseeko-tests (Makefile.am): Likewise.
43944         * modules/ftell-tests (Makefile.am): Likewise.
43945         * modules/ftello-tests (Makefile.am): Likewise.
43946         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
43947         * modules/isnanl-tests (Makefile.am): Likewise.
43948         * modules/lseek-tests (Makefile.am): Likewise.
43949         * modules/mbscasecmp-tests (Makefile.am): Likewise.
43950         * modules/mbscasestr-tests (Makefile.am): Likewise.
43951         * modules/mbschr-tests (Makefile.am): Likewise.
43952         * modules/mbscspn-tests (Makefile.am): Likewise.
43953         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
43954         * modules/mbspbrk-tests (Makefile.am): Likewise.
43955         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
43956         * modules/mbsrchr-tests (Makefile.am): Likewise.
43957         * modules/mbsspn-tests (Makefile.am): Likewise.
43958         * modules/mbsstr-tests (Makefile.am): Likewise.
43959         * modules/printf-posix-tests (Makefile.am): Likewise.
43960         * modules/snprintf-posix-tests (Makefile.am): Likewise.
43961         * modules/sprintf-posix-tests (Makefile.am): Likewise.
43962         * modules/tsearch-tests (Makefile.am): Likewise.
43963         * modules/uniname/uniname-tests (Makefile.am): Likewise.
43964         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
43965         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
43966         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
43967         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
43968         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
43969         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
43970         * modules/vprintf-posix-tests (Makefile.am): Likewise.
43971         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
43972         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
43973         * modules/xstrtoimax-tests (Makefile.am): Likewise.
43974         * modules/xstrtol-tests (Makefile.am): Likewise.
43975         * modules/xstrtoumax-tests (Makefile.am): Likewise.
43976         * modules/yesno-tests (Makefile.am): Likewise.
43977
43978 2007-10-03  Bruno Haible  <bruno@clisp.org>
43979
43980         * modules/trunc-tests: New file.
43981         * tests/test-trunc.c: New file.
43982
43983         * modules/trunc: New file.
43984         * lib/trunc.c: New file.
43985         * m4/trunc.m4: New file.
43986         * lib/math.in.h (trunc): New declaration.
43987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
43988         HAVE_DECL_TRUNC.
43989         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
43990         HAVE_DECL_TRUNC.
43991         * doc/functions/trunc.texi: Mention the 'trunc' module.
43992
43993 2007-10-03  Bruno Haible  <bruno@clisp.org>
43994
43995         * tests/test-fpending.c: New file, mostly copied
43996         from coreutils/lib/t-fpending.c.
43997         * modules/fpending-tests: New file.
43998
43999 2007-10-03  Bruno Haible  <bruno@clisp.org>
44000
44001         Port the stdio extensions to QNX (untested).
44002         * lib/fseterr.c (fseterr): Add support for QNX.
44003         * lib/fbufmode.c (fbufmode): Likewise.
44004         * lib/freadable.c (freadable): Likewise.
44005         * lib/fwritable.c (fwritable): Likewise.
44006         * lib/freading.c (freading): Likewise.
44007         * lib/fwriting.c (fwriting): Likewise.
44008         * lib/freadahead.c (freadahed): Likewise.
44009         * lib/fpurge.c (fpurge): Likewise.
44010         * lib/fseeko.c (rpl_fseeko): Likewise.
44011
44012 2007-10-03  Bruno Haible  <bruno@clisp.org>
44013             Jim Meyering  <jim@meyering.net>
44014             Eric Blake  <ebb9@byu.net>
44015
44016         * doc/relocatable.texi: Use @command instead of @program.
44017
44018 2007-10-02  Jim Meyering  <jim@meyering.net>
44019
44020         Perform one more "_.h" -> ".in.h" substitution.
44021         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
44022         instead of unistd_.h here, too.
44023
44024 2007-10-01  Bruno Haible  <bruno@clisp.org>
44025
44026         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
44027         Needed for the alloca-opt module.
44028
44029 2007-09-30  Bruno Haible  <bruno@clisp.org>
44030
44031         * lib/alloca.in.h: Renamed from lib/alloca_.h.
44032         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
44033         alloca_.h.
44034         * lib/argz.in.h: Renamed from lib/argz_.h.
44035         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
44036         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
44037         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
44038         byteswap_.h.
44039         * lib/dirent.in.h: Renamed from lib/dirent_.h.
44040         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
44041         dirent_.h.
44042         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
44043         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
44044         fcntl_.h.
44045         * lib/float.in.h: Renamed from lib/float_.h.
44046         * modules/float (Files, Makefile.am): Use float.in.h instead of
44047         float_.h.
44048         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
44049         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
44050         fnmatch_.h.
44051         * lib/getopt.in.h: Renamed from lib/getopt_.h.
44052         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
44053         getopt_.h.
44054         * lib/glob.in.h: Renamed from lib/glob_.h.
44055         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
44056         * lib/iconv.in.h: Renamed from lib/iconv_.h.
44057         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
44058         iconv_.h.
44059         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
44060         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
44061         inttypes_.h.
44062         * lib/locale.in.h: Renamed from lib/locale_.h.
44063         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
44064         locale_.h.
44065         * lib/math.in.h: Renamed from lib/math_.h.
44066         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
44067         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
44068         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
44069         of netinet_in_.h. Add dependency.
44070         * lib/poll.in.h: Renamed from lib/poll_.h.
44071         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
44072         * lib/search.in.h: Renamed from lib/search_.h.
44073         * modules/search (Files, Makefile.am): Use search.in.h instead of
44074         search_.h.
44075         * lib/signal.in.h: Renamed from lib/signal_.h.
44076         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
44077         _signal.h.
44078         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
44079         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
44080         stdbool_.h.
44081         * lib/stdint.in.h: Renamed from lib/stdint_.h.
44082         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
44083         stdint_.h.
44084         * lib/stdio.in.h: Renamed from lib/stdio_.h.
44085         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
44086         stdio_.h.
44087         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
44088         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
44089         stdlib_.h.
44090         * lib/string.in.h: Renamed from lib/string_.h.
44091         * modules/string (Files, Makefile.am): Use string.in.h instead of
44092         string_.h.
44093         * doc/gnulib-tool.texi (Initial import): Update.
44094         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
44095         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
44096         of sys_select_.h. Add dependency.
44097         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
44098         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
44099         of sys_socket_.h.
44100         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
44101         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
44102         sys_stat_.h.
44103         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
44104         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
44105         sys_time_.h.
44106         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
44107         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
44108         sysexits_.h.
44109         * lib/time.in.h: Renamed from lib/time_.h.
44110         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
44111         * lib/unistd.in.h: Renamed from lib/unistd_.h.
44112         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
44113         unistd_.h.
44114         * lib/wchar.in.h: Renamed from lib/wchar_.h.
44115         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
44116         wchar_.h.
44117         * lib/wctype.in.h: Renamed from lib/wctype_.h.
44118         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
44119         wctype_.h.
44120         * build-aux/bootstrap (slurp): Update.
44121         * lib/.cppi-disable: Update.
44122
44123 2007-09-30  Bruno Haible  <bruno@clisp.org>
44124
44125         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
44126         Needed on BeOS.
44127
44128 2007-09-30  Bruno Haible  <bruno@clisp.org>
44129
44130         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
44131
44132 2007-09-29  Bruno Haible  <bruno@clisp.org>
44133
44134         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
44135
44136 2007-09-29  Bruno Haible  <bruno@clisp.org>
44137
44138         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
44139         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
44140         * build-aux/install-reloc: Compile also areadlink.c.
44141         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
44142
44143 2007-09-29  Bruno Haible  <bruno@clisp.org>
44144
44145         * gnulib-tool (func_emit_initmacro_done): Indentation.
44146
44147 2007-09-29  Bruno Haible  <bruno@clisp.org>
44148
44149         * README: Add CVS checkout update instructions.
44150         Info from Bob Proulx <bob@proulx.com>.
44151
44152 2007-09-28  Eric Blake  <ebb9@byu.net>
44153
44154         Provide move-if-change.
44155         * build-aux/move-if-change: New file, based on best practice
44156         rather than any canonical upstream location.
44157
44158 2007-09-28  Jim Meyering  <jim@meyering.net>
44159
44160         Fix canonicalize loop-detection corner case.
44161         Do not attempt to stat the symlink values stored via seen_triple.
44162         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
44163         on linux-2.6.18, (but not 2.6.22).
44164         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
44165         triple_compare.  The former compares dev,ino,filename, while the latter
44166         would actually stat dirname(filename) when dev and ino were equal.
44167         * lib/hash-triple.c: Install <string.h>.
44168         (STREQ): Define.
44169         (triple_compare_ino_str): New function.
44170         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
44171
44172 2007-09-28  Eric Blake  <ebb9@byu.net>
44173
44174         Enforce that AC_REPLACE_FUNCS files exist.
44175         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
44176         override check for typos.
44177
44178         Fix test-closein on Solaris 10.
44179         * tests/test-closein.c (main): Don't assume stdin can be inherited
44180         closed on all systems.
44181         * tests/test-closein.sh: Likewise.
44182         Reported by Piotr Tarnowski.
44183
44184 2007-09-28  Jim Meyering  <jim@meyering.net>
44185
44186         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
44187
44188 2007-09-27  Jim Meyering  <jim@meyering.net>
44189
44190         canonicalize: Avoid a false-positive cycle failure.
44191         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
44192         Sort.  Remove cycle-check.
44193         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
44194         not cycle-check.h.
44195         (seen_triple): New function.
44196         (canonicalize_filename_mode): Use it instead of cycle-check.
44197         * tests/test-canonicalize.c: Add a test for this bug.
44198         * tests/test-canonicalize.sh: Set up and run the test.
44199
44200         New module, file-set, from coreutils.
44201         * modules/file-set: Define it.
44202         * lib/file-set.c, lib/file-set.h: Implement.
44203
44204         New module, hash-triple, from coreutils.
44205         * modules/hash-triple: Define it.
44206         * lib/hash-triple.c, lib/hash-triple.h: Implement.
44207
44208 2007-09-25  Eric Blake  <ebb9@byu.net>
44209
44210         Fix strerror on Interix.
44211         * lib/string_.h (strerror): Declare replacement.
44212         * doc/functions/strerror.texi (strerror): Document the Interix
44213         shortcoming.
44214         * modules/string (Makefile.am): Support new hooks.
44215         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
44216         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
44217         gl_FUNC_STRERROR_SEPARATE.
44218         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
44219         * lib/strerror.c (rpl_strerror): Provide replacement.
44220         * modules/strerror (Depends-on): Add string.
44221         (configure.ac): Detect use of module.
44222         * tests/test-strerror.c: New file.
44223         * modules/strerror-tests: New test module.
44224         * modules/argp (Depends-on): Add strerror.
44225         * modules/error (Depends-on): Likewise.
44226         Reported by Martin Koeppe.
44227
44228 2007-09-24  Bruno Haible  <bruno@clisp.org>
44229
44230         * README: Update git instructions.
44231
44232 2007-09-24  Eric Blake  <ebb9@byu.net>
44233
44234         Revert fpending breakage from 2007-09-08.
44235         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
44236         __fpending.c.
44237
44238 2007-09-24  Jim Meyering  <jim@meyering.net>
44239
44240         filenamecat.c: Add a test.
44241         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
44242         showing how the function works when DIR is the empty string.
44243
44244 2007-09-21  Simon Josefsson  <simon@josefsson.org>
44245
44246         * tests/test-canonicalize.sh: Turn on executable bit.
44247
44248 2007-09-19  Eric Blake  <ebb9@byu.net>
44249
44250         * README: Update CVS instructions.
44251
44252 2007-09-18  Bruno Haible  <bruno@clisp.org>
44253
44254         * modules/areadlink: New file.
44255         * lib/areadlink.h (areadlink): New declaration.
44256         * lib/areadlink.c: New file, based on lib/xreadlink.c.
44257
44258 2007-09-17  Jim Meyering  <jim@meyering.net>
44259
44260         * lib/savewd.c (ESTALE) [!defined]: Define.
44261         Reported to be required on Interix by Martin Koeppe.
44262
44263 2007-09-17  Bruno Haible  <bruno@clisp.org>
44264
44265         * gnulib-tool (func_version): Use $version.
44266
44267 2007-09-16  Bruno Haible  <bruno@clisp.org>
44268
44269         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
44270         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
44271         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
44272         Reported by Greg Schafer <gschafer@zip.com.au>.
44273
44274 2007-09-15  Bruno Haible  <bruno@clisp.org>
44275
44276         * gnulib-tool (sed): Try a little harder to make bash understand the
44277         alias.
44278         Reported by Bruce Korb <bruce.korb@gmail.com>.
44279
44280 2007-09-13  Eric Blake  <ebb9@byu.net>
44281
44282         * ChangeLog: Remove conflict markers.
44283
44284 2007-09-13  Simon Josefsson  <simon@josefsson.org>
44285
44286         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
44287         Reported by Bruno Haible <bruno@clisp.org>.
44288
44289 2007-09-12  Bruno Haible  <bruno@clisp.org>
44290
44291         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
44292         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
44293         is not defined.
44294
44295 2007-09-12  Eric Blake  <ebb9@byu.net>
44296
44297         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
44298         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
44299         Autoconf definition.
44300         * modules/euidaccess (Depends-on): Add extensions, for
44301         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
44302         * modules/fnmatch (Depends-on): Likewise.
44303         * modules/getaddrinfo (Depends-on): Likewise.
44304         * modules/getdelim (Depends-on): Likewise.
44305         * modules/getline (Depends-on): Likewise.
44306         * modules/getsubopt (Depends-on): Likewise.
44307         * modules/gettext (Depends-on): Likewise.
44308         * modules/group-member (Depends-on): Likewise.
44309         * modules/mbchar (Depends-on): Likewise.
44310         * modules/memmem (Depends-on): Likewise.
44311         * modules/mempcpy (Depends-on): Likewise.
44312         * modules/memrchr (Depends-on): Likewise.
44313         * modules/pagealign_alloc (Depends-on): Likewise.
44314         * modules/readutmp (Depends-on): Likewise.
44315         * modules/stpcpy (Depends-on): Likewise.
44316         * modules/stpncpy (Depends-on): Likewise.
44317         * modules/strchrnul (Depends-on): Likewise.
44318         * modules/strndup (Depends-on): Likewise.
44319         * modules/strsep (Depends-on): Likewise.
44320         * modules/strverscmp (Depends-on): Likewise.
44321         * modules/vasprintf (Depends-on): Likewise.
44322         * modules/wcwidth (Depends-on): Likewise.
44323         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
44324         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
44325         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
44326         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
44327         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44328         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44329         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
44330         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44331         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
44332         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
44333         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44334         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
44335         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
44336         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
44337         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
44338         * m4/readutmp.m4 (gl_READUTMP): Likewise.
44339         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44340         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
44341         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44342         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
44343         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44344         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
44345         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
44346         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
44347         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
44348         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44349         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
44350         so that lock.m4 can be used in gettext without extensions module.
44351
44352 2007-09-11  Bruno Haible  <bruno@clisp.org>
44353
44354         * m4/isc-posix.m4: Remove file.
44355         Suggested by Eric Blake.
44356
44357 2007-09-11  Eric Blake  <ebb9@byu.net>
44358
44359         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
44360
44361 2007-09-10  Bruno Haible  <bruno@clisp.org>
44362
44363         * posix-modules: Fix typo in error message.
44364         Reported by Matt <mkraai@beckman.com>.
44365
44366 2007-09-09  Bruno Haible  <bruno@clisp.org>
44367
44368         * doc/functions/getdelim.texi: Update list of platforms lacking the
44369         function.
44370         * doc/functions/getline.texi: Likewise.
44371
44372 2007-09-09  Jim Meyering  <jim@meyering.net>
44373
44374         * lib/hash.c (hash_initialize): Detect calloc failure.
44375         Reported by Bruno Haible.
44376
44377 2007-09-09  Bruno Haible  <bruno@clisp.org>
44378
44379         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
44380         malloc or realloc fails.
44381
44382 2007-09-09  Bruno Haible  <bruno@clisp.org>
44383
44384         * modules/getcwd (Depends-on): Add malloc-posix.
44385         * modules/glob (Depends-on): Likewise.
44386         * modules/putenv (Depends-on): Likewise.
44387         * modules/strdup (Depends-on): Likewise.
44388         * modules/getdelim (Depends-on): Add realloc-posix.
44389         * modules/read-file (Depends-on): Likewise.
44390
44391 2007-09-09  Bruno Haible  <bruno@clisp.org>
44392
44393         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
44394         (gl_FUNC_MALLOC_POSIX): Require it.
44395         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
44396         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
44397         * modules/realloc (Files): Add m4/malloc.m4.
44398         * modules/calloc (Files): Likewise.
44399
44400 2007-09-09  Bruno Haible  <bruno@clisp.org>
44401
44402         * modules/malloc-posix: New file.
44403         * modules/malloc (Depends-on): Add malloc-posix.
44404         * lib/malloc.c: Include errno.h.
44405         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
44406         and a POSIX-compatible malloc into a single function. Set ENOMEM
44407         when returning NULL.
44408         * m4/malloc.m4: New file.
44409         * doc/functions/malloc.texi: Mention the malloc-posix module.
44410         * lib/stdlib_.h (malloc): New declaration.
44411         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44412         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
44413         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
44414         and HAVE_MALLOC_POSIX.
44415
44416 2007-09-09  Bruno Haible  <bruno@clisp.org>
44417
44418         * modules/realloc-posix: New file.
44419         * modules/realloc (Depends-on): Add realloc-posix.
44420         * lib/realloc.c: Include errno.h.
44421         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
44422         and a POSIX-compatible realloc into a single function. Set ENOMEM
44423         when returning NULL.
44424         * m4/realloc.m4: New file.
44425         * doc/functions/realloc.texi: Mention the realloc-posix module.
44426         * lib/stdlib_.h (realloc): New declaration.
44427         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44428         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
44429         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
44430         and HAVE_REALLOC_POSIX.
44431
44432 2007-09-09  Bruno Haible  <bruno@clisp.org>
44433
44434         * modules/calloc-posix: New file.
44435         * modules/calloc (Depends-on): Add calloc-posix.
44436         * lib/calloc.c: Include errno.h.
44437         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
44438         and a POSIX-compatible calloc into a single function. Set ENOMEM
44439         when returning NULL.
44440         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
44441         * doc/functions/calloc.texi: Mention the calloc-posix module.
44442         * lib/stdlib_.h (calloc): New declaration.
44443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44444         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
44445         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
44446         and HAVE_CALLOC_POSIX.
44447
44448 2007-09-09  Bruno Haible  <bruno@clisp.org>
44449
44450         Allow for modules to show an arbitrary notice.
44451         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
44452         * gnulib-tool: New option --extract-notice.
44453         (func_usage): Document it.
44454         (sed_extract_prog): Update.
44455         (func_get_notice): New function.
44456         (func_modules_notice): New function.
44457         (func_import, func_create_testdir): Invoke it.
44458         Suggested by Jim Meyering.
44459
44460 2007-09-09  Bruno Haible  <bruno@clisp.org>
44461
44462         * gnulib-tool: New options --verbose, --quiet.
44463         (func_usage): Document them.
44464         (verbose): New variable.
44465         (func_execute_command): New function.
44466         (func_import): Don't show the module list and the file list if
44467         $verbose < 0.
44468         (func_create_testdir): Likewise. Use func_execute_command.
44469         (func_create_megatestdir): Use func_execute_command.
44470
44471 2007-09-08  Bruno Haible  <bruno@clisp.org>
44472
44473         * gnulib-tool (func_import): Prefer rsync over wget when available,
44474         for fetching the PO files.
44475
44476 2007-09-08  Bruno Haible  <bruno@clisp.org>
44477
44478         * posix-modules: New file. Portions copied from gnulib-tool.
44479         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
44480
44481 2007-09-08  Jim Meyering  <jim@meyering.net>
44482
44483         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
44484         * lib/fpending.h: Rename from __fpending.h.
44485         * lib/fpending.c: Rename from __fpending.c.
44486         Include "fpending.h", not "__fpending.h".
44487         * lib/__fpending.h, lib/__fpending.c: Remove files.
44488         * modules/fpending (Files): Reflect new file names.
44489         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
44490
44491 2007-09-08  Bruno Haible  <bruno@clisp.org>
44492
44493         * m4/inttypes-h.m4: Remove stub file.
44494
44495 2007-09-07  Simon Josefsson  <simon@josefsson.org>
44496
44497         * doc/headers/stdint.texi: Discuss #include_next issue.
44498
44499 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
44500
44501         * build-aux/bootstrap: Remove obsolete comment about wget --help.
44502
44503 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44504
44505         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
44506         in variable name.
44507
44508 2007-09-03  Jim Meyering  <jim@meyering.net>
44509
44510         New module: git-version-gen.
44511         * modules/git-version-gen: New file.
44512
44513         Import changes from coreutils for bootstrap script.
44514
44515         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
44516
44517         bootstrap: uses rsync to download the .po files
44518         * build-aux/bootstrap (po_download_command_format): New global.
44519         (download_po_files): Use rsync.
44520         (update_po_files): Don't remove .po files after download,
44521         so future rsync runs can take advantage of the copies.
44522
44523         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
44524
44525         Solve the unnecessary-.po-file-regeneration problem once and for all.
44526         * build-aux/bootstrap (download_po_files): New function, renamed from
44527         get_translations.  Now, downloads, but doesn't update LINGUAS.
44528         (update_po_files): New function.
44529
44530         bootstrap: Ignore more.
44531         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
44532         uniwidth to e.g., lib/.gitignore.
44533         (slurp): Handle the sys_stat_.h -> sys mapping, too.
44534
44535         * build-aux/bootstrap: New setting: vc_ignore.
44536         (insert_sorted_if_absent): Create $file if absent.
44537         Adapt to new, possibly empty, list: $vc_ignore.
44538
44539         bootstrap: generate more ignorable names
44540         * build-aux/bootstrap (slurp): When generating ignorable names,
44541         also map .sin to .sed, .gperf to .c, and .y to .c.
44542
44543 2007-09-03  Jim Meyering  <jim@meyering.net>
44544
44545         * build-aux/git-version-gen: New file, from coreutils.  For details, see
44546         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
44547
44548 2007-09-02  Bruno Haible  <bruno@clisp.org>
44549
44550         Fix mis-recognition of 'mcs' on QNX 6.
44551         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
44552         output contains the string "Mono".
44553         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
44554         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
44555
44556 2007-09-01  Bruno Haible  <bruno@clisp.org>
44557
44558         Fix collision between uniwidth/* and linebreak modules.
44559         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
44560         u32_width): Remove declarations.
44561         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
44562         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
44563         streq3, streq2, streq1, streq0): Remove functions.
44564         (STREQ): Remove macro.
44565         (is_cjk_encoding): Remove function.
44566         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
44567         (uc_width, u8_width, u16_width, u32_width): Remove functions.
44568         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
44569         * NEWS: Document the change.
44570
44571 2007-09-01  Bruno Haible  <bruno@clisp.org>
44572
44573         * lib/streq.h: Add double-inclusion guard.
44574
44575 2007-09-01  Karl Berry  <karl@gnu.org>
44576
44577         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
44578
44579 2007-08-28  Jim Meyering  <jim@meyering.net>
44580
44581         Rename mreadlink_with_size to areadlink_with_size.
44582         * NEWS: Document the change.
44583         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
44584         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
44585         * lib/mreadlink.h: Rename this to...
44586         * lib/areadlink.h: ...this.
44587         * modules/mreadlink-with-size: Rename this to...
44588         * modules/areadlink-with-size: ...this.
44589         * lib/canonicalize.c: Reflect the renaming.
44590         * modules/canonicalize: Likewise.
44591
44592 2007-08-26  Bruno Haible  <bruno@clisp.org>
44593
44594         * gnulib-tool (func_import): When deciding which files to remove,
44595         consider also dangling symbolic links.
44596         Reported by Eric Blake.
44597
44598 2007-08-26  Bruno Haible  <bruno@clisp.org>
44599
44600         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
44601
44602 2007-08-23  Simon Josefsson  <simon@josefsson.org>
44603
44604         * lib/readline.c: Don't include getline.h, the prototype is now
44605         found in stdio.h.
44606
44607 2007-08-23  Jim Meyering  <jim@meyering.net>
44608
44609         Getdelim touchup.
44610         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
44611         around the funlockfile call, since funlockfile never sets errno.
44612         Don't set errno upon failed realloc.
44613
44614 2007-08-22  Eric Blake  <ebb9@byu.net>
44615
44616         Getline touchups.
44617         * lib/getdelim.c (getdelim): Revert regression that required *n to
44618         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
44619         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
44620         getdelim, rather than whether implementation is missing.
44621         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
44622         * lib/stdio_.h (getline): Also declare if replacement is
44623         required.
44624         * doc/functions/getdelim.texi: New file.
44625         * doc/functions/getline.texi: Likewise.
44626         * doc/gnulib.texi (Function Substitutes): Add new files.
44627         Reported by Bruno Haible.
44628
44629 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
44630
44631         * users.txt: Add Guile.
44632
44633 2007-08-22  Eric Blake  <ebb9@byu.net>
44634
44635         * tests/test-getdelim.c (main): Use remove, not unlink.
44636         * tests/test-getline.c (main): Likewise.
44637
44638         Move getline and getdelim into stdio.h, per POSIX 200x.
44639         * modules/getline (Files): Remove getline.h.
44640         (Depends-on): Add stdio.
44641         (configure.ac): Add module indicator.
44642         * modules/getdelim (Files): Remove getdelim.h.
44643         (Depends-on): Add stdio.
44644         (configure.ac): Add module indicator.
44645         * modules/stdio (Makefile.am): Work with new indicators.
44646         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44647         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
44648         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44649         * lib/getdelim.h: Delete.
44650         * lib/getline.h: Delete.
44651         * lib/stdio_.h (getdelim, getline): Declare.
44652         * modules/getdelim-tests: New module.
44653         * modules/getline-tests: Likewise.
44654         * tests/test-getdelim.c: New file.
44655         * tests/test-getline.c: Likewise.
44656         * NEWS: Document the change.
44657         * lib/getline.c: Update choice of header.
44658         * lib/csharpcomp.c: Likewise.
44659         * lib/getpass.c: Likewise.
44660         * lib/javacomp.c: Likewise.
44661         * lib/javaversion.c: Likewise.
44662         * lib/yesno.c: Likewise.
44663         * lib/getdelim.c: Likewise.
44664         (getdelim): Set errno on failure, and avoid memory leak.
44665
44666 2007-08-19  Bruno Haible  <bruno@clisp.org>
44667
44668         * modules/closein (Depends-on): Add freadahead.
44669         * lib/closein.c: Include freadahead.h.
44670         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
44671         is zero.
44672
44673 2007-08-19  Bruno Haible  <bruno@clisp.org>
44674
44675         * modules/freadahead-tests: New file.
44676         * tests/test-freadahead.sh: New file.
44677         * tests/test-freadahead.c: New file.
44678
44679         * modules/freadahead: New file.
44680         * lib/freadahead.h: New file.
44681         * lib/freadahead.c: New file.
44682         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
44683         fbufmode, fpurge, freadable, fwritable.
44684
44685 2007-08-19  Eric Blake  <ebb9@byu.net>
44686
44687         Test yesno in combination with closein.
44688         * lib/yesno.c (yesno): Document use of stdin.
44689         * modules/yesno-tests (Files): New module.
44690         * tests/test-yesno.c (main): New file.
44691         * tests/test-yesno.sh: Likewise.
44692
44693 2007-08-19  Bruno Haible  <bruno@clisp.org>
44694
44695         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
44696         * lib/fseeko.c (rpl_fseeko): Likewise.
44697         * lib/fseterr.c (fseterr): Likewise.
44698
44699 2007-08-19  Bruno Haible  <bruno@clisp.org>
44700
44701         * tests/test-lseek.c (main): Disable a test for BeOS.
44702         * doc/functions/lseek.texi: Document the BeOS bug.
44703
44704 2007-08-19  Bruno Haible  <bruno@clisp.org>
44705             Eric Blake  <ebb9@byu.net>
44706
44707         * lib/lseek.c: Include <sys/stat.h>.
44708         (rpl_lseek): Add workaround code also for Unix platforms.
44709         Needed for BeOS.
44710         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
44711         * doc/functions/lseek.texi: Document BeOS definiency.
44712
44713 2007-08-18  Bruno Haible  <bruno@clisp.org>
44714
44715         * modules/fstrcmp-tests: New file.
44716         * tests/test-fstrcmp.c: New file.
44717
44718 2007-08-18  Bruno Haible  <bruno@clisp.org>
44719
44720         * modules/fstrcmp: New file, from GNU gettext with modifications.
44721         * lib/fstrcmp.h: New file, from GNU gettext.
44722         * lib/fstrcmp.c: New file, from GNU gettext.
44723         * MODULES.html.sh (String handling): Add fstrcmp.
44724
44725 2007-08-18  Bruno Haible  <bruno@clisp.org>
44726
44727         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
44728         'bool'.
44729         (diag, compareseq): Remove const from the ctxt argument.
44730         (USE_HEURISTIC): Undefine at the end.
44731
44732 2007-08-18  Jim Meyering  <jim@meyering.net>
44733
44734         New file: lib/idcache.h
44735         * NEWS: Mention the addition.
44736         * modules/idcache (Files): Add lib/idcache.h
44737         * lib/idcache.c: Include "idcache.h".
44738         Don't include <sys/types.h>.
44739         Add a FIXME comment.
44740         Move file-scoped "static" declarations to the top.
44741         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
44742
44743 2007-08-17  Bruno Haible  <bruno@clisp.org>
44744         and Paul Eggert  <eggert@cs.ucla.edu>
44745
44746         * MODULES.html.sh: Add diffseq.
44747         * modules/diffseq: New file.
44748         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
44749         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
44750
44751 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44752
44753         Import changes from coreutils for bootstrap script.
44754
44755         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
44756
44757         * build-aux/bootstrap (slurp): Work even in environments where
44758         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
44759         current code does not slurp files whose names start with ".", and
44760         this looks like it might be a troublesome area.
44761
44762         2007-07-11  Jim Meyering  <jim@meyering.net>
44763
44764         If there's a GPL vN copyright comment, require that N == 3.
44765
44766         2007-07-08  Jim Meyering  <jim@meyering.net>
44767
44768         Run the coreutils-specific code only if tests/Makefile.am.in exists.
44769         * build-aux/bootstrap (mam_template): Move definition out of loop.
44770
44771         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
44772
44773         * build-aux/bootstrap (symlink_to_dir): Rename function from
44774         symlink_to_gnulib.  Add a directory parameter.  Update all
44775         callers.
44776         (cp_mark_as_generated): Also check for -- and link to -- files in
44777         gl/.
44778
44779         2007-07-08  Jim Meyering  <jim@meyering.net>
44780
44781         Adapt to deeper hierarchy in gnulib.
44782         * build-aux/bootstrap (symlink_to_dir): If the destination
44783         directory doesn't exist, create it. This is required at least for
44784         "lib/uniwidth/cjk.h".
44785
44786         2007-05-15  Jim Meyering  <jim@meyering.net>
44787
44788         * build-aux/bootstrap: Now that generated Makefile.am files
44789         are no longer under version control, they must be created at
44790         bootstrap time.
44791
44792 2007-08-14  Ben Pfaff  <blp@gnu.org>
44793
44794         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
44795
44796 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44797
44798         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
44799         given the changes below.
44800         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
44801         even on hosts that have padding bits beyond the supported 64.
44802
44803 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44804
44805         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
44806         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
44807         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
44808         depends on it.
44809         (xstrtol_error): Remove.
44810         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
44811         but with a different signature.
44812         (ATTRIBUTE_NORETURN, __attribute__): New macros.
44813         * lib/xstrtol-error.c: Include exitfail.h.
44814         (xstrtol_fatal): New function, with a different signature from the
44815         old xstrtol_error, so that the caller need not worry about passing
44816         in an exit status, or about storage management of the option argument.
44817         (xstrtol_error): Now a static function.  Redo signature to
44818         implement xstrtol_fatal.  Output the correct number of hyphens in
44819         front of the option so that the caller need not worry about
44820         storage management.
44821         (N_): New macro.
44822         (_): Remove; not used now.
44823         * modules/xstrtol: Depend on getopt.
44824         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
44825         of old STRTOL_FATAL_ERROR macro.
44826         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
44827         of test program.
44828         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
44829         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
44830
44831 2007-08-08  Eric Blake  <ebb9@byu.net>
44832
44833         * lib/xstrtol-error.c: Add missing include.
44834
44835         Move xstrtol messages into gnulib domain, when --pobase is used.
44836         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
44837         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
44838         * modules/xstrtol (Files): Distribute new file.
44839         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
44840         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
44841         * tests/test-xstrtol.c: ...into new file.
44842         * tests/test-xstrtoul.c: Also test xstrtoul.
44843         * tests/test-xstrtoimax.c: Also test xstrtoimax.
44844         * tests/test-xstrtoumax.c: Also test xstrtoumax.
44845         * tests/test-xstrtol.sh: Drive the tests.
44846         * tests/test-xstrtoimax.sh: Likewise.
44847         * tests/test-xstrtoumax.sh: Likewise.
44848         * modules/xstrtol-tests: New module.
44849         * modules/xstrtoimax-tests: Likewise.
44850         * modules/xstrtoumax-tests: Likewise.
44851
44852 2007-08-08  Jim Meyering  <jim@meyering.net>
44853
44854         New function: mfile_name_concat.
44855         * lib/filenamecat.c (mfile_name_concat): New function, just like
44856         file_name_concat, but return NULL upon failure rather than exiting
44857         with a diagnostic.
44858         * lib/filenamecat.h: Declare it.
44859
44860 2007-08-07  Bruno Haible  <bruno@clisp.org>
44861
44862         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
44863         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
44864         warning from gcc.
44865         Reported by Eric Blake.
44866
44867 2007-08-07  Simon Josefsson  <simon@josefsson.org>
44868
44869         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
44870         * modules/crypto/arcfour (License): Likewise.
44871         * modules/crypto/des-tests (License): Likewise.
44872         * modules/crypto/gc-arctwo-tests (License): Likewise.
44873         * modules/crypto/gc-des-tests (License): Likewise.
44874         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
44875         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
44876         * modules/crypto/gc-md2-tests (License): Likewise.
44877         * modules/crypto/gc-md4-tests (License): Likewise.
44878         * modules/crypto/gc-md5-tests (License): Likewise.
44879         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
44880         * modules/crypto/gc-rijndael-tests (License): Likewise.
44881         * modules/crypto/gc-sha1-tests (License): Likewise.
44882         * modules/crypto/gc-tests (License): Likewise.
44883         * modules/crypto/hmac-md5 (License): Likewise.
44884         * modules/crypto/hmac-sha1 (License): Likewise.
44885         * modules/crypto/md2-tests (License): Likewise.
44886         * modules/crypto/md4-tests (License): Likewise.
44887         * modules/crypto/md5 (License): Likewise.
44888         * modules/crypto/rijndael (License): Likewise.
44889         * modules/crypto/sha1 (License): Likewise.
44890         * modules/memxor (License): Likewise.
44891
44892 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
44893         and Bruno Haible  <bruno@clisp.org>
44894
44895         * NEWS: Describe interface changes to human, xstrtol.
44896         * lib/human.h: Include <xstrtol.h>.
44897         (human_options): Return enum strtol_error, not int.  Remove
44898         bool arg; take int * instead.
44899         * lib/human.c: Don't include "gettext.h".
44900         (_): Remove; no longer used.
44901         Don't include <xstrtol.h>, since human.h does it.
44902         (human_options): Adjust to abovementioned interface changes.
44903         Do not report error to stderr; that's now the caller's
44904         responsibility.
44905         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
44906         interface change.
44907         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
44908         Str, Argument_type_string.  All uses changed.  Put " argument"
44909         in diagnostics to make them clearer.  Change wording of suffix
44910         message for clarity.
44911         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
44912         Argument_type_string.
44913         (STRTOL_FATAL_WARN): Remove; no longer used.
44914         * modules/human (Depends-on): Remove gettext-h.
44915
44916 2007-08-06  Simon Josefsson  <simon@josefsson.org>
44917
44918         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
44919
44920 2007-07-31  Bruno Haible  <bruno@clisp.org>
44921
44922         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
44923         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
44924         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
44925
44926 2007-07-31  Bruno Haible  <bruno@clisp.org>
44927
44928         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
44929         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
44930
44931 2007-07-30  Bruno Haible  <bruno@clisp.org>
44932
44933         * modules/base64 (License): Use the synonymous term "LGPLv2+".
44934         * modules/c-ctype (License): Likewise.
44935         * modules/c-strcase (License): Likewise.
44936         * modules/check-version (License): Likewise.
44937         * modules/iconv (License): Likewise.
44938         * modules/iconv_open (License): Likewise.
44939         * modules/read-file (License): Likewise.
44940         * modules/striconv (License): Likewise.
44941         * modules/strverscmp (License): Likewise.
44942         * modules/vasprintf (License): Likewise.
44943         * modules/crypto/des (License): Likewise.
44944         * modules/crypto/gc (License): Likewise.
44945         * modules/crypto/gc-arcfour (License): Likewise.
44946         * modules/crypto/gc-arctwo (License): Likewise.
44947         * modules/crypto/gc-des (License): Likewise.
44948         * modules/crypto/gc-hmac-md5 (License): Likewise.
44949         * modules/crypto/gc-hmac-sha1 (License): Likewise.
44950         * modules/crypto/gc-md2 (License): Likewise.
44951         * modules/crypto/gc-md4 (License): Likewise.
44952         * modules/crypto/gc-md5 (License): Likewise.
44953         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
44954         * modules/crypto/gc-random (License): Likewise.
44955         * modules/crypto/gc-rijndael (License): Likewise.
44956         * modules/crypto/gc-sha1 (License): Likewise.
44957         * modules/crypto/md2 (License): Likewise.
44958         * modules/crypto/md4 (License): Likewise.
44959
44960 2007-07-30  Jim Meyering  <jim@meyering.net>
44961
44962         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
44963         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
44964         it has valid stat data.  This bug would cause du not to count the
44965         sizes of inaccessible directories.
44966         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
44967         in <http://bugzilla.redhat.com/250077>.
44968
44969 2007-07-25  Peter O'Gorman  <peter@pogma.com>
44970             Bruno Haible  <bruno@clisp.org>
44971
44972         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
44973         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
44974         #include_next, gives a diagnostic about it, but reports no error in
44975         the exit code.
44976         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44977
44978 2007-07-24  Ben Pfaff  <blp@gnu.org>
44979
44980         Improve name: "count-one-bits" is better than "popcount".
44981         * MODULES.html.sh: Update name.
44982         * lib/popcount.h: Renamed lib/count-one-bits.h.
44983         (popcount): Renamed count_one_bits.
44984         (popcountl): Renamed count_one_bits_l.
44985         (popcountll): Renamed count_one_bits_ll.
44986         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
44987         * modules/popcount: Renamed module/count-one-bits.
44988         * modules/popcount-tests: Renamed module/count-one-bits-tests.
44989         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
44990
44991 2007-07-23  Ben Pfaff  <blp@gnu.org>
44992
44993         * lib/popcount.h (popcount32): Reduce size of constants, to allow
44994         better code generation, and add U to large constants to avoid
44995         warnings, in non-GCC case.
44996         Suggested by Bruno Haible.
44997
44998 2007-07-23  Ben Pfaff  <blp@gnu.org>
44999
45000         * lib/popcount.h: Use verify_true instead of if...abort.
45001         * modules/popcount: Depend on verify module.
45002         Suggested by Jim Meyering.
45003
45004 2007-07-23  Bruno Haible  <bruno@clisp.org>
45005
45006         * gnulib-tool (func_import): Create a .cvsignore file also when the
45007         directory is not yet in CVS but the toplevel directory is. When
45008         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
45009         Reported by Karl Berry.
45010
45011 2007-07-22  Ben Pfaff  <blp@gnu.org>
45012
45013         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
45014         case.
45015         Suggested by Eric Blake.
45016
45017 2007-07-22  Ben Pfaff  <blp@gnu.org>
45018
45019         New module: popcount.
45020         * MODULES.html.sh: Add popcount.
45021         * modules/popcount: New file.
45022         * modules/popcount-tests: New file.
45023         * tests/test-popcount.c: New file.
45024         * lib/popcount.h: New file.
45025         * m4/popcount.m4: New file.
45026
45027 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45028
45029         * build-aux/announce-gen: Update to GPLv3.
45030
45031         * build-aux/config.guess: Update from config.
45032
45033 2007-07-21  Bruno Haible  <bruno@clisp.org>
45034
45035         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
45036         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
45037
45038 2007-07-20  Jim Meyering  <jim@meyering.net>
45039
45040         * check-module: Diagnose a self-dependency.
45041
45042 2007-07-19  Bruno Haible  <bruno@clisp.org>
45043
45044         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
45045         empty.
45046         Reported by Eric Blake.
45047
45048 2007-07-18  Bruno Haible  <bruno@clisp.org>
45049
45050         * gnulib-tool: New options --po-base, --po-domain.
45051         (func_usage): Document them.
45052         (pobase, po_domain): New variables.
45053         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
45054         DEFAULT_TEXT_DOMAIN.
45055         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
45056         (func_import): Consider pobase and po_domain. Create a po/ directory.
45057         (func_create_testdir): Set pobase and po_domain to empty.
45058         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
45059         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
45060
45061 2007-07-18  Bruno Haible  <bruno@clisp.org>
45062
45063         * gnulib-tool (func_get_automake_snippet): Synthesize also an
45064         EXTRA_DIST augmentation for files in build-aux/.
45065
45066 2007-07-16  Bruno Haible  <bruno@clisp.org>
45067
45068         * modules/lseek (License): Use the synonymous term "LGPLv2+".
45069         * modules/getdelim (License): Likewise.
45070
45071 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45072
45073         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
45074         * modules/d-type (License): Likewise.
45075         * modules/extensions (License): Likewise.
45076         * modules/fnmatch (License): Likewise.
45077         * modules/fseeko (License): Likewise.
45078         * modules/getaddrinfo (License): Likewise.
45079         * modules/getline (License): Likewise.
45080         * modules/getlogin_r (License): Likewise.
45081         * modules/getpass (License): Likewise.
45082         * modules/gettimeofday (License): Likewise.
45083         * modules/glob (License): Likewise.
45084         * modules/inet_ntop (License): Likewise.
45085         * modules/malloc (License): Likewise.
45086         * modules/malloca (License): Likewise.
45087         * modules/memmem (License): Likewise.
45088         * modules/mempcpy (License): Likewise.
45089         * modules/memset (License): Likewise.
45090         * modules/minmax (License): Likewise.
45091         * modules/mktime (License): Likewise.
45092         * modules/netinet_in (License): Likewise.
45093         * modules/pathmax (License): Likewise.
45094         * modules/poll (License): Likewise.
45095         * modules/regex (License): Likewise.
45096         * modules/snprintf (License): Likewise.
45097         * modules/stdbool (License): Likewise.
45098         * modules/stdint (License): Likewise.
45099         * modules/stdio (License): Likewise.
45100         * modules/strcase (License): Likewise.
45101         * modules/strcasestr (License): Likewise.
45102         * modules/strdup (License): Likewise.
45103         * modules/string (License): Likewise.
45104         * modules/strndup (License): Likewise.
45105         * modules/strnlen (License): Likewise.
45106         * modules/strpbrk (License): Likewise.
45107         * modules/strptime (License): Likewise.
45108         * modules/strsep (License): Likewise.
45109         * modules/sys_select (License): Likewise.
45110         * modules/sys_socket (License): Likewise.
45111         * modules/sys_stat (License): Likewise.
45112         * modules/sys_time (License): Likewise.
45113         * modules/time (License): Likewise.
45114         * modules/time_r (License): Likewise.
45115         * modules/timegm (License): Likewise.
45116         * modules/unistd (License): Likewise.
45117         * modules/vsnprintf (License): Likewise.
45118         * modules/wctype (License): Likewise.
45119
45120 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45121
45122         * modules/argz (License): LGPLv2+.
45123
45124 2007-07-15  Karl Berry  <karl@gnu.org>
45125
45126         * doc/gnulib.texi: revise node structure per new fdl.texi.
45127
45128 2007-07-14  Bruno Haible  <bruno@clisp.org>
45129
45130         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
45131         the output file.
45132         * lib/uniname/uninames.h: Regenerated.
45133
45134 2007-07-14  Karl Berry  <karl@gnu.org>
45135
45136         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
45137         omitting sectioning and index commands.
45138
45139 2007-07-13  Bruno Haible  <bruno@clisp.org>
45140
45141         New gnulib-tool option --more-symlinks.
45142         * gnulib-tool (func_usage): Document --more-symlinks.
45143         (do_copyrights): New variable.
45144         Recognize option --more-symlinks.
45145         (func_import): Don't add a copyright notice transform to
45146         sed_transform_lib_file if do_copyrights is empty.
45147
45148 2007-07-13  Bruno Haible  <bruno@clisp.org>
45149
45150         * lib/vasnprintf.c (decimal_point_char): Define also if
45151         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
45152         && !NEED_PRINTF_DIRECTIVE_A.
45153         Reported by Clemens Koller <clemens.koller@anagramm.de> via
45154         Gary V. Vaughan <gary@gnu.org>.
45155
45156 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
45157
45158         * lib/inttypes_.h: Undo previous change, since it was fixed
45159         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
45160
45161 2007-07-13  Bruno Haible  <bruno@clisp.org>
45162
45163         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
45164         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
45165
45166 2007-07-13  Jim Meyering  <jim@meyering.net>
45167
45168         df: Don't fail for Tru64's "file-on-file mount".
45169         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
45170         so we fall through and use statfs instead.  Details here:
45171         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
45172         Reported by Albert Chin.
45173
45174 2007-07-13  Bruno Haible  <bruno@clisp.org>
45175
45176         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
45177         * modules/configmake (License): Likewise.
45178         * modules/gettext (License): Likewise.
45179         * modules/gettext-h (License): Likewise.
45180         * modules/include_next (License): Likewise.
45181         * modules/link-warning (License): Likewise.
45182         * modules/localcharset (License): Likewise.
45183         * modules/localename (License): Likewise.
45184         * modules/lock (License): Likewise.
45185         * modules/relocatable-lib-lgpl (License): Likewise.
45186         * modules/size_max (License): Likewise.
45187         * modules/vasnprintf (License): Likewise.
45188         * modules/wchar (License): Likewise.
45189         * modules/xsize (License): Likewise.
45190
45191 2007-07-13  Bruno Haible  <bruno@clisp.org>
45192
45193         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
45194         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
45195
45196 2007-07-12  Bruno Haible  <bruno@clisp.org>
45197
45198         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
45199         in the modules files.
45200
45201 2007-07-11  Karl Berry  <karl@gnu.org>
45202
45203         * MODULES.html.sh (func_module): use
45204          sed -e '\|^'"${includefile}"'$|d'
45205          instead of /.../d, to avoid errors on $includefile's containing /.
45206
45207 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
45208
45209         * gnulib-tool (func_import): Avoid duplication of --avoid
45210         statements
45211         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
45212         names to `_' in variable names.
45213
45214 2007-07-10  Eric Blake  <ebb9@byu.net>
45215
45216         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
45217         * NEWS: Document this change.
45218
45219 2007-07-08  Bruno Haible  <bruno@clisp.org>
45220
45221         Update to Unicode 5.0.
45222         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
45223         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
45224         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
45225         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
45226         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
45227         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
45228         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
45229         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
45230         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
45231         U+10A3F, U+1D242..U+1D244.
45232         (nonspacing_table_ind): Update.
45233         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
45234         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
45235
45236 2007-07-08  Bruno Haible  <bruno@clisp.org>
45237
45238         Update to Unicode 5.0.
45239         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
45240         code transform. Extend the name index field of unicode_name_to_code and
45241         unicode_code_to_name from 16 to 24 bits.
45242         * lib/uniname/uniname.c (unicode_character_name,
45243         unicode_name_character): Add the range 0x12xxx to the code transform.
45244         * lib/uniname/uninames.h: Regenerated.
45245         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
45246
45247 2007-07-07  Bruno Haible  <bruno@clisp.org>
45248
45249         * modules/wcwidth-tests: New file.
45250         * tests/test-wcwidth.c: New file.
45251
45252         Work around MacOS X wcwidth() bug.
45253         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
45254         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
45255         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
45256         original wcwidth in non-UTF-8 locales.
45257         * modules/wcwidth (Depends-on): Add localcharset, streq,
45258         uniwidth/width.
45259         * doc/functions/wcwidth.texi: Update.
45260
45261 2007-07-07  Bruno Haible  <bruno@clisp.org>
45262
45263         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
45264         (wcwidth): New declaration.
45265         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
45266         macros.
45267         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
45268         here. Prepare for creating <wchar.h> unconditionally.
45269         * modules/wchar (Depends-on): Add link-warning.
45270         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
45271         REPLACE_WCWIDTH, and GL_LINK_WARNING.
45272         * lib/wcwidth.h: Remove file.
45273         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
45274         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
45275         * modules/wcwidth (Files): Remove lib/wcwidth.h.
45276         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
45277         (Include): Replace wcwidth.h with <wchar.h>.
45278         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
45279         * lib/mbchar.h: Don't include wcwidth.h.
45280         * lib/mbswidth.c: Likewise.
45281         * NEWS: Mention the change.
45282
45283 2007-07-07  Bruno Haible  <bruno@clisp.org>
45284
45285         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
45286         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
45287         definition with an external declaration.
45288         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
45289         defined as a function. Remove AC_C_INLINE requirement.
45290         * modules/wcwidth (Files): Add lib/wcwidth.c.
45291         (Makefile.am): Remove redundant statement.
45292
45293 2007-07-07  Bruno Haible  <bruno@clisp.org>
45294
45295         * MODULES.html.sh (Unicode string functions): Add the new modules.
45296
45297         * tests/uniwidth/test-u32-strwidth.c: New file.
45298         * modules/uniwidth/u32-strwidth-tests: New file.
45299
45300         * lib/uniwidth/u32-strwidth.c: New file.
45301         * modules/uniwidth/u32-strwidth: New file.
45302
45303         * tests/uniwidth/test-u16-strwidth.c: New file.
45304         * modules/uniwidth/u16-strwidth-tests: New file.
45305
45306         * lib/uniwidth/u16-strwidth.c: New file.
45307         * modules/uniwidth/u16-strwidth: New file.
45308
45309         * tests/uniwidth/test-u8-strwidth.c: New file.
45310         * modules/uniwidth/u8-strwidth-tests: New file.
45311
45312         * lib/uniwidth/u8-strwidth.c: New file.
45313         * modules/uniwidth/u8-strwidth: New file.
45314
45315         * tests/uniwidth/test-u32-width.c: New file.
45316         * modules/uniwidth/u32-width-tests: New file.
45317
45318         * lib/uniwidth/u32-width.c: New file.
45319         * modules/uniwidth/u32-width: New file.
45320
45321         * tests/uniwidth/test-u16-width.c: New file.
45322         * modules/uniwidth/u16-width-tests: New file.
45323
45324         * lib/uniwidth/u16-width.c: New file.
45325         * modules/uniwidth/u16-width: New file.
45326
45327         * tests/uniwidth/test-u8-width.c: New file.
45328         * modules/uniwidth/u8-width-tests: New file.
45329
45330         * lib/uniwidth/u8-width.c: New file.
45331         * modules/uniwidth/u8-width: New file.
45332
45333         * tests/uniwidth/test-uc_width.c: New file.
45334         * modules/uniwidth/width-tests: New file.
45335
45336         * lib/uniwidth/width.c: New file, from GNU libiconv.
45337         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
45338         * modules/uniwidth/width: New file.
45339
45340         * lib/uniwidth.h: New file, from GNU libiconv.
45341         * modules/uniwidth/base: New file.
45342
45343 2007-07-07  Bruno Haible  <bruno@clisp.org>
45344
45345         * lib/uniname.h: New file, from GNU gettext.
45346         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
45347         * lib/uniname/uninames.h: New file, from GNU gettext.
45348         * lib/uniname/uniname.c: New file, from GNU gettext.
45349         * tests/uniname/test-uninames.sh: New file.
45350         * tests/uniname/test-uninames.c: New file, from GNU gettext.
45351         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
45352         * modules/uniname/base: New file.
45353         * modules/uniname/uniname: New file.
45354         * modules/uniname/uniname-tests: New file.
45355         * MODULES.html.sh (Unicode string functions): Add the new modules.
45356
45357 2007-07-06  Bruno Haible  <bruno@clisp.org>
45358
45359         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
45360
45361 2007-07-06  Bruno Haible  <bruno@clisp.org>
45362
45363         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
45364         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
45365         includes <cygwin/sys_time.h> which includes <sys/select.h> which
45366         include <sys/time.h>.
45367         Reported by Eric Blake.
45368
45369 2007-07-06  Eric Blake  <ebb9@byu.net>
45370
45371         Fix testing canonicalize on cygwin.
45372         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
45373         Revert patch from 2007-06-19.
45374         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
45375         canonicalize module is also in use.
45376         * tests/test-canonicalize.c: New file.
45377         * tests/test-canonicalize.sh: Likewise.
45378         * modules/canonicalize-tests: Likewise.
45379
45380 2007-07-06  Jim Meyering  <jim@meyering.net>
45381
45382         * lib/getugroups.c (getugroups): Detect getgrent failure.
45383         Adjust comment to reflect reality: this function may return -1.
45384
45385 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
45386
45387         * build-aux/bootstrap (TP_URL,get_translations): Update to use
45388         the new TP address.
45389         (usage): Fix typo
45390         (gnulib_mk): New variable.
45391
45392 2007-07-05  Jim Meyering  <jim@meyering.net>
45393
45394         Don't let endgrent clobber errno, no matter how improbable.
45395         * lib/getugroups.c (getugroups): Save and restore errno around
45396         endgrent call.
45397
45398         Close the group DB even when failing with 2^31 or more members.
45399         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
45400
45401 2007-07-04  Jim Meyering  <jim@meyering.net>
45402
45403         * lib/getugroups.h: New file.
45404         * lib/getugroups.c: Include "getugroups.h".
45405         Remove uses of "register" keyword.
45406         Move local variable, "cp", down into scope where used.
45407         Give "username" parameter the "const" attribute.
45408         * modules/getugroups (Files): Add lib/getugroups.h
45409
45410 2007-07-04  Karl Berry  <karl@gnu.org>
45411
45412         * MODULES.html.sh (func_all_modules): Complete rename of
45413         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
45414
45415 2007-07-02  Bruno Haible  <bruno@clisp.org>
45416
45417         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
45418         mode, when inttypes.h comes from gnulib.
45419         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45420
45421 2007-07-02  Simon Josefsson  <simon@josefsson.org>
45422
45423         * NEWS: Mention lgpl module name change.
45424
45425         * modules/lgpl-2.1: Renamed from lgpl.
45426
45427         * NEWS: Mention gpl module name change.
45428
45429         * modules/gpl-3.0: New file, based on gpl-2.0.
45430
45431         * modules/gpl-2.0: Renamed from gpl.
45432
45433         * modules/gpl: Fix filename, doc/gpl.texi is now found at
45434         doc/gpl-2.0.texi.
45435
45436 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45437
45438         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
45439         #define __STDC_LIMIT_MACROS temporarily while including
45440         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
45441         Problem reported by Joel E. Denny in
45442         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
45443
45444 2007-07-01  Bruno Haible  <bruno@clisp.org>
45445
45446         * lib/unistdio.h: New file.
45447         * lib/unistdio/u-asnprintf.h: New file.
45448         * lib/unistdio/u-asprintf.h: New file.
45449         * lib/unistdio/u-printf-args.c: New file.
45450         * lib/unistdio/u-printf-args.h: New file.
45451         * lib/unistdio/u-printf-parse.h: New file.
45452         * lib/unistdio/u-snprintf.h: New file.
45453         * lib/unistdio/u-sprintf.h: New file.
45454         * lib/unistdio/u-vasprintf.h: New file.
45455         * lib/unistdio/u-vsnprintf.h: New file.
45456         * lib/unistdio/u-vsprintf.h: New file.
45457         * lib/unistdio/ulc-asnprintf.c: New file.
45458         * lib/unistdio/ulc-asprintf.c: New file.
45459         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
45460         * lib/unistdio/ulc-printf-parse.c: New file.
45461         * lib/unistdio/ulc-snprintf.c: New file.
45462         * lib/unistdio/ulc-sprintf.c: New file.
45463         * lib/unistdio/ulc-vasnprintf.c: New file.
45464         * lib/unistdio/ulc-vasprintf.c: New file.
45465         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
45466         * lib/unistdio/ulc-vsnprintf.c: New file.
45467         * lib/unistdio/ulc-vsprintf.c: New file.
45468         * lib/unistdio/u8-asnprintf.c: New file.
45469         * lib/unistdio/u8-asprintf.c: New file.
45470         * lib/unistdio/u8-printf-parse.c: New file.
45471         * lib/unistdio/u8-snprintf.c: New file.
45472         * lib/unistdio/u8-sprintf.c: New file.
45473         * lib/unistdio/u8-vasnprintf.c: New file.
45474         * lib/unistdio/u8-vasprintf.c: New file.
45475         * lib/unistdio/u8-vsnprintf.c: New file.
45476         * lib/unistdio/u8-vsprintf.c: New file.
45477         * lib/unistdio/u8-u8-asnprintf.c: New file.
45478         * lib/unistdio/u8-u8-asprintf.c: New file.
45479         * lib/unistdio/u8-u8-snprintf.c: New file.
45480         * lib/unistdio/u8-u8-sprintf.c: New file.
45481         * lib/unistdio/u8-u8-vasnprintf.c: New file.
45482         * lib/unistdio/u8-u8-vasprintf.c: New file.
45483         * lib/unistdio/u8-u8-vsnprintf.c: New file.
45484         * lib/unistdio/u8-u8-vsprintf.c: New file.
45485         * lib/unistdio/u16-asnprintf.c: New file.
45486         * lib/unistdio/u16-asprintf.c: New file.
45487         * lib/unistdio/u16-printf-parse.c: New file.
45488         * lib/unistdio/u16-snprintf.c: New file.
45489         * lib/unistdio/u16-sprintf.c: New file.
45490         * lib/unistdio/u16-vasnprintf.c: New file.
45491         * lib/unistdio/u16-vasprintf.c: New file.
45492         * lib/unistdio/u16-vsnprintf.c: New file.
45493         * lib/unistdio/u16-vsprintf.c: New file.
45494         * lib/unistdio/u16-u16-asnprintf.c: New file.
45495         * lib/unistdio/u16-u16-asprintf.c: New file.
45496         * lib/unistdio/u16-u16-snprintf.c: New file.
45497         * lib/unistdio/u16-u16-sprintf.c: New file.
45498         * lib/unistdio/u16-u16-vasnprintf.c: New file.
45499         * lib/unistdio/u16-u16-vasprintf.c: New file.
45500         * lib/unistdio/u16-u16-vsnprintf.c: New file.
45501         * lib/unistdio/u16-u16-vsprintf.c: New file.
45502         * lib/unistdio/u32-asnprintf.c: New file.
45503         * lib/unistdio/u32-asprintf.c: New file.
45504         * lib/unistdio/u32-printf-parse.c: New file.
45505         * lib/unistdio/u32-snprintf.c: New file.
45506         * lib/unistdio/u32-sprintf.c: New file.
45507         * lib/unistdio/u32-vasnprintf.c: New file.
45508         * lib/unistdio/u32-vasprintf.c: New file.
45509         * lib/unistdio/u32-vsnprintf.c: New file.
45510         * lib/unistdio/u32-vsprintf.c: New file.
45511         * lib/unistdio/u32-u32-asnprintf.c: New file.
45512         * lib/unistdio/u32-u32-asprintf.c: New file.
45513         * lib/unistdio/u32-u32-snprintf.c: New file.
45514         * lib/unistdio/u32-u32-sprintf.c: New file.
45515         * lib/unistdio/u32-u32-vasnprintf.c: New file.
45516         * lib/unistdio/u32-u32-vasprintf.c: New file.
45517         * lib/unistdio/u32-u32-vsnprintf.c: New file.
45518         * lib/unistdio/u32-u32-vsprintf.c: New file.
45519         * tests/unistdio/test-ulc-asnprintf1.c: New file.
45520         * tests/unistdio/test-ulc-asnprintf1.h: New file.
45521         * tests/unistdio/test-ulc-printf1.h: New file.
45522         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
45523         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
45524         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
45525         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
45526         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
45527         * tests/unistdio/test-ulc-vasprintf1.c: New file.
45528         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
45529         * tests/unistdio/test-ulc-vsprintf1.c: New file.
45530         * tests/unistdio/test-u8-asnprintf1.c: New file.
45531         * tests/unistdio/test-u8-asnprintf1.h: New file.
45532         * tests/unistdio/test-u8-printf1.h: New file.
45533         * tests/unistdio/test-u8-vasnprintf1.c: New file.
45534         * tests/unistdio/test-u8-vasnprintf2.c: New file.
45535         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
45536         * tests/unistdio/test-u8-vasnprintf3.c: New file.
45537         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
45538         * tests/unistdio/test-u8-vasprintf1.c: New file.
45539         * tests/unistdio/test-u8-vsnprintf1.c: New file.
45540         * tests/unistdio/test-u8-vsprintf1.c: New file.
45541         * tests/unistdio/test-u16-asnprintf1.c: New file.
45542         * tests/unistdio/test-u16-asnprintf1.h: New file.
45543         * tests/unistdio/test-u16-printf1.h: New file.
45544         * tests/unistdio/test-u16-vasnprintf1.c: New file.
45545         * tests/unistdio/test-u16-vasnprintf2.c: New file.
45546         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
45547         * tests/unistdio/test-u16-vasnprintf3.c: New file.
45548         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
45549         * tests/unistdio/test-u16-vasprintf1.c: New file.
45550         * tests/unistdio/test-u16-vsnprintf1.c: New file.
45551         * tests/unistdio/test-u16-vsprintf1.c: New file.
45552         * tests/unistdio/test-u32-asnprintf1.c: New file.
45553         * tests/unistdio/test-u32-asnprintf1.h: New file.
45554         * tests/unistdio/test-u32-printf1.h: New file.
45555         * tests/unistdio/test-u32-vasnprintf1.c: New file.
45556         * tests/unistdio/test-u32-vasnprintf2.c: New file.
45557         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
45558         * tests/unistdio/test-u32-vasnprintf3.c: New file.
45559         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
45560         * tests/unistdio/test-u32-vasprintf1.c: New file.
45561         * tests/unistdio/test-u32-vsnprintf1.c: New file.
45562         * tests/unistdio/test-u32-vsprintf1.c: New file.
45563         * modules/unistdio/base: New file.
45564         * modules/unistdio/u-printf-args: New file.
45565         * modules/unistdio/ulc-asnprintf: New file.
45566         * modules/unistdio/ulc-asprintf: New file.
45567         * modules/unistdio/ulc-fprintf: New file.
45568         * modules/unistdio/ulc-printf-parse: New file.
45569         * modules/unistdio/ulc-snprintf: New file.
45570         * modules/unistdio/ulc-sprintf: New file.
45571         * modules/unistdio/ulc-vasnprintf: New file.
45572         * modules/unistdio/ulc-vasprintf: New file.
45573         * modules/unistdio/ulc-vfprintf: New file.
45574         * modules/unistdio/ulc-vsnprintf: New file.
45575         * modules/unistdio/ulc-vsprintf: New file.
45576         * modules/unistdio/u8-asnprintf: New file.
45577         * modules/unistdio/u8-asprintf: New file.
45578         * modules/unistdio/u8-printf-parse: New file.
45579         * modules/unistdio/u8-snprintf: New file.
45580         * modules/unistdio/u8-sprintf: New file.
45581         * modules/unistdio/u8-vasnprintf: New file.
45582         * modules/unistdio/u8-vasprintf: New file.
45583         * modules/unistdio/u8-vsnprintf: New file.
45584         * modules/unistdio/u8-vsprintf: New file.
45585         * modules/unistdio/u8-u8-asnprintf: New file.
45586         * modules/unistdio/u8-u8-asprintf: New file.
45587         * modules/unistdio/u8-u8-snprintf: New file.
45588         * modules/unistdio/u8-u8-sprintf: New file.
45589         * modules/unistdio/u8-u8-vasnprintf: New file.
45590         * modules/unistdio/u8-u8-vasprintf: New file.
45591         * modules/unistdio/u8-u8-vsnprintf: New file.
45592         * modules/unistdio/u8-u8-vsprintf: New file.
45593         * modules/unistdio/u16-asnprintf: New file.
45594         * modules/unistdio/u16-asprintf: New file.
45595         * modules/unistdio/u16-printf-parse: New file.
45596         * modules/unistdio/u16-snprintf: New file.
45597         * modules/unistdio/u16-sprintf: New file.
45598         * modules/unistdio/u16-vasnprintf: New file.
45599         * modules/unistdio/u16-vasprintf: New file.
45600         * modules/unistdio/u16-vsnprintf: New file.
45601         * modules/unistdio/u16-vsprintf: New file.
45602         * modules/unistdio/u16-u16-asnprintf: New file.
45603         * modules/unistdio/u16-u16-asprintf: New file.
45604         * modules/unistdio/u16-u16-snprintf: New file.
45605         * modules/unistdio/u16-u16-sprintf: New file.
45606         * modules/unistdio/u16-u16-vasnprintf: New file.
45607         * modules/unistdio/u16-u16-vasprintf: New file.
45608         * modules/unistdio/u16-u16-vsnprintf: New file.
45609         * modules/unistdio/u16-u16-vsprintf: New file.
45610         * modules/unistdio/u32-asnprintf: New file.
45611         * modules/unistdio/u32-asprintf: New file.
45612         * modules/unistdio/u32-printf-parse: New file.
45613         * modules/unistdio/u32-snprintf: New file.
45614         * modules/unistdio/u32-sprintf: New file.
45615         * modules/unistdio/u32-vasnprintf: New file.
45616         * modules/unistdio/u32-vasprintf: New file.
45617         * modules/unistdio/u32-vsnprintf: New file.
45618         * modules/unistdio/u32-vsprintf: New file.
45619         * modules/unistdio/u32-u32-asnprintf: New file.
45620         * modules/unistdio/u32-u32-asprintf: New file.
45621         * modules/unistdio/u32-u32-snprintf: New file.
45622         * modules/unistdio/u32-u32-sprintf: New file.
45623         * modules/unistdio/u32-u32-vasnprintf: New file.
45624         * modules/unistdio/u32-u32-vasprintf: New file.
45625         * modules/unistdio/u32-u32-vsnprintf: New file.
45626         * modules/unistdio/u32-u32-vsprintf: New file.
45627         * modules/unistdio/ulc-asnprintf-tests: New file.
45628         * modules/unistdio/ulc-vasnprintf-tests: New file.
45629         * modules/unistdio/ulc-vasprintf-tests: New file.
45630         * modules/unistdio/ulc-vsnprintf-tests: New file.
45631         * modules/unistdio/ulc-vsprintf-tests: New file.
45632         * modules/unistdio/u8-asnprintf-tests: New file.
45633         * modules/unistdio/u8-vasnprintf-tests: New file.
45634         * modules/unistdio/u8-vasprintf-tests: New file.
45635         * modules/unistdio/u8-vsnprintf-tests: New file.
45636         * modules/unistdio/u8-vsprintf-tests: New file.
45637         * modules/unistdio/u16-asnprintf-tests: New file.
45638         * modules/unistdio/u16-vasnprintf-tests: New file.
45639         * modules/unistdio/u16-vasprintf-tests: New file.
45640         * modules/unistdio/u16-vsnprintf-tests: New file.
45641         * modules/unistdio/u16-vsprintf-tests: New file.
45642         * modules/unistdio/u32-asnprintf-tests: New file.
45643         * modules/unistdio/u32-vasnprintf-tests: New file.
45644         * modules/unistdio/u32-vasprintf-tests: New file.
45645         * modules/unistdio/u32-vsnprintf-tests: New file.
45646         * modules/unistdio/u32-vsprintf-tests: New file.
45647         * MODULES.html.sh (Unicode string functions): Add the new modules.
45648
45649 2007-07-01  Bruno Haible  <bruno@clisp.org>
45650
45651         * lib/sprintf.c (sprintf): Limit the available length estimation,
45652         to avoid address wraparound.
45653         * lib/vsprintf.c (vsprintf): Likewise.
45654         * modules/sprintf-posix (Dependencies): Add stdint.
45655         * modules/vsprintf-posix (Dependencies): Likewise.
45656
45657 2007-07-01  Bruno Haible  <bruno@clisp.org>
45658
45659         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
45660         Windows PATH as well. Conservative double-quoting. Comments.
45661
45662 2007-07-01  Bruno Haible  <bruno@clisp.org>
45663             Eric Blake  <ebb9@byu.net>
45664             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45665
45666         * gnulib-tool (self_abspathname): Fix algorithm to cope with
45667         empty components in $PATH, denoting '.'.
45668
45669 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45670
45671         * gnulib-tool: Fix indentation.
45672         (func_create_megatestdir): Likewise.
45673         Report by Bruno Haible.
45674
45675 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45676
45677         Sync from Automake.
45678         * build-aux/gnupload: Fix shell portability issues with for loops.
45679         Report by Karl Berry.
45680
45681 2007-06-29  Simon Josefsson  <simon@josefsson.org>
45682
45683         * build-aux/maint.mk (POURL): Use translationproject.org.
45684
45685 2007-06-27  Simon Josefsson  <simon@josefsson.org>
45686             Bruno Haible  <bruno@clisp.org>
45687
45688         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
45689         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
45690         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
45691         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
45692         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
45693
45694 2007-06-27  Bruno Haible  <bruno@clisp.org>
45695
45696         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
45697         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
45698
45699 2007-06-26  Karl Berry  <karl@gnu.org>
45700
45701         * MODULES.html.sh: remove xreadlink-with-size.
45702
45703 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
45704
45705         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
45706         method that I hope also handles the double-include problem noted
45707         by Bruno Haible in
45708         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
45709
45710 2007-06-23  Bruno Haible  <bruno@clisp.org>
45711
45712         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45713         Don't let the 'mostlyclean' target fail if the last subdirectory could
45714         not be removed.
45715         Reported by Karl Berry.
45716
45717 2007-06-23  Bruno Haible  <bruno@clisp.org>
45718
45719         * gnulib-tool (echo): Add a speedier workaround for ksh.
45720         * tests/test-echo.sh: Likewise.
45721
45722 2007-06-23  Bruno Haible  <bruno@clisp.org>
45723
45724         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
45725         * tests/test-echo.sh: Likewise.
45726
45727 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45728
45729         * gnulib-tool (IFS): Initialize early, so we don't set it to
45730         empty later.
45731         (self_abspathname): Rewrite algorithm to set it, reindent.
45732         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
45733         (func_create_megatestdir): Merge some sed scripts.
45734
45735 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
45736
45737         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
45738         exposed by Sun Studio 11 cc on Solaris 8.
45739
45740 2007-06-22  Bruno Haible  <bruno@clisp.org>
45741
45742         * gnulib-tool (echo): Ensure the echo primitive does not interpret
45743         backslashes.
45744         * tests/test-echo.sh: New file.
45745
45746 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45747
45748         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
45749         simplify `sed_replace_build_aux' scripts, they are portable but
45750         echoing them with `echo' is not.
45751         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
45752
45753 2007-06-21  Karl Berry  <karl@gnu.org>
45754
45755         * config/srclist.txt: guess we can't handle the licenses via
45756         srclist at the moment.
45757
45758 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
45759
45760         * MODULES.html.sh: Add include_next.
45761         * modules/include_next: New file.
45762
45763 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
45764
45765         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
45766         INCLUDE_NEXT.
45767         (gl_CHECK_NEXT_HEADERS): New macro.
45768         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
45769         the obsolescent gl_ABSOLUTE_HEADER.
45770         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
45771         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
45772         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
45773         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
45774         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
45775         * m4/math_h.m4 (gl_MATH_H): Likewise.
45776         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
45777         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
45778         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
45779         * m4/stdint.m4 (gl_STDINT_H): Likewise.
45780         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
45781         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
45782         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
45783         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45784         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
45785         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
45786         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
45787         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
45788         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
45789         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
45790         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45791         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45792         * m4/inttypes.m4 (gl_INTTYPES_H): Define
45793         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
45794         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
45795         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
45796         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
45797         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
45798         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
45799         * lib/float_.h: Likewise.
45800         * lib/inttypes_.h: Likewise.
45801         * lib/math_.h: Likewise.
45802         * lib/search_.h: Likewise.
45803         * lib/signal_.h: Likewise.
45804         * lib/stdint_.h: Likewise.
45805         * lib/stdio_.h: Likewise.
45806         * lib/stdlib_.h: Likewise.
45807         * lib/string_.h: Likewise.
45808         * lib/sys_stat_.h: Likewise.
45809         * lib/sys_time_.h: Likewise.
45810         * lib/time_.h: Likewise.
45811         * lib/unistd_.h: Likewise.
45812         * lib/wchar_.h: Likewise.
45813         * lib/wctype_.h: Likewise.
45814         * lib/dirent_.h: Likewise.
45815         * lib/iconv_.h: Likewise.
45816         * lib/locale_.h: Likewise.
45817         * lib/netinet_in_.h: Likewise.
45818         * lib/sys_select_.h: Likewise.
45819         * lib/sys_socket_.h: Likewise.
45820         * lib/sysexits_.h: Likewise.
45821         * modules/fcntl (Depends-on): Depend on include_next, not
45822         absolute_header.
45823         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
45824         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
45825         * modules/fchdir: Likewise.
45826         * modules/float: Likewise.
45827         * modules/iconv_open: Likewise.
45828         * modules/inttypes: Likewise.
45829         * modules/locale: Likewise.
45830         * modules/math: Likewise.
45831         * modules/netinet_in: Likewise.
45832         * modules/search: Likewise.
45833         * modules/signal: Likewise.
45834         * modules/stdint: Likewise.
45835         * modules/stdio: Likewise.
45836         * modules/stdlib: Likewise.
45837         * modules/string: Likewise.
45838         * modules/sys_select: Likewise.
45839         * modules/sys_socket: Likewise.
45840         * modules/sys_stat: Likewise.
45841         * modules/sys_time: Likewise.
45842         * modules/sysexits: Likewise.
45843         * modules/time: Likewise.
45844         * modules/unistd: Likewise.
45845         * modules/wchar: Likewise.
45846         * modules/wctype: Likewise.
45847         * modules/sys_stat: Change maintainer to "all".
45848         * modules/unistd: Likewise.
45849
45850 2007-06-20  Karl Berry  <karl@gnu.org>
45851
45852         * config/srclist.txt: track www changes in license files.
45853
45854 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
45855
45856         * build-aux/bootstrap: Remove stray dot.
45857         Make sure build_aux settings are honored when linking
45858         gnulib_extra_files.
45859
45860 2007-06-19  Eric Blake  <ebb9@byu.net>
45861
45862         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
45863         Allow compilation on cygwin.
45864
45865 2007-06-19  Jim Meyering  <jim@meyering.net>
45866
45867         xreadlink-with-size: Remove module.  No longer used.
45868         Ex-callers now use xreadlink or mreadlink-with-size.
45869         * modules/xreadlink-with-size: Remove module.
45870         * lib/xreadlink-with-size.c: Remove file.
45871         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
45872         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
45873         just before the function definition *is* accurate.
45874
45875         Eliminate one way canonicalize_filename_mode could exit.
45876         * lib/canonicalize.c (canonicalize_filename_mode):
45877         Use mreadlink_with_size, not xreadlink_with_size.
45878
45879 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
45880
45881         Detect porting problems to FreeBSD/arm, which has time_t wider than
45882         long int.  Original problem reported for GNU diff by Xin Li in
45883         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
45884         * modules/getdate (Depends-on): Add intprops, verify.
45885         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
45886         is an integer type no wider than long int.
45887
45888 2007-06-18  Jim Meyering  <jim@meyering.net>
45889
45890         New module: mreadlink-with-size.
45891         * MODULES.html.sh: Add mreadlink-with-size.
45892         * modules/mreadlink-with-size: New module
45893         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
45894         not xreadlink-with-size.
45895         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
45896
45897 2007-06-16  Bruno Haible  <bruno@clisp.org>
45898
45899         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
45900         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
45901         Reported by Gary V. Vaughan <gary@gnu.org>.
45902
45903 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
45904
45905         Revamp lchown so that it lives in unistd.h where it belongs.
45906         * lib/lchown.h: Remove.
45907         * lib/dirchownmod.c: Don't include lib/lchown.h.
45908         * lib/fchownat.c: Likewise.
45909         * lib/openat.c: Likewise.
45910         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
45911         does not follow symlinks.
45912         (EOPNOTSUPP): Define if not defined.
45913         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
45914         is defined to 0.
45915         (lchown): New decl.
45916         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
45917         Do not check for lchown decl.
45918         Set REPLACE_LCHOWN.
45919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
45920         REPLACE_LCHOWN.
45921         * modules/chown: Make it clear it follows symlinks.
45922         * modules/lchown: Make it clear it doesn't follow symlinks.
45923         (Files): Remove lib/lchown.h
45924         (Depends-on): Add unistd.
45925         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
45926         (Include): Include <unistd.h>, not "lchown.h".
45927         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
45928         REPLACE_LCHOWN.
45929
45930 2007-06-15  Jim Meyering  <jim@meyering.net>
45931
45932         Change license (GPL to LGPL) of fsusage and dependents.
45933         * modules/fsusage (License): Change to LGPL.
45934         * modules/full-read (License): Likewise.
45935         * modules/full-write (License): Likewise.
45936         * modules/safe-read (License): Likewise.
45937         * modules/safe-write (License): Likewise.
45938
45939 2007-06-14  Ben Pfaff  <blp@gnu.org>
45940
45941         Missing part of allocsa -> malloca transition.
45942         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
45943         gl_MALLOCA.
45944
45945 2007-06-12  Bruno Haible  <bruno@clisp.org>
45946
45947         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
45948         to ia64, x86_64, i386.
45949         Reported by Eric Blake.
45950
45951 2007-06-12  Bruno Haible  <bruno@clisp.org>
45952
45953         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
45954         cross-compiling to x86_64.
45955
45956 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
45957
45958         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
45959         glitch reported by Ralf Wildenhues in
45960         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
45961
45962         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
45963         Vin Shelton.
45964
45965 2007-06-11  Bruno Haible  <bruno@clisp.org>
45966
45967         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
45968         replacement string.
45969         Reported by Eric Blake.
45970
45971 2007-06-10  Bruno Haible  <bruno@clisp.org>
45972
45973         Prepare vasnprintf code for use with Unicode strings.
45974         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
45975         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
45976         TYPE_U32_STRING.
45977         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
45978         a_u32_string variants.
45979         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
45980         * lib/printf-args.c: Don't include config.h and the specification
45981         header if PRINTF_FETCHARGS is already defined.
45982         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
45983         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
45984         TYPE_U16_STRING, TYPE_U32_STRING.
45985         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
45986         u16_directive, u16_directives, u32_directive, u32_directives): New
45987         types.
45988         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
45989         New declarations.
45990         * lib/printf-parse.c: Don't include config.h and the specification
45991         header if PRINTF_PARSE is already defined. Eliminate the set of
45992         parameters for WIDE_CHAR_VERSION; the user of this file must provide
45993         them now. Include c-ctype.h.
45994         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
45995         directive and CHAR_T_ONLY_ASCII.
45996         * lib/vasnprintf.c: Don't include config.h and the specification header
45997         if VASNPRINTF is already defined.
45998         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
45999         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
46000         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
46001         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
46002         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
46003         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
46004         code accordingly.
46005         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
46006         pad_ourselves also in this case, with the 'c' and 's' directives, and
46007         with a different notion of "width".
46008         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
46009
46010 2007-06-10  Bruno Haible  <bruno@clisp.org>
46011
46012         * modules/unistr/u32-mbsnlen: New file.
46013         * lib/unistr/u32-mbsnlen.c: New file.
46014
46015         * modules/unistr/u16-mbsnlen: New file.
46016         * lib/unistr/u16-mbsnlen.c: New file.
46017
46018         * modules/unistr/u8-mbsnlen: New file.
46019         * lib/unistr/u8-mbsnlen.c: New file.
46020
46021         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
46022         declarations.
46023
46024 2007-06-10  Bruno Haible  <bruno@clisp.org>
46025
46026         * lib/string_.h (mbsnlen): New declaration.
46027         * lib/mbsnlen.c: New file.
46028         * m4/mbsnlen.m4: New file.
46029         * modules/mbsnlen: New file.
46030         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
46031         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
46032         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
46033
46034 2007-06-10  Bruno Haible  <bruno@clisp.org>
46035
46036         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
46037
46038 2007-06-10  Bruno Haible  <bruno@clisp.org>
46039
46040         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
46041         * lib/mbuiter.h: Likewise.
46042
46043 2007-06-10  Bruno Haible  <bruno@clisp.org>
46044
46045         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
46046         declaration.
46047
46048 2007-06-10  Karl Berry  <karl@gnu.org>
46049
46050         * config/srclist.txt: remove gettext entries, Bruno prefers
46051         to update individually.
46052
46053 2007-06-10  Bruno Haible  <bruno@clisp.org>
46054
46055         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
46056         'maxlen'. Ensure only length + width bytes are allocated, not
46057         length + 1 + width.
46058
46059 2007-06-09  Bruno Haible  <bruno@clisp.org>
46060
46061         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
46062         (CHAR_T): Remove macro.
46063         (VASNPRINTF): Update.
46064
46065 2007-06-09  Bruno Haible  <bruno@clisp.org>
46066
46067         * MODULES.html.sh (Unicode string functions): Add the new modules.
46068
46069         * modules/uniconv/u32-conv-to-enc: New file.
46070         * lib/uniconv/u32-conv-to-enc.c: New file.
46071         * modules/uniconv/u32-conv-to-enc-tests: New file.
46072         * tests/uniconv/test-u32-conv-to-enc.c: New file.
46073
46074         * modules/uniconv/u16-conv-to-enc: New file.
46075         * lib/uniconv/u16-conv-to-enc.c: New file.
46076         * lib/uniconv/u-conv-to-enc.h: New file.
46077         * modules/uniconv/u16-conv-to-enc-tests: New file.
46078         * tests/uniconv/test-u16-conv-to-enc.c: New file.
46079
46080         * modules/uniconv/u8-conv-to-enc: New file.
46081         * lib/uniconv/u8-conv-to-enc.c: New file.
46082         * modules/uniconv/u8-conv-to-enc-tests: New file.
46083         * tests/uniconv/test-u8-conv-to-enc.c: New file.
46084
46085         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
46086         u32_conv_to_encoding): New declarations.
46087
46088 2007-06-09  Bruno Haible  <bruno@clisp.org>
46089
46090         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
46091
46092 2007-06-09  Bruno Haible  <bruno@clisp.org>
46093
46094         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
46095         * modules/malloca: Renamed from modules/allocsa, updated.
46096         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
46097         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
46098         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
46099         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
46100         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
46101         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
46102         * modules/xmalloca: Renamed from modules/xallocsa, updated.
46103         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
46104         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
46105         * modules/c-strcasestr (Depends-on): Update.
46106         * lib/c-strcasestr.c: Update.
46107         * modules/c-strstr (Depends-on): Update.
46108         * lib/c-strstr.c: Update.
46109         * modules/canonicalize-lgpl (Depends-on): Update.
46110         * lib/canonicalize-lgpl.c: Update.
46111         * modules/clean-temp (Depends-on): Update.
46112         * lib/clean-temp.c: Update.
46113         * modules/csharpcomp (Depends-on): Update.
46114         * lib/csharpcomp.c: Update.
46115         * modules/csharpexec (Depends-on): Update.
46116         * lib/csharpexec.c: Update.
46117         * modules/javacomp (Depends-on): Update.
46118         * lib/javacomp.c: Update.
46119         * modules/javaexec (Depends-on): Update.
46120         * lib/javaexec.c: Update.
46121         * modules/mbscasestr (Depends-on): Update.
46122         * lib/mbscasestr.c: Update.
46123         * modules/mbsstr (Depends-on): Update.
46124         * lib/mbsstr.c: Update.
46125         * modules/setenv (Depends-on): Update.
46126         * lib/setenv.c: Update.
46127         * modules/strcasestr (Depends-on): Update.
46128         * lib/strcasestr.c: Update.
46129         * modules/striconveha (Depends-on): Update.
46130         * lib/striconveha.c: Update.
46131         * modules/relocatable-prog-wrapper (Files): Update.
46132         * lib/relocwrapper.c: Update.
46133         * build-aux/install-reloc: Update.
46134         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
46135
46136 2007-06-08  Bruno Haible  <bruno@clisp.org>
46137
46138         Port to uClibc.
46139         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
46140         * lib/fpurge.c (fpurge): Likewise.
46141         * lib/freading.c (freading): Likewise.
46142         * lib/fseeko.c (rpl_fseeko): Likewise.
46143         * lib/fseterr.c (fseterr): Likewise.
46144         * lib/fwriting.c (fwriting): Likewise.
46145         * tests/test-fflush.c (main): Avoid a failure on uClibc.
46146
46147 2007-06-08  Bruno Haible  <bruno@clisp.org>
46148
46149         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
46150         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
46151         * modules/gettext (Files): Add m4/intlmacosx.m4.
46152
46153 2007-06-07  Bruno Haible  <bruno@clisp.org>
46154
46155         * modules/localename-tests: New file.
46156         * tests/test-localename.c: New file.
46157
46158         New module 'localename'.
46159         * lib/localename.h: New file.
46160         * lib/localename.c: New file, from GNU gettext.
46161         * m4/localename.m4: New file.
46162         * modules/localename: New file.
46163
46164 2007-06-07  Bruno Haible  <bruno@clisp.org>
46165
46166         Work around the lack of <wchar.h> on some builds of uClibc.
46167         * doc/headers/wchar.texi: Update.
46168         * lib/wchar_.h: Include <wchar.h> only if it exists.
46169         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
46170         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
46171         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
46172         doesn't exist.
46173         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
46174         * modules/mbfile (Depends-on): Add wchar.
46175         * modules/mbiter (Depends-on): Likewise.
46176         * modules/mbuiter (Depends-on): Likewise.
46177         Reported by Simon Josefsson.
46178
46179 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
46180
46181         Work around problem reported by Steven M. Schweda in
46182         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
46183         Tru64 5.1B with the Compaq compiler environment installed declares
46184         an 'isblank' function but does not define it in the C library.
46185         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
46186         * lib/regex_internal.h (isblank): Likewise.
46187         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
46188         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46189
46190 2007-06-05  Bruno Haible  <bruno@clisp.org>
46191
46192         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
46193         ia64.
46194         * modules/printf-safe: New file.
46195         * modules/fprintf-posix (Depends-on): Add printf-safe.
46196         * modules/printf-posix (Depends-on): Likewise.
46197         * modules/snprintf-posix (Depends-on): Likewise.
46198         * modules/sprintf-posix (Depends-on): Likewise.
46199         * modules/vasnprintf-posix (Depends-on): Likewise.
46200         * modules/vasprintf-posix (Depends-on): Likewise.
46201         * modules/vfprintf-posix (Depends-on): Likewise.
46202         * modules/vprintf-posix (Depends-on): Likewise.
46203         * modules/vsnprintf-posix (Depends-on): Likewise.
46204         * modules/vsprintf-posix (Depends-on): Likewise.
46205         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
46206         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
46207         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
46208         "no" on i386, x86_64, ia64.
46209         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
46210         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46211         on i386, x86_64, ia64.
46212         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
46213         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46214         on i386, x86_64, ia64.
46215         * tests/test-vasnprintf-posix.c: Include float.h.
46216         (LDBL80_WORDS): New macro.
46217         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46218         on i386, x86_64, ia64.
46219         * tests/test-vasprintf-posix.c: Include float.h.
46220         (LDBL80_WORDS): New macro.
46221         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46222         on i386, x86_64, ia64.
46223         * tests/test-snprintf-posix.c: Include float.h.
46224         * tests/test-sprintf-posix.c: Likewise.
46225         * tests/test-vsnprintf-posix.c: Likewise.
46226         * tests/test-vsprintf-posix.c: Likewise.
46227
46228 2007-06-05  Bruno Haible  <bruno@clisp.org>
46229
46230         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
46231         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
46232         non-IEEE numbers on i386, x86_64, ia64.
46233         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
46234         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
46235         * tests/test-isnanl.h: Include float.h.
46236         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
46237
46238 2007-06-05  Bruno Haible  <bruno@clisp.org>
46239
46240         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
46241         also the %a / %A. Handle the %a / %A code before this extra handling.
46242
46243 2007-06-05  Bruno Haible  <bruno@clisp.org>
46244
46245         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
46246         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
46247
46248 2007-06-05  Bruno Haible  <bruno@clisp.org>
46249
46250         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
46251         typo in variable name.
46252
46253 2007-06-05  Eric Blake  <ebb9@byu.net>
46254
46255         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
46256         Reported by Simon Josefsson.
46257
46258 2007-06-04  Bruno Haible  <bruno@clisp.org>
46259
46260         Avoid test failures on some PowerPC platforms.
46261         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
46262         Define differently for PowerPC.
46263         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
46264         Reported by Gary V. Vaughan <gary@gnu.org>.
46265
46266 2007-06-02  Bruno Haible  <bruno@clisp.org>
46267
46268         Fix test-stdint failure on FreeBSD/ia64.
46269         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
46270         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
46271         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
46272         * doc/headers/stdint.texi: Update.
46273
46274 2007-06-01  Bruno Haible  <bruno@clisp.org>
46275
46276         * tests/test-binary-io.c (main): Pass a third argument to open().
46277         Reported by Gary V. Vaughan <gary@gnu.org>.
46278
46279 2007-06-01  Bruno Haible  <bruno@clisp.org>
46280
46281         * doc/functions/frexpl.texi: Update for mingw.
46282
46283 2007-06-01  Bruno Haible  <bruno@clisp.org>
46284
46285         * tests/test-lseek.c (main): Disable test of errno for invalid third
46286         argument.
46287         * doc/functions/lseek.texi: Update.
46288         Reported by Gary V. Vaughan <gary@gnu.org>.
46289
46290 2007-05-28  Bruno Haible  <bruno@clisp.org>
46291
46292         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
46293
46294 2007-05-31  Eric Blake  <ebb9@byu.net>
46295
46296         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
46297         cross compiling.
46298
46299 2007-05-30  Eric Blake  <ebb9@byu.net>
46300         and Bruno Haible  <bruno@clisp.org>
46301
46302         Work around mingw test failures exposed by m4-1.4.9b.
46303         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
46304         * tests/test-unistd.c: Disable uid_t and git_t tests for the
46305         moment.
46306
46307 2007-05-30  Bruno Haible  <bruno@clisp.org>
46308
46309         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
46310         assuming that they are closed. Needed on HP-UX 11.
46311
46312 2007-05-29  Bruno Haible  <bruno@clisp.org>
46313
46314         Fix a problem with #include_next.
46315         * lib/dirent_.h: Split the double-inclusion guard.
46316         * lib/fcntl_.h: Likewise.
46317         * lib/float_.h: Likewise.
46318         * lib/iconv_.h: Likewise.
46319         * lib/inttypes_.h: Likewise.
46320         * lib/locale_.h: Likewise.
46321         * lib/math_.h: Likewise.
46322         * lib/netinet_in_.h: Likewise.
46323         * lib/search_.h: Likewise.
46324         * lib/signal_.h: Likewise.
46325         * lib/stdint_.h: Likewise.
46326         * lib/stdio_.h: Likewise.
46327         * lib/stdlib_.h: Likewise.
46328         * lib/string_.h: Likewise.
46329         * lib/sys_select_.h: Likewise.
46330         * lib/sys_socket_.h: Likewise.
46331         * lib/sys_stat_.h: Likewise.
46332         * lib/sys_time_.h: Likewise.
46333         * lib/sysexits_.h: Likewise.
46334         * lib/time_.h: Likewise.
46335         * lib/unistd_.h: Likewise.
46336         * lib/wchar_.h: Likewise.
46337         * lib/wctype_.h: Likewise.
46338
46339 2007-05-29  Bruno Haible  <bruno@clisp.org>
46340
46341         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
46342         for the moment.
46343
46344 2007-05-29  Bruno Haible  <bruno@clisp.org>
46345
46346         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
46347         invocation.
46348         Reported by Eric Blake.
46349
46350 2007-05-29  Bruno Haible  <bruno@clisp.org>
46351
46352         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
46353         compiling case.
46354
46355 2007-05-29  Eric Blake  <ebb9@byu.net>
46356             Bruno Haible  <bruno@clisp.org>
46357
46358         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
46359         cross compiles.
46360
46361 2007-05-28  Eric Blake  <ebb9@byu.net>
46362
46363         * modules/closein-tests (test_closein_LDADD): Support test on
46364         cygwin with libtool.
46365
46366 2007-05-28  Bruno Haible  <bruno@clisp.org>
46367
46368         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
46369         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
46370         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
46371         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
46372         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
46373         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
46374         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
46375         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
46376         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
46377
46378 2007-05-28  Eric Blake  <ebb9@byu.net>
46379
46380         Unconditionally include <config.h> in unit tests.
46381         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
46382         * tests/test-allocsa.c, tests/test-arcfour.c,
46383         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
46384         tests/test-array_list.c, tests/test-array_oset.c,
46385         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
46386         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
46387         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
46388         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
46389         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
46390         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
46391         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
46392         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
46393         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
46394         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
46395         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
46396         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
46397         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
46398         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
46399         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
46400         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
46401         test-md5.c, test-memmem.c, test-printf-posix.c,
46402         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
46403         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
46404         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
46405         test-strcasestr.c, test-striconv.c, test-striconveh.c,
46406         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
46407         test-vasnprintf-posix2.c, test-vasnprintf.c,
46408         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
46409         test-vfprintf-posix.c, test-vprintf-posix.c,
46410         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
46411         test-xvasprintf.c: Likewise.
46412
46413 2007-05-28  Bruno Haible  <bruno@clisp.org>
46414
46415         * gnulib-tool (func_import): Remember the --with-tests command-line
46416         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
46417         Reported by Eric Blake.
46418
46419 2007-05-28  Bruno Haible  <bruno@clisp.org>
46420
46421         * modules/ftell-tests: New file.
46422         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
46423         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
46424
46425         * lib/ftell.c: New file.
46426         * modules/ftell: New file.
46427         * m4/ftell.m4: New file.
46428         * doc/functions/ftell.texi: Update.
46429         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
46430         REPLACE_FTELL.
46431         * lib/stdio_.h (rpl_ftell): New declaration.
46432         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
46433         REPLACE_FTELL.
46434
46435 2007-05-28  Eric Blake  <ebb9@byu.net>
46436
46437         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
46438
46439 2007-05-28  Bruno Haible  <bruno@clisp.org>
46440
46441         * modules/fseek-tests: New file.
46442         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
46443         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
46444
46445         * lib/fseek.c: New file.
46446         * modules/fseek: New file.
46447         * m4/fseek.m4: New file.
46448         * doc/functions/fseek.texi: Update.
46449         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
46450         REPLACE_FSEEK.
46451         * lib/stdio_.h (rpl_fseek): New declaration.
46452         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
46453         REPLACE_FSEEK.
46454
46455 2007-05-28  Bruno Haible  <bruno@clisp.org>
46456
46457         * lib/stdio_.h (fflush): More comments.
46458
46459 2007-05-28  Bruno Haible  <bruno@clisp.org>
46460
46461         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
46462         runtime test.
46463
46464 2007-05-28  Eric Blake  <ebb9@byu.net>
46465
46466         Improve lseek module.
46467         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
46468         * lib/unistd_.h (lseek): Scale back link warning message.
46469         * tests/test-lseek.c: Beef up test.
46470         * tests/test-lseek.sh: Exercise more facets of lseek.
46471         Reported by Bruno Haible.
46472
46473 2007-05-28  Bruno Haible  <bruno@clisp.org>
46474
46475         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
46476         to define.
46477
46478 2007-05-27  Bruno Haible  <bruno@clisp.org>
46479
46480         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
46481
46482 2007-05-27  Bruno Haible  <bruno@clisp.org>
46483
46484         * modules/openmp: New file.
46485         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
46486         Noah Misch.
46487
46488 2007-05-26  Bruno Haible  <bruno@clisp.org>
46489
46490         * modules/chdir-long (Depends-on): Add fchdir.
46491         * modules/chdir-safer (Depends-on): Likewise.
46492         * modules/fts (Depends-on): Likewise.
46493         * modules/fts-lgpl (Depends-on): Likewise.
46494         * modules/openat (Depends-on): Likewise.
46495         * modules/savewd (Depends-on): Likewise.
46496
46497 2007-05-24  Eric Blake  <ebb9@byu.net>
46498
46499         Fix lseek on mingw.
46500         * modules/lseek: New module.
46501         * m4/lseek.m4: New file.
46502         * lib/lseek.c: New file.
46503         * modules/lseek-tests: New file.
46504         * tests/test-lseek.c: New file.
46505         * tests/test-lseek.sh: New file.
46506         * MODULES.html.sh: Document lseek module.
46507         * modules/fflush (Depends-on): Add lseek, fseeko.
46508         * modules/fseeko (Depends-on): Likewise.
46509         * modules/ftello (Depends-on): Likewise.
46510         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
46511         broken.
46512         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
46513         broken.
46514         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
46515         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
46516         * lib/ftello.c (rpl_ftello): Likewise.
46517         * tests/test-fseeko.c (main): Test this.
46518         * tests/test-fseeko.sh: Likewise.
46519         * tests/test-ftello.c (main): Likewise.
46520         * tests/test-ftello.sh: Likewise.
46521         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
46522         implies replacing fseek.
46523         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
46524         HAVE_FTELLO.
46525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
46526         * modules/unistd (Makefile.am): Likewise.
46527         * lib/unistd_.h (lseek): Declare a replacement.
46528         * doc/functions/lseek.texi (lseek): Document this fix.
46529         * doc/functions/fseek.texi (fseek): Likewise.
46530         * doc/functions/ftell.texi (ftell): Likewise.
46531
46532 2007-05-24  Bruno Haible  <bruno@clisp.org>
46533
46534         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
46535         in the printed representation of a NaN.
46536         * tests/test-vasprintf-posix.c (test_function): Likewise.
46537         * tests/test-snprintf-posix.h (test_function): Likewise.
46538         * tests/test-sprintf-posix.h (test_function): Likewise.
46539         Reported by Eric Blake.
46540
46541 2007-05-23  Eric Blake  <ebb9@byu.net>
46542
46543         Fix fseeko/ftello on cygwin 1.5.24.
46544         * doc/functions/fseeko.texi (fseeko): Document the fix.
46545         * doc/functions/ftello.texi (ftello): Document the fix.
46546         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
46547         * doc/functions/stdout.text (stdout): New file.
46548         * doc/functions/stderr.text (stderr): New file.
46549         * doc/gnulib.texi (Function Substitutes): Use new files.
46550         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
46551         prior to 1.7.0.
46552         * tests/test-ftello.c (main): Likewise for ftello.
46553         * tests/test-fseeko.sh: New file.
46554         * tests/test-ftello.sh: New file.
46555         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
46556         with seekable stdin.
46557         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
46558         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
46559         (gl_REPLACE_FSEEKO): New macro.
46560         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
46561         * modules/fseeko (Files): Distribute fseeko.c.
46562         * modules/ftello (Files): Distribute ftello.c.
46563         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
46564         mode.
46565         * lib/ftello.c (rpl_ftello): New file.
46566         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
46567         fseeko, ftello.
46568         (gl_STDIN_LARGE_OFFSET): New macro.
46569         * modules/stdio (Makefile.am): Perform the replacement.
46570         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
46571
46572 2007-05-23  Bruno Haible  <bruno@clisp.org>
46573
46574         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
46575         GNULIB_POSIXCHECK is defined.
46576
46577 2007-05-21  Bruno Haible  <bruno@clisp.org>
46578
46579         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
46580         Check also the output for NaN arguments. When cross-compiling, guess
46581         no on IRIX.
46582         * lib/vasnprintf.c: Update comments.
46583         * tests/test-vasnprintf-posix.c (strisnan): New function.
46584         (test_function): Use it.
46585         * tests/test-vasprintf-posix.c (strisnan): New function.
46586         (test_function): Use it.
46587         * tests/test-snprintf-posix.h (strisnan): New function.
46588         (test_function): Use it.
46589         * tests/test-sprintf-posix.h (strisnan): New function.
46590         (test_function): Use it.
46591         Reported by Eric Blake.
46592
46593 2007-05-20  Bruno Haible  <bruno@clisp.org>
46594
46595         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
46596         numbers that fails on BeOS.
46597         * doc/functions/frexpl.texi: Update.
46598
46599 2007-05-20  Jim Meyering  <jim@meyering.net>
46600
46601         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
46602         forced upon us by glibc-2.6.
46603
46604 2007-05-20  Bruno Haible  <bruno@clisp.org>
46605
46606         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
46607         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
46608         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
46609         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
46610         NEED_PRINTF_INFINITE.
46611         (is_infinitel): New function.
46612         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
46613         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
46614         gl_PREREQ_VASNPRINTF_INFINITE.
46615         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
46616         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46617         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
46618         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
46619         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
46620         gl_PREREQ_VASNPRINTF_INFINITE.
46621         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46622         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46623         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46624         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46625         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46626         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46627         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46628         * doc/functions/fprintf.texi: Update.
46629         * doc/functions/printf.texi: Update.
46630         * doc/functions/snprintf.texi: Update.
46631         * doc/functions/sprintf.texi: Update.
46632         * doc/functions/vfprintf.texi: Update.
46633         * doc/functions/vprintf.texi: Update.
46634         * doc/functions/vsnprintf.texi: Update.
46635         * doc/functions/vsprintf.texi: Update.
46636
46637 2007-05-20  Bruno Haible  <bruno@clisp.org>
46638
46639         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
46640         was not found in libc.
46641         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
46642
46643 2007-05-20  Bruno Haible  <bruno@clisp.org>
46644
46645         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
46646         printed as "-nan" instead of "nan".
46647         * tests/test-vasprintf-posix.c (test_function): Likewise.
46648         * tests/test-snprintf-posix.h (test_function): Likewise.
46649         * tests/test-sprintf-posix.h (test_function): Likewise.
46650         Needed for HP-UX 11.
46651
46652 2007-05-20  Jim Meyering  <jim@meyering.net>
46653
46654         Fix buggy test for the fchownat-deref bug.
46655         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
46656         symlink required for the run-test.  Without it, this test would
46657         always declare that fchownat doesn't work, and client code would
46658         unnecessarily use the replacement function with fixed libc.
46659         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
46660         Reported by Greg Schafer.
46661
46662 2007-05-19  Bruno Haible  <bruno@clisp.org>
46663
46664         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
46665         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
46666         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
46667         Needed for IRIX 6.5 and Solaris 2.5.1.
46668
46669 2007-05-19  Bruno Haible  <bruno@clisp.org>
46670
46671         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
46672         (test_function): Skip tests involving -0.0 on platforms where
46673         -0.0 = 0.0.
46674         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
46675         (test_function): Skip tests involving -0.0 on platforms where
46676         -0.0 = 0.0.
46677         * tests/test-snprintf-posix.h (have_minus_zero): New function.
46678         (test_function): Skip tests involving -0.0 on platforms where
46679         -0.0 = 0.0.
46680         * tests/test-sprintf-posix.h (have_minus_zero): New function.
46681         (test_function): Skip tests involving -0.0 on platforms where
46682         -0.0 = 0.0.
46683         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
46684         tests.
46685         * tests/test-printf-posix.h (test_function): Likewise.
46686         * tests/test-printf-posix.output: Remove all -0.0 related results.
46687         Needed for IRIX 6.5.
46688
46689 2007-05-19  Bruno Haible  <bruno@clisp.org>
46690
46691         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
46692         printed as "nan0x7fffffff" instead of "nan".
46693         * tests/test-vasprintf-posix.c (test_function): Likewise.
46694         * tests/test-snprintf-posix.h (test_function): Likewise.
46695         * tests/test-sprintf-posix.h (test_function): Likewise.
46696         * tests/test-fprintf-posix.h (NaN): Remove macro.
46697         (test_function): Remove all NaN related tests.
46698         * tests/test-printf-posix.h (NaN): Remove macro.
46699         (test_function): Remove all NaN related tests.
46700         * tests/test-printf-posix.output: Remove all NaN related results.
46701         Needed for IRIX 6.5.
46702
46703 2007-05-19  Bruno Haible  <bruno@clisp.org>
46704
46705         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
46706         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
46707
46708 2007-05-19  Bruno Haible  <bruno@clisp.org>
46709
46710         * lib/float_.h: New file.
46711         * m4/float_h.m4: New file.
46712         * modules/float: New file.
46713         * modules/isnanl (Dependencies): Add float.
46714         * modules/isnanl-nolibm (Dependencies): Likewise.
46715         * modules/mathl (Dependencies): Likewise.
46716         * modules/printf-frexpl (Dependencies): Likewise.
46717         * modules/signbit (Dependencies): Likewise.
46718         * modules/vasnprintf (Dependencies): Likewise.
46719         * doc/headers/float.texi: Update.
46720
46721 2007-05-19  Jim Meyering  <jim@meyering.net>
46722
46723         * lib/utimens.c (gl_futimens): Rename from futimens,
46724         now that glibc-2.6 declares futimens.
46725         * lib/utimens.h: Likewise.
46726
46727 2007-05-19  Bruno Haible  <bruno@clisp.org>
46728
46729         Avoid test failures on mingw.
46730         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
46731         * tests/test-printf-posix.sh: Likewise.
46732         * tests/test-vfprintf-posix.sh: Likewise.
46733         * tests/test-vprintf-posix.sh: Likewise.
46734
46735 2007-05-19  Bruno Haible  <bruno@clisp.org>
46736
46737         Fix *printf result for NaN, Inf, -0.0 on mingw.
46738         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
46739         * lib/vasnprintf.c: Include math.h and isnan.h.
46740         (is_infinite_or_zero): New function.
46741         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
46742         values in the %f, %F, %e, %E, %g, %G directives.
46743         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
46744         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46745         gl_PRINTF_INFINITE and test its result. Invoke
46746         gl_PREREQ_VASNPRINTF_INFINITE.
46747         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46748         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46749         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46750         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46751         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46752         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46753         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46754         * doc/functions/fprintf.texi: Update.
46755         * doc/functions/printf.texi: Update.
46756         * doc/functions/snprintf.texi: Update.
46757         * doc/functions/sprintf.texi: Update.
46758         * doc/functions/vfprintf.texi: Update.
46759         * doc/functions/vprintf.texi: Update.
46760         * doc/functions/vsnprintf.texi: Update.
46761         * doc/functions/vsprintf.texi: Update.
46762
46763 2007-05-19  Bruno Haible  <bruno@clisp.org>
46764
46765         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
46766         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
46767         Instead of multiplying with 10^k, set extra_zeroes to k.
46768         (scale10_round_long_double): Remove function.
46769
46770 2007-05-18  Bruno Haible  <bruno@clisp.org>
46771
46772         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
46773         introduced on 2007-05-06.
46774
46775 2007-05-18  Bruno Haible  <bruno@clisp.org>
46776
46777         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
46778         %g directives.
46779         * tests/test-vasprintf-posix.c (test_function): Likewise.
46780         * tests/test-snprintf-posix.h (test_function): Likewise.
46781         * tests/test-sprintf-posix.h (test_function): Likewise.
46782
46783 2007-05-18  Bruno Haible  <bruno@clisp.org>
46784
46785         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
46786         (strmatch): New function.
46787         (test_function): Test the %f directive on numbers of various exponents.
46788         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
46789         (strmatch): New function.
46790         (test_function): Test the %f directive on numbers of various exponents.
46791         * tests/test-snprintf-posix.h (strmatch): New function.
46792         (test_function): Test the %f directive on numbers of various exponents.
46793         * tests/test-sprintf-posix.h (strmatch): New function.
46794         (test_function): Test the %f directive on numbers of various exponents.
46795         * tests/test-snprintf-posix.c (SIZEOF): New macro.
46796         * tests/test-sprintf-posix.c (SIZEOF): New macro.
46797         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
46798         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
46799
46800 2007-05-18  Bruno Haible  <bruno@clisp.org>
46801
46802         Add support for 'long double' number output.
46803         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
46804         * lib/vasnprintf.c: Include math.h and float+.h.
46805         (mp_limb_t): New type.
46806         (GMP_LIMB_BITS): New macro.
46807         (mp_twolimb_t): New type.
46808         (GMP_TWOLIMB_BITS): New macro.
46809         (mpn_t): New type.
46810         (multiply, divide, convert_to_decimal, decode_long_double,
46811         scale10_round_long_double, scale10_round_decimal_long_double,
46812         floorlog10l): New functions.
46813         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
46814         for the %f, %F, %e, %E, %g, %G directives.
46815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
46816         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46817         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
46818         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
46819         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46820         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46821         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46822         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46823         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46824         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46825         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46826         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
46827         * modules/snprintf-posix (Depends-on): Likewise.
46828         * modules/sprintf-posix (Depends-on): Likewise.
46829         * modules/vasnprintf-posix (Depends-on): Likewise.
46830         * modules/vasprintf-posix (Depends-on): Likewise.
46831         * modules/vfprintf-posix (Depends-on): Likewise.
46832         * modules/vsnprintf-posix (Depends-on): Likewise.
46833         * modules/vsprintf-posix (Depends-on): Likewise.
46834         * modules/vasnprintf (Files): Add lib/float+.h.
46835         * doc/functions/fprintf.texi: Update.
46836         * doc/functions/printf.texi: Update.
46837         * doc/functions/snprintf.texi: Update.
46838         * doc/functions/sprintf.texi: Update.
46839         * doc/functions/vfprintf.texi: Update.
46840         * doc/functions/vprintf.texi: Update.
46841         * doc/functions/vsnprintf.texi: Update.
46842         * doc/functions/vsprintf.texi: Update.
46843
46844 2007-05-18  Bruno Haible  <bruno@clisp.org>
46845
46846         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
46847
46848 2007-05-18  Bruno Haible  <bruno@clisp.org>
46849
46850         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
46851         for printing 64-bit integers. Needed for mingw.
46852
46853 2007-05-18  Bruno Haible  <bruno@clisp.org>
46854
46855         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
46856         gl_FUNC_FREXPL_WORKS.
46857         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
46858
46859 2007-05-18  Bruno Haible  <bruno@clisp.org>
46860
46861         * modules/frexpl-nolibm-tests: New file.
46862
46863         * modules/frexpl-nolibm: New file.
46864         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
46865
46866 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
46867
46868         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
46869         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
46870         GCC 4.2, which otherwise issues a lot of warnings.
46871         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
46872         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
46873         Likewise.
46874         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
46875         * modules/iconv_open (iconv.h): Likewise.
46876         * modules/locale (locale.h): Likewise.
46877         * modules/netinet_in (netinet/in.h): Likewise.
46878         * modules/sys_select (sys_select.h): Likewise.
46879         * modules/sys_socket (sys/socket.h): Likewise.
46880         * modules/sys_stat (sys/stat.h): Likewise.
46881         * modules/sysexits (sysexits.h): Likewise.
46882         * modules/unistd (unistd.h): Likewise.
46883
46884 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46885
46886         * modules/closein-tests (Makefile.am): Distribute
46887         `test-closein.sh'.
46888
46889 2007-05-17  Bruno Haible  <bruno@clisp.org>
46890
46891         * tests/test-printf-posix.output: Renamed from
46892         tests/test-fprintf-posix.out.
46893         * modules/fprintf-posix-tests: Update.
46894         * modules/printf-posix-tests: Update.
46895         * modules/vfprintf-posix-tests: Update.
46896         * modules/vprintf-posix-tests: Update.
46897         * tests/test-fprintf-posix.sh: Update.
46898         * tests/test-printf-posix.sh: Update.
46899         * tests/test-vfprintf-posix.sh: Update.
46900         * tests/test-vprintf-posix.sh: Update.
46901         Reported by Ralf Wildenhues.
46902
46903 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
46904
46905         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
46906         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
46907         GCC 4.2, which otherwise issues a lot of warnings.
46908         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
46909         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
46910         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
46911         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
46912         it should no longer be needed.
46913         * lib/string_.h: Likewise.
46914         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
46915         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
46916         * modules/inttypes (inttypes.h): Likewise.
46917         * modules/math (math.h): Likewise.
46918         * modules/search (search.h): Likewise.
46919         * modules/signal (signal.h): Likewise.
46920         * modules/stdint (stdint.h): Likewise.
46921         * modules/stdio (stdio.h): Likewise.
46922         * modules/stdlib (stdlib.h): Likewise.
46923         * modules/string (string.h): Likewise.
46924         * modules/sys_time (sys/time.h): Likewise.
46925         * modules/time (time.h): Likewise.
46926         * modules/wchar (wchar.h): Likewise.
46927         * modules/wctype (wtype.h): Likewise.
46928
46929 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
46930
46931         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
46932
46933 2007-05-13  Bruno Haible  <bruno@clisp.org>
46934
46935         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
46936         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46937         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
46938         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
46939         (gl_PREREQ_STRTOK_R): Don't require it here.
46940
46941 2007-05-13  Bruno Haible  <bruno@clisp.org>
46942
46943         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
46944         when used in C++ mode.
46945
46946 2007-05-12  Bruno Haible  <bruno@clisp.org>
46947
46948         * lib/linebuffer.h: Tweak doc.
46949         * lib/linebuffer.c: Likewise.
46950
46951 2007-05-12  James Youngman  <jay@gnu.org>
46952
46953         * lib/linebuffer.c (readlinebuffer_delim): New function,
46954         like readlinebuffer, but use a caller-specified delimiter.
46955         (readlinebuffer): Just call readlinebuffer_delim with '\n'
46956         as the delimiter.
46957         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
46958
46959 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46960
46961         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
46962         * modules/openat (Files): Remove openat-die.c.
46963         (Depends-on): Add openat-die.
46964         * modules/openat-die: New module.
46965
46966 2007-05-06  Bruno Haible  <bruno@clisp.org>
46967
46968         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
46969         Update with info about Cygwin.
46970         * doc/functions/fprintf.texi: Update.
46971         * doc/functions/printf.texi: Update.
46972         * doc/functions/snprintf.texi: Update.
46973         * doc/functions/sprintf.texi: Update.
46974         * doc/functions/vfprintf.texi: Update.
46975         * doc/functions/vprintf.texi: Update.
46976         * doc/functions/vsnprintf.texi: Update.
46977         * doc/functions/vsprintf.texi: Update.
46978         Reported by Eric Blake.
46979
46980 2007-05-06  Bruno Haible  <bruno@clisp.org>
46981
46982         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
46983         padding ourselves for the floating-point directives.
46984         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
46985         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
46986         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46987         gl_PRINTF_FLAG_ZERO and test its result. Invoke
46988         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
46989         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46990         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
46991         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46992         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46993         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46994         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46995         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46996         * tests/test-snprintf-posix.h (test_function): Also check the width
46997         and some flags in the %f directive.
46998         * tests/test-sprintf-posix.h (test_function): Likewise.
46999         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47000         * tests/test-vasprintf-posix.c (test_function): Likewise.
47001         * doc/functions/fprintf.texi: Update.
47002         * doc/functions/printf.texi: Update.
47003         * doc/functions/snprintf.texi: Update.
47004         * doc/functions/sprintf.texi: Update.
47005         * doc/functions/vfprintf.texi: Update.
47006         * doc/functions/vprintf.texi: Update.
47007         * doc/functions/vsnprintf.texi: Update.
47008         * doc/functions/vsprintf.texi: Update.
47009
47010 2007-05-06  Bruno Haible  <bruno@clisp.org>
47011
47012         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
47013         pass the ' flag character to sprintf or snprintf.
47014         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
47015         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
47016         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47017         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
47018         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
47019         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47020         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
47021         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47022         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47023         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47024         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47025         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47026         * tests/test-snprintf-posix.h (test_function): Also check the grouping
47027         flag.
47028         * tests/test-sprintf-posix.h (test_function): Likewise.
47029         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47030         * tests/test-vasprintf-posix.c (test_function): Likewise.
47031         * doc/functions/fprintf.texi: Update.
47032         * doc/functions/printf.texi: Update.
47033         * doc/functions/snprintf.texi: Update.
47034         * doc/functions/sprintf.texi: Update.
47035         * doc/functions/vfprintf.texi: Update.
47036         * doc/functions/vprintf.texi: Update.
47037         * doc/functions/vsnprintf.texi: Update.
47038         * doc/functions/vsprintf.texi: Update.
47039
47040 2007-05-01  Bruno Haible  <bruno@clisp.org>
47041
47042         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
47043
47044 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
47045
47046         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
47047         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
47048
47049 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47050
47051         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
47052         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
47053         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
47054
47055 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
47056
47057         * lib/argp-help.c (struct hol_entry): New member `ord'.
47058         (HOL_ENTRY_PTRCMP): Use ord for comparison
47059         (hol_sort): Initialize ord.
47060
47061 2007-05-01  Bruno Haible  <bruno@clisp.org>
47062
47063         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
47064         Reported by Eric Blake.
47065         * doc/gnulib.texi (Function Substitutes): Update.
47066
47067 2007-05-01  Bruno Haible  <bruno@clisp.org>
47068
47069         * doc/functions.texi: Remove file, now redundant through
47070         doc/functions/*.texi.
47071
47072 2007-05-01  Bruno Haible  <bruno@clisp.org>
47073
47074         * modules/argp (Depends-on): Add sleep.
47075
47076 2007-05-01  Bruno Haible  <bruno@clisp.org>
47077
47078         * modules/sleep-tests: New file.
47079         * tests/test-sleep.c: New file.
47080
47081         * modules/sleep: New file.
47082         * lib/sleep.c: New file.
47083         * m4/sleep.m4: New file.
47084         * lib/unistd_.h (sleep): New declaration.
47085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
47086         HAVE_SLEEP.
47087         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
47088         * doc/functions/sleep.texi: Document the sleep module.
47089
47090 2007-05-01  Bruno Haible  <bruno@clisp.org>
47091
47092         * lib/sigprocmask.h: Remove file.
47093         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
47094         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
47095         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
47096         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
47097         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
47098         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
47099         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
47100         HAVE_SIGSET_T as a shell variable.
47101         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
47102         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
47103         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
47104         (Depends-on): Add signal. Remove verify.
47105         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
47106         (Include): Mention <signal.h> instead of sigprocmask.h.
47107         * NEWS: Mention the change.
47108         * lib/fatal-signal.c: Don't include sigprocmask.h.
47109
47110 2007-05-01  Bruno Haible  <bruno@clisp.org>
47111
47112         * modules/signal: New file.
47113         * lib/signal_.h: New file.
47114         * m4/signal_h.m4: New file.
47115
47116 2007-05-01  Bruno Haible  <bruno@clisp.org>
47117
47118         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
47119         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
47120         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
47121         HAVE_WCTYPE_CTMP_BUG into wctype.h.
47122
47123 2007-05-01  Bruno Haible  <bruno@clisp.org>
47124
47125         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
47126         configure time.
47127         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
47128         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
47129         * modules/sys_stat (Makefile.am): Substitute their values into
47130         sys/stat.h.
47131
47132 2007-05-01  Bruno Haible  <bruno@clisp.org>
47133
47134         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
47135         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
47136         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
47137
47138 2007-05-01  Bruno Haible  <bruno@clisp.org>
47139
47140         * doc/header/assert.texi: Undo last change: don't mention the gnulib
47141         'assert' module here.
47142
47143 2007-05-01  Bruno Haible  <bruno@clisp.org>
47144
47145         * doc/functions/*.texi: New files.
47146         * doc/functions/google-ranking.txt: New file.
47147         * doc/gnulib.texi (Function Substitutes): New chapter.
47148         (ctime, inet_ntoa): Remove sections.
47149         * doc/ctime.texi: Remove file.
47150         * doc/inet_ntoa.texi: Remove file.
47151         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
47152         dependencies.
47153         (%.info): New rule, specifying a --reference-limit.
47154
47155 2007-05-01  Bruno Haible  <bruno@clisp.org>
47156
47157         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
47158
47159 2007-05-01  Bruno Haible  <bruno@clisp.org>
47160
47161         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
47162         the portability of 'mkdir' to mingw systems.
47163
47164 2007-05-01  Bruno Haible  <bruno@clisp.org>
47165
47166         * doc/headers/google-ranking.txt: New file.
47167
47168 2007-04-30  Eric Blake  <ebb9@byu.net>
47169
47170         Prefer fseeko to fseek.
47171         * modules/getpass (Depends-on): Add fseeko.
47172         * lib/getpass.c (getpass): Use fseeko, not fseek.
47173
47174 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
47175
47176         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
47177         assumes the sorting is stable, while most qsort implementations
47178         are not.  Use argument addresses to ensure they never compare as
47179         equal.
47180
47181         * tests/test-argp-2.sh (usage-indent test): Fix output
47182         (func_compare): Restore diff options
47183         * tests/test-argp.c: Restore #include "progname.h"
47184
47185 2007-04-29  Bruno Haible  <bruno@clisp.org>
47186
47187         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
47188         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47189         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
47190         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47191         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
47192         (configure.ac): Define CHECK_SNPRINTF_POSIX.
47193         (TESTS, check_PROGRAMS): Add test-snprintf.
47194         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
47195         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
47196         (TESTS, check_PROGRAMS): Add test-vsnprintf.
47197         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
47198         assertions that fail on HP-UX, OSF/1, or IRIX.
47199         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
47200
47201 2007-04-29  Bruno Haible  <bruno@clisp.org>
47202
47203         * MODULES.html.sh (posix_functions): Remove 'contents'.
47204
47205 2007-04-29  Karl Berry  <karl@gnu.org>
47206
47207         * config/srclist.txt (gendocs_template_min): new entry.
47208
47209 2007-04-29  Bruno Haible  <bruno@clisp.org>
47210
47211         Work around fpurge bug on BSD systems.
47212         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
47213         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
47214         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
47215         fpurge to rpl_fpurge if the system already has this function.
47216         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
47217         the case where the system already has this function. Correct invariants
47218         on BSD systems.
47219         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
47220         BSD systems.
47221
47222 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
47223
47224         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
47225         proposed by Sven Verdoolaege.
47226
47227         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
47228         options.
47229         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
47230         (usage and help tests): Update
47231
47232 2007-04-29  Bruno Haible  <bruno@clisp.org>
47233
47234         * tests/test-fflush.c (main): Use a file of size 17, not 10.
47235         Print more information in case of failure. Disable a test on BeOS.
47236
47237 2007-04-29  Bruno Haible  <bruno@clisp.org>
47238
47239         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
47240         This helps debugging on systems on which no gdb is available.
47241
47242 2007-04-29  Bruno Haible  <bruno@clisp.org>
47243
47244         * lib/freading.h: Improve comments.
47245         * lib/fwriting.h: Likewise.
47246         * tests/test-freading.c (main): Don't check freading immediately after
47247         repositioning. Needed for glibc.
47248
47249 2007-04-29  Bruno Haible  <bruno@clisp.org>
47250
47251         * lib/freading.c (freading): Trivial simplification.
47252
47253 2007-04-28  Bruno Haible  <bruno@clisp.org>
47254
47255         * tests/test-fwriting.c (main): Also test the interaction between
47256         fflush and fwriting.
47257         * modules/fwriting-tests (Depends-on): Add fflush.
47258
47259         * tests/test-freading.c (main): Also test the interaction between
47260         fflush and freading.
47261         * modules/freading-tests (Depends-on): Add fflush.
47262
47263 2007-04-28  Bruno Haible  <bruno@clisp.org>
47264
47265         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
47266         fseeko and ftello.
47267         Suggested by Eric Blake.
47268
47269 2007-04-28  Jim Meyering  <jim@meyering.net>
47270
47271         Avoid false-negative in gl_STDINT_H's C99 conformance test.
47272         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
47273         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
47274
47275 2007-04-27  Eric Blake  <ebb9@byu.net>
47276
47277         * doc/headers/assert.texi (assert.h): Document assert module use.
47278
47279 2007-04-27  Bruno Haible  <bruno@clisp.org>
47280
47281         * doc/headers/*.texi: New files.
47282         * doc/gnulib.texi (Header File Substitutes): New chapter.
47283         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
47284         dependencies.
47285         (standards.info ,standards.html, standards.dvi): Update dependencies.
47286         (mostlyclean, clean): New targets.
47287
47288 2007-04-27  Bruno Haible  <bruno@clisp.org>
47289
47290         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
47291         * modules/sysexits (Files, Makefile.am): Update.
47292
47293         * lib/sys_socket_.h: Renamed from lib/socket_.h.
47294         * modules/sys_socket (Files, Makefile.am): Update.
47295
47296         * lib/sys_stat_.h: Renamed from lib/stat_.h.
47297         * modules/sys_stat (Files, Makefile.am): Update.
47298
47299 2007-04-27  Eric Blake  <ebb9@byu.net>
47300
47301         * lib/freading.h: Improve comments.
47302         * lib/fwriting.h: Likewise.
47303         * lib/fflush.c: Likewise.
47304
47305         Fix closein for mingw.
47306         * modules/closein-tests: Add tests for closein.
47307         * tests/test-closein.c: New file.
47308         * tests/test-closein.sh: Likewise.
47309         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
47310         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
47311
47312 2007-04-27  Bruno Haible  <bruno@clisp.org>
47313
47314         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
47315         version is < 6.
47316         * lib/math_.h [__DECC]: Likewise.
47317         * lib/stdio_.h [__DECC]: Likewise.
47318         * lib/stdlib_.h [__DECC]: Likewise.
47319         * lib/string_.h [__DECC]: Likewise.
47320         * lib/time_.h [__DECC]: Likewise.
47321         * lib/wchar_.h [__DECC]: Likewise.
47322         * lib/wctype_.h [__DECC]: Likewise.
47323
47324 2007-04-27  Bruno Haible  <bruno@clisp.org>
47325
47326         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
47327
47328 2007-04-27  Bruno Haible  <bruno@clisp.org>
47329
47330         * lib/fflush.c: Add comments.
47331         * modules/fpurge-tests (Depends-on): Add fflush.
47332         * modules/freadable-tests (Depends-on): Likewise.
47333         * modules/fwritable-tests (Depends-on): Likewise.
47334
47335 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
47336
47337         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
47338         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
47339         Report by Bruno Haible <bruno@clisp.org>.
47340
47341 2007-04-26  Eric Blake  <ebb9@byu.net>
47342
47343         Fix fflush on mingw.
47344         * modules/fflush (Depends-on): Add freading.
47345         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
47346         but unread data.
47347
47348 2007-04-26  Eric Blake  <ebb9@byu.net>
47349         and Bruno Haible  <bruno@clisp.org>
47350
47351         Implement freading and fwriting.
47352         * lib/freading.c: New file.
47353         * lib/freading.h: Likewise.
47354         * m4/freading.m4: Likewise.
47355         * modules/freading: Likewise.
47356         * modules/freading-tests: Likewise.
47357         * tests/test-freading.c: Likewise.
47358         * lib/fwriting.c: New file.
47359         * lib/fwriting.h: Likewise.
47360         * m4/fwriting.m4: Likewise.
47361         * modules/fwriting: Likewise.
47362         * modules/fwriting-tests: Likewise.
47363         * tests/test-fwriting.c: Likewise.
47364         * MODULES.html.sh (File stream based Input/Output): Mention them.
47365
47366 2007-04-26  Bruno Haible  <bruno@clisp.org>
47367
47368         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
47369         'long' when we assume it.
47370         Suggested by Eric Blake.
47371
47372 2007-04-26  Bruno Haible  <bruno@clisp.org>
47373
47374         Ensure fseeko, ftello are declared on glibc systems.
47375         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
47376         * modules/fseeko (configure.ac-early): Likewise.
47377         * modules/ftello (configure.ac-early): Likewise.
47378         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
47379         AC_FUNC_FSEEKO for this.
47380         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
47381         (gl_CHECK_FSEEKO): Remove macro.
47382
47383 2007-04-26  Bruno Haible  <bruno@clisp.org>
47384
47385         * tests/test-fflush.c (main): Also check the ftell result after
47386         fflush and fseek/fseeko.
47387         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
47388         file descriptor position cache in the stream.
47389         * lib/fseeko.c (rpl_fseeko): Likewise.
47390
47391 2007-04-26  Bruno Haible  <bruno@clisp.org>
47392
47393         * modules/fflush-tests (Depends-on): Add fseeko.
47394
47395 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
47396             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47397
47398         * lib/argz_.h: ensure error_t definition is obtained in same
47399         mechanism system argz.h would have.
47400         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
47401         argz facilities are known bad.  Err on the side of caution if
47402         cross-compiling.
47403
47404 2007-04-25  Eric Blake  <ebb9@byu.net>
47405
47406         * lib/fpurge.c (includes): Use stdlib.h for free.
47407         * tests/test-fflush.c (main): Also test fflush-fseeko.
47408
47409 2007-04-25  Bruno Haible  <bruno@clisp.org>
47410
47411         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
47412         * lib/fseeko.c: New file.
47413         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
47414         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
47415         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
47416         gl_FUNC_FSEEKO.
47417         (gl_FUNC_FSEEKO): Invoke it.
47418         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
47419         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
47420         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
47421
47422 2007-04-25  Bruno Haible  <bruno@clisp.org>
47423
47424         * modules/fflush (Depends-on): Add ftello.
47425
47426 2007-04-25  Bruno Haible  <bruno@clisp.org>
47427
47428         * modules/ftello-tests: New file.
47429         * tests/test-ftello.c: New file.
47430
47431         * modules/ftello: New file.
47432         * m4/ftello.m4: New file.
47433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
47434         HAVE_FTELLO.
47435         * lib/stdio_.h (ftello): New declaration.
47436         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
47437         HAVE_FTELLO.
47438
47439 2007-04-25  Bruno Haible  <bruno@clisp.org>
47440
47441         * modules/fseeko-tests: New file.
47442         * tests/test-fseeko.c: New file.
47443
47444         * modules/fseeko: New file.
47445         * m4/fseeko.m4: New file.
47446         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
47447         HAVE_FSEEKO.
47448         * lib/stdio_.h (fseeko): New declaration.
47449         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
47450         HAVE_FSEEKO.
47451
47452 2007-04-25  Bruno Haible  <bruno@clisp.org>
47453
47454         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
47455
47456 2007-04-25  Bruno Haible  <bruno@clisp.org>
47457
47458         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
47459         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
47460         * tests/test-unistd.c: Likewise.
47461         * tests/test-fcntl.c: Likewise.
47462
47463 2007-04-23  Eric Blake  <ebb9@byu.net>
47464
47465         * lib/fflush.c: Fix missing include.
47466         Reported by Bruno Haible.
47467
47468 2007-04-23  Bruno Haible  <bruno@clisp.org>
47469
47470         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
47471         Reported by Eric Blake.
47472
47473 2007-04-23  Bruno Haible  <bruno@clisp.org>
47474
47475         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
47476
47477 2007-04-23  Bruno Haible  <bruno@clisp.org>
47478
47479         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
47480
47481 2007-04-23  Bruno Haible  <bruno@clisp.org>
47482
47483         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
47484         Needed on HP-UX 11.
47485
47486 2007-04-16  Eric Blake  <ebb9@byu.net>
47487
47488         Make fflush rely on fpurge.
47489         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
47490         open coding all variants.
47491         * modules/fflush (Depends-on): Add fpurge and unistd.
47492         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
47493         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
47494
47495         Fix --with-tests compilation on cygwin.
47496         * modules/argmatch-tests (Makefile.am): List gnulib library first
47497         in LDADD.
47498         * modules/argp-tests (Makefile.am): Likewise.
47499         * modules/array-list-tests (Makefile.am): Likewise.
47500         * modules/array-oset-tests (Makefile.am): Likewise.
47501         * modules/avltree-list-tests (Makefile.am): Likewise.
47502         * modules/avltree-oset-tests (Makefile.am): Likewise.
47503         * modules/avltreehash-list-tests (Makefile.am): Likewise.
47504         * modules/carray-list-tests (Makefile.am): Likewise.
47505         * modules/dirname-tests (Makefile.am): Likewise.
47506         * modules/frexp-tests (Makefile.am): Likewise.
47507         * modules/isnanl-tests (Makefile.am): Likewise.
47508         * modules/linked-list-tests (Makefile.am): Likewise.
47509         * modules/linkedhash-list-tests (Makefile.am): Likewise.
47510         * modules/lock-tests (Makefile.am): Likewise.
47511         * modules/rbtree-list-tests (Makefile.am): Likewise.
47512         * modules/rbtree-oset-tests (Makefile.am): Likewise.
47513         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
47514         * modules/tls-tests (Makefile.am): Likewise.
47515         * modules/tsearch-tests (Makefile.am): Likewise.
47516         * modules/xvasprintf-tests (Makefile.am): Likewise.
47517
47518         Fix fpurge for cygwin.
47519         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
47520         value.
47521         * modules/fpurge-tests (Depends-on): Clean up trash.
47522
47523 2007-04-16  Simon Josefsson  <simon@josefsson.org>
47524
47525         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
47526
47527         * m4/autobuild.m4: Re-indent.
47528
47529 2007-04-13  Bruno Haible  <bruno@clisp.org>
47530
47531         * modules/fpurge-tests: New file.
47532         * tests/test-fpurge.c: New file.
47533
47534         * modules/fpurge: New file.
47535         * lib/fpurge.h: New file.
47536         * lib/fpurge.c: New file.
47537         * m4/fpurge.m4: New file.
47538
47539 2007-04-13  Bruno Haible  <bruno@clisp.org>
47540
47541         * modules/fbufmode-tests: New file.
47542         * tests/test-fbufmode.c: New file.
47543
47544         * modules/fbufmode: New file.
47545         * lib/fbufmode.h: New file.
47546         * lib/fbufmode.c: New file.
47547         * m4/fbufmode.m4: New file.
47548
47549 2007-04-13  Bruno Haible  <bruno@clisp.org>
47550
47551         * modules/fwritable-tests: New file.
47552         * tests/test-fwritable.c: New file.
47553
47554         * modules/fwritable: New file.
47555         * lib/fwritable.h: New file.
47556         * lib/fwritable.c: New file.
47557         * m4/fwritable.m4: New file.
47558
47559 2007-04-13  Bruno Haible  <bruno@clisp.org>
47560
47561         * modules/freadable-tests: New file.
47562         * tests/test-freadable.c: New file.
47563
47564         * modules/freadable: New file.
47565         * lib/freadable.h: New file.
47566         * lib/freadable.c: New file.
47567         * m4/freadable.m4: New file.
47568
47569 2007-04-13  Bruno Haible  <bruno@clisp.org>
47570
47571         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
47572         MOSTLYCLEANFILES.
47573
47574 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47575
47576         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
47577         gzip bootstrap.conf to avoid dragging in i18n machinery.
47578         (gnulib_tool_option): Use it.
47579
47580 2007-04-13  Bruno Haible  <bruno@clisp.org>
47581
47582         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
47583         %F directives.
47584         * tests/test-vasprintf-posix.c (test_function): Likewise.
47585         * tests/test-snprintf-posix.h (test_function): Likewise.
47586         * tests/test-sprintf-posix.h (test_function): Likewise.
47587         * tests/test-fprintf-posix.h (test_function): Likewise.
47588         * tests/test-printf-posix.h (test_function): Likewise.
47589         * tests/test-fprintf-posix.out: Likewise.
47590
47591 2007-04-13  Bruno Haible  <bruno@clisp.org>
47592
47593         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
47594         * modules/tls-tests (configure.ac): Likewise.
47595         Reported by Arto C. Nirkko <anirkko@insel.ch>.
47596
47597 2007-04-13  Bruno Haible  <bruno@clisp.org>
47598
47599         * lib/tls.c (glthread_tls_get): Fix return type.
47600         Patch by Arto C. Nirkko <anirkko@insel.ch>.
47601
47602 2007-04-12  Eric Blake  <ebb9@byu.net>
47603
47604         * modules/gettime (Depends-on): Remove gettime.
47605         Reported by Dmitry V. Levin.
47606
47607 2007-04-12  Bruno Haible  <bruno@clisp.org>
47608
47609         * modules/fflush (Include): Mention <stdio.h>.
47610         * modules/strtoimax (Include): Mention <inttypes.h>.
47611         * modules/strtoumax (Include): Likewise.
47612
47613 2007-04-12  Eric Blake  <ebb9@byu.net>
47614
47615         * .cvsignore: New file.
47616         * .gitignore: Likewise.
47617
47618 2007-04-12  Bruno Haible  <bruno@clisp.org>
47619
47620         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
47621         not before, since $(LDADD) often contains libgnu.a.
47622         * modules/striconv-tests (test_striconv_LDADD): Likewise.
47623         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
47624         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
47625         Needed on Cygwin.
47626
47627 2007-04-12  Eric Blake  <ebb9@byu.net>
47628
47629         Work around glibc's failure to flush stdin on fclose.
47630         * lib/closein.c (close_stdin): Flush stdin before closing.
47631
47632         Work around glibc's failure to reset seekable stdin on exit.
47633         * modules/closein: New module.
47634         * lib/closein.c: New file.
47635         * lib/closein.h: Likewise.
47636         * m4/closein.m4: Likewise.
47637         * MODULES.html.sh (File stream based Input/Output): Document it.
47638
47639 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47640
47641         * gnulib-tool: Rename generated 'autobuild' script to
47642         'do-autobuild' in --create-megatestdir output.
47643
47644         * doc/gnulib.texi (Build robot for gnulib): Fix.
47645
47646 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47647
47648         * modules/sysexits (Depends-on): Add absolute-header.
47649
47650 2007-04-12  Eric Blake  <ebb9@byu.net>
47651
47652         No need to preserve errno on success.
47653         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
47654         Reported by Bruno Haible.
47655
47656 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47657
47658         * MODULES.html.sh (Support for maintaining and releasing
47659         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
47660
47661 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47662
47663         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
47664
47665 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47666
47667         * modules/autobuild: New module.
47668
47669         * m4/autobuild.m4: New file.
47670
47671 2007-04-11  Bruno Haible  <bruno@clisp.org>
47672
47673         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
47674         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
47675         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
47676         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
47677         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47678         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47679         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47680         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47681         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47682         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47683         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
47684         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47685         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47686         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
47687         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47688         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47689         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
47690         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47691         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47692         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
47693         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47694         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47695         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
47696         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47697         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47698         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
47699         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47700         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47701         Reported by Eric Blake.
47702
47703 2007-04-11  Bruno Haible  <bruno@clisp.org>
47704
47705         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
47706
47707 2007-04-10  Bruno Haible  <bruno@clisp.org>
47708
47709         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
47710         for NaN and Infinity. Needed on FreeBSD 6.1.
47711         * tests/test-vasnprintf-posix.c (test_function): Undo last change
47712         regarding results for "%010a" of Infinity and NaN.
47713         * tests/test-vasprintf-posix.c (test_function): Likewise.
47714         * tests/test-snprintf-posix.h (test_function): Likewise.
47715         * tests/test-sprintf-posix.h (test_function): Likewise.
47716         * tests/test-fprintf-posix.h (test_function): Likewise.
47717         * tests/test-printf-posix.h (test_function): Likewise.
47718         * tests/test-fprintf-posix.out: Likewise.
47719
47720 2007-04-10  Bruno Haible  <bruno@clisp.org>
47721
47722         * modules/locale-tests: New file.
47723         * tests/test-locale.c: New file.
47724
47725         * modules/locale: New file.
47726         * lib/locale_.h: New file.
47727         * m4/locale_h.m4: New file.
47728
47729 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
47730             Bruno Haible  <bruno@clisp.org>
47731
47732         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
47733         be determined, test for availability of the copysignf, copysign,
47734         copysignl functions.
47735         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
47736         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
47737         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
47738
47739 2007-04-09  Eric Blake  <ebb9@byu.net>
47740
47741         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
47742         * modules/stdio (Makefile.am): Support fflush.
47743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47744         * modules/fflush: New file.
47745         * lib/fflush.c: Likewise.
47746         * m4/fflush.m4: Likewise.
47747         * modules/fflush-tests: New test.
47748         * tests/test-fflush.c: Likewise.
47749         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
47750
47751 2007-04-06  Bruno Haible  <bruno@clisp.org>
47752
47753         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
47754         (VASNPRINTF): Use signbit for faster determination whether to print a
47755         minus sign.
47756         * modules/vasnprintf (Files): Remove lib/float+.h.
47757         * modules/fprintf-posix (Depends-on): Add signbit.
47758         * modules/snprintf-posix (Depends-on): Likewise.
47759         * modules/sprintf-posix (Depends-on): Likewise.
47760         * modules/vasnprintf-posix (Depends-on): Likewise.
47761         * modules/vasprintf-posix (Depends-on): Likewise.
47762         * modules/vfprintf-posix (Depends-on): Likewise.
47763         * modules/vsnprintf-posix (Depends-on): Likewise.
47764         * modules/vsprintf-posix (Depends-on): Likewise.
47765
47766 2007-04-06  Bruno Haible  <bruno@clisp.org>
47767
47768         * tests/test-frexp.c (main): Test also the sign bit of zero results.
47769         * tests/test-frexpl.c (main): Likewise.
47770         * tests/test-ldexpl.c (main): Likewise.
47771         * modules/frexp-tests (Depends-on): Add signbit.
47772         * modules/frexpl-tests (Depdends-on): Likewise.
47773         * modules/ldexpl-tests (Depdends-on): Likewise.
47774
47775 2007-04-06  Bruno Haible  <bruno@clisp.org>
47776
47777         * modules/signbit-tests: New file.
47778         * tests/test-signbit.c: New file.
47779
47780         * modules/signbit: New file.
47781         * lib/signbitf.c: New file.
47782         * lib/signbitd.c: New file.
47783         * lib/signbitl.c: New file.
47784         * m4/signbit.m4: New file.
47785         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
47786         (signbit): New macro.
47787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
47788         REPLACE_SIGNBIT.
47789         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
47790         REPLACE_FREXPL into math.h.
47791
47792 2007-04-06  Bruno Haible  <bruno@clisp.org>
47793
47794         * modules/isnanf-nolibm-tests: New file.
47795         * tests/test-isnanf.c: New file.
47796
47797         * modules/isnanf-nolibm: New file.
47798         * lib/isnanf.h: New file.
47799         * lib/isnanf.c: New file.
47800         * lib/isnan.c: Consider the USE_FLOAT macro.
47801         * m4/isnanf.m4: New file.
47802
47803 2007-04-06  Bruno Haible  <bruno@clisp.org>
47804
47805         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
47806         (Link): New section.
47807
47808         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
47809
47810 2007-04-06  Bruno Haible  <bruno@clisp.org>
47811
47812         Assume the 'long double' type.
47813         * m4/longdouble.m4: Remove file.
47814         * config/srclist.txt: Don't mention longdouble.m4.
47815         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
47816         * lib/float+.h: Likewise.
47817         * lib/frexp.c: Likewise.
47818         * lib/printf-args.h: Likewise.
47819         * lib/printf-args.c: Likewise.
47820         * lib/printf-frexp.c: Likewise.
47821         * lib/printf-parse.c: Likewise.
47822         * lib/vasnprintf.c: Likewise.
47823         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
47824         * m4/intl.m4: Likewise.
47825         * m4/isnanl.m4: Likewise.
47826         * m4/printf.m4: Likewise.
47827         * m4/printf-frexpl.m4: Likewise.
47828         * m4/vasnprintf.m4: Likewise.
47829         * modules/allocsa (Files): Remove m4/longdouble.m4.
47830         * modules/gettext (Files): Likewise.
47831         * modules/relocatable-prog-wrapper (Files): Likewise.
47832         * modules/vasnprintf (Files): Likewise.
47833         * modules/isnanl (Files): Likewise.
47834         (Include): Simplify.
47835         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
47836         (Include): Simplify.
47837         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
47838         (Include): Simplify.
47839         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
47840         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47841         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
47842         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47843         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
47844         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47845         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
47846         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47847         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
47848         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47849         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
47850         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47851         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
47852         * tests/test-isnanl.c: Likewise.
47853         * tests/test-snprintf-posix.h: Likewise.
47854         * tests/test-sprintf-posix.h: Likewise.
47855         * tests/test-vasnprintf-posix.c: Likewise.
47856         * tests/test-vasnprintf-posix2.c: Likewise.
47857         * tests/test-vasprintf-posix.c: Likewise.
47858
47859 2007-04-06  Bruno Haible  <bruno@clisp.org>
47860
47861         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
47862         * lib/math_.h [__DECC]: Include the overridden include file through
47863         #include_next, outside the double-inclusion guard.
47864         * lib/stdio_.h [__DECC]: Likewise.
47865         * lib/stdlib_.h [__DECC]: Likewise.
47866         * lib/string_.h [__DECC]: Likewise.
47867         * lib/time_.h [__DECC]: Likewise.
47868         * lib/wchar_.h [__DECC]: Likewise.
47869         * lib/wctype_.h [__DECC]: Likewise.
47870         * lib/inttypes_.h [__DECC]: Likewise.
47871         Reported by Albert Chin <china@thewrittenword.com> in
47872         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
47873
47874 2007-04-04  Eric Blake  <ebb9@byu.net>
47875
47876         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
47877         1.5.x.
47878
47879 2007-04-04  Bruno Haible  <bruno@clisp.org>
47880
47881         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
47882         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
47883
47884 2007-04-04  Bruno Haible  <bruno@clisp.org>
47885
47886         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
47887         results for "%010a" of Infinity and NaN.
47888         * tests/test-vasprintf-posix.c (test_function): Likewise.
47889         * tests/test-snprintf-posix.h (test_function): Likewise.
47890         * tests/test-sprintf-posix.h (test_function): Likewise.
47891         * tests/test-fprintf-posix.h (test_function): Remove these tests.
47892         * tests/test-printf-posix.h (test_function): Likewise.
47893         * tests/test-fprintf-posix.out: Update.
47894         Needed for FreeBSD 6.1.
47895
47896 2007-04-04  Bruno Haible  <bruno@clisp.org>
47897
47898         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
47899         directly used by the gnulib modules nor by gnulib-tool.
47900
47901 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
47902
47903         * DEPENDENCIES: Give overall description of version dependency
47904         desirability.  Use more-typical names for apps.
47905         Add shell, coreutils, diffutils, grep, tar, gzip.
47906
47907 2007-04-04  Simon Josefsson  <simon@josefsson.org>
47908
47909         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
47910
47911 2007-04-04  Karl Berry  <karl@gnu.org>
47912
47913         * MODULES.html.sh (func_module): missing '.
47914
47915 2007-04-03  Bruno Haible  <bruno@clisp.org>
47916
47917         * modules/argmatch-tests (Makefile.am): New variable
47918         test_argmatch_LDADD.
47919         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
47920         * modules/array-list-tests (Makefile.am): New variable
47921         test_array_list_LDADD.
47922         * modules/array-oset-tests (Makefile.am): New variable
47923         test_array_oset_LDADD.
47924         * modules/avltree-list-tests (Makefile.am): New variable
47925         test_avltree_list_LDADD.
47926         * modules/avltree-oset-tests (Makefile.am): New variable
47927         test_avltree_oset_LDADD.
47928         * modules/avltreehash-list-tests (Makefile.am): New variable
47929         test_avltreehash_list_LDADD.
47930         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
47931         test_canonicalize_lgpl_LDADD.
47932         * modules/carray-list-tests (Makefile.am): New variable
47933         test_carray_list_LDADD.
47934         * modules/dirname-tests (Makefile.am): New variable
47935         test_dirname_LDADD.
47936         * modules/linked-list-tests (Makefile.am): New variable
47937         test_linked_list_LDADD.
47938         * modules/linkedhash-list-tests (Makefile.am): New variable
47939         test_linkedhash_list_LDADD.
47940         * modules/rbtree-list-tests (Makefile.am): New variable
47941         test_rbtree_list_LDADD.
47942         * modules/rbtree-oset-tests (Makefile.am): New variable
47943         test_rbtree_oset_LDADD.
47944         * modules/rbtreehash-list-tests (Makefile.am): New variable
47945         test_rbtreehash_list_LDADD.
47946         * modules/xvasprintf-tests (Makefile.am): New variable
47947         test_xvasprintf_LDADD.
47948         Reported by Eric Blake.
47949
47950 2007-04-03  Eric Blake  <ebb9@byu.net>
47951
47952         * DEPENDENCIES: Weaken m4 requirements.
47953
47954 2007-04-03  Bruno Haible  <bruno@clisp.org>
47955
47956         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
47957         * modules/isnanl-tests (configure.ac): Likewise.
47958
47959 2007-04-03  Ben Pfaff  <blp@gnu.org>
47960
47961         * modules/iconv_open: Add $(srcdir)/ to source directory
47962         references in Makefile fragments that call gperf, to fix VPATH
47963         builds.
47964
47965 2007-04-03  Bruno Haible  <bruno@clisp.org>
47966
47967         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
47968         * lib/ldexpl.c: Undo last change.
47969
47970 2007-04-03  Bruno Haible  <bruno@clisp.org>
47971
47972         * modules/printf-frexpl (Depends-on): Undo last change.
47973         (Files): Add m4/ldexpl.m4.
47974
47975 2007-04-03  Bruno Haible  <bruno@clisp.org>
47976
47977         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
47978         * modules/isnanl (Link): New section.
47979
47980         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
47981         * modules/frexp (Link): New section.
47982
47983         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
47984         * modules/frexpl (Link): New section.
47985
47986         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
47987         * modules/ldexpl (Link): New section.
47988
47989 2007-04-03  Bruno Haible  <bruno@clisp.org>
47990
47991         * modules/TEMPLATE-EXTENDED: New file.
47992         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
47993
47994 2007-04-03  Bruno Haible  <bruno@clisp.org>
47995
47996         * DEPENDENCIES: New file.
47997         Suggested by Simon Josefsson.
47998
47999 2007-04-03  Bruno Haible  <bruno@clisp.org>
48000
48001         * doc/gnulib.texi: Escape @.
48002
48003 2007-04-03  James Youngman  <jay@gnu.org>
48004         and Paul Eggert  <eggert@cs.ucla.edu>
48005
48006         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
48007         birthtime on all systems that have birthtime, not just those which
48008         use st_birthtimensec rather than st_birthtim.  Putting zero in
48009         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
48010         that the birth time is not available for files on an NFS mount.
48011
48012 2007-04-03  Simon Josefsson  <simon@josefsson.org>
48013
48014         * modules/memxor: Move back from crypto/, suggested by Bruno.
48015         * modules/crypto/hmac-sha1: Fix memxor dependency.
48016
48017         * modules/crypto/gc: Moved from ../.
48018
48019 2007-04-02  Eric Blake  <ebb9@byu.net>
48020
48021         * lib/ldexpl.c (includes): Avoid libm.
48022
48023         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
48024
48025 2007-04-02  Bruno Haible  <bruno@clisp.org>
48026
48027         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
48028         on IRIX.
48029
48030 2007-04-02  Bruno Haible  <bruno@clisp.org>
48031
48032         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
48033         x86 or x86_64 platforms running MacOS X.
48034         Reported by Ryan Schmidt <@ryandesign.com>.
48035
48036 2007-04-02  Bruno Haible  <bruno@clisp.org>
48037
48038         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
48039         i386.
48040
48041 2007-04-01  Simon Josefsson  <simon@josefsson.org>
48042
48043         * modules/crypto/arcfour: Moved from ../.
48044         * modules/crypto/arcfour-tests: Moved from ../.
48045         * modules/crypto/arctwo: Moved from ../.
48046         * modules/crypto/arctwo-tests: Moved from ../.
48047         * modules/crypto/des: Moved from ../.
48048         * modules/crypto/des-tests: Moved from ../.
48049         * modules/crypto/gc-arcfour: Moved from ../.
48050         * modules/crypto/gc-arcfour-tests: Moved from ../.
48051         * modules/crypto/gc-arctwo: Moved from ../.
48052         * modules/crypto/gc-arctwo-tests: Moved from ../.
48053         * modules/crypto/gc-des: Moved from ../.
48054         * modules/crypto/gc-des-tests: Moved from ../.
48055         * modules/crypto/gc-hmac-md5: Moved from ../.
48056         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
48057         * modules/crypto/gc-hmac-sha1: Moved from ../.
48058         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
48059         * modules/crypto/gc-md2: Moved from ../.
48060         * modules/crypto/gc-md2-tests: Moved from ../.
48061         * modules/crypto/gc-md4: Moved from ../.
48062         * modules/crypto/gc-md4-tests: Moved from ../.
48063         * modules/crypto/gc-md5: Moved from ../.
48064         * modules/crypto/gc-md5-tests: Moved from ../.
48065         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
48066         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
48067         * modules/crypto/gc-random: Moved from ../.
48068         * modules/crypto/gc-rijndael: Moved from ../.
48069         * modules/crypto/gc-rijndael-tests: Moved from ../.
48070         * modules/crypto/gc-sha1: Moved from ../.
48071         * modules/crypto/gc-sha1-tests: Moved from ../.
48072         * modules/crypto/gc-tests: Moved from ../.
48073         * modules/crypto/hmac-md5: Moved from ../.
48074         * modules/crypto/hmac-md5-tests: Moved from ../.
48075         * modules/crypto/hmac-sha1: Moved from ../.
48076         * modules/crypto/hmac-sha1-tests: Moved from ../.
48077         * modules/crypto/md2: Moved from ../.
48078         * modules/crypto/md2-tests: Moved from ../.
48079         * modules/crypto/md4: Moved from ../.
48080         * modules/crypto/md4-tests: Moved from ../.
48081         * modules/crypto/md5: Moved from ../.
48082         * modules/crypto/md5-tests: Moved from ../.
48083         * modules/crypto/memxor: Moved from ../.
48084         * modules/crypto/rijndael: Moved from ../.
48085         * modules/crypto/rijndael-tests: Moved from ../.
48086         * modules/crypto/sha1: Moved from ../.
48087
48088 2007-03-30  James Youngman  <jay@gnu.org>
48089
48090         * tests/test-stat-time.c (prepare_test): use chmod() rather than
48091         rename() to change the ctime of a file (because ctime is unaffected
48092         by rename on jfs2 on AIX 5.1).
48093         (main): Start by doing cleanup, in case a previous run failed leaving
48094         test files behind.
48095
48096 2007-03-31  Bruno Haible  <bruno@clisp.org>
48097
48098         Support old proprietary implementations of iconv.
48099         * modules/iconv_open: New file.
48100         * lib/iconv_.h: New file.
48101         * m4/iconv_h.m4: New file.
48102         * lib/iconv_open.c: New file.
48103         * lib/iconv_open-aix.gperf: New file.
48104         * lib/iconv_open-hpux.gperf: New file.
48105         * lib/iconv_open-irix.gperf: New file.
48106         * lib/iconv_open-osf.gperf: New file.
48107         * m4/iconv_open.m4: New file.
48108         * modules/linebreak (Depends-on): Add iconv_open.
48109         * modules/striconv (Depends-on): Likewise.
48110         * modules/striconveh (Depends-on): Likewise.
48111         * modules/unicodeio (Depends-on): Likewise.
48112         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
48113         (iconv_t)(-1).
48114         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
48115         conversion if cd is (iconv_t)(-1).
48116         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
48117         is not possible.
48118
48119 2007-03-31  Bruno Haible  <bruno@clisp.org>
48120
48121         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
48122         work on Solaris either. Protect also second use of "autodetect_jp".
48123
48124 2007-03-31  Bruno Haible  <bruno@clisp.org>
48125
48126         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
48127         the function is not present.
48128
48129 2007-03-31  Bruno Haible  <bruno@clisp.org>
48130
48131         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
48132         the function is not present.
48133
48134 2007-03-31  Bruno Haible  <bruno@clisp.org>
48135
48136         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
48137         a bug in HP-UX iconv_open().
48138
48139 2007-03-31  Bruno Haible  <bruno@clisp.org>
48140
48141         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
48142         (Mathematics <math.h>): New section, add fpieee.
48143         (Input/output <stdio.h>): Add fseterr.
48144         (Mathematics <math.h>): New section, add printf-frexp.
48145         (Container data structures): Add sublist.
48146         (Core language properties): Add fpucw, inline.
48147         (Functions for greatest-width integer types <inttypes.h>): Add
48148         imaxabs, imaxdiv, inttypes.
48149         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
48150         isnanl-nolibm, ldexp.
48151         (Mathematics <math.h>): New section, add printf-frexpl.
48152         (Support for systems lacking POSIX:2001): Add fprintf-posix,
48153         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
48154         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
48155         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
48156         (Unicode string functions): Add unistr/u*-mbtoucr.
48157         (Java): Add javacomp-script, javaexec-script.
48158         (C#): Add csharpcomp-script, csharpexec-script.
48159         (Support for building libraries and executables): Add havelib,
48160         relocatable-*.
48161         (Support for maintaining and releasing projects): Renamed from
48162         'Support for maintaining and release projects'. Add announce-gen.
48163
48164 2007-03-31  Bruno Haible  <bruno@clisp.org>
48165
48166         * README: Talk primarily about git.
48167         (git and CVS): Renamed from CVS.
48168         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
48169         gnulib is available through git.
48170         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
48171
48172 2007-03-30  Bruno Haible  <bruno@clisp.org>
48173
48174         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
48175         * lib/poll_.h: Likewise.
48176         * lib/stat_.h: Likewise.
48177         * lib/sys_time_.h: Likewise.
48178         * lib/sysexit_.h: Likewise.
48179         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
48180         * lib/stdbool_.h: Likewise.
48181         * lib/byteswap_.h: Add double-inclusion guard.
48182
48183 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
48184
48185         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
48186
48187 2007-03-30  Karl Berry  <karl@gnu.org>
48188
48189         * config/srclist-update: double space after USA in the license
48190         substitution, since that's how it's usually (?) written.
48191
48192 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
48193
48194         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
48195         reported by Bruno Haible.
48196
48197 2007-03-29  Bruno Haible  <bruno@clisp.org>
48198
48199         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
48200         a bug in AIX iconv().
48201
48202 2007-03-29  Bruno Haible  <bruno@clisp.org>
48203
48204         * modules/ldexpl-tests: New file.
48205         * tests/test-ldexpl.c: New file.
48206
48207 2007-03-29  Bruno Haible  <bruno@clisp.org>
48208
48209         * lib/ldexpl.c: Include fpucw.h.
48210         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
48211         multiplication.
48212         * modules/ldexpl (Depends-on): Add fpucw.
48213
48214 2007-03-29  Bruno Haible  <bruno@clisp.org>
48215
48216         * modules/ldexpl: New file.
48217         * m4/ldexpl.m4: New file.
48218         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
48219         set.
48220         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
48221         REPLACE_LDEXPL.
48222         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
48223         REPLACE_LDEXPL.
48224         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
48225         gl_FUNC_LDEXPL_WORKS.
48226         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
48227         * modules/mathl (Files): Remove lib/ldexpl.c.
48228         (Depends-on): Add ldexpl.
48229
48230 2007-03-29  Bruno Haible  <bruno@clisp.org>
48231
48232         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
48233
48234 2007-03-29  Bruno Haible  <bruno@clisp.org>
48235
48236         * tests/test-striconveh.c (main): Don't assume that a direct conversion
48237         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
48238         and possibly also HP-UX.
48239         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
48240         work on AIX, IRIX, HP-UX, OSF/1.
48241         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
48242         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
48243         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
48244         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
48245         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
48246         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
48247
48248 2007-03-29  Bruno Haible  <bruno@clisp.org>
48249
48250         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
48251
48252 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
48253
48254         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
48255         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
48256
48257 2007-03-29  Eric Blake  <ebb9@byu.net>
48258
48259         * lib/acl-internal.h: Remove redundant include.
48260         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
48261         Cygwin when a file is locked.
48262
48263 2007-03-29  Bruno Haible  <bruno@clisp.org>
48264
48265         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
48266         file.
48267         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
48268
48269 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
48270
48271         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
48272         try to remove a parent directory if the child couldn't be removed
48273         (except for the first rmdir, which could fail because the child
48274         doesn't exist).  Problem reported by Jeff Blaine in
48275         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
48276
48277 2007-03-28  Bruno Haible  <bruno@clisp.org>
48278
48279         * lib/striconveh.c (utf8conv_carefully): New function.
48280         (mem_cd_iconveh_internal): Invoke it.
48281
48282 2007-03-28  Bruno Haible  <bruno@clisp.org>
48283
48284         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
48285         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
48286         input.
48287         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
48288         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
48289         unistr/u8-uctomb.
48290
48291 2007-03-28  Bruno Haible  <bruno@clisp.org>
48292
48293         * modules/unistr/u8-mbtoucr: New file.
48294         * lib/unistr/u8-mbtoucr.c: New file.
48295         * modules/unistr/u16-mbtoucr: New file.
48296         * lib/unistr/u16-mbtoucr.c: New file.
48297         * modules/unistr/u16-mbtoucr: New file.
48298         * lib/unistr/u16-mbtoucr.c: New file.
48299         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
48300
48301 2007-03-27  Simon Josefsson  <simon@josefsson.org>
48302             Bruno Haible  <bruno@clisp.org>
48303
48304         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
48305         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
48306         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
48307
48308         * m4/stdio_h.m4: Add stubs for vasprintf too.
48309
48310         * modules/stdio: Support vasprintf in sed command.
48311
48312         * modules/vasprintf: Depend on stdio for prototypes.  Remove
48313         vasprintf.h.  Add stdio module indicator.
48314
48315         * lib/stdio_.h: Declare asprintf and vasprintf, based on
48316         vasprintf.h.
48317
48318         * lib/vasprintf.h: File removed.
48319
48320         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
48321         * lib/vasprintf.c: Ditto.
48322         * lib/xvasprintf.c: Ditto.
48323         * tests/test-vasprintf-posix.c: Ditto.
48324         * tests/test-vasprintf.c: Ditto.
48325
48326 2007-03-27  Bruno Haible  <bruno@clisp.org>
48327
48328         Make vasnprintf multithread-safe.
48329         * lib/vasnprintf.c (decimal_point_char): New function.
48330         (VASNPRINTF): Use it.
48331         Suggested by Simon Josefsson.
48332
48333 2007-03-27  Eric Blake  <ebb9@byu.net>
48334
48335         Support sub-second birthtime on cygwin.
48336         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
48337         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
48338         (get_stat_birthtime): Also work with st_birthtim.
48339
48340 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
48341
48342         * lib/stat-time.h (USE_BIRTHTIME): Remove.
48343         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
48344         (get_stat_birthtime_ns): Do not try to use "spare" fields.
48345         (get_stat_birthtime_ns): Simplify compile-time tests.
48346         (get_stat_birthtime): Change the API to look like
48347         get_stat_mtime etc., except return a negative tv_nsec on error.
48348         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
48349         Don't check for "spare" fields.
48350         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
48351         or for struct stat.st_birthtime, as these tests aren't used.
48352         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
48353
48354 2007-03-27  Bruno Haible  <bruno@clisp.org>
48355
48356         * lib/stat-time.h: Include <sys/stat.h>.
48357
48358 2007-03-27  James Youngman  <jay@gnu.org>
48359
48360         * lib/stat-time.h (get_stat_birthtime): New function for
48361           retrieving st_birthtime as provided by UFS2 (hence *BSD).
48362         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
48363           and its variants.
48364         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
48365         * modules/stat-time-test: New file.
48366         * tests/test-stat-time.c: New test, devised by Bruno Haible.
48367
48368 2007-03-26  Bruno Haible  <bruno@clisp.org>
48369
48370         Better support of signalling NaNs.
48371         * lib/atanl.c: Include isnanl.h.
48372         (atanl): Perform test for NaN at the beginning of the function and
48373         through a call to isnanl.
48374         * lib/cosl.c: Include isnanl.h.
48375         (cosl): Perform test for NaN at the beginning of the function and
48376         through a call to isnanl.
48377         * lib/ldexpl.c: Include isnanl.h.
48378         (ldexpl): Perform test for NaN through a call to isnanl.
48379         * lib/logl.c: Include isnanl.h.
48380         (logl): Perform test for NaN at the beginning of the function and
48381         through a call to isnanl.
48382         * lib/sinl.c: Include isnanl.h.
48383         (sinl): Perform test for NaN at the beginning of the function and
48384         through a call to isnanl.
48385         * lib/sqrtl.c: Include isnanl.h.
48386         (sqrtl): Perform test for NaN at the beginning of the function and
48387         through a call to isnanl.
48388         * lib/tanl.c: Include isnanl.h.
48389         (tanl): Perform test for NaN at the beginning of the function and
48390         through a call to isnanl.
48391         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
48392         * modules/mathl (Depends-on): Add isnanl.
48393
48394 2007-03-26  Eric Blake  <ebb9@byu.net>
48395
48396         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
48397         regression in logic sense of previous patch.
48398
48399 2007-03-26  Bruno Haible  <bruno@clisp.org>
48400
48401         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
48402         unportable shell command "if ! ...".
48403         Reported by Ralf Wildenhues.
48404
48405 2007-03-25  Bruno Haible  <bruno@clisp.org>
48406
48407         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
48408         <sysexits.h> file, and only add EX_CONFIG.
48409         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
48410         absolute file name and whether it is sufficient. Substitute also
48411         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
48412         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
48413         ABSOLUTE_SYSEXITS_H into sysexits.h.
48414
48415 2007-03-25  Bruno Haible  <bruno@clisp.org>
48416
48417         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
48418         hints is NULL.
48419
48420 2007-03-25  Bruno Haible  <bruno@clisp.org>
48421
48422         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
48423         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
48424
48425 2007-03-25  Bruno Haible  <bruno@clisp.org>
48426
48427         * lib/vasnprintf.c: Include langinfo.h.
48428         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
48429         multithread-safe.
48430         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
48431         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
48432         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48433         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48434         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48435         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48436         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48437         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
48438         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48439         Reported by Simon Josefsson.
48440
48441 2007-03-25  Bruno Haible  <bruno@clisp.org>
48442
48443         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
48444         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
48445         * modules/vasnprintf (Depends-on): Add stdint.
48446
48447 2007-03-25  Bruno Haible  <bruno@clisp.org>
48448
48449         * modules/fpieee: New file.
48450         * m4/fpieee.m4: New file.
48451         * modules/isnan-nolibm (Depends-on): Add fpieee.
48452         * modules/isnanl-nolibm (Depends-on): Add fpieee.
48453         * modules/isnanl (Depends-on): Add fpieee.
48454
48455 2007-03-25  Bruno Haible  <bruno@clisp.org>
48456
48457         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
48458
48459 2007-03-25  Bruno Haible  <bruno@clisp.org>
48460
48461         Avoid test failures on IRIX 6.5.
48462         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
48463         (main): Use it.
48464         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
48465         macros.
48466         (main): Use them.
48467
48468 2007-03-25  Bruno Haible  <bruno@clisp.org>
48469
48470         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
48471         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
48472         exists but doesn't work.
48473         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
48474         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
48475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
48476         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
48477
48478 2007-03-25  Bruno Haible  <bruno@clisp.org>
48479
48480         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
48481         returns inf. Needed on IRIX 6.5.
48482
48483 2007-03-25  Bruno Haible  <bruno@clisp.org>
48484
48485         * tests/test-frexpl.c: Include isnanl-nolibm.h.
48486         (main): Use isnanl instead of x != x idiom.
48487         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
48488
48489         * tests/test-frexp.c: Include isnan.h.
48490         (main): Use isnan instead of x != x idiom.
48491         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
48492
48493 2007-03-25  Bruno Haible  <bruno@clisp.org>
48494
48495         * tests/test-frexp.c (NaN): New function/macro.
48496         (main): Use it instead of 0.0 / 0.0.
48497         * tests/test-isnan.c (NaN): New function/macro.
48498         (main): Use it instead of 0.0 / 0.0.
48499         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
48500         (test_function): Use it instead of 0.0 / 0.0.
48501         * tests/test-vasprintf-posix.c (NaN): New function/macro.
48502         (test_function): Use it instead of 0.0 / 0.0.
48503         * tests/test-snprintf-posix.h (NaN): New function/macro.
48504         (test_function): Use it instead of 0.0 / 0.0.
48505         * tests/test-sprintf-posix.h (NaN): New function/macro.
48506         (test_function): Use it instead of 0.0 / 0.0.
48507         * tests/test-fprintf-posix.h (NaN): New function/macro.
48508         (test_function): Use it instead of 0.0 / 0.0.
48509         * tests/test-printf-posix.h (NaN): New function/macro.
48510         (test_function): Use it instead of 0.0 / 0.0.
48511
48512         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
48513
48514 2007-03-25  Bruno Haible  <bruno@clisp.org>
48515
48516         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
48517
48518 2007-03-25  Bruno Haible  <bruno@clisp.org>
48519
48520         * lib/regexec.c (merge_state_with_log): Make static.
48521
48522 2007-03-25  Bruno Haible  <bruno@clisp.org>
48523
48524         * lib/trigl.c (kernel_rem_pio2): Make static.
48525
48526 2007-03-25  Bruno Haible  <bruno@clisp.org>
48527
48528         * lib/sincosl.c (sincosl_table): Make static.
48529
48530 2007-03-25  Bruno Haible  <bruno@clisp.org>
48531
48532         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
48533         if the compiler does not support C99.
48534
48535 2007-03-25  Bruno Haible  <bruno@clisp.org>
48536
48537         * modules/time (Makefile.am): Ensure all rule action lines start with a
48538         tab.
48539
48540 2007-03-24  Bruno Haible  <bruno@clisp.org>
48541
48542         * modules/tsearch-tests: New file.
48543         * tests/test-tsearch.sh: New file.
48544         * tests/test-tsearch.c: New file, mostly copied from glibc.
48545
48546         * modules/search-tests: New file.
48547         * tests/test-search.c: New file.
48548
48549         * modules/search: New file.
48550         * lib/search_.h: New file, incorporating lib/tsearch.h.
48551         * m4/search_h.m4: New file.
48552         * lib/tsearch.h: Remove file.
48553         * lib/tsearch.c: Include search.h instead of tsearch.h.
48554         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
48555         HAVE_TSEARCH.
48556         * modules/tsearch (Files): Remove lib/tsearch.h.
48557         (Depends-on): Add search.
48558         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
48559         (Include): Change tsearch.h into search.h.
48560
48561 2007-03-24  Bruno Haible  <bruno@clisp.org>
48562
48563         * modules/fpucw: New file.
48564         * lib/fpucw.h: New file.
48565         * lib/frexp.c: Include fpucw.h.
48566         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
48567         (FUNC): Use them.
48568         * lib/printf-frexp.c: Include fpucw.h.
48569         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
48570         (FUNC): Use them.
48571         * lib/vasnprintf.c: Include fpucw.h.
48572         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
48573         'long double' calculations.
48574         * tests/test-frexpl.c: Include fpucw.h.
48575         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
48576         * tests/test-printf-frexpl.c: Include fpucw.h.
48577         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
48578         * modules/frexpl (Depends-on): Add fpucw.
48579         * modules/printf-frexpl (Depends-on): Likewise.
48580         * modules/fprintf-posix (Depends-on): Likewise.
48581         * modules/snprintf-posix (Depends-on): Likewise.
48582         * modules/sprintf-posix (Depends-on): Likewise.
48583         * modules/vasnprintf-posix (Depends-on): Likewise.
48584         * modules/vasprintf-posix (Depends-on): Likewise.
48585         * modules/vfprintf-posix (Depends-on): Likewise.
48586         * modules/vsnprintf-posix (Depends-on): Likewise.
48587         * modules/vsprintf-posix (Depends-on): Likewise.
48588         * modules/frexpl-tests (Depends-on): Likewise.
48589         * modules/printf-frexpl-tests (Depends-on): Likewise.
48590
48591 2007-03-24  Bruno Haible  <bruno@clisp.org>
48592
48593         * lib/float+.h: New file.
48594         * lib/isnan.c: Include float+.h.
48595         (SIZE): New macro.
48596         (FUNC): Compare only SIZE bytes of the value.
48597         * lib/vasnprintf.c: Include float+.h.
48598         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
48599         SIZEOF_LDBL or SIZEOF_DBL bytes.
48600         * modules/isnan-nolibm (Files): Add lib/float+.h.
48601         * modules/isnanl-nolibm (Files): Add lib/float+.h.
48602         * modules/isnanl (Files): Add lib/float+.h.
48603         * modules/vasnprintf (Files): Add lib/float+.h.
48604
48605 2007-03-24  Bruno Haible  <bruno@clisp.org>
48606
48607         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
48608         include isnanl-nolibm.h.
48609
48610 2007-03-24  Bruno Haible  <bruno@clisp.org>
48611
48612         * tests/test-read-file.c (main): Don't produce spurious output for
48613         expected situations. Make the test fail if it encountered unexpected
48614         results.
48615
48616 2007-03-24  Bruno Haible  <bruno@clisp.org>
48617
48618         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
48619         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
48620
48621 2007-03-24  Bruno Haible  <bruno@clisp.org>
48622
48623         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
48624
48625 2007-03-24  Bruno Haible  <bruno@clisp.org>
48626
48627         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
48628         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
48629
48630         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
48631         * modules/utf8-ucs4: Turn into a symbolic link to module
48632         unistr/u8-mbtouc.
48633
48634         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
48635         utf8-ucs4-unsafe.
48636         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
48637         unistr/u8-mbtouc-unsafe.
48638
48639         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
48640         * modules/utf16-ucs4: Turn into a symbolic link to module
48641         unistr/u16-mbtouc.
48642
48643         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
48644         utf16-ucs4-unsafe.
48645         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
48646         unistr/u16-mbtouc-unsafe.
48647
48648         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
48649         * modules/ucs4-utf8: Turn into a symbolic link to module
48650         unistr/u8-ubtomb.
48651
48652         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
48653         * modules/ucs4-utf16: Turn into a symbolic link to module
48654         unistr/u16-ubtomb.
48655
48656 2007-03-24  Bruno Haible  <bruno@clisp.org>
48657
48658         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
48659         Enable the function only if HAVE_INLINE.
48660         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
48661         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
48662         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
48663         Enable the function only if HAVE_INLINE.
48664         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
48665         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
48666         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
48667         Enable the function only if HAVE_INLINE.
48668         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
48669         Enable the function only if HAVE_INLINE.
48670         * modules/utf8-ucs4: Update.
48671         * modules/utf8-ucs4-unsafe: Update.
48672         * modules/utf16-ucs4: Update.
48673         * modules/utf16-ucs4-unsafe: Update.
48674         * modules/ucs4-utf8: Update.
48675         * modules/ucs4-utf16: Update.
48676
48677 2007-03-24  Bruno Haible  <bruno@clisp.org>
48678
48679         * lib/utf8-ucs4.h: Remove file.
48680         * lib/utf8-ucs4-unsafe.h: Remove file.
48681         * lib/utf16-ucs4.h: Remove file.
48682         * lib/utf16-ucs4-unsafe.h: Remove file.
48683         * lib/ucs4-utf8.h: Remove file.
48684         * lib/ucs4-utf16.h: Remove file.
48685         * lib/unistr.h: Include their previous contents.
48686         * m4/utf-ucs4.m4: Remove file.
48687         * m4/ucs4-utf.m4: Remove file.
48688         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
48689         (Depends-on): Add unistr/base.
48690         (configure.ac): Remove gl_UTF_UCS4.
48691         (Makefile.am): Update.
48692         (Include): Change to unistr.h.
48693         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
48694         (Depends-on): Add unistr/base.
48695         (configure.ac): Remove gl_UTF_UCS4.
48696         (Makefile.am): Update.
48697         (Include): Change to unistr.h.
48698         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
48699         (Depends-on): Add unistr/base.
48700         (configure.ac): Remove gl_UTF_UCS4.
48701         (Makefile.am): Update.
48702         (Include): Change to unistr.h.
48703         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
48704         (Depends-on): Add unistr/base.
48705         (configure.ac): Remove gl_UTF_UCS4.
48706         (Makefile.am): Update.
48707         (Include): Change to unistr.h.
48708         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
48709         (Depends-on): Add unistr/base.
48710         (configure.ac): Remove gl_UCS4_UTF.
48711         (Makefile.am): Update.
48712         (Include): Change to unistr.h.
48713         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
48714         (Depends-on): Add unistr/base.
48715         (configure.ac): Remove gl_UCS4_UTF.
48716         (Makefile.am): Update.
48717         (Include): Change to unistr.h.
48718         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
48719         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
48720         utf8-ucs4-unsafe.h.
48721         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
48722         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
48723         utf16-ucs4-unsafe.h.
48724         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
48725         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
48726         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
48727         * lib/unistr/u8-strchr.c: Likewise.
48728         * lib/unistr/u8-strrchr.c: Likewise.
48729         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
48730         * lib/unistr/u16-strchr.c: Likewise.
48731         * lib/unistr/u16-strrchr.c: Likewise.
48732         * lib/striconveh.c: Update.
48733         * lib/linebreak.c: Update.
48734
48735 2007-03-24  Bruno Haible  <bruno@clisp.org>
48736
48737         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
48738         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
48739
48740 2007-03-22  Bruno Haible  <bruno@clisp.org>
48741
48742         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
48743
48744 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
48745
48746         * MODULES.html.sh (File system functions): New module write-any-file.
48747         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
48748         * m4/write-any-file.m4: New files.
48749
48750 2007-03-23  Eric Blake  <ebb9@byu.net>
48751
48752         * gnulib-tool: Rearrange space-tab sequences, since some editors
48753         like to eat them.
48754
48755 2007-03-23  Eric Blake  <ebb9@byu.net>
48756
48757         * lib/version-etc.c (version_etc_va): Update license wording to
48758         be more concise.  Recommended by Richard Stallman.
48759
48760 2007-03-22  Bruno Haible  <bruno@clisp.org>
48761
48762         * lib/poll.c (MSG_PEEK): New fallback definition.
48763
48764 2007-03-22  Bruno Haible  <bruno@clisp.org>
48765
48766         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
48767         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
48768         (main): Update.
48769         Fixes a compilation error on BeOS.
48770
48771 2007-03-22  Bruno Haible  <bruno@clisp.org>
48772
48773         * modules/frexpl-tests: New file.
48774         * tests/test-frexpl.c: New file.
48775
48776         * modules/frexpl: New file.
48777         * m4/frexpl.m4: New file.
48778         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
48779         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
48780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
48781         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
48782         (Depends-on): Add frexpl. Remove isnanl-nolibm.
48783         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
48784
48785 2007-03-22  Bruno Haible  <bruno@clisp.org>
48786
48787         * lib/frexpl.c: Share code with lib/frexp.c.
48788         * modules/mathl (Files): Add lib/frexp.c.
48789         (Depends-on): Add isnanl-nolibm.
48790
48791 2007-03-22  Bruno Haible  <bruno@clisp.org>
48792
48793         * modules/printf-frexp (Files): Add m4/frexp.m4.
48794         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
48795         only if the found frexp function actually works.
48796
48797 2007-03-22  Bruno Haible  <bruno@clisp.org>
48798
48799         * lib/frexp.c: Remove older implementation that uses divisions.
48800
48801 2007-03-21  Bruno Haible  <bruno@clisp.org>
48802
48803         * modules/frexp-tests: New file.
48804         * tests/test-frexp.c: New file.
48805
48806         * modules/frexp: New file.
48807         * lib/frexp.c: New file.
48808         * m4/frexp.m4: New file.
48809         * lib/math_.h (frexp): New declaration.
48810         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
48811         REPLACE_FREXP.
48812         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
48813
48814 2007-03-21  Bruno Haible  <bruno@clisp.org>
48815
48816         * modules/isnanl-tests: New file.
48817         * tests/test-isnanl.c: New file.
48818
48819         * modules/isnanl: New file.
48820         * lib/isnanl.h: New file.
48821         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
48822         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
48823         gl_FUNC_ISNANL_WORKS.
48824         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
48825         New macros.
48826
48827 2007-03-21  Bruno Haible  <bruno@clisp.org>
48828
48829         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
48830         lib/isnanl.h.
48831         (Include): Update.
48832         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
48833         * lib/vasnprintf.c: Update.
48834         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
48835         tests/test-isnanl.h, remove tests/test-isnanl.c.
48836         (Makefile.am): Update.
48837         * tests/test-isnanl-nolibm.c: New file.
48838         * tests/test-isnanl.h: New file.
48839         * tests/test-isnanl.c: Remove file.
48840
48841 2007-03-21  Jim Meyering  <jim@meyering.net>
48842
48843         When trying to open ".", treat ESTALE like EACCES.
48844         * lib/savewd.c (savewd_save): Resort to forking not just upon
48845         failure with EACCES, but also when errno is ESTALE.
48846
48847 2007-03-20  Bruno Haible  <bruno@clisp.org>
48848
48849         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
48850         Needed on AIX 5.1. Reported by Matthew Woehlke.
48851
48852 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
48853
48854         Suggestions by Bruno Haible:
48855         * lib/acl-internal.h: Include "gettext.h" rather than rolling
48856         our own.
48857         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
48858         * modules/acl (Depends-on): Add gettext.
48859
48860 2007-03-19  Bruno Haible  <bruno@clisp.org>
48861
48862         * modules/iconvme: Remove file.
48863         * lib/iconvme.h: Remove file.
48864         * lib/iconvme.c: Remove file.
48865         * m4/iconvme.m4: Remove file.
48866
48867 2007-03-19  Bruno Haible  <bruno@clisp.org>
48868
48869         * doc/relocatable-maint.texi: Break long shell script line.
48870         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
48871
48872 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
48873
48874         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
48875         handle file_has_acl.
48876         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
48877         * lib/acl.c: Move header inclusions and related macro defns into
48878         lib/acl-internal.h.
48879         (S_ISLNK): Remove defn, since that's now done for us.
48880         (file_has_acl): Move to lib/file-has-acl.c.
48881         Call acl_trivial if available.  This is the crucial part of the fix.
48882         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
48883         shared within the library.  Rewrite a bit, partly to make it compatible
48884         with the GNU coding style.
48885         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
48886         Remove unnecessary double-quotes.
48887         Don't test for acl_to_text; the build will catch that.
48888         Replace acl_entries if it doesn't exist and it is needed.
48889         Check for -lsec and acl_trivial (as used on Solaris 10).
48890         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
48891         lib/file-has-acl.c.
48892         (Depends-on): Add sys_stat, for S_ISLNK.
48893
48894 2007-03-19  Ben Pfaff  <blp@gnu.org>
48895
48896         * doc/gnulib.texi: Fix typos.
48897         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
48898
48899 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
48900
48901         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
48902         If size is zero here, buf must be zero.
48903
48904 2007-03-19  Simon Josefsson  <simon@josefsson.org>
48905
48906         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
48907         <bruno@clisp.org>.
48908
48909 2007-03-18  Bruno Haible  <bruno@clisp.org>
48910
48911         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
48912         Suggested by Eric Blake.
48913
48914 2007-03-18  Ben Pfaff  <blp@gnu.org>
48915
48916         * doc/relocatable.texi: Recommend using as prefix a directory
48917         that does not exist and will never be created.  Based on
48918         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
48919         and others.
48920
48921 2007-03-17  Bruno Haible  <bruno@clisp.org>
48922
48923         * lib/fchownat.c: Include lchown.h.
48924
48925 2007-03-17  Bruno Haible  <bruno@clisp.org>
48926
48927         Fix endless loop when the given allocated size was > INT_MAX.
48928         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
48929         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
48930         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
48931         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
48932         * lib/sprintf.c (sprintf): Likewise.
48933
48934 2007-03-17  Bruno Haible  <bruno@clisp.org>
48935
48936         * tests/test-argp-2.sh (func_compare): Output a context diff.
48937
48938 2007-03-17  Bruno Haible  <bruno@clisp.org>
48939
48940         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
48941         locale's decimal-point character.
48942
48943 2007-03-17  Bruno Haible  <bruno@clisp.org>
48944
48945         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
48946         before comparing it. Needed because on some platforms (e.g. x86) a
48947         'long double' occupies less bytes than sizeof (long double).
48948
48949 2007-03-17  Bruno Haible  <bruno@clisp.org>
48950
48951         * tests/test-crc.c (main): Make printf statements 64-bit clean.
48952         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
48953         * tests/test-getaddrinfo.c (simple): Likewise.
48954         * tests/test-read-file.c (main): Likewise.
48955
48956 2007-03-17  Bruno Haible  <bruno@clisp.org>
48957
48958         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
48959
48960 2007-03-17  Bruno Haible  <bruno@clisp.org>
48961
48962         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
48963         unused variable.
48964
48965 2007-03-17  Bruno Haible  <bruno@clisp.org>
48966
48967         * tests/test-c-strcasecmp.c: Include c-strcase.h.
48968         * tests/test-c-strncasecmp.c: Likewise.
48969
48970 2007-03-17  Bruno Haible  <bruno@clisp.org>
48971
48972         * modules/stdlib (Depends-on): Add unistd.
48973         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
48974         Needed for MacOS X 10.3.
48975
48976 2007-03-17  Bruno Haible  <bruno@clisp.org>
48977
48978         * lib/unistr/u-strdup.h: Include <stdlib.h>.
48979
48980 2007-03-17  Bruno Haible  <bruno@clisp.org>
48981
48982         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
48983
48984 2007-03-17  Bruno Haible  <bruno@clisp.org>
48985
48986         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
48987         to reflect files copied from gnulib (with or without modifications).
48988         Suggested by Jim Meyering.
48989
48990 2007-03-17  Eric Blake  <ebb9@byu.net>
48991
48992         * NEWS: Document stdlib change from 2007-02-18.
48993
48994 2007-03-17  Jim Meyering  <jim@meyering.net>
48995
48996         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
48997         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
48998         someone uses a name containing shell meta-characters.
48999         Reported by Alfred M. Szmidt.
49000
49001         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
49002
49003 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
49004
49005         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
49006         and copy gettext configuration files only if configure.ac contains
49007         a use of AM_GNU_GETTEXT_VERSION.
49008
49009 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
49010
49011         * build-aux/bootstrap (gnulib_name): New variable.
49012         (gnulib_tool_options): Use it.
49013
49014 2007-03-13  Simon Josefsson  <simon@josefsson.org>
49015
49016         * tests/test-des.c: Use new namespace.
49017
49018 2007-03-15  Bruno Haible  <bruno@clisp.org>
49019
49020         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
49021         Reported by James Youngman <jay@gnu.org>.
49022
49023 2007-03-15  Bruno Haible  <bruno@clisp.org>
49024
49025         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
49026         declared prototype. Needed with cc on OSF/1 5.1.
49027
49028 2007-03-15  Bruno Haible  <bruno@clisp.org>
49029
49030         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
49031         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
49032         (struct gl_list_implementation): Add dispose_fn argument to the
49033         'create_empty', 'create' methods.
49034         (struct gl_list_impl_base): Add field 'dispose_fn'.
49035         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
49036         argument.
49037         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
49038         dispose_fn argument.
49039         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
49040         dispose_fn on the dropped values.
49041         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
49042         dispose_fn argument.
49043         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
49044         dropped values.
49045         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
49046         (gl_tree_remove_node): Call dispose_fn on the dropped value.
49047         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
49048         (gl_tree_remove_node): Call dispose_fn on the dropped value.
49049         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
49050         argument.
49051         (gl_tree_list_free): Call dispose_fn on the dropped values.
49052         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
49053         the dropped values.
49054         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
49055         Add dispose_fn argument.
49056         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
49057         Call dispose_fn on the dropped values.
49058         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
49059         Add dispose_fn argument.
49060         (gl_sublist_create): Initialize the 'dispose_fn' field.
49061         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
49062         * tests/test-array_list.c (main): Update.
49063         * tests/test-carray_list.c (main): Update.
49064         * tests/test-avltree_list.c (main): Update.
49065         * tests/test-rbtree_list.c (main): Update.
49066         * tests/test-avltreehash_list.c (main): Update.
49067         * tests/test-rbtreehash_list.c (main): Update.
49068         * tests/test-linked_list.c (main): Update.
49069         * tests/test-linkedhash_list.c (main): Update.
49070         * tests/test-array_oset.c (main): Update.
49071
49072 2007-03-15  Bruno Haible  <bruno@clisp.org>
49073
49074         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
49075         (gl_oset_create_empty): Add dispose_fn argument.
49076         (struct gl_oset_implementation): Add dispose_fn argument to
49077         'create_empty' method.
49078         (struct gl_oset_impl_base): Add dispose_fn field.
49079         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
49080         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
49081         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
49082         values.
49083         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
49084         (gl_tree_oset_free): Call dispose_fn on the dropped values.
49085         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
49086         dropped value.
49087         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
49088         dropped value.
49089         * tests/test-array_oset.c (main): Update.
49090         * tests/test-avltree_oset.c (main): Update.
49091         * tests/test-rbtree_oset.c (main): Update.
49092         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
49093
49094 2007-03-13  Bruno Haible  <bruno@clisp.org>
49095
49096         * tests/test-stdbool.c (i): Update after last patch.
49097
49098 2007-03-12  Bruno Haible  <bruno@clisp.org>
49099
49100         * lib/quotearg.c: Include <wctype.h> early, before the definition of
49101         the iswprint macro. Needed on Solaris 2.5.1.
49102
49103 2007-03-12  Bruno Haible  <bruno@clisp.org>
49104
49105         * tests/test-printf-frexp.c (main): Declare x as volatile.
49106
49107 2007-03-12  Simon Josefsson  <simon@josefsson.org>
49108
49109         * doc/gnulib.texi (Build robot for gnulib): New section.
49110
49111 2007-03-12  Jim Meyering  <jim@meyering.net>
49112
49113         * build-aux/bootstrap: New file.
49114         * build-aux/bootstrap.conf: New file, from coreutils.
49115
49116 2007-03-11  Bruno Haible  <bruno@clisp.org>
49117
49118         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
49119
49120 2007-03-12  Simon Josefsson  <simon@josefsson.org>
49121
49122         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
49123         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
49124         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
49125
49126 2007-03-11  Bruno Haible  <bruno@clisp.org>
49127
49128         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
49129         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
49130
49131 2007-03-11  Bruno Haible  <bruno@clisp.org>
49132
49133         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
49134         formula. Needed for SunPRO C 5.0.
49135
49136 2007-03-11  Bruno Haible  <bruno@clisp.org>
49137
49138         * modules/long-options (Depends-on): Add getopt.
49139
49140 2007-03-11  Bruno Haible  <bruno@clisp.org>
49141
49142         * modules/modechange (Depends-on): Add stdbool.
49143
49144 2007-03-11  Bruno Haible  <bruno@clisp.org>
49145
49146         * modules/i-ring (Depends-on): Add stdbool.
49147
49148 2007-03-11  Bruno Haible  <bruno@clisp.org>
49149
49150         * modules/gc-des (Depends-on): Add stdbool.
49151
49152 2007-03-11  Bruno Haible  <bruno@clisp.org>
49153
49154         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
49155
49156 2007-03-11  Bruno Haible  <bruno@clisp.org>
49157
49158         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
49159
49160 2007-03-11  Bruno Haible  <bruno@clisp.org>
49161
49162         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
49163
49164 2007-03-11  Bruno Haible  <bruno@clisp.org>
49165
49166         * lib/vasnprintf.c (sprintf): Undefine.
49167
49168 2007-03-11  Bruno Haible  <bruno@clisp.org>
49169
49170         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
49171         initializers in SunPRO C and Compaq C compilers.
49172
49173 2007-03-11  Bruno Haible  <bruno@clisp.org>
49174
49175         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
49176         decrementing code ANSI C compliant.
49177
49178 2007-03-11  Bruno Haible  <bruno@clisp.org>
49179
49180         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
49181         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
49182
49183 2007-03-11  Bruno Haible  <bruno@clisp.org>
49184
49185         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
49186         <stdbool.h> substitute doesn't pass.
49187
49188 2007-03-11  Bruno Haible  <bruno@clisp.org>
49189
49190         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
49191
49192 2007-03-11  Bruno Haible  <bruno@clisp.org>
49193
49194         * gnulib-tool (func_create_megatestdir): Create also an autobuild
49195         script, for submission to autobuild.josefsson.org.
49196
49197 2007-03-10  Bruno Haible  <bruno@clisp.org>
49198
49199         * modules/canonicalize-lgpl-tests: New file.
49200         * tests/test-canonicalize-lgpl.sh: New file.
49201         * tests/test-canonicalize-lgpl.c: New file.
49202
49203         * modules/c-strcase-tests: New file.
49204         * tests/test-c-strcase.sh: New file.
49205         * tests/test-c-strcasecmp.c: New file.
49206         * tests/test-c-strncasecmp.c: New file.
49207
49208         * modules/atexit-tests: New file.
49209         * tests/test-atexit.sh: New file.
49210         * tests/test-atexit.c: New file.
49211
49212 2007-03-10  Bruno Haible  <bruno@clisp.org>
49213
49214         * tests/test-binary-io.sh: Use temporary filenames that are not so
49215         likely to clash with those of other tests (in a parallel make).
49216         * tests/test-binary-io.c: Likewise.
49217
49218 2007-03-10  Bruno Haible  <bruno@clisp.org>
49219
49220         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
49221         fallback; use #error instead.
49222         Suggested by Simon Josefsson.
49223
49224 2007-03-10  Bruno Haible  <bruno@clisp.org>
49225
49226         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
49227         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
49228         first and the last.
49229
49230 2007-03-10  Bruno Haible  <bruno@clisp.org>
49231
49232         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
49233
49234 2007-03-10  Bruno Haible  <bruno@clisp.org>
49235
49236         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
49237         "make distcheck".
49238         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
49239         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
49240         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
49241
49242 2007-03-10  Bruno Haible  <bruno@clisp.org>
49243
49244         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
49245         variable.
49246         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
49247         variable.
49248
49249 2007-03-09  Eric Blake  <ebb9@byu.net>
49250         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
49251
49252         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
49253         types are not being provided by gnulib.
49254         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
49255         types are supported.
49256
49257 2007-03-10  Bruno Haible  <bruno@clisp.org>
49258
49259         * lib/stdio_.h (__attribute__): New macro.
49260         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
49261         vsprintf): Specify __attribute__ __format__ for GCC.
49262         Suggested by Eric Blake.
49263
49264 2007-03-09  Bruno Haible  <bruno@clisp.org>
49265
49266         * modules/printf-posix-tests: New file.
49267         * tests/test-printf-posix.sh: New file.
49268         * tests/test-printf-posix.c: New file.
49269
49270         * modules/printf-posix: New file.
49271         * lib/printf.c: New file.
49272         * m4/printf-posix-rpl.m4: New file.
49273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
49274         REPLACE_PRINTF.
49275         * lib/stdio_.h (printf): New declaration.
49276         (format, __format__, ____printf____, ____scanf____, ____strftime____,
49277         ____strfmon____): New macros.
49278         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
49279         REPLACE_PRINTF.
49280
49281 2007-03-09  Bruno Haible  <bruno@clisp.org>
49282
49283         * tests/test-vasnprintf-posix2.sh: New file.
49284         * tests/test-vasnprintf-posix2.c: New file.
49285         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
49286         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
49287         (Makefile.am): Activate test-vasnprintf-posix2.sh.
49288
49289         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
49290         a locale dependent decimal point, rather than always '.'.
49291
49292 2007-03-09  Eric Blake  <ebb9@byu.net>
49293
49294         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
49295         spite of platforms like Tandem/NSK that define it to -1.
49296
49297 2007-03-08  Bruno Haible  <bruno@clisp.org>
49298
49299         * modules/vprintf-posix-tests: New file.
49300         * tests/test-vprintf-posix.sh: New file.
49301         * tests/test-vprintf-posix.c: New file.
49302         * tests/test-printf-posix.h: New file.
49303
49304         * modules/vprintf-posix: New file.
49305         * lib/vprintf.c: New file.
49306         * m4/vprintf-posix.m4: New file.
49307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
49308         REPLACE_VPRINTF.
49309         * lib/stdio_.h (vprintf): New declaration.
49310         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
49311         REPLACE_VPRINTF.
49312
49313 2007-03-08  Bruno Haible  <bruno@clisp.org>
49314
49315         * modules/fprintf-posix-tests: New file.
49316         * tests/test-fprintf-posix.sh: New file.
49317         * tests/test-fprintf-posix.c: New file.
49318
49319         * modules/fprintf-posix: New file.
49320         * lib/fprintf.c: New file.
49321         * m4/fprintf-posix.m4: New file.
49322         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
49323         REPLACE_FPRINTF.
49324         * lib/stdio_.h (fprintf): New declaration.
49325         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
49326         REPLACE_FPRINTF.
49327
49328 2007-03-08  Bruno Haible  <bruno@clisp.org>
49329
49330         * modules/vfprintf-posix-tests: New file.
49331         * tests/test-vfprintf-posix.sh: New file.
49332         * tests/test-vfprintf-posix.c: New file.
49333         * tests/test-fprintf-posix.h: New file.
49334         * tests/test-fprintf-posix.out: New file.
49335
49336         * modules/vfprintf-posix: New file.
49337         * lib/vfprintf.c: New file.
49338         * m4/vfprintf-posix.m4: New file.
49339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
49340         REPLACE_VFPRINTF.
49341         * lib/stdio_.h (vfprintf): New declaration.
49342         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
49343         REPLACE_VFPRINTF.
49344
49345 2007-03-08  Bruno Haible  <bruno@clisp.org>
49346
49347         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
49348
49349 2007-03-08  Bruno Haible  <bruno@clisp.org>
49350
49351         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
49352         instead of 'expr' invocations.
49353         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49354         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49355         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49356         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49357         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49358         Suggested by Paul Eggert.
49359
49360 2007-03-08  Bruno Haible  <bruno@clisp.org>
49361
49362         * modules/fseterr-tests: New file.
49363         * tests/test-fseterr.c: New file.
49364
49365         * modules/fseterr: New file.
49366         * lib/fseterr.h: New file.
49367         * lib/fseterr.c: New file.
49368
49369 2007-03-08  Bruno Haible  <bruno@clisp.org>
49370
49371         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
49372         * lib/getopt_.h: Likewise.
49373         * lib/mbswidth.h: Likewise.
49374         * lib/setenv.h: Likewise.
49375         * lib/vasnprintf.h: Likewise.
49376         * lib/vasprintf.h: Likewise.
49377         * lib/verror.h: Likewise.
49378         * lib/xsetenv.h: Likewise.
49379         * lib/xvasprintf.h: Likewise.
49380
49381 2007-03-08  Jim Meyering  <jim@meyering.net>
49382
49383         * users.txt: Add parted.
49384
49385         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
49386
49387 2007-03-07  Bruno Haible  <bruno@clisp.org>
49388
49389         * m4/printf.m4: Make the shell script snippets copy&pastable.
49390
49391 2007-03-02  Bruno Haible  <bruno@clisp.org>
49392
49393         * lib/netinet_in_.h: New file.
49394         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
49395         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
49396         * modules/netinet_in (Files): Add lib/netinet_in_.h.
49397         (Depends-on): Add absolute-header.
49398         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
49399         into netinet/in.h.
49400
49401 2007-03-03  Bruno Haible  <bruno@clisp.org>
49402
49403         * lib/sys_select_.h: New file.
49404         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
49405         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
49406         * modules/sys_select (Files): Add lib/sys_select_.h.
49407         (Depends-on): Add absolute-header.
49408         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
49409         into sys/select.h.
49410
49411 2007-03-02  Bruno Haible  <bruno@clisp.org>
49412
49413         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
49414         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
49415         values.
49416         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
49417         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
49418         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
49419         * modules/sys_socket (Depends-on): Add absolute-header.
49420         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
49421         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
49422         (Include): Remove requirement of inclusion of <sys/types.h>.
49423
49424 2007-03-02  Bruno Haible  <bruno@clisp.org>
49425
49426         * lib/byteswap_.h (bswap_32): Fix formula.
49427
49428 2007-03-06  Bruno Haible  <bruno@clisp.org>
49429
49430         * modules/sprintf-posix-tests: New file.
49431         * tests/test-sprintf-posix.c: New file.
49432
49433         * modules/sprintf-posix: New file.
49434         * lib/sprintf.c: New file.
49435         * m4/sprintf-posix.m4: New file.
49436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
49437         REPLACE_SPRINTF.
49438         * lib/stdio_.h (sprintf): New declaration.
49439         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
49440         REPLACE_SPRINTF.
49441
49442 2007-03-06  Bruno Haible  <bruno@clisp.org>
49443
49444         * modules/vsprintf-posix-tests: New file.
49445         * tests/test-vsprintf-posix.c: New file.
49446         * tests/test-sprintf-posix.h: New file.
49447
49448         * modules/vsprintf-posix: New file.
49449         * lib/vsprintf.c: New file.
49450         * m4/vsprintf-posix.m4: New file.
49451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
49452         REPLACE_VSPRINTF.
49453         * lib/stdio_.h (vsprintf): New declaration.
49454         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
49455         REPLACE_VSPRINTF.
49456
49457 2007-03-06  Bruno Haible  <bruno@clisp.org>
49458
49459         * modules/vsnprintf (Depend-on): Remove minmax.
49460
49461 2007-03-06  Bruno Haible  <bruno@clisp.org>
49462
49463         * modules/snprintf-posix-tests: New file.
49464         * tests/test-snprintf-posix.c: New file.
49465
49466         * modules/snprintf-posix: New file.
49467         * m4/snprintf-posix.m4: New file.
49468         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
49469         gl_FUNC_SNPRINTF.
49470         (gl_FUNC_SNPRINTF): Invoke it.
49471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
49472         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
49473         is set.
49474         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
49475
49476 2007-03-06  Bruno Haible  <bruno@clisp.org>
49477
49478         * modules/vsnprintf-posix-tests: New file.
49479         * tests/test-vsnprintf-posix.c: New file.
49480         * tests/test-snprintf-posix.h: New file.
49481
49482         * modules/vsnprintf-posix: New file.
49483         * m4/vsnprintf-posix.m4: New file.
49484         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
49485         gl_FUNC_VSNPRINTF.
49486         (gl_FUNC_VSNPRINTF): Invoke it.
49487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
49488         * lib/stdio_.h (vsnprintf): Define as a replacement if
49489         REPLACE_VSNPRINTF is set.
49490         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
49491
49492 2007-03-06  Bruno Haible  <bruno@clisp.org>
49493
49494         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
49495         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
49496
49497 2007-03-06  Bruno Haible  <bruno@clisp.org>
49498
49499         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
49500         (asinl): Declare also if HAVE_DECL_ASINL is set.
49501         (atanl): Declare also if HAVE_DECL_ATANL is set.
49502         (ceill): Declare also if HAVE_DECL_CEILL is set.
49503         (cosl): Declare also if HAVE_DECL_COSL is set.
49504         (expl): Declare also if HAVE_DECL_EXPL is set.
49505         (floorl): Declare also if HAVE_DECL_FLOORL is set.
49506         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
49507         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
49508         (logl): Declare also if HAVE_DECL_LOGL is set.
49509         (sinl): Declare also if HAVE_DECL_SINL is set.
49510         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
49511         (tanl): Declare also if HAVE_DECL_TANL is set.
49512         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
49513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
49514         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
49515         declaration of frexpl, ldexpl.
49516         * modules/printf-frexpl (Depends-on): Add math.
49517         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
49518
49519 2007-03-05  Bruno Haible  <bruno@clisp.org>
49520
49521         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
49522         frexpl and ldexpl are declared.
49523         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
49524
49525 2007-03-05  Bruno Haible  <bruno@clisp.org>
49526
49527         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
49528         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
49529
49530 2007-03-05  Bruno Haible  <bruno@clisp.org>
49531
49532         * lib/stdio_.h: Include <stddef.h>.
49533
49534 2007-03-05  Bruno Haible  <bruno@clisp.org>
49535
49536         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
49537
49538 2007-03-05  Bruno Haible  <bruno@clisp.org>
49539
49540         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
49541         NetBSD 4, from Ralf Wildenhues.
49542
49543 2007-03-04  Bruno Haible  <bruno@clisp.org>
49544
49545         * lib/vasprintf.h: Update #if logic for the case when the functions
49546         exist but are overridden.
49547
49548 2007-03-04  Bruno Haible  <bruno@clisp.org>
49549
49550         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
49551         implementations: glibc-2.4 and MacOS X 10.3.
49552         * tests/test-vasnprintf-posix.c (test_function): Test also the case
49553         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
49554         * tests/test-vasprintf-posix.c (test_function): Likewise.
49555
49556 2007-03-04  Bruno Haible  <bruno@clisp.org>
49557
49558         * modules/vasprintf-posix-tests: New file.
49559         * tests/test-vasprintf-posix.c: New file.
49560
49561         * modules/vasprintf-posix: New file.
49562         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
49563         defined.
49564         * m4/vasprintf-posix.m4: New file.
49565         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
49566         gl_FUNC_VASPRINTF.
49567         (gl_FUNC_VASPRINTF): Invoke it.
49568         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
49569         here.
49570         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
49571
49572 2007-03-04  Bruno Haible  <bruno@clisp.org>
49573
49574         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
49575         REPLACE_GETTIMEOFDAY.
49576         * modules/sys_time (Makefile.am): Likewise.
49577         * m4/sys_time_h.m4: Likewise.
49578         * m4/gettimeofday.m4: Likewise.
49579
49580 2007-03-04  Bruno Haible  <bruno@clisp.org>
49581
49582         * modules/vasnprintf-posix-tests: New file.
49583         * tests/test-vasnprintf-posix.c: New file.
49584
49585         * modules/vasnprintf-posix: New file.
49586         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
49587         printf-frexpl.h.
49588         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
49589         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
49590         REPLACE_VASNPRINTF is defined.
49591         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
49592         gl_FUNC_VASNPRINTF.
49593         (gl_FUNC_VASNPRINTF): Invoke it.
49594         * m4/vasnprintf-posix.m4: New file.
49595         * m4/printf.m4: New file.
49596
49597 2007-03-04  Bruno Haible  <bruno@clisp.org>
49598
49599         Compile progreloc.c only if --enable-relocatable is specified.
49600         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
49601         if --enable-relocatable was specified.
49602         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
49603         lib_SOURCES.
49604
49605 2007-03-04  Jim Meyering  <jim@meyering.net>
49606
49607         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
49608         Use it consistently, rather than enumerating errno constants.
49609
49610 2007-03-04  Bruno Haible  <bruno@clisp.org>
49611
49612         * modules/xvasprintf-tests: New file.
49613         * tests/test-xvasprintf.c: New file.
49614
49615         * modules/vasprintf-tests: New file.
49616         * tests/test-vasprintf.c: New file.
49617
49618         * modules/vasnprintf-tests: New file.
49619         * tests/test-vasnprintf.c: New file.
49620
49621         * modules/vsnprintf-tests: New file.
49622         * tests/test-vsnprintf.c: New file.
49623
49624         * modules/snprintf-tests: New file.
49625         * tests/test-snprintf.c: New file.
49626
49627 2007-03-04  Bruno Haible  <bruno@clisp.org>
49628
49629         Compile relocatable.c only if --enable-relocatable is specified.
49630         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
49631         gl_RELOCATABLE_LIBRARY.
49632         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
49633         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
49634         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
49635         gl_RELOCATABLE_LIBRARY.
49636         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
49637         (Makefile.am): Remove lib_SOURCES.
49638         * modules/relocatable-lib-lgpl (configure.ac): Invoke
49639         gl_RELOCATABLE_LIBRARY.
49640         (Makefile.am): Remove lib_SOURCES.
49641         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
49642         always.
49643         * modules/relocatable-prog-wrapper (configure.ac): Invoke
49644         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
49645
49646 2007-03-04  Bruno Haible  <bruno@clisp.org>
49647
49648         * modules/argmatch-tests: New file.
49649         * tests/test-argmatch.c: New file.
49650
49651         * tests/test-allocsa.c (main): Halve the number of loop runs.
49652
49653         * modules/alloca-opt-tests: New file.
49654         * tests/test-alloca-opt.c: New file.
49655
49656 2007-03-04  Jim Meyering  <jim@meyering.net>
49657
49658         Work around difference between Linux ACLs and Solaris 10 ZFS.
49659         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
49660         for EINVAL.
49661
49662 2007-03-03  Bruno Haible  <bruno@clisp.org>
49663
49664         * modules/relocatable-prog (Depends-on): Add back progreloc's
49665         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
49666
49667 2007-03-03  Bruno Haible  <bruno@clisp.org>
49668
49669         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
49670         * modules/relocatable-lib: New file.
49671
49672 2007-03-03  Bruno Haible  <bruno@clisp.org>
49673
49674         * modules/relocatable-prog: Renamed from modules/relocatable.
49675         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
49676
49677 2007-03-03  Bruno Haible  <bruno@clisp.org>
49678
49679         * modules/relocatable-script (Files): Add doc/relocatable.texi,
49680         m4/relocatable-lib.m4.
49681         (Depends-on): Remove 'relocatable'.
49682         (configure.ac): Add gl_RELOCATABLE_NOP.
49683
49684 2007-03-03  Bruno Haible  <bruno@clisp.org>
49685
49686         * modules/relocatable-prog-wrapper: New file.
49687         * modules/relocatable (Depends-on): Add it. Remove all other
49688         dependencies except progname.
49689         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
49690
49691         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
49692         (gl_FUNC_STRERROR): Nop.
49693         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
49694
49695         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
49696         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
49697
49698         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
49699         (gl_FUNC_READLINK): Update.
49700
49701         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
49702
49703 2007-03-03  Bruno Haible  <bruno@clisp.org>
49704
49705         * lib/xreadlink.c: Include <unistd.h> unconditionally.
49706         * modules/xreadlink (Depends-on): Add unistd.
49707         * modules/xreadlink-with-size (Depends-on): Likewise.
49708
49709 2007-03-03  Bruno Haible  <bruno@clisp.org>
49710
49711         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
49712         extracted from gt_FUNC_SETENV.
49713         (gt_FUNC_SETENV): Remove macro.
49714         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
49715         remove gt_FUNC_SETENV.
49716
49717 2007-03-03  Bruno Haible  <bruno@clisp.org>
49718
49719         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
49720         ENABLE_RELOCATABLE here.
49721         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
49722
49723 2007-03-03  Bruno Haible  <bruno@clisp.org>
49724
49725         * modules/rbtreehash-list-tests (Depends-on): Add progname.
49726         * tests/test-rbtreehash_list.c: Include progname.h.
49727         (main): Call set_program_name.
49728
49729         * modules/rbtree-oset-tests (Depends-on): Add progname.
49730         * tests/test-rbtree_oset.c: Include progname.h.
49731         (main): Call set_program_name.
49732
49733         * modules/rbtree-list-tests (Depends-on): Add progname.
49734         * tests/test-rbtree_list.c: Include progname.h.
49735         (main): Call set_program_name.
49736
49737         * modules/linked-list-tests (Depends-on): Add progname.
49738         * tests/test-linked_list.c: Include progname.h.
49739         (main): Call set_program_name.
49740
49741 2007-03-03  Bruno Haible  <bruno@clisp.org>
49742
49743         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
49744         All uses of __restrict changed to _Restrict_.
49745         * lib/glob_.h (__restrict): Remove macro.
49746
49747 2007-03-02  Bruno Haible  <bruno@clisp.org>
49748
49749         * modules/gettext (configure.ac): Require gettext infrastructure
49750         from version 0.16.1.
49751
49752 2007-03-02  Bruno Haible  <bruno@clisp.org>
49753
49754         * modules/linkedhash-list-tests (Depends-on): Add progname.
49755         * tests/test-linkedhash_list.c: Include progname.h.
49756         (main): Call set_program_name.
49757
49758         * modules/carray-list-tests (Depends-on): Add progname.
49759         * tests/test-carray_list.c: Include progname.h.
49760         (main): Call set_program_name.
49761
49762         * modules/avltreehash-list-tests (Depends-on): Add progname.
49763         * tests/test-avltreehash_list.c: Include progname.h.
49764         (main): Call set_program_name.
49765
49766         * modules/avltree-oset-tests (Depends-on): Add progname.
49767         * tests/test-avltree_oset.c: Include progname.h.
49768         (main): Call set_program_name.
49769
49770         * modules/avltree-list-tests (Depends-on): Add progname.
49771         * tests/test-avltree_list.c: Include progname.h.
49772         (main): Call set_program_name.
49773
49774         * modules/array-oset-tests (Depends-on): Add progname.
49775         * tests/test-array_oset.c: Include progname.h.
49776         (main): Call set_program_name.
49777
49778         * modules/array-list-tests (Depends-on): Add progname.
49779         * tests/test-array_list.c: Include progname.h.
49780         (main): Call set_program_name.
49781
49782         * modules/argp-tests (Depends-on): Add progname.
49783         * tests/test-argp.c: Include argp.h first. Include progname.h.
49784         (main): Call set_program_name.
49785
49786 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
49787
49788         * doc/gnulib-tool.texi (Initial import): Reword description of
49789         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
49790         limited effect even if defined after the first system include.
49791
49792 2007-03-01  Bruno Haible  <bruno@clisp.org>
49793
49794         * build-aux/config.libpath: Update to libtool-1.5.22.
49795         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49796
49797 2007-03-01  Bruno Haible  <bruno@clisp.org>
49798
49799         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
49800         foo_CFLAGS.
49801         Reported by Ralf Wildenhues.
49802
49803 2007-03-01  Bruno Haible  <bruno@clisp.org>
49804
49805         * build-aux/install-reloc: Remove object files left over by some
49806         compilers.
49807         Reported by Ralf Wildenhues.
49808
49809 2007-03-01  Bruno Haible  <bruno@clisp.org>
49810
49811         * build-aux/install-reloc: Break long lines.
49812
49813 2007-03-01  Bruno Haible  <bruno@clisp.org>
49814
49815         * doc/relocatable.texi: Document that it may not work on OpenBSD.
49816         Reported by Ralf Wildenhues.
49817
49818 2007-03-01  Bruno Haible  <bruno@clisp.org>
49819
49820         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
49821         include ordering constraints.
49822
49823 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49824
49825         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
49826         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
49827         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
49828         as another example.
49829         * lib/time_.h: Fix misspelling.
49830         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49831         Require gl_HEADER_TIME_H_DEFAULTS.
49832         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
49833         * m4/time_r.m4 (gl_TIME_R): Likewise.
49834         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
49835
49836 2007-03-01  Bruno Haible  <bruno@clisp.org>
49837
49838         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
49839         * m4/utimens.m4 (gl_UTIMENS): Likewise.
49840
49841 2007-03-01  Jim Meyering  <jim@meyering.net>
49842
49843         * modules/xreadlink (Maintainer): Add my name.
49844         * modules/xreadlink-with-size (Depends-on): Alphabetize.
49845
49846 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
49847             Bruno Haible  <bruno@clisp.org>
49848
49849         * build-aux/install-reloc: Compile also c-ctype.c.
49850         * build-aux/relocatable.sh.in: New file.
49851         * doc/relocatable.texi: New file.
49852         * doc/relocatable-maint.texi: New file.
49853         * doc/gnulib.texi: Include relocatable-maint.texi.
49854         * lib/progreloc.c: Include unistd.h unconditionally.
49855         * lib/relocwrapper.c: Include unistd.h unconditionally.
49856         Include c-ctype.h.
49857         (add_dotbin): Use c_tolower.
49858         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
49859         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
49860         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
49861         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
49862         to m4/relocatable-lib.m4.
49863         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
49864         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
49865         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
49866         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
49867         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
49868         * modules/relocatable: New file.
49869         * modules/relocatable-lib: New file.
49870         * modules/relocatable-script: New file.
49871
49872 2007-02-28  Bruno Haible  <bruno@clisp.org>
49873
49874         Import --enable-relocatable infrastructure.
49875         * build-aux/config.libpath: New file, from GNU gettext.
49876         * build-aux/install-reloc: New file, from GNU gettext.
49877         * build-aux/reloc-ldflags: New file, from GNU gettext.
49878         * lib/relocatable.h: New file, from GNU gettext.
49879         * lib/relocatable.c: New file, from GNU gettext.
49880         * lib/relocwrapper.c: New file, from GNU gettext.
49881         * m4/relocatable.m4: New file, from GNU gettext.
49882
49883 2007-02-28  Bruno Haible  <bruno@clisp.org>
49884
49885         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
49886
49887         * modules/xreadlink: New file, from GNU gettext with modifications.
49888         * lib/xreadlink.c: New file, from GNU gettext.
49889         * lib/xreadlink.h: Add comments.
49890         (xreadlink): New declaration.
49891
49892         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
49893         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
49894         lib/xreadlink-with-size.c.
49895         (configure.ac): Remove gl_XREADLINK invocation.
49896         (Makefile.am): Augment lib_SOURCES.
49897         * m4/xreadlink.m4: Remove file.
49898         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
49899         (xreadlink_with_size): Renamed from xreadink.
49900         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
49901         * modules/canonicalize (Depends-on): Replace xreadlink with
49902         xreadlink-with-size.
49903         * lib/canonicalize.c (canonicalize_filename_mode): Update.
49904
49905 2007-02-25  Jim Meyering  <jim@meyering.net>
49906
49907         * build-aux/announce-gen: When complaining about excess arguments,
49908         list them.
49909
49910 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
49911
49912         * README: Document signed integer overflow situation more
49913         accurately.
49914
49915 2007-02-25  Bruno Haible  <bruno@clisp.org>
49916
49917         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
49918         'a' or 'A' conversion.
49919
49920 2007-02-25  Bruno Haible  <bruno@clisp.org>
49921
49922         * modules/filename: Renamed from modules/pathname.
49923         (Files): Replace lib/pathname.h with lib/filename.h. Replace
49924         lib/concatpath.c with lib/concat-filename.c.
49925         (Makefile.am): Update.
49926         (Include): Replace pathname.h with filename.h.
49927         * lib/filename.h: Renamed from lib/pathname.h.
49928         (concatenated_filename): Renamed from concatenated_pathname.
49929         * lib/concat-filename.c: Renamed from lib/concatpath.c.
49930         (concatenated_filename): Renamed from concatenated_pathname.
49931         * lib/findprog.c: Include filename.h instead of pathname.h.
49932         (find_in_path): Update.
49933         * lib/javacomp.c: Include filename.h instead of pathname.h.
49934         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
49935         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
49936         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
49937         is_oldgcj_14_13_usable, is_javac_usable): Update.
49938         * lib/javaexec.c: Include filename.h instead of pathname.h.
49939         (execute_java_class): Update.
49940         * modules/findprog: Update.
49941         * modules/javacomp: Update.
49942         * modules/javaexec: Update.
49943         * MODULES.html.sh (File system functions): Add 'filename', remove
49944         'pathname'.
49945
49946 2007-02-25  Bruno Haible  <bruno@clisp.org>
49947
49948         * modules/printf-frexpl-tests: New file.
49949         * tests/test-printf-frexpl.c: New file.
49950
49951         * modules/printf-frexpl: New file.
49952         * lib/printf-frexpl.h: New file.
49953         * lib/printf-frexpl.c: New file.
49954         * m4/printf-frexpl.m4: New file.
49955
49956 2007-02-25  Bruno Haible  <bruno@clisp.org>
49957
49958         * modules/printf-frexp-tests: New file.
49959         * tests/test-printf-frexp.c: New file.
49960
49961         * modules/printf-frexp: New file.
49962         * lib/printf-frexp.h: New file.
49963         * lib/printf-frexp.c: New file.
49964         * m4/printf-frexp.m4: New file.
49965
49966 2007-02-25  Bruno Haible  <bruno@clisp.org>
49967
49968         Assume automake >= 1.10 for the tests.
49969         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
49970         * modules/arctwo-tests: Likewise.
49971         * modules/argp-tests: Likewise.
49972         * modules/avltree-list-tests: Likewise.
49973         * modules/avltree-oset-tests: Likewise.
49974         * modules/avltreehash-list-tests: Likewise.
49975         * modules/carray-list-tests: Likewise.
49976         * modules/crc-tests: Likewise.
49977         * modules/des-tests: Likewise.
49978         * modules/gc-arcfour-tests: Likewise.
49979         * modules/gc-arctwo-tests: Likewise.
49980         * modules/gc-des-tests: Likewise.
49981         * modules/gc-hmac-md5-tests: Likewise.
49982         * modules/gc-hmac-sha1-tests: Likewise.
49983         * modules/gc-md2-tests: Likewise.
49984         * modules/gc-md4-tests: Likewise.
49985         * modules/gc-md5-tests: Likewise.
49986         * modules/gc-pbkdf2-sha1-tests: Likewise.
49987         * modules/gc-rijndael-tests: Likewise.
49988         * modules/gc-sha1-tests: Likewise.
49989         * modules/gc-tests: Likewise.
49990         * modules/getaddrinfo-tests: Likewise.
49991         * modules/hmac-md5-tests: Likewise.
49992         * modules/hmac-sha1-tests: Likewise.
49993         * modules/linked-list-tests: Likewise.
49994         * modules/linkedhash-list-tests: Likewise.
49995         * modules/lock-tests: Likewise.
49996         * modules/md2-tests: Likewise.
49997         * modules/md4-tests: Likewise.
49998         * modules/md5-tests: Likewise.
49999         * modules/rbtree-list-tests: Likewise.
50000         * modules/rbtree-oset-tests: Likewise.
50001         * modules/rbtreehash-list-tests: Likewise.
50002         * modules/read-file-tests: Likewise.
50003         * modules/rijndael-tests: Likewise.
50004         * modules/stdint-tests: Likewise.
50005         * modules/tls-tests: Likewise.
50006
50007 2007-02-24  Bruno Haible  <bruno@clisp.org>
50008
50009         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
50010         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
50011         function; instead check whether isnan with a double argument links.
50012         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
50013         function; instead check whether isnan with a 'long double' argument
50014         links.
50015         Reported by Eric Blake <ebb9@byu.net>.
50016
50017 2007-02-24  Bruno Haible  <bruno@clisp.org>
50018
50019         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
50020         defined.
50021         * lib/isnanl.c: Remove all code. Just include isnan.c.
50022         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
50023
50024 2007-02-25  Jim Meyering  <jim@meyering.net>
50025
50026         Avoid conflicting types for 'unsetenv' on FreeBSD.
50027         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
50028         conflicting with FreeBSD's (5.0 and 6.1) function declaration
50029         in stdlib.h.
50030
50031 2007-02-24  Bruno Haible  <bruno@clisp.org>
50032
50033         * modules/isnanl-nolibm-tests: New file.
50034         * tests/test-isnanl.c: New file.
50035
50036         * modules/isnanl-nolibm: New file.
50037         * lib/isnanl.h: New file.
50038         * lib/isnanl.c: New file.
50039         * m4/isnanl.m4: New file.
50040
50041 2007-02-24  Bruno Haible  <bruno@clisp.org>
50042
50043         * modules/isnan-nolibm-tests: New file.
50044         * tests/test-isnan.c: New file.
50045
50046         * modules/isnan-nolibm: New file.
50047         * lib/isnan.h: New file.
50048         * lib/isnan.c: New file.
50049         * m4/isnan.m4: New file.
50050
50051 2007-02-24  Bruno Haible  <bruno@clisp.org>
50052
50053         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
50054         assume that an exponent fits in 20 bits.
50055
50056 2007-02-24  Jim Meyering  <jim@meyering.net>
50057
50058         * m4/regex.m4: Update the description of the configure-time option,
50059         --without-included-regex, to state accurately what the defaults are,
50060         and perhaps to give people an idea why using this option is risky.
50061
50062 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
50063
50064         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
50065         loops on small arguments.  This attempts to avoid the problem
50066         Bruno Haible reported for AIX 4.3.2 in
50067         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
50068
50069 2007-02-23  Bruno Haible  <bruno@clisp.org>
50070
50071         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
50072         Needed for help2man.
50073
50074 2007-02-23  Karl Berry  <karl@gnu.org>
50075
50076         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
50077         exists, foo.h should be cvs-ignored, not committed.
50078
50079 2007-02-23  Eric Blake  <ebb9@byu.net>
50080
50081         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
50082         * lib/stat-time.h (includes): Likewise.
50083         * lib/utimecmp.c (includes): Likewise.
50084         * lib/utimens.h (includes): Likewise.
50085         * lib/getdate.y (includes): Also include "timespec.h" for use
50086         internal to the module.
50087         * modules/utimens (Depends-on): Revert yesterday's patch.
50088         * modules/nanosleep (Depends-on): Add missing dependency.
50089
50090 2007-02-22  Bruno Haible  <bruno@clisp.org>
50091
50092         * lib/glob.c: Don't include getlogin_r.h.
50093
50094 2007-02-22  Jim Meyering  <jim@meyering.net>
50095
50096         * modules/utimens (Depends-on): Add timespec, required for
50097         utimens.h's inclusion of timespec.h.
50098
50099 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
50100
50101         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
50102         long unreadable paths in GNU/Linux.  Problem reported by Andreas
50103         Schwab in
50104         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
50105         I'll try to think of a better way to fix the Solaris problem.
50106
50107         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
50108         like glibc; on Solaris 10, it fails with errno == EINVAL.
50109         POSIX says the behavior is unspecified if the first argument is NULL,
50110         so play it safe and never pass NULL to the system getcwd.
50111
50112 2007-02-21  Jim Meyering  <jim@meyering.net>
50113
50114         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
50115         of gettimeofday.  It would conflict with the one now always
50116         provided via sys_time_.h.  Reported by Matthew Woehlke, as
50117         an IRIX 6.5 build failure.
50118
50119 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
50120
50121         Minor fixups to port to Solaris 10 with Sun C 5.8.
50122         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
50123         * modules/getcwd (Depends-on): Add dirfd.
50124         * lib/putenv.c (putenv): #undef it.
50125         (rpl_putenv): New decl.
50126         (malloc, free): Include <stdlib.h> rather than prototyping separately.
50127
50128 2007-02-20  Bruno Haible  <bruno@clisp.org>
50129
50130         * modules/stdio-tests: New file.
50131         * tests/test-stdio.c: New file.
50132
50133         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
50134         (Depends-on): Add stdio.
50135         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
50136         (Include): Use <stdio.h> instead of vsnprintf.h.
50137         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
50138         HAVE_DECL_VSNPRINTF.
50139         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
50140
50141         * modules/snprintf (Files): Remove lib/snprintf.h.
50142         (Depends-on): Add stdio.
50143         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
50144         (Include): Use <stdio.h> instead of snprintf.h.
50145         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
50146         HAVE_DECL_SNPRINTF.
50147         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
50148         * lib/getaddrinfo.c: Likewise.
50149
50150         * modules/stdio: New file.
50151         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
50152         * lib/snprintf.h: Remove file.
50153         * lib/vsnprintf.h: Remove file.
50154         * lib/.cppi-disable: Remove snprintf.h.
50155         * m4/stdio_h.m4: New file.
50156         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
50157
50158 2007-02-20  Jim Meyering  <jim@meyering.net>
50159
50160         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
50161         used by e.g., mingw.  From Bruno Haible.
50162
50163 2007-02-19  Bruno Haible  <bruno@clisp.org>
50164
50165         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
50166         warnings.
50167         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50168
50169 2007-02-19  Bruno Haible  <bruno@clisp.org>
50170
50171         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
50172         from mingw users.
50173
50174 2007-02-19  Bruno Haible  <bruno@clisp.org>
50175
50176         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
50177         warnings.
50178         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
50179
50180 2007-02-19  Jim Meyering  <jim@meyering.net>
50181
50182         Don't use FD after a successful "fdopendir (fd)".
50183         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
50184         Reset it by calling dirfd on the just-obtained DIR*.
50185
50186         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
50187         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
50188
50189 2007-02-18  Bruno Haible  <bruno@clisp.org>
50190
50191         * lib/readlink.c: Include <unistd.h>.
50192         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
50193         HAVE_READLINK.
50194         * modules/readlink (Depends-on): Add unistd.
50195         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50196         (Include): Add <unistd.h>.
50197
50198         * lib/getlogin_r.h: Remove file.
50199         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
50200         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
50201         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
50202         HAVE_DECL_GETLOGIN_R.
50203         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
50204         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50205         (Include): Use <unistd.h> instead of getlogin_r.h.
50206
50207         * lib/getcwd.h: Remove file.
50208         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
50209         * lib/xgetcwd.c: Likewise.
50210         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
50211         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
50212         * modules/getcwd (Files): Remove lib/getcwd.h.
50213         (Depends-on): Add unistd.
50214         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50215         (Include): Use <unistd.h> instad of getcwd.h.
50216
50217         * lib/ftruncate.c: Include <unistd.h> first.
50218         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
50219         Set HAVE_FTRUNCATE.
50220         * modules/ftruncate (Depends-on): Add unistd.
50221         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50222
50223         * lib/fchdir.c: Include <unistd.h> first.
50224         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
50225         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
50226         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
50227         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50228         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
50229
50230         * lib/dup2.c: Include <unistd.h> first.
50231         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
50232         HAVE_DUP2.
50233         * modules/dup2 (Depends-on): Add unistd.
50234         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50235
50236         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
50237         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
50238         REPLACE_CHOWN. Don't define chown as a macro here.
50239         * modules/chown (Depends-on): Add unistd.
50240         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50241
50242         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
50243         Add definition for GL_LINK_WARNING.
50244         (chown, dup2): New declarations.
50245         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
50246         link warning.
50247         (ftruncate): New declaration.
50248         (getcwd): New declaration, taken from old getcwd.h.
50249         (getlogin_r): New declaration, taken from old getlogin_r.h.
50250         (readlink): New declaration.
50251         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
50252         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
50253         (gl_PREREQ_UNISTD): Remove macro.
50254         (gl_UNISTD_MODULE_INDICATOR): New macro.
50255         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
50256         many new variables. Don't set UNISTD_H.
50257         * modules/unistd (Description): Change.
50258         (Depends-on): Add link-warning.
50259         (configure.ac): Update.
50260         (Makefile.am): Create unistd.h always. Substitute many new variables
50261         into it.
50262
50263 2007-02-18  Bruno Haible  <bruno@clisp.org>
50264
50265         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
50266         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
50267         HAVE_GETSUBOPT.
50268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
50269         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
50270         * lib/getsubopt.h: Remove file.
50271         * modules/getsubopt (Files): Remove lib/getsubopt.h.
50272         (Depends-on): Add stdlib.
50273         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50274         (Includes): Use <stdlib.h> instead of getsubopt.h.
50275         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
50276         Set HAVE_GETSUBOPT.
50277         * lib/getsubopt.c: Don't include getsubopt.h.
50278
50279 2007-02-18  Bruno Haible  <bruno@clisp.org>
50280
50281         * modules/fchdir (Depends-on): Add dup2.
50282
50283 2007-02-18  Bruno Haible  <bruno@clisp.org>
50284
50285         * lib/stdlib_.h: Handle glibc's special invocation convention
50286         specially.
50287
50288 2007-02-18  Bruno Haible  <bruno@clisp.org>
50289
50290         * modules/stdlib-tests: New file.
50291         * tests/test-stdlib.c: New file.
50292
50293         * modules/mkstemp (Files): Remove lib/mkstemp.h.
50294         (Depends-on): Add stdlib.
50295         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50296         (Includes): Use <stdlib.h> instead of mkstemp.h.
50297         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
50298         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
50299         * lib/mkstemp.c: Don't include mkstemp.h.
50300         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
50301         * lib/stdlib--.h: Don't include mkstemp.h.
50302
50303         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
50304         (Depends-on): Add stdlib.
50305         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50306         (Includes): Use <stdlib.h> instead of mkdtemp.h.
50307         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
50308         HAVE_MKDTEMP.
50309         * lib/mkdtemp.c: Don't include mkdtemp.h.
50310         * lib/clean-temp.c: Don't include mkdtemp.h.
50311
50312         * modules/exit (Files): Remove lib/exit.h.
50313         (Depends-on): Add stdlib.
50314         (Makefile.am): Remove lib_SOURCES.
50315         (Include): Use <stdlib.h> instead of exit.h.
50316         * lib/argmatch.c: Don't include exit.h.
50317         * lib/execute.c: Likewise.
50318         * lib/pagealign_alloc.c: Likewise.
50319         * lib/pipe.c: Likewise.
50320         * lib/wait-process.c: Likewise.
50321         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
50322         * lib/exitfail.c: Likewise.
50323         * lib/savewd.c: Likewise.
50324         * lib/xsetenv.c: Likewise.
50325
50326         * modules/stdlib: New file.
50327         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
50328         and extra comments about mkstemp().
50329         * lib/exit.h: Remove file.
50330         * lib/mkdtemp.h: Remove file.
50331         * lib/mkstemp.h: Remove file.
50332         * m4/stdlib_h.m4: New file.
50333         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
50334
50335 2007-02-18  Bruno Haible  <bruno@clisp.org>
50336
50337         * modules/math-tests: New file.
50338         * tests/test-math.c: New file.
50339
50340         * modules/math: New file.
50341         * modules/mathl (Files): Remove lib/mathl.h.
50342         (Depends-on): Add math.
50343         (Makefile.am): Don't mention mathl.h.
50344         (Include): Use <math.h> instead of mathl.h.
50345         * lib/math_.h: New file.
50346         * lib/mathl.h: Remove file.
50347         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
50348         mathl.h.
50349         * lib/asinl.c: Likewise.
50350         * lib/atanl.c: Likewise.
50351         * lib/ceill.c: Likewise.
50352         * lib/cosl.c: Likewise.
50353         * lib/expl.c: Likewise.
50354         * lib/floorl.c: Likewise.
50355         * lib/frexpl.c: Likewise.
50356         * lib/ldexpl.c: Likewise.
50357         * lib/logl.c: Likewise.
50358         * lib/sincosl.c: Likewise.
50359         * lib/sinl.c: Likewise.
50360         * lib/sqrtl.c: Likewise.
50361         * lib/tanl.c: Likewise.
50362         * lib/trigl.c: Likewise.
50363         * m4/math_h.m4: New file.
50364         * MODULES.html.sh (Mathematics): Add math.
50365
50366 2007-02-17  Bruno Haible  <bruno@clisp.org>
50367
50368         * modules/wctype-tests: New file.
50369         * tests/test-wctype.c: New file.
50370
50371         * modules/wchar-tests: New file.
50372         * tests/test-wchar.c: New file.
50373
50374         * modules/unistd-tests: New file.
50375         * tests/test-unistd.c: New file.
50376
50377         * modules/time-tests: New file.
50378         * tests/test-time.c: New file.
50379
50380         * modules/sysexits-tests: New file.
50381         * tests/test-sysexits.c: New file.
50382
50383         * modules/sys_time-tests: New file.
50384         * tests/test-sys_time.c: New file.
50385
50386         * modules/sys_stat-tests: New file.
50387         * tests/test-sys_stat.c: New file.
50388
50389         * modules/sys_socket-tests: New file.
50390         * tests/test-sys_socket.c: New file.
50391
50392         * modules/sys_select-tests: New file.
50393         * tests/test-sys_select.c: New file.
50394
50395         * modules/string-tests: New file.
50396         * tests/test-string.c: New file.
50397
50398         * modules/stdbool-tests: New file.
50399         * tests/test-stdbool.c: New file.
50400
50401         * modules/netinet_in-tests: New file.
50402         * tests/test-netinet_in.c: New file.
50403
50404         * modules/inttypes-tests: New file.
50405         * tests/test-inttypes.c: New file.
50406
50407         * modules/fcntl-tests: New file.
50408         * tests/test-fcntl.c: New file.
50409
50410         * modules/byteswap-tests: New file.
50411         * tests/test-byteswap.c: New file.
50412
50413         * modules/arpa_inet-tests: New file.
50414         * tests/test-arpa_inet.c: New file.
50415
50416 2007-02-17  Bruno Haible  <bruno@clisp.org>
50417
50418         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
50419         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
50420         if the corresponding module is not enabled. Emit link warnings if
50421         the function is used nevertheless.
50422         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
50423         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
50424         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
50425         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
50426         * modules/inttypes (Depends-on): Add link-warning.
50427         (Makefile.am): Copy the contents of build-aux/link-warning.h into
50428         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
50429         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
50430         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
50431         * modules/imaxdiv (configure.ac): Likewise.
50432         * modules/strtoimax (configure.ac): Likewise.
50433         * modules/strtoumax (configure.ac): Likewise.
50434
50435 2007-02-17  Bruno Haible  <bruno@clisp.org>
50436
50437         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
50438         gl_STRING_MODULE_INDICATOR_DEFAULTS.
50439         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
50440         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
50441
50442 2007-02-17  Bruno Haible  <bruno@clisp.org>
50443
50444         * modules/link-warning: New file.
50445         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
50446         * lib/string_.h (GL_LINK_WARNING): Remove definition.
50447         * modules/string (Depends-on): Add link-warning.
50448         (Makefile.am): Copy the contents of build-aux/link-warning.h into
50449         string.h.
50450         * MODULES.html.sh (Support for building libraries and executables): Add
50451         link-warning.
50452
50453 2007-02-17  Bruno Haible  <bruno@clisp.org>
50454
50455         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
50456         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
50457         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
50458         long lines.
50459
50460 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
50461             Bruno Haible  <bruno@clisp.org>
50462
50463         * modules/tmpfile: New file.
50464         * lib/tmpfile.c: New file.
50465         * m4/tmpfile.m4: New file.
50466         * MODULES.html.sh (func_all_modules): New section "Input/output".
50467
50468 2007-02-15  Bruno Haible  <bruno@clisp.org>
50469
50470         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
50471         (supports_delete_on_close): New function.
50472         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
50473
50474 2007-02-14  Bruno Haible  <bruno@clisp.org>
50475
50476         * modules/mbspcasecmp-tests: New file.
50477         * tests/test-mbspcasecmp.sh: New file.
50478         * tests/test-mbspcasecmp.c: New file.
50479
50480         New module mbspcasecmp.
50481         * modules/mbspcasecmp: New file.
50482         * lib/mbspcasecmp.c: New file.
50483         * lib/string_.h (strncasecmp): Change warning message.
50484         (mbspcasecmp): New declaration.
50485         * m4/mbspcasecmp.m4: New file.
50486         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50487         GNULIB_MBSPCASECMP.
50488         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
50489         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
50490
50491 2007-02-14  Bruno Haible  <bruno@clisp.org>
50492
50493         * modules/mbsncasecmp-tests: New file.
50494         * tests/test-mbsncasecmp.sh: New file.
50495         * tests/test-mbsncasecmp.c: New file.
50496
50497         New module mbsncasecmp.
50498         * modules/mbsncasecmp: New file.
50499         * lib/mbsncasecmp.c: New file.
50500         * lib/string_.h (mbsncasecmp): New declaration.
50501         * m4/mbsncasecmp.m4: New file.
50502         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50503         GNULIB_MBSNCASECMP.
50504         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
50505         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
50506
50507 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
50508
50509         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
50510         Verify that it doesn't overlap with our flags.
50511         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
50512         do not have the desired effect in multibyte locales; instead, use
50513         mbscasecmp.
50514         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
50515         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
50516         we don't require GNU fnmatch ourselves (if our users require it, they
50517         should do so explicitly).
50518
50519         Fix regex code so it doesn't rely on strcasecmp.
50520         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
50521         Otherwise, include gnulib's langinfo.h.
50522         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
50523         undesirable behavior in non-C locales.  Instead, rely on localecharset.
50524         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
50525         * modules/regex (FILES): Remove m4/codeset.m4.
50526         (Depends-on): Add localcharset.  Remove strcase.
50527
50528 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50529
50530         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
50531         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
50532
50533 2007-02-13  Bruno Haible  <bruno@clisp.org>
50534
50535         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
50536         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50537
50538 2007-02-12  Bruno Haible  <bruno@clisp.org>
50539
50540         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
50541         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
50542         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
50543         time warning rather than a link error.
50544
50545 2007-02-12  Bruno Haible  <bruno@clisp.org>
50546
50547         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
50548         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50549         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50550
50551 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
50552
50553         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
50554         args, not 2.
50555
50556 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
50557
50558         New module 'time', so that apps can include <time.h> as per
50559         POSIX and GNU instead of separate include files like time_r.h
50560         and timegm.h.  This implementation tries out a simpler approach
50561         for replacing decls in standard include files (as compared to
50562         the string module), somewhat as an experiment.
50563
50564         * config/srclist.txt: Comment out mktime.c for now.
50565         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
50566         since it doesn't apply any more.  Use generic wording instead.
50567         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
50568         'time'.
50569         * lib/time_.h, m4/time_h.m4, modules/time: New files.
50570         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
50571         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
50572         Don't include <sys/types.h>; no longer needed since we assume C89.
50573         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
50574         * lib/strftime.c: Likewise.
50575         * lib/time_r.c: Likewise.
50576         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
50577         * lib/nanosleep.c: Include <time.h> first, to check interface.
50578         * lib/strptime.c: Likewise.
50579         * lib/time_r.c: Likewise.
50580         * lib/timegm.c: Likewise.
50581         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
50582         needed.
50583         * lib/timegm.c: Don't include timegm.h; no longer needed.
50584         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
50585         time.h now handles any problems in that area.
50586         (struct timespec, nanosleep): Remove; time.h now arranges for these.
50587         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
50588         that time.h defines struct timespec.
50589         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
50590         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
50591         handles that.
50592         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
50593         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
50594         needed.  Set REPLACE_LOCALTIME.
50595         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
50596         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
50597         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
50598         nanosleep; time_h.m4 now does that.  Don't require
50599         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
50600         module handles this now.
50601         * modules/getdate (Depends-on): Remove timespec.  Add time.
50602         * modules/nanosleep (Depends-on): Likewise.
50603         * modules/stat-time (Depends-on): Likewise.
50604         * modules/nanosleep (Include): Include time.h, not timespec.h.
50605         * modules/strptime (Files): Remove lib/strptime.h.
50606         (Depends-on): Add extensions, time.
50607         (Include): Include time.h, not strptime.h.
50608         * modules/time_r (Files): Remove lib/time_r.h.
50609         (Depends-on): Add time.
50610         (Include): Include time.h, not time_r.h.
50611         * modules/timegm: Likewise.
50612         * modules/timespec (Description): Now does timespec-related decls
50613         of our own, instead of struct timespec itself.
50614         (Depends-on): Add time; remove extensions.
50615         (Maintainer): Add self.
50616         * modules/utimecmp (Depends-on): Add time; remove timespec.
50617         * modules/utimens (Depends-on): Likewise.
50618         * modules/xnanosleep (Depends-on): Likewise.
50619
50620 2007-02-11  Bruno Haible  <bruno@clisp.org>
50621
50622         * lib/c-strstr.c: Include allocsa.h.
50623         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
50624         * lib/c-strcasestr.c: Include allocsa.h.
50625         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
50626         * lib/strcasestr.c: Include allocsa.h.
50627         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
50628         * lib/mbsstr.c: Include allocsa.h.
50629         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
50630         allocsa/freesa instead of malloc/free.
50631         * lib/mbscasestr.c: Include allocsa.h.
50632         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
50633         allocsa/freesa instead of malloc/free.
50634         * modules/c-strstr (Depends-on): Add allocsa.
50635         * modules/c-strcasestr (Depends-on): Likewise.
50636         * modules/strcasestr (Depends-on): Likewise.
50637         * modules/mbsstr (Depends-on): Likewise.
50638         * modules/mbscasestr (Depends-on): Likewise.
50639
50640 2007-02-11  Bruno Haible  <bruno@clisp.org>
50641
50642         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
50643
50644         * modules/mbsspn-tests: New file.
50645         * tests/test-mbsspn.sh: New file.
50646         * tests/test-mbsspn.c: New file.
50647
50648 2007-02-11  Bruno Haible  <bruno@clisp.org>
50649
50650         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
50651
50652         * modules/mbspbrk-tests: New file.
50653         * tests/test-mbspbrk.sh: New file.
50654         * tests/test-mbspbrk.c: New file.
50655
50656 2007-02-11  Bruno Haible  <bruno@clisp.org>
50657
50658         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
50659         unneeded cast.
50660
50661         * modules/mbscspn-tests: New file.
50662         * tests/test-mbscspn.sh: New file.
50663         * tests/test-mbscspn.c: New file.
50664
50665 2007-02-11  Bruno Haible  <bruno@clisp.org>
50666
50667         * modules/mbscasecmp-tests: New file.
50668         * tests/test-mbscasecmp.sh: New file.
50669         * tests/test-mbscasecmp.c: New file.
50670
50671 2007-02-11  Bruno Haible  <bruno@clisp.org>
50672
50673         Ensure O(n) worst-case complexity of mbscasestr.
50674         * lib/mbscasestr.c: Include stdbool.h.
50675         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
50676         functions.
50677         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
50678         the bookkeeping indicates that it's worth it.
50679         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
50680
50681         * modules/mbscasestr-tests: New file.
50682         * tests/test-mbscasestr1.c: New file.
50683         * tests/test-mbscasestr2.sh: New file.
50684         * tests/test-mbscasestr2.c: New file.
50685         * tests/test-mbscasestr3.sh: New file.
50686         * tests/test-mbscasestr3.c: New file.
50687         * tests/test-mbscasestr4.sh: New file.
50688         * tests/test-mbscasestr4.c: New file.
50689         * m4/locale-tr.m4: New file.
50690
50691 2007-02-11  Bruno Haible  <bruno@clisp.org>
50692
50693         Ensure O(n) worst-case complexity of mbsstr.
50694         * lib/mbsstr.c: Include stdbool.h.
50695         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
50696         functions.
50697         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
50698         bookkeeping indicates that it's worth it.
50699         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
50700
50701         * modules/mbsstr-tests: New file.
50702         * tests/test-mbsstr1.c: New file.
50703         * tests/test-mbsstr2.sh: New file.
50704         * tests/test-mbsstr2.c: New file.
50705         * tests/test-mbsstr3.sh: New file.
50706         * tests/test-mbsstr3.c: New file.
50707         * m4/locale-fr.m4: New file.
50708
50709 2007-02-11  Bruno Haible  <bruno@clisp.org>
50710
50711         * lib/mbsrchr.c (mbsrchr): Fix bug.
50712
50713         * modules/mbsrchr-tests: New file.
50714         * tests/test-mbsrchr.sh: New file.
50715         * tests/test-mbsrchr.c: New file.
50716
50717 2007-02-11  Bruno Haible  <bruno@clisp.org>
50718
50719         * lib/mbschr.c (mbschr): Fix bug.
50720
50721         * modules/mbschr-tests: New file.
50722         * tests/test-mbschr.sh: New file.
50723         * tests/test-mbschr.c: New file.
50724         * m4/locale-zh.m4: New file.
50725
50726 2007-02-11  Bruno Haible  <bruno@clisp.org>
50727
50728         Support for copying multibyte string iterators.
50729         * lib/mbiter.h: Include <string.h>.
50730         (mbiter_multi_copy): New function.
50731         (mbi_copy): New macro.
50732         * lib/mbuiter.h: Include <string.h>.
50733         (mbuiter_multi_copy): New function.
50734         (mbui_copy): New macro.
50735
50736 2007-02-11  Bruno Haible  <bruno@clisp.org>
50737
50738         New module mbslen.
50739         * modules/mbslen: New file.
50740         * lib/mbslen.c: New file.
50741         * lib/string_.h (mbslen): New declaration.
50742         * m4/mbslen.m4: New file.
50743         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50744         GNULIB_MBSLEN.
50745         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
50746         * MODULES.html.sh (Internationalization functions): Add mbslen.
50747
50748 2007-02-11  Bruno Haible  <bruno@clisp.org>
50749
50750         Ensure O(n) worst-case complexity of strcasestr substitute.
50751         * lib/strcasestr.c: Include stdbool.h.
50752         (knuth_morris_pratt): New function.
50753         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
50754         bookkeeping indicates that it's worth it.
50755         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
50756
50757         * modules/strcasestr-tests: New file.
50758         * tests/test-strcasestr.c: New file.
50759
50760 2007-02-11  Bruno Haible  <bruno@clisp.org>
50761
50762         Ensure O(n) worst-case complexity of c_strcasestr.
50763         * lib/c-strcasestr.c: Include stdbool.h, string.h.
50764         (knuth_morris_pratt): New function.
50765         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
50766         the bookkeeping indicates that it's worth it.
50767         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
50768
50769         * modules/c-strcasestr-tests: New file.
50770         * tests/test-c-strcasestr.c: New file.
50771
50772 2007-02-11  Bruno Haible  <bruno@clisp.org>
50773
50774         Ensure O(n) worst-case complexity of c_strstr.
50775         * lib/c-strstr.c: Include stdbool.h, string.h.
50776         (knuth_morris_pratt): New function.
50777         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
50778         bookkeeping indicates that it's worth it.
50779         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
50780
50781         * lib/c-strstr.c: Complete rewrite for maintainability.
50782
50783         * modules/c-strstr-tests: New file.
50784         * tests/test-c-strstr.c: New file.
50785
50786 2007-02-11  Bruno Haible  <bruno@clisp.org>
50787
50788         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
50789         5.2.1 and earlier, whereby \055 was treated just like the range
50790         delimiter '-'.
50791         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50792
50793 2007-02-08  Bruno Haible  <bruno@clisp.org>
50794
50795         * modules/regex (Depends-on): Add stdbool.
50796         Reported by Dalibor Topic <robilad@kaffe.org>.
50797
50798 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
50799
50800         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
50801         Prefer returning from main to exiting from it.
50802         Remove unnecessary parens after sizeof.
50803
50804 2007-02-05  Bruno Haible  <bruno@clisp.org>
50805
50806         New module mbssep.
50807         * modules/mbssep: New file.
50808         * lib/mbssep.c: New file.
50809         * lib/string_.h (strsep): Add a conditional link warning.
50810         (mbssep): New declaration.
50811         * m4/mbssep.m4: New file.
50812         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50813         GNULIB_MBSSEP.
50814         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
50815         * MODULES.html.sh (Internationalization functions): Add mbssep.
50816
50817 2007-02-05  Bruno Haible  <bruno@clisp.org>
50818
50819         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
50820         Optimize search in case of 1 delimiter.
50821
50822 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
50823
50824         * lib/acl.h: Include sys/types.h before sys/acl.h.
50825
50826 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
50827
50828         Merge upstream fix for glibc bugzilla #3957:
50829
50830         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
50831
50832         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
50833         bit for RE_HAT_LISTS_NOT_NEWLINE.
50834         (build_charclass_op): Remove bogus comment.
50835
50836 2007-02-05  Simon Josefsson  <simon@josefsson.org>
50837
50838         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
50839
50840 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
50841
50842         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
50843         * lib/memmem.c [!defined _LIBC]: Include config.h.
50844
50845 2007-02-04  Bruno Haible  <bruno@clisp.org>
50846
50847         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
50848         warning message.
50849
50850 2007-02-04  Bruno Haible  <bruno@clisp.org>
50851
50852         New module mbstok_r.
50853         * modules/mbstok_r: New file.
50854         * lib/mbstok_r.c: New file.
50855         * lib/string_.h (strtok_r): Change argument names to match the
50856         comments. Add a conditional link warning.
50857         (mbstok_r): New declaration.
50858         * m4/mbstok_r.m4: New file.
50859         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50860         GNULIB_MBSTOK_R.
50861         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
50862         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
50863
50864 2007-02-04  Bruno Haible  <bruno@clisp.org>
50865
50866         New module mbsspn.
50867         * modules/mbsspn: New file.
50868         * lib/mbsspn.c: New file.
50869         * lib/string_.h (strspn): Add a conditional link warning.
50870         (mbsspn): New declaration.
50871         * m4/mbsspn.m4: New file.
50872         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50873         GNULIB_MBSSPN.
50874         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
50875         * MODULES.html.sh (Internationalization functions): Add mbsspn.
50876
50877 2007-02-04  Bruno Haible  <bruno@clisp.org>
50878
50879         New module mbspbrk.
50880         * modules/mbspbrk: New file.
50881         * lib/mbspbrk.c: New file.
50882         * lib/string_.h (strpbrk): Add a conditional link warning.
50883         (mbspbrk): New declaration.
50884         * m4/mbspbrk.m4: New file.
50885         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50886         GNULIB_MBSPBRK.
50887         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
50888         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
50889
50890 2007-02-04  Bruno Haible  <bruno@clisp.org>
50891
50892         New module mbscspn.
50893         * modules/mbscspn: New file.
50894         * lib/mbscspn.c: New file.
50895         * lib/string_.h (strcspn): Add a conditional link warning.
50896         (mbscspn): New declaration.
50897         * m4/mbscspn.m4: New file.
50898         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50899         GNULIB_MBSCSPN.
50900         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
50901         * MODULES.html.sh (Internationalization functions): Add mbscspn.
50902
50903 2007-02-04  Bruno Haible  <bruno@clisp.org>
50904
50905         New module mbscasestr, reduced goal of strcasestr.
50906         * modules/mbscasestr: New file.
50907         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
50908         (mbscasestr): Renamed from strcasestr.
50909         * lib/strcasestr.c: Don't include mbuiter.h.
50910         (strcasestr): Remove support for multibyte locales.
50911         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
50912         Change the conditional link warning.
50913         (mbscasestr): New declaration.
50914         * m4/mbscasestr.m4: New file.
50915         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
50916         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
50917         REPLACE_STRCASESTR.
50918         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
50919         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50920         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
50921         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
50922         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
50923         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
50924         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
50925         (Depends-on): Remove mbuiter.
50926         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
50927
50928 2007-02-04  Bruno Haible  <bruno@clisp.org>
50929
50930         Simplify handling of strncasecmp.
50931         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
50932         the conditional link warning.
50933         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50934         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
50935         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
50936         * modules/strcase (configure.ac): Don't invoke
50937         gl_STRING_MODULE_INDICATOR.
50938         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
50939
50940 2007-02-04  Bruno Haible  <bruno@clisp.org>
50941
50942         New module mbscasecmp, reduced goal of strcasecmp.
50943         * modules/mbscasecmp: New file.
50944         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
50945         (mbscasecmp): Renamed from strcasecmp.
50946         * lib/strcasecmp.c: Don't include mbuiter.h.
50947         (strcasecmp): Remove support for multibyte locales.
50948         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
50949         Change the conditional link warning.
50950         (mbscasecmp): New declaration.
50951         * m4/mbscasecmp.m4: New file.
50952         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
50953         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
50954         REPLACE_STRCASECMP.
50955         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
50956         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50957         GNULIB_MBSCASECMP.
50958         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
50959         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
50960         * modules/strcase (Files): Remove m4/mbrtowc.m4.
50961         (Depends-on): Remove mbuiter.
50962         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
50963
50964 2007-02-04  Bruno Haible  <bruno@clisp.org>
50965
50966         New module mbsstr. Remove module strstr.
50967         * modules/mbsstr: New file.
50968         * modules/strstr: Remove file.
50969         * lib/mbsstr.c: Renamed from lib/strstr.c.
50970         (mbsstr): Renamed from strstr.
50971         * lib/string_.h (strstr): Remove declaration. Change the conditional
50972         link warning.
50973         (mbsstr): New declaration.
50974         * m4/mbsstr.m4: New file.
50975         * m4/strstr.m4: Remove file.
50976         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
50977         REPLACE_STRSTR.
50978         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
50979         Don't initialize GNULIB_STRSTR.
50980         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
50981         substitute GNULIB_STRSTR and REPLACE_STRSTR.
50982         * MODULES.html.sh (Internationalization functions): Add mbsstr.
50983         (Support for systems lacking ANSI C 89): Remove strstr.
50984
50985 2007-02-04  Bruno Haible  <bruno@clisp.org>
50986
50987         New module mbsrchr.
50988         * modules/mbsrchr: New file.
50989         * lib/mbsrchr.c: New file.
50990         * lib/string_.h (strrchr): Add a conditional link warning.
50991         (mbsrchr): New declaration.
50992         * m4/mbsrchr.m4: New file.
50993         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50994         GNULIB_MBSRCHR.
50995         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
50996         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
50997
50998 2007-02-04  Bruno Haible  <bruno@clisp.org>
50999
51000         New module mbschr.
51001         * modules/mbschr: New file.
51002         * lib/mbschr.c: New file.
51003         * lib/string_.h (strchr): Add a conditional link warning.
51004         (mbschr): New declaration.
51005         * m4/mbschr.m4: New file.
51006         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51007         GNULIB_MBSCHR.
51008         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
51009         * MODULES.html.sh (Internationalization functions): Add mbschr.
51010
51011 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
51012
51013         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
51014
51015         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
51016
51017 2007-02-04  Bruno Haible  <bruno@clisp.org>
51018
51019         New module description section 'configure.ac-early'.
51020         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
51021         (func_get_autoconf_early_snippet): New function.
51022         (func_import, func_create_testdir): Use it. Remove special cases for
51023         modules 'extensions' and 'lock'.
51024         * modules/extensions (configure.ac-early): Require
51025         gl_USE_SYSTEM_EXTENSIONS.
51026         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
51027
51028 2007-02-04  Bruno Haible  <bruno@clisp.org>
51029
51030         Make use of gcj-4.3's -fsource and -ftarget option.
51031         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
51032         and if so try the options -fsource and -ftarget.
51033         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
51034         source_version, ftarget_option, target_version arguments.
51035         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
51036         (is_envjavac_oldgcj_14_14_usable): Renamed from
51037         is_envjavac_gcj_14_14_usable.
51038         (is_envjavac_oldgcj_14_13_usable): Renamed from
51039         is_envjavac_gcj_14_13_usable.
51040         (is_gcj_present): Update.
51041         (is_gcj_43, is_gcj43_usable): New functions.
51042         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
51043         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
51044         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
51045         try the options -fsource and -ftarget.
51046
51047 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51048
51049         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
51050         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
51051         larger value.
51052
51053 2007-02-03  Jim Meyering  <jim@meyering.net>
51054
51055         Give tools a better chance to allocate space for very large buffers.
51056         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
51057
51058         Make pwd and readlink work also when run with an unreadable parent dir
51059         on systems with openat support.
51060         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
51061         provided getcwd function, even when we have openat support.
51062         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
51063
51064 2007-02-02  Bruno Haible  <bruno@clisp.org>
51065
51066         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
51067         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
51068         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
51069         portability problems if one of these functions is only used on specific
51070         platforms.
51071         Reported by Paul Eggert.
51072
51073 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
51074
51075         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
51076         is causing more trouble than it's curing.
51077         * lib/regex_internal.h (__mempcpy): Remove.
51078         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
51079         (and make the code a tad smaller to boot).
51080         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
51081
51082 2007-02-02  Jim Meyering  <jim@meyering.net>
51083
51084         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
51085         section, not in the Makefile.am: one.
51086
51087 2007-02-02  Eric Blake  <ebb9@byu.net>
51088
51089         * lib/strchrnul.c: Always include config.h first.
51090
51091         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
51092         gnulib strstr is not necessary here.
51093
51094 2007-02-02  Simon Josefsson  <simon@josefsson.org>
51095
51096         * m4/socklen.m4: Fix typo.
51097
51098 2007-02-02  Eric Blake  <ebb9@byu.net>
51099
51100         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
51101         * modules/netinet_in (Makefile.am): Likewise.
51102
51103 2007-02-01  Bruno Haible  <bruno@clisp.org>
51104
51105         * lib/string_.h (GL_LINK_WARNING): New macro.
51106         (strcasecmp, strstr, strcasestr): If provided by the system,
51107         conditionally define as a macro that leads to a warning instead of to
51108         an error.
51109         (strncasecmp): Conditionally define as a macro that leads to a warning.
51110
51111 2007-02-01  Karl Berry  <karl@gnu.org>
51112
51113         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
51114
51115 2007-02-01  Bruno Haible  <bruno@clisp.org>
51116
51117         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
51118         renamings.
51119
51120 2007-02-01  Eric Blake  <ebb9@byu.net>
51121
51122         * modules/regex (Depends-on): Revert dependence on mempcpy.
51123         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
51124         module's definition of mempcpy.
51125         Reported by Paul Eggert.
51126
51127 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
51128
51129         * lib/string_.h: If the gnulib module XYZ is not present, undefine
51130         the symbol XYZ before redefining it.  This fixes a problem with
51131         programs that don't use XYZ, when compiled on systems that define
51132         XYZ to something else.
51133
51134 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
51135
51136         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
51137         occurs when "mkdir -m foo" creates a setgid directory that is (1)
51138         writeable to group or other and (2) is intended to have a special
51139         mode bit that is set or cleared.  In such a case, the directory
51140         should be neither group- nor other-writeable until the special
51141         mode bits are right.
51142
51143 2007-01-31  Eric Blake  <ebb9@byu.net>
51144
51145         * modules/mountlist (Depends-on): Add strstr.
51146
51147         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
51148         bug.
51149         * modules/string (Makefile.am): Remove redundant replacement.
51150         * modules/regex (Depends-on): Add mempcpy.
51151
51152 2007-01-31  Bruno Haible  <bruno@clisp.org>
51153
51154         New module description field 'Link'.
51155         * gnulib-tool (func_usage): Document --extract-link-directive.
51156         (sed_extract_prog): Recognize 'Link' directive.
51157         (func_get_link_directive): New function.
51158         (func_import): Show summary of link directives.
51159         Handle --extract-link-directive option.
51160         * modules/acl (Link): New section.
51161         * modules/clock-time (Link): New section.
51162         * modules/euidaccess (Link): New section.
51163         * modules/gettext (Link): New section.
51164         * modules/iconv (Link): New section.
51165         * modules/lock (Link): New section.
51166         * modules/nanosleep (Link): New section.
51167         * modules/readline (Link): New section.
51168
51169 2007-01-27  Bruno Haible  <bruno@clisp.org>
51170
51171         Enforce the use of gnulib modules for unportable <string.h> functions.
51172         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
51173         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
51174         (gl_HEADER_STRING_H_BODY): Require it.
51175         * lib/string_.h: If the gnulib module XYZ is not present, redefine
51176         the symbol XYZ to one that gives a link error.
51177         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
51178         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
51179         * modules/mempcpy (configure.ac): Likewise.
51180         * modules/memrchr (configure.ac): Likewise.
51181         * modules/stpcpy (configure.ac): Likewise.
51182         * modules/stpncpy (configure.ac): Likewise.
51183         * modules/strcase (configure.ac): Likewise.
51184         * modules/strcasestr (configure.ac): Likewise.
51185         * modules/strchrnul (configure.ac): Likewise.
51186         * modules/strdup (configure.ac): Likewise.
51187         * modules/strndup (configure.ac): Likewise.
51188         * modules/strnlen (configure.ac): Likewise.
51189         * modules/strpbrk (configure.ac): Likewise.
51190         * modules/strsep (configure.ac): Likewise.
51191         * modules/strstr (configure.ac): Likewise.
51192         * modules/strtok_r (configure.ac): Likewise.
51193
51194 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
51195
51196         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
51197
51198 2007-01-30  Jim Meyering  <jim@meyering.net>
51199
51200         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
51201
51202 2007-01-29  Bruno Haible  <bruno@clisp.org>
51203
51204         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
51205         * lib/execute.c: Likewise.
51206         * lib/pipe.c: Likewise.
51207         * lib/printf-args.h: Likewise.
51208         * lib/printf-args.c: Likewise.
51209         * lib/printf-parse.c: Likewise.
51210         * lib/vasnprintf.c: Likewise.
51211
51212 2007-01-29  Eric Blake  <ebb9@byu.net>
51213
51214         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
51215         declaration.
51216
51217 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
51218
51219         * lib/strptime.h (strptime): Use 'restrict' for args where
51220         POSIX requires this.
51221         * lib/strptime.c (strptime): Likewise.
51222         Change license notice from LGPL to GPL, since gnulib-tool will
51223         change this as needed.
51224         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
51225         defined.
51226         Include "strptime.h" first, to check interface.
51227         Do not #undef _LIBC and _NL_CURRENT.
51228         Do not include <stdlib.h>; no longer needed.
51229         Include "time_r.h" and declare ptime_locale_status
51230         only if _LIBC is not defined.
51231         (__P): Remove unused macro.
51232         (match_string): Bring back glibc version, but use it only if _LIBC
51233         is defined.
51234         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
51235         Remove unnecessary assertion and abort() call.
51236         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
51237         * m4/strptime.m4: Fix serial number comment.
51238         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
51239         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
51240         (Depends-on): Add time_r.
51241
51242 2007-01-29  Bruno Haible  <bruno@clisp.org>
51243
51244         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51245         strptime.
51246         * modules/strptime (Depends-on): Add stdbool.
51247         * lib/strptime.h: Include <time.h> always. Add comments.
51248
51249 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51250
51251         * modules/strptime: New file.
51252         * lib/strptime.h: New file.
51253         * lib/strptime.c: New file.
51254         * m4/strptime.m4: New file.
51255
51256 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51257
51258         * MODULES.html.sh: New module mpsort.
51259         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
51260
51261         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
51262         a circularity problem with HP-UX ia64 reported by Bob Proulx in
51263         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
51264         All uses changed.
51265         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
51266         All uses changed.
51267         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
51268         to _Restrict_.
51269         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
51270         the parameter matches the prototype.
51271
51272 2007-01-28  Jim Meyering  <jim@meyering.net>
51273
51274         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
51275         sys/time.h here, reverting that part of the previous patch:
51276         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
51277
51278 2007-01-28  Bruno Haible  <bruno@clisp.org>
51279
51280         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
51281         value of $(SYS_TIME_H).
51282         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
51283         remove it conditionally, too. [added by Jim Meyering]
51284         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
51285         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
51286         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
51287         GETTIMEOFDAY_REPLACEMENT to 1.
51288
51289 2007-01-28  Bruno Haible  <bruno@clisp.org>
51290
51291         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
51292         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
51293         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
51294         Set UNISTD_H instead of UNISTD_H2.
51295         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
51296
51297 2007-01-28  Bruno Haible  <bruno@clisp.org>
51298
51299         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
51300         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
51301
51302 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51303
51304         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
51305         (func_create_testdir): Ensure C locale for `grep' and `tr'
51306         character ranges.
51307         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
51308         ACLOCAL_AMFLAGS parsing state machine.
51309
51310 2007-01-27  Bruno Haible  <bruno@clisp.org>
51311
51312         * modules/unistr/base: Update.
51313
51314 2007-01-27  Bruno Haible  <bruno@clisp.org>
51315
51316         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
51317         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
51318         * modules/unistr/u32-mbtouc-unsafe: Renamed from
51319         modules/unistr/u32-mbtouc.
51320         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
51321         * lib/unistr.h: Update.
51322         * lib/linebreak.c: Update.
51323         * modules/unistr/u32-mbtouc: Renamed from
51324         modules/unistr/u32-mbtouc-safe.
51325         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
51326         * lib/unistr.h: Update.
51327         * lib/unistr/u32-to-u8.c: Update.
51328         * lib/unistr/u32-to-u16.c: Update.
51329
51330 2007-01-27  Bruno Haible  <bruno@clisp.org>
51331
51332         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
51333         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
51334         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
51335         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
51336         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
51337         * modules/unistr/u16-mbtouc-unsafe: Renamed from
51338         modules/unistr/u16-mbtouc.
51339         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
51340         * lib/unistr.h: Update.
51341         * lib/linebreak.c: Update.
51342         * modules/linebreak: Update.
51343         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
51344         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
51345         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
51346         * modules/unistr/u16-mbtouc: Renamed from
51347         modules/unistr/u16-mbtouc-safe.
51348         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
51349         * lib/unistr.h: Update.
51350         * lib/unistr/u16-to-u8.c: Update.
51351         * modules/unistr/u16-to-u8: Update.
51352         * lib/unistr/u16-to-u32.c: Update.
51353         * modules/unistr/u16-to-u32: Update.
51354
51355 2007-01-27  Bruno Haible  <bruno@clisp.org>
51356
51357         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
51358         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
51359         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
51360         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
51361         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
51362         * modules/unistr/u8-mbtouc-unsafe: Renamed from
51363         modules/unistr/u8-mbtouc.
51364         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
51365         * lib/unistr.h: Update.
51366         * lib/striconveh.c: Update.
51367         * modules/striconveh: Update.
51368         * lib/linebreak.c: Update.
51369         * modules/linebreak: Update.
51370         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
51371         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
51372         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
51373         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
51374         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
51375         * lib/unistr.h: Update.
51376         * lib/striconveh.c: Update.
51377         * modules/striconveh: Update.
51378         * lib/unistr/u8-to-u16.c: Update.
51379         * modules/unistr/u8-to-u16: Update.
51380         * lib/unistr/u8-to-u32.c: Update.
51381         * modules/unistr/u8-to-u32: Update.
51382
51383 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51384
51385         Sync from Libtool.
51386         * lib/argz.c: Do not include strings.h nor memory.h, include
51387         string.h unconditionally.  Patch by Simon Josefsson.
51388
51389 2007-01-27  Bruno Haible  <bruno@clisp.org>
51390
51391         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
51392         from gl_HEADER_STRING_H_BODY.
51393         (gl_HEADER_STRING_H_BODY): Require it.
51394         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
51395         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51396         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51397         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51398         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51399         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
51400         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51401         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51402         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
51403         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51404         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51405         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
51406         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51407         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51408         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51409
51410 2007-01-27  Bruno Haible  <bruno@clisp.org>
51411
51412         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
51413         check_PROGRAMS into noinst_PROGRAMS.
51414         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
51415         check_PROGRAMS in this case.
51416         (func_import): Set for_test to false.
51417         (func_create_testdir): Set for_test to true.
51418
51419 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51420             Bruno Haible  <bruno@clisp.org>
51421
51422         * modules/strcasestr (Files): Remove lib/strcasestr.h.
51423         (Depends-on): Add string.
51424         (Includes): Use <string.h> instead of strcasestr.h.
51425         * modules/string (Makefile.am): Also substitute the value of
51426         REPLACE_STRCASESTR.
51427         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
51428         assume strcasestr is declared in <string.h> not <strings.h>. Also
51429         set REPLACE_STRCASESTR.
51430         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
51431         REPLACE_STRCASESTR.
51432         * lib/strcasestr.h: Remove file.
51433         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
51434         * lib/string_.h (strcasestr): New declaration.
51435
51436 2007-01-27  Bruno Haible  <bruno@clisp.org>
51437
51438         * lib/string_.h: Use 'extern'.
51439
51440 2007-01-27  Jim Meyering  <jim@meyering.net>
51441
51442         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
51443         of set-but-not-used local, "q".
51444
51445         * lib/mempcpy.c: Include <config.h> before <string.h>.
51446         This fixes a compilation error on HP-UX, due to the system's
51447         "restrict"-using mempcpy prototype.
51448
51449 2007-01-26  Bruno Haible  <bruno@clisp.org>
51450
51451         Small optimization.
51452         * lib/javacomp.c: Include c-strstr.h.
51453          (is_envjavac_gcj): Use c_strstr instead of strstr.
51454         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
51455
51456 2007-01-26  Bruno Haible  <bruno@clisp.org>
51457
51458         * MODULES.html.sh (Unicode string functions): Add the new modules.
51459
51460         * modules/uniconv/u32-strconv-to-locale: New file.
51461         * lib/uniconv/u32-strconv-to-locale.c: New file.
51462
51463         * modules/uniconv/u16-strconv-to-locale: New file.
51464         * lib/uniconv/u16-strconv-to-locale.c: New file.
51465
51466         * modules/uniconv/u8-strconv-to-locale: New file.
51467         * lib/uniconv/u8-strconv-to-locale.c: New file.
51468
51469         * modules/uniconv/u32-strconv-from-locale: New file.
51470         * lib/uniconv/u32-strconv-from-locale.c: New file.
51471
51472         * modules/uniconv/u16-strconv-from-locale: New file.
51473         * lib/uniconv/u16-strconv-from-locale.c: New file.
51474
51475         * modules/uniconv/u8-strconv-from-locale: New file.
51476         * lib/uniconv/u8-strconv-from-locale.c: New file.
51477
51478         * modules/uniconv/u32-strconv-to-enc: New file.
51479         * lib/uniconv/u32-strconv-to-enc.c: New file.
51480         * modules/uniconv/u32-strconv-to-enc-tests: New file.
51481         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
51482
51483         * modules/uniconv/u16-strconv-to-enc: New file.
51484         * lib/uniconv/u16-strconv-to-enc.c: New file.
51485         * lib/uniconv/u-strconv-to-enc.h: New file.
51486         * modules/uniconv/u16-strconv-to-enc-tests: New file.
51487         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
51488
51489         * modules/uniconv/u8-strconv-to-enc: New file.
51490         * lib/uniconv/u8-strconv-to-enc.c: New file.
51491         * modules/uniconv/u8-strconv-to-enc-tests: New file.
51492         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
51493
51494         * modules/uniconv/u32-strconv-from-enc: New file.
51495         * lib/uniconv/u32-strconv-from-enc.c: New file.
51496         * modules/uniconv/u32-strconv-from-enc-tests: New file.
51497         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
51498
51499         * modules/uniconv/u16-strconv-from-enc: New file.
51500         * lib/uniconv/u16-strconv-from-enc.c: New file.
51501         * modules/uniconv/u16-strconv-from-enc-tests: New file.
51502         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
51503
51504         * modules/uniconv/u8-strconv-from-enc: New file.
51505         * lib/uniconv/u8-strconv-from-enc.c: New file.
51506         * lib/uniconv/u-strconv-from-enc.h: New file.
51507         * modules/uniconv/u8-strconv-from-enc-tests: New file.
51508         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
51509
51510         * modules/uniconv/u32-conv-from-enc: New file.
51511         * lib/uniconv/u32-conv-from-enc.c: New file.
51512         * modules/uniconv/u32-conv-from-enc-tests: New file.
51513         * tests/uniconv/test-u32-conv-from-enc.c: New file.
51514
51515         * modules/uniconv/u16-conv-from-enc: New file.
51516         * lib/uniconv/u16-conv-from-enc.c: New file.
51517         * lib/uniconv/u-conv-from-enc.h: New file.
51518         * modules/uniconv/u16-conv-from-enc-tests: New file.
51519         * tests/uniconv/test-u16-conv-from-enc.c: New file.
51520
51521         * modules/uniconv/u8-conv-from-enc: New file.
51522         * lib/uniconv/u8-conv-from-enc.c: New file.
51523         * modules/uniconv/u8-conv-from-enc-tests: New file.
51524         * tests/uniconv/test-u8-conv-from-enc.c: New file.
51525
51526         * modules/uniconv/base: New file.
51527         * lib/uniconv.h: New file.
51528
51529 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
51530
51531         * doc/gnulib-tool.texi (Initial import): Update to match current
51532         behavior with strdup module.
51533         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
51534         * lib/memmem.h: Remove; all uses removed.  This is now done
51535         by <string.h>.
51536         * lib/mempcpy.h: Likewise.
51537         * lib/memrchr.h: Likewise.
51538         * lib/stpcpy.h: Likewise.
51539         * lib/stpncpy.h: Likewise.
51540         * lib/strcase.h: Likewise.
51541         * lib/strchrnul.h: Likewise.
51542         * lib/strdup.h: Likewise.
51543         * lib/strndup.h: Likewise.
51544         * lib/strnlen.h: Likewise.
51545         * lib/strpbrk.h: Likewise.
51546         * lib/strsep.h: Likewise.
51547         * lib/strstr.h: Likewise.
51548         * lib/strtok_r.h: Likewise.
51549         * lib/string_.h: New file.
51550         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
51551         Rely on <string.h> instead.
51552         * lib/canon-host.c: Likewise.
51553         * lib/chdir-long.c: Likewise.
51554         * lib/concatpath.c: Likewise.
51555         * lib/exclude.c: Likewise.
51556         * lib/fchdir.c: Likewise.
51557         * lib/getaddrinfo.c: Likewise.
51558         * lib/getcwd.c: Likewise.
51559         * lib/getsubopt.c: Likewise.
51560         * lib/glob.c: Likewise.
51561         * lib/hard-locale.c: Likewise.
51562         * lib/iconvme.c: Likewise.
51563         * lib/javacomp.c: Likewise.
51564         * lib/mempcpy.c: Likewise.
51565         * lib/memrchr.c: Likewise.
51566         * lib/regex_internal.h: Likewise.
51567         * lib/stpncpy.c: Likewise.
51568         * lib/strcasecmp.c: Likewise.
51569         * lib/strchrnul.c: Likewise.
51570         * lib/strdup.c: Likewise.
51571         * lib/striconv.c: Likewise.
51572         * lib/striconveh.c: Likewise.
51573         * lib/striconveha.c: Likewise.
51574         * lib/strncasecmp.c: Likewise.
51575         * lib/strndup.c: Likewise.
51576         * lib/strnlen.c: Likewise.
51577         * lib/strsep.c: Likewise.
51578         * lib/strstr.c: Likewise.
51579         * lib/strtok_r.c: Likewise.
51580         * lib/userspec.c: Likewise.
51581         * lib/w32spawn.h: Likewise.
51582         * lib/xstrndup.c: Likewise.
51583         * lib/mountlist.c (strstr): Remove decl.
51584         * m4/string_h.m4: New file.
51585         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
51586         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
51587         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
51588         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
51589         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
51590         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
51591         Set REPLACE_STRCASECMP if necessary.
51592         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
51593         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
51594         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
51595         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
51596         HAVE_DECL_STRDUP if necessary.
51597         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
51598         since gl_FUNC_STRNDUP does that now.
51599         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
51600         Check for decl here...
51601         (gl_PREREQ_STRNLEN): ... not here.
51602         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
51603         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
51604         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
51605         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
51606         necessary.
51607         * modules/string: New file.
51608         * modules/memmem (Files): Remove special-purpose include file.
51609         (Depends-on): Add string.
51610         (Include): Include <string.h>, not the removed file.
51611         * modules/mempcpy: Likewise.
51612         * modules/memrchr: Likewise.
51613         * modules/stpcpy: Likewise.
51614         * modules/stpncpy: Likewise.
51615         * modules/strcase: Likewise.
51616         * modules/strchrnul: Likewise.
51617         * modules/strdup: Likewise.
51618         * modules/strndup: Likewise.
51619         * modules/strnlen: Likewise.
51620         * modules/strpbrk: Likewise.
51621         * modules/strsep: Likewise.
51622         * modules/strstr: Likewise.
51623         * modules/strtok_r: Likewise.
51624         * tests/test-dirname.c: Don't include "strdup.h", since
51625         <string.h> now suffices.
51626         * tests/test-memmem.c: Don't include "memmem.h", since
51627         <string.h> now suffices.
51628
51629 2007-01-25  Bruno Haible  <bruno@clisp.org>
51630
51631         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
51632         *resultp is 0.
51633
51634         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
51635         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
51636         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
51637         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
51638
51639         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
51640         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
51641         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
51642         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
51643         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
51644         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
51645
51646 2007-01-24  Bruno Haible  <bruno@clisp.org>
51647
51648         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
51649         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
51650         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
51651         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
51652         gl_FUNC_FTS_CORE.
51653         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
51654         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
51655         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51656         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
51657         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
51658         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
51659         gl_FUNC_FCHOWNAT.
51660         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
51661         gl_FUNC_STRFTIME.
51662         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
51663         Reported by Ralf Wildenhues.
51664
51665 2007-01-24  Bruno Haible  <bruno@clisp.org>
51666
51667         Drop AC_REQUIRE calls that are redundant with the module dependencies.
51668         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
51669         gl_GETADDRINFO.
51670         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
51671         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
51672         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
51673
51674 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
51675
51676         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
51677         Don't use 'exit'; just return from 'main'.
51678         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
51679
51680         * lib/fnmatch_.h: Readjust white space and comments to match
51681         glibc, to avoid spurious diffs.
51682
51683 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51684
51685         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
51686         2004-12-01 change by Jakub Jelinek, since this code won't compile
51687         if !LIBC.  Problem reported by Bob Proulx.
51688
51689 2007-01-23  Bruno Haible  <bruno@clisp.org>
51690
51691         * lib/striconveh.c: Include c-strcaseeq.h.
51692         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
51693         * modules/striconveh (Depends-on): Add c-strcaseeq.
51694
51695 2007-01-23  Bruno Haible  <bruno@clisp.org>
51696
51697         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
51698
51699         * modules/c-strcaseeq: New file.
51700         * lib/c-strcaseeq.h: New file.
51701
51702         * modules/streq: New file.
51703         * lib/streq.h: New file.
51704
51705 2007-01-23  Bruno Haible  <bruno@clisp.org>
51706
51707         * modules/striconveha-tests: New file.
51708         * tests/test-striconveha.c: New file.
51709
51710         * lib/striconveha.h: Include <stdbool.h>.
51711         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
51712         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
51713         (mem_iconveha_notranslit): Renamed from mem_iconveha.
51714         (mem_iconveha): New function.
51715         (str_iconveha_notranslit): Renamed from str_iconveha.
51716         (str_iconveha): New function.
51717         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
51718         c-strcase.
51719
51720 2007-01-23  Bruno Haible  <bruno@clisp.org>
51721
51722         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
51723         encodings without forgiving before trying any encoding with handler.
51724         (str_iconveha): Try all encodings without forgiving before trying any
51725         encoding with handler.
51726
51727 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51728
51729         Import the following changes from libc.
51730
51731         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
51732
51733         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
51734
51735         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
51736
51737         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
51738         normal_bracket label.
51739
51740         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
51741
51742         [BZ #361]
51743         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
51744         to normal_bracket after fetching the next character.
51745
51746 2007-01-22  Bruno Haible  <bruno@clisp.org>
51747
51748         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
51749         argument.
51750         * lib/striconveh.c (iconv_carefully_1): New function.
51751         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
51752         argument.
51753         (str_cd_iconveh): Update.
51754         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
51755         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
51756         * tests/test-striconveh.c (MAGIC): New macro.
51757         (new_offsets): New function.
51758         (main): Test call with and without offsets.
51759
51760 2007-01-22  Bruno Haible  <bruno@clisp.org>
51761
51762         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
51763         * modules/sys_select (Makefile.am): Likewise.
51764         * modules/sys_socket (Makefile.am): Likewise.
51765         * modules/sys_time (Makefile.am): Likewise.
51766
51767 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
51768
51769         * modules/gettimeofday (License): Change from GPL to LGPL, since
51770         gettimeofday is a library function.
51771
51772 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51773
51774         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
51775
51776 2007-01-21  Bruno Haible  <bruno@clisp.org>
51777
51778         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
51779
51780 2007-01-21  Bruno Haible  <bruno@clisp.org>
51781
51782         * modules/striconveha: New file.
51783         * lib/striconveha.h: New file.
51784         * lib/striconveha.c: New file.
51785         * MODULES.html.sh (Internationalization functions): Add striconveha.
51786         * lib/striconv.c (str_iconv): Optimize the case of an empty input
51787         string.
51788         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
51789
51790 2007-01-21  Bruno Haible  <bruno@clisp.org>
51791
51792         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
51793         * lib/striconveh.c (str_iconveh): Likewise.
51794
51795 2007-01-21  Bruno Haible  <bruno@clisp.org>
51796
51797         * lib/striconveh.h (mem_iconveh): New declaration.
51798         * lib/striconveh.c (mem_iconveh): New function.
51799         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
51800
51801 2007-01-21  Bruno Haible  <bruno@clisp.org>
51802
51803         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
51804
51805         * lib/striconveh.h (mem_cd_iconveh): Change specification.
51806         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
51807         original result buffer.
51808         (str_cd_iconveh): Update.
51809         * tests/test-striconveh.c (main): Update.
51810
51811         * lib/striconv.h (mem_cd_iconv): Change specification.
51812         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
51813         result buffer.
51814         (str_cd_iconv): Update.
51815         * tests/test-striconv.c (main): Update.
51816
51817 2007-01-21  Bruno Haible  <bruno@clisp.org>
51818
51819         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
51820
51821 2007-01-20  Jim Meyering  <jim@meyering.net>
51822
51823         * lib/userspec.c (parse_with_separator): If a user or group string
51824         starts with "+", skip the corresponding name-to-ID look-up, since
51825         such a look-up must fail: user and group names may not include "+".
51826
51827 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
51828
51829         * lib/poll.c: Include sys/time.h and time.h unconditionally,
51830         since we now assume the sys_time module.
51831         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
51832         check for sys/time.h; no longer needed.
51833         * modules/poll (Depends-on): Depend on sys_time.
51834
51835 2007-01-18  Bruno Haible  <bruno@clisp.org>
51836
51837         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
51838         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
51839
51840         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
51841         gettimeofday.
51842
51843         * tests/test-gettimeofday.c: Include <time.h>.
51844         (dummy): Remove variable.
51845
51846         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
51847         gl_HEADER_SYS_TIME_H.
51848         (gl_HEADER_SYS_TIME_H): New macro.
51849
51850         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
51851         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51852         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
51853         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
51854         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51855         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
51856         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
51857         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51858         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
51859         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
51860         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51861
51862         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
51863         last change; it caused a compilation error when cross-compiling to
51864         Cygwin.
51865
51866 2007-01-18  Jim Meyering  <jim@meyering.net>
51867
51868         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
51869         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
51870         than the race-prone "test -d sys || mkdir sys".
51871         (configure.ac): Use AC_PROG_MKDIR_P.
51872         * modules/sys_select: Likewise.
51873         * modules/sys_socket: Likewise.
51874         * modules/sys_time: Likewise.
51875
51876 2007-01-18  Eric Blake  <ebb9@byu.net>
51877
51878         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
51879         replace gettimeofday.
51880         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
51881         name, to avoid infinite recursion.
51882
51883 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
51884
51885         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
51886         module sys_time.
51887         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
51888         assume timespec.h defines struct timeval.
51889         * lib/settime.c: Likewise.
51890         * lib/utimens.c: Likewise.
51891         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
51892         since we now assume the gettimeofday module.
51893         * lib/tempname.c (__gen_tempname): Likewise.
51894         * lib/gettimeofday.h: Remove.
51895         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
51896         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
51897         Include <time.h>, for 'time()'.
51898         (localtime_buffer_addr): Also use this workaround if
51899         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
51900         to simplify the uses.  All uses changed.
51901         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
51902         that #undef is inside {}, and 'const' follows type name consistently.
51903         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
51904         (gettimeofday): Do not use the maximum possible value for
51905         tv->tv_usec, since that might break usages other than ls.c.
51906         Instead, we'll leave ls.c alone.  This undoes today's patch
51907         by Bruno.  Add a compile-time warning for 1s-clock resolution;
51908         we've never observed the problem but might as well keep the
51909         canary.
51910         * lib/nanosleep.c: Include timespec.h first, for interface check.
51911         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
51912         now assume the sys_time module.
51913         * lib/tempname.c: Likewise.
51914         * lib/timespec.h: Likewise.
51915         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
51916         needed.
51917         * lib/strftime.c: Likewise.
51918         * lib/timespec.h: Likewise.
51919         * lib/posixtm.c: Include posixtm.h first, for interface check.
51920         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
51921         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
51922         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
51923         * lib/sys_time_.h: New file.
51924         * lib/timespec.h (struct timespec): Use long int, not long.
51925         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
51926         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
51927         Remove obsolescent call to AC_HEADER_TIME.
51928         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
51929         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
51930         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
51931         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
51932         Likewise.
51933         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
51934         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
51935         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
51936         into the sys_time module.  Check for gettimeofday just once.
51937         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
51938         for gettimeofday signature to just check the signature.  Merely
51939         compile it, since linking doesn't test signature.  Improve test for
51940         whether gettimeofday.o is actually needed.
51941         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
51942         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
51943         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
51944         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51945         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
51946         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
51947         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
51948         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
51949         than worrying about sys/time.h.
51950         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
51951         Don't bother worrying about TIME_WITH_SYS_TIME.
51952         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
51953         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
51954         * m4/sys_time_h.m4: New file.
51955         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
51956         Don't include sys/time.h.  Return from main rather than exiting.
51957         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
51958         all uses changed.
51959         * modules/gethrxtime (Depends-on): Add sys_time.
51960         * modules/gettime (Depends-on): Likewise.
51961         * modules/gettimeofday (Depends-on): Likewise.
51962         * modules/nanosleep (Depends-on): Likewise.
51963         * modules/settime (Depends-on): Likewise.
51964         * modules/tempname (Depends-on): Likewise.
51965         * modules/utimens (Depends-on): Likewise.
51966         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
51967         (Include:) Change back to <sys/time.h>.
51968         (Maintainer:) Add self.
51969         * modules/sys_time: New file.
51970         * modules/tempname (Depends-on): Add gettimeofday.
51971         * tests/test-gettimeofday.c: Include <sys/time.h>
51972         rather than gettimeofday.h.
51973
51974 2007-01-17  Bruno Haible  <bruno@clisp.org>
51975
51976         * gnulib-tool (func_get_license): Revert last patch. Instead, let
51977         the license default to GPL.
51978         (func_create_testdir): Don't complain if a module is LGPL and its
51979         tests module depends on GPLed modules.
51980
51981 2007-01-17  Bruno Haible  <bruno@clisp.org>
51982
51983         * lib/gettimeofday.c (gettimeofday): Add code for the case
51984         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
51985         maximum possible value for tv->tv_usec, rather than the minimum one.
51986
51987 2005-10-08  Martin Lambers  <marlam@marlam.de>
51988 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51989 2007-01-16  Bruno Haible  <bruno@clisp.org>
51990
51991         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
51992         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
51993         gl_FUNC_GETTIMEOFDAY.
51994         (Include): Add gettimeofday.h.
51995         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
51996         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
51997         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
51998         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
51999         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
52000         * lib/gettimeofday.h: New file.
52001         * lib/gettimeofday.c: Include <sys/timeb.h>.
52002         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
52003         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52004         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
52005         fall back on time().
52006
52007         * tests/test-gettimeofday.c: New file.
52008         * modules/gettimeofday-tests: New file.
52009
52010 2007-01-16  Eric Blake  <ebb9@byu.net>
52011
52012         * modules/fnmatch (Depends-on): Depend on wchar.
52013         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
52014         * m4/fnmatch.m4: Likewise.
52015         * modules/mbchar (Makefile.am): Assume <wchar.h>.
52016         * m4/mbchar.m4: Likewise.
52017         * modules/mbswidth (Depends-on): Depend on wchar.
52018         * lib/mbswidth.c: Assume <wchar.h>.
52019         * m4/mbswidth.m4: Likewise.
52020         * modules/quotearg (Depends-on): Depend on wchar.
52021         * lib/quotearg.c: Assume <wchar.h>.
52022         * m4/quotearg.m4: Likewise.
52023         * modules/regex (Depends-on): Depend on wchar.
52024         * lib/regex_internal.h: Assume <wchar.h>.
52025         * m4/regex.m4: Likewise.
52026         * modules/stdint (Depends-on): Depend on wchar.
52027         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
52028         * m4/stdint.m4: Likewise.
52029         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
52030         * modules/strftime (Depends-on): Depend on wchar.
52031         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
52032         * modules/strtol (Depends-on): Depend on wchar.
52033         * lib/strtol.c: Assume <wchar.h>.
52034         * modules/wcwidth (Depends-on): Depend on wchar.
52035         * lib/wcwidth.h: Assume <wchar.h>.
52036         * m4/wcwidth.m4: Likewise.
52037
52038 2007-01-16  Bruno Haible  <bruno@clisp.org>
52039
52040         * modules/csharpexec-script: New, created from...
52041         * modules/csharpexec: ... this.
52042
52043 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52044
52045         * modules/javaexec-script: New, created from...
52046         * modules/javaexec: ... this.
52047
52048 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52049
52050         * modules/poll (Dependencies): Add sys_select.
52051
52052 2007-01-15  Jim Meyering  <jim@meyering.net>
52053
52054         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
52055         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
52056         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
52057         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
52058
52059 2007-01-15  Bruno Haible  <bruno@clisp.org>
52060
52061         * modules/striconveh: New file.
52062         * lib/striconveh.h: New file.
52063         * lib/striconveh.c: New file.
52064         * MODULES.html.sh (Internationalization functions): Add striconveh.
52065
52066         * modules/striconveh-tests: New file.
52067         * tests/test-striconveh.c: New file.
52068
52069 2007-01-15  Bruno Haible  <bruno@clisp.org>
52070
52071         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
52072         not from GNU libiconv or GNU libc.
52073
52074 2007-01-15  Bruno Haible  <bruno@clisp.org>
52075
52076         * doc/gnulib-intro.texi (Copyright): Explain the different license
52077         terms for module descriptions, autoconf macros, tests, documentation.
52078
52079 2007-01-14  Bruno Haible  <bruno@clisp.org>
52080
52081         * modules/striconv-tests: New file.
52082         * tests/test-striconv.c: New file.
52083
52084 2007-01-14  Bruno Haible  <bruno@clisp.org>
52085
52086         * modules/iconv-tests: New file.
52087         * tests/test-iconv.c: New file.
52088
52089 2007-01-14  Bruno Haible  <bruno@clisp.org>
52090
52091         * gnulib-tool (func_get_license): For test modules, use the license of
52092         the main module.
52093
52094 2007-01-14  Bruno Haible  <bruno@clisp.org>
52095
52096         * modules/iconv (Include): Clarify that <iconv.h> can only be included
52097         if iconv is found to exist.
52098
52099 2007-01-14  Bruno Haible  <bruno@clisp.org>
52100
52101         * modules/c-ctype-tests: New file.
52102         * tests/test-c-ctype.c: New file.
52103
52104 2007-01-14  Bruno Haible  <bruno@clisp.org>
52105
52106         * modules/binary-io-tests: New file.
52107         * tests/test-binary-io.sh: New file.
52108         * tests/test-binary-io.c: New file.
52109
52110 2007-01-14  Bruno Haible  <bruno@clisp.org>
52111
52112         * modules/array-oset-tests: New file.
52113         * tests/test-array_oset.c: New file.
52114
52115 2007-01-14  Bruno Haible  <bruno@clisp.org>
52116
52117         * modules/array-list-tests: New file.
52118         * tests/test-array_list.c: New file.
52119
52120 2007-01-14  Bruno Haible  <bruno@clisp.org>
52121
52122         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
52123         and make.
52124         Reported by Simon Josefsson in
52125         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
52126
52127 2007-01-14  Bruno Haible  <bruno@clisp.org>
52128
52129         * modules/allocsa-tests: New file.
52130         * tests/test-allocsa.c: New file.
52131
52132 2007-01-14  Bruno Haible  <bruno@clisp.org>
52133
52134         * modules/fchdir (Depends-on): Add absolute-header.
52135         * modules/unistd (Depends-on): Likewise.
52136
52137 2006-12-30  Bruno Haible  <bruno@clisp.org>
52138
52139         * modules/fchdir: New file.
52140         * modules/unistd (Files): Add lib/unistd_.h.
52141         (Makefile.am): Generate unistd.h from unistd_.h.
52142         * lib/fchdir.c: New file.
52143         * lib/dirent_.h: New file.
52144         * lib/unistd_.h: New file.
52145         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
52146         * m4/fchdir.m4: New file.
52147         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
52148         (gl_HEADER_UNISTD): Invoke it.
52149         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
52150         function.
52151         * lib/backupfile.c (opendir, closedir): Undefine.
52152         * lib/chown.c (open, close): Undefine.
52153         * lib/clean-temp.c (open, close): Undefine.
52154         * lib/copy-file.c (open, close): Undefine.
52155         * lib/execute.c (open, close): Undefine.
52156         * lib/fsusage.c (open, close): Undefine.
52157         * lib/gc-gnulib.c (open, close): Undefine.
52158         * lib/getcwd.c (opendir, closedir): Undefine.
52159         * lib/glob.c (opendir, closedir): Undefine.
52160         * lib/javacomp.c (open, close): Undefine.
52161         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
52162         * lib/openat-proc.c (open, close): Undefine.
52163         * lib/pagealign_alloc.c (open, close): Undefine.
52164         * lib/pipe.c (open, close): Undefine.
52165         * lib/progreloc.c (open, close): Undefine.
52166         * lib/savedir.c (opendir, closedir): Undefine.
52167         * lib/utime.c (open, close): Undefine.
52168         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
52169
52170 2007-01-10  Bruno Haible  <bruno@clisp.org>
52171
52172         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
52173
52174 2007-01-12  Eric Blake  <ebb9@byu.net>
52175
52176         Provide a robust <wchar.h>.  Further simplifications are now
52177         possible in other modules, but not included here.
52178         * modules/wchar: New module.
52179         * m4/wchar.m4: New file.
52180         * lib/wchar_.h: Likewise.
52181         * modules/mbchar (Depends-on): Depend on wchar, as the first use
52182         of the new module.
52183         * MODULES.html.sh (Extended multibyte and wide character utilities):
52184         New section.
52185
52186 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
52187
52188         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
52189         to a reasonable default for memory allocation.
52190         (xreadlink): Don't allocate a huge buffer, to work around a buggy
52191         file system that reports garbage st_size values for symlinks.
52192         Problem reported by Liyang Hu.
52193
52194 2007-01-11  Simon Josefsson  <simon@josefsson.org>
52195
52196         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
52197         Emacs .#* auto-save files).
52198
52199 2007-01-11  Bruno Haible  <bruno@clisp.org>
52200
52201         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
52202         directory.
52203
52204 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
52205
52206         Use @...@ consistently in lib/wctype_.h.
52207         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
52208         on it being set to 1 or 0.
52209         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
52210         go back to AC_SUBSTing it.
52211         * modules/wctype (Makefile.am): Undo previous change.
52212
52213 2007-01-10  Eric Blake  <ebb9@byu.net>
52214
52215         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
52216         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
52217         * modules/wctype (Makefile.am): Likewise.
52218         Reported by Chris McGuire.
52219
52220 2007-01-10  Jim Meyering  <jim@meyering.net>
52221
52222         fts.c: a small readability/maintainability improvement
52223         * lib/fts.c (fts_read): Make this code slightly more readable and
52224         maintainable by hoisting the "sp->fts_cur = p" assignments to
52225         immediately follow the statements that set P.  Derived from
52226         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
52227
52228 2007-01-10  Eric Blake  <ebb9@byu.net>
52229
52230         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
52231         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
52232         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52233         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
52234         Reported by Chris McGuire.
52235
52236 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52237
52238         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
52239         in sed script.
52240
52241 2007-01-09  Bruno Haible  <bruno@clisp.org>
52242
52243         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
52244         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
52245         variables.
52246         (func_module): Use them.
52247
52248 2007-01-09  Bruno Haible  <bruno@clisp.org>
52249
52250         * modules/unistr/base: New file.
52251         * lib/unistr.h: New file.
52252
52253         * modules/unistr/u8-to-u16: New file.
52254         * lib/unistr/u8-to-u16.c: New file.
52255
52256         * modules/unistr/u8-to-u32: New file.
52257         * lib/unistr/u8-to-u32.c: New file.
52258
52259         * modules/unistr/u16-to-u8: New file.
52260         * lib/unistr/u16-to-u8.c: New file.
52261
52262         * modules/unistr/u16-to-u32: New file.
52263         * lib/unistr/u16-to-u32.c: New file.
52264
52265         * modules/unistr/u32-to-u8: New file.
52266         * lib/unistr/u32-to-u8.c: New file.
52267
52268         * modules/unistr/u32-to-u16: New file.
52269         * lib/unistr/u32-to-u16.c: New file.
52270
52271         * modules/unistr/u8-check: New file.
52272         * modules/unistr/u16-check: New file.
52273         * modules/unistr/u32-check: New file.
52274         * lib/unistr/u8-check.c: New file.
52275         * lib/unistr/u16-check.c: New file.
52276         * lib/unistr/u32-check.c: New file.
52277
52278         * modules/unistr/u8-chr: New file.
52279         * modules/unistr/u16-chr: New file.
52280         * modules/unistr/u32-chr: New file.
52281         * lib/unistr/u8-chr.c: New file.
52282         * lib/unistr/u16-chr.c: New file.
52283         * lib/unistr/u32-chr.c: New file.
52284
52285         * modules/unistr/u8-cmp: New file.
52286         * modules/unistr/u16-cmp: New file.
52287         * modules/unistr/u32-cmp: New file.
52288         * lib/unistr/u8-cmp.c: New file.
52289         * lib/unistr/u16-cmp.c: New file.
52290         * lib/unistr/u32-cmp.c: New file.
52291
52292         * modules/unistr/u8-cpy: New file.
52293         * modules/unistr/u16-cpy: New file.
52294         * modules/unistr/u32-cpy: New file.
52295         * lib/unistr/u8-cpy.c: New file.
52296         * lib/unistr/u16-cpy.c: New file.
52297         * lib/unistr/u32-cpy.c: New file.
52298         * lib/unistr/u-cpy.h: New file.
52299
52300         * modules/unistr/u8-cpy-alloc: New file.
52301         * modules/unistr/u16-cpy-alloc: New file.
52302         * modules/unistr/u32-cpy-alloc: New file.
52303         * lib/unistr/u8-cpy-alloc.c: New file.
52304         * lib/unistr/u16-cpy-alloc.c: New file.
52305         * lib/unistr/u32-cpy-alloc.c: New file.
52306         * lib/unistr/u-cpy-alloc.h: New file.
52307
52308         * modules/unistr/u8-endswith: New file.
52309         * modules/unistr/u16-endswith: New file.
52310         * modules/unistr/u32-endswith: New file.
52311         * lib/unistr/u8-endswith.c: New file.
52312         * lib/unistr/u16-endswith.c: New file.
52313         * lib/unistr/u32-endswith.c: New file.
52314         * lib/unistr/u-endswith.h: New file.
52315
52316         * modules/unistr/u8-mblen: New file.
52317         * modules/unistr/u16-mblen: New file.
52318         * modules/unistr/u32-mblen: New file.
52319         * lib/unistr/u8-mblen.c: New file.
52320         * lib/unistr/u16-mblen.c: New file.
52321         * lib/unistr/u32-mblen.c: New file.
52322
52323         * modules/unistr/u8-mbtouc: New file.
52324         * modules/unistr/u16-mbtouc: New file.
52325         * modules/unistr/u32-mbtouc: New file.
52326         * lib/unistr/u8-mbtouc.c: New file.
52327         * lib/unistr/u16-mbtouc.c: New file.
52328         * lib/unistr/u32-mbtouc.c: New file.
52329
52330         * modules/unistr/u8-mbtouc-safe: New file.
52331         * modules/unistr/u16-mbtouc-safe: New file.
52332         * modules/unistr/u32-mbtouc-safe: New file.
52333         * lib/unistr/u8-mbtouc-safe.c: New file.
52334         * lib/unistr/u16-mbtouc-safe.c: New file.
52335         * lib/unistr/u32-mbtouc-safe.c: New file.
52336
52337         * modules/unistr/u8-move: New file.
52338         * modules/unistr/u16-move: New file.
52339         * modules/unistr/u32-move: New file.
52340         * lib/unistr/u8-move.c: New file.
52341         * lib/unistr/u16-move.c: New file.
52342         * lib/unistr/u32-move.c: New file.
52343         * lib/unistr/u-move.h: New file.
52344
52345         * modules/unistr/u8-next: New file.
52346         * modules/unistr/u16-next: New file.
52347         * modules/unistr/u32-next: New file.
52348         * lib/unistr/u8-next.c: New file.
52349         * lib/unistr/u16-next.c: New file.
52350         * lib/unistr/u32-next.c: New file.
52351
52352         * modules/unistr/u8-prev: New file.
52353         * modules/unistr/u16-prev: New file.
52354         * modules/unistr/u32-prev: New file.
52355         * lib/unistr/u8-prev.c: New file.
52356         * lib/unistr/u16-prev.c: New file.
52357         * lib/unistr/u32-prev.c: New file.
52358
52359         * modules/unistr/u8-set: New file.
52360         * modules/unistr/u16-set: New file.
52361         * modules/unistr/u32-set: New file.
52362         * lib/unistr/u8-set.c: New file.
52363         * lib/unistr/u16-set.c: New file.
52364         * lib/unistr/u32-set.c: New file.
52365         * lib/unistr/u-set.h: New file.
52366
52367         * modules/unistr/u8-startswith: New file.
52368         * modules/unistr/u16-startswith: New file.
52369         * modules/unistr/u32-startswith: New file.
52370         * lib/unistr/u8-startswith.c: New file.
52371         * lib/unistr/u16-startswith.c: New file.
52372         * lib/unistr/u32-startswith.c: New file.
52373         * lib/unistr/u-startswith.h: New file.
52374
52375         * modules/unistr/u8-stpcpy: New file.
52376         * modules/unistr/u16-stpcpy: New file.
52377         * modules/unistr/u32-stpcpy: New file.
52378         * lib/unistr/u8-stpcpy.c: New file.
52379         * lib/unistr/u16-stpcpy.c: New file.
52380         * lib/unistr/u32-stpcpy.c: New file.
52381         * lib/unistr/u-stpcpy.h: New file.
52382
52383         * modules/unistr/u8-stpncpy: New file.
52384         * modules/unistr/u16-stpncpy: New file.
52385         * modules/unistr/u32-stpncpy: New file.
52386         * lib/unistr/u8-stpncpy.c: New file.
52387         * lib/unistr/u16-stpncpy.c: New file.
52388         * lib/unistr/u32-stpncpy.c: New file.
52389         * lib/unistr/u-stpncpy.h: New file.
52390
52391         * modules/unistr/u8-strcat: New file.
52392         * modules/unistr/u16-strcat: New file.
52393         * modules/unistr/u32-strcat: New file.
52394         * lib/unistr/u8-strcat.c: New file.
52395         * lib/unistr/u16-strcat.c: New file.
52396         * lib/unistr/u32-strcat.c: New file.
52397         * lib/unistr/u-strcat.h: New file.
52398
52399         * modules/unistr/u8-strchr: New file.
52400         * modules/unistr/u16-strchr: New file.
52401         * modules/unistr/u32-strchr: New file.
52402         * lib/unistr/u8-strchr.c: New file.
52403         * lib/unistr/u16-strchr.c: New file.
52404         * lib/unistr/u32-strchr.c: New file.
52405
52406         * modules/unistr/u8-strcmp: New file.
52407         * modules/unistr/u16-strcmp: New file.
52408         * modules/unistr/u32-strcmp: New file.
52409         * lib/unistr/u8-strcmp.c: New file.
52410         * lib/unistr/u16-strcmp.c: New file.
52411         * lib/unistr/u32-strcmp.c: New file.
52412
52413         * modules/unistr/u8-strcpy: New file.
52414         * modules/unistr/u16-strcpy: New file.
52415         * modules/unistr/u32-strcpy: New file.
52416         * lib/unistr/u8-strcpy.c: New file.
52417         * lib/unistr/u16-strcpy.c: New file.
52418         * lib/unistr/u32-strcpy.c: New file.
52419         * lib/unistr/u-strcpy.h: New file.
52420
52421         * modules/unistr/u8-strcspn: New file.
52422         * modules/unistr/u16-strcspn: New file.
52423         * modules/unistr/u32-strcspn: New file.
52424         * lib/unistr/u8-strcspn.c: New file.
52425         * lib/unistr/u16-strcspn.c: New file.
52426         * lib/unistr/u32-strcspn.c: New file.
52427         * lib/unistr/u-strcspn.h: New file.
52428
52429         * modules/unistr/u8-strdup: New file.
52430         * modules/unistr/u16-strdup: New file.
52431         * modules/unistr/u32-strdup: New file.
52432         * lib/unistr/u8-strdup.c: New file.
52433         * lib/unistr/u16-strdup.c: New file.
52434         * lib/unistr/u32-strdup.c: New file.
52435         * lib/unistr/u-strdup.h: New file.
52436
52437         * modules/unistr/u8-strlen: New file.
52438         * modules/unistr/u16-strlen: New file.
52439         * modules/unistr/u32-strlen: New file.
52440         * lib/unistr/u8-strlen.c: New file.
52441         * lib/unistr/u16-strlen.c: New file.
52442         * lib/unistr/u32-strlen.c: New file.
52443         * lib/unistr/u-strlen.h: New file.
52444
52445         * modules/unistr/u8-strmblen: New file.
52446         * modules/unistr/u16-strmblen: New file.
52447         * modules/unistr/u32-strmblen: New file.
52448         * lib/unistr/u8-strmblen.c: New file.
52449         * lib/unistr/u16-strmblen.c: New file.
52450         * lib/unistr/u32-strmblen.c: New file.
52451
52452         * modules/unistr/u8-strmbtouc: New file.
52453         * modules/unistr/u16-strmbtouc: New file.
52454         * modules/unistr/u32-strmbtouc: New file.
52455         * lib/unistr/u8-strmbtouc.c: New file.
52456         * lib/unistr/u16-strmbtouc.c: New file.
52457         * lib/unistr/u32-strmbtouc.c: New file.
52458
52459         * modules/unistr/u8-strncat: New file.
52460         * modules/unistr/u16-strncat: New file.
52461         * modules/unistr/u32-strncat: New file.
52462         * lib/unistr/u8-strncat.c: New file.
52463         * lib/unistr/u16-strncat.c: New file.
52464         * lib/unistr/u32-strncat.c: New file.
52465         * lib/unistr/u-strncat.h: New file.
52466
52467         * modules/unistr/u8-strncmp: New file.
52468         * modules/unistr/u16-strncmp: New file.
52469         * modules/unistr/u32-strncmp: New file.
52470         * lib/unistr/u8-strncmp.c: New file.
52471         * lib/unistr/u16-strncmp.c: New file.
52472         * lib/unistr/u32-strncmp.c: New file.
52473
52474         * modules/unistr/u8-strncpy: New file.
52475         * modules/unistr/u16-strncpy: New file.
52476         * modules/unistr/u32-strncpy: New file.
52477         * lib/unistr/u8-strncpy.c: New file.
52478         * lib/unistr/u16-strncpy.c: New file.
52479         * lib/unistr/u32-strncpy.c: New file.
52480         * lib/unistr/u-strncpy.h: New file.
52481
52482         * modules/unistr/u8-strnlen: New file.
52483         * modules/unistr/u16-strnlen: New file.
52484         * modules/unistr/u32-strnlen: New file.
52485         * lib/unistr/u8-strnlen.c: New file.
52486         * lib/unistr/u16-strnlen.c: New file.
52487         * lib/unistr/u32-strnlen.c: New file.
52488         * lib/unistr/u-strnlen.h: New file.
52489
52490         * modules/unistr/u8-strpbrk: New file.
52491         * modules/unistr/u16-strpbrk: New file.
52492         * modules/unistr/u32-strpbrk: New file.
52493         * lib/unistr/u8-strpbrk.c: New file.
52494         * lib/unistr/u16-strpbrk.c: New file.
52495         * lib/unistr/u32-strpbrk.c: New file.
52496         * lib/unistr/u-strpbrk.h: New file.
52497
52498         * modules/unistr/u8-strrchr: New file.
52499         * modules/unistr/u16-strrchr: New file.
52500         * modules/unistr/u32-strrchr: New file.
52501         * lib/unistr/u8-strrchr.c: New file.
52502         * lib/unistr/u16-strrchr.c: New file.
52503         * lib/unistr/u32-strrchr.c: New file.
52504
52505         * modules/unistr/u8-strspn: New file.
52506         * modules/unistr/u16-strspn: New file.
52507         * modules/unistr/u32-strspn: New file.
52508         * lib/unistr/u8-strspn.c: New file.
52509         * lib/unistr/u16-strspn.c: New file.
52510         * lib/unistr/u32-strspn.c: New file.
52511         * lib/unistr/u-strspn.h: New file.
52512
52513         * modules/unistr/u8-strstr: New file.
52514         * modules/unistr/u16-strstr: New file.
52515         * modules/unistr/u32-strstr: New file.
52516         * lib/unistr/u8-strstr.c: New file.
52517         * lib/unistr/u16-strstr.c: New file.
52518         * lib/unistr/u32-strstr.c: New file.
52519         * lib/unistr/u-strstr.h: New file.
52520
52521         * modules/unistr/u8-strtok: New file.
52522         * modules/unistr/u16-strtok: New file.
52523         * modules/unistr/u32-strtok: New file.
52524         * lib/unistr/u8-strtok.c: New file.
52525         * lib/unistr/u16-strtok.c: New file.
52526         * lib/unistr/u32-strtok.c: New file.
52527         * lib/unistr/u-strtok.h: New file.
52528
52529         * modules/unistr/u8-uctomb: New file.
52530         * modules/unistr/u16-uctomb: New file.
52531         * modules/unistr/u32-uctomb: New file.
52532         * lib/unistr/u8-uctomb.c: New file.
52533         * lib/unistr/u16-uctomb.c: New file.
52534         * lib/unistr/u32-uctomb.c: New file.
52535
52536         * MODULES.html.sh (Unicode string functions): Add the new modules.
52537
52538 2007-01-08  Bruno Haible  <bruno@clisp.org>
52539
52540         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
52541         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
52542         subdirectories.
52543
52544 2007-01-08  Karl Berry  <karl@gnu.org>
52545
52546         * doc/error.texi: mention that main() fns must set program_name
52547         when progname is used.
52548
52549 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
52550
52551         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
52552         WCTYPE_H is empty, for the benefit of builds from non-distclean
52553         directories.  Problem reported by Eric Blake in
52554         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
52555
52556 2007-01-08  Bruno Haible  <bruno@clisp.org>
52557
52558         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
52559         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
52560         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
52561         PROVIDE_CANONICALIZE_FILENAME_MODE.
52562         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
52563
52564 2007-01-08  Bruno Haible  <bruno@clisp.org>
52565
52566         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
52567         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
52568         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
52569         * lib/fts.c: Likewise.
52570         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
52571
52572 2006-12-25  Bruno Haible  <bruno@clisp.org>
52573
52574         * modules/utf8-ucs4-safe: New file.
52575         * lib/utf8-ucs4-safe.h: New file.
52576         * lib/unistr/utf8-ucs4-safe.c: New file.
52577
52578         * modules/utf16-ucs4-safe: New file.
52579         * lib/utf16-ucs4-safe.h: New file.
52580         * lib/unistr/utf16-ucs4-safe.c: New file.
52581
52582         * MODULES.html.sh (Unicode string functions): Add the new modules.
52583
52584 2007-01-08  Bruno Haible  <bruno@clisp.org>
52585
52586         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
52587         (Depends-on): Add unitypes.
52588         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
52589         (u8_mbtouc_aux): Move out to separate file.
52590         (u8_mbtouc): Use ucs4_t, uint8_t types.
52591         * lib/unistr/utf8-ucs4.c: New file.
52592
52593         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
52594         (Depends-on): Add unitypes.
52595         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
52596         (u16_mbtouc_aux): Move out to separate file.
52597         (u16_mbtouc): Use ucs4_t, uint16_t types.
52598         * lib/unistr/utf16-ucs4.c: New file.
52599
52600         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
52601         (Depends-on): Add unitypes.
52602         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
52603         (u8_uctomb_aux): Move out to separate file.
52604         (u8_uctomb): Use ucs4_t, uint8_t types.
52605         * lib/unistr/ucs4-utf8.c: New file.
52606
52607         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
52608         (Depends-on): Add unitypes.
52609         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
52610         (u16_uctomb_aux): Move out to separate file.
52611         (u16_uctomb): Use ucs4_t, uint16_t types.
52612         * lib/unistr/ucs4-utf16.c: New file.
52613
52614 2006-12-25  Bruno Haible  <bruno@clisp.org>
52615
52616         * modules/unitypes: New file.
52617         * lib/unitypes.h: New file.
52618         * MODULES.html.sh (func_all_modules): New section "Unicode string
52619         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
52620         this section. Add unitypes.
52621
52622 2007-01-08  Bruno Haible  <bruno@clisp.org>
52623
52624         Avoid variable names that conflict with those from libtool.
52625         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
52626         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
52627         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
52628         library_names_spec to acl_library_names_spec, hardcode_* to
52629         acl_hardcode_*.
52630         Reported by Ralf Wildenhues.
52631
52632 2007-01-08  Bruno Haible  <bruno@clisp.org>
52633
52634         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
52635         definition.
52636         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
52637         definition.
52638         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
52639         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
52640         definition.
52641         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
52642         definition.
52643         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
52644         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
52645         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
52646         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
52647         definition.
52648         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
52649         definition.
52650         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
52651         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
52652         GC_USE_<algorithm>.
52653         * lib/gc-libgcrypt.c: Likewise.
52654         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
52655         * modules/gc-arctwo (configure.ac): Likewise.
52656         * modules/gc-des (configure.ac): Likewise.
52657         * modules/gc-hmac-md5 (configure.ac): Likewise.
52658         * modules/gc-hmac-sha1 (configure.ac): Likewise.
52659         * modules/gc-md2 (configure.ac): Likewise.
52660         * modules/gc-md4 (configure.ac): Likewise.
52661         * modules/gc-md5 (configure.ac): Likewise.
52662         * modules/gc-random (configure.ac): Likewise.
52663         * modules/gc-rijndael (configure.ac): Likewise.
52664         * modules/gc-sha1 (configure.ac): Likewise.
52665
52666 2007-01-08  Bruno Haible  <bruno@clisp.org>
52667
52668         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
52669         macro definition.
52670         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
52671         definition.
52672         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
52673         definition.
52674         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
52675         * modules/fcntl-safer (configure.ac): Likewise.
52676         * modules/fopen-safer (configure.ac): Likewise.
52677         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
52678         GNULIB_FWRITEERROR macro definition.
52679
52680 2007-01-08  Bruno Haible  <bruno@clisp.org>
52681
52682         * m4/gnulib-common.m4: New file.
52683         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
52684         (func_get_filelist): Add m4/gnulib-common.m4.
52685
52686 2007-01-08  Bruno Haible  <bruno@clisp.org>
52687
52688         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
52689         command.
52690
52691 2007-01-08  Jim Meyering  <jim@meyering.net>
52692
52693         Use a more robust test for a "can't happen" condition.
52694         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
52695         narrowed the st_size value.  Presuming the "can't happen" condition
52696         is true, that narrowing could conceivably convert an invalid st_size
52697         value into a valid one.  Instead, use a change based on Matthew
52698         Woehlke's original patch.
52699
52700         Slight readability improvement: use an assert-like macro
52701         in place of literal "abort ()" uses.
52702         * lib/fts.c (fts_assert): Define.
52703         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
52704         Use this macro instead of a bare 'abort'.
52705
52706 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
52707
52708         Don't worry about using IRIX 5.3's wctype.h broken definitions;
52709         simply work around them.
52710         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
52711         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
52712         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
52713         declaring.
52714         Don't bother to define as macros, since the standard doesn't require it.
52715         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
52716         longer worry about IRIX 5.3.
52717         (HAVE_WCTYPE_CTMP_BUG): Remove.
52718
52719 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52720
52721         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
52722         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
52723         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
52724         Problems reported by Georg Schwarz for IRIX 5.3.
52725
52726         * gnulib-tool (autoconf_minversion): Take the maximum version number
52727         found, not the minimum.  Problem reported by James Youngman.
52728
52729 2007-01-03  Karl Berry  <karl@gnu.org>
52730
52731         * doc/error.texi: new file, explaining interaction with progname.
52732         * doc/gnulib.texi: include it.  Update copyright.
52733
52734 2007-01-03  Simon Josefsson  <simon@josefsson.org>
52735
52736         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
52737         AC_CANONICAL_HOST, to improve autobuild outputs.
52738
52739 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
52740             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52741
52742         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
52743         sockets, server sockets, and other file descriptors.  Count errors
52744         to compute the return value.  Reorder the code a bit to be easier
52745         to follow.  Don't set event bits that were not requested (except
52746         POLLERR and POLLHUP).
52747
52748 2007-01-01  Bruno Haible  <bruno@clisp.org>
52749
52750         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
52751
52752 2007-01-03  Jim Meyering  <jim@meyering.net>
52753
52754         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
52755
52756 2007-01-02  Bruno Haible  <bruno@clisp.org>
52757
52758         * modules/settime (Include): Require timespec.h.
52759         * modules/nanosleep (Include): Likewise.
52760
52761 2007-01-01  Bruno Haible  <bruno@clisp.org>
52762
52763         * gnulib-tool (func_emit_copyright_notice): Bump year.
52764         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
52765
52766 2007-01-01  Bruno Haible  <bruno@clisp.org>
52767
52768         Improve support for OpenBSD.
52769         * build-aux/config.rpath (libname_spec): Export.
52770         (library_names_spec): New variable. Export.
52771         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
52772         library_names_spec from the config.rpath output. Locate shared library
52773         through the name pattern in library_names_spec.
52774
52775 2007-01-01  Eric Blake  <ebb9@byu.net>
52776
52777         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
52778
52779 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
52780
52781         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
52782         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
52783         assume the C locale, and avoid an "eval" that could cause trouble.
52784         Problem with SORT reported by Bob Proulx.
52785
52786         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
52787         Define.  Trivial patch from Henning Nielsen Lund, originally
52788         sent to bug-grep@gnu.org today.
52789
52790 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52791
52792         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
52793         struct stat.  Problem reported by Henning Nielsen Lund.
52794         * lib/acl.c: Include acl.h first, to check interface.  Don't
52795         bother to include sys/types.h and sys/stat.h again.
52796
52797 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52798
52799         Import the following change from libc; problem reported by
52800         Sven Verdoolaege.
52801
52802         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
52803
52804         [BZ #1373]
52805         * lib/argp.h: Remove __NTH for __argp_usage inline function.
52806
52807 2006-12-28  Jim Meyering  <jim@meyering.net>
52808
52809         * build-aux/announce-gen: Do not assume that the package
52810         builds any of tar.gz, tar.bz2, and .xdelta files.
52811         Suggestion from Simon Josefsson.
52812
52813 2006-12-28  Simon Josefsson  <simon@josefsson.org>
52814
52815         * modules/announce-gen: New file.
52816
52817 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
52818
52819         * lib/mbchar.h: Just include <wctype.h>; the wctype module
52820         handles its gotchas now.
52821         * lib/mbswidth.c: Likewise.
52822         * lib/wcwidth.h: Likewise.
52823         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
52824         and iswcntrl; the wctype module does this stuff now.
52825         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52826         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52827         * modules/mbchar (Depends-on): Add wctype.
52828         * modules/mbswidth (Depends-on): Likewise.
52829         * modules/wcwidth (Depends-on): Likewise.
52830
52831 2006-12-27  Eric Blake  <ebb9@byu.net>
52832
52833         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
52834         module uses more than what <wctype.h> is required to provide.
52835
52836 2006-12-26  Eric Blake  <ebb9@byu.net>
52837
52838         * gnulib-tool (sed_extract_prog): Avoid space-tab.
52839
52840 2006-12-26  Eric Blake  <ebb9@byu.net>
52841
52842         * modules/absolute-header: New module.
52843         * modules/fcntl (Depends-on): Depend on it.
52844         * modules/inttypes (Depends-on): Likewise.
52845         * modules/stdint (Depends-on): Likewise.
52846         * modules/sys_stat (Depends-on): Likewise.
52847         * modules/wctype (Depends-on): Likewise.
52848         * MODULES.html.sh (Support for building libraries and
52849         executables): Document it.
52850
52851 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52852
52853         * gnulib-tool (SED): Remove, undoing previous change.
52854         The problem was that it broke coreutils on Solaris, because
52855         "sed --posix" leaked into a makefile.
52856         (sed): New alias, if 'alias' and GNU sed.
52857
52858 2006-12-24  Jim Meyering  <jim@meyering.net>
52859
52860         Work around an fchownat bug in glibc-2.4:
52861         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
52862         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
52863         in spite of the -P option.
52864         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
52865         New macros.
52866         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
52867         * modules/openat (Files): Add lib/fchownat.c.
52868         * lib/openat.c (fchownat): Don't define here.  Move to...
52869         * lib/fchownat.c: ...this new file.
52870
52871 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52872
52873         Fix bug reported by Bruno Haible in
52874         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
52875         where quotearg.c didn't compile on Mac OS X 10.2 because it
52876         lacks <wchar.h> and wint_t.
52877         * lib/wctype_.h (__wctype_wint_t): New type.
52878         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
52879         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
52880         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
52881         Arg is now of type __wctype_wint_t, not wint_t.
52882         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
52883         substitute HAVE_WINT_T.
52884         * modules/wctype (Files): Add m4/wint_t.m4.
52885         (wctype.h): Substitute HAVE_WINT_T.
52886
52887 2006-12-23  Bruno Haible  <bruno@clisp.org>
52888
52889         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
52890
52891 2006-12-23  Bruno Haible  <bruno@clisp.org>
52892
52893         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
52894         S_ISLNK.
52895         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
52896         mingw.
52897
52898 2006-12-22  Bruno Haible  <bruno@clisp.org>
52899
52900         * lib/copy-file.c: Include acl.h.
52901         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
52902         Close the file descriptors only after being done with copy_acl.
52903         * modules/copy-file (Depends-on): Add acl.
52904
52905 2006-12-22  Bruno Haible  <bruno@clisp.org>
52906
52907         * gnulib-tool (SED): New variable.
52908         Use $SED instead of sed everywhere.
52909
52910 2006-12-22  Bruno Haible  <bruno@clisp.org>
52911
52912         * modules/no-c++: New file.
52913         * m4/no-c++.m4: New file.
52914         * MODULES.html.sh (Support for building libraries and executables):
52915         Add no-c++.
52916
52917 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
52918
52919         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
52920         Include <limits.h>, and use its INT_MAX to rewrite the
52921         j loop so that it does not overflow 'int'.  Problem reported by
52922         Ralf Wildenhues in
52923         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
52924         Play it safe by shifting left by 1 rather than multiplying by 2,
52925         as GCC is less likely to optimize this away when the value
52926         is signed (when it assumes overflow leads to undefined behavior).
52927         Also, don't assume time_t uses two's complement.
52928
52929 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
52930
52931         * MODULES.html.sh: New module wctype.
52932         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
52933         * lib/fnmatch.c: Don't bother to include <wchar.h> before
52934         <wctype.h>, since the new wctype module should fix this.
52935         * lib/quotearg.c: Include <wctype.h> unconditionally, since
52936         the wctype module should arrange for it.
52937         * lib/regex_internal.h: Likewise.
52938         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
52939         since the wctype module should handle this now.
52940         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
52941         * modules/fnmatch (Depends-on): Add wctype.
52942         * modules/quotearg (Depends-on): Likewise.
52943         * modules/regex (Depends-on): Likewise.
52944
52945 2006-12-19  Bruno Haible  <bruno@clisp.org>
52946
52947         * lib/strdup.h [C++]: Wrap definitions in extern "C".
52948         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
52949
52950 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52951
52952         * modules/savewd (Depends-on): Fix dependency on fcntl.
52953
52954 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52955
52956         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
52957         conforms to C99, rather than relying on the user's environment
52958         setting of STDINT_H.
52959
52960 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52961         and Eric Blake  <ebb9@byu.net>
52962
52963         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
52964         This is more consistent with the other defines here.
52965         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
52966         Port to z/OS.  Problem reported by Paul Gilmartin.
52967         Change local vars to use gl_ prefix rather than ac_.
52968         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
52969         with other defines.
52970         * modules/double-slash-root: New module.
52971         * modules/dirname (Files): Remove m4/double-slash-root.m4.
52972         (Depends-on): Add double-slash-root.
52973         * MODULES.html.sh (File system functions): Mention new module.
52974
52975 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
52976
52977         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
52978         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
52979         This is for the benefit of gzip, which doesn't do i18n.
52980
52981 2006-12-12  Jim Meyering  <jim@meyering.net>
52982
52983         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
52984         Reported by Andreas Schwab <schwab@suse.de>.
52985
52986 2006-12-12  Bruno Haible  <bruno@clisp.org>
52987
52988         Merge these changes.
52989         2006-09-05  Bruno Haible  <bruno@clisp.org>
52990         * lib/iconvme.c (iconv_string): No need to save and restore errno when
52991         iconv_alloc succeeded.
52992         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
52993         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
52994         test for " && dest " at the end - dest is always != NULL there. Call
52995         iconv with 4xNULL arguments initially, to reset the state. Call iconv
52996         with 2xNULL arguments, also to flush the state storage. Handle the
52997         IRIX iconv behaviour. Realloc the final result, to throw away unused
52998         memory.
52999
53000 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
53001
53002         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
53003         and fchmodat unconditionally, since glibc 2.4 has them.
53004         Problem reported by Arkadiusz Miskiewicz.
53005
53006 2006-12-10  Bruno Haible  <bruno@clisp.org>
53007
53008         * gnulib-tool (func_import): Show the include files only for those
53009         modules that are copied and specified.
53010         Reported by Karl Berry.
53011
53012 2006-12-08  Jim Meyering  <jim@meyering.net>
53013
53014         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
53015         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
53016
53017         * build-aux/announce-gen: Add two new options, both optional:
53018         --bootstrap-tools=TOOL_LIST
53019               a comma-separated list of tools, e.g.,
53020               autoconf,automake,bison,gnulib
53021         --gnulib-snapshot-date=DATE
53022               if gnulib is in the bootstrap tool list,
53023               then report this as the snapshot date.
53024               If not specified, use the current date/time.
53025               If you specify a date here, be sure it's UTC.
53026
53027 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53028
53029         * tests/test-argp-2.sh: Fix test to match actual output.
53030         (func_compare): Fix sed script to be portable.
53031
53032 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
53033
53034         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
53035         workaround for this case.  It is not autoconfigured now; offhand
53036         it's hard to see how to autoconfigure it.
53037
53038 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53039
53040         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
53041         a directory that is about to be chowned.  Such a directory's
53042         initial file permissions should permit the owner only and this
53043         should not be changed until after the chown, since the group and
53044         other bits would be incorrect if they granted permission before
53045         the chown.
53046
53047         Fix porting problem for iswctype reported by Georg Schwarz in:
53048         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
53049         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
53050         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
53051         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
53052         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53053
53054 2006-12-03  Jim Meyering  <jim@meyering.net>
53055
53056         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
53057         p->fts_statp may not yet be defined.
53058         (fts_read): Instead, set it in the caller, once p->fts_statp is
53059         sure to be defined, and corresponds to a top-level directory.
53060         This bug made du -x fail.  Here's the coreutils test case:
53061         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
53062         Reported by Mike Frysinger.
53063
53064 2006-12-01  Jim Meyering  <jim@meyering.net>
53065
53066         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
53067         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
53068         Reported by Simon Josefsson.
53069
53070 2006-11-30  Jim Meyering  <jim@meyering.net>
53071
53072         * m4/warning.m4: Use the all-permissive copyright notice
53073         recommended by RMS (rather than LGPL).
53074         * m4/vararrays.m4: Likewise.
53075         * m4/flexmember.m4: Likewise.
53076
53077 2006-11-29  Bruno Haible  <bruno@clisp.org>
53078
53079         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53080         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
53081         using +=.
53082         Reported by Simon Josefsson <simon@josefsson.org>.
53083
53084 2006-11-28  James Youngman <jay@gnu.org>
53085
53086         * README: Advise users that they might find the bug-gnulib@gnu.org
53087         and autotools-announce@gnu.org mailing lists useful.
53088
53089 2006-11-28  Bruno Haible  <bruno@clisp.org>
53090
53091         * m4/ptrdiff_max.m4: Remove file.
53092
53093 2006-11-21  Bruno Haible  <bruno@clisp.org>
53094
53095         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
53096         _AC_COMPUTE_INT.
53097         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53098         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
53099         _AC_COMPUTE_INT.
53100         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53101         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
53102         _AC_COMPUTE_INT.
53103         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53104
53105 2006-11-28  Jim Meyering  <jim@meyering.net>
53106
53107         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
53108         warning from "gcc -Wshadow" about shadowing the builtin.
53109
53110 2006-11-27  Bruno Haible  <bruno@clisp.org>
53111
53112         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
53113         _AC_COMPUTE_INT.
53114         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53115
53116 2006-11-27  Bruno Haible  <bruno@clisp.org>
53117             Paul Eggert  <eggert@cs.ucla.edu>
53118
53119         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
53120
53121 2006-11-26  Bruno Haible  <bruno@clisp.org>
53122
53123         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53124         noinst_LTLIBRARIES.
53125
53126 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
53127             Bruno Haible  <bruno@clisp.org>
53128
53129         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
53130         if compiling with "gcc -ansi".
53131
53132 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
53133
53134         Fix some incompatibilities with gcc -ansi -pedantic.
53135         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
53136         if compiling pedantically with GCC, unless it's C99 or later.
53137         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
53138         it mishandles gcc -ansi -pedantic as well.
53139         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
53140         if gcc -pedantic.
53141         * lib/regexec.c (check_node_accept_bytes): Don't use auto
53142         initializers for struct if -pedantic, unless it's C99 or later.
53143
53144 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
53145
53146         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
53147         Don't close an fd more than once. Identical atimes indicate
53148         success, not failure.
53149
53150 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
53151
53152         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
53153
53154 2006-11-23  Jim Meyering  <jim@meyering.net>
53155
53156         * build-aux/announce-gen: New file.  From coreutils.
53157
53158 2006-11-22  Jim Meyering  <jim@meyering.net>
53159
53160         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
53161         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
53162         (fts_read): Use a temporary to narrow the overused st_size member
53163         before using it in a switch statement.  Reported by Matthew Woehlke.
53164
53165         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
53166         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
53167
53168 2006-11-20  Bruno Haible  <bruno@clisp.org>
53169
53170         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
53171         changequote instead of pairs of brackets.
53172         Reported by Andreas Schwab <schwab@suse.de>.
53173
53174 2006-11-21  Jim Meyering  <jim@meyering.net>
53175
53176         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
53177         so as to remain compatible with older compilers.
53178         Patch from Michael Deutschmann.
53179
53180 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53181
53182         * MODULES.html.sh (File system functions): Add openat.
53183
53184         * lib/openat.h (rpl_fstatat): New macro, if
53185         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
53186         (fstatat): Define to rpl_fstatat under the same conditions,
53187         unless COMPILING_FSTATAT.
53188         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
53189         seems to have the bug.
53190         * lib/fstatat.c: New file.
53191         * modules/openat (Files): Add it.
53192
53193 2006-11-20  Bruno Haible  <bruno@clisp.org>
53194
53195         * Makefile: New file.
53196
53197 2006-11-20  Jim Meyering  <jim@meyering.net>
53198
53199         The beginnings of syntax-related checks for gnulib.
53200         * lib/Makefile: New file.
53201         * lib/t-idcache: New script.  Ensure that the two halves of
53202         idcache.c stay in sync.
53203
53204         * lib/idcache.c: Adjust comments in user- and group- portions to
53205         be more accurate, and to be consistent with one another.
53206
53207 2006-11-20  Jim Meyering  <jim@meyering.net>
53208
53209         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
53210         continue using the flexible array member (thus, this module performs
53211         half as many malloc calls), with the addition that...
53212         (getgroup, getuser): Consistently record a non-match via an empty
53213         "name" string, and map an empty string match to a NULL return value.
53214         * modules/idcache (Depends-on): Re-add flexmember.
53215
53216         * lib/idcache.c (getuser): Remove all uses of the register keyword.
53217         (getuidbyname, getgroup, getgidbyname): Likewise.
53218
53219         Use cleaner syntax: NULL rather than 0.
53220         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
53221
53222 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53223
53224         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
53225         It mishandled the case where the group was missing.
53226         Problem reported by Greg Schafer.
53227         * modules/idcache: Likewise.
53228
53229 2006-11-18  Jim Meyering  <jim@meyering.net>
53230
53231         * check-module (%exempt_header): Add exception for some
53232         conditionally-included headers.
53233
53234         * modules/i-ring (Depends-on): Add verify.
53235         (License): Change to LGPL.
53236
53237 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53238
53239         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
53240         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
53241         and inttostr.h.  Use snprintf rather than uinttostr, so that
53242         LGPLed code doesn't depend on GPLed.
53243
53244 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53245
53246         * modules/inline (License): Change from GPL to LGPL.
53247
53248 2006-11-17  Jim Meyering  <jim@meyering.net>
53249
53250         * modules/d-type (License): Switch to LGPL.
53251
53252 2006-11-15  Bruno Haible  <bruno@clisp.org>
53253
53254         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
53255
53256 2006-11-15  Eric Blake  <ebb9@byu.net>
53257
53258         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
53259         the module dependency.
53260
53261 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53262             Bruno Haible  <bruno@clisp.org>
53263
53264         * gnulib-tool (func_create_testdir): Add license consistency check.
53265
53266 2006-11-15  Eric Blake  <ebb9@byu.net>
53267
53268         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
53269         random "(cached)" in configure output.
53270
53271 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53272
53273         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
53274         test for conforming inttypes.h is both announced and cached.
53275
53276         * MODULES.html.sh (seen_modules, seen_files): New variables.
53277         (func_module): Rewrite to use a few less gnulib-tool and sed
53278         invocations.  Avoid a couple of quadratic algorithms for ...
53279         (missed_modules, missed_files): ... these, with ...
53280         (func_append, func_tmpdir): ... these new functions, from
53281         gnulib-tool.  Analogously, install traps for cleanup.
53282
53283         * tests/test-gc.c (main): Remove unused variables.
53284         * tests/test-read-file.c: Include stdlib.h, for 'free'.
53285
53286 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
53287
53288         * modules/inttostr (License): Change to LGPL.
53289
53290 2006-11-14  Eric Blake  <ebb9@byu.net>
53291
53292         * modules/tempname (License): Change to LGPL.
53293
53294 2006-11-14  Eric Blake  <ebb9@byu.net>
53295
53296         * doc/functions.texi (Function Portability): *printf functions on
53297         Cygwin now understand all POSIX size specifiers.
53298
53299 2006-11-14  Bruno Haible  <bruno@clisp.org>
53300
53301         * modules/c-ctype (License): Change to LGPL.
53302
53303 2006-11-12  Bruno Haible  <bruno@clisp.org>
53304
53305         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
53306         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
53307         for GNOME libraries, for which the include files are installed in
53308         subdirectories of $prefix/include.
53309
53310 2006-11-12  Bruno Haible  <bruno@clisp.org>
53311
53312         * m4/lib-link.m4: Require at least autoconf-2.54.
53313         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
53314         name to underscores for the --with option.
53315
53316 2006-11-13  Bruno Haible  <bruno@clisp.org>
53317
53318         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
53319         the tests directory.
53320         Reported by Ralf Wildenhues.
53321
53322 2006-11-13  Bruno Haible  <bruno@clisp.org>
53323
53324         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
53325         (func_emit_initmacro_end): Undo the override here.
53326         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
53327         Works around the famous automake error in coreutils.
53328
53329 2006-11-13  Eric Blake  <ebb9@byu.net>
53330
53331         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
53332         element, not its node.
53333
53334 2006-11-12  Bruno Haible  <bruno@clisp.org>
53335
53336         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
53337         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
53338
53339 2006-11-12  Bruno Haible  <bruno@clisp.org>
53340
53341         * gnulib-tool: New option --local-symlink.
53342         (func_usage): Document it.
53343         (lsymbolic): New variable.
53344         (func_import, func_create_testdir): If --symlink was not specified,
53345         test whether --local-symlink was specified and the file comes from
53346         the local_gnulib_dir.
53347
53348 2006-11-12  Bruno Haible  <bruno@clisp.org>
53349
53350         * gnulib-tool (func_ln): New function.
53351         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
53352
53353 2006-11-12  Bruno Haible  <bruno@clisp.org>
53354
53355         Finish support for source files in subdirectories.
53356         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
53357         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
53358         AUTOMAKE_OPTIONS.
53359         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
53360
53361 2006-11-12  Bruno Haible  <bruno@clisp.org>
53362
53363         * gnulib-tool (func_get_automake_snippet): Synthesize also an
53364         EXTRA_lib_SOURCES augmentation.
53365         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
53366
53367 2006-11-12  Jim Meyering  <jim@meyering.net>
53368
53369         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
53370         file descriptors.  This also averts a failure on systems with
53371         native openat support when a traversed directory lacks "x" access.
53372         * lib/fts_.h: Include "i-ring.h"
53373         (struct FTS) [fts_fd_ring]: New member.
53374         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
53375         (FCHDIR): Add parentheses.
53376         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
53377         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
53378         When descending, rather than simply closing the previous
53379         fts_cwd_fd value, push that file descriptor onto the ring.
53380         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
53381         (fts_open): Initialize the new fd_ring member.
53382         (fts_close): Clear the ring.
53383         (fts_safe_changedir): When possible, use our new fd_ring to skip
53384         the diropen and fstat and dev/ino comparison that would normally
53385         accompany a virtual `chdir ("..")'.
53386
53387         * modules/fts (Depends-on): Add i-ring.
53388         * modules/i-ring: New module.
53389         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
53390         * m4/i-ring.m4: New file.
53391
53392 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53393
53394         * gnulib-tool (func_create_testdir): Fix replacement of
53395         `build-aux' in configure.ac.  Run autotools in gltests
53396         subdirectory.
53397         (func_create_testdir, func_create_megatestdir, test): There is
53398         no need for '--force' in most autotool invocations in a new
53399         tree.  Actually fail the whole test if any of the tools, or the
53400         configure or make stages fail.
53401
53402         Sync from Automake.
53403         * build-aux/gnupload: Revert last change.  Add pointer to upload
53404         instructions of the GNU Maintenance Instructions.
53405         Suggestion by Karl Berry.
53406
53407 2006-11-10  Jim Meyering  <jim@meyering.net>
53408
53409         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
53410
53411 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53412
53413         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
53414         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
53415         (bind_textdomain_codeset) [! ENABLE_NLS]:
53416         Evaluate all the arguments.  That way, callers get compatible behavior
53417         if the arguments have side effects.  Also, it avoids some GCC
53418         diagnostics in some cases; Joel E. Denny reported problems when Bison
53419         was configured with --enable-gcc-warnigs.
53420
53421 2006-11-10  Jim Meyering  <jim@meyering.net>
53422
53423         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
53424         relevant options in CFLAGS (like -O, -fno-inline) are taken into
53425         account.
53426
53427 2006-11-10  Jim Meyering  <jim@meyering.net>
53428
53429         * modules/inline: New file/module.
53430         * modules/xalloc (Files): Remove m4/inline.m4.
53431         (Depends-on): Add inline, instead.
53432         * modules/oset: Likewise.
53433         * modules/list: Likewise.
53434
53435 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53436
53437         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
53438         Problem reported by Matthew Woehlke.
53439
53440 2006-11-09  Bruno Haible  <bruno@clisp.org>
53441
53442         * lib/tempname.c (gen_tempname): Remove variant that invokes
53443         __gen_tempname.
53444         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
53445         __gen_tempname.
53446
53447 2006-11-08  Bruno Haible  <bruno@clisp.org>
53448
53449         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
53450         to 'yes' instead of 'cross-compiling'.
53451
53452 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
53453
53454         * lib/quotearg.h (quotearg_free): New decl.
53455         * lib/quotearg.c (quotearg_free): New function.
53456         (slot0, nslots, slotvec0, slotvec):
53457         Now file-scope so that quotearg_free can get at them.
53458
53459 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53460
53461         Sync from Automake.
53462         * build-aux/gnupload: Add missing 'gnu' to example URL.
53463         Report by Karl Berry.
53464
53465 2006-11-08  Bruno Haible  <bruno@clisp.org>
53466
53467         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
53468         Suggested by Paul Eggert.
53469
53470 2006-11-08  Jim Meyering  <jim@meyering.net>
53471
53472         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
53473         It's already included if !_LIBC.
53474         (fts_safe_changedir): Add a comment.
53475
53476 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
53477
53478         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
53479         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
53480         Matthew Woehlke.
53481
53482         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
53483         definitions up, to avoid colliding with change below.
53484         (static_inline) [HAVE_INLINE]: New macro.
53485         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
53486         Provide extern decls when !HAVE_INLINE.  Do not define unless
53487         static_inline is defined, either by us or by xmalloc.c.  Use
53488         static_inline rather than static inline.
53489         (XCALLOC): Optimize sizeof(T) = 1 case.
53490         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
53491
53492 2006-11-07  Bruno Haible  <bruno@clisp.org>
53493
53494         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
53495         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
53496         AC_C_INLINE.
53497         * modules/xalloc (Files): Add m4/inline.m4.
53498
53499 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53500
53501         * README: Fix typo.
53502         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
53503         (Miscellanous Notes): ...from this.
53504
53505 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
53506
53507         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
53508         Mention that offsetof should be used instead of sizeof.
53509         From Bruno Haible.
53510
53511 2006-11-07  Bruno Haible  <bruno@clisp.org>
53512
53513         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
53514
53515 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
53516
53517         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
53518         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
53519         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
53520         (gl_tree_add_before, gl_tree_add_after):
53521         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
53522         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
53523         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
53524         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
53525         (gl_linked_add_after, gl_linked_add_at): Likewise.
53526         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
53527         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
53528         (gl_tree_add_before, gl_tree_add_after): Likewise.
53529         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
53530         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
53531         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
53532
53533 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53534
53535         * lib/gl_oset.h: Use C comment style, not C++ comment style.
53536
53537 2006-11-06  Bruno Haible  <bruno@clisp.org>
53538
53539         * m4/inline.m4: New file.
53540         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
53541         * modules/list (Files): Add m4/inline.m4.
53542         * modules/oset (Files): Likewise.
53543
53544 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
53545
53546         * lib/idcache.c: Include <stddef.h>, for offsetof.
53547         (struct userid.name): Change from char * to a flexible array member.
53548         All uses changed.
53549         * modules/idcache (Depends-on): Add flexmember.
53550
53551         * MODULES.html.sh (Core language properties): New module flexmember.
53552         * modules/flexmember, m4/flexmember.m4: New files.
53553
53554         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
53555         inline functions that are identical with the old xnmalloc_inline,
53556         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
53557         that we can avoid some unnecessary integer multiplications and
53558         divisions in the common case where the element size is known at
53559         compile time.
53560         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
53561         needed.
53562         (xnboundedmalloc): Remove.
53563         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
53564         arguments, for consistency with rest of this header.
53565         (xcharalloc): Rewrite using XNMALLOC.
53566         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
53567         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
53568         versions have been moved to lib/xalloc.h and renamed to be the
53569         non-*_inline versions.
53570         (xmalloc, xrealloc): Implement without reference to the xnmalloc
53571         and xnrealloc functions, since those functions are now inline and
53572         now call us.
53573         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
53574         renaming described above.
53575         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
53576         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
53577         captures the dependency in AC_C_INLINE.
53578
53579         New module canonicalize-lgpl, proposed by Charles Wilson in
53580         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
53581         with a few small changes afterwards.
53582         * MODULES.html.sh (File system functions): New module
53583         canonicalize-lgpl.
53584         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
53585         and canonicalize_file_name.
53586         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
53587         * modules/canonicalize-lgpl: New files.
53588
53589 2006-11-05  Bruno Haible  <bruno@clisp.org>
53590
53591         * gnulib-tool (func_import, func_create_testdir): Create directories
53592         also for files in subdirectories of lib/.
53593
53594 2006-11-05  Bruno Haible  <bruno@clisp.org>
53595
53596         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
53597         ANSI C compliant.
53598
53599 2006-11-03  Bruno Haible  <bruno@clisp.org>
53600
53601         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
53602         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
53603         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
53604         (xnboundedmalloc): New inline function.
53605         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
53606         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
53607         xmalloc.
53608         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
53609         xmalloc.
53610         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
53611         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
53612         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
53613         xmalloc.
53614         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
53615         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
53616         xmalloc.
53617         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
53618         gl_tree_add_after): Use XMALLOC instead of xmalloc.
53619         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
53620         xmalloc.
53621         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
53622         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
53623         gl_tree_add_after): Use XMALLOC instead of xmalloc.
53624         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
53625         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
53626         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
53627         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
53628
53629 2006-11-03  Bruno Haible  <bruno@clisp.org>
53630
53631         * lib/c-ctype.h [C++]: Define functions without name mangling.
53632         * lib/fwriteerror.h [C++]: Likewise.
53633         * lib/gcd.h [C++]: Likewise.
53634         * lib/linebreak.h [C++]: Likewise.
53635
53636 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
53637
53638         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
53639         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
53640         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
53641         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
53642         Check for functions and headers just once.
53643         Check for declaration of canonicalize_file_name.
53644         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
53645
53646 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
53647
53648         * gnulib-tool (func_import): Fix typo in actioncmd.
53649
53650 2006-11-02  Bruno Haible  <bruno@clisp.org>
53651
53652         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
53653         newline sequence in the Makefile.am snippet as a space, like "make"
53654         does.
53655         Reported by Roger Persson <perrog@gmail.com>.
53656
53657 2006-11-01  Bruno Haible  <bruno@clisp.org>
53658
53659         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
53660         already declared in <string.h>.
53661         * lib/strcase.h (strncasecmp): Don't declare it if yes.
53662
53663 2006-11-01  Bruno Haible  <bruno@clisp.org>
53664
53665         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
53666         * lib/strcase.h: Include <string.h>.
53667         (strcasecmp): Define to rpl_strcasecmp here.
53668
53669 2006-11-01  Bruno Haible  <bruno@clisp.org>
53670
53671         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
53672
53673 2006-11-01  Eric Blake  <ebb9@byu.net>
53674
53675         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
53676
53677         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
53678
53679 2006-10-29  Bruno Haible  <bruno@clisp.org>
53680
53681         Make it compile in C++ mode.
53682         * lib/full-write.c (full_rw): Add a cast.
53683
53684 2006-11-01  Bruno Haible  <bruno@clisp.org>
53685
53686         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
53687         be POSIX compliant.
53688         Reported by Roger Persson <perrog@gmail.com>.
53689
53690 2006-11-01  Eric Blake  <ebb9@byu.net>
53691
53692         * lib/getopt_.h: Fix comments.
53693
53694 2006-10-31  Eric Blake  <ebb9@byu.net>
53695
53696         * modules/tmpdir (Depends-on): Add sys_stat.
53697         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
53698         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
53699         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
53700         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
53701         tempname.
53702
53703 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
53704
53705         Avoid some C++ diagnostics reported by Bruno Haible.
53706         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
53707         xmalloc.
53708         (quotearg_alloc): Use xcharalloc rather than xmalloc.
53709         (struct slotvec): Move to top level.
53710         (quotearg_n_options): Rewrite to avoid xmalloc.
53711         * lib/xalloc.h (xcharalloc): New function.
53712         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
53713         [defined __cplusplus]: Add function template that provides result
53714         type propagation.  This part of the change is from Bruno Haible.
53715
53716 2006-10-29  Bruno Haible  <bruno@clisp.org>
53717
53718         Make it compile in C++ mode.
53719         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
53720         * lib/strnlen1.c (strnlen1): Cast memchr result.
53721         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
53722         * lib/clean-temp.c (string_equals, string_hash): Add casts.
53723         (create_temp_dir): Rename local variable 'template'.
53724         (compile_csharp_using_sscli): Add cast.
53725         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
53726         * lib/findprog.c (find_in_path): Likewise.
53727         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
53728         * lib/wait-process.c (register_slave_subprocess): Likewise.
53729
53730 2006-10-22  Bruno Haible  <bruno@clisp.org>
53731
53732         * modules/tsearch: New file.
53733         * lib/tsearch.h: New file.
53734         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
53735         * m4/tsearch.m4: New file.
53736         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
53737
53738 2006-10-29  Eric Blake  <ebb9@byu.net>
53739
53740         * lib/arcfour.c: Assume config.h.
53741         * lib/arctwo.c: Likewise.
53742         * lib/base64.c: Likewise.
53743         * lib/check-version.c: Likewise.
53744         * lib/crc.c: Likewise.
53745         * lib/des.c: Likewise.
53746         * lib/gc-gnulib.c: Likewise.
53747         * lib/gc-libgcrypt.c: Likewise.
53748         * lib/gc-pbkdf2-sha1.c: Likewise.
53749         * lib/getaddrinfo.c: Likewise.
53750         * lib/getdelim.c: Likewise.
53751         * lib/getline.c: Likewise.
53752         * lib/hmac-md5.c: Likewise.
53753         * lib/hmac-sha1.c: Likewise.
53754         * lib/iconvme.c: Likewise.
53755         * lib/md2.c: Likewise.
53756         * lib/md4.c: Likewise.
53757         * lib/memxor.c: Likewise.
53758         * lib/read-file.c: Likewise.
53759         * lib/readline.c: Likewise.
53760         * lib/rijndael-alg-fst.c: Likewise.
53761         * lib/rijndael-api-fst.c: Likewise.
53762         * lib/xgetdomainname.c: Likewise.
53763
53764 2006-10-28  Eric Blake  <ebb9@byu.net>
53765
53766         * lib/xstrndup.c: Assume config.h.
53767
53768 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
53769
53770         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
53771         stat-macros.h is now for our own macros, whereas stat_h is for
53772         macros in the <sys/stat.h> name space.
53773         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
53774         (STAT_MACROS_H): Remove.
53775         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
53776         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
53777         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
53778         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
53779         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
53780         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
53781         Move these macros to ...
53782         * lib/stat_.h: here.  Don't include stat-macros.h.
53783         * lib/canonicalize.c: Don't include stat-macros.h.
53784         * lib/chown.c: Likewise.
53785         * lib/euidaccess.c: Likewise.
53786         * lib/file-type.c: Likewise.
53787         * lib/filemode.c: Likewise.
53788         * lib/glob.c: Likewise.
53789         * lib/isapipe.c: Likewise.
53790         * lib/lchown.c: Likewise.
53791         * lib/lstat.c: Likewise.
53792         * lib/mkdir-p.c: Likewise.
53793         * lib/rmdir.c: Likewise.
53794         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
53795         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
53796         unless mkdir isn't declared, to speed up 'configure'.
53797         Always create sys/stat.h, since it's unlikely any real sys/stat.h
53798         would define all the S_* symbols.
53799         * modules/canonicalize (Depends-on):
53800         Depend on sys_stat, not stat-macros.
53801         * modules/chown: Likewise.
53802         * modules/euidaccess: Likewise.
53803         * modules/filemode: Likewise.
53804         * modules/file-type: Likewise.
53805         * modules/glob: Likewise.
53806         * modules/isapipe: Likewise.
53807         * modules/lchown: Likewise.
53808         * modules/lstat: Likewise.
53809         * modules/mkancesdirs: Likewise.
53810         * modules/rmdir: Likewise.
53811         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
53812         * modules/modechange: Likewise.
53813         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
53814         (configure.ac): Remove gl_STAT_MACROS.
53815         * modules/sys_stat (Depends-on): Remove stat-macros.
53816
53817 2006-10-27  Bruno Haible  <bruno@clisp.org>
53818
53819         * m4/signed.m4: Remove file.
53820         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
53821         invocation.
53822         * modules/vasnprintf (Files): Remove m4/signed.m4.
53823
53824 2006-10-27  Bruno Haible  <bruno@clisp.org>
53825
53826         Update to GNU gettext 0.16.
53827         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
53828         m4/inttypes-h.m4, m4/signed.m4.
53829         * m4/gettext.m4: Update to GNU gettext 0.16.
53830         * m4/intl.m4: New file, from GNU gettext.
53831         * m4/intldir.m4: New file, from GNU gettext.
53832         * config/srclist.txt: Update
53833
53834 2006-10-27  Eric Blake  <ebb9@byu.net>
53835
53836         * MODULES.html.sh: Document tempname.
53837         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
53838         dependencies.
53839         (Files): Move lib/tempname.c...
53840         * modules/tempname: ...to this new module.
53841         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
53842         (gl_PREREQ_TEMPNAME): Move...
53843         * m4/tempname.m4: ...to this new file.
53844         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
53845         * modules/sys_stat (Depends-on): Add stat-macros.
53846         * lib/stat_.h (includes): Pick up stat macros.
53847         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
53848         if stat macros are broken.
53849         * lib/tempname.c (includes): No need to include "stat-macros.h".
53850         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
53851         (direxists, __path_search) [!_LIBC]: Don't compile these in
53852         gnulib; the tmpdir module covers that.
53853         * lib/tempname.h: New file.
53854
53855 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
53856
53857         * COPYING: Explain how gnulib-tool converts licence headers.
53858         Almost all wording by Eric Blake.
53859
53860 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
53861
53862         * lib/mbchar.h (is_basic_table): Make read-only.
53863         * lib/mbchar.c (is_basic_table): Likewise.
53864         Reported by John Darrington.
53865
53866 2006-10-25  Bruno Haible  <bruno@clisp.org>
53867
53868         * lib/progname.h (set_program_name): Undefine before defining.
53869
53870 2006-10-25  Bruno Haible  <bruno@clisp.org>
53871
53872         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
53873         false for non-gcc C++ compilers.
53874         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
53875
53876 2006-10-24  Bruno Haible  <bruno@clisp.org>
53877
53878         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
53879         iconv implementations like Irix iconv.
53880
53881 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53882
53883         * modules/vararrays: New file.
53884         * m4/vararrays.m4: New file, taken from diffutils.
53885         * MODULES.html.sh: New module vararrays.
53886
53887 2006-10-24  Karl Berry  <karl@gnu.org>
53888
53889         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
53890         Don't call GNU Unix.
53891
53892 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53893
53894         * users.txt: Add Libtool.
53895
53896         Sync from Libtool:
53897
53898         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53899
53900         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
53901         to gnulib's policy of including config.h unconditionally.
53902
53903 2006-10-24  Bruno Haible  <bruno@clisp.org>
53904
53905         * modules/wcwidth (Files): Add m4/wint_t.m4.
53906         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
53907         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
53908
53909 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53910
53911         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
53912         to pacify GCC with some -W flags enabled.  Problem reported by
53913         Bruno Haible.
53914
53915 2006-10-24  Jim Meyering  <jim@meyering.net>
53916
53917         * MODULES.html.sh: Remove uinttostr.  It's not a module.
53918         Reported by Karl Berry.
53919
53920 2006-10-23  Bruno Haible  <bruno@clisp.org>
53921
53922         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
53923
53924 2006-10-24  Bruno Haible  <bruno@clisp.org>
53925
53926         * lib/gl_list.h: Use C comment style, not C++ comment style.
53927
53928 2006-10-23  Eric Blake  <ebb9@byu.net>
53929
53930         * lib/getaddrinfo.c (includes): Add missing include.
53931
53932 2006-10-23  Bruno Haible  <bruno@clisp.org>
53933             Paul Eggert  <eggert@cs.ucla.edu>
53934
53935         Ability to rename obstack_free.
53936         * lib/obstack.h (__obstack_free): New macro. Declare instead of
53937         obstack_free.
53938         (obstack_free): Invoke the __obstack_free macro.
53939         * lib/obstack.c (obstack_free): Use __obstack_free macro.
53940
53941 2006-10-23  Bruno Haible  <bruno@clisp.org>
53942             Paul Eggert  <eggert@cs.ucla.edu>
53943
53944         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
53945         __argc, __argv from the declaration. (They are defined as macros on
53946         mingw.)
53947
53948 2006-10-22  Bruno Haible  <bruno@clisp.org>
53949
53950         * doc/gnulib-intro.texi: New file.
53951         * doc/gnulib.texi: Include it.
53952
53953 2006-10-21  Bruno Haible  <bruno@clisp.org>
53954
53955         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
53956         "Introduction", "Miscellanous Notes", "Particular Modules".
53957
53958 2006-10-21  Bruno Haible  <bruno@clisp.org>
53959
53960         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53961         Change mostlyclean-local rule to avoid sh syntax error from bash
53962         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
53963
53964 2006-10-23  Jim Meyering  <jim@meyering.net>
53965
53966         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
53967         in place of snprintf.
53968
53969         * modules/inttostr (Files): Add lib/uinttostr.c.
53970         * lib/uinttostr.c (inttostr): New file/function.
53971         * lib/inttostr.h (uinttostr): Declare.
53972         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
53973         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
53974         Add uinttostr.
53975         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
53976
53977 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
53978
53979         * lib/canonicalize.c (ELOOP): Define if not already defined.
53980         Problem reported by Bruno Haible in
53981         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
53982
53983 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
53984
53985         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
53986         Problem reported by Perry Smith and Ville Laurikari.
53987
53988         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
53989         uses.
53990
53991 2006-10-19  Bruno Haible  <bruno@clisp.org>
53992
53993         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
53994         for mingw.
53995
53996 2006-10-19  Bruno Haible  <bruno@clisp.org>
53997
53998         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
53999         Needed for mingw.
54000
54001 2006-10-19  Bruno Haible  <bruno@clisp.org>
54002
54003         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
54004
54005 2006-10-19  Bruno Haible  <bruno@clisp.org>
54006
54007         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
54008         it.
54009
54010 2006-10-19  Bruno Haible  <bruno@clisp.org>
54011
54012         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
54013         invocation.
54014
54015 2006-10-19  Bruno Haible  <bruno@clisp.org>
54016
54017         * gnulib-tool (func_create_testdir): Don't include ftruncate and
54018         mountlist by default.
54019
54020 2006-10-16  Bruno Haible  <bruno@clisp.org>
54021
54022         * lib/c-strstr.c: Include c-strstr.h.
54023
54024 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54025
54026         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
54027         in a slash.
54028
54029 2006-10-18  Bruno Haible  <bruno@clisp.org>
54030
54031         * lib/lock.h [C++]: Wrap definitions in extern "C".
54032
54033 2006-10-18  Bruno Haible  <bruno@clisp.org>
54034
54035         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
54036         gl_LIBOBJS list.
54037
54038 2006-10-18  Bruno Haible  <bruno@clisp.org>
54039
54040         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
54041
54042 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
54043
54044         * lib/xstrtol.h: Include gettext.h.
54045         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
54046         Problem reported by Eric Blake.
54047         * modules/xstrtol (Depends-on): Add gettext-h.
54048
54049 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
54050
54051         * lib/strftime.c (advance): New macro.
54052         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
54053         incomplete type, so you can't add 0 to it.  Problem and patch
54054         reported by Eelco Dolstra for dietlibc.
54055
54056 2006-10-18  Jim Meyering  <jim@meyering.net>
54057
54058         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
54059         type for a local, and rename it: s/up/user_proc/.
54060
54061 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54062
54063         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
54064         READ_UTMP_USER_PROCESS.
54065         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
54066
54067 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54068
54069         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
54070         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
54071
54072 2006-10-17  Eric Blake  <ebb9@byu.net>
54073
54074         * lib/sigprocmask.c (sigprocmask): Fix typo.
54075
54076         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
54077
54078         * modules/clean-temp (Makefile.am): Don't add to make output...
54079         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
54080         config.h.
54081
54082 2006-10-17  Bruno Haible  <bruno@clisp.org>
54083
54084         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
54085         differently if DEFAULT_TEXT_DOMAIN is set.
54086
54087 2006-10-16  Bruno Haible  <bruno@clisp.org>
54088
54089         * lib/clean-temp.c: Include fwriteerror.h.
54090
54091 2006-10-16  Bruno Haible  <bruno@clisp.org>
54092
54093         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
54094
54095 2006-10-16  Bruno Haible  <bruno@clisp.org>
54096
54097         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
54098         * lib/sigprocmask.h: Include <sys/types.h>.
54099         (sigset_t): Use the system's definition if present.
54100
54101 2006-10-17  Eric Blake  <ebb9@byu.net>
54102
54103         * lib/xvasprintf.c (includes): Assume config.h.
54104         * lib/xasprintf.c (includes): Likewise.
54105
54106 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54107
54108         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
54109         at least as wide as intmax_t.
54110
54111 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
54112
54113         (Imported from Automake.)
54114         * build-aux/gnupload: Update to version 1.1 of directive file.
54115
54116 2006-10-16  Eric Blake  <ebb9@byu.net>
54117
54118         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
54119         match Automake 1.10a.
54120
54121 2006-10-14  Bruno Haible  <bruno@clisp.org>
54122
54123         * modules/sigprocmask: New file.
54124         * lib/sigprocmask.h: New file.
54125         * lib/sigprocmask.c: New file.
54126         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
54127         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
54128         request sigprocmask.o.
54129         (gl_PREREQ_SIGPROCMASK): New macro.
54130         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
54131         (Depends-on): Add sigprocmask.
54132         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
54133         gt_SIGNALBLOCKING. Test for 'raise' only once.
54134         * lib/fatal-signal.c: Include sigprocmask.h.
54135         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
54136         unblock_fatal_signals): Define always.
54137         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54138         sigprocmask.
54139
54140 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54141
54142         Sync from Automake.
54143         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
54144         which incorrectly sets the mode of an existing destination
54145         directory.  In some cases the unpatched install-sh could do the
54146         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
54147         system.  We hope this is rare in practice, but it's clearly worth
54148         fixing.  Problem reported by Alex Unleashed in
54149         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
54150         Also, don't bother to check for -m bugs unless we're using -m;
54151         suggested by Stepan Kasal.
54152
54153 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54154
54155         Sync from Automake.
54156         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
54157         `-c' flag, so they appear at the same position as in %FASTDEP%
54158         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
54159         which ignores unknown options only after the first non-option.
54160         Bug report against M4 by Nelson H. F. Beebe.
54161
54162 2006-10-13  Jim Meyering  <jim@meyering.net>
54163
54164         Fix a bug in yesterday's change.
54165         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
54166         p->fts_statp->st_dev would be used uninitialized.
54167         Ensures that we always call fts_stat on the very first entry.
54168         Miklos Szeredi reported that find -xdev stopped working.
54169
54170 2006-10-12  Bruno Haible  <bruno@clisp.org>
54171
54172         * gnulib-tool (func_get_automake_snippet): Append an automatically
54173         computed EXTRA_DIST augmentation.
54174         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
54175         * modules/alloca-opt (Makefile.am): Likewise.
54176         * modules/allocsa (Makefile.am): Likewise.
54177         * modules/arcfour (Makefile.am): Likewise.
54178         * modules/arctwo (Makefile.am): Likewise.
54179         * modules/argmatch (Makefile.am): Likewise.
54180         * modules/argz (Makefile.am): Likewise.
54181         * modules/atexit (Makefile.am): Likewise.
54182         * modules/backupfile (Makefile.am): Likewise.
54183         * modules/byteswap (Makefile.am): Likewise.
54184         * modules/c-strtod (Makefile.am): Likewise.
54185         * modules/c-strtold (Makefile.am): Likewise.
54186         * modules/calloc (Makefile.am): Likewise.
54187         * modules/canon-host (Makefile.am): Likewise.
54188         * modules/canonicalize (Makefile.am): Likewise.
54189         * modules/chdir-long (Makefile.am): Likewise.
54190         * modules/chdir-safer (Makefile.am): Likewise.
54191         * modules/check-version (Makefile.am): Likewise.
54192         * modules/chown (Makefile.am): Likewise.
54193         * modules/cloexec (Makefile.am): Likewise.
54194         * modules/close-stream (Makefile.am): Likewise.
54195         * modules/closeout (Makefile.am): Likewise.
54196         * modules/crc (Makefile.am): Likewise.
54197         * modules/csharpexec (Makefile.am): Likewise.
54198         * modules/cycle-check (Makefile.am): Likewise.
54199         * modules/des (Makefile.am): Likewise.
54200         * modules/dev-ino (Makefile.am): Likewise.
54201         * modules/dirfd (Makefile.am): Likewise.
54202         * modules/dirname (Makefile.am): Likewise.
54203         * modules/dup2 (Makefile.am): Likewise.
54204         * modules/eealloc (Makefile.am): Likewise.
54205         * modules/error (Makefile.am): Likewise.
54206         * modules/euidaccess (Makefile.am): Likewise.
54207         * modules/exclude (Makefile.am): Likewise.
54208         * modules/exitfail (Makefile.am): Likewise.
54209         * modules/fcntl-safer (Makefile.am): Likewise.
54210         * modules/fcntl (Makefile.am): Likewise.
54211         * modules/file-type (Makefile.am): Likewise.
54212         * modules/fileblocks (Makefile.am): Likewise.
54213         * modules/filemode (Makefile.am): Likewise.
54214         * modules/filenamecat (Makefile.am): Likewise.
54215         * modules/fnmatch (Makefile.am): Likewise.
54216         * modules/fopen-safer (Makefile.am): Likewise.
54217         * modules/fpending (Makefile.am): Likewise.
54218         * modules/fprintftime (Makefile.am): Likewise.
54219         * modules/free (Makefile.am): Likewise.
54220         * modules/fsusage (Makefile.am): Likewise.
54221         * modules/ftruncate (Makefile.am): Likewise.
54222         * modules/fts (Makefile.am): Likewise.
54223         * modules/gc-arcfour (Makefile.am): Likewise.
54224         * modules/gc-des (Makefile.am): Likewise.
54225         * modules/gc-hmac-md5 (Makefile.am): Likewise.
54226         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
54227         * modules/gc-md4 (Makefile.am): Likewise.
54228         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
54229         * modules/gc-sha1 (Makefile.am): Likewise.
54230         * modules/gc (Makefile.am): Likewise.
54231         * modules/getaddrinfo (Makefile.am): Likewise.
54232         * modules/getcwd (Makefile.am): Likewise.
54233         * modules/getdelim (Makefile.am): Likewise.
54234         * modules/getdomainname (Makefile.am): Likewise.
54235         * modules/getgroups (Makefile.am): Likewise.
54236         * modules/gethostname (Makefile.am): Likewise.
54237         * modules/gethrxtime (Makefile.am): Likewise.
54238         * modules/getline (Makefile.am): Likewise.
54239         * modules/getloadavg (Makefile.am): Likewise.
54240         * modules/getlogin_r (Makefile.am): Likewise.
54241         * modules/getndelim2 (Makefile.am): Likewise.
54242         * modules/getopt (Makefile.am): Likewise.
54243         * modules/getpagesize (Makefile.am): Likewise.
54244         * modules/getpass-gnu (Makefile.am): Likewise.
54245         * modules/getpass (Makefile.am): Likewise.
54246         * modules/getsubopt (Makefile.am): Likewise.
54247         * modules/gettime (Makefile.am): Likewise.
54248         * modules/gettimeofday (Makefile.am): Likewise.
54249         * modules/getugroups (Makefile.am): Likewise.
54250         * modules/getusershell (Makefile.am): Likewise.
54251         * modules/glob (Makefile.am): Likewise.
54252         * modules/group-member (Makefile.am): Likewise.
54253         * modules/hard-locale (Makefile.am): Likewise.
54254         * modules/hash (Makefile.am): Likewise.
54255         * modules/hmac-md5 (Makefile.am): Likewise.
54256         * modules/hmac-sha1 (Makefile.am): Likewise.
54257         * modules/human (Makefile.am): Likewise.
54258         * modules/idcache (Makefile.am): Likewise.
54259         * modules/imaxabs (Makefile.am): Likewise.
54260         * modules/imaxdiv (Makefile.am): Likewise.
54261         * modules/inet_ntop (Makefile.am): Likewise.
54262         * modules/inet_pton (Makefile.am): Likewise.
54263         * modules/intprops (Makefile.am): Likewise.
54264         * modules/inttostr (Makefile.am): Likewise.
54265         * modules/inttypes (Makefile.am): Likewise.
54266         * modules/isapipe (Makefile.am): Likewise.
54267         * modules/javaversion (Makefile.am): Likewise.
54268         * modules/lchmod (Makefile.am): Likewise.
54269         * modules/lchown (Makefile.am): Likewise.
54270         * modules/localcharset (Makefile.am): Likewise.
54271         * modules/long-options (Makefile.am): Likewise.
54272         * modules/lstat (Makefile.am): Likewise.
54273         * modules/malloc (Makefile.am): Likewise.
54274         * modules/mathl (Makefile.am): Likewise.
54275         * modules/mbchar (Makefile.am): Likewise.
54276         * modules/md2 (Makefile.am): Likewise.
54277         * modules/md4 (Makefile.am): Likewise.
54278         * modules/md5 (Makefile.am): Likewise.
54279         * modules/memcasecmp (Makefile.am): Likewise.
54280         * modules/memchr (Makefile.am): Likewise.
54281         * modules/memcmp (Makefile.am): Likewise.
54282         * modules/memcoll (Makefile.am): Likewise.
54283         * modules/memcpy (Makefile.am): Likewise.
54284         * modules/memmem (Makefile.am): Likewise.
54285         * modules/memmove (Makefile.am): Likewise.
54286         * modules/mempcpy (Makefile.am): Likewise.
54287         * modules/memrchr (Makefile.am): Likewise.
54288         * modules/memset (Makefile.am): Likewise.
54289         * modules/memxor (Makefile.am): Likewise.
54290         * modules/mkancesdirs (Makefile.am): Likewise.
54291         * modules/mkdir-p (Makefile.am): Likewise.
54292         * modules/mkdir (Makefile.am): Likewise.
54293         * modules/mkdtemp (Makefile.am): Likewise.
54294         * modules/mkstemp (Makefile.am): Likewise.
54295         * modules/mktime (Makefile.am): Likewise.
54296         * modules/modechange (Makefile.am): Likewise.
54297         * modules/mountlist (Makefile.am): Likewise.
54298         * modules/nanosleep (Makefile.am): Likewise.
54299         * modules/obstack (Makefile.am): Likewise.
54300         * modules/openat (Makefile.am): Likewise.
54301         * modules/pagealign_alloc (Makefile.am): Likewise.
54302         * modules/pathmax (Makefile.am): Likewise.
54303         * modules/physmem (Makefile.am): Likewise.
54304         * modules/poll (Makefile.am): Likewise.
54305         * modules/posixtm (Makefile.am): Likewise.
54306         * modules/posixver (Makefile.am): Likewise.
54307         * modules/putenv (Makefile.am): Likewise.
54308         * modules/quote (Makefile.am): Likewise.
54309         * modules/quotearg (Makefile.am): Likewise.
54310         * modules/raise (Makefile.am): Likewise.
54311         * modules/read-file (Makefile.am): Likewise.
54312         * modules/readline (Makefile.am): Likewise.
54313         * modules/readlink (Makefile.am): Likewise.
54314         * modules/readtokens (Makefile.am): Likewise.
54315         * modules/readutmp (Makefile.am): Likewise.
54316         * modules/realloc (Makefile.am): Likewise.
54317         * modules/regex (Makefile.am): Likewise.
54318         * modules/rename-dest-slash (Makefile.am): Likewise.
54319         * modules/rename (Makefile.am): Likewise.
54320         * modules/rijndael (Makefile.am): Likewise.
54321         * modules/rmdir (Makefile.am): Likewise.
54322         * modules/rpmatch (Makefile.am): Likewise.
54323         * modules/safe-read (Makefile.am): Likewise.
54324         * modules/safe-write (Makefile.am): Likewise.
54325         * modules/same-inode (Makefile.am): Likewise.
54326         * modules/same (Makefile.am): Likewise.
54327         * modules/save-cwd (Makefile.am): Likewise.
54328         * modules/savedir (Makefile.am): Likewise.
54329         * modules/setenv (Makefile.am): Likewise.
54330         * modules/settime (Makefile.am): Likewise.
54331         * modules/sha1 (Makefile.am): Likewise.
54332         * modules/sig2str (Makefile.am): Likewise.
54333         * modules/snprintf (Makefile.am): Likewise.
54334         * modules/stat-macros (Makefile.am): Likewise.
54335         * modules/stat-time (Makefile.am): Likewise.
54336         * modules/stdbool (Makefile.am): Likewise.
54337         * modules/stdint (Makefile.am): Likewise.
54338         * modules/stdlib-safer (Makefile.am): Likewise.
54339         * modules/stpcpy (Makefile.am): Likewise.
54340         * modules/stpncpy (Makefile.am): Likewise.
54341         * modules/strcase (Makefile.am): Likewise.
54342         * modules/strcasestr (Makefile.am): Likewise.
54343         * modules/strchrnul (Makefile.am): Likewise.
54344         * modules/strcspn (Makefile.am): Likewise.
54345         * modules/strdup (Makefile.am): Likewise.
54346         * modules/strerror (Makefile.am): Likewise.
54347         * modules/strftime (Makefile.am): Likewise.
54348         * modules/strndup (Makefile.am): Likewise.
54349         * modules/strnlen (Makefile.am): Likewise.
54350         * modules/strpbrk (Makefile.am): Likewise.
54351         * modules/strsep (Makefile.am): Likewise.
54352         * modules/strstr (Makefile.am): Likewise.
54353         * modules/strtod (Makefile.am): Likewise.
54354         * modules/strtoimax (Makefile.am): Likewise.
54355         * modules/strtok_r (Makefile.am): Likewise.
54356         * modules/strtol (Makefile.am): Likewise.
54357         * modules/strtoll (Makefile.am): Likewise.
54358         * modules/strtoul (Makefile.am): Likewise.
54359         * modules/strtoull (Makefile.am): Likewise.
54360         * modules/strtoumax (Makefile.am): Likewise.
54361         * modules/strverscmp (Makefile.am): Likewise.
54362         * modules/sys_socket (Makefile.am): Likewise.
54363         * modules/sys_stat (Makefile.am): Likewise.
54364         * modules/sysexits (Makefile.am): Likewise.
54365         * modules/time_r (Makefile.am): Likewise.
54366         * modules/timegm (Makefile.am): Likewise.
54367         * modules/timespec (Makefile.am): Likewise.
54368         * modules/tmpfile-safer (Makefile.am): Likewise.
54369         * modules/trim (Makefile.am): Likewise.
54370         * modules/unistd-safer (Makefile.am): Likewise.
54371         * modules/unlinkdir (Makefile.am): Likewise.
54372         * modules/unlocked-io (Makefile.am): Likewise.
54373         * modules/userspec (Makefile.am): Likewise.
54374         * modules/utime (Makefile.am): Likewise.
54375         * modules/utimecmp (Makefile.am): Likewise.
54376         * modules/utimens (Makefile.am): Likewise.
54377         * modules/vasnprintf (Makefile.am): Likewise.
54378         * modules/vasprintf (Makefile.am): Likewise.
54379         * modules/vsnprintf (Makefile.am): Likewise.
54380         * modules/xalloc (Makefile.am): Likewise.
54381         * modules/xgetcwd (Makefile.am): Likewise.
54382         * modules/xnanosleep (Makefile.am): Likewise.
54383         * modules/xreadlink (Makefile.am): Likewise.
54384         * modules/xstrtod (Makefile.am): Likewise.
54385         * modules/xstrtol (Makefile.am): Likewise.
54386         * modules/xstrtold (Makefile.am): Likewise.
54387         * modules/yesno (Makefile.am): Likewise.
54388         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
54389
54390 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54391
54392         * modules/error (Makefile.am): Distribute files through
54393         EXTRA_DIST, not lib_SOURCES.
54394
54395 2006-10-12  Eric Blake  <ebb9@byu.net>
54396
54397         * modules/error (Makefile.am): Distribute files in /lib.
54398         * modules/obstack (Makefile.am): Likewise.
54399
54400 2006-10-12  Bruno Haible  <bruno@clisp.org>
54401
54402         * modules/acl (Makefile.am): Distribute all files in lib/ through
54403         EXTRA_DIST.
54404         * modules/arcfour (Makefile.am): Likewise.
54405         * modules/arctwo (Makefile.am): Likewise.
54406         * modules/argmatch (Makefile.am): Likewise.
54407         * modules/argz (Makefile.am): Likewise.
54408         * modules/atexit (Makefile.am): Likewise.
54409         * modules/backupfile (Makefile.am): Likewise.
54410         * modules/c-strtod (Makefile.am): Likewise.
54411         * modules/c-strtold (Makefile.am): Likewise.
54412         * modules/calloc (Makefile.am): Likewise.
54413         * modules/canon-host (Makefile.am): Likewise.
54414         * modules/canonicalize (Makefile.am): Likewise.
54415         * modules/chdir-long (Makefile.am): Likewise.
54416         * modules/chdir-safer (Makefile.am): Likewise.
54417         * modules/check-version (Makefile.am): Likewise.
54418         * modules/chown (Makefile.am): Likewise.
54419         * modules/cloexec (Makefile.am): Likewise.
54420         * modules/close-stream (Makefile.am): Likewise.
54421         * modules/closeout (Makefile.am): Likewise.
54422         * modules/crc (Makefile.am): Likewise.
54423         * modules/cycle-check (Makefile.am): Likewise.
54424         * modules/des (Makefile.am): Likewise.
54425         * modules/dirfd (Makefile.am): Likewise.
54426         * modules/dirname (Makefile.am): Likewise.
54427         * modules/dup2 (Makefile.am): Likewise.
54428         * modules/euidaccess (Makefile.am): Likewise.
54429         * modules/exclude (Makefile.am): Likewise.
54430         * modules/exitfail (Makefile.am): Likewise.
54431         * modules/fcntl-safer (Makefile.am): Likewise.
54432         * modules/file-type (Makefile.am): Likewise.
54433         * modules/fileblocks (Makefile.am): Likewise.
54434         * modules/filemode (Makefile.am): Likewise.
54435         * modules/filenamecat (Makefile.am): Likewise.
54436         * modules/fnmatch (Makefile.am): Likewise.
54437         * modules/fopen-safer (Makefile.am): Likewise.
54438         * modules/fpending (Makefile.am): Likewise.
54439         * modules/fprintftime (Makefile.am): Likewise.
54440         * modules/free (Makefile.am): Likewise.
54441         * modules/fsusage (Makefile.am): Likewise.
54442         * modules/ftruncate (Makefile.am): Likewise.
54443         * modules/fts (Makefile.am): Likewise.
54444         * modules/gc (Makefile.am): Likewise.
54445         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
54446         * modules/getaddrinfo (Makefile.am): Likewise.
54447         * modules/getcwd (Makefile.am): Likewise.
54448         * modules/getdelim (Makefile.am): Likewise.
54449         * modules/getdomainname (Makefile.am): Likewise.
54450         * modules/getgroups (Makefile.am): Likewise.
54451         * modules/gethostname (Makefile.am): Likewise.
54452         * modules/gethrxtime (Makefile.am): Likewise.
54453         * modules/getline (Makefile.am): Likewise.
54454         * modules/getloadavg (Makefile.am): Likewise.
54455         * modules/getlogin_r (Makefile.am): Likewise.
54456         * modules/getopt (Makefile.am): Likewise.
54457         * modules/getpass (Makefile.am): Likewise.
54458         * modules/getpass-gnu (Makefile.am): Likewise.
54459         * modules/getsubopt (Makefile.am): Likewise.
54460         * modules/gettime (Makefile.am): Likewise.
54461         * modules/gettimeofday (Makefile.am): Likewise.
54462         * modules/getugroups (Makefile.am): Likewise.
54463         * modules/getusershell (Makefile.am): Likewise.
54464         * modules/glob (Makefile.am): Likewise.
54465         * modules/group-member (Makefile.am): Likewise.
54466         * modules/hard-locale (Makefile.am): Likewise.
54467         * modules/hash (Makefile.am): Likewise.
54468         * modules/hmac-md5 (Makefile.am): Likewise.
54469         * modules/hmac-sha1 (Makefile.am): Likewise.
54470         * modules/human (Makefile.am): Likewise.
54471         * modules/idcache (Makefile.am): Likewise.
54472         * modules/imaxabs (Makefile.am): Likewise.
54473         * modules/imaxdiv (Makefile.am): Likewise.
54474         * modules/inet_ntop (Makefile.am): Likewise.
54475         * modules/inet_pton (Makefile.am): Likewise.
54476         * modules/inttostr (Makefile.am): Likewise.
54477         * modules/isapipe (Makefile.am): Likewise.
54478         * modules/lchown (Makefile.am): Likewise.
54479         * modules/long-options (Makefile.am): Likewise.
54480         * modules/lstat (Makefile.am): Likewise.
54481         * modules/malloc (Makefile.am): Likewise.
54482         * modules/mathl (Makefile.am): Likewise.
54483         * modules/mbchar (Makefile.am): Likewise.
54484         * modules/md2 (Makefile.am): Likewise.
54485         * modules/md4 (Makefile.am): Likewise.
54486         * modules/md5 (Makefile.am): Likewise.
54487         * modules/memcasecmp (Makefile.am): Likewise.
54488         * modules/memchr (Makefile.am): Likewise.
54489         * modules/memcmp (Makefile.am): Likewise.
54490         * modules/memcoll (Makefile.am): Likewise.
54491         * modules/memcpy (Makefile.am): Likewise.
54492         * modules/memmem (Makefile.am): Likewise.
54493         * modules/memmove (Makefile.am): Likewise.
54494         * modules/mempcpy (Makefile.am): Likewise.
54495         * modules/memrchr (Makefile.am): Likewise.
54496         * modules/memset (Makefile.am): Likewise.
54497         * modules/memxor (Makefile.am): Likewise.
54498         * modules/mkancesdirs (Makefile.am): Likewise.
54499         * modules/mkdir (Makefile.am): Likewise.
54500         * modules/mkdir-p (Makefile.am): Likewise.
54501         * modules/mkdtemp (Makefile.am): Likewise.
54502         * modules/mkstemp (Makefile.am): Likewise.
54503         * modules/mktime (Makefile.am): Likewise.
54504         * modules/modechange (Makefile.am): Likewise.
54505         * modules/mountlist (Makefile.am): Likewise.
54506         * modules/nanosleep (Makefile.am): Likewise.
54507         * modules/openat (Makefile.am): Likewise.
54508         * modules/pagealign_alloc (Makefile.am): Likewise.
54509         * modules/physmem (Makefile.am): Likewise.
54510         * modules/poll (Makefile.am): Likewise.
54511         * modules/posixtm (Makefile.am): Likewise.
54512         * modules/posixver (Makefile.am): Likewise.
54513         * modules/putenv (Makefile.am): Likewise.
54514         * modules/quote (Makefile.am): Likewise.
54515         * modules/quotearg (Makefile.am): Likewise.
54516         * modules/raise (Makefile.am): Likewise.
54517         * modules/read-file (Makefile.am): Likewise.
54518         * modules/readline (Makefile.am): Likewise.
54519         * modules/readlink (Makefile.am): Likewise.
54520         * modules/readtokens (Makefile.am): Likewise.
54521         * modules/readutmp (Makefile.am): Likewise.
54522         * modules/realloc (Makefile.am): Likewise.
54523         * modules/regex (Makefile.am): Likewise.
54524         * modules/rename (Makefile.am): Likewise.
54525         * modules/rename-dest-slash (Makefile.am): Likewise.
54526         * modules/rijndael (Makefile.am): Likewise.
54527         * modules/rmdir (Makefile.am): Likewise.
54528         * modules/rpmatch (Makefile.am): Likewise.
54529         * modules/safe-read (Makefile.am): Likewise.
54530         * modules/safe-write (Makefile.am): Likewise.
54531         * modules/same (Makefile.am): Likewise.
54532         * modules/save-cwd (Makefile.am): Likewise.
54533         * modules/savedir (Makefile.am): Likewise.
54534         * modules/setenv (Makefile.am): Likewise.
54535         * modules/settime (Makefile.am): Likewise.
54536         * modules/sha1 (Makefile.am): Likewise.
54537         * modules/sig2str (Makefile.am): Likewise.
54538         * modules/snprintf (Makefile.am): Likewise.
54539         * modules/stdlib-safer (Makefile.am): Likewise.
54540         * modules/stpcpy (Makefile.am): Likewise.
54541         * modules/stpncpy (Makefile.am): Likewise.
54542         * modules/strcase (Makefile.am): Likewise.
54543         * modules/strcasestr (Makefile.am): Likewise.
54544         * modules/strchrnul (Makefile.am): Likewise.
54545         * modules/strcspn (Makefile.am): Likewise.
54546         * modules/strdup (Makefile.am): Likewise.
54547         * modules/strerror (Makefile.am): Likewise.
54548         * modules/strftime (Makefile.am): Likewise.
54549         * modules/strndup (Makefile.am): Likewise.
54550         * modules/strnlen (Makefile.am): Likewise.
54551         * modules/strpbrk (Makefile.am): Likewise.
54552         * modules/strsep (Makefile.am): Likewise.
54553         * modules/strstr (Makefile.am): Likewise.
54554         * modules/strtod (Makefile.am): Likewise.
54555         * modules/strtoimax (Makefile.am): Likewise.
54556         * modules/strtok_r (Makefile.am): Likewise.
54557         * modules/strtol (Makefile.am): Likewise.
54558         * modules/strtoll (Makefile.am): Likewise.
54559         * modules/strtoul (Makefile.am): Likewise.
54560         * modules/strtoull (Makefile.am): Likewise.
54561         * modules/strtoumax (Makefile.am): Likewise.
54562         * modules/strverscmp (Makefile.am): Likewise.
54563         * modules/time_r (Makefile.am): Likewise.
54564         * modules/timegm (Makefile.am): Likewise.
54565         * modules/tmpfile-safer (Makefile.am): Likewise.
54566         * modules/unistd-safer (Makefile.am): Likewise.
54567         * modules/unlinkdir (Makefile.am): Likewise.
54568         * modules/userspec (Makefile.am): Likewise.
54569         * modules/utime (Makefile.am): Likewise.
54570         * modules/utimecmp (Makefile.am): Likewise.
54571         * modules/utimens (Makefile.am): Likewise.
54572         * modules/vasnprintf (Makefile.am): Likewise.
54573         * modules/vasprintf (Makefile.am): Likewise.
54574         * modules/vsnprintf (Makefile.am): Likewise.
54575         * modules/xalloc (Makefile.am): Likewise.
54576         * modules/xgetcwd (Makefile.am): Likewise.
54577         * modules/xnanosleep (Makefile.am): Likewise.
54578         * modules/xreadlink (Makefile.am): Likewise.
54579         * modules/xstrtod (Makefile.am): Likewise.
54580         * modules/xstrtol (Makefile.am): Likewise.
54581         * modules/xstrtold (Makefile.am): Likewise.
54582         * modules/yesno (Makefile.am): Likewise.
54583
54584 2006-10-12  Jim Meyering  <jim@meyering.net>
54585
54586         * m4/getloadavg.m4: Revert the change below.
54587
54588         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
54589         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
54590         fail with a symlink, which is what coreutils' ./bootstrap now
54591         creates by default.
54592
54593 2006-10-12  Bruno Haible  <bruno@clisp.org>
54594
54595         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
54596         mingw.
54597         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
54598         MSVC and mingw explicitly.
54599
54600 2006-10-11  Simon Josefsson  <jas@extundo.com>
54601             Bruno Haible  <bruno@clisp.org>
54602
54603         Add support for multiple gnulib-tool invocations in the scope of a
54604         single configure.ac file.
54605         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
54606         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
54607         with the same contents as the _LIBADD variable.
54608         (func_emit_initmacro_start, func_emit_initmacro_end,
54609         func_emit_initmacro_done): New functions.
54610         (func_import, func_create_testdir): Invoke them. Allow the identifiers
54611         gl_LIBOBJS and gl_LTLIBOBJS.
54612
54613 2006-10-11  Bruno Haible  <bruno@clisp.org>
54614
54615         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
54616         (func_create_testdir): Don't create po/Makefile.am, don't invoke
54617         autoreconf. Instead, invoke autopoint explicitly but move back the
54618         *.m4 files from gnulib.
54619
54620 2006-10-11  Bruno Haible  <bruno@clisp.org>
54621
54622         * gnulib-tool (func_usage): Make module names after --create-testdir
54623         optional.
54624         (func_create_testdir): If no module was specified, use nearly all
54625         modules.
54626
54627 2006-10-12  Jim Meyering  <jim@meyering.net>
54628
54629         Big performance improvement for fts-based tools that use FTS_NOSTAT.
54630         Avoid spurious inode-mismatch problems on non-POSIX file systems.
54631         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
54632         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
54633         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
54634         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
54635         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
54636         (fts_set_stat_required): New function.
54637         (fts_open): Defer the calls to fts_stat, if possible or requested.
54638         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
54639         into fts_stat itself.
54640         (fts_read): Perform any required (deferred) fts_stat call.
54641         (fts_build): Likewise, for the directory we're about to open and read.
54642         In the readdir loop, carefully decide whether each entry will require
54643         an eventual call to fts_stat, using dirent.d_type info if available.
54644         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
54645         a command line argument into this function.  Update all callers.
54646         Map a return value of FTS_DOT to FTS_D for a command line argument.
54647         * modules/fts (Depends-on): Add d-type.  Alphabetize.
54648         Thanks to Miklos Szeredi for his tenacity and for the initial
54649         bug report about "find" failing on a FUSE-based file system.
54650
54651         * lib/fts.c (fts_open): Use consistent indentation.
54652
54653 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54654
54655         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
54656         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
54657         reported by Jim Meyering.  All uses of cache variables renamed
54658         to match Autoconf's.
54659         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
54660         the other one.
54661
54662         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
54663         Fix misspelling in diagnostic.
54664
54665 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54666
54667         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
54668         defined.  Problem reported by Matthew Woehlke.
54669
54670         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
54671         Add support for Tandem NonStop R series.
54672         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
54673         Use new macro.
54674
54675         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
54676         (has_trailing_slash): Omit size arg; all callers changed.
54677         Omit 'inline', since it doesn't help performance and we'd
54678         need to configure it.
54679         Don't count //, ///, etc. as having a trailing slash.
54680         As a side effect, this removes a C99ism reported by Matthew Woehlke.
54681         (rpl_rename_dest_slash): On failure, use rename's errno rather
54682         than (in some cases) an incorrect or junk errno.
54683         Simplify code by removing need to compute length; this does
54684         cause it to make two passes instead of one over the file name,
54685         but it's worth it.
54686
54687         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
54688         change, since Autoconf's version may no longer be appropriate now
54689         that we are using CVS Autoconf's version.  Add support for Tandem.
54690
54691 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54692             Bruno Haible  <bruno@clisp.org>
54693
54694         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
54695         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
54696         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
54697         gl_AC_TYPE_LONG_LONG.
54698
54699         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
54700         instead of HAVE_LONG_LONG.
54701         * lib/printf-args.c (printf_fetchargs): Likewise.
54702         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
54703         * lib/vasnprintf.c (VASNPRINTF): Likewise.
54704         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
54705         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
54706         gl_AC_TYPE_LONG_LONG.
54707
54708 2006-10-11  Bruno Haible  <bruno@clisp.org>
54709
54710         * m4/longlong.m4: Add comments.
54711         * m4/ulonglong.m4: Likewise.
54712
54713 2006-10-10  Bruno Haible  <bruno@clisp.org>
54714
54715         Make it possible to #define stpcpy, strdup to aliases.
54716         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
54717         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
54718
54719 2006-10-10  Bruno Haible  <bruno@clisp.org>
54720
54721         Make it possible to #define gcd to an alias.
54722         * lib/gcd.c: Include config.h.
54723
54724 2006-10-10  Bruno Haible  <bruno@clisp.org>
54725
54726         Make it possible to #define c_isascii to an alias.
54727         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
54728         defined. Undefine the macros before defining them, to avoid gcc
54729         warnings.
54730         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
54731         define NO_C_CTYPE_MACROS early.
54732
54733 2006-10-10  Bruno Haible  <bruno@clisp.org>
54734
54735         Make it possible to #define set_program_name to an alias.
54736         * lib/progname.c: Don't undefine set_program_name; instead, undefine
54737         ENABLE_RELOCATABLE early.
54738
54739 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54740
54741         Port to Tandem NSK OSS, which has 64-bit signed int but at most
54742         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
54743         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
54744         More generally, don't assume that 64-bit signed int is available
54745         if unsigned int is, and vice versa.
54746         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
54747         unsigned symbols, not on their signed counterparts.
54748         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
54749         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
54750         (UINT64_C, UINTMAX_C):
54751         Likewise.
54752         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
54753         unsigned counterparts.
54754         (Have_long_long, Unsigned): New macros.
54755         (Int): Renamed from INT.
54756         (strtoimax): Use the new macros.
54757         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
54758         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
54759         * modules/inttypes (inttypes.h): Substitute
54760         HAVE_UNSIGNED_LONG_LONG_INT.
54761         * modules/stdint (stdint.h): Likewise.
54762         (Files): Add m4/ulonglong.m4.
54763
54764 2006-10-10  Bruno Haible  <bruno@clisp.org>
54765
54766         Fix a gcc -Wshadow warning.
54767         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
54768         to 'bucket'.
54769         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
54770         gl_linked_indexof_from_to): Likewise.
54771         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
54772         Likewise.
54773         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
54774         Likewise.
54775         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
54776         Reported by Eric Blake.
54777
54778 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
54779
54780         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
54781         for NetBSD.  Problem reported by Bruno Haible.
54782
54783 2006-10-09  Jim Meyering  <jim@meyering.net>
54784
54785         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
54786         Patch from Bruno Haible.
54787
54788 2006-10-09  Jim Meyering  <jim@meyering.net>
54789
54790         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
54791         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
54792         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
54793
54794 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54795
54796         Don't include <config.h> twice; this doesn't work in some cases,
54797         e.g., when config.h has "#define intmax_t long long int" and
54798         we include <config.h>, <inttypes.h>, <config.h> in that order.
54799         Problem reported by Matthew Woehlke in:
54800         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
54801         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
54802         * lib/fts-cycle.c: Don't include config.h.
54803         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
54804         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
54805         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
54806         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
54807         inttypes.h.
54808         * lib/xstrtoumax.c: Likewise.
54809         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
54810         __strtol and the like, so that this module is more like its siblings.
54811         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
54812         Remove; no longer needed now that we assume gnulib inttypes.h.
54813
54814 2006-10-08  Bruno Haible  <bruno@clisp.org>
54815
54816         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
54817         option.
54818
54819 2006-10-07  Jim Meyering  <jim@meyering.net>
54820
54821         * modules/inttypes (inttypes.h): Revert what seems to have been
54822         an inadvertent part of today's change: use "|", not "/" in the
54823         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
54824
54825 2006-10-07  Bruno Haible  <bruno@clisp.org>
54826
54827         * modules/sublist: New file.
54828
54829 2006-10-07  Bruno Haible  <bruno@clisp.org>
54830
54831         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
54832         * modules/argz (argz.h): Likewise.
54833         * modules/arpa_inet (arpa/inet.h): Likewise.
54834         * modules/byteswap (byteswap.h): Likewise.
54835         * modules/configmake (configmake.h): Likewise.
54836         * modules/fcntl (fcntl.h): Likewise.
54837         * modules/fnmatch (fnmatch.h): Likewise.
54838         * modules/getopt (getopt.h): Likewise.
54839         * modules/glob (glob.h): Likewise.
54840         * modules/inttypes (inttypes.h): Likewise.
54841         * modules/netinet_in (netinet/in.h): Likewise.
54842         * modules/poll (poll.h): Likewise.
54843         * modules/stdbool (stdbool.h): Likewise.
54844         * modules/stdint (stdint.h): Likewise.
54845         * modules/sys_select (sys/select.h): Likewise.
54846         * modules/sys_socket (sys/socket.h): Likewise.
54847         * modules/sys_stat (sys/stat.h): Likewise.
54848         * modules/sysexits (sysexits.h): Likewise.
54849         * modules/unistd (unistd.h): Likewise.
54850         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54851         Add a "DO NOT EDIT" comment to the generated file.
54852         (func_import): Likewise for gnulib-comp.m4.
54853
54854 2006-10-07  Bruno Haible  <bruno@clisp.org>
54855
54856         * lib/gl_sublist.h: New file.
54857         * lib/gl_sublist.c: New file.
54858
54859 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54860
54861         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
54862         name (relative to the original working directory) and the file
54863         name component (relative to the temporary working directory).  All
54864         callers changed.
54865         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
54866         * lib/mkdir-p.c (make_dir_parents): Likewise.
54867         * lib/mkdir-p.h (make_dir_parents): Likewise.
54868
54869 2006-10-06  Eric Blake  <ebb9@byu.net>
54870
54871         Define several macros for use by the clean-temp module.
54872         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
54873         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
54874         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
54875
54876         * lib/clean-temp.h (close_stream_temp): New declaration.
54877         * lib/clean-temp.c (includes): Pull in headers according to what
54878         other modules are in use.
54879         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
54880
54881 2006-10-06  Bruno Haible  <bruno@clisp.org>
54882
54883         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
54884         instead of fopen, fwriteerror.
54885
54886 2006-10-06  Bruno Haible  <bruno@clisp.org>
54887
54888         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
54889         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
54890         int.
54891         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
54892         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
54893         Return an error indicator.
54894         Suggested by Eric Blake.
54895
54896 2006-10-06  Bruno Haible  <bruno@clisp.org>
54897
54898         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
54899         Reported by Eric Blake.
54900
54901 2006-10-06  Bruno Haible  <bruno@clisp.org>
54902
54903         * modules/closeout (Description): Mention stderr too.
54904
54905 2006-10-06  Bruno Haible  <bruno@clisp.org>
54906         and Paul Eggert  <eggert@cs.ucla.edu>
54907
54908         * lib/closeout.c (close_stdout): Also close stderr.
54909         * lib/closeout.h: Update comment.
54910
54911 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
54912
54913         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
54914         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
54915         * lib/dirchownmod.c: Include lchown.h.
54916         * lib/lchown.c: Don't include files that lchown.h now includes.
54917         Don't declare chown, since lchown.h now does that.
54918         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
54919         (lchown): Define to rpl_chown if lchown is declared but
54920         does not exist.  Declare using a prototype if lchown is not
54921         declared.  Add a copyright notice.
54922         * lib/mkstemp.h: Include <unistd.h>.
54923         * lib/openat.c: Include lchown.h.
54924
54925         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
54926         we now test for that separately.
54927         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
54928         rather than O_NOFOLLOW, when testing whether it's possible to
54929         avoid a race condition reliably.
54930         * lib/savewd.c (savewd_chdir): Likewise.
54931
54932         Remove macros that are no longer needed now that stdint.h is
54933         reliable.
54934         * lib/fsusage.c (UINTMAX_MAX): Remove.
54935         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
54936         * lib/utimecmp.c (SIZE_MAX): Remove.
54937
54938         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
54939
54940         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
54941         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
54942         O_NOATIME works.
54943
54944 2006-10-05  Bruno Haible  <bruno@clisp.org>
54945
54946         * lib/gl_list.h (gl_sortedlist_search_from_to,
54947         gl_sortedlist_indexof_from_to): New declarations.
54948         (gl_list_implementation): New fields sortedlist_search_from_to,
54949         sortedlist_indexof_from_to.
54950         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
54951         inline functions.
54952         * lib/gl_list.c (gl_sortedlist_search_from_to,
54953         gl_sortedlist_indexof_from_to): New functions.
54954         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
54955         function.
54956         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
54957         (gl_array_sortedlist_search_from_to): New function.
54958         (gl_array_list_implementation): Update.
54959         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
54960         function.
54961         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
54962         (gl_carray_sortedlist_search_from_to): New function.
54963         (gl_carray_list_implementation): Update.
54964         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
54965         gl_linked_sortedlist_indexof_from_to): New functions.
54966         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
54967         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
54968         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
54969         gl_tree_sortedlist_indexof_from_to): New functions.
54970         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
54971         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
54972         Update.
54973         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
54974         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
54975         Update.
54976
54977 2006-10-05  Bruno Haible  <bruno@clisp.org>
54978
54979         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
54980         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
54981         (struct gl_list_implementation): Add fields search_from_to,
54982         indexof_from_to. Remove fields search, indexof.
54983         (gl_list_search): Use the search_from_to method.
54984         (gl_list_search_from, gl_list_search_from_to): New functions.
54985         (gl_list_indexof): Use the indexof_from_to method.
54986         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
54987         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
54988         (gl_list_search_from, gl_list_search_from_to): New functions.
54989         (gl_list_indexof): Use the indexof_from_to method.
54990         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
54991         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
54992         gl_array_indexof. Add start_index, end_index arguments.
54993         (gl_array_search_from_to): Renamed from gl_array_search. Add
54994         start_index, end_index arguments.
54995         (gl_array_remove, gl_array_list_implementation): Update.
54996         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
54997         gl_carray_indexof. Add start_index, end_index arguments.
54998         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
54999         start_index, end_index arguments.
55000         (gl_carray_remove, gl_carray_list_implementation): Update.
55001         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
55002         gl_linked_search. Add start_index, end_index arguments.
55003         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
55004         start_index, end_index arguments.
55005         (gl_linked_remove): Update.
55006         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
55007         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
55008         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
55009         field to 'size_t'.
55010         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
55011         gl_tree_search. Add start_index, end_index arguments.
55012         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
55013         start_index, end_index arguments.
55014         (gl_tree_remove): Update.
55015         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
55016         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
55017         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
55018         function.
55019         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
55020         gl_tree_search. Add start_index, end_index arguments.
55021         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
55022         start_index, end_index arguments.
55023         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
55024         Update.
55025         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
55026
55027 2006-10-05  Bruno Haible  <bruno@clisp.org>
55028
55029         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
55030
55031         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
55032         fwriteerror_temp): New declarations.
55033         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
55034         (descriptors): New variable.
55035         (cleanup): First, close the descriptors.
55036         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
55037         fclose_temp, fwriteerror_temp): New functions.
55038
55039 2006-10-04  Jim Meyering  <jim@meyering.net>
55040
55041         * lib/fts.c (fts_open): Tiny comment change.
55042
55043 2006-10-04  Bruno Haible  <bruno@clisp.org>
55044
55045         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
55046         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
55047         gl_LOCK_BODY.
55048         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
55049         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
55050         gl_LOCK_EARLY_BODY.
55051         (gl_LOCK): Require gl_LOCK_BODY.
55052
55053 2006-10-04  Bruno Haible  <bruno@clisp.org>
55054
55055         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
55056         (gl_oset_search_atleast): New declaration.
55057         (struct gl_oset_implementation): Add field 'search_atleast'.
55058         (gl_oset_search_atleast): New inline function.
55059         * lib/gl_oset.c (gl_oset_search_atleast): New function.
55060         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
55061         (gl_array_oset_implementation): Update.
55062         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
55063         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
55064         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
55065
55066 2006-10-04  Bruno Haible  <bruno@clisp.org>
55067
55068         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
55069
55070 2006-10-03  Bruno Haible  <bruno@clisp.org>
55071
55072         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
55073         from gl_avltreehash_list_implementation.
55074
55075 2006-10-03  Bruno Haible  <bruno@clisp.org>
55076
55077         * lib/gl_oset.c (gl_oset_add): Fix return type.
55078
55079 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
55080
55081         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
55082
55083 2006-10-02  Eric Blake  <ebb9@byu.net>
55084
55085         * modules/strnlen (Depends-on): Add extensions.
55086
55087 2006-10-02  Eric Blake  <ebb9@byu.net>
55088
55089         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
55090         definition in 2.60+.
55091
55092 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
55093
55094         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
55095         checks.
55096
55097 2006-10-02  Bruno Haible  <bruno@clisp.org>
55098
55099         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
55100         to the AUTOMAKE_OPTIONS.
55101         Reported by Jim Meyering.
55102
55103 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
55104
55105         Work around bug in Solaris 10 /proc file system:
55106         /proc/self/fd/NNN/.. isn't the parent directory of
55107         the directory whose file descriptor is NNN.  This needs to
55108         be worked around at run time, not compile time, since a
55109         program might be built on Solaris 8, where things work, and
55110         run on Solaris 10.
55111         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
55112         to use the following interface instead:
55113         (OPENAT_BUFFER_SIZE): New macro.
55114         (openat_proc_name): New function.
55115         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
55116         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
55117         Likewise.
55118         * lib/openat-proc.c: New file.
55119         * modules/openat (Files): Add lib/openat-proc.c.
55120         (Depends-on): Add same-inode, stdbool.
55121         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
55122
55123 2006-09-29  Bruno Haible  <bruno@clisp.org>
55124
55125         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
55126         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
55127         argument. Set stdout_closed before testing for ferror, not after.
55128         (fwriteerror, fwriteerror_no_ebadf): New functions.
55129
55130 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55131
55132         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
55133
55134 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
55135
55136         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
55137         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
55138
55139 2006-09-28  Jim Meyering  <jim@meyering.net>
55140
55141         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
55142         Include <unistd.h>.
55143
55144 2006-09-28  Bruno Haible  <bruno@clisp.org>
55145
55146         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
55147         * modules/linkedhash-list (Depends-on): Likewise.
55148         * modules/rbtreehash-list (Depends-on): Likewise.
55149
55150 2006-09-28  Bruno Haible  <bruno@clisp.org>
55151
55152         * lib/strndup.h: Simplify the redefinition of strndup.
55153         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
55154         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
55155
55156 2006-09-28  Bruno Haible  <bruno@clisp.org>
55157
55158         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
55159         * lib/gl_linkedhash_list.c: Likewise.
55160         * lib/gl_rbtreehash_list.c: Likewise.
55161
55162 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
55163
55164         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
55165         getaddrinfo.
55166
55167         * lib/__fpending.h: Don't include <stdio_ext.h> unless
55168         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
55169         it causes <stdio_ext.h> to cause a compile-time error.
55170         Problem reported by Nelson H. F. Beebe.
55171         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
55172         of HAVE_DECL___PENDING.
55173
55174         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
55175         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
55176         declaration.
55177
55178 2006-09-27  Jim Meyering  <jim@meyering.net>
55179
55180         This file could end up with a definition for a function
55181         named __strndup, rather than rpl_strndup on a system with
55182         incomplete weak_alias support.
55183         * lib/strndup.c (strndup): Rename from __strndup.
55184         Remove #defines that used to map __strndup to strndup.
55185         Don't use K&R prototypes.
55186         Remove LIBC-related code, since this file is not sync'd with glibc.
55187         * lib/strndup.h: Revamp, accordingly.
55188         * m4/strndup.m4: Modernize.
55189
55190 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
55191
55192         * modules/savewd (Depends-on): Add 'raise'.
55193         * lib/savewd.c: Include <signal.h>, for 'raise'.
55194
55195 2006-09-26  Jim Meyering  <jim@meyering.net>
55196
55197         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
55198         when we detect Darwin 8.7.0's acl_get_file bug.
55199         Rearrange to perform the new (below) run-test while $LIBS
55200         contains any acl-related library.  Set USE_ACL at the end.
55201         (gl_ACL_GET_FILE): New function.
55202
55203 2006-09-26  Eric Blake  <ebb9@byu.net>
55204
55205         * lib/verror.c: Include <config.h> unconditionally.
55206
55207 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
55208
55209         * modules/clock-time (Maintainer): Add self.
55210         * modules/getlogin_r (Depends-on): Add extensions.
55211
55212 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55213
55214         * modules/clock-time: New module.
55215         * modules/nanosleep (Depends-on): Add clock-time.
55216         * modules/gethrxtime (Depends-on): Likewise.
55217         * modules/gettime (Depends-on): Likewise.
55218         * modules/settime (Depends-on): Likewise.
55219
55220         * modules/fts-lgpl: Depend on openat.
55221         * modules/mkancesdirs: Depend on savewd.
55222         * modules/mkdir-p: Likewise.
55223
55224 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55225
55226         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
55227
55228         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
55229         `gl_have_arbitrary_file_name_length_limit' to
55230         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
55231         actually works between configure runs.
55232
55233 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55234             Bruno Haible  <bruno@clisp.org>
55235
55236         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
55237
55238 2006-09-25  Jim Meyering  <jim@meyering.net>
55239
55240         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
55241         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
55242
55243 2006-09-25  Eric Blake  <ebb9@byu.net>
55244
55245         * gnulib-tool (func_import, func_create_testdir): Fix typos in
55246         exec's in 2006-09-18 patch when shuffling fds.
55247
55248 2006-09-25  Bruno Haible  <bruno@clisp.org>
55249
55250         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
55251         Reported by Jim Meyering.
55252
55253 2006-09-24  Jim Meyering  <jim@meyering.net>
55254
55255         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
55256         compare a pointer against a literal "0".  That caused failures with
55257         at least HP-UX's hpcc.
55258
55259 2006-09-22  Simon Josefsson  <jas@extundo.com>
55260
55261         * modules/gc-sha1:
55262         * modules/gc-md4:
55263         * modules/gc-hmac-sha1:
55264         * modules/gc-hmac-md5:
55265         * modules/gc-des:
55266         * modules/gc-arcfour: Distribute more files.
55267
55268 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55269
55270         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
55271         (gl_linked_iterator_from_to): Initialize struct completely.
55272         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
55273         (gl_tree_iterator_from_to): Likewise
55274         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
55275         * lib/gl_array_list.c [lint] (gl_array_iterator)
55276         (gl_array_iterator_from_to): Likewise.
55277         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
55278         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
55279         (gl_carray_iterator_from_to): Likewise.
55280
55281         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
55282         * lib/md4.c (md4_process_block): Remove unused variable.
55283         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
55284         parentheses for clarity.
55285
55286 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55287
55288         * modules/bison-i18n (Depends-on): Add gettext.
55289
55290 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55291
55292         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
55293         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
55294         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
55295         also add missing comma that caused broken test.
55296         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
55297         stdlib.h, for `abort'.
55298         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
55299         variables.
55300         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
55301         include unistd.h if present, for `rmdir'.
55302         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
55303         variables.
55304         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
55305         in the process include standard headers for prototypes.
55306         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
55307         gets declared on GNU/Linux.
55308         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
55309         unistd.h, for `rmdir'.
55310         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
55311
55312         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
55313         always true.
55314         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
55315
55316         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
55317
55318 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55319
55320         * gnulib-tool (func_version): Create output all at once.  This
55321         may help avoid triggering unnecessary SIGPIPEs, and at any
55322         rate it doesn't hurt.
55323
55324 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55325             Bruno Haible  <bruno@clisp.org>
55326
55327         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
55328         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
55329         * m4/signed.m4 (bh_C_SIGNED): Likewise.
55330
55331         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
55332         (gl_FUNC_VASPRINTF): Invoke it.
55333
55334 2006-09-22  Bruno Haible  <bruno@clisp.org>
55335
55336         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
55337         getloadavg.c as first argument.
55338
55339 2006-09-22  Bruno Haible  <bruno@clisp.org>
55340
55341         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
55342         at the beginning of the gl_INIT macro.
55343         * modules/getloadavg (configure.ac): Pass $gl_source_base to
55344         gl_GETLOADAVG.
55345
55346 2006-09-22  Bruno Haible  <bruno@clisp.org>
55347
55348         * gnulib-tool (func_create_megatestdir): Don't include the config-h
55349         module.
55350         Suggested by Ralf Wildenhues.
55351
55352 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55353
55354         Import this patch from libc:
55355
55356         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
55357
55358         * lib/regex_internal.c (re_string_reconstruct): Handle
55359         offset < pstr->valid_raw_len && pstr->offsets_needed case.
55360         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
55361         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
55362         re_string_context_at.
55363
55364         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
55365         now requires it.
55366         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
55367         gl_REGEX now does it for us.
55368         (gl_REGEX): Add test taken from
55369         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
55370
55371         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
55372         Check that large offsets work.  Modernize Autoconf usages.
55373         Prefer "yes" to mean a good thing rather than a bad.
55374         Don't put "#define mkstemp" in config.h, as this might interfere
55375         with standard system headers that "#define mkstemp mkstemp64".
55376
55377         * modules/mkstemp (Depends-on): Add extensions, so that
55378         mkstemp is visible on some platforms.
55379         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
55380         (Include): Change to "mkstemp.h" from <stdlib.h>.
55381         (Files): Add mkstemp.h.
55382
55383         * lib/mkstemp.h: New file, since some standard headers
55384         #define mkstemp.
55385         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
55386         Include "mkstemp.h".
55387         Make the _LIBC code resemble glibc original more,
55388         e.g., use K&R style.
55389         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
55390         (mkstemp): Remove, since mkstemp.h does this for us.
55391         * lib/stdlib--.h: Include mkstemp.h.
55392
55393         Import this patch from libc:
55394
55395         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
55396
55397         * lib/tempname.c (__gen_tempname): Change attempts_min
55398         into a macro.  Use preprocessor to decide how to initialize
55399         attempts [Coverity CID 67].
55400
55401 2006-09-20  Bruno Haible  <bruno@clisp.org>
55402
55403         * lib/mkdtemp.c: Import from libc.
55404         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
55405                 * sysdeps/posix/tempname.c (__gen_tempname): Change
55406                 attempts_min into a macro.  Use preprocessor to decide how to
55407                 initialize attempts [Coverity CID 67].
55408         2001-11-27  Paul Eggert  <eggert@twinsun.com>
55409                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
55410                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
55411
55412 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55413
55414         * gnulib-tool (func_exit): New function, to allow to pass the
55415         exit status portably through the trap.  Use everywhere.
55416         (--help, --version): Signal a write error.
55417         (trap): catch SIGPIPE, for write errors.
55418         Exit at the end of the trap, with the correct exit status.
55419
55420 2006-09-19  Karl Berry  <karl@gnu.org>
55421
55422         * doc/gnulib.texi: note about the license texinfo files.
55423
55424 2006-09-19  Eric Blake  <ebb9@byu.net>
55425
55426         * gnulib-tool: Avoid space-tab.
55427
55428 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
55429
55430         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
55431         that prevented coreutils 6.1 from building.  Problem reported
55432         by Petter Reinholdtsen.
55433
55434 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
55435
55436         * gnulib-tool (avoidlist): Fix typo that broke options like
55437         --avoid=lock that are used by coreutils bootstrap.
55438
55439 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
55440
55441         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
55442         more systematically.
55443
55444 2006-09-18  Jim Meyering  <jim@meyering.net>
55445
55446         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
55447
55448 2006-09-18  Bruno Haible  <bruno@clisp.org>
55449
55450         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
55451
55452 2006-09-18  Bruno Haible  <bruno@clisp.org>
55453
55454         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
55455         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
55456         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
55457         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
55458         * m4/gettext.m4: Require autoconf >= 2.52.
55459         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
55460         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
55461         of gl_cv_header_inttypes_h.
55462
55463 2006-09-18  Bruno Haible  <bruno@clisp.org>
55464
55465         * lib/javaversion.c: Include configmake.h.
55466
55467 2006-09-18  Bruno Haible  <bruno@clisp.org>
55468
55469         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
55470         avoid that the while loops be executed in a subshell.
55471
55472 2006-09-18  Bruno Haible  <bruno@clisp.org>
55473
55474         * MODULES.html.sh (func_module): Break long lines.
55475         Suggested by Bruce Korb <bkorb@gnu.org>.
55476
55477 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55478
55479         Speed up by a factor of 1.12.
55480         * gnulib-tool (nl): New variable.
55481         (func_import): Rewrite include directive extraction to only read each
55482         directive once.
55483
55484 2006-09-17  Bruno Haible  <bruno@clisp.org>
55485
55486         * modules/javaversion (Makefile.am): Remove DEFS setting.
55487         (Depends-on): Add configmake, for PKGDATADIR definition.
55488
55489 2006-09-17  Bruno Haible  <bruno@clisp.org>
55490
55491         * gnulib-tool (func_create_testdir): Rewrite all files at once.
55492
55493 2006-09-17  Bruno Haible  <bruno@clisp.org>
55494
55495         * gnulib-tool (func_append): New function, stolen from libtool.m4.
55496         (func_modules_transitive_closure, func_modules_add_dummy,
55497         func_modules_to_filelist, func_import, func_create_testdir,
55498         func_create_megatestdir, ...): Use it wherever possible.
55499         Suggested by Ralf Wildenhues.
55500
55501 2006-09-16  Karl Berry  <karl@gnu.org>
55502
55503         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
55504         to avoid sectioning errors.
55505         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
55506         [ifinfo]: blank line after @center-ed titles.
55507         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
55508         Spell FSF address consistently with others.
55509         (These changes approved by rms.)
55510
55511 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55512
55513         Speed up by a factor of 1.61.
55514         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
55515         already checked module names again.
55516
55517 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55518
55519         Speed up by a factor of 1.13.
55520         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
55521         for new_files, and the input to func_add_or_update.
55522
55523 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55524
55525         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
55526         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
55527
55528 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55529
55530         * modules/mkancesdirs (Depends-on): Add fcntl.
55531         * modules/savewd: New file.
55532         * MODULES.html.sh (File system functions): Add savewd.
55533
55534         * modules/configmake (Makefile.am): Add support for the
55535         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
55536
55537 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55538
55539         * m4/savewd.m4: New file.
55540
55541 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55542
55543         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
55544         (dirchownmod): New arg FD.  All callers changed.
55545         Use FD rather than opening the directory ourself, as opening is
55546         now the caller's responsibility.
55547         * lib/dirchownmod.h: Likewise.
55548         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
55549         hosts that require <sys/types.h> before <sys/stat.h>.  Include
55550         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
55551         (test_dir): Remove.
55552         (mkancesdirs): Return length of prefix of FILE that has already
55553         been made, or -2 if there is a child doing the work.  Redo
55554         algorithm so that it is O(N) rather than O(N**2).  Optimize away
55555         ".", and treat ".." specially since it might stray back into
55556         already-created areas.  Use a subprocess if necessary.  New arg
55557         WD; all users changed.  MAKE_DIR function should now return 1
55558         if it creates a directory that is not readable.  Return -2 if
55559         a child process is spun off.
55560         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
55561         Adjust signature to match code.
55562         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
55563         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
55564         all users changed.
55565         * lib/savewd.c, lib/savewd.h: New files.
55566
55567 2006-09-15  Jim Meyering  <jim@meyering.net>
55568
55569         * modules/rename-dest-slash: New module.
55570         * MODULES.html.sh (posix_compat): Add it here.
55571
55572         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
55573
55574 2006-09-15  Jim Meyering  <jim@meyering.net>
55575
55576         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
55577         file.
55578
55579         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
55580
55581 2006-09-15  Jim Meyering  <jim@meyering.net>
55582
55583         * lib/rename-dest-slash.c (has_trailing_slash): Use
55584         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
55585         (rpl_rename_dest_slash): Perform the cheaper trailing slash
55586         test before testing whether SRC is a directory.
55587         Suggestions from Bruno Haible.
55588
55589         Avoid a warning about an unused variable.
55590         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
55591         into the #ifdef block where it's used.
55592
55593         * lib/rename-dest-slash.c: New file.
55594
55595 2006-09-14  Bruno Haible  <bruno@clisp.org>
55596
55597         * lib/allocsa.c: Include <config.h> unconditionally.
55598         * lib/asnprintf.c: Likewise.
55599         * lib/asprintf.c: Likewise.
55600         * lib/c-strcasecmp.c: Likewise.
55601         * lib/c-strcasestr.c: Likewise.
55602         * lib/c-strncasecmp.c: Likewise.
55603         * lib/c-strstr.c: Likewise.
55604         * lib/classpath.c: Likewise.
55605         * lib/clean-temp.c: Likewise.
55606         * lib/concatpath.c: Likewise.
55607         * lib/copy-file.c: Likewise.
55608         * lib/csharpcomp.c: Likewise.
55609         * lib/csharpexec.c: Likewise.
55610         * lib/execute.c: Likewise.
55611         * lib/fatal-signal.c: Likewise.
55612         * lib/findprog.c: Likewise.
55613         * lib/fwriteerror.c: Likewise.
55614         * lib/gl_array_list.c: Likewise.
55615         * lib/gl_array_oset.c: Likewise.
55616         * lib/gl_avltree_list.c: Likewise.
55617         * lib/gl_avltree_oset.c: Likewise.
55618         * lib/gl_avltreehash_list.c: Likewise.
55619         * lib/gl_carray_list.c: Likewise.
55620         * lib/gl_linked_list.c: Likewise.
55621         * lib/gl_linkedhash_list.c: Likewise.
55622         * lib/gl_list.c: Likewise.
55623         * lib/gl_oset.c: Likewise.
55624         * lib/gl_rbtree_list.c: Likewise.
55625         * lib/gl_rbtree_oset.c: Likewise.
55626         * lib/gl_rbtreehash_list.c: Likewise.
55627         * lib/imaxabs.c: Likewise.
55628         * lib/imaxdiv.c: Likewise.
55629         * lib/javacomp.c: Likewise.
55630         * lib/javaexec.c: Likewise.
55631         * lib/javaversion.c: Likewise.
55632         * lib/linebreak.c: Likewise.
55633         * lib/localcharset.c: Likewise.
55634         * lib/lock.c: Likewise.
55635         * lib/mbchar.c: Likewise.
55636         * lib/mbswidth.c: Likewise.
55637         * lib/mkdtemp.c: Likewise.
55638         * lib/pipe.c: Likewise.
55639         * lib/printf-args.c: Likewise.
55640         * lib/printf-parse.c: Likewise.
55641         * lib/progname.c: Likewise.
55642         * lib/progreloc.c: Likewise.
55643         * lib/readlink.c: Likewise.
55644         * lib/sh-quote.c: Likewise.
55645         * lib/stpcpy.c: Likewise.
55646         * lib/stpncpy.c: Likewise.
55647         * lib/strcasecmp.c: Likewise.
55648         * lib/strcasestr.c: Likewise.
55649         * lib/strcspn.c: Likewise.
55650         * lib/striconv.c: Likewise.
55651         * lib/strncasecmp.c: Likewise.
55652         * lib/strnlen1.c: Likewise.
55653         * lib/strstr.c: Likewise.
55654         * lib/strtok_r.c: Likewise.
55655         * lib/tls.c: Likewise.
55656         * lib/tmpdir.c: Likewise.
55657         * lib/unicodeio.c: Likewise.
55658         * lib/unsetenv.c: Likewise.
55659         * lib/vasnprintf.c: Likewise.
55660         * lib/vasprintf.c: Likewise.
55661         * lib/wait-process.c: Likewise.
55662         * lib/xallocsa.c: Likewise.
55663         * lib/xsetenv.c: Likewise.
55664         * lib/xstriconv.c: Likewise.
55665
55666 2006-09-13  Simon Josefsson  <jas@extundo.com>
55667
55668         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
55669         that internally, suggested by Ralf Wildenhues
55670         <Ralf.Wildenhues@gmx.de>.
55671
55672 2006-09-13  Simon Josefsson  <jas@extundo.com>
55673
55674         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
55675         @LIBOBJS@.
55676         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55677
55678 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55679
55680         * lib/_fpending.c: Include <config.h> unconditionally, since we no
55681         longer worry about uses that don't define HAVE_CONFIG_H.
55682         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
55683         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
55684         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
55685         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
55686         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
55687         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
55688         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
55689         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
55690         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
55691         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
55692         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
55693         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
55694         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
55695         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
55696         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
55697         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
55698         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
55699         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
55700         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
55701         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
55702         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
55703         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
55704         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
55705         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
55706         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
55707         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
55708         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
55709         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
55710         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
55711         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
55712         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
55713         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
55714         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
55715         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
55716         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
55717         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
55718         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
55719         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
55720         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
55721         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
55722         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
55723         Likewise.
55724
55725 2006-09-13  Eric Blake  <ebb9@byu.net>
55726
55727         * lib/getopt.c: Fix typo in last commit.
55728
55729 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55730
55731         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
55732         dgettext.
55733
55734 2006-09-12  Jim Meyering  <jim@meyering.net>
55735
55736         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
55737         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
55738         Reported by Nelson H. F. Beebe.
55739
55740 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55741
55742         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
55743         program_invocation_name and program_invocation_short_name are
55744         initialized.
55745         * lib/argp-namefrob.h: Move declarations of program_invocation_name
55746         and program_invocation_short_name to argp.h, so they are visible
55747         to user programs.
55748         * lib/argp.h: Likewise
55749
55750 2006-09-10  Bruno Haible  <bruno@clisp.org>
55751
55752         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
55753         m4/inttypes_h.m4, m4/uintmax_t.m4.
55754
55755 2006-09-10  Bruno Haible  <bruno@clisp.org>
55756
55757         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
55758         gl_AC_TYPE_UINTMAX_T.
55759
55760 2006-09-10  Bruno Haible  <bruno@clisp.org>
55761
55762         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
55763
55764 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55765
55766         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
55767         convention.  Text proposed by Bruno Haible.
55768         (struct argp_option): Document the use of N_() wrappers.
55769
55770         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
55771         '\v', and translate the two parts separately, instead of feeding
55772         the whole string to gettext.  This allows to exclude
55773         '\v' from the strings visible to the translator by writing doc
55774         strings as N_("..") "\v" N_("..").
55775
55776 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
55777
55778         * config/srclist.txt: Undo latest change; the bug was fixed.
55779
55780 2006-09-09  Bruno Haible  <bruno@clisp.org>
55781
55782         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
55783         assignments if building a library without libtool.
55784         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
55785         in func_emit_lib_Makefile_am.
55786         (func_import): When building a static library libfoo.a, arrange to
55787         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
55788         (func_create_testdir): Likewise.
55789         * modules/gc (configure.ac, Makefile.am): If building statically,
55790         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
55791         * modules/iconvme (configure.ac, Makefile.am): Likewise.
55792         * modules/striconv (configure.ac, Makefile.am): Likewise.
55793         Based on a suggestion by Ralf Wildenhues.
55794
55795 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55796
55797         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
55798         Check for unistd.h too, since Autoconf doesn't assume POSIX.
55799         Also:
55800
55801         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55802         Add year_2050_test to catch glibc bug 2821
55803         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
55804
55805         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55806         Prefer #ifdef to #if.
55807
55808         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
55809         Return from 'main' instead of calling 'exit'.
55810
55811 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55812
55813         * lib/mktime.c (guess_time_tm): Fix bug where mktime
55814         returned the maximum time_t value rather than (time_t) -1.
55815         Problem originally reported by William Bardwell
55816         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
55817
55818         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
55819         Moved to here ...
55820         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
55821         ... from here.
55822
55823 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55824
55825         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
55826         2821 is fixed.
55827
55828 2006-09-08  Jim Meyering  <jim@meyering.net>
55829
55830         Don't make generated files read-only.  That would bother too many
55831         people.  However, do retain the ability to work when targets are
55832         read-only: remove the destination and temporary files before writing
55833         them (when generated via sed or echo), or by using the -f option for
55834         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
55835         * modules/alloca-opt, modules/argz, modules/arpa_inet:
55836         * modules/byteswap, modules/configmake, modules/fcntl:
55837         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
55838         * modules/localcharset, modules/netinet_in, modules/poll:
55839         * modules/stdbool, modules/stdint, modules/sys_select:
55840         * modules/sys_socket, modules/sys_stat, modules/sysexits:
55841
55842 2006-09-08  Jim Meyering  <jim@meyering.net>
55843
55844         Avoid new build failure on FreeBSD 6.0.
55845         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
55846         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
55847         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
55848
55849 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55850
55851         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
55852
55853 2006-09-07  Jim Meyering  <jim@meyering.net>
55854
55855         Fix global typo in last change: use chmod u-w, not chmod u-x.
55856         Spotted by Paul Eggert and Bruce Korb.
55857         * modules/alloca-opt, modules/argz, modules/arpa_inet:
55858         * modules/byteswap, modules/configmake, modules/fcntl:
55859         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
55860         * modules/localcharset, modules/netinet_in, modules/poll:
55861         * modules/stdbool, modules/stdint, modules/sys_select:
55862         * modules/sys_socket, modules/sys_stat, modules/sysexits:
55863
55864 2006-09-06  Jim Meyering  <jim@meyering.net>
55865
55866         Make generated files be read-only.
55867         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
55868         Ensure that each generated file is now read-only.
55869         * modules/argz: Likewise.
55870         * modules/arpa_inet: Likewise.
55871         * modules/byteswap: Likewise.
55872         * modules/configmake: Likewise.
55873         * modules/fcntl: Likewise.
55874         * modules/fnmatch: Likewise.
55875         * modules/getopt: Likewise.
55876         * modules/glob: Likewise.
55877         * modules/inttypes: Likewise.
55878         * modules/netinet_in: Likewise.
55879         * modules/poll: Likewise.
55880         * modules/stdbool: Likewise.
55881         * modules/stdint: Likewise.
55882         * modules/sys_select: Likewise.
55883         * modules/sys_socket: Likewise.
55884         * modules/sys_stat: Likewise.
55885         * modules/sysexits: Likewise.
55886         * modules/localcharset: Same as above, but continue using temporary
55887         file named "t-$@" (why different?) rather than the "$@-t" used
55888         everywhere else.
55889
55890         * modules/sysexits (Makefile.am): Replace literal occurrences
55891         of "sysexit.h" more readable, and more consistent, "$@".
55892
55893 2006-09-06  Bruno Haible  <bruno@clisp.org>
55894
55895         * modules/striconv: New file.
55896         * modules/xstriconv: New file.
55897         * MODULES.html.sh (Internationalization functions): Add striconv,
55898         xstriconv.
55899
55900 2006-09-06  Bruno Haible  <bruno@clisp.org>
55901
55902         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
55903         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
55904         not using libtool correctly.
55905
55906 2006-09-06  Bruno Haible  <bruno@clisp.org>
55907
55908         * lib/striconv.h: New file.
55909         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
55910         iconvstring.c.
55911         * lib/xstriconv.h: New file.
55912         * lib/xstriconv.c: New file.
55913
55914 2006-09-06  Bruno Haible  <bruno@clisp.org>
55915
55916         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55917         lib_..._LDFLAGS.
55918
55919 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55920
55921         * lib/argz_.h: Sync from Libtool.
55922
55923         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
55924                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
55925
55926         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
55927
55928 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
55929
55930         * modules/trim: New file.
55931
55932 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
55933
55934         * lib/trim.h: New file.
55935         * lib/trim.c: New file.
55936
55937 2006-09-05  Bruno Haible  <bruno@clisp.org>
55938
55939         * MODULES.html.sh (String handling): Add trim.
55940
55941 2006-09-04  Karl Berry  <karl@gnu.org>
55942
55943         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
55944         until next release.
55945
55946 2006-09-03  Bruno Haible  <bruno@clisp.org>
55947
55948         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
55949         correctly.
55950
55951 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55952
55953         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
55954         not gl_GETLOADAVG.  Omit unneeded semicolons.
55955         Problems reported by Ralf Wildenhues in
55956         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
55957         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
55958         at the end, which is the usual gnulib style.
55959
55960         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
55961         of doing all the work ourselves.
55962         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
55963         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
55964
55965 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55966
55967         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
55968         Problem reported by Ralf Wildenhues in
55969         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
55970
55971         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
55972         HAVE_STRUCT_STATFS_F_FSTYPENAME.
55973
55974 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55975
55976         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
55977         yesterday's patch by changing test -n to test -z.
55978
55979 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55980
55981         * modules/getloadavg (Files): Add m4/getloadavg.m4.
55982         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
55983         the former is now obsolescent.
55984
55985         * modules/chdir-long (Depends-on): Add fcntl.
55986
55987 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55988
55989         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
55990         obsolescent, and programs should use gnulib instead.
55991         * m4/getloadavg.m4: New file, with contents taken from Autoconf
55992         but with prefixes changed.
55993
55994 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55995
55996         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
55997         or stdbool.h, because they might not exist while configuring.
55998
55999         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
56000         Don't include unistd.h or limits.h; not needed, since chdir-long.h
56001         does that for us.
56002         (O_DIRECTORY): Remove.
56003
56004 2006-08-31  Eric Blake  <ebb9@byu.net>
56005
56006         * gnulib-tool: Don't let emacs change spaces to TAB.
56007
56008 2006-08-31  Bruno Haible  <bruno@clisp.org>
56009
56010         * gnulib-tool: When calling func_import more than once, do it in a
56011         subshell.
56012         Reported by Eric Blake <ebb9@byu.net>.
56013
56014 2006-08-31  Bruno Haible  <bruno@clisp.org>
56015
56016         * gnulib-tool (nl): Remove variable.
56017         (sed_transform_lib_file): Use more robust test for config-h module.
56018         (func_import): Fix typo in 2006-08-25 patch.
56019
56020 2006-08-31  Bruno Haible  <bruno@clisp.org>
56021
56022         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
56023         specified, augment Makefile.am variables instead of assigning them.
56024
56025 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56026
56027         Work around a bug in both the Linux and SunOS 64-bit kernels:
56028         nanosleep mishandles sleeps for longer than 2**31 seconds.
56029         Problem reported by Frank v Waveren in
56030         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
56031         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
56032         Check for nanosleep bug.
56033         (LIB_NANOSLEEP): Append clock_gettime library if needed.
56034
56035 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56036
56037         Work around a bug in both the Linux and SunOS 64-bit kernels:
56038         nanosleep mishandles sleeps for longer than 2**31 seconds.
56039         Problem reported by Frank v Waveren in
56040         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
56041         * lib/nanosleep.c (BILLION): New constant.
56042         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
56043         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
56044         implementation.
56045
56046 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56047
56048         * modules/nanosleep (Depends-on): Add gettime.
56049
56050 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56051         and Simon Josefsson  <jas@extundo.com>
56052         and Oskar Liljeblad  <oskar@osk.mine.nu>
56053
56054         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
56055         * gnulib-tool (func_import): New license type 'unmodifiable license
56056         text'.
56057         * modules/fdl: Use it.  Longer description.
56058         * module/gpl, module/lgpl: New files.
56059
56060 2006-08-30  Jim Meyering  <jim@meyering.net>
56061
56062         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
56063         shadowing the parameter.
56064
56065 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56066
56067         Sync from Libtool:
56068
56069         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56070
56071         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
56072         sharing with gnulib.  Report by Eric Blake.
56073
56074 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56075
56076         * modules/isapipe: New file.
56077         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
56078
56079 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56080
56081         * modules/configmake (Makefile.am): Add a comment, and omit
56082         the CONFIGMAKE_ prefix from generated macro names.  Suggested
56083         by Bruno Haible.
56084
56085 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56086
56087         * m4/isapipe.m4: New file.
56088
56089 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56090
56091         * lib/isapipe.c, lib/isapipe.h: New files.
56092
56093 2006-08-29  Jim Meyering  <jim@meyering.net>
56094
56095         * modules/configmake (Makefile.am): Make configmake.h depend on
56096         Makefile.  Otherwise, a stale configmake.h could hang around.
56097
56098 2006-08-29  Eric Blake  <ebb9@byu.net>
56099
56100         * lib/error.c (error_at_line, print_errno_message): Match libc, after
56101         resolution of upstream bug 3044.
56102
56103 2006-08-29  Bruno Haible  <bruno@clisp.org>
56104
56105         * modules/localcharset (Depends-on): Add configmake.
56106         (Makefile.am): Remove setting of LIBDIR through DEFS.
56107
56108 2006-08-29  Bruno Haible  <bruno@clisp.org>
56109
56110         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
56111         defined.
56112
56113 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56114
56115         * modules/fcntl: New file.
56116         * modules/chdir-safer (Depends-on): Add fcntl.
56117         * modules/fts: Likewise.
56118         * modules/mkdir-p: Likewise.
56119
56120         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
56121         This undoes the most recent change, since we're now addressing the
56122         problem in a different way.
56123
56124         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
56125         into output, since the output might be called Makefile.am even
56126         if $makefile_name is something different.
56127         (func_import): Use $makefile_am rather than
56128         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
56129         empty.
56130
56131         * modules/inttypes (Files): Add m4/inttypes-h.m4.
56132
56133 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56134
56135         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
56136         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
56137         recent change to stdint.m4, since we're now addressing the problem in a
56138         different way.
56139
56140 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56141
56142         * m4/fcntl_h.m4: New file.
56143
56144 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56145
56146         * lib/fcntl_.h: New file.
56147         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
56148         the fcntl module.
56149         * lib/dirchownmod.c: Likewise.
56150         * lib/fts.c: Likewise.
56151
56152         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
56153         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
56154         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
56155         just before including <inttypes.h>, to avoid circular inclusion.
56156
56157 2006-08-28  Jim Meyering  <jim@meyering.net>
56158
56159         * doc/visibility.texi: Actually read and correct the grammar of the
56160         sentence affected by yesterday's change.
56161
56162 2006-08-28  Eric Blake  <ebb9@byu.net>
56163
56164         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
56165         needs wrapper.
56166
56167 2006-08-28  Eric Blake  <ebb9@byu.net>
56168
56169         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
56170
56171 2006-08-28  Eric Blake  <ebb9@byu.net>
56172
56173         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
56174
56175 2006-08-28  Bruno Haible  <bruno@clisp.org>
56176
56177         * modules/c-strstr: New file, from GNU gettext.
56178         * MODULES.html.sh (String handling): Add c-strstr.
56179
56180 2006-08-28  Bruno Haible  <bruno@clisp.org>
56181
56182         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
56183         macros.
56184         Reported by Eric Blake.
56185
56186 2006-08-28  Bruno Haible  <bruno@clisp.org>
56187
56188         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
56189         (VASNPRINTF): Return a string of length > INT_MAX without failing.
56190         * lib/vasprintf.c: Include errno.h, limits.h.
56191         (EOVERFLOW): New fallback definition.
56192         (vasprintf): Test here whether the string length is > INT_MAX.
56193         * lib/vsnprintf.c: Include errno.h, limits.h.
56194         (EOVERFLOW): New fallback definition.
56195         (vsnprintf): Fix bug when generated string was too long for the buffer.
56196         Test here whether the string length is > INT_MAX.
56197
56198 2006-08-28  Bruno Haible  <bruno@clisp.org>
56199
56200         * lib/inttypes_.h (SCNX*): Remove definitions.
56201         Reported by Eric Blake.
56202
56203 2006-08-28  Bruno Haible  <bruno@clisp.org>
56204
56205         * lib/c-strstr.h: New file, from GNU gettext.
56206         * lib/c-strstr.c: New file, from GNU gettext.
56207
56208 2006-08-28  Bruno Haible  <bruno@clisp.org>
56209
56210         * gnulib-tool: Reorder some statements.
56211
56212 2006-08-28  Bruno Haible  <bruno@clisp.org>
56213
56214         * gnulib-tool: New option --makefile-name.
56215         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
56216         $makefile_name.
56217         (func_import): Write $makefile_name to the cache file, and read it from
56218         there unless explicitly specified. Use $makefile_name as file name
56219         instead of Makefile.am. Adjust the recommendations accordingly.
56220
56221 2006-08-28  Bruno Haible  <bruno@clisp.org>
56222
56223         * gnulib-tool (func_verify_module): Check against misapplying patch.
56224
56225 2006-08-28  Bruno Haible  <bruno@clisp.org>
56226
56227         * gnulib-tool (func_relativize, func_relconcat): New functions.
56228         Give an error if --local-dir is given with --update.
56229         Remove trailing slashes from $local_gnulib_dir.
56230         (func_import): Store the relativized $local_gnulib_dir in
56231         gnulib-cache.m4, and read it from there if not specified explicitly.
56232
56233 2006-08-28  Bruno Haible  <bruno@clisp.org>
56234
56235         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
56236         is the current directory. Respect also $local_gnulib_dir.
56237
56238 2006-08-28  Bruno Haible  <bruno@clisp.org>
56239             Simon Josefsson  <jas@extundo.com>
56240
56241         BeOS portability.
56242         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
56243
56244 2006-08-27  Jim Meyering  <jim@meyering.net>
56245
56246         * doc/visibility.texi: Remove duplicate word: "pointer".
56247
56248 2006-08-26  Bruno Haible  <bruno@clisp.org>
56249
56250         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
56251         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
56252         (Makefile.am): Create inttypes.h from inttypes_.h.
56253         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
56254
56255         * modules/imaxabs: New file.
56256
56257         * modules/imaxdiv: New file.
56258
56259 2006-08-26  Bruno Haible  <bruno@clisp.org>
56260
56261         * m4/inttypes.m4: New file.
56262         * m4/_inttypes_h.m4: Remove file.
56263         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
56264         PRI_MACROS_BROKEN.
56265         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
56266
56267         * m4/imaxabs.m4: New file.
56268
56269         * m4/imaxdiv.m4: New file.
56270
56271 2006-08-26  Bruno Haible  <bruno@clisp.org>
56272
56273         * lib/inttypes_.h: New file.
56274         * lib/inttypes.h: Remove file.
56275         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
56276
56277         * lib/imaxabs.c: New file.
56278
56279         * lib/imaxdiv.c: New file.
56280
56281 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56282
56283         New config-h module, so that "make" output needn't be cluttered
56284         by -DHAVE_CONFIG_H.
56285         * MODULES.html.sh (Support for building libraries and executables):
56286         Add config-h.
56287         * modules/config-h: New file.
56288         * gnulib-tool (nl, sed_transform_lib_file): New vars.
56289         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
56290         the config-h module is used.
56291
56292         New configmake module, so that "make" output needn't be cluttered
56293         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
56294         * MODULES.html.sh (Support for building libraries and executables):
56295         Add configmake.
56296         * modules/configmake: New file.
56297
56298 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56299
56300         * m4/config-h.m4: New file.
56301
56302 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56303
56304         * config/srclist.txt: Add elisp-comp.
56305
56306 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56307
56308         * MODULES.html.sh (Support for building libraries and executables):
56309         Add elisp-comp.
56310         * build-aux/elisp-comp: New file.
56311         * modules/elisp-comp: New file.
56312
56313 2006-08-24  Bruno Haible  <bruno@clisp.org>
56314
56315         * gnulib-tool (func_create_testdir): Use non-default values of
56316         sourcebase and m4base.
56317
56318 2006-08-24  Bruno Haible  <bruno@clisp.org>
56319
56320         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
56321         HTML structure.
56322
56323 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56324
56325         * modules/openat (Depends-on): Add lchown.
56326
56327 2006-08-23  Bruno Haible  <bruno@clisp.org>
56328
56329         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
56330         of gl_LOCK_EARLY instead of gl_LOCK.
56331
56332 2006-08-23  Bruno Haible  <bruno@clisp.org>
56333
56334         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
56335         on OSF/1 to no.
56336         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
56337
56338 2006-08-23  Bruno Haible  <bruno@clisp.org>
56339
56340         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
56341         as unusable.
56342
56343         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
56344         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
56345         (gl_LOCK): New macro.
56346
56347 2006-08-22  Simon Josefsson  <jas@extundo.com>
56348
56349         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
56350         to md5 module.
56351
56352 2006-08-22  Simon Josefsson  <jas@extundo.com>
56353
56354         * MODULES.html.sh: Add "Support for maintaining and release
56355         projects".
56356
56357         * build-aux/gnupload: New file, from coreutils.
56358
56359 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
56360
56361         Avoid the need for AC_LIBSOURCES in m4 macros.
56362         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
56363         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
56364         * modules/check-version (EXTRA_DIST): Add check-version.h.
56365         * modules/crc (EXTRA_DIST): Add crc.h.
56366         * modules/des (EXTRA_DIST): Add des.h.
56367         * modules/gc (EXTRA_DIST): Add gc.h.
56368         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
56369         * modules/getline (EXTRA_DIST): Add getline.h.
56370         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
56371         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
56372         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
56373         * modules/md2 (EXTRA_DIST): Add md2.h.
56374         * modules/md4 (EXTRA_DIST): Add md4.h.
56375         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
56376         * modules/read-file (EXTRA_DIST): Add read-file.h.
56377         * modules/readline (EXTRA_DIST): Add readline.h.
56378         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
56379         rijndael-api-fst.h.
56380
56381 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
56382
56383         * m4/rijndael.m4 (gl_ARCFOUR):
56384         * m4/arctwo.m4 (gl_ARCTWO):
56385         * m4/check-version.m4 (gl_CHECK_VERSION):
56386         * m4/crc.m4 (gl_CRC):
56387         * m4/des.m4 (gl_DES):
56388         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
56389         * m4/gc.m4 (gl_GC):
56390         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
56391         * m4/getline.m4 (gl_FUNC_GETLINE):
56392         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
56393         * m4/hmac-md5.m4 (gl_HMAC_MD5):
56394         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
56395         * m4/md2.m4 (gl_MD2):
56396         * m4/md4.m4 (gl_MD4):
56397         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
56398         * m4/read-file.m4 (gl_FUNC_READ_FILE):
56399         * m4/readline.m4 (gl_FUNC_READLINE):
56400         * m4/rijndael.m4 (gl_RIJNDAEL):
56401         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
56402         to get the necessary .h files and whatnot.
56403
56404 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
56405
56406         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
56407         gnulib rather than the other way around.
56408         * config/srclistvars.sh (COREUTILS): Remove.
56409
56410 2006-08-22  Jim Meyering  <jim@meyering.net>
56411
56412         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
56413
56414         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
56415
56416 2006-08-22  Eric Blake  <ebb9@byu.net>
56417
56418         * modules/regexprops-generic: New file.
56419         * MODULES.html.sh (Support for building documentation): List it.
56420
56421 2006-08-22  Eric Blake  <ebb9@byu.net>
56422
56423         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
56424         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
56425         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
56426         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
56427
56428 2006-08-22  Bruno Haible  <bruno@clisp.org>
56429
56430         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
56431         and lib_LTLIBRARIES like the other lib_* variables.
56432
56433 2006-08-22  Bruno Haible  <bruno@clisp.org>
56434
56435         * build-aux/x-to-1.in: New file, from GNU gettext.
56436
56437 2006-08-22  Bruno Haible  <bruno@clisp.org>
56438
56439         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
56440         <utmpx.h> exists.
56441
56442 2006-08-22  Bruno Haible  <bruno@clisp.org>
56443
56444         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
56445         <utmpx.h> exists.
56446
56447 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
56448
56449         BeOS portability.
56450         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
56451         exist.
56452         Problem reported by Bruno Haible.
56453
56454 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
56455
56456         Avoid the need for AC_LIBSOURCES in m4 macros.
56457         * modules/acl (EXTRA_DIST): Add acl.h.
56458         * modules/argmatch (Files): Add m4/argmatch.m4.
56459         (configure.ac): Add gl_ARGMATCH.
56460         (EXTRA_DIST): Renamed from lib_SOURCES, for
56461         consistency with the other modules.  Remove argmatch.c.
56462         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
56463         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
56464         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
56465         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
56466         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
56467         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
56468         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
56469         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
56470         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
56471         * modules/closeout (EXTRA_DIST): Add closeout.h.
56472         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
56473         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
56474         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
56475         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
56476         dirname.h; remove basename.c and stripslash.c.
56477         * modules/exclude (EXTRA_DIST): Add exclude.h.
56478         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
56479         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
56480         * modules/file-type (EXTRA_DIST): Add file-type.h.
56481         * modules/filemode (EXTRA_DIST): Add filemode.h.
56482         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
56483         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
56484         * modules/fpending (EXTRA_DIST): Add __fpending.h.
56485         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
56486         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
56487         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
56488         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
56489         * modules/getdate (EXTRA_DIST): Add getdate.c.
56490         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
56491         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
56492         * modules/getpass (EXTRA_DIST): Add getpass.h.
56493         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
56494         * modules/group-member (EXTRA_DIST): Add group-member.h.
56495         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
56496         * modules/hash (EXTRA_DIST): Add hash.h.
56497         * modules/human (EXTRA_DIST): Add human.h.
56498         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
56499         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
56500         * modules/lchown (EXTRA_DIST): Add lchown.h.
56501         * modules/long-options (EXTRA_DIST): Add long-options.h.
56502         * modules/lstat (EXTRA_DIST): Add lstat.h.
56503         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
56504         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
56505         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
56506         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
56507         * modules/memxor (EXTRA_DIST): Add memxor.h.
56508         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
56509         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
56510         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
56511         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
56512         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
56513         * modules/physmem (EXTRA_DIST): Add physmem.h.
56514         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
56515         * modules/posixver (EXTRA_DIST): Add posixver.h.
56516         * modules/quote (EXTRA_DIST): Add quote.h.
56517         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
56518         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
56519         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
56520         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
56521         regex_internal.h regexec.c.
56522         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
56523         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
56524         * modules/same (EXTRA_DIST): Add same.h.
56525         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
56526         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
56527         * modules/savedir (EXTRA_DIST): Add savedir.h.
56528         * modules/sha1 (EXTRA_DIST): Add sha1.h.
56529         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
56530         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
56531         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
56532         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
56533         * modules/strdup (EXTRA_DIST): Add strdup.h.
56534         * modules/strftime (EXTRA_DIST): Add strftime.h.
56535         * modules/strndup (EXTRA_DIST): Add strndup.h.
56536         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
56537         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
56538         * modules/time_r (EXTRA_DIST): Add time_r.h.
56539         * modules/timespec (EXTRA_DIST): Add timespec.h.
56540         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
56541         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
56542         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
56543         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
56544         * modules/userspec (EXTRA_DIST): Add userspec.h.
56545         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
56546         * modules/utimens (EXTRA_DIST): Add utimens.h.
56547         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
56548         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
56549         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
56550         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
56551         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
56552         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
56553         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
56554         * modules/yesno (EXTRA_DIST): Add yesno.h.
56555
56556 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
56557
56558         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
56559
56560         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
56561         * m4/dev-ino.m4, same-inode.m4: Remove.
56562
56563         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
56564         * m4/acl.m4 (AC_FUNC_ACL):
56565         * m4/backupfile.m4 (gl_BACKUPFILE):
56566         * m4/c-strtod.m4 (gl_C99_STRTOLD):
56567         * m4/canon-host.m4 (gl_CANON_HOST):
56568         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
56569         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
56570         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
56571         * m4/cloexec.m4 (gl_CLOEXEC):
56572         * m4/close-stream.m4 (gl_CLOSE_STREAM):
56573         * m4/closeout.m4 (gl_CLOSEOUT):
56574         * m4/dirfd.m4 (gl_FUNC_DIRFD):
56575         * m4/dirname.m4 (gl_DIRNAME):
56576         * m4/exclude.m4 (gl_EXCLUDE):
56577         * m4/exitfail.m4 (gl_EXITFAIL):
56578         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
56579         * m4/file-type.m4 (gl_FILE_TYPE):
56580         * m4/filemode.m4 (gl_FILEMODE):
56581         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
56582         * m4/fpending.m4 (gl_FUNC_FPENDING):
56583         * m4/fprintftime.m4 (gl_FPRINTFTIME):
56584         * m4/fts.m4 (gl_FUNC_FTS):
56585         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
56586         * m4/getdate.m4 (gl_GETDATE):
56587         * m4/gethrxtime.m4 (gl_GETHRXTIME):
56588         * m4/getpagesize.m4 (gl_GETPAGESIZE):
56589         * m4/getpass.m4 (gl_FUNC_GETPASS):
56590         * m4/gettime.m4 (gl_GETTIME):
56591         * m4/getugroups.m4 (gl_GETUGROUPS):
56592         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
56593         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
56594         * m4/hard-locale.m4 (gl_HARD_LOCALE):
56595         * m4/hash.m4 (gl_HASH):
56596         * m4/idcache.m4 (gl_IDCACHE):
56597         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
56598         * m4/lchown.m4 (gl_FUNC_LCHOWN):
56599         * m4/long-options.m4 (gl_LONG_OPTIONS):
56600         * m4/lstat.m4 (gl_FUNC_LSTAT):
56601         * m4/md5.m4 (gl_MD5):
56602         * m4/memcasecmp.m4 (gl_MEMCASECMP):
56603         * m4/memcoll.m4 (gl_MEMCOLL):
56604         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
56605         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
56606         * m4/memxor.m4 (gl_MEMXOR):
56607         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
56608         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
56609         * m4/modechange.m4 (gl_MODECHANGE):
56610         * m4/mountlist.m4 (gl_MOUNTLIST):
56611         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56612         * m4/openat.m4 (gl_FUNC_OPENAT):
56613         * m4/pathmax.m4 (gl_PATHMAX):
56614         * m4/physmem.m4 (gl_PHYSMEM):
56615         * m4/posixtm.m4 (gl_POSIXTM):
56616         * m4/posixver.m4 (gl_POSIXVER):
56617         * m4/quote.m4 (gl_QUOTE):
56618         * m4/quotearg.m4 (gl_QUOTEARG):
56619         * m4/readtokens.m4 (gl_READTOKENS):
56620         * m4/readutmp.m4 (gl_READUTMP):
56621         * m4/regex.m4 (gl_REGEX):
56622         * m4/safe-read.m4 (gl_SAFE_READ):
56623         * m4/safe-write.m4 (gl_SAFE_WRITE):
56624         * m4/same.m4 (gl_SAME):
56625         * m4/save-cwd.m4 (gl_SAVE_CWD):
56626         * m4/savedir.m4 (gl_SAVEDIR):
56627         * m4/settime.m4 (gl_SETTIME):
56628         * m4/sha1.m4 (gl_SHA1):
56629         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
56630         * m4/stat-macros.m4 (gl_STAT_MACROS):
56631         * m4/stat-time.m4 (gl_STAT_TIME):
56632         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
56633         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
56634         * m4/strdup.m4 (gl_FUNC_STRDUP):
56635         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
56636         * m4/strndup.m4 (gl_FUNC_STRNDUP):
56637         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
56638         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
56639         * m4/time_r.m4 (gl_TIME_R):
56640         * m4/timespec.m4 (gl_TIMESPEC):
56641         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
56642         * m4/unlinkdir.m4 (gl_UNLINKDIR):
56643         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
56644         * m4/userspec.m4 (gl_USERSPEC):
56645         * m4/utimecmp.m4 (gl_UTIMECMP):
56646         * m4/utimens.m4 (gl_UTIMENS):
56647         * m4/xalloc.m4 (gl_XALLOC):
56648         * m4/xgetcwd.m4 (gl_XGETCWD):
56649         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
56650         * m4/xreadlink.m4 (gl_XREADLINK):
56651         * m4/xstrtod.m4 (gl_XSTRTOD):
56652         * m4/yesno.m4 (gl_YESNO):
56653         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
56654         to get the necessary .h files and whatnot.
56655
56656 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
56657             Bruno Haible  <bruno@clisp.org>
56658
56659         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
56660         /bin/sh understanding of '!' conditional negation.
56661
56662 2006-08-21  Jim Meyering  <jim@meyering.net>
56663
56664         * modules/openat (Depends-on): Really alphabetize.
56665
56666         * modules/acl (Depends-on): Add error and quote.
56667
56668         * check-module (find_included_lib_files): Add at-func.c to the
56669         ok-to-include-more-than-once white list.
56670
56671         * modules/openat (Depends-on): Add lstat.  Alphabetize.
56672
56673 2006-08-21  Bruno Haible  <bruno@clisp.org>
56674
56675         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56676         Emit a pkgdata_DATA variable only if some snippets add contents to it.
56677         Reported by Martin Lambers <marlam@marlam.de>.
56678
56679 2006-08-21  Bruno Haible  <bruno@clisp.org>
56680
56681         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
56682         specify an installation location, don't emit a noinst_LIBRARIES or
56683         noinst_LTLIBRARIES assignment.
56684
56685 2006-08-21  Bruno Haible  <bruno@clisp.org>
56686
56687         BeOS portability.
56688         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
56689         BeOS has mbrtowc() but no <wctype.h>.
56690
56691 2006-08-21  Bruno Haible  <bruno@clisp.org>
56692
56693         BeOS portability.
56694         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
56695         exist.
56696
56697 2006-08-21  Bruno Haible  <bruno@clisp.org>
56698
56699         BeOS portability.
56700         * lib/mbchar.h: Include <wctype.h> only if it exists.
56701
56702 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56703
56704         Remove files that are no longer needed by their respective modules.
56705         * m4/obstack.m4: Remove.
56706         * m4/strerror_r.m4: Remove.
56707         * m4/uint32_t.m4: Remove.
56708         * m4/uintptr_t.m4: Remove.
56709         * m4/ullong_max.m4: Remove.
56710         * m4/xstrtoimax.m4: Remove.
56711         * m4/xstrtoumax.m4: Remove.
56712
56713         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
56714         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
56715         dependencies now capture this.
56716
56717         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
56718         Do not use AC_LIBSOURCES, since gnulib modules now do this.
56719         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
56720         * m4/human.m4 (gl_HUMAN): Likewise.
56721         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
56722         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
56723
56724         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
56725
56726         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
56727         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
56728         stdint.
56729         * m4/human.m4 (gl_HUMAN): Likewise.
56730         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
56731         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
56732         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
56733         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
56734         * m4/xstrtol (gl_XSTRTOL): Likewise.
56735
56736         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
56737         AC_TYPE_LONG_LONG_INT.
56738         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
56739         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
56740         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
56741         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
56742
56743         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
56744         on stdbool.
56745
56746         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
56747         (gl_PREREQ_XSTRTOUL): Remove.
56748
56749         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
56750
56751         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
56752         mode.
56753
56754 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56755
56756         Add and change modules to make it easier for coreutils to use
56757         gnulib-tool.
56758         * modules/backupfile (Files): Remove m4/d-ino.m4.
56759         (Depends-on): Add d-ino.
56760         * modules/cycle-check (Depends-on): Add stdint.
56761         (lib_SOURCES): Add cycle-check.h.
56762         * modules/d-ino: New module.
56763         * modules/d-type: New module.
56764         * modules/error (Files): Remove m4/strerror_r.m4.
56765         * modules/filemode (Files): Add m4/st_dm_mode.m4.
56766         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
56767         m4/inttypes_h.m4, m4/uintmax_t.m4.
56768         (Depends-on): Add stdint.
56769         (lib_SOURCES): Add fsusage.h.
56770         * modules/getcwd (Files): Remove d-ino.m4.
56771         (Depends-on): Add d-ino.
56772         * modules/getndelim2 (Depends-on): Add stdint.
56773         * modules/glob (Files): Remove m4/d-type.m4.
56774         (Depends-on): Add d-type.
56775         * modules/host-os: New module.
56776         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
56777         m4/inttypes_h.m4, m4/uintmax_t.m4.
56778         * Depends-on: Add stdint.
56779         (lib_SOURCES): Add human.h.
56780         * modules/inttostr (Files): Remove m4/intmax_t.m4,
56781         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
56782         m4/uintmax_t.m4, m4/ulonglong.m4.
56783         (Depends-on): Add stdint.
56784         (EXTRA_DIST): Add inttostr.h.
56785         * modules/lchmod: New module.
56786         * modules/link-follow: New module.
56787         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
56788         (Depends-on): Add lchmod.
56789         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
56790         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
56791         (Depends-on): Add stdint.
56792         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
56793         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
56794         (Depends-on): Add stdint.
56795         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
56796         * modules/perl: New module.
56797         * modules/regex (Depends-on): Add stdint.
56798         * modules/rmdir-errno: New module.
56799         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
56800         m4/intmax_t.m4.
56801         (Depends-on): Add stdint.
56802         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
56803         m4/uintmax_t.m4.
56804         (Depends-on): Add stdint.
56805         * modules/unlink-busy: New module.
56806         * modules/utimecmp (Depends-on): Add stdint.
56807         * modules/uptime: New module.
56808         * modules/winsz-ioctl: New module.
56809         * modules/winsz-termios: New module.
56810         * modules/xnanosleep (Depends-on): Add nanosleep.
56811         * modules/ullong_max: Remove.
56812         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
56813         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
56814         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
56815         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
56816         (Depends-on): Add inttypes.
56817         (lib_SOURCES): Add xstrtol.h.
56818         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
56819         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
56820         * MODULES.html.sh: Move 'assert' into the assert section.
56821         Move 'dummy' into the linking section.
56822         Remove ullong_max.
56823         Add section for compatibility checks for POSIX:2001 functions,
56824         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
56825         winsz-ioctl, and winsz-termios into it.
56826         Add lchmod.
56827         Add top-level Misc section and put host-os, perl, and uptime
56828         into it.
56829
56830 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56831
56832         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
56833         now assume the stdint module.  Do not include inttypes.h.
56834         * lib/fsusage.h: Likewise.
56835         * lib/getndelim2.c: Likewise.
56836         * lib/human.h: Likewise.
56837         * lib/inttostr.h: Likewise.
56838         * lib/obstack.c: Likewise.
56839         * lib/regex_internal.h: Likewise.
56840         * lib/tempname.c: Likewise.
56841         * lib/utimecmp.c: Likewise.
56842         * lib/xstrtol.h: Likewise.
56843
56844         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
56845
56846         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
56847         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
56848         * lib/xtime.h: Likewise.
56849
56850 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56851
56852         * modules/openat (Files): Add lib/fchmodat.c.
56853         Fixes problem reported by Jay Youngman.
56854
56855 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56856
56857         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
56858         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
56859
56860 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
56861             Bruno Haible  <bruno@clisp.org>
56862
56863         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
56864         and is a script that invokes bison. Tighten the code. Add comments.
56865
56866 2006-08-18  Jim Meyering  <jim@meyering.net>
56867
56868         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
56869         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
56870         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
56871         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
56872
56873 2006-08-18  Bruno Haible  <bruno@clisp.org>
56874
56875         * modules/bison-i18n: New file.
56876         * MODULES.html.sh (Internationalization functions): Add it.
56877
56878 2006-08-18  Bruno Haible  <bruno@clisp.org>
56879
56880         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
56881         sys/statvfs.h. When getmntinfo was found, check its declaration and
56882         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
56883
56884 2006-08-18  Bruno Haible  <bruno@clisp.org>
56885
56886         * m4/bison-i18n.m4: New file, from bison.
56887
56888 2006-08-18  Bruno Haible  <bruno@clisp.org>
56889
56890         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
56891         (ME_DUMMY): Treat "kernfs" as a dummy.
56892         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
56893
56894 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56895
56896         Update from coreutils.
56897
56898         2006-08-15  Jim Meyering  <jim@meyering.net>
56899
56900         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
56901
56902         2006-01-17  Jim Meyering  <jim@meyering.net>
56903
56904         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
56905
56906         2006-01-11  Jim Meyering  <jim@meyering.net>
56907
56908         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
56909         Check for the lchmod function.
56910
56911 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56912
56913         Update from coreutils.
56914
56915         * lib/__fpending.h: Add copyright notice.
56916         * lib/fprintftime.h: Likewise.
56917         * lib/savedir.c: Use (C) in copyright notice.
56918         * lib/savedir.h: Likewise.
56919
56920         2006-08-15  Jim Meyering  <jim@meyering.net>
56921
56922         * lib/at-func.c: New file, with the logic of all emulated at-functions.
56923         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
56924         in support of the EXPECTED_ERRNO macro.
56925         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
56926         definitions.  Instead, define the appropriate symbols and include
56927         "at-func.c".
56928         * lib/mkdirat.c (mkdirat): Likewise.
56929         * lib/fchmodat.c (fchmodat): Likewise.
56930         (ENOSYS): Remove definition.
56931         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
56932         it.  Don't include "unistd--.h" -- it wasn't ever used.
56933
56934         2006-01-17  Jim Meyering  <jim@meyering.net>
56935
56936         Rewrite fts.c not to change the current working directory,
56937         by using openat, fstatat, fdopendir, etc..
56938
56939         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
56940         (HAVE_OPENAT_SUPPORT): Define.
56941         [_LIBC] (fchdir): Don't undef or define; no longer used.
56942         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
56943         Now, this `function' always succeeds, and consumes its file descriptor
56944         parameter -- so callers must not close such FDs.  Update callers.
56945         (diropen_fd, opendirat, cwd_advance_fd): New functions.
56946         (diropen): Add parameter, SP.  Adjust all callers.
56947         Implement using diropen_fd, rather than open.
56948         (fts_open): Initialize new member, fts_cwd_fd.
56949         Remove fts_rft-setting code.
56950         (fts_close): Close fts_cwd_fd, if necessary.
56951         (__opendir2): Define in terms of opendir or opendirat,
56952         depending on whether the FST_NOCHDIR flag is set.
56953         (fts_build): Since fts_safe_changedir consumes its FD, and since
56954         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
56955         and close the dup'd file descriptor upon failure.
56956         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
56957         (fts_safe_changedir): Tweak semantics to reflect that this function
56958         now calls cwd_advance_fd and hence consumes its FD argument.
56959         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
56960         [struct FTS] (fts_rft): Remove now-unused member.
56961         [struct FTS] (fts_cycle.state): Improve comment.
56962
56963         * lib/openat.c (openat_needs_fchdir): New function.
56964         * lib/openat.h (openat_needs_fchdir): Declare it.
56965
56966 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
56967
56968         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
56969         Problem and fix reported by Pádraig Brady in
56970         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
56971
56972 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56973
56974         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
56975
56976 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56977
56978         * lib/memcoll.c (memcoll): Optimize for the common case where the
56979         arguments are bytewise equal.
56980
56981 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56982
56983         * doc/regexprops-generic.texi: Add a copyright notice.
56984
56985 2006-08-15  Bruno Haible  <bruno@clisp.org>
56986
56987         * modules/tmpdir (License): Change to LGPL.
56988
56989 2006-08-15  Bruno Haible  <bruno@clisp.org>
56990
56991         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
56992         module.
56993
56994 2006-08-14  Simon Josefsson  <jas@extundo.com>
56995
56996         * config/srclist.txt: Add gnupload.
56997
56998 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56999
57000         Change copyright notice from LGPL 2 to GPL 2, since that's the
57001         standard form used in the gnulib repository.
57002         * tests/test-lock.c: Likewise.
57003         * tests/test-stdint.c: Likewise.
57004         * tests/test-tls.c: Likewise.
57005
57006         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
57007         prelude-manager.  User shorter URLs for GNU projects, without '?'.
57008         Add copyright notice.
57009
57010         * check-module: Add copyright notice.  Output a copyright
57011         notice if "--version" is specified.
57012         * modules/COPYING: New file.
57013         * tests/test-getaddrinfo.c: Add copyright notice.
57014         * tests/test-verify.c: Likewise.
57015
57016 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57017
57018         Change copyright notice from LGPL 2 to GPL 2, since that's the
57019         standard form used in the gnulib repository.
57020         * lib/lock.c: LGPL -> GPL.
57021         * lib/lock.h: Likewise.
57022         * lib/strnlen1.c: Likewise.
57023         * lib/strnlen1.h: Likewise.
57024         * lib/tls.c: Likewise.
57025         * lib/tls.h: Likewise.
57026         * lib/tmpdir.c: Likewise.
57027
57028         * lib/TODO: Remove; this belongs only in coreutils.
57029
57030 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57031
57032         Add copyright notices to long-enough files that lack them, since
57033         otherwise the files aren't clearly free.  Use the same notice that
57034         getdate.texi already uses.
57035         * doc/alloca-opt.texi: Add copyright notice.
57036         * doc/alloca.texi: Likewise.
57037         * doc/ctime.texi: Likewise.
57038         * doc/functions.texi: Likewise.
57039         * doc/gcd.texi: Likewise.
57040         * doc/gnulib-tool.texi: Likewise.
57041         * doc/inet_ntoa.texi: Likewise.
57042         * doc/visibility.texi: Likewise.
57043
57044         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
57045         * doc/quote.texi: Add copyright notice.
57046
57047         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
57048         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
57049         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
57050         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
57051         is now obsolete, and give a pointer to the Sun list.
57052         Add copyright notice.
57053
57054 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57055
57056         * config/srclistvars.sh: Add copyright notice.
57057
57058 2006-08-14  Eric Blake  <ebb9@byu.net>
57059
57060         Import the following change from libc:
57061
57062         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
57063
57064         Upstream bug 2997.
57065         * lib/misc/error.c: Add space between program name and message if file
57066         name is missing.
57067
57068 2006-08-12  Karl Berry  <karl@gnu.org>
57069
57070         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
57071         remove, these originate in gnulib now.
57072
57073 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57074
57075         * doc/Makefile (standards.info standards.html standards.dvi):
57076         Also depend on make-stds.texi.
57077
57078 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
57079
57080         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
57081         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
57082
57083         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
57084         in wchar_t.  Problem reported by Eric Blake.
57085
57086         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
57087         LEN is smaller than SIZE.  Suggested by Bruno Haible.
57088         Also, help the compiler to keep LEN in a register.
57089
57090 2006-08-11  Eric Blake  <ebb9@byu.net>
57091
57092         * users.txt: Sort.  Add tar.
57093
57094 2006-08-11  Bruno Haible  <bruno@clisp.org>
57095
57096         * users.txt: New file.
57097
57098 2006-08-11  Bruno Haible  <bruno@clisp.org>
57099
57100         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
57101         before <wchar.h>. Needed for OSF/1 and BSD/OS.
57102
57103 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57104
57105         * modules/snprintf (Depends-on): Remove minmax.
57106         (Maintainer): Add self and Bruno.
57107
57108 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57109
57110         * lib/.cppi-disable: Add snprintf.h, socket_.h.
57111         * lib/snprintf.c: Include <errno.h> and <limits.h>.
57112         (EOVERFLOW): Define if the system does not.
57113         Do not include "minmax.h"; it wasn't used.
57114         (snprintf): Don't assume size_t promotes to an unsigned type.
57115         Fix bug when generated string was too long for the buffer: the
57116         buffer's contents are supposed to be the initial prefix of the
57117         output.  Don't assume vasnprintf returns EOVERFLOW if the size
57118         exceeds INT_MAX; do the check ourselves.
57119
57120         Import the following changes from libc:
57121
57122         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
57123
57124         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
57125         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
57126         set wc to the byte which couldn't be converted.
57127         (re_string_reconstruct): Don't clear valid_raw_len before calling
57128         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
57129         tip_context using re_string_context_at.
57130
57131         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
57132
57133         * lib/posix/regex.h: g++ still cannot handled [restrict].
57134
57135         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
57136
57137         * lib/posix/regex.h: Remove special handling for VMS.
57138
57139 2006-08-10  Jim Meyering  <jim@meyering.net>
57140
57141         * modules/same-inode: New module.
57142         * modules/dev-ino: New module.
57143         * modules/cycle-check: Depend on these modules, rather than simply
57144         including their .h files.
57145         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
57146         required via m4/cycle-check.m4.
57147         * modules/same: Depend on new same-inode module, rather than
57148         including same-inode.h.
57149         * modules/chdir-safer: New file.
57150
57151         * modules/chown (Depends-on): Add stat-macros.
57152
57153 2006-08-10  Jim Meyering  <jim@meyering.net>
57154
57155         * m4/cycle-check.m4: New file.
57156         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
57157         * m4/dev-ino.m4, m4/same-inode.m4: New files.
57158
57159 2006-08-10  Eric Blake  <ebb9@byu.net>
57160
57161         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
57162         in from original proposal.
57163
57164 2006-08-10  Eric Blake  <ebb9@byu.net>
57165         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
57166
57167         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
57168         namespace.
57169
57170 2006-08-10  Bruno Haible  <bruno@clisp.org>
57171
57172         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
57173         as well.
57174
57175 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57176
57177         Sync from coreutils.
57178
57179         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
57180
57181         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
57182         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
57183
57184 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57185
57186         * modules/restrict: Remove; no longer needed now that we assume
57187         Autoconf 2.59 or later.
57188         * MODULES.html.sh: Remove 'restrict'.
57189         * modules/argp (Depends-on): Remove 'restrict'.
57190         * modules/base64 (Depends-on): Likewise.
57191         * modules/gc (Depends-on): Likewise.
57192         * modules/getaddrinfo (Depends-on): Likewise.
57193         * modules/glob (Depends-on): Likewise.
57194         * modules/inet_ntop (Depends-on): Likewise.
57195         * modules/inet_pton (Depends-on): Likewise.
57196         * modules/memxor (Depends-on): Likewise.
57197         * modules/regex (Depends-on): Likewise.
57198         * modules/strtok_r (Depends-on): Likewise.
57199         * modules/time_r (Depends-on): Likewise.
57200
57201 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57202
57203         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
57204         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
57205         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57206         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
57207         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
57208         * m4/memxor.m4 (gl_MEMXOR): Likewise.
57209         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
57210         gl_C_RESTRICT replaced by AC_C_RESTRICT.
57211
57212         Merge from coreutils.
57213         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
57214         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
57215         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
57216         * m4/time_r.m4 (gl_TIME_R): Likewise.
57217
57218 2006-08-09  Karl Berry  <karl@gnu.org>
57219
57220         * config/srclist.txt: no more gettext-tools, per Bruno.
57221
57222 2006-08-08  Eric Blake  <ebb9@byu.net>
57223
57224         * modules/verror: New module.
57225         * MODULES.html.sh: Document it.
57226
57227 2006-08-08  Eric Blake  <ebb9@byu.net>
57228
57229         * lib/verror.h, lib/verror.c: New files.
57230
57231 2006-08-08  Eric Blake  <ebb9@byu.net>
57232
57233         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
57234         verror_at_line output complies with GNU Coding Standards even when
57235         file is NULL.
57236
57237 2006-08-07  Bruno Haible  <bruno@clisp.org>
57238
57239         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
57240         versions of AIX.
57241         Reported by Ralf Wildenhues.
57242
57243 2006-08-07  Bruno Haible  <bruno@clisp.org>
57244
57245         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
57246         in an AC_DEFUN. Needed so that the autoconf snippets can use
57247         AC_REQUIRE.
57248
57249 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57250
57251         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57252         Initialize pkgdata_DATA.
57253         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
57254         overriding it.
57255
57256 2006-08-06  Eric Blake  <ebb9@byu.net>
57257
57258         * lib/error.h: Fold in some upstream changes from glibc.
57259         * lib/error.c: Likewise.
57260
57261 2006-08-04  Bruno Haible  <bruno@clisp.org>
57262
57263         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57264         Make the mostlyclean-local rule depend on mostlyclean-generic.
57265         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
57266
57267 2006-07-31  Bruno Haible  <bruno@clisp.org>
57268
57269         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
57270         <stdlib.h>, <string.h>.
57271
57272 2006-07-30  Bruno Haible  <bruno@clisp.org>
57273
57274         * modules/readlink (License): Change to LGPL.
57275
57276 2006-07-30  Bruno Haible  <bruno@clisp.org>
57277
57278         * modules/javaversion (Makefile.am): Distribute javaversion.java and
57279         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
57280         set PKGDATADIR to point to it.
57281
57282 2006-07-30  Bruno Haible  <bruno@clisp.org>
57283
57284         * modules/csharpexec (configure.ac): Comment out macro invocation.
57285         * modules/javaexec (configure.ac): Likewise.
57286         * modules/javacomp-script (configure.ac): Likewise.
57287
57288         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
57289
57290 2006-07-30  Bruno Haible  <bruno@clisp.org>
57291
57292         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
57293         linked-list.
57294
57295 2006-07-30  Bruno Haible  <bruno@clisp.org>
57296
57297         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
57298
57299 2006-07-30  Bruno Haible  <bruno@clisp.org>
57300
57301         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57302         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
57303         get removed.
57304
57305 2006-07-29  Bruno Haible  <bruno@clisp.org>
57306
57307         Make it possible for gnulib-tool to work with locally modified or
57308         augmented gnulib repositories.
57309         * gnulib-tool (func_usage): Document --local-dir option.
57310         (local_gnulib_dir): New variable.
57311         Handle --local-dir option.
57312         (func_lookup_file): New function.
57313         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
57314         (func_get_description, func_get_filelist, func_get_description,
57315         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
57316         func_get_automake_snippet, func_get_include_directive,
57317         func_get_license, func_get_maintainer): Use func_lookup_file.
57318         (func_import, func_create_testdir): Use func_lookup_file.
57319
57320 2006-07-29  Bruno Haible  <bruno@clisp.org>
57321
57322         * modules/setenv (Depends-on): Add unistd.
57323
57324 2006-07-29  Bruno Haible  <bruno@clisp.org>
57325
57326         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
57327
57328 2006-07-29  Bruno Haible  <bruno@clisp.org>
57329
57330         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
57331
57332 2006-07-29  Bruno Haible  <bruno@clisp.org>
57333
57334         * gnulib-tool (import, update): If there is no Makefile.am, look at
57335         aclocal.m4, instead of bailing out.
57336
57337 2006-07-29  Bruno Haible  <bruno@clisp.org>
57338
57339         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
57340         Categorize the options by when they are useful.
57341
57342 2006-07-29  Bruno Haible  <bruno@clisp.org>
57343
57344         * gnulib-tool (func_usage): Document option --no-libtool.
57345         Handle option --no-libtool.
57346         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
57347         for changed semantics of $libtool variable.
57348         (func_import): Likewise. If libtool is not used, show this through
57349         an option --no-libtool.
57350         (func_create_testdir): Update.
57351
57352 2006-07-29  Bruno Haible  <bruno@clisp.org>
57353
57354         * gnulib-tool (func_import): Extend error message about missing
57355         --doc-base.
57356
57357 2006-07-29  Bruno Haible  <bruno@clisp.org>
57358
57359         * gnulib-tool (func_import): Don't create the $docbase directory if
57360         there is no file to store there.
57361
57362 2006-07-29  Bruno Haible  <bruno@clisp.org>
57363
57364         * gnulib-tool (autoconf_minversion): If a --dir option is given and
57365         relevant, look for configure.ac there, not in the current directory.
57366         Also use a simple search for AC_PREREQ, not "autoconf --trace".
57367
57368 2006-07-29  Bruno Haible  <bruno@clisp.org>
57369
57370         * gnulib-tool (SORT): New variable.
57371         (func_usage): Undocument --assume-autoconf option.
57372         Remove --assume-autoconf option handling.
57373         (autoconf_minversion): Determine from the contents of configure.ac.
57374         (func_import): Remove autoconf_minversion handling.
57375         Suggested by Eric Blake.
57376
57377 2006-07-29  Bruno Haible  <bruno@clisp.org>
57378
57379         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
57380
57381 2006-07-29  Bruno Haible  <bruno@clisp.org>
57382
57383         * config/srclist.txt (*setenv.[ch]): Remove rules.
57384
57385 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57386
57387         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
57388
57389 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57390
57391         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
57392         arpa/inet.h.
57393
57394 2006-07-28  Simon Josefsson  <jas@extundo.com>
57395
57396         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
57397         * modules/inet_pton (Depends-on): Likewise.
57398
57399 2006-07-28  Simon Josefsson  <jas@extundo.com>
57400
57401         * m4/netinet_in_h.m4: New file.
57402
57403 2006-07-28  Simon Josefsson  <jas@extundo.com>
57404
57405         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
57406         #include's.
57407
57408 2006-07-28  Simon Josefsson  <jas@extundo.com>
57409
57410         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
57411         #include's.
57412
57413 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
57414
57415         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
57416         setgid on directories only if they set these bits.
57417         * lib/modechange.h: Remove obsolete comment about masks.
57418
57419 2006-07-28  Eric Blake  <ebb9@byu.net>
57420
57421         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
57422         macro expansion.
57423
57424 2006-07-28  Bruno Haible  <bruno@clisp.org>
57425
57426         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
57427
57428 2006-07-28  Bruno Haible  <bruno@clisp.org>
57429
57430         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
57431
57432 2006-07-28  Bruno Haible  <bruno@clisp.org>
57433
57434         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
57435         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
57436         Define fallbacks.
57437         Avoids link error on FreeBSD 4.x.
57438         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57439
57440         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
57441         encoding.
57442         * lib/mbswidth.c (iswcntrl): Likewise.
57443
57444 2006-07-27  Bruno Haible  <bruno@clisp.org>
57445
57446         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
57447         test.
57448
57449 2006-07-27  Bruno Haible  <bruno@clisp.org>
57450
57451         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
57452         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
57453         defined.
57454
57455 2006-07-26  Eric Blake  <ebb9@byu.net>
57456
57457         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
57458
57459 2006-07-26  Eric Blake  <ebb9@byu.net>
57460
57461         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
57462         like mingw that lack mkstemp.
57463         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
57464         avoid compilation warning on mingw.
57465
57466 2006-07-26  Bruno Haible  <bruno@clisp.org>
57467
57468         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
57469         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
57470         INT_FAST*_MIN, INTPTR_MIN.
57471
57472 2006-07-25  Bruno Haible  <bruno@clisp.org>
57473
57474         * modules/version-etc (Depends-on): Add stdarg.
57475
57476 2006-07-25  Bruno Haible  <bruno@clisp.org>
57477
57478         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
57479         complex commands.
57480
57481 2006-07-25  Bruno Haible  <bruno@clisp.org>
57482
57483         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
57484         defined in <stdarg.h> or config.h.
57485
57486 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
57487
57488         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
57489         (gl_STDIO_SAFER): Remove.
57490
57491 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
57492
57493         * MODULES.html.sh (File stream based Input/Output):
57494         Add fopen-safer, tmpfile-safer; remove stdio-safer.
57495         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
57496         * modules/fopen-safer, modules/tmpfile-safer: New files.
57497         * modules/stdio-safer: Remove.
57498
57499 2006-07-24  Bruno Haible  <bruno@clisp.org>
57500
57501         * modules/tmpdir: New file.
57502         * MODULES.html.sh (File system functions): Add it.
57503
57504 2006-07-24  Bruno Haible  <bruno@clisp.org>
57505
57506         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
57507         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
57508
57509 2006-07-24  Bruno Haible  <bruno@clisp.org>
57510
57511         * modules/clean-temp: New file.
57512
57513 2006-07-24  Bruno Haible  <bruno@clisp.org>
57514
57515         * m4/tmpdir.m4: New file, from GNU gettext.
57516
57517 2006-07-24  Bruno Haible  <bruno@clisp.org>
57518
57519         * lib/tmpdir.h: New file, from GNU gettext.
57520         * lib/tmpdir.c: New file, from GNU gettext.
57521
57522 2006-07-24  Bruno Haible  <bruno@clisp.org>
57523
57524         * lib/clean-temp.h: New file, from GNU gettext.
57525         * lib/clean-temp.c: New file, from GNU gettext.
57526
57527 2006-07-23  Eric Blake  <ebb9@byu.net>
57528
57529         * modules/stdio-safer (Files): Add tmpfile-safer.c.
57530         (Depends-on): Add binary-io.
57531
57532 2006-07-23  Eric Blake  <ebb9@byu.net>
57533
57534         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
57535
57536 2006-07-23  Eric Blake  <ebb9@byu.net>
57537
57538         * lib/tmpfile-safer.c: New file.
57539         * lib/stdio-safer.h (fopen_safer): Add prototype.
57540         * lib/stdio--.h (tmpfile): Make safer.
57541
57542 2006-07-23  Bruno Haible  <bruno@clisp.org>
57543
57544         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
57545         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
57546         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
57547         gl_linked_remove_at): Use it.
57548
57549 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57550         and Simon Josefsson <jas@extundo.com>
57551
57552         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
57553
57554         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
57555
57556 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57557
57558         * modules/close-stream: New file.
57559         * modules/closeout (Description): Make it clear that it exits
57560         with a diagnostic on error.
57561         (Depends-on): Add close-stream.  Remove fpending, stdbool.
57562         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
57563
57564 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57565
57566         * m4/close-stream.m4: New file.
57567
57568 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57569
57570         * lib/close-stream.c, lib/close-stream.h: New files.
57571
57572 2006-07-22  Bruno Haible  <bruno@clisp.org>
57573
57574         Merge from GNU gettext 0.15.
57575
57576         2006-05-01  Bruno Haible  <bruno@clisp.org>
57577
57578                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
57579
57580         2006-07-22  Bruno Haible  <bruno@clisp.org>
57581
57582                 * modules/javaversion: New file.
57583                 * MODULES.html.sh (Java): Add javaversion.
57584
57585         2006-03-12  Bruno Haible  <bruno@clisp.org>
57586
57587                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
57588
57589         2005-12-04  Bruno Haible  <bruno@clisp.org>
57590
57591                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
57592                 (untested).
57593
57594         2006-06-21  Bruno Haible  <bruno@clisp.org>
57595
57596                 Avoid warnings from recent versions of mcs.
57597                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
57598                 -o, -L, -r any more. Use options documented since mcs-1.0
57599                 instead. Similarly for -g.
57600
57601         2005-12-04  Bruno Haible  <bruno@clisp.org>
57602
57603                 * build-aux/csharpcomp.sh.in: Suffix for resources is
57604                 .resources, not .resource.
57605
57606         2005-07-09  Bruno Haible  <bruno@clisp.org>
57607
57608                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
57609                 add a .dll suffix.
57610                 Reported by Mark Junker <mjscod@gmx.de>.
57611
57612         2006-07-22  Bruno Haible  <bruno@clisp.org>
57613
57614                 * modules/gettext: Upgrade to gettext-0.15.
57615                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
57616                 m4/visibility.m4.
57617                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
57618
57619 2006-07-22  Bruno Haible  <bruno@clisp.org>
57620
57621         Merge from GNU gettext 0.15.
57622
57623         2006-03-25  Bruno Haible  <bruno@clisp.org>
57624
57625                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
57626
57627         2006-07-21  Bruno Haible  <bruno@clisp.org>
57628
57629                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
57630                 "1.1".
57631
57632         2006-05-09  Bruno Haible  <bruno@clisp.org>
57633
57634                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
57635                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
57636                 for the conftestver execution.
57637
57638         2006-05-01  Bruno Haible  <bruno@clisp.org>
57639
57640                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
57641                 optional target-version argument. Verify that the compiler
57642                 groks source of the specified source-version, or add -source
57643                 option as necessary. Verify that the compiler produces
57644                 bytecode in the specified target-version, or add -target and
57645                 -source options as necessary. Make the result of the test
57646                 available as variable CONF_JAVAC. Also log error output in
57647                 config.log.
57648
57649         2006-03-11  Bruno Haible  <bruno@clisp.org>
57650
57651                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
57652
57653         2006-05-09  Bruno Haible  <bruno@clisp.org>
57654
57655                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
57656                 CLASSPATH_SEPARATOR to a semicolon.
57657
57658         2006-03-12  Bruno Haible  <bruno@clisp.org>
57659
57660                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
57661                 available as variable CONF_JAVA, for subsequent autoconf
57662                 tests. Also log error output in config.log.
57663
57664         2006-07-19  Bruno Haible  <bruno@clisp.org>
57665
57666                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
57667                 that getline works on glibc2 systems. Needed to avoid trouble
57668                 in relocatable.c.
57669                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
57670
57671         2005-12-04  Bruno Haible  <bruno@clisp.org>
57672
57673                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
57674                 launcher (untested).
57675
57676         2005-12-04  Bruno Haible  <bruno@clisp.org>
57677
57678                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
57679
57680         2006-07-22  Bruno Haible  <bruno@clisp.org>
57681
57682                 * gettext.m4: Update from GNU gettext-0.15.
57683                 * nls.m4: Likewise.
57684                 * po.m4: Likewise.
57685                 * inttypes-pri.m4: Likewise.
57686                 * inttypes-h.m4: Renamed from inttypes.m4.
57687                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
57688
57689 2006-07-22  Bruno Haible  <bruno@clisp.org>
57690
57691         Merge from GNU gettext 0.15.
57692
57693         2005-07-05  Bruno Haible  <bruno@clisp.org>
57694
57695                 * printf-args.c (printf_fetchargs): Work around broken
57696                 definition of wint_t on mingw.
57697
57698         2005-02-12  Bruno Haible  <bruno@clisp.org>
57699
57700                 * xallocsa.h: Add extern "C" for C++.
57701
57702         2006-05-17  Bruno Haible  <bruno@clisp.org>
57703
57704                 Cygwin portability.
57705                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
57706
57707         2006-04-30  Bruno Haible  <bruno@clisp.org>
57708
57709                 * progreloc.c: Include <mach-o/dyld.h> if available.
57710                 (find_executable): Use _NSGetExecutablePath when possible.
57711
57712         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57713
57714                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
57715                 function.
57716
57717         2005-12-29  Bruno Haible  <bruno@clisp.org>
57718
57719                 * progreloc.c (set_program_name_and_installdir): Fix
57720                 compilation error.
57721
57722         2005-12-04  Bruno Haible  <bruno@clisp.org>
57723
57724                 Cygwin portability.
57725                 * progreloc.c: Include <windows.h> also on Cygwin.
57726                 (find_executable): Add support for Cygwin.
57727                 (set_program_name_and_installdir): Handle also platforms with
57728                 nonempty EXEEXT.
57729
57730         2006-07-11  Bruno Haible  <bruno@clisp.org>
57731
57732                 * javacomp.c: Fix a comment.
57733                 Reported by Jim Meyering.
57734
57735         2006-04-30  Bruno Haible  <bruno@clisp.org>
57736
57737                 * javacomp.h (compile_java_class): Add source_version,
57738                 target_version arguments.
57739                 * javacomp.c: Rewritten to choose only a compiler that
57740                 respects the specified source_version and target_version.
57741
57742         2006-06-27  Bruno Haible  <bruno@clisp.org>
57743
57744                 Assume correct S_ISDIR macro.
57745                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
57746
57747         2006-07-22  Bruno Haible  <bruno@clisp.org>
57748
57749                 * javaversion.h: New file, from GNU gettext.
57750                 * javaversion.c: New file, from GNU gettext.
57751                 * javaversion.java: New file, from GNU gettext.
57752                 * javaversion.class: New file, from GNU gettext.
57753
57754         2006-05-17  Bruno Haible  <bruno@clisp.org>
57755
57756                 Cygwin portability.
57757                 * javaexec.c (execute_java_class): Test for jview program
57758                 also on Cygwin.
57759
57760         2006-04-09  Bruno Haible  <bruno@clisp.org>
57761
57762                 * fatal-signal.c: Don't include string.h.
57763                 (at_fatal_signal): Use a copying loop instead of memcpy.
57764
57765         2005-12-04  Bruno Haible  <bruno@clisp.org>
57766
57767                 * csharpexec.c: Add support for 'clix' launcher (untested).
57768                 (execute_csharp_using_sscli): New function.
57769                 (execute_csharp_program): Call it.
57770
57771         2006-06-21  Bruno Haible  <bruno@clisp.org>
57772
57773                 Avoid warnings from recent versions of mcs.
57774                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
57775                 -o, -L, -r any more. Use options documented since mcs-1.0
57776                 instead. Similarly for -g.
57777
57778         2005-07-09  Bruno Haible  <bruno@clisp.org>
57779
57780                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
57781                 add a .dll suffix.
57782                 Reported by Mark Junker <mjscod@gmx.de>.
57783
57784         2006-06-17  Bruno Haible  <bruno@clisp.org>
57785
57786                 * config.charset: Update for NetBSD 3.0.
57787
57788         2006-05-17  Bruno Haible  <bruno@clisp.org>
57789
57790                 Cygwin portability.
57791                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
57792
57793         2006-05-16  Bruno Haible  <bruno@clisp.org>
57794
57795                 * localcharset.c [CYGWIN]: Include <windows.h>.
57796                 (get_charset_aliases): For Cygwin, return the same CPxxx
57797                 aliases list as under WIN32.
57798                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
57799                 the environment variables. Fall back to GetACP().
57800
57801         2006-04-05  Bruno Haible  <bruno@clisp.org>
57802
57803                 * config.charset: Update Juan Manuel Guerrero's address.
57804
57805         2005-02-12  Bruno Haible  <bruno@clisp.org>
57806
57807                 * allocsa.h: Add extern "C" for C++.
57808
57809         2005-02-10  Bruno Haible  <bruno@clisp.org>
57810
57811                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
57812                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
57813
57814         2006-07-22  Bruno Haible  <bruno@clisp.org>
57815
57816                 * gettext.h: Update to GNU gettext-0.15.
57817
57818 2006-07-22  Bruno Haible  <bruno@clisp.org>
57819
57820         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
57821         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
57822         lib-prefix.m4, longdouble.m4, ssize_t.m4.
57823
57824 2006-07-21  Eric Blake  <ebb9@byu.net>
57825
57826         * modules/stdlib-safer: New file.
57827         * MODULES.html.sh (File stream based Input/Output): Add
57828         stdlib-safer.
57829
57830 2006-07-21  Eric Blake  <ebb9@byu.net>
57831
57832         * lib/stdlib-safer.h: New file from coreutils, required by
57833         stdlib--.h.
57834
57835 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
57836
57837         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
57838
57839 2006-07-20  Bruno Haible  <bruno@clisp.org>
57840
57841         * gnulib-tool: Recognize new option --assume-autoconf.
57842         (autoconf_minversion): New variable.
57843         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
57844
57845 2006-07-20  Bruno Haible  <bruno@clisp.org>
57846
57847         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
57848
57849 2006-07-19  Derek R. Price  <derek@ximbiot.com>
57850
57851         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
57852         Reindent and repaginate.
57853
57854 2006-07-19  Derek Price  <derek@ximbiot.com>
57855
57856         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
57857         Correct grammar.
57858
57859 2006-07-17  Bruno Haible  <bruno@clisp.org>
57860
57861         * modules/list: New file.
57862         * modules/array-list: New file.
57863         * modules/carray-list, modules/carray-list-tests: New files.
57864         * modules/linked-list, modules/linked-list-tests: New files.
57865         * modules/avltree-list, modules/avltree-list-tests: New files.
57866         * modules/rbtree-list, modules/rbtree-list-tests: New files.
57867         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
57868         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
57869         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
57870         * modules/oset: New file.
57871         * modules/array-oset: New file.
57872         * modules/avltree-oset, modules/avltree-oset-tests: New files.
57873         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
57874         * tests/test-carray_list.c: New file.
57875         * tests/test-linked_list.c: New file.
57876         * tests/test-avltree_list.c: New file.
57877         * tests/test-rbtree_list.c: New file.
57878         * tests/test-linkedhash_list.c: New file.
57879         * tests/test-avltreehash_list.c: New file.
57880         * tests/test-rbtreehash_list.c: New file.
57881         * tests/test-avltree_oset.c: New file.
57882         * tests/test-rbtree_oset.c: New file.
57883         * MODULES.html.sh (Container data structures): New section.
57884
57885 2006-07-17  Bruno Haible  <bruno@clisp.org>
57886
57887         * m4/gl_list.m4: New file.
57888
57889 2006-07-17  Bruno Haible  <bruno@clisp.org>
57890
57891         * lib/gl_list.h: New file.
57892         * lib/gl_list.c: New file.
57893         * lib/gl_array_list.h: New file.
57894         * lib/gl_array_list.c: New file.
57895         * lib/gl_carray_list.h: New file.
57896         * lib/gl_carray_list.c: New file.
57897         * lib/gl_linked_list.h: New file.
57898         * lib/gl_linked_list.c: New file.
57899         * lib/gl_anylinked_list1.h: New file.
57900         * lib/gl_anylinked_list2.h: New file.
57901         * lib/gl_avltree_list.h: New file.
57902         * lib/gl_avltree_list.c: New file.
57903         * lib/gl_anyavltree_list1.h: New file.
57904         * lib/gl_anyavltree_list2.h: New file.
57905         * lib/gl_rbtree_list.h: New file.
57906         * lib/gl_rbtree_list.c: New file.
57907         * lib/gl_anyrbtree_list1.h: New file.
57908         * lib/gl_anyrbtree_list2.h: New file.
57909         * lib/gl_anytree_list1.h: New file.
57910         * lib/gl_anytree_list2.h: New file.
57911         * lib/gl_linkedhash_list.h: New file.
57912         * lib/gl_linkedhash_list.c: New file.
57913         * lib/gl_anyhash_list1.h: New file.
57914         * lib/gl_anyhash_list2.h: New file.
57915         * lib/gl_avltreehash_list.h: New file.
57916         * lib/gl_avltreehash_list.c: New file.
57917         * lib/gl_rbtreehash_list.h: New file.
57918         * lib/gl_rbtreehash_list.c: New file.
57919         * lib/gl_anytreehash_list1.h: New file.
57920         * lib/gl_anytreehash_list2.h: New file.
57921
57922         * lib/gl_oset.h: New file.
57923         * lib/gl_oset.c: New file.
57924         * lib/gl_array_oset.h: New file.
57925         * lib/gl_array_oset.c: New file.
57926         * lib/gl_avltree_oset.h: New file.
57927         * lib/gl_avltree_oset.c: New file.
57928         * lib/gl_rbtree_oset.h: New file.
57929         * lib/gl_rbtree_oset.c: New file.
57930         * lib/gl_anytree_oset.h: New file.
57931
57932 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
57933
57934         * m4/mkancesdirs.m4: New file.
57935         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
57936         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
57937         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
57938         it.
57939
57940 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
57941
57942         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
57943         * lib/mkancesdirs.h: New files.
57944         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
57945         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
57946         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
57947         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
57948         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
57949         callers changed.  Revamp internals significantly, by not
57950         attempting to create directories that are temporarily more
57951         permissive than the final results.  Do not attempt to use
57952         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
57953         This removes some race conditions, fixes some bugs, and simplifies
57954         things.  Use new dirchownmod function to do owner and mode changes.
57955         * lib/mkdir-p.h: Likewise.
57956         * lib/modechange.c (octal_to_mode): New function.
57957         (struct mode_change): New member mentioned.
57958         (make_node_op_equals): New arg mentioned.  All callers changed.
57959         (mode_compile): Keep track of which mode bits the user has explicitly
57960         mentioned.
57961         (mode_adjust): New arg DIR, so that we implement the X op correctly.
57962         New arg PMODE_BITS, to keep track of which mode bits the user
57963         mentioned; it treats S_ISUID and S_ISGID speciall.
57964         All callers changed.
57965         * lib/modechange.h: Likewise.
57966
57967 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
57968
57969         * MODULES.html.sh: Add mkancestors.
57970         * modules/mkancesdirs: New module.
57971         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
57972         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
57973         The chdir-safer and afs files are now orphans; I'll remove them
57974         unless someone speaks up.
57975         Add lib/dirchownmod.c, lib/dirchownmod.h.
57976         (Depends-on): Remove alloca, chown, save-cwd, dirname.
57977         Add lchown, mkancesdirs.
57978         (Maintainer): Add self.
57979
57980 2006-07-15  Karl Berry  <karl@gnu.org>
57981
57982         * gnulib-tool: help message wording/arrangement.
57983
57984 2006-07-14  Simon Josefsson  <jas@extundo.com>
57985
57986         * doc/gnulib.texi (Libtool and Windows): New section.
57987
57988 2006-07-12  Simon Josefsson  <jas@extundo.com>
57989
57990         * modules/gendocs (License): Fix license, approved by Karl.
57991
57992 2006-07-12  Eric Blake  <ebb9@byu.net>
57993
57994         * MODULES.html.sh: Add gendocs.
57995
57996 2006-07-11  Eric Blake  <ebb9@byu.net>
57997
57998         * modules/fdl: New module, to install doc/fdl.texi.
57999         * MODULES.html.sh: Add new section for documentation modules.
58000         * gnulib-tool: Avoid space-tab.
58001         (--doc-base): New option, to manage files from doc.
58002
58003 2006-07-11  Eric Blake  <ebb9@byu.net>
58004
58005         * m4/absolute-header.m4: Fix comments to match recent change.
58006
58007 2006-07-11  Eric Blake  <ebb9@byu.net>
58008
58009         * gnulib-tool: List --doc-base before --tests-base.
58010
58011 2006-07-11  Derek R. Price  <derek@ximbiot.com>
58012
58013         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
58014
58015 2006-07-11  Bruno Haible  <bruno@clisp.org>
58016
58017         * README: Mention where to put documentation.
58018
58019 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58020
58021         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
58022
58023 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
58024
58025         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
58026         to stdint.m4.
58027
58028 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
58029
58030         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
58031         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
58032         "no/such/file/stdint.h" when there is no such file, so that
58033         the resulting C code can be parsed by dodgy compilers.
58034         Problems reported by Bob Proulx.
58035
58036 2006-07-10  Derek R. Price  <derek@ximbiot.com>
58037
58038         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
58039         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
58040         macros into the GNU _D_EXACT_NAMLEN.
58041         * lib/savedir.c:  Likewise.
58042         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
58043
58044 2006-07-10  Derek R. Price  <derek@ximbiot.com>
58045         and Paul Eggert  <eggert@cs.ucla.edu>
58046
58047         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
58048         * m4/savedir.m4:
58049         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
58050         macros into the GNU _D_EXACT_NAMLEN.
58051
58052 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58053
58054         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
58055         around the absolute name, to work around a problem with the HP-UX
58056         11.23 native C compiler, reported by Bob Proulx.
58057
58058 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58059
58060         * doc/maintain.texi, make-stds.texi: Sync from
58061         <http://savannah.gnu.org/projects/gnustandards>.
58062
58063 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58064
58065         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
58066
58067 2006-07-09  Jim Meyering  <jim@meyering.net>
58068
58069         * m4/glob.m4: Remove a doubled word in a comment.
58070
58071 2006-07-09  Jim Meyering  <jim@meyering.net>
58072
58073         * lib/argp-pv.c: Remove a doubled word in a comment.
58074         * lib/check-version.c (check_version): Likewise.
58075         * lib/javacomp.c (compile_java_class): Likewise.
58076
58077 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
58078
58079         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
58080         for the benefit of people using Autoconf 2.60.  If you want to
58081         support older Autoconf versions you can copy m4/onceonly_2_57.m4
58082         (or m4/onceonly.m4, if pre-2.57) manually.
58083
58084 2006-07-08  Jim Meyering  <jim@meyering.net>
58085
58086         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
58087         comment.
58088         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
58089         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
58090         comment.
58091
58092 2006-07-08  Jim Meyering  <jim@meyering.net>
58093
58094         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
58095
58096 2006-07-07  Simon Josefsson  <jas@extundo.com>
58097
58098         * tests/test-crc.c: Change expected crc value, the test vector
58099         were probably computed using the old broken crc.c?
58100
58101 2006-07-06  Simon Josefsson  <jas@extundo.com>
58102
58103         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
58104         now the canonical place for the M4 file).
58105
58106         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
58107         from the sys_socket dependency now.
58108
58109         * modules/inet_pton (Files): Ditto.
58110
58111         * modules/inet_ntop (Files): Ditto.
58112
58113 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58114
58115         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
58116         not gl_PREREQ_GETUSERSHELL.
58117
58118 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58119
58120         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
58121         with only one argument, for Autoconf 2.60.
58122         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
58123         expand to nothing, so add a shell command to avoid syntax error.
58124         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
58125
58126 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58127
58128         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
58129
58130 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58131
58132         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
58133         no longer needed.  Check for isblank decl.
58134         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
58135         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
58136         of existence.
58137
58138 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58139
58140         * lib/getloadavg.c: Use __VMS, not VMS.
58141         * lib/getopt.c: Likewise.
58142         * lib/getpagesize.h: Likewise.
58143         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
58144         and probably does not work.
58145
58146 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58147
58148         * lib/.cppi-disable: Add wcwidth.
58149         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
58150         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
58151         (ISGRAPH): Remove.  All uses changed to isgraph.
58152         (FOLD) [!defined _LIBC]: Remove special case.
58153         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
58154         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
58155         HAVE_ISBLANK.
58156         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
58157         case.
58158
58159 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
58160
58161         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
58162         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
58163         brackets.  Other minor changes to suppress some compiler
58164         warnings.
58165
58166 2006-07-06  Derek R. Price  <derek@ximbiot.com>
58167         and Paul Eggert  <eggert@cs.ucla.edu>
58168
58169         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
58170         of invoking obsolescent AC_HEADER_DIRENT macro.
58171         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
58172         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
58173         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
58174         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
58175         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
58176         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58177         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
58178         * m4/readdir.m4: Remove; no longer needed.
58179
58180 2006-07-06  Derek R. Price  <derek@ximbiot.com>
58181         and Paul Eggert  <eggert@cs.ucla.edu>
58182
58183         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
58184         Don't worry about this obsolete case any more.
58185         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
58186         directories.
58187         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
58188         worry about this obsolete case any more.
58189         * lib/fts.c: Likewise.
58190         * lib/getcwd.c: Likewise.
58191         * lib/glob.h: Likewise.
58192         * lib/savedir.c: Likewise.
58193
58194 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58195
58196         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
58197         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
58198         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
58199         needed.
58200         All uses removed.
58201         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
58202         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
58203         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
58204         needed.
58205         * m4/getdate.m4 (gl_GETDATE): Likewise.
58206         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
58207         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
58208         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
58209         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
58210         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
58211         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58212         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
58213         needed.
58214
58215 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58216
58217         * lib/memcasecmp.c: Include <limits.h>.
58218         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
58219         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
58220         Don't assume isdigit succeeds only on '0' through '9'.
58221
58222 2006-07-05  Eric Blake  <ebb9@byu.net>
58223
58224         * modules/getaddrinfo (Depends-on): Add snprintf.
58225
58226 2006-07-05  Eric Blake  <ebb9@byu.net>
58227
58228         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
58229         to avoid 'header present but could not be compiled' on cygwin.
58230
58231 2006-07-05  Eric Blake  <ebb9@byu.net>
58232
58233         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
58234         missing from netdb.h.
58235         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
58236
58237 2006-07-05  Derek R. Price  <derek@ximbiot.com>
58238
58239         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
58240         no longer needed.
58241         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
58242         * m4/getdate.m4 (gl_GETDATE): Likewise.
58243         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
58244         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
58245         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
58246         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
58247         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58248
58249 2006-07-05  Derek R. Price  <derek@ximbiot.com>
58250
58251         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
58252         All uses of is_space replaced by isspace.
58253         * lib/exit.h: Don't talk about STDC_HEADERS.
58254         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
58255         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
58256         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
58257         replaced by isprint etc.
58258         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
58259         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
58260         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
58261         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
58262         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
58263         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
58264
58265 2006-07-05  Bruno Haible  <bruno@clisp.org>
58266
58267         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
58268         the function exists, before testing against AIX.
58269         Reported by Martin Lambers <marlam@marlam.de>.
58270
58271 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
58272
58273         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
58274         From Mark D. Baushke.
58275
58276 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
58277
58278         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
58279         to the absolute name, not just one, to bypass Sun C 5.8's
58280         "warning: #include of /usr/include/... may be non-portable".
58281
58282 2006-07-04  Eric Blake  <ebb9@byu.net>
58283
58284         * modules/dirname-tests: New test module.
58285         * tests/test-dirname.c: New file, replacing dirname.c
58286         TEST_DIRNAME section that was recently deleted.
58287
58288 2006-07-04  Bruno Haible  <bruno@clisp.org>
58289
58290         Assume ANSI C header files and <ctype.h> functions.
58291         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
58292         (mbsnwidth): Use isprint, iscntrl instead.
58293
58294 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58295
58296         Merge from coreutils.
58297         * MODULES.html.sh: Add xstrtold.
58298         * modules/xstrtold: New file.
58299         * modules/cycle-check (Files): Add lib/same-inode.h.
58300         * modules/dirname (Files): Add m4/double-slash-root.m4.
58301         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
58302         * modules/mkdir-p (Files): Add lib/same-inode.h.
58303         * modules/same (Files): Add lib/same-inode.h.
58304
58305 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58306
58307         * m4/absolute-header.m4: Renamed from full-header-path.m4.
58308         This is to keep the terminology clean; POSIX talks about
58309         "absolute pathnames", not "full pathnames", but the GNU
58310         Coding Standards say to use "path" for something else;
58311         so use "absolute" to keep both sides happy.
58312         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
58313         Set gl_absolute_header, not gl_full_header_path.
58314         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
58315         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
58316         All uses changed.
58317
58318         Merge from coreutils.
58319
58320         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
58321
58322         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
58323         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
58324         want to require the building of c-strtod.o.
58325         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
58326         needs -lm directly.
58327         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
58328
58329         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
58330
58331         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
58332         --as-needed option if available.  Problem reported by Albert Chin in
58333         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
58334         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
58335         cc merely issues a bunch of annoying warnings for --as-needed
58336         (this problem was reported by Bob Proulx).  Also, try linking with
58337         -lm to detect a bug in binutils 2.16 (this problem was reported
58338         by Ralf Wildenhues).
58339
58340         2006-06-18  Jim Meyering  <jim@meyering.net>
58341
58342         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
58343         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
58344         macro.
58345         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
58346         also check for glibc-2.4's abort-inducing bug.
58347
58348         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
58349         Low-probability clean-up should be to use rmdir to get rid of
58350         the just-created directory, not unlink.
58351
58352         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
58353         configure fail, and request a bug report to inform us about it.
58354         Add a comment that, barring reports to the contrary, in 2007 we'll
58355         assume ftruncate is universally available.
58356
58357         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
58358
58359         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
58360
58361         2006-03-12  Jim Meyering  <jim@meyering.net>
58362
58363         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
58364         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
58365         * m4/same.m4 (gl_SAME): Likewise.
58366         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
58367
58368         2006-03-11  Eric Blake  <ebb9@byu.net>
58369
58370         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
58371         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
58372         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
58373         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
58374
58375 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58376
58377         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
58378         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
58379         reported by Mark D. Baushke, one in
58380         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
58381
58382         Merge from coreutils.
58383
58384         * lib/.cppi-disable: Add stdint_.h.
58385         * lib/.cvsignore: Add stdint.h.
58386
58387         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
58388
58389         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
58390         both double and long double versions.
58391         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
58392         * lib/xstrtold.c: New file.
58393         * lib/xstrtod.h (xstrtold): New decl.
58394
58395         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
58396
58397         * lib/filemode.c (setst): Remove.
58398         (strmode): Rewrite to avoid setst.  This makes the code shorter,
58399         (arguably) clearer, and the generated code is a bit smaller on my
58400         Debian GNU/Linux stable x86 host.
58401
58402         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
58403
58404         * lib/filemode.c: Include "filemode.h" first, to test the interface.
58405         Assume that filemode.h includes sys/types.h and sys/stat.h.
58406         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
58407         (ftypelet): Reorder to put common cases first, for efficiency.
58408         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
58409         to do 'M'.
58410         (strmode): Renamed from mode_string, and now stores 12 bytes instead
58411         of 10, for compatibility with FreeBSD.  All callers changed.
58412         (filemodestring): Now stores 12 bytes instead of 10, and sets file
58413         types that can't be deduced solely from st_mode.  First arg is now a
58414         const pointer.
58415         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
58416         (strmode): Renamed from mode_string.
58417         (filemodestring): New decl.
58418         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
58419         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
58420         needed.
58421         (S_ISPORT, S_ISWHT): New macros, if not already defined.
58422
58423         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
58424
58425         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
58426         fsusage.h now does that.  Include fsusage.h first, to test interface.
58427         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
58428         at most one method (the old code could have generated decls that
58429         didn't conform to C89, not that this was ever exercised).
58430         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
58431
58432         2006-03-19  Jim Meyering  <jim@meyering.net>
58433
58434         Work even in a chroot where d_ino values for entries in "/"
58435         don't match the stat.st_ino values for the same names.
58436         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
58437         number, iterate through all entries again, using lstat instead.
58438         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
58439         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
58440
58441         * lib/getcwd.c (__getcwd): Clarify a comment.
58442         Use memcpy in place of a call to strcpy.
58443
58444         2006-03-12  Jim Meyering  <jim@meyering.net>
58445
58446         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
58447         matches that of the current directory (which we're about to chdir ".."
58448         out of), then save the dev-ino of the parent, instead.
58449
58450         * lib/same-inode.h (SAME_INODE): New file/macro.
58451         * lib/chdir-safer.c (SAME_INODE): Remove definition.
58452         Include "same-inode.h", instead.
58453         * lib/same.c: Likewise.
58454         * lib/cycle-check.h: Include "same-inode.h".
58455         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
58456         * lib/cycle-check.c (SAME_INODE): Remove definition.
58457         * lib/root-dev-ino.h: Include "same-inode.h".
58458
58459         2006-03-11  Eric Blake  <ebb9@byu.net>
58460
58461         * lib/same.c (same_name): s/base_name/last_component/
58462         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
58463         * lib/filenamecat.c (file_name_concat): Likewise.
58464
58465         2006-03-11  Eric Blake  <ebb9@byu.net>,
58466                     Paul Eggert  <eggert@cs.ucla.edu>
58467
58468         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
58469         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
58470         drive prefix.
58471         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
58472         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
58473         (last_component): New method.
58474         * lib/dirname.c (dir_len): Determine when drive letters need a
58475         subsequent slash.  Preserve // when it is special.
58476         (dir_name): Don't append dot when drive letter is absolute.
58477         [TEST_DIRNAME]: Move into a full-blown gnulib test.
58478         * lib/basename.c (base_name): New semantics - malloc the result.
58479         Preserve // when it is special.  Preserve relative files that look
58480         like drive letters.
58481         (base_len): Preserve // when it is special.
58482         (last_component): New method, similar to old base_name semantics.
58483         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
58484         base_name.  Strip redundant slashes from ///.
58485
58486 2006-07-03  Jim Meyering  <jim@meyering.net>
58487
58488         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
58489         macro is used before the first cycle_check call.
58490
58491 2006-07-03  Eric Blake  <ebb9@byu.net>
58492
58493         * modules/dirname (Depends-on): Add xstrndup.
58494
58495 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58496
58497         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
58498         test cases, so that config.log is a bit easier to follow.
58499
58500 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58501
58502         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
58503         both are 64 bits, since this seems to be the tradition, and this
58504         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
58505         we ever run into a host that prefers long long to long in this
58506         case, we'll need another configure-time test.  Problem reported by
58507         Jim Meyering.
58508
58509 2006-07-02  Eric Blake  <ebb9@byu.net>
58510
58511         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
58512
58513 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58514
58515         * modules/inttypes (Depends-on): No longer depends on stdint.
58516         * modules/stdint (Description): Say more about assumptions.
58517         Say that the fast types might differ.  Say macros are used.
58518         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
58519         (Makefile.am): Revise list of substituted symbols to match
58520         new stdint.m4.
58521         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
58522         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
58523         * tests/test-stdint.c (verify_same_types)
58524         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
58525         the code conforms to C99/C89.
58526         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
58527         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
58528
58529 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58530
58531         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
58532         but fix a bug, by requiring at least 64 bits.
58533         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
58534         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
58535         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
58536         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
58537
58538         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
58539         changes.  Make 2.59 a prerequisite.  Check and substitute for
58540         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
58541         inttypes.h.  Do not use special include files; just use the
58542         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
58543         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
58544         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
58545         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
58546         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
58547         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
58548         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
58549         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
58550         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
58551         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
58552         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
58553         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
58554         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
58555         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
58556         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
58557         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
58558         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
58559         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
58560         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
58561         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
58562         WINT_MAX.  Check for C99 conformance more strictly, by detecting
58563         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
58564         not check for things that C99 does not require, e.g., int8_t.  If
58565         a test isn't needed unless <stdint.h> isn't working, and is
58566         unlikely to be needed for any other reason, then don't do it
58567         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
58568         size_t, since we assume C89 freestanding at least.  Do not check
58569         for sig_atomic_t, wchar_t, or wint_t, since the code now does
58570         the right thing even if the types are not defined.  Instead use:
58571         (gl_STDINT_TYPE_PROPERTIES): New macro.
58572         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
58573         testing whether <sys/types.h> clashes, as Autoconf does this for
58574         us now.  All uses removed.
58575         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
58576         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
58577         (gl_CHECK_TYPE_SAME):
58578         Remove; no longer needed.
58579         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
58580         exists, since we'll return 0 anyway in that case.
58581         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
58582
58583 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58584
58585         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
58586         possible collision with system files.
58587         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
58588         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
58589         WCHAR_MIN and WCHAR_MAX in this case.
58590         (<stddef.h>): Do not include; no longer needed.
58591         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
58592         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
58593         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
58594         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
58595         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
58596         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
58597         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
58598         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
58599         !defined(__c99))]: Include in this case too, since it's harmless
58600         now.
58601         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
58602         dangerous to do so.
58603         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
58604         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
58605         (_STDINT_MIN, _STDINT_MAX): New macros.
58606         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
58607         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
58608         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
58609         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
58610         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
58611         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
58612         macros, not typedefs; this simplifies things quite a bit.
58613         Use long int for all types narrower than int64_t.
58614         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
58615         Define in terms of long long int or int64_t or long int,
58616         not int64_t or int32_t.  This saves some compile-time testing.
58617         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
58618         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
58619         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
58620         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
58621         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
58622         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
58623         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
58624         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
58625         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
58626         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
58627         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
58628         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
58629         undef any previous version and define our own version, for
58630         simplicity and consistency with the new macros for types.
58631         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
58632         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
58633         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
58634         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
58635         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
58636         @WINT_T_SUFFIX@ to keep things simple here.
58637         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
58638         Simplify by assuming typical 8/16/32/64 host, since we're
58639         already doing that elsewhere anyway.
58640         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
58641         and assume long long int is 64 bits if available.  This
58642         speeds up 'configure'.
58643
58644 2006-07-01  Eric Blake  <ebb9@byu.net>
58645
58646         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
58647         Reported by Andreas Buening.
58648
58649 2006-07-01  Eric Blake  <ebb9@byu.net>
58650
58651         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
58652
58653 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
58654
58655         * lib/getaddrinfo.c: fixed typo
58656
58657 2006-06-29  Jim Meyering  <jim@meyering.net>
58658
58659         * modules/strftime (Maintainer): Add my name, since with the
58660         FPRINTFTIME changes strftime.c has forked from glibc.
58661
58662 2006-06-29  Eric Blake  <ebb9@byu.net>
58663
58664         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
58665
58666 2006-06-29  Eric Blake  <ebb9@byu.net>
58667
58668         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
58669
58670 2006-06-29  Eric Blake  <ebb9@byu.net>
58671
58672         * lib/stat_.h: New file.
58673
58674 2006-06-29  Eric Blake  <ebb9@byu.net>
58675
58676         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
58677         unused static function.
58678
58679 2006-06-29  Eric Blake  <ebb9@byu.net>
58680
58681         * doc/functions.texi (Function Portability): Document missing lstat
58682         on mingw.
58683
58684 2006-06-29  Eric Blake  <ebb9@byu.net>
58685
58686         * MODULES.html.sh: Add sys_stat.
58687         * modules/sys_stat: New module.
58688         * modules/mkstemp (Depends-on): Add sys_stat.
58689
58690 2006-06-29  Derek R. Price  <derek@ximbiot.com>
58691
58692         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
58693
58694 2006-06-29  Derek R. Price  <derek@ximbiot.com>
58695
58696         * m4/c-bs-a.m4: Removed.
58697
58698 2006-06-29  Derek R. Price  <derek@ximbiot.com>
58699
58700         * lib/strftime.c: Assume strftime() exists.
58701
58702 2006-06-29  Derek Price  <derek@ximbiot.com>
58703
58704         * modules/c-bs-a: Removed - \a is C89.
58705         * MODULES.html.sh: Remove c-bs-a.
58706
58707 2006-06-29  Bruno Haible  <bruno@clisp.org>
58708
58709         * modules/wcwidth (License): Change to LGPL.
58710
58711 2006-06-28  Simon Josefsson  <jas@extundo.com>
58712
58713         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
58714         on _WIN32.
58715
58716         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
58717         getnameinfo.
58718
58719 2006-06-28  Simon Josefsson  <jas@extundo.com>
58720
58721         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
58722
58723 2006-06-28  Simon Josefsson  <jas@extundo.com>
58724
58725         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
58726         functions there.  It will succeed on Windows XP, but on Windows
58727         2000 and (presumably) earlier, it will fail, and use the internal
58728         re-implementation.
58729         (use_win32_p): New function.
58730         (getaddrinfo): Use strtoul on servname, to support numeric ports.
58731         Support AI_NUMERICSERV to disable getservbyname.
58732         (getnameinfo): New function, only supports
58733         NI_NUMERICHOST|NI_NUMERICSERV for now.
58734
58735         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
58736         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
58737         getnameinfo.
58738
58739 2006-06-28  Eric Blake  <ebb9@byu.net>
58740
58741         * modules/wcwidth: New file.
58742         * modules/mbchar (Depends-on): Add wcwidth.
58743         * modules/mbswidth (Depends-on): Add wcwidth.
58744         * MODULES.html.sh: Add wcwidth.
58745
58746 2006-06-28  Eric Blake  <ebb9@byu.net>
58747
58748         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
58749         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
58750
58751 2006-06-28  Eric Blake  <ebb9@byu.net>
58752
58753         * lib/xvasprintf.h: Fix comments.
58754
58755 2006-06-28  Eric Blake  <ebb9@byu.net>
58756
58757         * lib/mbchar.h (wcwidth): Include wcwidth.h.
58758         * lib/mbswidth.c (wcwidth): Move from here...
58759         * lib/wcwidth.h: ...to this new file.
58760
58761 2006-06-28  Derek R. Price  <derek@ximbiot.com>
58762
58763         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
58764
58765         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
58766         it's obsolete.
58767         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
58768
58769 2006-06-28  Derek R. Price  <derek@ximbiot.com>
58770
58771         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
58772         Autoconf 2.60 says this stuff was obsolete.
58773
58774 2006-06-28  Bruno Haible  <bruno@clisp.org>
58775
58776         * modules/wcwidth (Files): Add m4/wchar_t.m4.
58777
58778 2006-06-28  Bruno Haible  <bruno@clisp.org>
58779
58780         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
58781         gt_TYPE_WCHAR_T.
58782
58783 2006-06-28  Bruno Haible  <bruno@clisp.org>
58784
58785         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
58786         declaration for wcwidth.
58787         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
58788
58789 2006-06-28  Bruno Haible  <bruno@clisp.org>
58790
58791         * lib/mkdtemp.c [MINGW]: Include <io.h>.
58792         (mkdir): Define using _mkdir.
58793
58794 2006-06-28  Bruno Haible  <bruno@clisp.org>
58795
58796         * lib/getaddrinfo.h: Fix POSIX URL.
58797         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
58798         _WIN32.
58799         (use_win32_p): Make static.
58800         (getaddrinfo): Reject service name if it is empty or does not consist
58801         solely of decimal digits, or if its value is > 65535.
58802         (getnameinfo): Remove useless casts.
58803
58804 2006-06-27  Simon Josefsson  <jas@extundo.com>
58805
58806         * modules/sys_select: New file, suggested by Bruno Haible, Paul
58807         Eggert and Martin Lambers.
58808
58809 2006-06-27  Simon Josefsson  <jas@extundo.com>
58810
58811         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
58812         Eggert and Martin Lambers.
58813
58814 2006-06-27  Bruno Haible  <bruno@clisp.org>
58815
58816         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
58817         result to 0, not to empty.
58818         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
58819
58820 2006-06-27  Bruno Haible  <bruno@clisp.org>
58821
58822         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
58823
58824 2006-06-26  Simon Josefsson  <jas@extundo.com>
58825
58826         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
58827         present.
58828
58829 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
58830
58831         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
58832         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
58833         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
58834
58835 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
58836
58837         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
58838
58839 2006-06-26  Bruno Haible  <bruno@clisp.org>
58840
58841         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
58842
58843 2006-06-26  Bruno Haible  <bruno@clisp.org>
58844
58845         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
58846
58847 2006-06-26  Bruno Haible  <bruno@clisp.org>
58848
58849         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
58850         SGI C compiler in pre-C99 mode.
58851         Suggested by Mark D. Baushke and Larry Jones.
58852
58853 2006-06-26  Bruno Haible  <bruno@clisp.org>
58854
58855         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
58856         WCHAR_MAX.
58857         Reported by Mark D. Baushke and Larry Jones.
58858
58859 2006-06-26  Bruno Haible  <bruno@clisp.org>
58860
58861         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
58862         in pre-C99 mode.
58863         Suggested by Mark D. Baushke and Larry Jones.
58864
58865 2006-06-23  Simon Josefsson  <jas@extundo.com>
58866             Bruno Haible  <bruno@clisp.org>
58867
58868         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
58869         Emit mostlyclean-local rule.
58870         (func_emit_tests_Makefile_am): Likewise.
58871         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
58872
58873 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
58874
58875         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
58876
58877 2006-06-23  Bruno Haible  <bruno@clisp.org>
58878
58879         * tests/test-stdint.c: Update to match ISO C 99 Technical
58880         Corrigendum 1.
58881
58882 2006-06-23  Bruno Haible  <bruno@clisp.org>
58883
58884         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
58885
58886 2006-06-23  Bruno Haible  <bruno@clisp.org>
58887
58888         * lib/stdint_.h: Treat IRIX like OpenBSD.
58889
58890 2006-06-23  Bruno Haible  <bruno@clisp.org>
58891
58892         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
58893         ISO C 99 Technical Corrigendum 1.
58894
58895 2006-06-22  Simon Josefsson  <jas@extundo.com>
58896
58897         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
58898         MinGW.
58899
58900 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58901
58902         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
58903         needed.  Some compiler complained about some of them.  Problem reported
58904         by Larry Jones in
58905         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
58906
58907 2006-06-21  Simon Josefsson  <jas@extundo.com>
58908
58909         * tests/test-getaddrinfo.c: New file.
58910
58911         * modules/getaddrinfo-tests: New file.
58912
58913         * MODULES.html.sh: Add inet_pton.
58914
58915         * modules/inet_pton: New file.
58916
58917 2006-06-21  Simon Josefsson  <jas@extundo.com>
58918
58919         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
58920         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
58921         of using the (limited) gnulib implementation on Windows XP.
58922
58923         * m4/inet_pton.m4: New file.
58924
58925 2006-06-21  Simon Josefsson  <jas@extundo.com>
58926
58927         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
58928         variable.
58929
58930         * lib/socket_.h: Don't define WINVER.
58931
58932         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
58933         slightly modified to work in gnulib.
58934
58935 2006-06-21  Simon Josefsson  <jas@extundo.com>
58936
58937         * doc/gnulib.texi (Windows sockets): Add.
58938
58939 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58940
58941         * lib/read-file.c (fread_file): Start with buffer allocation of
58942         0 bytes rather than 1 byte; this simplifies the code.
58943         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
58944         code to free buffer and save/restore errno.
58945         (internal_read_file): Remove unused local.
58946
58947 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58948
58949         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
58950         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
58951         Problem reported by Denis Excoffier in
58952         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
58953
58954 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58955
58956         * modules/sys_socket, modules/socklen: Include sys/types since
58957         FreeBSD 4.x's sys/socket.h needs it.
58958
58959 2006-06-19  Simon Josefsson  <jas@extundo.com>
58960
58961         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
58962
58963 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
58964
58965         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
58966
58967 2006-06-19  Bruno Haible  <bruno@clisp.org>
58968
58969         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
58970         and FULL_PATH_INTTYPES_H in angle brackets.
58971         Reported by Mark D. Baushke <mdb@gnu.org>.
58972
58973 2006-06-17  Eric Blake  <ebb9@byu.net>
58974
58975         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
58976         errno.
58977
58978 2006-06-17  Bruno Haible  <bruno@clisp.org>
58979
58980         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
58981         <sys/inttypes.h>.
58982
58983 2006-06-17  Bruno Haible  <bruno@clisp.org>
58984
58985         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
58986         whether errno is declared. Assume <errno.h> declares errno.
58987
58988 2006-06-17  Bruno Haible  <bruno@clisp.org>
58989
58990         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
58991
58992 2006-06-17  Bruno Haible  <bruno@clisp.org>
58993
58994         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
58995         problem on Solaris 2.5.1.
58996
58997 2006-06-16  Eric Blake  <ebb9@byu.net>
58998
58999         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
59000         * lib/unicodeio.c [!defined errno]: Likewise.
59001         * lib/strtol.c [!defined errno]: Likewise.
59002         * lib/strtod.c [!defined errno]: Likewise.
59003
59004 2006-06-15  Eric Blake  <ebb9@byu.net>
59005
59006         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
59007
59008 2006-06-15  Eric Blake  <ebb9@byu.net>
59009
59010         * config/srclist.txt (ssize_t.m4): Lose sync.
59011
59012 2006-06-15  Bruno Haible  <bruno@clisp.org>
59013
59014         * modules/stdint (Files): Include m4/full-header-path.m4,
59015         m4/size_max.m4, m4/wchar_t.m4.
59016         (Makefile.am): Many more substitutions.
59017         * modules/stdint-tests: New file.
59018         * tests/test-stdint.c: New file.
59019
59020 2006-06-15  Bruno Haible  <bruno@clisp.org>
59021
59022         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
59023         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
59024         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
59025         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
59026         gl_CHECK_TYPE_SAME): New macros.
59027
59028 2006-06-15  Bruno Haible  <bruno@clisp.org>
59029
59030         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
59031
59032 2006-06-15  Bruno Haible  <bruno@clisp.org>
59033
59034         * lib/stdint_.h: Rewritten to be fully auto-configured.
59035         Fixes bug on HP-UX/IA64.
59036
59037 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
59038
59039         * lib/getdate.y (__attribute__): Don't define if already defined.
59040         Problem reported by Larry Jones.
59041         * lib/utimens.c (__attribute__): Likewise.
59042
59043 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
59044
59045         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
59046         reported by Andreas Schwab.
59047
59048 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59049             Bruno Haible  <bruno@clisp.org>
59050
59051         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
59052         check for the declaration of strnlen and a run test that exposes the
59053         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
59054         rpl_strndup.
59055
59056 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59057             Bruno Haible  <bruno@clisp.org>
59058
59059         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
59060
59061 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59062
59063         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
59064         compile test, for Tru64 4.0D.
59065
59066 2006-05-28  Karl Berry  <karl@gnu.org>
59067
59068         * config/srclist.txt (printf-args.c): lose sync.
59069
59070 2006-05-26  Martin Lambers  <marlam@marlam.de>
59071
59072         * lib/getpass.c: Updates the test for the native W32 API, and adds
59073         missing includes, thus fixing compilation warnings.
59074
59075 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
59076
59077         * lib/exclude.c (exclude_fnmatch): New function.
59078         (excluded_file_name): Call exclude_fnmatch.
59079         * lib/exclude.h (excluded_file_name): New prototype
59080
59081 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
59082
59083         * lib/tempname.c (small_open, large_open): New macros.
59084         (__open, __open64) [!_LIBC]: Remove.
59085         (__gen_tempname): Use small_open and large_open instead of __open
59086         and __open64.  This fixes a portability bug on HP-UX 11.11i
59087         reported by Simon Wing-Tang in
59088         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
59089
59090 2006-05-24  Bruno Haible  <bruno@clisp.org>
59091
59092         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
59093         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
59094         Reported by Thorsten Maerz <torte@netztorte.de> via
59095         Aaron Stone <aaron@serendipity.cx>.
59096
59097 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
59098
59099         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
59100         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
59101         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
59102         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
59103         not really conditional on the cache.
59104         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
59105
59106 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
59107
59108         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
59109         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
59110         (my_usleep): Don't mishandle maximum value.
59111
59112 2006-05-19  Jim Meyering  <jim@meyering.net>
59113
59114         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
59115
59116 2006-05-17  Bruno Haible  <bruno@clisp.org>
59117
59118         Cygwin portability.
59119         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
59120
59121 2006-05-17  Bruno Haible  <bruno@clisp.org>
59122
59123         * lib/stdint_.h: Fix recognition of Cygwin.
59124
59125 2006-05-15  Bruno Haible  <bruno@clisp.org>
59126
59127         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
59128         on libtool patch by Ralf Wildenhues.
59129
59130 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59131
59132         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
59133         test for C99 conformance; (bool) 0.5 is an integer constant
59134         expression, but (bool) -0.5 is not.  Problem reported by Fedor
59135         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
59136
59137 2006-05-11  Simon Josefsson  <jas@extundo.com>
59138
59139         * m4/xvasprintf.m4: Fix obvious typo.
59140
59141 2006-05-11  Jim Meyering  <jim@meyering.net>
59142
59143         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
59144         James Lemley.
59145
59146 2006-05-10  Simon Josefsson  <jas@extundo.com>
59147
59148         * lib/md4.c: Typo fix, update copyright years.
59149         (K1, K2): Don't use L because it turn computations into 64-bit on
59150         64-bit platforms.
59151
59152 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
59153
59154         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
59155         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
59156         unwanted sign propagation, e.g., on hosts with 64-bit int.
59157         There still are some problems with reeelly weird theoretical hosts
59158         (e.g., 33-bit int) but it's not worth worrying about now.
59159         * lib/sha1.c (rol): Likewise.
59160         (K1, K2, K3, K4): Remove unnecessary L suffix.
59161
59162 2006-05-10  Bruno Haible  <bruno@clisp.org>
59163
59164         * lib/des.c: Cast to avoid warnings.
59165
59166 2006-05-09  Bruno Haible  <bruno@clisp.org>
59167
59168         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
59169         (Depends-on): Depend also on xsize, stdarg.
59170         (configure.ac): Add gl_XVASPRINTF.
59171
59172 2006-05-09  Bruno Haible  <bruno@clisp.org>
59173
59174         * m4/xvasprintf.m4: New file.
59175
59176 2006-05-09  Bruno Haible  <bruno@clisp.org>
59177
59178         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
59179         (EOVERFLOW): Define fallback value.
59180         (xstrcat): New function.
59181         (xvasprintf): Recognize the special case of a string concatenation.
59182
59183 2006-05-08  Eric Blake  <ebb9@byu.net>
59184
59185         * gnulib-tool (func_version): Base copyright year on CVS date.
59186         (func_emit_copyright_notice): New function.
59187         (func_emit_lib_Makefile_am): Use it.
59188         (func_emit_tests_Makefile_am): Likewise.
59189         (func_import): Likewise.
59190
59191 2006-05-08  Bruno Haible  <bruno@clisp.org>
59192
59193         * modules/stdarg: New file.
59194         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
59195
59196 2006-05-08  Bruno Haible  <bruno@clisp.org>
59197
59198         * m4/stdarg.m4: New file, from GNU gettext.
59199
59200 2006-05-08  Bruno Haible  <bruno@clisp.org>
59201
59202         * config/srclist.txt (build-aux/config.rpath): different from latest
59203         release.
59204
59205 2006-05-08  Bruno Haible  <bruno@clisp.org>
59206
59207         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
59208
59209 2006-05-05  Jim Meyering  <jim@meyering.net>
59210
59211         * m4/warning.m4: New file, derived from bison's file by the same name.
59212
59213 2006-05-03  Bruno Haible  <bruno@clisp.org>
59214
59215         * lib/stdint_.h: Shorter URL.
59216         * lib/inttypes.h: Likewise.
59217
59218 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59219
59220         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
59221
59222 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59223
59224         * lib/verify.h: Document the internals better.  Most of this change
59225         was written by Bruno Haible.
59226
59227 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59228
59229         * doc/verify.texi: New file, partly based on a proposal by
59230         Bruno Haible.
59231
59232 2006-05-02  Bruno Haible  <bruno@clisp.org>
59233
59234         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
59235         test from here...
59236         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
59237
59238 2006-04-29  Bruno Haible  <bruno@clisp.org>
59239
59240         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
59241         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
59242
59243 2006-04-29  Bruno Haible  <bruno@clisp.org>
59244
59245         * gnulib-tool: Make --update option actually work.
59246
59247 2006-04-29  Bruno Haible  <bruno@clisp.org>
59248
59249         * doc/gcd.texi: New file.
59250         * doc/gnulib.texi: Include it.
59251
59252 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
59253
59254         * lib/getdate.y (get_date): When adding relative date, start with the
59255         initial time, not with the result of the first mktime call.
59256
59257 2006-04-25  Bruno Haible  <bruno@clisp.org>
59258
59259         * gnulib-tool (func_import): Output the include directives in three
59260         blocks, sorted separately.
59261         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59262
59263 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
59264
59265         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
59266         to define main with arguments, for C++.  Reported by Eric Blake.
59267         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
59268         Prefer 'int main ()' to 'int main (void)', for C++.
59269         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
59270         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
59271         for 'main', for C99 and C++.
59272
59273 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
59274
59275         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
59276         Don't assume that exit status -1 is valid.
59277         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59278         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59279         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
59280         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
59281         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
59282         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
59283         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
59284         functions can be used without declaring them, or that you can
59285         exit with status -1.
59286         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
59287
59288 2006-04-24  Karl Berry  <karl@gnu.org>
59289
59290         * config/srclist.txt (longdouble.m4): sync lost.
59291
59292 2006-04-24  Eric Blake  <ebb9@byu.net>
59293
59294         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
59295
59296 2006-04-24  Bruno Haible  <bruno@clisp.org>
59297
59298         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
59299         poll() implementation in AIX.
59300         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59301
59302 2006-04-24  Bruno Haible  <bruno@clisp.org>
59303
59304         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
59305         assigned exactly once.
59306
59307 2006-04-23  Claudio Fontana  <claudio@gnu.org>
59308             Bruno Haible  <bruno@clisp.org>
59309
59310         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
59311         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
59312         for AM_CPPFLAGS.
59313
59314 2006-04-23  Bruno Haible  <bruno@clisp.org>
59315
59316         * modules/copy-file: Depend on unistd.
59317         * modules/execute: Likewise.
59318         * modules/fatal-signal: Likewise.
59319         * modules/findprog: Likewise.
59320         * modules/mkdtemp : Likewise.
59321         * modules/pipe: Likewise.
59322         * modules/wait-process: Likewise.
59323
59324 2006-04-23  Bruno Haible  <bruno@clisp.org>
59325
59326         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
59327         condition was already detected.
59328         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59329
59330 2006-04-23  Bruno Haible  <bruno@clisp.org>
59331
59332         * lib/copy-file.c: Include <unistd.h> unconditionally.
59333         * lib/execute.c: Likewise.
59334         * lib/fatal-signal.c: Likewise.
59335         * lib/findprog.c: Likewise.
59336         * lib/mkdtemp.c: Likewise.
59337         * lib/pipe.h: Likewise.
59338         * lib/pipe.c: Likewise.
59339         * lib/wait-process.h: Likewise.
59340
59341 2006-04-23  Bruno Haible  <bruno@clisp.org>
59342
59343         * gnulib-tool (func_usage): Fix --import description. Document
59344         --update.
59345         (func_import): Create temporary file in a temporary directory, if
59346         --dry-run is specified. Silence errors from 'grep' when there are no
59347         m4 files in $m4dir.
59348         (func_create_testdir): Silence errors from 'grep' when there are no
59349         m4 files in $m4dir.
59350         Reported by Karl Berry <karl@freefriends.org>.
59351
59352 2006-04-20  Bruno Haible  <bruno@clisp.org>
59353
59354         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
59355         one argument, so that the code will be portable to Autoconf 2.60.
59356         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
59357         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
59358         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
59359
59360 2006-04-19  Derek Price  <derek@ximbiot.com>
59361             Eric Blake  <ebb9@byu.net>
59362
59363         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
59364         rather than "/full/path.h".  Update comment to match.  Shorten &
59365         generalize m4_translit call via AS_TR_CPP.
59366
59367 2006-04-19  Derek Price  <derek@ximbiot.com>
59368             Eric Blake  <ebb9@byu.net>
59369
59370         * lib/inttypes.h: Correct grammar in comment.
59371
59372 2006-04-18  Derek Price  <derek@ximbiot.com>
59373             Paul Eggert  <eggert@cs.ucla.edu>
59374
59375         * modules/inttypes: New file.
59376         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
59377
59378 2006-04-18  Derek Price  <derek@ximbiot.com>
59379             Paul Eggert  <eggert@cs.ucla.edu>
59380
59381         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
59382         New files.
59383
59384 2006-04-18  Derek Price  <derek@ximbiot.com>
59385             Paul Eggert  <eggert@cs.ucla.edu>
59386
59387         * lib/inttypes.h: New file.
59388         * lib/strtoimax.c: Assume <inttypes.h>.
59389
59390 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
59391
59392         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
59393         isn't mounted.  Problem reported by Kir Kolyshkin.
59394
59395 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59396
59397         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
59398         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
59399         Derek R. Price.
59400         * lib/regex.h (RE_DUP_MAX): Update comment to match current
59401         implementation.
59402
59403 2006-04-12  Eric Blake  <ebb9@byu.net>
59404
59405         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
59406         is now done automatically by the corresponding Autoconf macro.
59407
59408 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
59409
59410         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
59411         time_r.h.
59412
59413 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59414
59415         Merge regex changes from libc, removing some of our
59416         POSIX-conformance changes that were rejected and redoing them in a
59417         less-intrusive way.
59418
59419         * lib/regcomp.c (re_compile_internal, init_dfa):
59420         Length arg is now size_t, not Idx.  All uses changed.
59421         (peek_token): Forward decl now says internal_function.
59422         (__re_error_msgid, __re_error_msgid_idx):
59423         Now static rather than extern with attribute_hidden.
59424         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
59425         For some reason libc prefers K&R style defns for external functions.
59426         (regerror) [!defined _LIBC]: Likewise.
59427         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
59428         (seek_collating_symbol_entry, lookup_collation_sequence_value):
59429         (build_range_exp, build_collating_symbol):
59430         Use K&R-style defn.
59431         (re_compile_fastmap): Use '\0' to memset, not 0.
59432         (utf8_sb_map): Make the calculations more obvious.
59433         (init_dfa, parse_bracket_exp, build_charclass_op):
59434         Call calloc and cast result, as glibc does.
59435         (init_word_char, fetch_token, peek_token, peek_token_bracket):
59436         (build_range_exp, build_collating_symbol):
59437         Now internal functions.
59438
59439         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
59440
59441         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
59442         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
59443         Don't depend on VMS; depend on __VMS instead, for POSIX
59444         namespace cleanness.
59445         (regoff_t): Define to ssize_t, not long int.
59446
59447         Remove the REG_ macros named below.  Instead, make the old names
59448         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
59449         __USE_GNU_REGEX.
59450         (REG_BACKSLASH_ESCAPE_IN_LISTS):
59451         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
59452         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
59453         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
59454         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
59455         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
59456         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
59457         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
59458         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
59459         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
59460         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
59461         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
59462         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
59463         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
59464         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
59465         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
59466         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
59467         (REG_NREGS):
59468         Remove.  All uses replaced by the old RE_* names.
59469         (RE_BACKSLASH_ESCAPE_IN_LISTS):
59470         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
59471         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
59472         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
59473         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
59474         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
59475         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
59476         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
59477         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
59478         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
59479         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
59480         Don't bother having these macros be independent of each others'
59481         values, since they no longer exist in the POSIX name space.
59482
59483         Rename the following member names back to their old names,
59484         unless !__USE_GNU_REGEX.  All uses changed back.
59485         (buffer): Renamed from re_buffer.
59486         (allocated): Renamed from re_allocated.
59487         (used): Renamed from re_used.
59488         (syntax): Renamed from re_syntax.
59489         (fastmap): Renamed from re_fastmap.
59490         (translate): Renamed from re_translate.
59491         (can_be_null): Renamed from re_can_be_null.
59492         (regs_allocated): Renamed from re_regs_allocated.
59493         (fastmap_accurate): Renamed from re_fastmap_accurate.
59494         (no_sub): Renamed from re_no_sub.
59495         (not_bol): Renamed from re_not_bol.
59496         (not_eol): Renamed from re_not_eol.
59497         (newline_anchor): Renamed from re_newline_anchor.
59498         (num_regs): Renamed from rm_num_regs.
59499         (start): Renamed from rm_start.
59500         (end): Renamed from rm_end.
59501
59502         (free_state): Move up a bit.
59503
59504         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
59505         #define to be empty.
59506         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
59507         when that is what is intended.
59508         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
59509         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
59510         (MAX): New macro.
59511         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
59512         All uses changed back to re_malloc, etc.  It's now the caller's
59513         responsibility to check for overflow; all callers changed.
59514         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
59515         (re_x2nrealloc): Remove.
59516         (free_state): Remove decl.
59517
59518         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
59519         (re_set_registers, re_exec):
59520         Use K&R-style defn.
59521
59522         2006-01-31  Roland McGrath  <roland@redhat.com>
59523
59524         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
59525         Reported by Mike Frysinger <vapier@gentoo.org>.
59526
59527         2006-01-15  Andreas Jaeger  <aj@suse.de>
59528
59529         [BZ #1950]
59530         * lib/regex_internal.c (re_string_reconstruct): Adjust for
59531         build_wcs_upper_buffer change.
59532         (build_wcs_upper_buffer): Change return type.
59533
59534         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
59535
59536         * lib/regex_internal.h: Include <stdint.h> if available.
59537
59538         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
59539
59540         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
59541
59542         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
59543
59544         * lib/regcomp.c: Adjust for changed secondary hash function.
59545
59546         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
59547
59548         * lib/regex.h: Pretty printing.
59549         Clean up namespace a bit.
59550
59551         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
59552
59553         * lib/regexec.c (update_cur_sifted_state, check_arrival,
59554         check_arrival_add_next_nodes): Avoid using uninitialized variable.
59555
59556         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59557                     Ulrich Drepper  <drepper@redhat.com>
59558
59559         [BZ #1302]
59560         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
59561         changed.
59562         (bitset_word_t): Renamed from bitset_word.  All uses changed.
59563
59564         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
59565
59566         [BZ #281]
59567         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
59568         * lib/regcomp.c: Remove unnecessary uses of
59569         unsigned RE_TRANSLATE_TYPE.
59570         * lib/regex_internal.h: Likewise.
59571         * lib/regex_internal.c: Likewise.
59572         * lib/regexec.c: Likewise.
59573         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
59574
59575         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
59576
59577         * lib/regexec.c (find_recover_state): Remove unnecessary
59578         initialization.
59579         (transit_state_bkref): Make DFA a const pointer.
59580         (get_subexp): Likewise.
59581         (check_arrival): Likewise.
59582         (update_cur_sifted_state): Likewise.
59583         (re_search_internal): Likewise.
59584         (prune_impossible_nodes): Likewise.
59585         (acquire_init_state_context): Likewise.
59586         (proceed_next_node): Likewise.
59587         (set_regs): Likewise.
59588         (free_fail_stack_return): Likewise.
59589         (check_arrival_expand_ecl): Mark DFA parameter as const.
59590         (check_arrival_expand_ecl_sub): Likewise.
59591         (check_subexp_limits): Likewise.
59592         (sub_epsilon_src_nodes):  Likewise.
59593         (add_epsilon_src_nodes):  Likewise.
59594         (merge_state_array): Likewise.
59595         (update_regs): Likewise.
59596         (build_trtable): Likewise.
59597         (sift_states_backward): Mark MCTX parameter as const.
59598         (build_sifted_states): Likewise.
59599         (update_cur_sifted_state): Likewise.
59600         (sift_states_mkref): Likewise.
59601         (check_arrival_expand_ecl): Mark eclosure as const.
59602         (check_dst_limits_calc_pos_1): Likewise.
59603         * lib/regex_internal.h (re_match_context_t): Make dfa a const
59604         pointer.
59605
59606         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
59607
59608         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
59609         (transit_state_sb): Likewise.
59610         (transit_state_mb): Likewise.
59611         (sift_states_iter_mb): Likewise.
59612         (check_arrival_add_next_nodes): Likewise.
59613         (check_node_accept_bytes): Change first parameter to pointer-to-const.
59614         [_LIBC] (re_search_2_stub): Use mempcpy.
59615
59616         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
59617         mbrtowc for very simple UTF-8 case.
59618
59619         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
59620         a pointer-to-const.
59621         (re_acquire_state_context): Likewise.
59622         * lib/regex_internal.h: Adjust prototypes.
59623
59624         * lib/regex.c: Prevent using C++ compilers.
59625
59626         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
59627         (re_acquire_state_context): Likewise.
59628
59629 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59630
59631         * modules/regex (Depends-on): Add ssize_t.
59632
59633 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59634
59635         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
59636         translation table.
59637
59638 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59639
59640         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
59641
59642 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
59643             Bruno Haible  <bruno@clisp.org>
59644
59645         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
59646         <sys/types.h> and <inttypes.h>.
59647
59648 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59649
59650         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
59651         `__error_t_defined', so argp.h will not typedef the former.
59652
59653 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
59654
59655         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
59656         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
59657         glibc names.  Even if glibc is changed to conform to POSIX, the
59658         traditional names will be available anyway, since regex depends on
59659         the extensions module.  Also, fix a longstanding typo in the
59660         implementation of Spencer ERE test #75 from grep 2.3.  Problems
59661         reported by Emanuele Giaquinta.  Also, change sense of cached
59662         variable, so that the message makes sense.
59663
59664 2006-03-24  Simon Josefsson  <jas@extundo.com>
59665
59666         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
59667         including some doc fixes.
59668         (base64_encode_alloc): Fix +1 bug on allocation failures.
59669
59670 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59671
59672         * lib/base64.c (base64_encode): Do not read past end of array with
59673         unsanitized input on systems with CHAR_BIT > 8.
59674
59675 2006-03-24  Eric Blake  <ebb9@byu.net>
59676
59677         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
59678
59679 2006-03-22  Karl Berry  <karl@gnu.org>
59680
59681         * config/srclist.txt (*setenv.[ch]): get from coreutils.
59682         * config/srclistvars.sh (COREUTILS): new var.
59683
59684 2006-03-17  Jim Meyering  <jim@meyering.net>
59685
59686         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
59687         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
59688
59689 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
59690
59691         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
59692         no longer needs it.  Instead, check that regoff_t is as least
59693         as wide as ptrdiff_t.
59694
59695         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
59696         so that our regex.h stays compatible with the installed regex.
59697         This is helpful for installers who configure --without-included-regex.
59698         Problem reported by Emanuele Giaquinta.
59699
59700 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
59701
59702         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
59703         Typedef to long int, not to off_, as POSIX will likely change
59704         in that direction.
59705
59706 2006-03-15  Eric Blake  <ebb9@byu.net>
59707
59708         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
59709
59710 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
59711
59712         * lib/argp-help.c (validate_uparams): Fix typo
59713         * lib/argp-parse.c (argp_default_options): Consistently begin help
59714         messages with a lowercase letter.
59715
59716 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
59717
59718         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
59719         overrun buffers and shouldn't be used (much as gets shouldn't be
59720         used).
59721         * lib/time_r.c (asctime_r, ctime_r): Likewise.
59722
59723 2006-03-08  Simon Josefsson  <jas@extundo.com>
59724
59725         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
59726         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59727
59728 2006-03-08  Simon Josefsson  <jas@extundo.com>
59729
59730         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
59731         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59732
59733 2006-03-08  Simon Josefsson  <jas@extundo.com>
59734
59735         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
59736         signal that configure disabled the device.
59737
59738 2006-03-08  Simon Josefsson  <jas@extundo.com>
59739
59740         * build-aux/maint.mk: Fix refresh-po, to handle no translated
59741         languages.
59742
59743 2006-03-07  Simon Josefsson  <jas@extundo.com>
59744
59745         * modules/getopt (Depends-on): Add unistd.
59746
59747         * modules/unistd: New file.
59748
59749 2006-03-07  Simon Josefsson  <jas@extundo.com>
59750
59751         * modules/gc-random: New file.
59752
59753 2006-03-07  Simon Josefsson  <jas@extundo.com>
59754
59755         * m4/unistd_h.m4: New file.
59756
59757 2006-03-07  Simon Josefsson  <jas@extundo.com>
59758
59759         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
59760         test to be side-effect free by storing the result in the cache
59761         variable gl_cv_lib_readline, and moving the assignment of
59762         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
59763         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59764
59765 2006-03-07  Simon Josefsson  <jas@extundo.com>
59766
59767         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
59768         error on missing devices (the functions will return an error).
59769
59770         * m4/gc.m4: Move random stuff to gc-random.m4
59771
59772 2006-03-07  Simon Josefsson  <jas@extundo.com>
59773
59774         * lib/unistd_.h: New file.
59775
59776 2006-03-07  Simon Josefsson  <jas@extundo.com>
59777
59778         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
59779
59780 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
59781
59782         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
59783         Problem reported by Juan Manuel Guerrero.
59784
59785 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
59786
59787         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
59788         the unistd module.
59789         * lib/getlogin_r.c: Likewise.
59790         * lib/getlogin_r.h: Likewise.
59791         * lib/glob.c: Likewise.
59792         * lib/pagealign_alloc.c: Likewise.
59793         * lib/unistd_.h: Remove; no longer needed.
59794
59795 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
59796
59797         * MODULES.html.sh (Support for systems lacking POSIX:2001):
59798         Add unistd.
59799         * modules/c-stack (Depends-on): Add unistd.
59800         * modules/getlogin_r: Likewise.
59801         * modules/glob: Likewise.
59802         * modules/pagealign_alloc: Likewise.
59803         * modules/unistd (Files): Remove lib/unistd_.h.
59804         (EXTRA_DIST): Remove.
59805         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
59806         need unistd_.h.
59807         (MOSTLYCLEANFILES): Remove unistd.h-t.
59808
59809 2006-03-03  Simon Josefsson  <jas@extundo.com>
59810
59811         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
59812
59813 2006-03-03  Simon Josefsson  <jas@extundo.com>
59814
59815         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
59816         libidn and bison.
59817
59818 2006-03-03  Simon Josefsson  <jas@extundo.com>
59819
59820         * build-aux/maint.mk: Add indent target.
59821
59822 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
59823
59824         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
59825         our replacement poll.h in any case, to avoid a differing
59826         declaration from a system header.  Seen on AIX.
59827
59828 2006-03-01  Simon Josefsson  <jas@extundo.com>
59829
59830         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
59831         <kasal@ucw.cz>.
59832
59833 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59834
59835         * modules/gettime (Depends-on): Add extensions module.
59836         * modules/nanosleep (Depends-on): Likewise.
59837         * modules/settime (Depends-on): Likewise.
59838
59839 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59840
59841         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
59842         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
59843         pedantically.
59844         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59845         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
59846
59847         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
59848         not "==".  Reported by Ralf Wildenhues.
59849
59850 2006-03-01  Karl Berry  <karl@gnu.org>
59851
59852         * doc/Copyright/request-*: new files, synced from gnuorg.
59853
59854 2006-03-01  Karl Berry  <karl@gnu.org>
59855
59856         * config/srclist.txt (Copyright/*): new entries.
59857
59858 2006-02-28  Simon Josefsson  <jas@extundo.com>
59859
59860         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
59861
59862 2006-02-27  Simon Josefsson  <jas@extundo.com>
59863
59864         * lib/base64.h: Indent #define's.  From Jim Meyering
59865         <jim@meyering.net>.
59866
59867 2006-02-27  Jim Meyering  <jim@meyering.net>
59868
59869         Revert the change of 2006-02-24, so these files can continue
59870         to be sync'd from gettext.
59871         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
59872         of `config.h'.
59873
59874 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
59875
59876         * modules/intprops: New file.
59877         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
59878         Add intprops.
59879         * modules/getloadavg (Files): Remove lib/intprops.h.
59880         (Depends-on): Add intprops.
59881         * modules/human: Likewise.
59882         * modules/inttostr: Likewise.
59883         * modules/openat: Likewise.
59884         * modules/sig2str: Likewise.
59885         * modules/userspec: Likewise.
59886         * modules/utimecmp: Likewise.
59887         * modules/xnanosleep: Likewise.
59888         * modules/xstrtol: Likewise.
59889
59890 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
59891
59892         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
59893         * modules/lock-tests (TESTS): Use $(EXEEXT).
59894         * modules/tls-tests: Likewise.
59895         * modules/argp-tests: Likewise.
59896         (check_PROGRAMS): New var, replacing...
59897         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
59898
59899 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59900
59901         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
59902         `config.h'.
59903
59904 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59905
59906         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
59907
59908 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59909
59910         Sync from coreutils.
59911         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
59912         gl_CHDIR_SAFER.
59913
59914 2006-02-22  Jim Meyering  <jim@meyering.net>
59915
59916         Sync from coreutils.
59917         * m4/chdir-safer.m4: New file.
59918
59919 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
59920
59921         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
59922         AT_FDCWD exceeds INT_MAX.
59923         * lib/openat.h (AT_FDCWD): Likewise.
59924
59925 2006-02-17  Eric Blake  <address@hidden>
59926
59927         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
59928
59929 2006-02-16  Simon Josefsson  <jas@extundo.com>
59930
59931         * modules/getaddrinfo (Depends-on): Add sys_socket.
59932
59933 2006-02-15  Simon Josefsson  <jas@extundo.com>
59934
59935         * build-aux/maint.mk: Add dsyntax-check rule.
59936
59937 2006-02-15  Eric Blake  <ebb9@byu.net>
59938
59939         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
59940         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
59941         'present but cannot compile' warnings on cygwin.
59942         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
59943         use ws2tcpip.h if sys/socket.h works.
59944         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
59945         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
59946
59947 2006-02-14  Simon Josefsson  <jas@extundo.com>
59948
59949         * modules/maintainer-makefile (Files): Rename.
59950
59951         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
59952         and (the local) Makefile.cfg to maint-cfg.mk.
59953
59954         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
59955         to the latter.
59956
59957         * modules/maintainer-makefile: New module.
59958
59959         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
59960         severaly stripped to make it possible to build it up from scratch
59961         with reliable tests.
59962
59963         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
59964         fixes to permit overriding the default actions when configure and
59965         makefile are not available.
59966
59967 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59968
59969         Sync from coreutils.
59970         * modules/lstat (Depends-on): Don't depend on xalloc.
59971         (License): Change from GPL to LGPL, since this is now simply a
59972         replacement for a libc function.
59973
59974 2006-02-14  Jim Meyering  <jim@meyering.net>
59975
59976         Sync from coreutils.
59977
59978         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
59979         failure on deficient systems, and simplify gnulib lgpl dependencies.
59980         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
59981         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
59982
59983         * lib/xalloc-die.c: Remove unused definition of N_.
59984
59985 2006-02-14  Jim Meyering  <jim@meyering.net>
59986
59987         Sync from coreutils.
59988         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
59989         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
59990         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
59991         double-quote uses of that variable, to accommodate the rare case in
59992         which getmntent is available in none of the libraries checked.  This
59993         happens at least on FreeBSD 5.0.
59994
59995 2006-02-13  Simon Josefsson  <jas@extundo.com>
59996
59997         * gnulib-tool (Usage): Fix --import, from
59998         karl@freefriends.org (Karl Berry).
59999
60000 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
60001
60002         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
60003
60004 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
60005
60006         * lib/argp-namefrob.h: Restore changes accidentally lost during the
60007         "autoupdate" on 2005-12-12.
60008
60009 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
60010
60011         * modules/closeout (Depends-on): Remove atexit.
60012
60013 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
60014
60015         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
60016         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
60017
60018 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
60019
60020         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
60021         __EXTENSIONS__ if this causes compilation to fail.  Problem
60022         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
60023         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
60024
60025 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
60026
60027         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
60028         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
60029         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
60030         All uses changed.
60031
60032 2006-01-26  Simon Josefsson  <jas@extundo.com>
60033
60034         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
60035         prototype is visible on mingw32.
60036
60037         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
60038         for mingw32.
60039
60040         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
60041         mingw32).
60042
60043 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60044
60045         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
60046         attempt to open for write; this always fails, at least on POSIX
60047         hosts.  This reinstates the 2006-01-09 change, which was
60048         inadvertently removed.
60049
60050 2006-01-26  Bruno Haible  <bruno@clisp.org>
60051
60052         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
60053         Reported by Paul Eggert.
60054
60055 2006-01-26  Bruno Haible  <bruno@clisp.org>
60056             Paul Eggert  <eggert@cs.ucla.edu>
60057
60058         * lib/stdbool_.h (_Bool)
60059         [(! (defined __cplusplus || defined __BEOS__)
60060           && !defined __GNUC__
60061           && !(defined __HP_cc || defined __xlc__
60062                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
60063                || defined __sgi))]:
60064         #define to signed char in these cases too; this simplifies
60065         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
60066         etc., separately) and makes it more conservative.
60067
60068 2006-01-25  Simon Josefsson  <jas@extundo.com>
60069
60070         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
60071         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
60072         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
60073
60074 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60075
60076         * lib/argp-namefrob.h: Bugfix. Remove stray #
60077
60078 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
60079
60080         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
60081         so that we test the test.
60082         Check for yet another HP-UX cc bug involving *bool |= bool.
60083
60084 2006-01-25  Karl Berry  <karl@gnu.org>
60085
60086         * config/srclist.txt (vasnprintf.c): sync lost.
60087
60088 2006-01-25  Jim Meyering  <jim@meyering.net>
60089
60090         Sync from the stable (b5) branch of coreutils:
60091
60092         * lib/fts.c (fts_children): Don't let close() clobber errno from
60093         failed fchdir().
60094
60095         * lib/fts.c (fts_stat): When following a symlink-to-directory,
60096         don't necessarily interpret stat-fails+lstat-succeeds as indicating
60097         a dangling symlink.  That can also happen at least for ELOOP.
60098         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
60099         FYI, this bug predates the inclusion of fts.c in coreutils.
60100
60101         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
60102         in their own block, so pre-c99 compilers don't object.
60103
60104         Avoid the double-free (first in fts_read, second in fts_close) that
60105         would occur when an `active' directory is made inaccessible (e.g.,
60106         via chmod a-x) during a traversal.
60107         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
60108         before returning.  Reproduce this failure by
60109         mkdir -p a/b; cd a; chmod a-x . b
60110         Reported by Stavros Passas.
60111
60112 2006-01-25  Jim Meyering  <jim@meyering.net>
60113
60114         * lib/fileblocks.c: Remove more useless parentheses.
60115         * lib/readutmp.h: Likewise.
60116
60117 2006-01-25  Bruno Haible  <bruno@clisp.org>
60118
60119         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
60120         warnings.
60121         Reported by Paul Eggert.
60122
60123 2006-01-25  Bruno Haible  <bruno@clisp.org>
60124
60125         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
60126         rid of a trap command. For Solaris sh.
60127         Reported by Mark D. Baushke <mdb@gnu.org>.
60128
60129 2006-01-24  Simon Josefsson  <jas@extundo.com>
60130
60131         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
60132         Bruno.
60133
60134 2006-01-24  Karl Berry  <karl@gnu.org>
60135
60136         * config/srclist.txt (argp-namefrob.h): sync lost.
60137
60138 2006-01-24  Jim Meyering  <jim@meyering.net>
60139
60140         * modules/openat (Files): Add lib/intprops.h.
60141         From Mark D. Baushke.
60142
60143 2006-01-24  Jim Meyering  <jim@meyering.net>
60144
60145         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
60146         Reported by Mark D. Baushke.
60147
60148 2006-01-24  Jim Meyering  <jim@meyering.net>
60149
60150         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
60151
60152 2006-01-24  Bruno Haible  <bruno@clisp.org>
60153
60154         * modules/strnlen (Maintainer): Change from glibc to all.
60155
60156 2006-01-24  Bruno Haible  <bruno@clisp.org>
60157
60158         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
60159         Patch by Paul Eggert.
60160
60161 2006-01-24  Bruno Haible  <bruno@clisp.org>
60162
60163         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
60164         already has it.
60165         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
60166         2005-11-26.
60167
60168         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
60169         'signed char' to avoid problems with the built-in _Bool type.
60170         Reported by Paul Eggert on 2005-11-26.
60171
60172 2006-01-24  Bruno Haible  <bruno@clisp.org>
60173
60174         * gnulib-tool (func_import): Avoid constructing complicated sed
60175         expressions inside backquote.
60176         Report and solution by Mark D. Baushke <mdb@gnu.org>.
60177
60178 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
60179
60180         These changes imported from libc.
60181         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
60182         test and two separate function calls.
60183         * lib/strndup.c (__strndup): Add libc_hidden_def.
60184
60185 2006-01-23  Simon Josefsson  <jas@extundo.com>
60186
60187         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
60188         Remove the test_*_SOURCES variable: automake infers it by default.
60189         * modules/tls-tests: Likewise.
60190
60191 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60192
60193         Work around porting bugs reported by Dieter in
60194         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
60195         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
60196         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
60197         Include "getopt.h" first, to check interface.
60198         (getenv): Declare only if defined HAVE_DECL_GETENV &&
60199         !HAVE_DECL_GETENV.
60200         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
60201         (__strndup): Revert to K&R-style function dfns, the glibc style.
60202         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
60203         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
60204         Include strnlen.h first, to get prototype properly.
60205         (strnlen): Renamed from __strnlen.
60206         Remove weak alias.
60207
60208 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60209
60210         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
60211
60212 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60213
60214         * config/srclist.txt: Adjust to reflect glibc reorganization.
60215         This affects only comments.
60216
60217 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60218
60219          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
60220          Reported by Bruce Korb <bkorb@gnu.org>.
60221
60222 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60223
60224         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
60225         to pacify gcc -Wswitch-default.
60226
60227 2006-01-22  Bruno Haible  <bruno@clisp.org>
60228
60229         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
60230         temporary buffer for sprintf, take into account the precision also
60231         for 'd', 'i', 'u', 'o', 'x', 'X'.
60232
60233 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
60234
60235         * modules/argp-tests: New module
60236         * tests/test-argp.c: New file
60237         * tests/test-argp-2.sh: New file
60238
60239 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
60240
60241         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
60242         (__argp_base_name): Removed
60243         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
60244         typo.
60245         (__argp_base_name): Provide macro definition or extern declaration
60246         depending on the configuration
60247
60248 2006-01-20  Simon Josefsson  <jas@extundo.com>
60249
60250         * modules/inet_ntop (Depends-on): Depend on sys_socket.
60251
60252 2006-01-20  Simon Josefsson  <jas@extundo.com>
60253
60254         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
60255
60256 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60257
60258         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
60259         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
60260         Suggested by Bruno Haible.
60261
60262 2006-01-20  Karl Berry  <karl@gnu.org>
60263
60264         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
60265         until changes propagate, I guess.
60266
60267 2006-01-19  Simon Josefsson  <jas@extundo.com>
60268
60269         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
60270
60271 2006-01-19  Simon Josefsson  <jas@extundo.com>
60272
60273         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
60274
60275 2006-01-19  Simon Josefsson  <jas@extundo.com>
60276
60277         * gnulib-tool: Set check_PROGRAMS.
60278
60279         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
60280         modules/des-tests, modules/gc-arcfour-tests,
60281         modules/gc-arctwo-tests, modules/gc-des-tests,
60282         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
60283         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
60284         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
60285         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
60286         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
60287         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
60288         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
60289         test_*_SOURCES.
60290
60291 2006-01-18  Simon Josefsson  <jas@extundo.com>
60292
60293         * modules/socklen (Depends-on): Depend on sys_socket.
60294
60295 2006-01-18  Simon Josefsson  <jas@extundo.com>
60296
60297         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
60298         modules/des-tests, modules/gc-arcfour-tests,
60299         modules/gc-arctwo-tests, modules/gc-des-tests,
60300         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
60301         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
60302         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
60303         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
60304         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
60305         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
60306         $(EXEEXT) to automake TESTS variable, for mingw32.
60307
60308 2006-01-17  Simon Josefsson  <jas@extundo.com>
60309
60310         * modules/socklen (Include): Need sys/socket.h.
60311
60312 2006-01-17  Bruno Haible  <bruno@clisp.org>
60313
60314         * modules/ssize_t (Include): Add <sys/types.h>.
60315
60316 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
60317
60318         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
60319         it's not portable and it doesn't work with cross-compiles.
60320         Problem reported by Bruno Haible.  Fix missing-$ typo in
60321         'test "gl_cv_ignore_unused_libraries" ...' that prevented
60322         -zignore from being used with Sun's C compiler.
60323
60324 2006-01-12  Simon Josefsson  <jas@extundo.com>
60325
60326         * lib/base64.c: Fix warning, reported by Bruno Haible
60327         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
60328
60329 2006-01-12  Bruno Haible  <bruno@clisp.org>
60330
60331         * modules/ldd: New file.
60332         * build-aux/ldd.sh.in: New file.
60333         * MODULES.html.sh (Support for building libraries and executables): Add
60334         ldd.
60335
60336 2006-01-12  Bruno Haible  <bruno@clisp.org>
60337
60338         * m4/ldd.m4: New file.
60339
60340 2006-01-12  Bruno Haible  <bruno@clisp.org>
60341
60342         * gnulib-tool (func_import, func_create_testdir): Don't go into an
60343         endless loop while replacing $auxdir with build-aux.
60344
60345 2006-01-11  Simon Josefsson  <jas@extundo.com>
60346
60347         * lib/stdint_.h (SIZE_MAX): Add missing (.
60348
60349 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
60350
60351         Sync from coreutils.
60352         * lib/md5.c: Fix commentary typos.
60353         (alignof, UNALIGNED_P): No need for a GCC-specific version.
60354         * lib/md5.h (__attribute__): Remove; unused.
60355         * lib/sha1.c: Fix commentary to match md5 better.
60356         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
60357         so that we don't need to worry about alignment.  All uses changed.
60358         This merges the 2005-10-28 md5 change into sha1.
60359
60360 2006-01-11  Jim Meyering  <jim@meyering.net>
60361
60362         Sync from coreutils.
60363         * lib/md5.c (OP): Fix spacing.
60364
60365 2006-01-11  Bruno Haible  <bruno@clisp.org>
60366
60367         Ensure automatic ordering between gl_LOCK and gl_ARGP.
60368         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
60369         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
60370
60371 2006-01-11  Bruno Haible  <bruno@clisp.org>
60372
60373         Ensure automatic ordering between gl_LOCK and gl_ARGP.
60374         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
60375         the "early" section as well.
60376
60377 2006-01-11  Bruno Haible  <bruno@clisp.org>
60378
60379         Avoid "ar: no archive members specified" error on MacOS X.
60380         * gnulib-tool (func_modules_add_dummy): New function.
60381         (func_import, func_create_testdir): Invoke it.
60382
60383 2006-01-11  Bruno Haible  <bruno@clisp.org>
60384
60385         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
60386         with $auxdir in AC_CONFIG_FILES statements.
60387
60388 2006-01-11  Bruno Haible  <bruno@clisp.org>
60389
60390         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60391         Initialize also noinst_HEADERS to empty.
60392
60393 2006-01-11  Bruno Haible  <bruno@clisp.org>
60394
60395         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
60396         variables.
60397         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
60398         autoreconf.
60399
60400 2006-01-11  Bruno Haible  <bruno@clisp.org>
60401
60402         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
60403         overridable by the user.
60404         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60405
60406 2006-01-10  Simon Josefsson  <jas@extundo.com>
60407
60408         * modules/sys_socket: New file.
60409
60410 2006-01-10  Simon Josefsson  <jas@extundo.com>
60411
60412         * m4/sys_socket_h.m4: New file.
60413
60414 2006-01-10  Simon Josefsson  <jas@extundo.com>
60415
60416         * lib/socket_.h: New file.
60417
60418 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60419
60420         * modules/readutmp (Maintainer): Add myself.
60421
60422 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60423
60424         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
60425         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
60426         People who are still concerned with buggy memcmp implementations
60427         can invoke gl_FUNC_MEMCMP themselves.
60428
60429 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60430
60431         * lib/regex_internal.h (BITSET_WORD_BITS):
60432         Work around a bug in 64-bit PGC (before version 6.1-2), where the
60433         preprocessor mishandles large unsigned values as if they were signed.
60434         Problem reported by Claudio Fontana in
60435         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
60436
60437 2006-01-10  Jim Meyering  <jim@meyering.net>
60438
60439         Avoid the double-free (first in fts_read, second in fts_close) that
60440         would occur when an `active' directory is made inaccessible (e.g.,
60441         via chmod a-x) during a traversal.
60442         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
60443         before returning.  Reproduce this failure by
60444         mkdir -p a/b; cd a; chmod a-x . b
60445         Reported by Stavros Passas.
60446
60447         Sync from coreutils.
60448         * lib/sha1.c: Tweak grammar in a comment.
60449
60450 2006-01-10  Jim Meyering  <jim@meyering.net>
60451
60452         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
60453         Patch by Joerg Sonnenberger.
60454
60455 2006-01-10  Bruno Haible  <bruno@clisp.org>
60456
60457         * modules/readutmp: Depend on module free.
60458         * modules/strtok_r: Depend on module restrict.
60459
60460 2006-01-10  Bruno Haible  <bruno@clisp.org>
60461
60462         * modules/gettext (configure.ac): Add an invocation of
60463         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
60464
60465 2006-01-10  Bruno Haible  <bruno@clisp.org>
60466
60467         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
60468         Reported by Werner Lemberg <wl@gnu.org>.
60469
60470 2006-01-10  Bruno Haible  <bruno@clisp.org>
60471
60472         * lib/localcharset.c: Update from GNU gettext.
60473
60474 2006-01-10  Bruno Haible  <bruno@clisp.org>
60475
60476         * lib/argp.h (__const): Remove macro. Use const instead.
60477         * lib/argp-fmtstream.h (__const): Likewise.
60478         * lib/glob_.h (__const): Remove macro.
60479         * lib/glob-libc.h: Use const instead of __const.
60480
60481 2006-01-10  Bruno Haible  <bruno@clisp.org>
60482
60483         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
60484         variable.
60485         Needed to avoid an automake error regarding the 'gettext' module.
60486
60487 2006-01-09  Simon Josefsson  <jas@extundo.com>
60488
60489         * modules/inet_ntop (Depends-on): Add restrict.
60490
60491 2006-01-09  Simon Josefsson  <jas@extundo.com>
60492
60493         * modules/gc-rijndael-tests (License): Put under LGPL.
60494
60495         * modules/gc-des-tests (License): Likewise.
60496
60497         * modules/gc-arcfour-tests (License): Likewise.
60498
60499         * modules/gc-arctwo-tests (License): Likewise.
60500
60501         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
60502
60503         * modules/gc-hmac-sha1-tests (Files): Likewise.
60504
60505         * modules/gc-hmac-md5-tests (License): Likewise.
60506
60507         * modules/gc-sha1-tests (License): Likewise.
60508
60509         * modules/gc-md5-tests (License): Likewise.
60510
60511         * modules/gc-md4-tests (License): Likewise.
60512
60513         * modules/gc-md2-tests (License): Likewise.
60514
60515         * modules/gc-tests (License): Likewise.
60516
60517         * modules/des-tests (License): Likewise.
60518
60519         * modules/md4-tests (License): Likewise.
60520
60521         * modules/md2-tests (License): Likewise.
60522
60523 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60524
60525         Sync from coreutils:
60526
60527         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
60528         * modules/lib-ignore: New file.
60529         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
60530         chdir-safer.m4, lchmod.m4.
60531         * modules/openat: Add mkdirat.c, openat-priv.h.
60532
60533 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60534
60535         Sync from coreutils.
60536         * m4/lib-ignore.m4: New file.
60537         * m4/lchmod.m4: New file.
60538
60539 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60540
60541         Sync from coreutils.
60542         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
60543         for write access: POSIX says that must fail.
60544         * lib/fts.c (diropen): Likewise.
60545         * lib/save-cwd.c (save_cwd): Likewise.
60546         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
60547         well, for minor improvements on hosts that lack O_DIRECTORY.
60548         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
60549         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
60550         Fall back on chown if open failed with EACCES.
60551
60552         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
60553         Report an error at compile-time if only a 1-second nominal clock
60554         resolution is found.
60555
60556         * lib/lchmod.h: New file.
60557         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
60558         (make_dir_parents): Use lchown rather than chown, and
60559         lchmod rather than chmod.
60560
60561         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
60562         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
60563         "proc" reported by n0dalus.
60564
60565         * lib/mountlist.c: Include <limits.h>.
60566         (dev_from_mount_options)
60567         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
60568         New function.  It no longer assumes "dev=" has the System V meaning
60569         on Linux (since it doesn't).  It also parses "dev=" more carefully.
60570         (read_file_system_list)
60571         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
60572         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
60573         dev= in that case.
60574
60575         * lib/posixtm.h (PDS_PRE_2000): New macro.
60576         * lib/posixtm.c (year): Arg is now syntax_bits rather than
60577         allow_century.  All usages changed.  Reject dates outside the range
60578         1969-1999 if PDS_PRE_2000 is used.
60579
60580 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60581
60582         Sync from coreutils.
60583         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
60584         (Time of day items): Mention the possibility of leap seconds.
60585         Problem reported by Dr. David Alan Gilbert.
60586
60587 2006-01-09  Jim Meyering  <jim@meyering.net>
60588
60589         Sync from coreutils.
60590
60591         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
60592
60593         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
60594
60595         * lib/modechange.c (mode_compile): Reject an invalid mode string
60596         that starts with an octal digit.  From Andreas Gruenbacher.
60597
60598         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
60599         and dup to open_safer and dup_safer, respectively.
60600         (openat_permissive): Fix typo in comment.
60601
60602         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
60603         "gettext.h"; either no longer needed or are guaranteed by openat.h.
60604         (_): Remove; no longer needed.
60605         (openat): Renamed from rpl_openat; no need for rpl_openat
60606         since openat.h renames openat for us.
60607         Replace most of the body with a call to openat_permissive,
60608         to avoid duplicate code.
60609         Port to (probably hypothetical) environments were mode_t is
60610         wider than int.
60611         (openat_permissive): Require mode arg, so that we can check
60612         types better.  Put it just after flags.  Change cwd failure
60613         indicator from pointer-to-bool to pointer-to-errno-value.
60614         All callers changed.
60615         Invoke openat_save_fail and/or openat_restore_fail if
60616         cwd_errno is null, so that openat can call us.
60617         (openat_permissive, fdopendir, fstatat, unlinkat):
60618         Simplify errno handling to avoid some duplicate code,
60619         as it's OK to set errno on success.
60620         * lib/openat.h: Revamp code so that function macros depend on
60621         __OPENAT_PREFIX only, not also on AT_FDCWD.
60622         (openat_ro): Remove.  Caller changed to use openat_permissive.
60623         (openat_permissive): Now a macro, if not a function.
60624         (openat_restore_fail, openat_save_fail): Now always functions,
60625         since mkdirat needs them even if __OPENAT_PREFIX is defined.
60626
60627         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
60628         and openat.c.
60629         * lib/mkdirat.c: Include openat-priv.h.
60630         Remove definitions of macros defined therein.
60631         * lib/openat.c: Likewise.
60632
60633         * lib/mkdirat.c (mkdirat): New file and function.
60634         * lib/openat.h (mkdirat): Declare.
60635
60636         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
60637
60638         * lib/openat.h (openat_permissive): Declare.
60639         (openat_ro): Define.
60640
60641         * lib/openat.c (EXPECTED_ERRNO): New macro.
60642         (openat_permissive): New function -- used in remove.c rewrite.
60643         (all functions): Set errno just before returning, only if there
60644         was an actual failure.
60645         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
60646
60647         Emulate openat-family functions using Linux's procfs, if possible.
60648         Idea and some code based on Ulrich Drepper's glibc changes.
60649
60650         * lib/openat.c: (BUILD_PROC_NAME): New macro.
60651         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
60652         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
60653         before falling back on save_cwd and restore_cwd.
60654         (fdopendir, fstatat, unlinkat): Likewise.
60655
60656         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
60657         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
60658
60659         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
60660         as second argument to va_arg.  Otherwise, some versions of gcc
60661         warn that `if this code is reached, the program will abort'.
60662
60663 2006-01-09  Jim Meyering  <jim@meyering.net>
60664
60665         Sync from coreutils.
60666         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
60667         Require openat-priv.h.
60668
60669 2006-01-09  Bruno Haible  <bruno@clisp.org>
60670
60671         * modules/strnlen (Include): Use strnlen.h.
60672
60673 2006-01-09  Bruno Haible  <bruno@clisp.org>
60674
60675         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
60676
60677 2006-01-09  Bruno Haible  <bruno@clisp.org>
60678
60679         * lib/sysexit_.h (EX_OK): New macro.
60680         Suggested by Martin Lambers <marlam@marlam.de>.
60681
60682 2006-01-09  Bruno Haible  <bruno@clisp.org>
60683
60684         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
60685         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
60686
60687 2006-01-09  Bruno Haible  <bruno@clisp.org>
60688
60689         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
60690         numbers.
60691
60692 2006-01-09  Bruno Haible  <bruno@clisp.org>
60693
60694         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
60695         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
60696         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
60697         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
60698
60699 2006-01-09  Bruno Haible  <bruno@clisp.org>
60700
60701         * build-aux/javacomp.sh.in: New file, moved from lib/.
60702         * modules/javacomp-script (Files): Update.
60703         (configure.ac): Add AC_CONFIG_FILES invocation.
60704         (EXTRA_DIST): Remove variable.
60705
60706         * build-aux/javaexec.sh.in: New file, moved from lib/.
60707         * modules/javaexec (Files): Update.
60708         (configure.ac): Add AC_CONFIG_FILES invocation.
60709         (EXTRA_DIST): Remove javaexec.sh.in.
60710
60711         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
60712         * modules/csharpcomp-script (Files): Update.
60713         (configure.ac): Add AC_CONFIG_FILES invocation.
60714         (EXTRA_DIST): Remove variable.
60715
60716         * build-aux/csharpexec.sh.in: New file, moved from lib/.
60717         * modules/csharpexec (Files): Update.
60718         (configure.ac): Add AC_CONFIG_FILES invocation.
60719         (EXTRA_DIST): Remove csharpexec.sh.in.
60720
60721 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
60722
60723         Sync from coreutils.
60724
60725         Add POSIX ACL support
60726         * lib/acl.h (copy_acl, set_acl): Add declarations.
60727         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
60728         systems other than Linux.
60729         (chmod_or_fchmod): New function: use fchmod when possible,
60730         and chmod otherwise.
60731         (file_has_acl): Add a POSIX ACL implementation, with a
60732         Linux-specific subcase.
60733         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
60734         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
60735         acls are unsupported.
60736         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
60737         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
60738         are unsupported.
60739
60740 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
60741
60742         Sync from coreutils.
60743         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
60744
60745 2006-01-07  Bruno Haible  <bruno@clisp.org>
60746
60747         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
60748         gl_EARLY.
60749
60750 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60751
60752         * lib/strftime.c (tzname): Don't declare if it is already #defined.
60753         Problem reported for Mingw by Mark Junker.
60754
60755 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60756
60757         * README: Gnulib normally doesn't generate a tarball.
60758
60759 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
60760
60761         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
60762         long int, not int, for nanosecond counts, so that people who are
60763         used to POSIX struct timespec won't be surprised.  Reported by Jim
60764         Meyering.
60765
60766 2005-12-28  Bruno Haible  <bruno@clisp.org>
60767
60768         * build-aux/config.rpath: Update from GNU gettext.
60769
60770 2005-12-16  Jim Meyering  <jim@meyering.net>
60771
60772         * modules/fprintftime: New module.
60773         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
60774
60775 2005-12-16  Jim Meyering  <jim@meyering.net>
60776
60777         * m4/fprintftime.m4: New file.
60778
60779 2005-12-16  Jim Meyering  <jim@meyering.net>
60780
60781         * lib/fprintftime.c, lib/fprintftime.h: New files.
60782
60783 2005-12-15  Simon Josefsson  <jas@extundo.com>
60784
60785         * modules/socklen (configure.ac): Fix M4 macro name, to align with
60786         new m4/socklen.m4.
60787
60788 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60789
60790         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
60791         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
60792
60793 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60794
60795         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
60796         * lib/argp-help.c (fill_in_uparams): Check if the constructed
60797         struct uparams is valid. Fall back to the default values if it is
60798         not.
60799
60800 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60801
60802         * modules/argp (Files): Add argp-pin.c
60803         (Depends-on): dirname
60804         (lib_SOURCES): Add argp-pin.c
60805
60806 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60807
60808         * m4/argp.m4:  Check if program_invocation_name and
60809         program_invocation_short_name are declared and define appropriate
60810         macros if they are not.
60811
60812 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60813
60814         * lib/argp-help.c (__argp_base_name): New function
60815         (__argp_short_program_name): Rewrite using __argp_base_name
60816         * lib/argp-namefrob.h: Define program_invocation_name and
60817         program_invocation_short_name if requested
60818         (__argp_base_name): Add prototype
60819         * lib/argp-parse.c (argp_def): Use gettext wrappers
60820         (argp_default_parser): Use __argp_base_name
60821         * lib/argp-pin.c: New file. Defines program_invocation_name and
60822         program_invocation_short_name on systems that lack them.
60823
60824 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60825
60826         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
60827         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
60828         porting problem reported by Georg Schwarz in
60829         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
60830
60831 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60832
60833         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
60834         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
60835         porting problem reported by Georg Schwarz in
60836         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
60837
60838 2005-12-05  Bruno Haible  <bruno@clisp.org>
60839
60840         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
60841         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
60842         Reported by Mark Junker <mjscod@gmx.de>.
60843
60844 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
60845
60846         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
60847         Use implementation from Albert Chin, with some
60848         comments/corrections by Stepan Kasal and myself.
60849
60850 2005-12-02  Bruno Haible  <bruno@clisp.org>
60851
60852         * gnulib-tool (func_import): Accept GPLed build tool modules when
60853         --lgpl is given.
60854         * modules/csharpcomp-script: New file.
60855         * modules/csharpcomp: Depend on it.
60856         * modules/javacomp-script: New file.
60857         * modules/javacomp: Depend on it.
60858         Suggested by Simon Josefsson.
60859
60860 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
60861
60862         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
60863         statement, to work around an HP-UX 10.20 compiler bug reported by
60864         Peter O'Gorman.
60865
60866 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
60867
60868         * modules/savedir (Depends-on): Add openat.
60869
60870 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
60871
60872         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
60873         (uintmax_t) [defined uintmax_t]: Do not declare.
60874         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
60875         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
60876         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
60877         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
60878         sake of portability to weird hosts that C allows (though we don't
60879         know of any practical examples).
60880
60881         * lib/savedir.h (fdsavedir): New decl.
60882         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
60883         contains most of the former guts of savedir.
60884         (savedir): Use savedirstream.
60885         Include "openat.h".
60886
60887 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60888
60889         * modules/obstack (Files): Add m4/ulonglong.m4.
60890         Problem reported by Davide Angelocola.
60891
60892 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60893
60894         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
60895         coreutils no longer futzes with rounding modes.
60896
60897 2005-11-14  Jim Meyering  <jim@meyering.net>
60898
60899         * lib/mkstemp-safer.c: Include <config.h>, required for possible
60900         replacement of mkstemp.
60901
60902 2005-11-10  Simon Josefsson  <jas@extundo.com>
60903
60904         * lib/readline.c: Remove EOL.
60905
60906 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60907
60908         * modules/gethrxtime (Depends-on): Add gettime.
60909
60910 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60911
60912         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
60913         or gettimeofday; no longer needed.
60914
60915 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60916
60917         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
60918         time business.
60919         (gethrxtime) [! (HAVE_NANOUPTIME
60920         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
60921         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
60922         our own approximation.
60923
60924 2005-11-08  Eric Blake  <ebb9@byu.net>
60925
60926         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
60927
60928 2005-11-08  Eric Blake  <ebb9@byu.net>
60929
60930         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
60931
60932 2005-11-04  Bruno Haible  <bruno@clisp.org>
60933
60934         * gnulib-tool: Implement --update mode.
60935
60936 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
60937
60938         Fix porting problem reported by Theodoros V. Kalamatianos.
60939         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
60940         Don't assume that futimes failing means we must fail.
60941
60942 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
60943
60944         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
60945         variables to suggest the intended function of the PATH_MAX check.
60946
60947 2005-10-30  Kean Johnston  <jkj@sco.com>
60948
60949         Trivial changes to support SCO systems.
60950         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
60951         as PATH_MAX.
60952         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
60953         where __ptr is null when no I/O is pending.
60954
60955 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60956
60957         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
60958         leave errno alone.  Problem reported by Dmitry V. Levin.
60959
60960 2005-10-28  Simon Josefsson  <jas@extundo.com>
60961
60962         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
60963         Test more.
60964
60965         * tests/test-gc-md2.c, tests/test-md2.c: New files.
60966
60967         * modules/md2, modules/md2-tests: New files.
60968
60969 2005-10-28  Simon Josefsson  <jas@extundo.com>
60970
60971         * m4/inet_ntop.m4: More tests.
60972
60973         * m4/gc-md2.m4, md2.m4: New file.
60974
60975 2005-10-28  Simon Josefsson  <jas@extundo.com>
60976
60977         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
60978         "restrict" keywords, as per POSIX.  Protect the function
60979         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
60980         Don't use K&R prototypes.  Check the sprintf return values.
60981         Re-define EAFNOSUPPORT if not present.  Indent.
60982
60983         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
60984         suggested by Bruno Haible <bruno@clisp.org>.
60985
60986         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
60987
60988         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
60989
60990         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
60991         libgcrypt).
60992
60993         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
60994
60995         * lib/md2.h, lib/md2.c: New files.
60996
60997 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
60998
60999         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
61000         errno alone.  Problem reported by Frederic Jolliton.
61001
61002 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
61003
61004         * modules/verify (License): Change from GPL to LGPL.  This is a
61005         tiny module and there are apparently near-equivalents that are
61006         under the BSD license.
61007
61008 2005-10-24  Simon Josefsson  <jas@extundo.com>
61009
61010         * modules/sha1: Relicense to LGPL.
61011
61012 2005-10-24  Simon Josefsson  <jas@extundo.com>
61013
61014         * lib/md4.h: Shrink buffer size, now that we changed the type.
61015
61016 2005-10-23  Simon Josefsson  <jas@extundo.com>
61017
61018         * gnulib-tool (func_import): Fix --tests-base.
61019
61020 2005-10-22  Simon Josefsson  <jas@extundo.com>
61021
61022         * modules/arcfour (Depends-on): Need stdint.
61023
61024 2005-10-22  Simon Josefsson  <jas@extundo.com>
61025
61026         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
61027         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
61028
61029 2005-10-22  Simon Josefsson  <jas@extundo.com>
61030
61031         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
61032         suggested by Bruno Haible <bruno@clisp.org>.
61033
61034 2005-10-22  Simon Josefsson  <jas@extundo.com>
61035
61036         * lib/crc.h: Include stddef.h, for size_t.
61037
61038 2005-10-22  Simon Josefsson  <jas@extundo.com>
61039
61040         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
61041         arcfour_context struct (simplify test vector testing in GNU
61042         Shishi).
61043
61044 2005-10-21  Simon Josefsson  <jas@extundo.com>
61045
61046         * modules/des, modules/des-tests: New files.
61047
61048         * modules/gc-des, modules/gc-des-tests: New files.
61049
61050         * tests/test-des.c, tests/test-gc-des.c: New file.
61051
61052 2005-10-21  Simon Josefsson  <jas@extundo.com>
61053
61054         * modules/arctwo, modules/arctwo-tests: New files.
61055
61056         * tests/test-arctwo.c: New file.
61057
61058         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
61059
61060         * tests/test-gc-arctwo.c: New file.
61061
61062 2005-10-21  Simon Josefsson  <jas@extundo.com>
61063
61064         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
61065         Bruno Haible <bruno@clisp.org>.
61066
61067         * m4/gc-des.m4: New file.
61068
61069 2005-10-21  Simon Josefsson  <jas@extundo.com>
61070
61071         * m4/arctwo.m4: New file.
61072
61073         * m4/gc-arctwo.m4: New file.
61074
61075 2005-10-21  Simon Josefsson  <jas@extundo.com>
61076
61077         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
61078         block.
61079
61080 2005-10-21  Simon Josefsson  <jas@extundo.com>
61081
61082         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
61083         <bruno@clisp.org>.
61084
61085         * lib/hmac-sha1.c (hmac_sha1): Likewise.
61086
61087         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
61088         Bruno Haible <bruno@clisp.org>.
61089
61090         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
61091         <bruno@clisp.org>.
61092
61093 2005-10-21  Simon Josefsson  <jas@extundo.com>
61094
61095         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
61096
61097 2005-10-21  Simon Josefsson  <jas@extundo.com>
61098
61099         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
61100
61101 2005-10-21  Simon Josefsson  <jas@extundo.com>
61102
61103         * lib/des.h, lib/des.c: New files.
61104
61105         * lib/gc-gnulib.c: Support DES.c
61106
61107 2005-10-21  Simon Josefsson  <jas@extundo.com>
61108
61109         * lib/arctwo.h, lib/arctwo.c: New files.
61110
61111         * lib/gc-gnulib.c: Support ARCTWO.
61112
61113 2005-10-21  Simon Josefsson  <jas@extundo.com>
61114
61115         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
61116         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61117
61118 2005-10-21  Simon Josefsson  <jas@extundo.com>
61119
61120         * gnulib-tool (func_import, func_create_testdir): Define automake
61121         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
61122         Makefile.am snippet),
61123         suggested by Bruno Haible <bruno@clisp.org>.
61124
61125         * modules/gc (Makefile.am): Use it.
61126
61127 2005-10-21  Bruno Haible  <bruno@clisp.org>
61128
61129         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
61130         patch.
61131
61132 2005-10-19  Simon Josefsson  <jas@extundo.com>
61133
61134         * tests/test-gc-rijndael.c: New file.
61135
61136         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
61137
61138 2005-10-19  Simon Josefsson  <jas@extundo.com>
61139
61140         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
61141         interface too.
61142
61143 2005-10-19  Simon Josefsson  <jas@extundo.com>
61144
61145         * tests/test-gc-arcfour.c: New file.
61146
61147         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
61148
61149 2005-10-19  Simon Josefsson  <jas@extundo.com>
61150
61151         * modules/gc-md4, modules/gc-md4-tests: New file.
61152
61153         * tests/test-gc-md4.c: New file.
61154
61155 2005-10-19  Simon Josefsson  <jas@extundo.com>
61156
61157         * m4/gc-md4.m4: New file.
61158
61159 2005-10-19  Simon Josefsson  <jas@extundo.com>
61160
61161         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
61162         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
61163         <kasal@ucw.cz>.
61164
61165 2005-10-19  Simon Josefsson  <jas@extundo.com>
61166
61167         * m4/gc-arcfour.m4: New file.
61168
61169         * m4/gc-rijndael.m4: New file.
61170
61171 2005-10-19  Simon Josefsson  <jas@extundo.com>
61172
61173         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
61174
61175 2005-10-19  Simon Josefsson  <jas@extundo.com>
61176
61177         * lib/gc-gnulib.c: Support ARCFOUR.
61178
61179 2005-10-19  Simon Josefsson  <jas@extundo.com>
61180
61181         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
61182         support.
61183
61184         * lib/gc.h: Add ECB enum type.
61185
61186         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
61187
61188 2005-10-18  Simon Josefsson  <jas@extundo.com>
61189
61190         * tests/test-md5.c: New file.
61191
61192         * modules/md5-tests: New file.
61193
61194 2005-10-18  Simon Josefsson  <jas@extundo.com>
61195
61196         * tests/test-md4.c: New file.
61197
61198         * modules/md4, modules/md4-tests: New files.
61199
61200 2005-10-18  Simon Josefsson  <jas@extundo.com>
61201
61202         * m4/md4.m4: New file.
61203
61204 2005-10-18  Simon Josefsson  <jas@extundo.com>
61205
61206         * lib/md4.h, lib/md4.c: New files, based on md5.?.
61207
61208 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
61209
61210         * gnulib-tool (func_create_testdir): Omit the second check whether
61211         BUILT_SOURCES in nonempty.
61212
61213 2005-10-17  Simon Josefsson  <jas@extundo.com>
61214
61215         * tests/test-rijndael.c: New file.
61216
61217 2005-10-17  Simon Josefsson  <jas@extundo.com>
61218
61219         * modules/sha1: Depend on stdint instead of md5.
61220
61221         * modules/md5: Depend on stdint, remove uint32_t.
61222
61223 2005-10-17  Simon Josefsson  <jas@extundo.com>
61224
61225         * modules/gc-sha1-tests: New file.
61226
61227         * tests/test-gc-sha1.c: New file.
61228
61229 2005-10-17  Simon Josefsson  <jas@extundo.com>
61230
61231         * m4/md5.m4: Remove call to uint32_t.m4.
61232
61233 2005-10-17  Simon Josefsson  <jas@extundo.com>
61234
61235         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
61236
61237         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
61238         md5.h.
61239
61240         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
61241
61242         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
61243
61244 2005-10-17  Simon Josefsson  <jas@extundo.com>
61245
61246         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
61247
61248 2005-10-17  Simon Josefsson  <jas@extundo.com>
61249
61250         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
61251
61252 2005-10-17  Simon Josefsson  <jas@extundo.com>
61253
61254         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
61255
61256         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
61257
61258 2005-10-17  Bruno Haible  <bruno@clisp.org>
61259
61260         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
61261         that it can also be used in a test.
61262
61263 2005-10-16  Bruno Haible  <bruno@clisp.org>
61264
61265         * gnulib-tool (func_emit_tests_Makefile_am): Also define
61266         TESTS_ENVIRONMENT, so that individual tests can augment it.
61267
61268         * gnulib-tool (func_create_testdir): Use an intermediate target for
61269         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
61270         macros, like $(ALLOCA_H), which cannot be passed through the command
61271         line.
61272
61273 2005-10-15  Simon Josefsson  <jas@extundo.com>
61274
61275         * modules/rijndael-tests: New file.
61276
61277         * modules/rijndael: New file.
61278
61279 2005-10-15  Simon Josefsson  <jas@extundo.com>
61280
61281         * m4/rijndael.m4: New file.
61282
61283 2005-10-15  Simon Josefsson  <jas@extundo.com>
61284
61285         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
61286
61287         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
61288
61289 2005-10-14  Simon Josefsson  <jas@extundo.com>
61290
61291         * tests/test-arcfour.c: New file.
61292
61293         * modules/arcfour, modules/arcfour-tests: New files.
61294
61295 2005-10-14  Simon Josefsson  <jas@extundo.com>
61296
61297         * m4/arcfour.m4: New file.
61298
61299 2005-10-14  Simon Josefsson  <jas@extundo.com>
61300
61301         * lib/arcfour.h, lib/arcfour.c: New files.
61302
61303 2005-10-14  Roland McGrath  <roland@redhat.com>
61304
61305         Import from libc.  [BZ #1331]
61306         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
61307         macro argument.
61308         Reported by Matej Vela <vela@debian.org>.
61309
61310 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61311
61312         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
61313         include <wchar.h>; no longer needed.
61314
61315 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61316
61317         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
61318
61319 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
61320         and  Ulrich Drepper  <drepper@redhat.com>
61321
61322         Import from libc.
61323         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
61324         instead of inline stream orientation test and two separate
61325         function calls.  Pay no attention to USE_IN_LIBIO.
61326
61327 2005-10-13  Simon Josefsson  <jas@extundo.com>
61328
61329         * modules/gc-hmac-md5-tests: New file.
61330
61331         * tests/test-gc-hmac-sha1.c: New file.
61332
61333         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
61334
61335         * modules/gc-hmac-md5-tests: New file.
61336
61337         * tests/test-gc-md5.c: New file.
61338
61339         * modules/gc-md5-tests: New file.
61340
61341 2005-10-13  Simon Josefsson  <jas@extundo.com>
61342
61343         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
61344         Move memory allocation outside of loop.
61345
61346 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
61347
61348         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
61349         intermediate directory is in a read-only file system.  Problem
61350         reported by Eric Blake.
61351
61352 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
61353
61354         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
61355
61356 2005-10-12  Simon Josefsson  <jas@extundo.com>
61357
61358         * tests/test-hmac-sha1.c: New file.
61359
61360         * modules/hmac-sha1-tests: New file.
61361
61362         * modules/hmac-sha1: New file.
61363
61364 2005-10-12  Simon Josefsson  <jas@extundo.com>
61365
61366         * modules/gc-sha1: New file.
61367
61368 2005-10-12  Simon Josefsson  <jas@extundo.com>
61369
61370         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
61371
61372         * tests/test-gc-pbkdf2-sha1.c: New file.
61373
61374 2005-10-12  Simon Josefsson  <jas@extundo.com>
61375
61376         * modules/gc-md5, modules/gc-hmac-md5: New files.
61377
61378         * modules/gc (Files): Remove md5, memxor and hmac files.
61379
61380 2005-10-12  Simon Josefsson  <jas@extundo.com>
61381
61382         * m4/gc-pbkdf2-sha1.m4: New file.
61383
61384         * m4/gc-hmac-sha1.m4: New file.
61385
61386         * m4/gc-sha1: New file.
61387
61388         * m4/hmac-sha1.m4: New file.
61389
61390 2005-10-12  Simon Josefsson  <jas@extundo.com>
61391
61392         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
61393
61394         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
61395
61396 2005-10-12  Simon Josefsson  <jas@extundo.com>
61397
61398         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
61399         suggested by Bruno Haible <bruno@clisp.org>.
61400
61401 2005-10-12  Simon Josefsson  <jas@extundo.com>
61402
61403         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
61404
61405 2005-10-12  Simon Josefsson  <jas@extundo.com>
61406
61407         * lib/gc-pbkdf2-sha1.c: New file.
61408
61409         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
61410
61411 2005-10-12  Simon Josefsson  <jas@extundo.com>
61412
61413         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
61414
61415         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
61416
61417 2005-10-12  Simon Josefsson  <jas@extundo.com>
61418
61419         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
61420         GC_USE_HMAC_MD5, respectively.
61421
61422         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
61423         (gc_md5): Fix typo.
61424
61425         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
61426
61427         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
61428
61429         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
61430
61431 2005-10-12  Bruno Haible  <bruno@clisp.org>
61432
61433         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
61434         Reported by Stepan Kasal <kasal@ucw.cz>.
61435
61436 2005-10-11  Simon Josefsson  <jas@extundo.com>
61437
61438         * tests/test-crc.c: New file.
61439
61440         * modules/crc, modules/crc-tests: New files.
61441
61442 2005-10-11  Simon Josefsson  <jas@extundo.com>
61443
61444         * m4/crc.m4: New file.
61445
61446 2005-10-11  Simon Josefsson  <jas@extundo.com>
61447
61448         * lib/gc.h: Add gc_hash and gc_hash_buffer.
61449
61450         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
61451
61452         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
61453
61454 2005-10-11  Simon Josefsson  <jas@extundo.com>
61455
61456         * lib/crc.h, lib/crc.c: New files.
61457
61458         * lib/gc.h (gc_hash_buffer): Add doc.
61459
61460 2005-10-11  Bruno Haible  <bruno@clisp.org>
61461
61462         * modules/c-strcasestr: New file.
61463         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
61464
61465 2005-10-11  Bruno Haible  <bruno@clisp.org>
61466
61467         * modules/c-strcase: New file.
61468         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
61469
61470 2005-10-11  Bruno Haible  <bruno@clisp.org>
61471
61472         * lib/strcasecmp.c: Include limits.h.
61473         (strcasecmp): Avoid integer overflow on exotic platforms.
61474         * lib/strncasecmp.c: Include limits.h.
61475         (strncasecmp): Avoid integer overflow on exotic platforms.
61476         Reported by Paul Eggert.
61477
61478 2005-10-11  Bruno Haible  <bruno@clisp.org>
61479
61480         * lib/c-strcasestr.h: New file, from GNU gettext.
61481         * lib/c-strcasestr.c: New file, from GNU gettext.
61482
61483 2005-10-11  Bruno Haible  <bruno@clisp.org>
61484
61485         * lib/c-strcase.h: New file, from GNU gettext.
61486         * lib/c-strcasecmp.c: New file, from GNU gettext.
61487         * lib/c-strncasecmp.c: New file, from GNU gettext.
61488
61489 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61490
61491         * modules/mempcpy (License): GPL -> LGPL.
61492         * modules/strchrnul (License): Likewise.
61493         * modules/sysexits (License): Likewise.
61494
61495 2005-10-08  Simon Josefsson  <jas@extundo.com>
61496
61497         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
61498
61499 2005-10-07  Simon Josefsson  <jas@extundo.com>
61500
61501         * m4/memxor.m4: Remove gl_C_RESTRICT call.
61502
61503 2005-10-06  Simon Josefsson  <jas@extundo.com>
61504
61505         * tests/test-hmac-md5.c: New file.
61506
61507         * modules/hmac-md5-tests: New file.
61508
61509         * modules/hmac-md5: New file.
61510
61511 2005-10-06  Simon Josefsson  <jas@extundo.com>
61512
61513         * m4/hmac-md5.m4: New file.
61514
61515         * m4/memxor.m4: Require gl_C_RESTRICT.
61516
61517 2005-10-06  Simon Josefsson  <jas@extundo.com>
61518
61519         * lib/memxor.c (memxor): Avoid casts and warnings.
61520
61521 2005-10-06  Simon Josefsson  <jas@extundo.com>
61522
61523         * lib/hmac-md5.c: New file.
61524
61525         * lib/hmac.h: New file.
61526
61527 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61528
61529         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
61530         promotes to int, not unsigned int, to catch the AIX 5.3
61531         compiler bug.
61532
61533 2005-10-05  Simon Josefsson  <jas@extundo.com>
61534
61535         * modules/memxor: New file.
61536
61537         * modules/iconv (Files): Move config.rpath to havelib, it is used
61538         there.
61539
61540         * modules/havelib (Files): Add config.rpath.
61541
61542 2005-10-05  Simon Josefsson  <jas@extundo.com>
61543
61544         * m4/memxor.m4: New file.
61545
61546 2005-10-05  Simon Josefsson  <jas@extundo.com>
61547
61548         * lib/memxor.c (memxor): Fix compiler error.
61549
61550         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
61551         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
61552
61553         * lib/memxor.h, lib/memxor.c: New files.
61554
61555         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
61556         we assume all systems have it, suggested by Jim Meyering
61557         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
61558         any systems lack sys/socket.h; mingw32 is known to lack it, but we
61559         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
61560         same reasons.
61561
61562 2005-10-05  Simon Josefsson  <jas@extundo.com>
61563
61564         * config/srclist.txt: Add glibc bug 1423 for md5.h.
61565
61566 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61567
61568         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
61569         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
61570         needed, since the source code now assumes these .h files.
61571
61572 2005-10-05  Derek Price  <derek@ximbiot.com>
61573
61574         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
61575
61576 2005-10-05  Bruno Haible  <bruno@clisp.org>
61577
61578         * modules/stdint (License): Change to LGPL.
61579
61580 2005-10-04  Simon Josefsson  <jas@extundo.com>
61581
61582         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
61583         D. Baushke" <mdb@gnu.org>.
61584
61585 2005-10-04  Bruno Haible  <bruno@clisp.org>
61586
61587         * lib/verify.h (verify_true): Provide alternative definition for C++.
61588
61589 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
61590
61591         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
61592         (SSIZE_MAX): New macro, if not already defined.
61593         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
61594         than 2 GiB.
61595
61596 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
61597
61598         Sync from coreutils.
61599         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
61600         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
61601         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
61602         ULLONG_MAX doesn't work with 2.7.2.1.
61603
61604 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
61605
61606         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
61607         From Ben Pfaff.
61608
61609         * modules/exclude (Depends-on): Depend on verify.
61610         * modules/strtoimax (Depends-on): Likewise.
61611         * modules/utimecmp (Depends-on): Likewise.
61612
61613 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
61614
61615         * lib/exclude.c: Include verify.h.
61616         (verify): Remove.  All callers changed to use verify.h's version.
61617         * lib/strtoimax.c: Likewise.
61618         * lib/utimecmp.c: Likewis.e
61619
61620         Sync from coreutils.
61621         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
61622         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
61623         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
61624         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
61625         bother returning ENOSYS if settimeofday or stime fails; just let
61626         them return whatever errno they want to return.
61627         * lib/utimens.c: Include unistd.h, for dup2.
61628         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
61629         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
61630
61631 2005-10-02  Jim Meyering  <jim@meyering.net>
61632
61633         Sync from coreutils.
61634         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
61635         from glibc-2.2.5 that fails for read-only files.
61636
61637 2005-10-02  Jim Meyering  <jim@meyering.net>
61638
61639         Sync from coreutils.
61640         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
61641         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
61642         `#if HAVE_CONFIG_H'.
61643         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
61644         Remove AT_FDCWD test.
61645         Do not consume the fd unless successful.
61646         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
61647         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
61648         block, so that we don't even try to compile it if settimeofday is
61649         available.  This works around a compilation failure on OSF1 V5.1,
61650         due to stime requiring a `long int*' while tv_sec is `int'.
61651
61652 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
61653
61654         Sync from coreutils.
61655         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
61656         against `yes', rather than just testing for nonempty.
61657
61658 2005-10-01  Simon Josefsson  <jas@extundo.com>
61659
61660         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
61661         and Darwin.
61662
61663         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
61664         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
61665         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
61666         freeaddrinfo and gai_strerror are declared by the POSIX headers.
61667         Check if struct addrinfo is declared.
61668
61669 2005-10-01  Simon Josefsson  <jas@extundo.com>
61670
61671         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
61672         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
61673         AI_* and EAI_* definitions.  Protect function declarations.
61674
61675 2005-10-01  Jim Meyering  <jim@meyering.net>
61676
61677         Sync from coreutils.
61678
61679         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
61680         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
61681         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
61682         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
61683         in the inet and nsl libraries.  Required on Solaris 5.7.
61684
61685 2005-10-01  Jim Meyering  <jim@meyering.net>
61686
61687         Sync from coreutils.
61688         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
61689         in the inet and nsl libraries.  Required on Solaris 5.7.
61690
61691 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
61692
61693         * lib/getdelim.c (getdelim): Remove unused variables.
61694
61695 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
61696
61697         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
61698         so that the code works even with ancient cpp.  Portability problem
61699         with GCC 2.7.2.1 reported by Thomas M.Ott.
61700
61701 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
61702
61703         * modules/regex (Depends-on): Add strcase.
61704
61705         * modules/gethostname (Licence): Change from GPL to LGPL, since
61706         gethostname.c is a trivial implementation of a standard library
61707         function.
61708         * modules/poll (License): Change from GPL to LGPL, since it's
61709         derived from LGPL code.
61710
61711 2005-09-27  Jim Meyering  <jim@meyering.net>
61712
61713         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
61714         HAVE_CONFIG_H.
61715
61716         * lib/intprops.h (signed_type_or_expr__): Define.
61717         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
61718         for unsigned types.
61719
61720 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
61721
61722         * lib/verify.h (verify_expr): Remove, replacing with:
61723         (verify_true): New macro that returns true instead of void.
61724         (verify_type__): Remove.
61725         (verify): Use verify_true rather than verify_type__.
61726
61727 2005-09-26  Bruno Haible  <bruno@clisp.org>
61728
61729         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
61730         is necessary.
61731         (lib_SOURCES): Remove mbchar.c.
61732         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
61733         (Files): Add m4/mbrtowc.m4.
61734         * modules/mbiter: Likewise.
61735         * modules/mbuiter: Likewise.
61736
61737 2005-09-26  Bruno Haible  <bruno@clisp.org>
61738
61739         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
61740         compile mbchar.c if they are not both present.
61741         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
61742         * m4/mbiter.m4 (gl_MBITER): Likewise.
61743         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
61744         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
61745         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
61746
61747 2005-09-25  Jim Meyering  <jim@meyering.net>
61748
61749         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
61750         also uses socklen_t.
61751
61752 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
61753
61754         * lib/utimens.c (ENOSYS): Define if not already defined.
61755         (futimens): Support having a null PATH if the file descriptor
61756         is nonnegative.
61757
61758         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
61759         Remove.
61760         (__attribute): Define to empty unless GCC 3.1 or later.
61761         This works around a core dump on OpenBSD 3.4, which has GCC
61762         2.95.3, which dumps core when given __attribute__(()).  It also
61763         simplifies other tests, since we really don't want to bother with
61764         worrying about which ancient version of GCC supported what.
61765         Original problem reported by Yoann Vandoorselaere, with part of
61766         the fix suggested by Derek Price.
61767
61768 2005-09-24  Jim Meyering  <jim@meyering.net>
61769
61770         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
61771         so we can once again use a positive bitfield width of 1 -- now we
61772         don't have to explain why we were using a bitfield width of 2.
61773
61774 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
61775
61776         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
61777         and similarly for the other external symbols.  Problem reported
61778         by James Gallager.
61779
61780         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
61781         bug reported by Jim Meyering.
61782
61783         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
61784         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
61785         not needed, since socklen is a prerequisite module.
61786
61787 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
61788
61789         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
61790         Problem reported by Eric Blake.
61791         (getaddrinfo): Initialize se so that it's not garbage.
61792         Redo internal storage allocation so that it doesn't make unportable
61793         assumptions about alignment.
61794         Fix a memory leak.
61795
61796         * lib/utimens.c (futimens): Use futimesat if available.
61797         Prefer it to futimes since it doesn't have the futimes bug.
61798
61799         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
61800         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
61801         Instead, declare a function that returns a pointer to an array,
61802         and use verify_type__ to declare the size of the array.
61803         Problem and germ of a solution reported by Bruno Haible.
61804         (verify_type__): Use 2, not 1, for bitfield size, to avoid
61805         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
61806
61807 2005-09-23  Jim Meyering  <jim@meyering.net>
61808
61809         Sync from coreutils.
61810         Correct build failure (socklen_t not defined) on at least
61811         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
61812         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
61813
61814 2005-09-23  Jim Meyering  <jim@meyering.net>
61815
61816         * modules/getaddrinfo (Depends-on): Add socklen.
61817
61818 2005-09-23  Bruno Haible  <bruno@clisp.org>
61819
61820         * tests/test-verify.c: New file.
61821
61822 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61823
61824         Sync from coreutils.
61825
61826         * modules/argmatch (Depends-on): Add verify.
61827         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
61828         unistd-safer.
61829         * modules/save-cwd (Depends-on): Likewise.
61830
61831         * modules/openat (Files): Add lib/openat-die.c.
61832         (Depends-on): Remove error, exitfail.
61833         Add dirname.
61834
61835         * modules/verify: New file.
61836         * MODULES.html.sh (Diagnostics <assert.h>): New section,
61837         with "verify" module.
61838
61839 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61840
61841         Sync from coreutils.
61842
61843         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
61844         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
61845         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
61846         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
61847         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
61848         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
61849         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
61850         Don't bother checking for string.h, stdlib.h, unistd.h.
61851         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
61852         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
61853         module's job.
61854         * m4/jm-macros.m4 (gl_MACROS): Likewise.
61855         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
61856
61857         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
61858         (gl_GETDATE): Use it.
61859
61860         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
61861
61862 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61863
61864         Sync from coreutils.
61865
61866         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
61867         stat-time.h.
61868         * lib/argmatch.h: Include verify.h
61869         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
61870         (ARGMATCH_ASSERT): Remove; unused.
61871         * lib/canonicalize.c: Assume STDC_HEADERS.
61872         * lib/exclude.c: Include "strcase.h".
61873         * lib/regex_internal.h [!defined _LIBC]: Likewise.
61874         * lib/getusershell.c: Include stdio--.h rather than stdio.h
61875         and stdio-safer.h.
61876         (getusershell): Call fopen, not fopen_safer.
61877         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
61878         Do not include unistd-safer.h.
61879         (save_cwd): Don't call fd_safer; no longer needed
61880         now that we include fcntl--.h.
61881
61882         * lib/getdate.y (relative_time): New type.
61883         (RELATIVE_TIME_0): New constant.
61884         (parser_control): Use relative_time instead of doing it ourselves.
61885         (%union): Add new relative_time rel member.
61886         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
61887         Now typeless.
61888         (relunit, relunit_snumber): Now of type rel.
61889         (zone, rel, relunit, get_date): Adjust to above changes.
61890
61891         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
61892         Do not include unistd-safer.h.
61893         (getloadavg): Don't call fd_safer; no longer needed
61894         now that we include fcntl--.h.
61895
61896         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
61897         (make_dir_parents): Treat ENOSYS like EEXIST.
61898
61899         Improve quality of diagnostics on restore_cwd failure.
61900         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
61901         (make_dir_parents): Last arg is now int * (for errno), not bool *.
61902         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
61903         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
61904         each time through the loop.  Do not diagnose restore_cwd failure;
61905         that is the caller's job (and perhaps the caller does not care).
61906
61907         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
61908         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
61909         If the file already exists but is not a directory, don't bother
61910         to try to make its parents.
61911         Close potential file descriptor leak if we can't chdir("/") (!).
61912         Don't always return true if chdir($PWD) fails; return true only
61913         if the requested action was done successfully (except for the
61914         chdir($PWD)).
61915         Don't log final directory unless we actually made it.
61916         Refactor to avoid duplicate code to fix up permissions.
61917         Don't attempt to fix up parent permissions if chdir($PWD) fails.
61918
61919         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
61920         to make it a bit faster and (I hope) clearer.
61921         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
61922         Fix bug in formats like %2N.
61923
61924         * lib/verify.h: New file.
61925
61926 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61927
61928         Sync from coreutils.
61929         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
61930
61931 2005-09-22  Jim Meyering  <jim@meyering.net>
61932
61933         Sync from coreutils.
61934
61935         * m4/lstat.m4 (gl_FUNC_LSTAT):
61936         Use AC_LIBSOURCES to require lstat.c and lstat.h.
61937         Remove obsolete comment.
61938         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
61939         * m4/xstrtod.m4: Likewise.
61940
61941         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
61942
61943 2005-09-22  Jim Meyering  <jim@meyering.net>
61944
61945         Sync from coreutils.
61946
61947         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
61948
61949         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
61950         the .tm_year member, since otherwise gcc-4.0 would now warn about
61951         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
61952
61953         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
61954         order to avoid an unsuppressible warning from gcc on 64-bit systems.
61955
61956         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
61957         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
61958         when run in a time zone for which daylight savings time is in effect
61959         for the starting date.
61960
61961         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
61962         stop us from restricting permissions of just-created absolute-named
61963         directories.
61964         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
61965         to restore initial working directory.
61966         * lib/mkdir-p.c (make_dir_parents): New parameter:
61967         different_working_dir, to tell caller if/when we change the working
61968         directory and are unable to return to the initial one.
61969         * lib/mkdir-p.h (make_dir_parents): Update prototype.
61970         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
61971         `return false'.  This fixes a bug introduced on 2004-07-30.
61972
61973         * lib/openat.c (fdopendir): Be sure to close the supplied
61974         file descriptor before returning.  This makes our replacement
61975         implementation a little closer to Solaris's, where fdopendir
61976         ties the file descriptor to the returned DIR* pointer.
61977         * lib/openat.c (unlinkat): New function.
61978         * lib/openat.h (unlinkat): Add prototype.
61979         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
61980         (openat_restore_fail): Rename from openat_restore_die.
61981         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
61982
61983         Provide an alternative to exiting immediately upon save_cwd or
61984         restore_cwd failure.  Now, an application can arrange e.g.,
61985         to perform a longjump in that case.
61986         * lib/openat.c: Include dirname.h.
61987         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
61988         (rpl_openat, fdopendir, fstatat): Call openat_save_die
61989         and openat_restore_die rather than calling error directly.
61990         Don't include "error.h" or "exitfail.h"; they're no longer needed.
61991
61992         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
61993         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
61994         define.
61995
61996         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
61997         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
61998                             int utc, int nanoseconds);
61999         Background:
62000         date should not have to allocate a megabyte of virtual memory to
62001         handle a format argument like +%1048575T.  When implemented with
62002         strftime, it must allocate such a buffer, use strftime to fill it
62003         in, print it, then free it.
62004         With fprintftime, it simply prints everything and exits.
62005         With no need for memory allocation, that's one fewer way to fail.
62006         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
62007         optional field width, not before, so we accept %9:z, not %:9z.
62008         (my_strftime): Be sure to use L_('x') for literals.
62009
62010         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
62011         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
62012         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
62013         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
62014         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
62015         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
62016         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
62017         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
62018         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
62019         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
62020         * lib/xgethostname.c, lib/xreadlink.c:
62021         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
62022
62023         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
62024         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
62025         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
62026         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
62027         and don't include <sys/file.h>).
62028
62029 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
62030
62031         Sync from coreutils.
62032
62033         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
62034         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
62035         [!LDAV_DONE]: Avoid unused variable warning.
62036
62037 2005-09-21  Bruno Haible  <bruno@clisp.org>
62038
62039         * lib/unicodeio.h (unicode_to_mb): New declaration.
62040
62041 2005-09-20  Derek Price  <derek@ximbiot.com>
62042
62043         * lib/getaddrinfo.c: Don't include <netdb.h> included from
62044         getaddrinfo.h.
62045
62046 2005-09-20  Bruno Haible  <bruno@clisp.org>
62047
62048         * gnulib-tool: Remove trailing slashes from the values specified for
62049         --source-base, --m4-base, --tests-base, --aux-dir.
62050         Suggested by Simon Josefsson <jas@extundo.com>.
62051
62052 2005-09-20  Bruno Haible  <bruno@clisp.org>
62053
62054         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
62055         func_modules_to_filelist, func_import, func_create_testdir): Make all
62056         sorting results locale-independent, so that gnulib-cache.m4 doesn't
62057         change when gnulib-tool is invoked in a different locale.
62058
62059 2005-09-19  Simon Josefsson  <jas@extundo.com>
62060
62061         * m4/socklen.m4: Fix typo.
62062
62063 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62064
62065         Use a consistent style for including <config.h>.
62066         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
62067         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
62068         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
62069         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
62070         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
62071         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
62072         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
62073         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
62074         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
62075         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
62076         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
62077         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
62078         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
62079         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
62080         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
62081         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
62082         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
62083         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
62084         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
62085         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
62086         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
62087         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
62088         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
62089         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
62090         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
62091         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
62092         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
62093         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
62094         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
62095         lib/xstrtoumax.c, lib/yesno.c:
62096         Standardize inclusion of config.h.
62097         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
62098         lib/inttostr.h:  Removed inclusion of config.h from header files.
62099         * lib/inttostr.c:  Adjusted in-tree users.
62100         * lib/timespec.h: Remove superfluous warning to include config.h.
62101         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
62102         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
62103         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
62104         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
62105         config.h with HAVE_CONFIG_H.
62106
62107 2005-09-19  Jim Meyering  <jim@meyering.net>
62108
62109         * modules/pathmax (License): Change to LGPL.
62110
62111 2005-09-19  Derek Price  <derek@ximbiot.com>
62112
62113         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
62114
62115 2005-09-19  Bruno Haible  <bruno@clisp.org>
62116
62117         * gnulib-tool (import): Provide default for --tests-base.
62118
62119 2005-09-19  Bruno Haible  <bruno@clisp.org>
62120
62121         * doc/quote.texi: New file, extracted from gnulib.texi.
62122         * doc/ctime.texi: New file, extracted from gnulib.texi.
62123         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
62124         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
62125         * doc/gnulib.texi: Include them.
62126
62127 2005-09-18  Bruno Haible  <bruno@clisp.org>
62128
62129         Portability fix.
62130         * gnulib-tool (func_readlink): New function.
62131         (func_ln_if_changed): Use it.
62132
62133 2005-09-18  Bruno Haible  <bruno@clisp.org>
62134
62135         * gnulib-tool: Support --with-tests also with --import.
62136         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
62137         (func_import): Use variables $testsbase and $inctests. Emit a
62138         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
62139         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
62140         SUBDIRS += $testsdir.
62141         (func_create_testdir): Update.
62142
62143 2005-09-18  Bruno Haible  <bruno@clisp.org>
62144
62145         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
62146         instead of $dry_run.
62147         (func_cp_if_changed, func_mv_if_changed): Remove functions.
62148         (func_ln_if_changed): Don't handle dry-run here.
62149         (func_import): In dry-run mode, detect more precisely which actions
62150         would be performed, and don't use "...ing" verbs.
62151
62152 2005-09-18  Bruno Haible  <bruno@clisp.org>
62153
62154         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
62155         (func_import): Use join on two temporary files instead of three nested
62156         loops, in order to determine which files are new or old.
62157
62158 2005-09-18  Bruno Haible  <bruno@clisp.org>
62159
62160         * gnulib-tool (func_import): Comment out code that spits out the
62161         new files with --dry-run.
62162
62163 2005-09-18  Bruno Haible  <bruno@clisp.org>
62164
62165         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
62166
62167 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
62168
62169         * lib/stat-time.h: New file.
62170         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
62171         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
62172         in a different way.
62173         (timespec_cmp): New function.
62174         * lib/utimecmp.c: Include stat-time.h.
62175         (SYSCALL_RESOLUTION): Depend on whether various struct stat
62176         members exist, not on the obsolescent ST_MTIM_NSEC.
62177         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
62178
62179 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
62180
62181         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
62182
62183 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
62184
62185         * MODULES.html.sh (File system functions): Add stat-time.
62186         * modules/stat-time: New file.
62187         * modules/timespec (Files): Remove m4/st_mtim.m4; this
62188         is now done in a different way, by the stat-time module.
62189         * modules/utimecmp (Depends-on): Add stat-time.
62190
62191 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62192
62193         * m4/st_mtim.m4: Remove.  Superseded by...
62194         * m4/stat-time.m4: New file.
62195         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
62196         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
62197
62198 2005-09-15  Derek Price  <derek@ximbiot.com>
62199
62200         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
62201
62202 2005-09-15  Derek Price  <derek@ximbiot.com>
62203
62204         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
62205         * lib/regex_internal.c: Ditto, using this...
62206         (__GNUC_PREREQ): ...new macro.
62207         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
62208         using...
62209         (__GNUC_PREREQ): ...this new macro.
62210
62211         * lib/strstr.h: Include string.h. Define strstr as a macro here.
62212
62213 2005-09-15  Derek Price  <derek@ximbiot.com>
62214             Paul Eggert  <eggert@cs.ucla.edu>
62215
62216         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
62217         changes, consolidating in...
62218         * lib/regex_internal.h: ...this file.
62219
62220 2005-09-13  Jim Meyering  <jim@meyering.net>
62221
62222         * lib/canon-host.c: Filter through gnu indent and reword comments
62223         slightly.
62224         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
62225
62226 2005-09-13  Derek Price  <derek@ximbiot.com>
62227
62228         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
62229         failure.
62230         Reported by Jim Meyering  <jim@meyering.net>.
62231
62232 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62233
62234         * lib/base64.c: Typo.
62235         (base64_encode): Put b64str in initialized data section.
62236
62237 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
62238
62239         Merge glibc and coreutils changes into gnulib, plus a few
62240         extra fixes.
62241         * lib/md5.c: Use #error rather than a string.
62242         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
62243         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
62244         (__attribute__): Define to empty for non recent-GCC.
62245         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
62246         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
62247         Renamed from their non-__ counterparts, with new macros replacing
62248         them if not _LIBC.  Add __THROW attribute.
62249         (rol): Remove.
62250         (struct md5_ctx): Align buffer if using GCC.
62251         * lib/sha1.h (struct sha1_ctx): Likewise.
62252         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
62253         The old name was backwards.
62254         (NOTSWAP): Remove; not used.
62255         (rol): New macro, moved here from md5.h.
62256         (sha1_process_block): Remove a FIXME that doesn't make sense.
62257
62258 2005-09-12  Derek Price  <derek@ximbiot.com>
62259
62260         Return usable errors from canon-host.
62261         * lib/canon-host.h: New file.
62262         * lib/canon-host.c (canon_host): Wrap...
62263         (canon_host_r): ...this new function, which now relies exclusively on
62264         getaddrinfo.
62265         (ch_strerror): New function.
62266         (last_cherror): New global.
62267         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
62268         interface.
62269         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
62270         void *.
62271         (freeaddrinfo): Free ai->ai_canonname when set.
62272
62273 2005-09-12  Derek Price  <derek@ximbiot.com>
62274
62275         Make canon-host require getaddrinfo.
62276         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
62277         AC_LIBSOURCE canon-host.h.  Call...
62278         (gl_PREREQ_CANON_HOST): ...this new function, which requires
62279         gl_GETADDRINFO.
62280         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
62281
62282 2005-09-12  Derek Price  <derek@ximbiot.com>
62283
62284         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
62285         LGPL.
62286         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
62287
62288 2005-09-12  Derek Price  <derek@ximbiot.com>
62289
62290         * lib/gai_strerror.c: Include config.h when available.  Include
62291         getaddrinfo.h before other headers to test interface.
62292         Reported by Larry Jones <lawrence.jones@ugs.com>.
62293
62294 2005-09-12  Derek Price  <derek@ximbiot.com>
62295             Paul Eggert  <eggert@cs.ucla.edu>
62296
62297         * modules/glob (Files): Add glob-libc.h.
62298
62299 2005-09-12  Derek Price  <derek@ximbiot.com>
62300             Paul Eggert  <eggert@cs.ucla.edu>
62301
62302         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
62303         glob_.h, glob-libc.h.
62304         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
62305
62306 2005-09-12  Derek Price  <derek@ximbiot.com>
62307             Paul Eggert  <eggert@cs.ucla.edu>
62308
62309         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
62310         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
62311         protecting things that should be done only in gnulib contexts.
62312         * lib/glob_.h: New file, containing only the glob things needed for
62313         gnulib.
62314         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
62315         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
62316         (glob, globfree, glob_pattern_p): Now defined simply in terms of
62317         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
62318         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
62319         and to respect the namespace rules better.
62320
62321 2005-09-08  Simon Josefsson  <jas@extundo.com>
62322
62323         * modules/socklen: New file.
62324
62325 2005-09-08  Simon Josefsson  <jas@extundo.com>
62326
62327         * m4/socklen.m4: New file.
62328
62329 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62330
62331         * modules/utimens (Files): Add m4/utimbuf.m4, since
62332         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
62333         Reported by Sergey Poznyakoff.
62334
62335 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62336
62337         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
62338         definitions, since that's the preferred style in glibc.
62339         Fix a minor spacing issue, and update copyright notice to match
62340         glibc's.
62341
62342 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62343
62344         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
62345
62346 2005-09-06  Simon Josefsson  <jas@extundo.com>
62347
62348         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
62349         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
62350
62351 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62352
62353         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
62354         warning.
62355
62356 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62357
62358         * config/srclist.txt: Add glibc bug 1302.
62359
62360 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
62361
62362         Change bitset word type from unsigned int to unsigned long int,
62363         as this has better performance on typical 64-bit hosts.
62364         Port bitset code to hosts with unusual word sizes.
62365         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
62366         (build_collating_symbol):
62367         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
62368         argument is a bitset.  This is merely a style issue, but it makes
62369         it clearer that an entire array is expected.
62370         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
62371         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
62372         Port to the case where bitset_word is not the same as unsigned int.
62373         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
62374         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
62375         Likewise.
62376         * lib/regexec.c (check_dst_limits_calc_pos_1,
62377         check_subexp_matching_top):
62378         (build_trtable, group_nodes_into_DFAstates):
62379         Likewise.
62380         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
62381         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
62382         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
62383         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
62384         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
62385         * lib/regcomp.c (optimize_subexps, lower_subexp):
62386         Work even if bitset_word has holes in its bitwise representation.
62387         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
62388         * lib/regexec.c (check_dst_limits_calc_pos_1,
62389         check_subexp_matching_top):
62390         Likewise.
62391         * lib/regex_internal.c (re_string_reconstruct):
62392         Don't assume UCHAR_MAX == 255.
62393         * lib/regex_internal.h (bitset_set_all): Likewise.
62394         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
62395         All uses changed.
62396         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
62397         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
62398         All uses changed.
62399         (BITSET_WORD_MAX): New macro.
62400         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
62401         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
62402         (bitset_empty, bitset_copy):
62403         Prefer sizeof (bitset) to multiplying it out ourselves.
62404         (bitset_not_merge): Remove; unused.
62405         (bitset_contain): Return bool, not unsigned int with one bit on.
62406         All callers changed.
62407         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
62408         alignment than re_node_set; do this by defining a new internal
62409         type struct dests_alloc and using it to allocate memory.
62410
62411 2005-09-05  Bruno Haible  <bruno@clisp.org>
62412
62413         * gnulib-tool (func_import): Fix comparison in handling of symbolic
62414         links.
62415
62416 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
62417
62418         * modules/size_max (Makefile.am): Add size_max.h
62419
62420 2005-09-04  Derek Price  <derek@ximbiot.com>
62421
62422         * gnulib-tool (func_import): Fix reversed $symbolic logic.
62423
62424 2005-09-03  Simon Josefsson  <jas@extundo.com>
62425
62426         * gnulib-tool: Fix typo.
62427
62428 2005-09-03  Simon Josefsson  <jas@extundo.com>
62429
62430         * config/srclist.txt: Add glibc bug 1293.
62431
62432 2005-09-03  Derek Price  <derek@ximbiot.com>
62433
62434         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
62435         From Larry Jones <lawrence.jones@ugs.com>.
62436
62437 2005-09-02  Simon Josefsson  <jas@extundo.com>
62438
62439         * modules/socklen: New file.
62440
62441 2005-09-02  Simon Josefsson  <jas@extundo.com>
62442
62443         * modules/havelib: New module.
62444
62445         * modules/gettext, modules/iconv, modules/lock, modules/readline:
62446         Use havelib.
62447
62448 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
62449
62450         Check for arithmetic overflow when calculating sizes, to prevent
62451         some buffer-overflow issues.  These patches are conservative, in the
62452         sense that when I couldn't determine whether an overflow was possible,
62453         I inserted a run-time check.
62454         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
62455         macros.
62456         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
62457         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
62458         (re_xnrealloc, re_x2nrealloc): New inline functions.
62459         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
62460         parse_bracket_exp):
62461         (build_equiv_class, build_charclass): Check for arithmetic overflow
62462         in size expression calculations.
62463         * lib/regex_internal.c (re_string_realloc_buffers):
62464         (build_wcs_upper_buffer, re_node_set_add_intersect):
62465         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
62466         (re_dfa_add_node, register_state): Likewise.
62467         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
62468         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
62469         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
62470         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
62471
62472 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
62473
62474         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
62475         m4/ulonglong.m4.  Problem reported by Martin Lambers.
62476
62477 2005-09-02  Bruno Haible  <bruno@clisp.org>
62478
62479         Support for lib vs. lib64 distinction on biarch platforms.
62480         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
62481         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
62482         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
62483
62484 2005-09-02  Bruno Haible  <bruno@clisp.org>
62485
62486         * gnulib-tool (import): In the other first-use case, provide defaults
62487         as well.
62488
62489 2005-09-02  Bruno Haible  <bruno@clisp.org>
62490
62491         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
62492         patches not yet found in the latest gettext release.
62493
62494 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62495
62496         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
62497         to avoid a collision with bits/local_lim.h in glibc.
62498         All uses changed.  Problem reported by Dmitry V. Levin in
62499         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
62500
62501         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
62502         bugs in int versus size_t comparisons.
62503         (re_string_context_at): Fix bug where the code assumed that
62504         Idx is signed.
62505
62506         Use bool where appropriate.
62507         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
62508         All callers changed.
62509         (calc_eclosure_iter): Likewise, for ROOT arg.
62510         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
62511         (build_charclass_op): Likewise, for NON_MATCH arg.
62512         * lib/regex_internal.c (re_string_allocate, re_string_construct):
62513         (re_string_construct_common): Likewise, for ICASE arg.
62514         * lib/regexec.c (re_search_2_stub, re_search_stub):
62515         Likewise, for RET_LEN arg.
62516         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
62517         (set_regs): Likewise, for FL_BACKTRACK arg.
62518         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
62519         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
62520         (calc_eclosure_iter, parse_bracket_exp):
62521         Use bool for internal variables that are booleans.
62522         * lib/regexec.c (re_search_internal, check_matching,
62523         proceed_next_node):
62524         (set_regs, build_sifted_states, sift_states_bkref):
62525         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
62526         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
62527         (find_collation_sequence_value):
62528         Likewise.
62529         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
62530         (re_node_set_compare):
62531         Return bool, not int. All callers changed.
62532         * lib/regexec.c (check_halt_node_context, check_dst_limits):
62533         (build_trtable, check_node_accept): Likewise.
62534         * lib/regex_internal.h: Include stdbool.h.
62535
62536         Fix bugs uncovered when converting to bool.
62537         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
62538         failure instead of charging ahead blindly.
62539         * lib/regex_internal.c (register_state): Likewise.
62540         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
62541         for freeing internal storage.
62542         (group_nodes_into_DFA_states): Use unsigned int, not int, for
62543         bitset pieces used as boolean, to avoid undefined behavior
62544         on hosts that do int overflow checking.
62545
62546 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62547
62548         * config/srclist.txt: Add glibc bugs 1285-1287.
62549
62550 2005-09-01  Jim Meyering  <jim@meyering.net>
62551
62552         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
62553         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
62554         Require gl_STAT_MACROS, too.
62555
62556 2005-09-01  Bruno Haible  <bruno@clisp.org>
62557
62558         * gnulib-tool (import): In the first-use case, provide defaults.
62559
62560 2005-09-01  Bruno Haible  <bruno@clisp.org>
62561
62562         * gnulib-tool (func_import): Remove the .tmp files.
62563
62564 2005-09-01  Bruno Haible  <bruno@clisp.org>
62565
62566         * gnulib-tool (func_import): Fix handling of symbolic links.
62567
62568 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62569
62570         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
62571         old glibc regex code mishandles strings longer than 2**31 bytes.
62572         This patch fixes this when the regex code is used in gnulib
62573         (i.e., outside glibc).
62574
62575         This patch should not affect the use of the regex code inside
62576         glibc.  No doubt this problem also needs to be handled for glibc
62577         as well, but the result will be an incompatible change to the
62578         glibc ABI, and the old ABI will have to be supported too.  That
62579         can be the the subject for another patch.
62580
62581         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
62582         governing whether the rest of this patch is active.  By default,
62583         the macro is disabled and the patch has no effect.
62584         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
62585         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
62586         (struct re_pattern_buffer, re_search, re_search_2, re_match):
62587         (re_match_2, re_set_registers): Use the new types.
62588         * lib/regex_internal.h (Idx, re_hashval_t): New types.
62589         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
62590         New macros.
62591         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
62592         (re_string_context_at, bin_tree_t, re_dfastate_t):
62593         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
62594         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
62595         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
62596         (re_string_char_size_at, re_string_wchar_at):
62597         (re_string_elem_size_at):
62598         Use the new types and macros to port to 64-bit hosts.
62599         Use unsigned types for internal values, so that the code
62600         mostly works even for arrays larger than SSIZE_MAX.
62601         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
62602         (search_duplicated_node, calc_eclosure_iter, fetch_number):
62603         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
62604         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
62605         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
62606         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
62607         (calc_inveclosure, parse_dup_op, build_range_exp):
62608         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
62609         (fetch_number, create_token_tree, mark_opt_subexp):
62610         Likewise.
62611         * lib/regex_internal.c (re_string_construct_common,
62612         create_ci_newstate):
62613         (create_cd_newstate, re_string_allocate, re_string_construct):
62614         (re_string_realloc_buffers, build_wcs_upper_buffer):
62615         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
62616         (re_string_reconstruct, re_string_peek_byte_case):
62617         (re_string_fetch_byte_case, re_string_context_at):
62618         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
62619         (re_node_set_init_copy, re_node_set_add_intersect):
62620         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
62621         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
62622         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
62623         (re_acquire_state, re_acquire_state_context, register_state):
62624         Likewise.
62625         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
62626         search_cur_bkref_entry):
62627         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
62628         (re_search_internal, re_search_2_stub, re_search_stub)
62629         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
62630         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
62631         (update_cur_sifted_state, check_dst_limits):
62632         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
62633         (check_subexp_limits, sift_states_bkref, merge_state_array):
62634         (check_subexp_matching_top, get_subexp, get_subexp_sub):
62635         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
62636         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
62637         (expand_bkref_cache, check_node_accept_bytes):
62638         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
62639         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
62640         (acquire_init_state_context, check_halt_node_context):
62641         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
62642         (sift_states_backward, clean_state_log_if_needed):
62643         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
62644         (find_recover_state, transit_state_sb, transit_state_mb):
62645         (transit_state_bkref, build_trtable, match_ctx_clean):
62646         Likewise.
62647         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
62648         to work around an assumption that REG_MISSING is negative.
62649
62650         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
62651         (seek_collating_symbol_entry) [defined _LIBC]:
62652         (lookup_collation_sequence_value) [defined _LIBC]:
62653         (build_range_exp, build_collating_symbol) [defined _LIBC]:
62654         Use prototypes rather than old-style function definitions.
62655         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
62656         (transit_state_sb) [0]:
62657         (find_collation_sequence_value) [defined _LIBC]: Likewise.
62658
62659         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
62660         rm_eo.
62661
62662         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
62663         (optimize_subexps, lower_subexp):
62664         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
62665         since the signed shift might overflow.  Use 1u<<31 instead.
62666         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
62667         Likewise.
62668         * lib/regexec.c (check_dst_limits_calc_pos_1,
62669         check_subexp_matching_top): Likewise.
62670
62671         * lib/regcomp.c (optimize_subexps, lower_subexp):
62672         Use CHAR_BIT rather than 8, for clarity.
62673         * lib/regexec.c (check_dst_limits_calc_pos_1):
62674         (check_subexp_matching_top): Likewise.
62675         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
62676         have to worry about portability issues when shifting it left.
62677         Remove no-longer-needed test for table_size > 0.
62678         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
62679         in a word, as the resulting behavior is undefined.
62680         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
62681         in one case, a <= should have been an <, and in another case the
62682         whole test was missing.
62683         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
62684         the standard name CHAR_BIT.
62685         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
62686         this is not true on one's complement and signed-magnitude hosts.
62687
62688         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
62689         next_last_offset.
62690         (struct re_dfa_t): Remove unused member states_alloc.
62691         * lib/regcomp.c (init_dfa): Don't initialize unused members.
62692
62693 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62694
62695         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
62696         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
62697         and large-file glibc and in 32-bit large-file Solaris.
62698
62699 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62700
62701         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
62702         lengths fit in regoff_t; this isn't true if regoff_t is the same
62703         width as size_t.
62704         * lib/regex.c (re_search_internal): 5th arg is LAST_START
62705         (= START + RANGE) instead of RANGE.  This avoids overflow
62706         problems when regoff_t is the same width as size_t.
62707         All callers changed.
62708         (re_search_2_stub): Check for overflow when adding the
62709         sizes of the two strings.
62710         (re_search_stub): Check for overflow when adding START
62711         to RANGE; if it occurs, substitute the extreme value.
62712
62713 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62714
62715         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
62716
62717 2005-08-31  Jim Meyering  <jim@meyering.net>
62718
62719         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
62720         a pointer-to-const.
62721         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
62722         (register_state): Likewise.
62723         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
62724         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
62725         (group_nodes_into_DFAstates): Likewise.
62726
62727 2005-08-31  Jim Meyering  <jim@meyering.net>
62728
62729         * check-module: Add a FIXME comment.
62730
62731 2005-08-31  Eric Blake  <ebb9@byu.net>
62732
62733         * modules/unistd-safer (Files): Add unistd--.h.
62734         * modules/stdio-safer (Files): Add stdio--.h.
62735
62736 2005-08-31  Derek Price  <derek@ximbiot.com>
62737
62738         * lib/getdelim.c (getdelim): Return EOF on EOF.
62739         Reported by Larry Jones <lawrence.jones@ugs.com>.
62740
62741 2005-08-31  Bruno Haible  <bruno@clisp.org>
62742
62743         Avoid unnecessary diffs in the generated lib/Makefile.am.
62744         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
62745         the generated files.
62746         (func_import): Don't set cmd.
62747
62748 2005-08-31  Bruno Haible  <bruno@clisp.org>
62749
62750         * lib/strstr.c: Include <stddef.h>, for NULL.
62751         * lib/strcasestr.c: Likewise.
62752         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62753
62754 2005-08-31  Bruno Haible  <bruno@clisp.org>
62755
62756         * gnulib-tool: New option --macro-prefix.
62757         (func_import): Use macro_prefix.
62758         (import): Handle option --macro-prefix.
62759
62760 2005-08-31  Bruno Haible  <bruno@clisp.org>
62761
62762         * gnulib-tool (import): Rename most ac_* variables to cached_*.
62763         Also use new variables cached_lgpl, cached_libtool.
62764
62765 2005-08-31  Bruno Haible  <bruno@clisp.org>
62766
62767         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
62768         always instantiating them.
62769
62770 2005-08-31  Bruno Haible  <bruno@clisp.org>
62771
62772         * gnulib-tool (func_import): Read the previous cached settings
62773         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
62774         earlier added by gnulib but are now dropped. Warn when a gnulib file
62775         overwrites a non-gnulib file.
62776
62777 2005-08-31  Bruno Haible  <bruno@clisp.org>
62778
62779         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
62780         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
62781         projects that don't keep autogenerated files in CVS. Put into
62782         actioncmd only the specified modules, not the transitive closure.
62783
62784 2005-08-31  Bruno Haible  <bruno@clisp.org>
62785
62786         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
62787         Create directories that shall be filled.
62788         (import): Don't look for gl_* macros in configure.ac. Recurse across
62789         all directories containing a gnulib-cache.m4 files, if meaningful.
62790
62791 2005-08-31  Bruno Haible  <bruno@clisp.org>
62792
62793         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
62794         (import): Set seen_libtool when we see gl_LIBTOOL.
62795
62796 2005-08-31  Bruno Haible  <bruno@clisp.org>
62797
62798         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
62799         declaration macro definitions from generated gnulib.m4.
62800
62801 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
62802
62803         * lib/iconvme.h: Add prototype for iconv_alloc.
62804
62805 2005-08-29  Simon Josefsson  <jas@extundo.com>
62806
62807         * lib/iconvme.c: Fix errno.
62808
62809 2005-08-29  Bruno Haible  <bruno@clisp.org>
62810
62811         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
62812         that it works when the directory contains spaces.
62813
62814 2005-08-29  Bruno Haible  <bruno@clisp.org>
62815
62816         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
62817
62818 2005-08-29  Bruno Haible  <bruno@clisp.org>
62819
62820         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
62821         Emit more advice.
62822
62823 2005-08-29  Bruno Haible  <bruno@clisp.org>
62824         and Stepan Kasal  <kasal@ucw.cz>
62825
62826         * check-module: If more parameters are given, check each of them
62827         separately; add more exceptions, as noted by Jim Meyering.
62828         (check_module): New procedure.
62829         (%exempt_header): Now contains all exceptions.
62830
62831 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
62832
62833         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
62834
62835 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
62836
62837         * lib/iconvme.c: Split iconv_string into iconv_alloc.
62838
62839 2005-08-28  Bruno Haible  <bruno@clisp.org>
62840
62841         * m4/gnulib-tool.m4: New file.
62842
62843 2005-08-27  Jim Meyering  <jim@meyering.net>
62844
62845         * modules/unistd-safer (Files): Add pipe-safer.c.
62846         * modules/fcntl-safer (Files): Add creat-safer.c.
62847
62848 2005-08-27  Jim Meyering  <jim@meyering.net>
62849
62850         * m4/stdlib-safer.m4: New file.  From coreutils.
62851         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
62852         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
62853         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
62854         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
62855         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
62856
62857 2005-08-27  Jim Meyering  <jim@meyering.net>
62858
62859         * lib/fopen-safer.c: Merge minor changes from coreutils.
62860         * lib/dup-safer.c: Likewise.
62861         * lib/fd-safer.c: Likewise.
62862
62863         Merge from coreutils.
62864         * lib/stdio--.h: New file.
62865         * lib/stdlib--.h: New file.
62866         * lib/mkstemp-safer.c: New file.
62867
62868         GNU tar needs these.
62869         * lib/pipe-safer.c: New file.
62870         * lib/creat-safer.c: New file.
62871         * lib/fcntl--.h (creat): Define to creat_safer.
62872         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
62873         * lib/unistd--.h (pipe): Define to pipe_safer.
62874         * lib/unistd-safer.h: Declare pipe_safer.
62875
62876 2005-08-26  Simon Josefsson  <jas@extundo.com>
62877
62878         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
62879         Haible <bruno@clisp.org>.
62880
62881 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
62882
62883         * lib/regex_internal.h: Remove all references to
62884         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
62885         or better.
62886         (bitset_not, bitset_merge, bitset_not_merge):
62887         (bitset_mask, re_string_allocate, re_string_construct):
62888         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
62889         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
62890         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
62891         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
62892         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
62893         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
62894         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
62895         (re_acquire_state_context):
62896         Remove unnecessary forward decls.
62897         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
62898         Put __attribute at function definition,
62899         now that the function decl has been removed.
62900         * lib/regex_internal.c (re_string_peek_byte_case):
62901         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
62902         Likewise.
62903
62904 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
62905
62906         * m4/regex.m4: Add AC_PREREQ(2.50).
62907         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
62908
62909 2005-08-25  Simon Josefsson  <jas@extundo.com>
62910
62911         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
62912         __fsetlocking.
62913
62914 2005-08-25  Simon Josefsson  <jas@extundo.com>
62915
62916         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
62917         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
62918         GLIBC specific code.
62919
62920 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62921
62922         Make regex safe for g++.  This fixes one real bug (an "err"
62923         that should have been "*err").  g++ problem reported by
62924         Sam Steingold.
62925         * lib/regex_internal.h (re_calloc): New macro, consistent with
62926         re_malloc etc.  All callers of calloc changed to use re_calloc.
62927         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
62928         not int.  All callers changed.
62929         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
62930         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
62931         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
62932         (find_recover_state): Change "err" to "*err"; this fixes what
62933         appears to be a real bug.
62934         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
62935         versus int.
62936
62937 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62938
62939         * modules/regex (Depends-on): Add malloc, since the code
62940         assumes that !malloc(0) means failure.
62941
62942 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62943
62944         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
62945
62946         alloca modernization/simplification for regex.
62947         * lib/regex.c: Remove portability cruft for alloca.  This no longer
62948         needs to be at the start of the file, and can be moved into
62949         regex_internal.h and simplified.
62950         * lib/regex_internal.h: Include <alloca.h>.
62951         (__libc_use_alloca) [!defined _LIBC]: New macro.
62952         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
62953         now works outside glibc.
62954
62955 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62956
62957         * config/srclist.txt: Add glibc bugs 1241, 1245.
62958
62959 2005-08-25  Jim Meyering  <jim@meyering.net>
62960
62961         * lib/open-safer.c: Include <config.h>.
62962         Otherwise, we'd lose LARGEFILE support in any file using
62963         e.g. "fcntl--.h"
62964
62965 2005-08-25  Bruno Haible  <bruno@clisp.org>
62966
62967         * m4/minmax.m4: Require autoconf 2.52.
62968         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
62969         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
62970         alternatives of translit over the alphabet.
62971         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
62972
62973 2005-08-24  Simon Josefsson  <jas@extundo.com>
62974
62975         * tests/test-getpass.c: New file.
62976
62977 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62978
62979         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
62980         for GNU regex features.
62981
62982 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62983
62984         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
62985         * lib/regex.h (regerror): Likewise.
62986
62987         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
62988         requires this.  (The code never needed it.)
62989
62990         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
62991         All uses of recently-renamed identifiers changed to use the new,
62992         POSIX-compliant names.  The code will build and run just fine
62993         without these changes, but it's better to eat our own dog food
62994         and use the standard-conforming names.
62995
62996         * lib/regex.h: Fix a multitude of POSIX name space violations.
62997         These changes have an effect only for programs that define
62998         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
62999         do not change anything for programs compiled in the normal way.
63000         Also, there is no effect on the ABI.
63001
63002         (_REGEX_SOURCE): New macro.
63003         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
63004         defined and _GNU_SOURCE is not; this fixes a name space violation.
63005
63006         Rename the following macros to obey POSIX requirements.
63007         The old names are still visible as macros if _REGEX_SOURCE is defined.
63008         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
63009         RE_BACKSLASH_ESCAPE_IN_LISTS.
63010         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
63011         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
63012         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
63013         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
63014         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
63015         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
63016         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
63017         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
63018         (REG_INTERVALS): renamed from RE_INTERVALS.
63019         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
63020         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
63021         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
63022         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
63023         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
63024         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
63025         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
63026         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
63027         RE_UNMATCHED_RIGHT_PAREN_ORD.
63028         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
63029         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
63030         (REG_DEBUG): renamed from RE_DEBUG.
63031         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
63032         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
63033         unusual, since we can't clash with the POSIX REG_ICASE.
63034         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
63035         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
63036         (REG_NO_SUB): renamed from RE_NO_SUB.
63037         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
63038         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
63039         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
63040         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
63041         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
63042         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
63043         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
63044         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
63045         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
63046         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
63047         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
63048         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
63049         RE_SYNTAX_POSIX_MINIMAL_BASIC.
63050         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
63051         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
63052         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
63053         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
63054         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
63055         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
63056         (REG_FIXED): Renamed from REGS_FIXED.
63057         (REG_NREGS): Renamed from RE_NREGS.
63058
63059         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
63060         of other REG_* macros, since POSIX says the user is allowed to
63061         #undef these macros selectively.
63062
63063         (reg_errcode_t): Update comment stating what other tables need
63064         to be consistent.
63065
63066         Rename the following enum values to obey POSIX requirements.
63067         The old names are still visible as macros.
63068         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
63069         is not defined, since GNU is supposed to be a superset of POSIX as
63070         much as possible, and since we want reg_errcode_t to be a signed
63071         type for implementation consistency.
63072         (_REG_NOERROR): Renamed from REG_NOERROR.
63073         (_REG_NOMATCH): Renamed from REG_NOMATCH.
63074         (_REG_BADPAT): Renamed from REG_BADPAT.
63075         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
63076         (_REG_ECTYPE): Renamed from REG_ECTYPE.
63077         (_REG_EESCAPE): Renamed from REG_EESCAPE.
63078         (_REG_ESUBREG): Renamed from REG_ESUBREG.
63079         (_REG_EBRACK): Renamed from REG_EBRACK.
63080         (_REG_EPAREN): Renamed from REG_EPAREN.
63081         (_REG_EBRACE): Renamed from REG_EBRACE.
63082         (_REG_BADBR): Renamed from REG_BADBR.
63083         (_REG_ERANGE): Renamed from REG_ERANGE.
63084         (_REG_ESPACE): Renamed from REG_ESPACE.
63085         (_REG_BADRPT): Renamed from REG_BADRPT.
63086         (_REG_EEND): Renamed from REG_EEND.
63087         (_REG_ESIZE): Renamed from REG_ESIZE.
63088         (_REG_ERPAREN): Renamed from REG_ERPAREN.
63089         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
63090         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
63091         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
63092         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
63093
63094         (_REG_RE_NAME, _REG_RM_NAME): New macros.
63095         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
63096         changed.  But support the old name if the new one is not defined
63097         and if _REGEX_SOURCE.
63098
63099         Change the following member names in struct re_pattern_buffer.
63100         The old names are still supported if !_REGEX_SOURCE.
63101         The new names are always supported, regardless of _REGEX_SOURCE.
63102         (re_buffer): Renamed from buffer.
63103         (re_allocated): Renamed from allocated.
63104         (re_used): Renamed from used.
63105         (re_syntax): Renamed from syntax.
63106         (re_fastmap): Renamed from fastmap.
63107         (re_translate): Renamed from translate.
63108         (re_can_be_null): Renamed from can_be_null.
63109         (re_regs_allocated): Renamed from regs_allocated.
63110         (re_fastmap_accurate): Renamed from fastmap_accurate.
63111         (re_no_sub): Renamed from no_sub.
63112         (re_not_bol): Renamed from not_bol.
63113         (re_not_eol): Renamed from not_eol.
63114         (re_newline_anchor): Renamed from newline_anchor.
63115
63116         Change the following member names in struct re_registers.
63117         The old names are still supported if !_REGEX_SOURCE.
63118         The new names are always supported, regardless of _REGEX_SOURCE.
63119         (rm_num_regs): Renamed from num_regs.
63120         (rm_start): Renamed from start.
63121         (rm_end): Renamed from end.
63122
63123         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
63124         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
63125         Prepend __ to parameter names.
63126
63127         Undo yesterday's changes.
63128
63129 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63130
63131         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
63132         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
63133         lib/regex.c.
63134
63135 2005-08-24  Jim Meyering  <jim@meyering.net>
63136
63137         Sync from coreutils.
63138         * m4/fcntl-safer.m4: New file.
63139
63140         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
63141         and object files for this module.
63142
63143 2005-08-24  Jim Meyering  <jim@meyering.net>
63144
63145         Sync from coreutils.
63146         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
63147
63148 2005-08-24  Jim Meyering  <jim@meyering.net>
63149
63150         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
63151         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
63152
63153 2005-08-24  Jim Meyering  <jim@meyering.net>
63154
63155         * modules/fcntl-safer: New module.
63156         * modules/fts (Depends-on): Add fcntl-safer.
63157         * MODULES.html.sh (File descriptor based Input/Output):
63158         Add fcntl-safer.
63159
63160 2005-08-24  Bruno Haible  <bruno@clisp.org>
63161
63162         Support for unit test modules.
63163         * modules/README: Mention tests modules.
63164         * modules/TEMPLATE-TESTS: New file.
63165         * gnulib-tool: New options --extract-tests-module, --with-tests and
63166         --tests-base (unused for the moment).
63167         (testsbase, inctests): New variables.
63168         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
63169         (func_verify_module): Exclude TEMPLATE-TESTS.
63170         (func_verify_nontests_module, func_verify_tests_module): New functions.
63171         (func_get_dependencies): Add implicit dependency for tests modules.
63172         (func_get_tests_module): New function.
63173         (func_modules_transitive_closure): When --with-tests was specified,
63174         include the unit tests as well, unless explicitly avoided.
63175         (func_emit_lib_Makefile_am): Ignore the tests modules here.
63176         (func_emit_tests_Makefile_am): New function.
63177         (func_create_testdir): When --with-tests was specified, emit a
63178         tests/ directory.
63179         * MODULES.html.sh (Future developments): Update.
63180
63181 2005-08-24  Bruno Haible  <bruno@clisp.org>
63182
63183         * modules/tls-tests: New file.
63184         * tests/test-tls.c: New file, from GNU gettext.
63185
63186 2005-08-24  Bruno Haible  <bruno@clisp.org>
63187
63188         * modules/lock-tests: New file.
63189         * tests/test-lock.c: New file, from GNU gettext.
63190
63191 2005-08-24  Bruno Haible  <bruno@clisp.org>
63192
63193         * lib/lock.h: Add multiple inclusion guard.
63194         * lib/tls.h: Add multiple inclusion guard.
63195
63196 2005-08-24  Bruno Haible  <bruno@clisp.org>
63197
63198         * gnulib-tool: Add support for the --aux-dir option to
63199         --create-testdir, --create-megatestdir, --test, --megatest.
63200         (func_create_testdir, func_create_megatestdir): Optionally emit a
63201         AC_CONFIG_AUX_DIR directive.
63202         (create-testdir, create-megatestdir, test, megatest): Provide a
63203         default value for $auxdir.
63204
63205 2005-08-24  Bruno Haible  <bruno@clisp.org>
63206
63207         * gnulib-tool (import): Use compound statement instead of subshell
63208         where possible.
63209
63210 2005-08-24  Bruno Haible  <bruno@clisp.org>
63211
63212         * gnulib-tool (import): Change --aux-dir default to "build-aux".
63213
63214 2005-08-24  Bruno Haible  <bruno@clisp.org>
63215
63216         * gnulib-tool (func_version): Update.
63217
63218 2005-08-24  Bruno Haible  <bruno@clisp.org>
63219
63220         * gnulib-tool (func_import, func_create_testdir,
63221         func_create_megatestdir): Quote all autoconf macro arguments.
63222
63223 2005-08-24  Bruno Haible  <bruno@clisp.org>
63224
63225         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
63226         option --force, because --force causes the aclocal.m4 of each
63227         subdirectory to be newer than the corresponding config.h.in.
63228
63229 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63230
63231         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
63232         All contents moved to gl_REGEX.
63233         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
63234         assume that it does.
63235
63236 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63237
63238         * lib/regex.h (REG_NOSYS)
63239         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
63240         Define, since POSIX requires it as of 2001.
63241         (_REG_ENOSYS)
63242         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
63243         New private symbol, used to keep the enum signed in all cases.
63244         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
63245         Youngman in
63246         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
63247
63248         * lib/regex_internal.c (re_string_skip_chars, register_state):
63249         (calc_state_hash):
63250         Remove forward decls; no longer needed now that we use prototypes.
63251         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
63252         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
63253         (clean_state_log_if_needed): Likewise.
63254
63255 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63256
63257         * config/srclist.txt: Add glibc bugs 1231-1233.
63258
63259 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63260
63261         Fix problems reported by Sam Steingold in
63262         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
63263         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
63264         assumed that reg_errcode_t is a signed type, which is not
63265         necessarily true if _XOPEN_SOURCE is not defined.
63266         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
63267         since some compilers warn about it otherwise.
63268
63269 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63270
63271         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
63272         (init_word_char, create_initial_state, duplicate_node_closure):
63273         (fetch_token, peek_token_bracket, build_range_exp):
63274         (build_collating_symbol): Remove forward decls; no longer needed
63275         now that we use prototypes.
63276
63277         * lib/regcomp.c:
63278         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
63279         (re_compile_fastmap_iter, regcomp, regerror, regfree):
63280         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
63281         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
63282         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
63283         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
63284         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
63285         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
63286         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
63287         (build_range_exp, build_collating_symbol, parse_bracket_exp):
63288         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
63289         (build_charclass, build_charclass_op, fetch_number, create_tree):
63290         (create_token_tree, mark_opt_subexp, duplicate_tree):
63291         Use prototypes rather than old-style definitions.
63292
63293         * lib/regex_internal.c:
63294         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
63295         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
63296         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
63297         (re_string_reconstruct, re_string_peek_byte_case):
63298         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
63299         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
63300         (re_node_set_init_copy, re_node_set_add_intersect):
63301         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63302         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63303         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
63304         (re_acquire_state, re_acquire_state_context, register_state):
63305         (create_ci_newstate, create_cd_newstate, free_state):
63306         Likewise.
63307         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
63308         re_search_2):
63309         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
63310         (re_search_internal, prune_impossible_nodes):
63311         (acquire_init_state_context, check_matching, static):
63312         (check_halt_node_context, check_halt_state_context, proceed_next_node):
63313         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
63314         (update_regs, sift_states_backward, build_sifted_states):
63315         (clean_state_log_if_needed, merge_state_array):
63316         (update_cur_sifted_state, add_epsilon_src_nodes):
63317         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
63318         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
63319         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
63320         (find_recover_state, check_subexp_matching_top, transit_state_mb):
63321         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
63322         (check_arrival, check_arrival_add_next_nodes):
63323         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
63324         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
63325         (check_node_accept_bytes, check_node_accept, extend_buffers):
63326         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
63327         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
63328         (sift_ctx_init):
63329         Likewise.
63330
63331         * lib/regex_internal.h:
63332         (re_string_allocate, re_string_construct, re_string_reconstruct):
63333         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
63334         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
63335         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
63336         (re_string_context_at, re_string_peek_byte_case):
63337         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
63338         is defined, since we now use prototypes always.
63339
63340         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
63341         C89 or better.  All uses removed.
63342
63343 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63344
63345         * config/srclist.txt: Add glibc bugs 1220-1227.
63346
63347 2005-08-20  Jim Meyering  <jim@meyering.net>
63348
63349         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
63350         of unused local, dfa.
63351
63352 2005-08-20  Bruno Haible  <bruno@clisp.org>
63353
63354         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
63355
63356 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63357
63358         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
63359         (re_node_set_insert_last, re_dfa_add_node):
63360         Rename local variables to avoid GCC shadowing warnings.
63361
63362 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63363
63364         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
63365         [defined lint]: Suppress bogus uninitialized-variable warnings.
63366
63367         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
63368         and let the caller return REG_ESPACE if out of space.  This
63369         removes an uninitialied-variable warning with GCC 4.0.1, and also
63370         avoids taking the address of a local variable.  All callers
63371         changed.
63372
63373 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63374
63375         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
63376         $LIBCSRC/posix/regexec.c.
63377         Add glibc bug 1217 for regcomp.c.
63378
63379 2005-08-19  Jim Meyering  <jim@meyering.net>
63380
63381         * lib/regexec.c (proceed_next_node): Redo local variables to
63382         avoid GCC shadowing warnings.
63383
63384 2005-08-18  Bruno Haible  <bruno@clisp.org>
63385
63386         * lib/strstr.c (strstr): Fix return value in multibyte case.
63387         * lib/strcasestr.c (strcasestr): Likewise.
63388
63389 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63390
63391         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
63392
63393 2005-08-17  Jim Meyering  <jim@meyering.net>
63394
63395         Make the %s format (seconds since the epoch) work for a negative
63396         number and when used with a zero-padded field width, e.g. %015s.
63397
63398         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
63399         label so that it precedes the code to set `digits'.  Otherwise,
63400         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
63401         print `00-22'.  Now, it prints `-0022', as it should.
63402
63403 2005-08-17  Bruno Haible  <bruno@clisp.org>
63404
63405         * modules/strstr (Files): Add m4/mbrtowc.m4.
63406         (Depends-on): Add mbuiter.
63407
63408 2005-08-17  Bruno Haible  <bruno@clisp.org>
63409
63410         * modules/strcasestr: New file.
63411         * MODULES.html.sh (String handling, based on ANSI C 89): Add
63412         strcasestr.
63413
63414 2005-08-17  Bruno Haible  <bruno@clisp.org>
63415
63416         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
63417
63418 2005-08-17  Bruno Haible  <bruno@clisp.org>
63419
63420         * modules/mbuiter: New file.
63421         * MODULES.html.sh (Extended multibyte and wide character utilities):
63422         Add mbuiter.
63423
63424 2005-08-17  Bruno Haible  <bruno@clisp.org>
63425
63426         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
63427         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
63428
63429 2005-08-17  Bruno Haible  <bruno@clisp.org>
63430
63431         * m4/strcasestr.m4: New file.
63432
63433 2005-08-17  Bruno Haible  <bruno@clisp.org>
63434
63435         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
63436         * lib/strstr.c: Completely rewritten, with multibyte locale support.
63437
63438 2005-08-17  Bruno Haible  <bruno@clisp.org>
63439
63440         * lib/strcasestr.h: New file.
63441         * lib/strcasestr.c: New file.
63442
63443 2005-08-17  Bruno Haible  <bruno@clisp.org>
63444
63445         * lib/strcasecmp.c: Use mbuiter.h.
63446
63447 2005-08-17  Bruno Haible  <bruno@clisp.org>
63448
63449         * lib/mbuiter.h: New file.
63450
63451 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
63452
63453         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
63454         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
63455         and gl_GETOPT are both invoked via different paths (as happens
63456         with GNU tar CVS because it uses both argp and getopt), the former
63457         wins.
63458
63459 2005-08-16  Bruno Haible  <bruno@clisp.org>
63460
63461         * modules/tls: New file.
63462         * MODULES.html.sh (Multithreading): Add tls.
63463
63464 2005-08-16  Bruno Haible  <bruno@clisp.org>
63465
63466         * modules/strnlen1: New file.
63467         * MODULES.html.sh (String handling): Add strnlen1.
63468
63469 2005-08-16  Bruno Haible  <bruno@clisp.org>
63470
63471         * modules/strcase (Files): Add m4/mbrtowc.m4.
63472         (Depends-on): Add strnlen1, mbchar.
63473
63474 2005-08-16  Bruno Haible  <bruno@clisp.org>
63475
63476         * modules/mbiter: New file.
63477         * MODULES.html.sh (Extended multibyte and wide character utilities):
63478         Add mbiter.
63479
63480 2005-08-16  Bruno Haible  <bruno@clisp.org>
63481
63482         * modules/mbfile: New file.
63483         * MODULES.html.sh (Extended multibyte and wide character utilities):
63484         Add mbfile.
63485
63486 2005-08-16  Bruno Haible  <bruno@clisp.org>
63487
63488         * modules/mbchar: New file.
63489         * MODULES.html.sh (Extended multibyte and wide character utilities):
63490         New section.
63491
63492 2005-08-16  Bruno Haible  <bruno@clisp.org>
63493
63494         * m4/tls.m4: New file, from GNU gettext.
63495
63496 2005-08-16  Bruno Haible  <bruno@clisp.org>
63497
63498         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
63499         always.
63500         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
63501
63502 2005-08-16  Bruno Haible  <bruno@clisp.org>
63503
63504         * m4/mbiter.m4: New file.
63505
63506 2005-08-16  Bruno Haible  <bruno@clisp.org>
63507
63508         * m4/mbfile.m4: New file.
63509
63510 2005-08-16  Bruno Haible  <bruno@clisp.org>
63511
63512         * m4/mbchar.m4: New file.
63513
63514 2005-08-16  Bruno Haible  <bruno@clisp.org>
63515
63516         * lib/tls.h: New file, from GNU gettext.
63517         * lib/tls.c: New file, from GNU gettext.
63518
63519 2005-08-16  Bruno Haible  <bruno@clisp.org>
63520
63521         * lib/strnlen1.h: New file.
63522         * lib/strnlen1.c: New file.
63523
63524 2005-08-16  Bruno Haible  <bruno@clisp.org>
63525
63526         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
63527         (mbi_init): Update.
63528         (mbi_avail, mbi_advance): Let the iteration end before the terminating
63529         NUL byte, not after it.
63530
63531 2005-08-16  Bruno Haible  <bruno@clisp.org>
63532
63533         * lib/strcase.h (strcasecmp): Add note in comments.
63534         * lib/strncasecmp.c: Use code from strcasecmp.c.
63535         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
63536         (strcasecmp): Work correctly in multibyte locales.
63537
63538 2005-08-16  Bruno Haible  <bruno@clisp.org>
63539
63540         * lib/mbiter.h: New file.
63541
63542 2005-08-16  Bruno Haible  <bruno@clisp.org>
63543
63544         * lib/mbfile.h: New file.
63545
63546 2005-08-16  Bruno Haible  <bruno@clisp.org>
63547
63548         * lib/mbchar.h: New file.
63549         * lib/mbchar.c: New file.
63550
63551 2005-08-16  Bruno Haible  <bruno@clisp.org>
63552
63553         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
63554         the valid ones. Makes the comparison operations transitive:
63555         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
63556         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
63557
63558 2005-08-15  Simon Josefsson  <jas@extundo.com>
63559
63560         * modules/ssize_t (License): Change to 'unlimited'.
63561
63562         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
63563
63564 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63565
63566         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
63567         Add comments for each pending glibc patch.
63568
63569 2005-08-15  Bruno Haible  <bruno@clisp.org>
63570
63571         * lib/regex.h (__restrict_arr): Don't define to __restrict if
63572         __cplusplus is defined.
63573
63574 2005-08-14  Jim Meyering  <jim@meyering.net>
63575
63576         Sync from coreutils.
63577
63578         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
63579         Use the hash-table-based cycle-detection code not just when
63580         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
63581         Reported by James Youngman in
63582         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
63583         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
63584         FTS_TIGHT_CYCLE_CHECK.
63585         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
63586         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
63587         once again.
63588         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
63589         * lib/fts.c (fd_safer): Remove decl.
63590         Include fcntl--.h rather than unistd-safer.h
63591         (fts_safe_changedir): Don't call fd_safer; no longer needed
63592         now that we include fcntl--.h.
63593
63594 2005-08-12  Simon Josefsson  <jas@extundo.com>
63595
63596         * modules/getndelim2: Use ssize_t module.
63597         * modules/getnline: Likewise.
63598         * modules/safe-read: Likewise.
63599         * modules/xreadlink: Likewise.
63600
63601         * modules/ssize_t: New file.
63602
63603 2005-08-12  Simon Josefsson  <jas@extundo.com>
63604
63605         * m4/readline.m4: Look for termcap, curses or ncurses if required.
63606
63607 2005-08-12  Simon Josefsson  <jas@extundo.com>
63608
63609         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63610         ssize_t.
63611
63612 2005-08-12  Simon Josefsson  <jas@extundo.com>
63613
63614         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
63615         readline, getdelim and check_version.
63616         (Support for systems lacking ISO C 99: Sizes of integer types):
63617         Add size_max.
63618
63619 2005-08-12  Bruno Haible  <bruno@clisp.org>
63620
63621         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
63622
63623 2005-08-11  Simon Josefsson  <jas@extundo.com>
63624
63625         * modules/readline: New file.
63626
63627         * modules/strnlen (Files): Add strnlen.h.
63628
63629 2005-08-11  Simon Josefsson  <jas@extundo.com>
63630
63631         * m4/readline.m4: New file.
63632
63633 2005-08-11  Simon Josefsson  <jas@extundo.com>
63634
63635         * lib/readline.h, readline.c: New file.
63636
63637 2005-08-11  Simon Josefsson  <jas@extundo.com>
63638
63639         * doc/gnulib.texi (Initial import, Finishing touches): Mention
63640         gl_AVOID.
63641
63642 2005-08-11  Bruno Haible  <bruno@clisp.org>
63643
63644         * lib/strnlen.h (strnlen): Change parameter name to match comment.
63645
63646 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
63647
63648         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
63649
63650 2005-08-10  Simon Josefsson  <jas@extundo.com>
63651
63652         * tests/test-iconvme.c: New file.
63653
63654 2005-08-10  Simon Josefsson  <jas@extundo.com>
63655
63656         * m4/strnlen.m4: New file.
63657
63658         * m4/strndup.m4: Don't check for strnlen declaration, done in
63659         strnlen.m4.
63660
63661 2005-08-10  Simon Josefsson  <jas@extundo.com>
63662
63663         * lib/strndup.c: Use strnlen.h.
63664
63665         * lib/strnlen.h: New file.
63666
63667 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63668
63669         * README: Typos.
63670
63671 2005-08-02  Simon Josefsson  <jas@extundo.com>
63672
63673         * modules/readline: New file.
63674
63675 2005-08-02  Simon Josefsson  <jas@extundo.com>
63676
63677         * modules/getdelim: New file.
63678
63679         * modules/getline: Rewrite, don't use getndelim2.
63680
63681 2005-08-02  Simon Josefsson  <jas@extundo.com>
63682
63683         * m4/getline.m4: Separate out getdelim stuff into separate module.
63684
63685         * m4/getdelim.m4: New file.
63686
63687 2005-08-02  Simon Josefsson  <jas@extundo.com>
63688
63689         * lib/getline.h, getline.c: Rewrite.
63690
63691         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
63692
63693 2005-07-31  Bruno Haible  <bruno@clisp.org>
63694
63695         * lib/lock.h (gl_lock_initializer): New macro.
63696         (gl_lock_define_initialized): Use it.
63697         (gl_rwlock_initializer): New macro.
63698         (gl_rwlock_define_initialized): Use it.
63699         (gl_recursive_lock_initializer): New macro.
63700         (gl_recursive_lock_define_initialized): Use it.
63701
63702 2005-07-30  Karl Berry  <karl@gnu.org>
63703
63704         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
63705         Report from Ben Pfaff, regarding getopt.
63706
63707 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
63708
63709         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
63710         normal way.
63711         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
63712         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
63713         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
63714         (gl_GETOPT): Use the new macros.  Most of the implementation
63715         is moved to the new macros.  This is for programs like Emacs
63716         that don't want all the functionality of gl_GETOPT.
63717
63718 2005-07-26  Bruno Haible  <bruno@clisp.org>
63719
63720         * m4/lock.m4: Update from GNU gettext.
63721
63722 2005-07-26  Bruno Haible  <bruno@clisp.org>
63723
63724         * lib/lock.h: Update from GNU gettext.
63725         * lib/lock.c: Update from GNU gettext.
63726
63727 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
63728
63729         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
63730         obsolescent AC_TRY_RUN.  Include the default includes files, for
63731         'exit'.
63732
63733 2005-07-24  Bruno Haible  <bruno@clisp.org>
63734
63735         * modules/visibility: New file.
63736         * MODULES.html.sh (Misc): Add visibility.
63737
63738 2005-07-24  Bruno Haible  <bruno@clisp.org>
63739
63740         * m4/visibility.m4: New file.
63741
63742 2005-07-24  Bruno Haible  <bruno@clisp.org>
63743
63744         * doc/visibility.texi: New file.
63745
63746 2005-07-22  Bruno Haible  <bruno@clisp.org>
63747
63748         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
63749         $(ALLOCA_H), redundant through BUILT_SOURCES.
63750         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
63751         redundant through BUILT_SOURCES.
63752         * modules/byteswap (Makefile.am): Remove explicit dependency on
63753         $(BYTESWAP_H), redundant through BUILT_SOURCES.
63754         * modules/fnmatch (Makefile.am): Remove explicit dependency on
63755         $(FNMATCH_H), redundant through BUILT_SOURCES.
63756         * modules/getopt (Makefile.am): Remove explicit dependency on
63757         $(GETOPT_H), redundant through BUILT_SOURCES.
63758         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
63759         redundant through BUILT_SOURCES.
63760         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
63761         redundant through BUILT_SOURCES.
63762         * modules/stdbool (Makefile.am): Remove explicit dependency on
63763         $(STDBOOL_H), redundant through BUILT_SOURCES.
63764         * modules/stdint (Makefile.am): Remove explicit dependency on
63765         $(STDINT_H), redundant through BUILT_SOURCES.
63766         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
63767         Remove explicit dependency on $(SYSEXITS_H).
63768         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
63769
63770 2005-07-18  Simon Josefsson  <jas@extundo.com>
63771
63772         * lib/check-version.c (check_version): Accept identical versions too.
63773
63774 2005-07-18  Bruno Haible  <bruno@clisp.org>
63775
63776         * modules/lock: New file.
63777         * MODULES.html.sh (Multithreading): New section.
63778
63779 2005-07-18  Bruno Haible  <bruno@clisp.org>
63780
63781         * m4/lock.m4: New file, from GNU gettext.
63782
63783 2005-07-18  Bruno Haible  <bruno@clisp.org>
63784
63785         * lib/lock.h: New file, from GNU gettext.
63786         * lib/lock.c: New file, from GNU gettext.
63787
63788 2005-07-18  Bruno Haible  <bruno@clisp.org>
63789
63790         * lib/lock.h (gl_once_t): New type.
63791         (gl_once_define, gl_once): New macros.
63792         * lib/lock.c (fresh_once): New variable.
63793         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
63794         functions.
63795
63796 2005-07-16  Simon Josefsson  <jas@extundo.com>
63797
63798         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
63799         workaround, suggested by Bruno.
63800
63801 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
63802
63803         * modules/xalloc (Depends-on): Add xalloc-die.
63804         * modules/xvasprintf (Depends-on): Add xalloc-die.
63805
63806 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
63807
63808         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
63809         with a minor change.
63810
63811 2005-07-15  Bruno Haible  <bruno@clisp.org>
63812
63813         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
63814         When using lib/poll.c, define poll as rpl_poll.
63815
63816 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
63817
63818         * modules/argp (Depends-on): Remove unlocked-io.
63819
63820 2005-07-14  Derek Price  <derek@ximbiot.com>
63821
63822         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
63823         for glob symlink bug.
63824
63825 2005-07-14  Bruno Haible  <bruno@clisp.org>
63826
63827         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
63828         Instead, test for *_unlocked function declarations directly.
63829
63830 2005-07-11  Simon Josefsson  <jas@extundo.com>
63831
63832         * modules/size_max: New file.
63833
63834         * modules/xsize: Depend on size_max module for size_max.m4.
63835
63836 2005-07-11  Simon Josefsson  <jas@extundo.com>
63837
63838         * lib/size_max.h: New file.
63839
63840 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
63841
63842         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
63843         copyright symbol and the year.
63844         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
63845         (version_etc_va): Use parameterized copyright notice.
63846         Reword to conform to the current GNU coding standards.
63847
63848 2005-07-11  Karl Berry  <karl@gnu.org>
63849
63850         * doc/gnulib.texi (Quoting): new node.
63851         (Initial import): more info, from Patrice.
63852
63853 2005-07-11  Bruno Haible  <bruno@clisp.org>
63854
63855         * gnulib-tool (func_usage): Document option --avoid.
63856         (Command line options): Handle --avoid.
63857         (func_acceptable): New function.
63858         (func_modules_transitive_closure): Use it.
63859
63860 2005-07-11  Bruno Haible  <bruno@clisp.org>
63861
63862         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
63863         Reported by Jim Meyering.
63864
63865 2005-07-10  Bruno Haible  <bruno@clisp.org>
63866
63867         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
63868         Needed when size_t is smaller than 'unsigned int'.
63869         Reported by Paul Eggert.
63870
63871 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63872
63873         * modules/argp (Depends-on): Add unlocked-io
63874
63875 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63876
63877         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
63878         block of defines.
63879
63880 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63881
63882         * config/srclist.txt: Comment out regcomp.c, since we have a porting
63883         fix now.
63884
63885 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
63886         and Paul Eggert  <eggert@cs.ucla.edu>
63887
63888         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
63889         in wint_t, not wchar_t.  Remove now-unnecessary cast.
63890
63891 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
63892
63893         * modules/regex (Files): Add lib/regex_internal.c,
63894         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
63895         (Depends-on): Add extensions.
63896         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
63897
63898 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
63899
63900         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
63901         pathconf.
63902         * m4/same.m4 (gl_SAME): Likewise.
63903         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
63904
63905         * m4/regex.m4: Adjust to new libc regex implementation.
63906         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
63907         all the .c and .h parts of (the new) regex.
63908         Quote the m4 stuff better.
63909         Check for RE_ICASE bug of old gnulib.
63910         Check for REG_STARTEND of recent libc.
63911         Rename local variables from jm_* to gl_*.
63912         Quote operand of "test -f".
63913         Say "recent enough" version of libc, not "version 2".
63914         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
63915         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
63916         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
63917         Remove check for btowc, isascii.
63918         Require AM_LANGINFO_CODESET.
63919
63920 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
63921
63922         * lib/regex.c, regex.h: Sync from libc.
63923         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
63924         * lib/regexec.c:
63925         New files, synced from libc, except that regex_internal.h
63926         currently has a small porting fix.
63927
63928 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
63929
63930         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
63931         regex_internal.c, regexec.c.
63932         Add regex_internal.h too, but as a comment, since the libc version
63933         is currently broken in gnulib mode.
63934
63935 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63936
63937         Support programs like Emacs that use gnulib but not gettext.
63938         * MODULES.html.sh (Internationalization functions): Add gettext-h.
63939         * modules/gettext-h: New file.
63940         * modules/gettext (Files): Remove lib/gettext.h.
63941         (Depends-on): Add gettext-h.
63942         (Makefile.am): Remove lib_SOURCES.
63943         * modules/argmatch, modules/c-stack, modules/closeout:
63944         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
63945         * modules/execute, modules/file-type, modules/getaddrinfo:
63946         * modules/getopt, modules/human, modules/javacomp:
63947         * modules/javaexec, modules/mkdir-p, modules/obstack:
63948         * modules/openat, modules/pagealign_alloc, modules/pipe:
63949         * modules/quotearg, modules/regex, modules/rpmatch:
63950         * modules/unicodeio, modules/userspec, modules/version-etc:
63951         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
63952         * modules/xsetenv:
63953         Depend on gettext-h, not gettext.
63954
63955 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63956
63957         * gnulib-tool (func_import): Add support for 'public domain' license.
63958         * modules/alloca, modules/atexit, modules/memmove:
63959         Now public domain, not GPL.
63960         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
63961         * modules/realloc, modules/strerror, modules/strtod:
63962         Now LGPL, not GPL.
63963
63964 2005-07-05  Bruno Haible  <bruno@clisp.org>
63965
63966         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
63967         autoconf CVS. Needed for mingw.
63968
63969 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63970
63971         Remove the dependency of the strftime module on the tzset module.
63972         * modules/strftime (Depends-on): Remove dependency on tzset.
63973
63974 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63975
63976         Remove the dependency of the strftime module on the tzset module.
63977         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
63978         gl_FUNC_TZSET_CLOBBER.
63979
63980 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63981
63982         Remove the dependency of the strftime module on the tzset module.
63983         * lib/strftime.c (my_strftime)
63984         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
63985         Copy the input structure, to work around some of the bug with
63986         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
63987         Solaris releases, you should also use the tzset module, but we won't
63988         require it as a dependency any more since we don't want LGPLed code
63989         to depend on GPLed code.
63990
63991 2005-07-02  Jim Meyering  <jim@meyering.net>
63992
63993         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
63994         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
63995         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
63996         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
63997
63998 2005-07-02  Jim Meyering  <jim@meyering.net>
63999
64000         * lib/backupfile.c (backup_args): Change a `0' to NULL.
64001
64002 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64003
64004         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
64005         declares only 'struct timespec;' (!).
64006
64007 2005-07-01  Jim Meyering  <jim@meyering.net>
64008
64009         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
64010         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
64011         * lib/save-cwd.c, tempname.c:
64012         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
64013         and don't include <sys/file.h>).
64014
64015 2005-06-29  Jim Meyering  <jim@meyering.net>
64016
64017         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
64018         type name.  Use the variable name instead.
64019         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
64020         Likewise.
64021
64022 2005-06-28  Simon Josefsson  <jas@extundo.com>
64023
64024         * modules/check-version (Files): Add check-version.m4.
64025
64026 2005-06-28  Simon Josefsson  <jas@extundo.com>
64027
64028         * m4/check-version.m4: New file, suggested by Jim Meyering
64029         <jim@meyering.net>.
64030
64031 2005-06-28  Simon Josefsson  <jas@extundo.com>
64032
64033         * lib/check-version.h, lib/check-version.c: New files.
64034
64035 2005-06-28  Simon Josefsson  <jas@extundo.com>
64036
64037         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
64038         collision with global variable.  Better indentation.  Don't
64039         increment buffer pointer beyond buffer end.  Based on comments
64040         from Paul Eggert <eggert@cs.ucla.edu>.
64041
64042         * lib/base64.h: Indent.
64043
64044 2005-06-28  Simon Josefsson  <jas@extundo.com>
64045
64046         * doc/gnulib.texi (Library version handling): New section.
64047
64048 2005-06-28  Jim Meyering  <jim@meyering.net>
64049
64050         * check-module (find_included_lib_files): Hard-code another
64051         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
64052         but modules/fts-lgpl (correctly) does not list those files.
64053
64054         * modules/canonicalize (Files): Add lib/pathmax.h.
64055
64056 2005-06-25  Simon Josefsson  <jas@extundo.com>
64057
64058         * modules/check-version: New file.
64059
64060 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
64061
64062         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
64063         initializer of struct addrinfo, as an indication that we don't
64064         care how many members the structure has.
64065
64066 2005-06-24  Derek Price  <derek@ximbiot.com>
64067         and Bruno Haible  <bruno@clisp.org>
64068
64069         Remove stat module & update lstat.
64070         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
64071         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64072         * m4/stat.m4: Remove this file.
64073
64074 2005-06-24  Derek Price  <derek@ximbiot.com>
64075         and Bruno Haible  <bruno@clisp.org>
64076
64077         Remove stat module & update lstat.
64078         * lib/stat.c: Remove this file...
64079         (slash_aware_lstat): ...moving this content and its support...
64080         * lib/lstat.c (rpl_lstat): ...into here.
64081         * lib/lstat.h: New file.
64082
64083 2005-06-24  Derek Price  <derek@ximbiot.com>
64084         and Bruno Haible  <bruno@clisp.org>
64085
64086         Remove stat module & update lstat.
64087         * config/srclist.txt (libc sources): Remove stat.
64088
64089 2005-06-24  Derek Price  <derek@ximbiot.com>
64090         and Bruno Haible  <bruno@clisp.org>
64091
64092         Remove stat module & update lstat.
64093         * MODULES.html.sh (stat): Remove.
64094         * MODULES.html: Regenerated.
64095         * modules/lstat (Description): Correct function name.
64096         (Files): Add "lstat.h".
64097         (Depends-on): Remove stat, add xalloc, stat-macros.
64098         * modules/stat: Remove this file.
64099         (Include): Add "lstat.h", remove <sys/stat.h>.
64100
64101 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64102
64103         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
64104         (ranged_convert): Don't save conversion in a temporary struct.
64105         This causes a warning with GCC 4.0.0, and anyway in the typical
64106         case it's not worth the extra 100 bytes or so of code.
64107         (ranged_convert, __mktime_internal): When calling a function via a
64108         pointer P, use P () rather than (*P) (), as we now assume C89 or
64109         better.
64110
64111 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64112
64113         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
64114         "who -r" failed to give output.  Problem reported by Tim Waugh.
64115
64116         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
64117         (xcalloc): Use it to avoid needless tests.
64118         Problem reported by Jim Meyering.
64119
64120 2005-06-20  Derek Price  <derek@ximbiot.com>
64121
64122         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
64123         unnecessary for Autoconfs > 2.59c.
64124
64125 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64126
64127         * lib/argp.h (__option_is_short): Check upper limit of
64128         __key. Isprint() requires its argument to have the value
64129         of an unsigned char or EOF.
64130
64131 2005-06-16  Jim Meyering  <jim@meyering.net>
64132
64133         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
64134         when either N or S is zero.
64135
64136 2005-06-16  Derek Price  <derek@ximbiot.com>
64137
64138         * m4/bison.m4: Declare YACC & YFLAGS precious.
64139
64140 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
64141
64142         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
64143         multibyte string or pattern, fall back on unibyte matching.
64144         Problem reported by James Youngman.
64145
64146 2005-06-08  Bruno Haible  <bruno@clisp.org>
64147
64148         * modules/csharpcomp: New file.
64149         * MODULES.html.sh (C#): Add csharpcomp.
64150
64151 2005-06-08  Bruno Haible  <bruno@clisp.org>
64152
64153         * m4/csharpcomp.m4: New file, from GNU gettext.
64154
64155 2005-06-08  Bruno Haible  <bruno@clisp.org>
64156
64157         * lib/csharpcomp.h: New file, from GNU gettext.
64158         * lib/csharpcomp.c: New file, from GNU gettext.
64159         * lib/csharpcomp.sh.in: New file, from GNU gettext.
64160
64161 2005-06-08  Bruno Haible  <bruno@clisp.org>
64162
64163         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
64164         warning on mingw.
64165
64166 2005-06-07  Derek Price  <derek@ximbiot.com>
64167
64168         Sync from CVS.
64169         * lib/glob_.h: Indent nested #ifdef.
64170
64171 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
64172
64173         Sync from coreutils.
64174         Use "file name" when talking about file names, instead of "filename"
64175         or "path", as per the GNU coding standards.
64176         * lib/mkdir-p.c: Renamed from makepath.c.
64177         (make_dir_parents): Renamed from make_path.  All callers changed.
64178         * lib/mkdir-p.h: Likewise.  All includers changed.
64179         * lib/filenamecat.c: Renamed from path-concat.c.
64180         (file_name_concat): Renamed from path_concat.  All callers changed.
64181         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
64182         * lib/filenamecat.h: Likewise.  All includers changed.
64183         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
64184         in comments or local variable names.
64185         * lib/basename.c: Likewise.
64186         * lib/canonicalize.c, canonicalize.h: Likewise.
64187         * lib/dirname.c, dirname.h: Likewise.
64188         * lib/euidaccess.c: Likewise.
64189         * lib/exclude.c: Likewise
64190         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
64191         * lib/fsusage.c, fsuage.h: Likewise.
64192         * lib/fts.c, fts_.h: Likewise.
64193         * lib/getcwd.c: Likewise.
64194         * lib/getloadavg.c: Likewise.
64195         * lib/mkstemp.c: Likewise.
64196         * lib/mountlist.c, mountlist.h: Likewise.
64197         * lib/openat.c, openat.h: Likewise.
64198         * lib/readlink-stub.c: Likewise.
64199         * lib/readutmp.c, readutmp.h: Likewise.
64200         * lib/rename.c: Likewise.
64201         * lib/rmdir.c: Likewise.
64202         * lib/same.c: Likewise.
64203         * lib/savedir.c: Likewise.
64204         * lib/stripslash.c: Likewise.
64205         * lib/tempname.c: Likewise.
64206         * lib/xreadlink.c: Likewise.
64207         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
64208         All uses changed.
64209         * lib/exclude.h: Likewise.
64210
64211         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
64212         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
64213         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
64214         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
64215         * lib/pathmax.h: Include <limits.h> unconditionally, since other
64216         files have been getting away with it for years (MORE/BSD 4.3
64217         is extinct now).
64218         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
64219         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
64220
64221         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
64222         Define to 256, not 255, as per modern POSIX.
64223
64224 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
64225
64226         Sync from coreutils.
64227         Use "file name" when talking about file names, instead of "filename"
64228         or "path", as per the GNU coding standards.
64229         * MODULES.html.sh: mkdir-p renamed from makepath.
64230         filenamecat renamed from path-concat.
64231         * modules/filenamecat: Renamed from modules/path-concat.
64232         (Files): filenamecat.h and filenamecat.c renamed from
64233         path-concat.h and path-concat.c.
64234         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
64235         (Include): filenamecat.h, not path-concat.h.
64236         * modules/mkdir-p: Renamed from modules/makepath.
64237         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
64238         makepath.c.
64239         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
64240         (Include): mkdir-p.h, not makepath.h.
64241
64242 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
64243
64244         Sync from coreutils.
64245         * m4/mkdir-p.m4: Renamed from makepath.m4.
64246         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
64247         Rename files from makepath.c to mkdir-p.c, and from
64248         makepath.h to mkdir-p.h.
64249         * m4/filenamecat.m4: Renamed from path-concat.m4.
64250         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
64251         Rename files from path-concat.c to filenamecat.c,
64252         and from path-concat.h to filenamecat.h.
64253         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
64254         "file name" in local variables or comments.
64255         * m4/rename.m4: Likewise.
64256
64257 2005-06-01  Bruno Haible  <bruno@clisp.org>
64258
64259         * modules/csharpexec: New file.
64260         * MODULES.html.sh (C#): New section.
64261
64262 2005-06-01  Bruno Haible  <bruno@clisp.org>
64263
64264         * m4/csharp.m4: New file, from GNU gettext.
64265         * m4/csharpexec.m4: New file, from GNU gettext.
64266
64267 2005-06-01  Bruno Haible  <bruno@clisp.org>
64268
64269         * lib/csharpexec.h: New file, from GNU gettext.
64270         * lib/csharpexec.c: New file, from GNU gettext.
64271         * lib/csharpexec.sh.in: New file, from GNU gettext.
64272
64273 2005-05-31  Derek Price  <derek@ximbiot.com>
64274             Paul Eggert  <eggert@cs.ucla.edu>
64275
64276         Sync from cvs.
64277         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
64278
64279 2005-05-31  Derek Price  <derek@ximbiot.com>
64280             Paul Eggert  <eggert@cs.ucla.edu>
64281
64282         Sync from cvs.
64283         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
64284
64285 2005-05-29  Derek Price  <derek@ximbiot.com>
64286
64287         * config/srclist.txt (glob_.h, glob.c): Add these files.
64288
64289 2005-05-29  Derek Price  <derek@ximbiot.com>
64290
64291         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
64292         * modules/glob: New file.
64293         * modules/getlogin_r: Add link to POSIX spec in description.
64294
64295 2005-05-29  Derek Price  <derek@ximbiot.com>
64296             Paul Eggert  <eggert@cs.ucla.edu>
64297
64298         * m4/glob.m4: New file.
64299
64300 2005-05-29  Derek Price  <derek@ximbiot.com>
64301             Paul Eggert  <eggert@cs.ucla.edu>
64302
64303         * lib/glob_.h, lib/glob.c: New files.
64304
64305 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
64306
64307         * modules/fts (Files): Remove m4/inttypes-pri.m4.
64308         * modules/fts-lgpl (Depends-on): Remove gettext.
64309
64310 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
64311
64312         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
64313         and don't require gt_INTTYPES_PRI.
64314
64315 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
64316
64317         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
64318
64319         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
64320         the configuration hassle isn't worth it.
64321         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
64322         (LONGEST_MODIFIER, PRIuMAX): Remove.
64323
64324 2005-05-27  Bruno Haible  <bruno@clisp.org>
64325
64326         * lib/getlogin_r.h: Remove second include of <stddef.h>.
64327
64328 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
64329
64330         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
64331         _POSIX_PTHREAD_SEMANTICS for Solaris.
64332
64333 2005-05-25  Derek Price  <derek@ximbiot.com>
64334
64335         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
64336
64337 2005-05-25  Derek Price  <derek@ximbiot.com>
64338             Paul Eggert  <eggert@cs.ucla.edu>
64339
64340         * modules/getlogin_r, m4/getlogin_r.m4: New files.
64341         * lib/getlogin_r.c, getlogin_r.h: New files.
64342
64343 2005-05-25  Bruno Haible  <bruno@clisp.org>
64344             Derek Price  <derek@ximbiot.com>
64345
64346         * lib/getlogin_r.h: Simplify API documentation.
64347
64348 2005-05-23  Derek Price  <derek@ximbiot.com>
64349
64350         * modules/minmax (Files): Add m4/minmax.m4.
64351         (configure.ac): Add gl_MINMAX.
64352
64353 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
64354
64355         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
64356         so that unistd-safer.h (GPL'ed code) need not be included.
64357
64358 2005-05-22  Bruno Haible  <bruno@clisp.org>
64359
64360         * m4/minmax.m4: New file.
64361         Based on a patch by Derek Price <derek@ximbiot.com>.
64362
64363 2005-05-22  Bruno Haible  <bruno@clisp.org>
64364
64365         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
64366         (INT64_MIN): Fix definition.
64367         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
64368
64369         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
64370         NEED_SIGNED_INT_TYPES.
64371
64372         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
64373         HAVE_SYSTEM_INTTYPES.
64374
64375 2005-05-22  Bruno Haible  <bruno@clisp.org>
64376
64377         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
64378         Also include <sys/param.h> if it defines MIN, MAX.
64379         Based on a patch by Derek Price <derek@ximbiot.com>.
64380
64381 2005-05-21  Jim Meyering  <jim@meyering.net>
64382
64383         * modules/fts (Files): Add m4/inttypes-pri.m4.
64384         (Depends-on): Add lstat and remove gettext.  Alphabetize.
64385
64386 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64387
64388         New fts module.
64389         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
64390         (setup_dir, free_dir): New functions.
64391         (enter_dir, leave_dir): Define trivial
64392         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
64393         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
64394         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
64395         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
64396         Move to fts-cycle.c.
64397         (fts_open): Use setup_dir.
64398         (fts_close): Use free_dir.
64399         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
64400         This adds a label and some gotos, but the alternatives were messier.
64401         Check for memory allocation failure when entering a dir.
64402         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
64403         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
64404         (FTS): New member fts_cycle, that is a union that contains the
64405         old active_dir_ht and cycle_state.  All uses changed to mention
64406         fts_cycle.ht and fts_cycle.state.
64407         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
64408         fts.c, with the following changes:
64409         (setup_dir, free_dir): New functions.
64410         (enter_dir): Now returns bool.  Return true if successful, false
64411         if memory exhausted.  All callers changed.
64412         Do not bother partly cleaning up on
64413         memory allocation failure; that is free_dir's job.
64414         However, free ad if hash_insert fails, to avoid memory leak.
64415         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
64416         fts->fts_options to see which union member to use.
64417
64418 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64419
64420         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
64421         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
64422
64423 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64424
64425         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
64426
64427 2005-05-20  Jim Meyering  <jim@meyering.net>
64428
64429         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
64430         Now a macro, to pacify GCC.
64431
64432 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
64433
64434         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
64435         of -1.
64436
64437 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
64438
64439         * lib/chown.c (rpl_chown): Return -1 on failure.
64440
64441 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
64442
64443         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
64444         Don't check for stddef.h.
64445         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
64446         don't use its results.
64447         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
64448         since we include them unconditionally.  Don't require
64449         AM_STDBOOL_H, since stdbool is a prerequisite.
64450         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
64451         since we assume C89 or better.
64452         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
64453         as we don't use their results.
64454         Don't check for fchdir, memmove, memset, strrchr, as we use
64455         them unconditionally.
64456         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
64457         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
64458
64459 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
64460
64461         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
64462         Include <stddef.h> unconditionally, since we assume C89 now.
64463         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
64464         * lib/fts.c: Include fts_.h first, to check interface.
64465         Do not include intprops.h; no longer needed.
64466         Include cycle-check.h and hash.h, since fts_.h no longer does.
64467         Remove unnecessary casts of closedir to void.
64468         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
64469         decide whether to decrement nlinks.
64470         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
64471         (FTS): Use struct hash_table * instead of Hash_table, so that
64472         we no longer need to include hash.h here.
64473
64474 2005-05-18  Jim Meyering  <jim@meyering.net>
64475
64476         * modules/dirfd (License): Change to LGPL.  Most of the code
64477         is already in the public domain.
64478
64479 2005-05-18  Jim Meyering  <jim@meyering.net>
64480
64481         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
64482         Reported by Yoann Vandoorselaere.
64483
64484 2005-05-17  Jim Meyering  <jim@meyering.net>
64485
64486         * m4/fts.m4: New file, from coreutils.
64487
64488 2005-05-17  Jim Meyering  <jim@meyering.net>
64489
64490         * lib/fts.c, lib/fts_.h: New files, from coreutils.
64491
64492 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64493
64494         Sync from coreutils.
64495         * m4/unlinkdir.m4: New file.
64496
64497 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64498
64499         Sync from coreutils.
64500         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
64501         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
64502         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
64503         White space changes only.
64504         * lib/makepath.c (make_path): Port to hosts where leading "//" is
64505         special.
64506         * lib/yesno.c: Include getline.h, not ctype.h.
64507         (yesno): Don't remove leading white space; POSIX doesn't allow it.
64508         Use getline to remove arbitrary restriction on response length.
64509
64510 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64511
64512         * config/srclist-update: Spell out "Street" in FSF postal
64513         mail address; this is the style the FSF seems to prefer.
64514
64515         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
64516         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
64517         this updates FSF postal mail address.
64518
64519         Sync from coreutils.
64520         * modules/unlinkdir: New file.
64521         * modules/yesno (Depends-on): Add getline.
64522         * MODULES.html.sh (File system functions): Add unlinkdir.
64523
64524 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64525
64526         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
64527         lib/strsep.h:
64528         Change the initial comment to refer to GPL, not LGPL.
64529         gnulib-tool will change it to LGPL as needed.
64530
64531         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
64532         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
64533         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
64534         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
64535         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
64536         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
64537         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
64538         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
64539         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
64540         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
64541         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
64542         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
64543         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
64544         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
64545         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
64546         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
64547         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
64548         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
64549         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
64550         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
64551         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
64552         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
64553         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
64554         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
64555         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
64556         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
64557         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
64558         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
64559         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
64560         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
64561         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
64562         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
64563         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
64564         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
64565         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
64566         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
64567         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
64568         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
64569         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
64570         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
64571         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
64572         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
64573         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
64574         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
64575         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
64576         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
64577         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
64578         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
64579         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
64580         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
64581         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
64582         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
64583         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
64584         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
64585         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
64586         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
64587         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
64588         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
64589         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
64590         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
64591         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
64592         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
64593         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
64594         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
64595         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
64596         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
64597         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
64598         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
64599         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
64600         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
64601         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
64602         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
64603         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
64604         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
64605         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
64606         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
64607         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
64608         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
64609         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
64610         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
64611         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
64612         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
64613         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
64614         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
64615         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
64616         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
64617         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
64618         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
64619         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
64620         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
64621         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
64622         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
64623         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
64624         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
64625         lib/yesno.c, lib/yesno.h:
64626         Update FSF postal mail address.
64627
64628 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64629
64630         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
64631         tests/test-memmem.c, tests/test-stpncpy.c:
64632         Update FSF postal mail address.
64633
64634 2005-05-13  Bruno Haible  <bruno@clisp.org>
64635
64636         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
64637         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
64638         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
64639         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
64640         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
64641         Add support for 64-bit integers in the MSVC compiler.
64642
64643 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64644
64645         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
64646
64647 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
64648
64649         * gnulib-tool (func_import): Sort and uniquify recommended includes.
64650
64651 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
64652
64653         * doc/getdate.texi (General date syntax): Don't say that date
64654         date --iso-8601=ns generates acceptable dates; it doesn't yet.
64655         Problem reported by Nic Ferrier.
64656
64657 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64658
64659         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
64660         specified in ai_socktype. Fix invalid ai_protocol
64661         check. ai_protocol is usually set to 0 or depending on
64662         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
64663         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
64664         ai_socktype / ai_protocol in the returned addrinfo structure.
64665
64666 2005-05-10  Simon Josefsson  <jas@extundo.com>
64667
64668         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
64669         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64670
64671 2005-05-10  Karl Berry  <karl@gnu.org>
64672
64673         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
64674         (from http://www.gnu.org/licenses).
64675         * doc/COPYING.LIB: also rename to COPYING.LESSER.
64676         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
64677         fdl.texi suffices.
64678
64679 2005-05-10  Karl Berry  <karl@gnu.org>
64680
64681         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
64682         (COPYING.DOC): remove.
64683
64684         * config/srclist-update: new FSF address.
64685
64686 2005-05-10  Derek Price  <derek@ximbiot.com>
64687
64688         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
64689         possible.
64690
64691 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64692             Bruno Haible  <bruno@clisp.org>
64693
64694         * modules/inet_ntop: New file.
64695         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64696         inet_ntop.
64697
64698 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64699             Bruno Haible  <bruno@clisp.org>
64700
64701         * m4/inet_ntop.m4: New file.
64702
64703 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64704             Bruno Haible  <bruno@clisp.org>
64705
64706         * lib/inet_ntop.h: New file.
64707         * lib/inet_ntop.c: New file, from glibc with modifications.
64708
64709 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
64710
64711         * modules/time_r (License): Change to LGPL.
64712         * modules/extensions (License): Change to LGPL.  Actually,
64713         the license is more permissive than that, but currently gnulib-tool
64714         doesn't know how to handle more-permissive licenses.
64715
64716         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
64717         Problem reported by Dave Love.
64718
64719 2005-05-08  Jim Meyering  <jim@meyering.net>
64720
64721         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
64722         blank.
64723
64724 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
64725
64726         * modules/argmatch (Depends-on): Add stdbool.
64727         * modules/backupfile (Depends-on): Likewise.
64728         * modules/chdir-long (Depends-on): Likewise.
64729         * modules/closeout (Depends-on): Likewise.
64730         * modules/cycle-check (Depends-on): Likewise.
64731         * modules/dirname (Depends-on): Likewise.
64732         * modules/fnmatch (Depends-on): Likewise.
64733         * modules/fsusage (Depends-on): Likewise.
64734         * modules/fwriteerror (Depends-on): Likewise.
64735         * modules/getcwd (Depends-on): Likewise.
64736         * modules/getloadavg (Depends-on): Likewise.
64737         * modules/hard-locale (Depends-on): Likewise.
64738         * modules/makepath (Depends-on): Likewise.
64739         * modules/mountlist (Depends-on): Likewise.
64740         * modules/nanosleep (Depends-on): Likewise.
64741         * modules/posixtm (Depends-on): Likewise.
64742         * modules/quotearg (Depends-on): Likewise.
64743         * modules/readtokens (Depends-on): Likewise.
64744         * modules/readtokens0 (Depends-on): Likewise.
64745         * modules/readutmp (Depends-on): Likewise.
64746         * modules/save-cwd (Depends-on): Likewise.
64747         * modules/strftime (Depends-on): Likewise.
64748         * modules/userspec (Depends-on): Likewise.
64749         * modules/utimecmp (Depends-on): Likewise.
64750         * modules/xgetcwd (Depends-on): Likewise.
64751         * modules/xnanosleep (Depends-on): Likewise.
64752         * modules/xstrtod (Depends-on): Likewise.
64753         * modules/yesno (Depends-on): Likewise.
64754
64755 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
64756
64757         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
64758         needless checks.
64759
64760 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64761
64762         Merge from coreutils.  Among other things,
64763         add bulletproofing for cases where stdin, stdout, or stderr are closed.
64764         * lib/fd-safer.c: New file.
64765         * lib/fcntl-safer.h, open-safer.c: Remove.
64766         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
64767         * lib/dup-safer.c: Include unistd-safer.h first.
64768         Don't include errno.h.
64769         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
64770         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
64771         * lib/file-type.c: Rely on file-type.h change.
64772         * lib/getloadavg.c: Include unistd-safer.h.
64773         (getloadavg): Use safer open.
64774         * lib/getusershell.c: Include "stdio-safer.h".
64775         (getusershell): Use safer fopen.
64776         * lib/long-options.c (long_options): Use NULL rather than 0.
64777         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
64778         'free'.
64779         * lib/modechange.c: Likewise.
64780         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
64781         (MODE_DONE): New constant.
64782         (struct mode_change): Remove 'next' member.
64783         (make_node_op_equals): New function; like the old one of the
64784         same name, except it allocates an array.
64785         (mode_compile, mode_create_from_ref): Use it.
64786         (mode_compile): Allocate result as an array, not a linked list.
64787         Parse octal string ourself, so that we catch mistakes like "+0".
64788         (mode_adjust): Arg is an array, not a linked list.
64789         * lib/modechange.c: Include stat-macros.h, xalloc.h.
64790         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
64791         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
64792         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
64793         Remove.  This is now stat-macros.h's job.
64794         (talloc): Remove.  All callers replaced by xalloc, so that
64795         our invokers don't have to worry about reporting memory failures.
64796         (make_node_op_equals): Remove.
64797         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
64798         New constants.
64799         (struct mode_change): Moved here from modechange.h.
64800         (mode_append_entry): Remove.
64801         (mode_compile): Remove MASKED_OPS arg, since it encouraged
64802         apps to have incorrect behavior.  Use simpler algorithm for head
64803         and tail.  Don't futz with umask; that's now the job of mode_adjust.
64804         Detect more invalid usages rather than having somewhat-random behavior.
64805         Don't insert an "a=" action, as that leads to incorrect behavior.
64806         (mode_compile, mode_create_from_ref): Return NULL on error instead
64807         of an enum, since now there's only one way to have an error.  All
64808         callers changed.
64809         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
64810         at the correct time.  Simplify calculation of "+u" and its ilk.
64811         Don't mishandle "+X".
64812         (mode_free): Remove "register" and localize decls.
64813         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
64814         (struct mode_change): Move to modechange.c; callers don't
64815         need to see this stuff.
64816         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
64817         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
64818         (mode_change, mode_adjust): Reflect the new signatures noted above.
64819         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
64820         that might redefine system include files.
64821         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
64822         (my_usleep): Use NULL rather than (void *) 0.
64823         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
64824         Use siginterrupt to specify that system calls should be interrupted.
64825         (rpl_nanosleep): Move initialization of suspended closer to call of
64826         my_usleep.
64827         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
64828         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
64829         (desirable_utmp_entry): New function.
64830         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
64831         using x2nrealloc, to simplify logic.
64832         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
64833         size calculation.  Do not assume utmp file is a regular file.
64834         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
64835         (READ_UTMP_CHECK_PIDS): New constant.
64836         * lib/save-cwd.c: Include unistd-safer.h.
64837         (save_cwd): Use fd_safer.
64838         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
64839         [!_LIBC] Include "stat-macros.h" instead.
64840         * lib/unistd-safer.h (fd_safer): New decl.
64841
64842 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64843
64844         * modules/getloadavg (Depends-on): Add unistd-safer.
64845         * modules/getusershell (Depends-on): Add stdio-safer.
64846         * modules/lstat (Depends-on): Remove xalloc.
64847         * modules/mkstemp (Depends-on): Add stat-macros.
64848         * modules/modechange (Depends-on): Remove xstrtol.
64849         Add stat-macros, xalloc.
64850         * modules/save-cwd (Depends-on): Add unistd-safer.
64851         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
64852         * modules/unistd-safer (Files): Add lib/fd-safer.c
64853         (Makefile.am): Remove lib_SOURCES.
64854
64855         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
64856         Remove fcntl-safer; unistd-safer supersedes it.
64857
64858 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64859
64860         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
64861         AC_HEADER_STAT.
64862         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
64863         (gl_PREREQ_CHOWN): Remove.
64864         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
64865         it.  Don't require AC_HEADER_STAT.
64866         (gl_PREREQ_LSTAT): Remove.
64867         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
64868         Don't require AC_HEADER_STAT.
64869         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
64870         (gl_PREREQ_RMDIR): Remove.
64871         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
64872         mention stat-macros.h or AC_HEADER_STAT, since we'll make
64873         the stat-macros module a prerequisite.
64874         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
64875         * m4/filemode.m4 (gl_FILEMODE): Likewise.
64876         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
64877         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
64878         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
64879         variable names.
64880         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
64881         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
64882         variable prefixes.
64883         * m4/fcntl-safer.m4: Remove.
64884         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
64885         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
64886         Invoke gl_PREREQ_FD_SAFER.
64887         (gl_PREREQ_FD_SAFER): New macro.
64888         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
64889         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
64890         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
64891         Remove duplicate call to AC_LIBOBJ(readutmp).
64892         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
64893
64894         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
64895         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
64896
64897 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64898
64899         * MODULES.html.sh (Misc): Add byteswap.
64900
64901 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
64902
64903         * modules/getcwd (Depends-on): Add extensions.
64904         * modules/openat (Depends-on): Likewise.
64905
64906 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
64907
64908         * modules/byteswap: New file.
64909
64910 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
64911
64912         * m4/byteswap.m4: New file.
64913
64914 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
64915
64916         * lib/byteswap_.h: New file.
64917
64918 2005-04-25  Karl Berry  <karl@gnu.org>
64919
64920         * m4/gettext.m4: Update from GNU gettext 0.14.4.
64921
64922 2005-04-25  Albert Chin  <china@thewrittenword.com>
64923
64924         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
64925         Toolkit C bug.
64926
64927 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
64928
64929         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
64930         (func_ln_if_changed) Remove forcibly for no error message
64931         in case file does not exist.
64932
64933 2005-04-19  Simon Josefsson  <jas@extundo.com>
64934
64935         * gnulib-tool (Options): Make --symlink mean --symbolic.
64936
64937 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
64938
64939         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
64940
64941 2005-04-16  Simon Josefsson  <jas@extundo.com>
64942
64943         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
64944
64945 2005-04-15  Simon Josefsson  <jas@extundo.com>
64946
64947         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
64948
64949 2005-04-15  Simon Josefsson  <jas@extundo.com>
64950
64951         * gnulib-tool: Rename --symlink to --symbolic.
64952
64953 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
64954
64955         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
64956         symbolic links to files instead of copying/moving.  Add --aux-dir,
64957         specifying directory relative --dir where auxiliary build tools
64958         are placed.
64959
64960 2005-04-14  Bruno Haible  <bruno@clisp.org>
64961
64962         * modules/allocsa (License): Change to LGPL.
64963         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
64964
64965 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64966
64967         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
64968         that "UTC +1 second" continues to work.  Problem reported
64969         by Dmitry V. Levin.
64970         (relunit_snumber): New rule.
64971         (relunit): Use it.
64972
64973 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
64974
64975         * lib/getdate.y (universal_time_zone_table): New constant.
64976         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
64977         universal_time_zone_table.
64978         (lookup_zone): Prefer universal_time_zone_table to
64979         local_time_zone_table, so that "GMT" time stamps are allowed in
64980         London during the summer.  Problem reported by Ian Abbott.
64981
64982 2005-04-12  Jim Meyering  <jim@meyering.net>
64983
64984         * lib/human.c (humblock): Set *options even when returning due to
64985         xstrtoumax conversion failure.  Thanks to a used-uninitialized
64986         warning from gcc-4.
64987
64988 2005-04-09  Jim Meyering  <jim@meyering.net>
64989
64990         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
64991         -Wuninitialized: initialize tm0.tm_year.
64992
64993 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
64994
64995         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
64996         count, since there's no maximum.  All uses changed.
64997         Add member dsts_seen.
64998         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
64999         not being INT_MAX.
65000         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
65001         Use pc_rels_seen to decide whther a date is absolute.
65002
65003         * lib/getdate.y (number): Don't overwrite year.
65004         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
65005         check.
65006
65007 2005-04-02  Simon Josefsson  <jas@extundo.com>
65008
65009         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
65010         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
65011
65012 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
65013
65014         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
65015         where no absolute path name can be longer than PATH_MAX.
65016
65017 2005-03-27  Jim Meyering  <jim@meyering.net>
65018
65019         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
65020
65021 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
65022
65023         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
65024         "one's complement" -> "ones' complement" in comment, as per Knuth.
65025         "value of type" -> "type or expression" in comment.
65026         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
65027
65028 2005-03-26  Jim Meyering  <jim@meyering.net>
65029
65030         Comment nits.
65031         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
65032         Correct typos: s/or/of/.
65033
65034 2005-03-26  Jim Meyering  <jim@meyering.net>
65035
65036         * modules/check-include-files: Move to ../ and rename to...
65037         * check-module: ...this.
65038
65039 2005-03-25  Jim Meyering  <jim@meyering.net>
65040
65041         * modules/xvasprintf (Files): Add xalloc.h.
65042
65043 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
65044
65045         * modules/gettext (Files): config/config.rpath ->
65046         build-aux/config.rpath
65047         * modules/iconv (Files): Likewise.
65048         Problem reported by Oskar Liljeblad.
65049
65050 2005-03-23  Jim Meyering  <jim@meyering.net>
65051
65052         * modules/check-include-files: New script to check for
65053         missing dependencies, multiple includes, etc.
65054
65055         * modules/c-strtold (Depends-on): Add xalloc.
65056         * modules/c-strtod (Depends-on): Add xalloc.
65057         * modules/hash (Depends-on): Add xalloc.
65058         (Files): Remove lib/xalloc.h.
65059
65060         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
65061         * modules/userspec (Files): Add lib/inttostr.h.
65062
65063 2005-03-23  Jim Meyering  <jim@meyering.net>
65064
65065         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
65066
65067 2005-03-22  Jim Meyering  <jim@meyering.net>
65068
65069         * modules/stat-macros: New module.
65070         * modules/canonicalize, modules/euidaccess, modules/file-type,
65071         * modules/filemode, modules/lchown, modules/makepath,
65072         * modules/rmdir, modules/stat: Depend on new stat-macros module
65073         rather than listing lib/stat-macros.h manually.
65074         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
65075
65076 2005-03-22  Jim Meyering  <jim@meyering.net>
65077
65078         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
65079
65080 2005-03-22  Bruno Haible  <bruno@clisp.org>
65081
65082         * config/srclist.txt: Replace target directory 'config' with
65083         'build-aux'.
65084         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
65085         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
65086         ../build-aux/.
65087
65088 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
65089
65090         * modules/chdir-long (Depends-on): Add mempcpy.
65091
65092         * modules/acl, modules/backupfile, modules/c-strtod,
65093         modules/c-strtold, modules/canon-host, modules/canonicalize,
65094         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
65095         modules/exclude, modules/exitfail, modules/file-type,
65096         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
65097         modules/getdate, modules/getline, modules/getpagesize,
65098         modules/getpass, modules/getugroups, modules/group-member,
65099         modules/hard-locale, modules/hash, modules/human, modules/idcache,
65100         modules/inttostr, modules/long-options, modules/makepath,
65101         modules/md5, modules/memcasecmp, modules/memcoll,
65102         modules/modechange, modules/mountlist, modules/path-concat,
65103         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
65104         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
65105         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
65106         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
65107         modules/strftime, modules/strndup, modules/strverscmp,
65108         modules/timespec, modules/unlocked-io, modules/userspec,
65109         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
65110         modules/yesno:
65111         Remove lib_SOURCES line from Makefile.am section, as this is now
65112         done automatically by the corresponding Autoconf macro.
65113
65114 2005-03-21  Jim Meyering  <jim@meyering.net>
65115
65116         Changes imported from coreutils.
65117
65118         * lib/cycle-check.c: Don't include xalloc.h.
65119
65120         * lib/path-concat.c: Don't include assert.h.
65121         (path_concat): Remove assertion that would have triggered
65122         for ABASE starting with more than one slash.
65123         Reported by Andreas Schwab.
65124
65125         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
65126         properly when ABASE is an absolute file name.
65127         Correct the description of this function.
65128         Include <assert.h>.
65129         Add an assertion and a test driver.
65130         This fixes a bug introduced on 2004-07-02.
65131         Andreas Schwab reported the resulting failure of cp --parents:
65132         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
65133
65134 2005-03-21  Jim Meyering  <jim@meyering.net>
65135
65136         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
65137         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
65138
65139 2005-03-21  Jim Meyering  <jim@meyering.net>
65140         and  Paul Eggert  <eggert@cs.ucla.edu>
65141
65142         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
65143         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
65144         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
65145         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
65146         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
65147         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
65148         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
65149         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
65150         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
65151         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
65152         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
65153         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
65154         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
65155         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
65156         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
65157         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
65158         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
65159         for these modules.
65160
65161 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
65162
65163         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
65164         (which shouldn't happen), generate nothing instead of returning 0
65165         immediately, so that nstrftime (NULL, ...) doesn't return 0.
65166
65167 2005-03-16  Bruno Haible  <bruno@clisp.org>
65168
65169         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
65170         HAVE_LONGLONG_64BIT.
65171
65172 2005-03-16  Bruno Haible  <bruno@clisp.org>
65173
65174         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
65175         HAVE_LONGLONG_64BIT.
65176
65177 2005-03-16  Bruno Haible  <bruno@clisp.org>
65178
65179         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
65180         HAVE_LONGLONG_64BIT.
65181
65182 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
65183
65184         * lib/strftime.c (my_strftime): Prepend space to format so that we can
65185         reliably distinguish strftime failure from empty output on POSIX
65186         hosts.
65187
65188 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
65189
65190         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
65191         (iconv_string): Don't guess a size-zero buffer, as that might cause
65192         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
65193         result would be 'too large', where 'too large' is (heuristically)
65194         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
65195         overflow concerns.  This will prevent some unwanted malloc failures
65196         when the inputs are very large.
65197
65198 2005-03-15  Karl Berry  <karl@gnu.org>
65199
65200         * config/srclist.txt (config.rpath): from gettext.
65201         * config/config.rpath: update.
65202
65203 2005-03-15  Bruno Haible  <bruno@clisp.org>
65204
65205         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
65206         to 'negate'.
65207
65208         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
65209         variable.
65210
65211         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
65212         results.
65213
65214 2005-03-14  Simon Josefsson  <jas@extundo.com>
65215
65216         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
65217         <fx@gnu.org>.
65218
65219 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
65220
65221         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
65222         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
65223         intprops.h.
65224         * lib/strtol.c: Likewise.
65225
65226 2005-03-14  Jim Meyering  <jim@meyering.net>
65227
65228         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
65229         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
65230         to be nonzero so that we (and caller) can detect the difference
65231         between a valid zero-length expansion and an error return, even
65232         when the underlying strftime fails before writing anything into
65233         that location.
65234
65235 2005-03-14  Bruno Haible  <bruno@clisp.org>
65236
65237         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
65238         Update from GNU gettext 0.14.3.
65239
65240 2005-03-10  Jim Meyering  <jim@meyering.net>
65241
65242         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
65243
65244 2005-03-10  Jim Meyering  <jim@meyering.net>
65245
65246         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
65247         so that this module works on systems without fchdir.
65248
65249 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
65250
65251         Factor int-properties macros into a single file, except for
65252         glibc-related files.
65253         * lib/intprops.h: New file.
65254         * lib/getloadavg.c: Include it instead of limits.h.
65255         (INT_STRLEN_BOUND): Remove.
65256         * lib/human.c: Include intprops.h.
65257         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
65258         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
65259         302/1000.
65260         * lib/inttostr.h: Include intprops.h instead of limits.h.
65261         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
65262         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
65263         for consistency with intprops.h.
65264         (time_t_is_integer, twos_complement_arithmetic): Use them.
65265         * lib/sig2str.h: Include <signal.h>, intprops.h.
65266         (INT_STRLEN_BOUND): Remove.
65267         * lib/strftime.c (TYPE_SIGNED): Remove.
65268         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
65269         * lib/strtol.c: Adjust comments to match intprops.h.
65270         * lib/userspec.c: Include intprops.h.
65271         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
65272         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
65273         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
65274         instead of rolling our own expressions.
65275         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
65276
65277         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
65278         instead of int.
65279         (my_strftime): Do not mishandle years close to INT_MAX, by doing
65280         the right thing even if adding 1900 would overflow.  Similarly
65281         for tm_mon + 1 and tm_yday + 1.
65282         Make %Y always equivalent to %C%y, and similarly for %G and %g.
65283         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
65284         (DO_SIGNED_NUMBER): New macro.
65285         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
65286
65287 2005-03-07  Bruno Haible  <bruno@clisp.org>
65288
65289         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
65290
65291 2005-03-07  Bruno Haible  <bruno@clisp.org>
65292
65293         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
65294
65295 2005-03-04  Derek R. Price  <derek@ximbiot.com>
65296
65297         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
65298         (func_import): Only replace files via --import when they have actually
65299         changed.
65300
65301 2005-03-03  Derek R. Price  <derek@ximbiot.com>
65302
65303         * m4/mmap-anon.m4: New file.
65304         * m4/pagealign_alloc.m4: New file.
65305
65306 2005-03-03  Derek R. Price  <derek@ximbiot.com>
65307             Bruno Haible  <bruno@clisp.org>
65308
65309         * modules/pagealign_alloc: New file.
65310         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
65311
65312 2005-03-03  Derek R. Price  <derek@ximbiot.com>
65313             Bruno Haible  <bruno@clisp.org>
65314
65315         * lib/pagealign_alloc.h: New file.
65316         * lib/pagealign_alloc.c: New file.
65317
65318 2005-03-03  Bruno Haible  <bruno@clisp.org>
65319
65320         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
65321         Use an all-permissive copyright notice, recommended by RMS.
65322
65323 2005-03-02  Bruno Haible  <bruno@clisp.org>
65324
65325         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
65326         of AIX, the replacement has to be done only after <string.h> is
65327         included, therefore not in config.h. stpncpy.h does the replacement,
65328         and stpncpy.c uses it.
65329
65330 2005-03-02  Bruno Haible  <bruno@clisp.org>
65331
65332         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
65333         stpncpy.c uses it.
65334
65335 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65336
65337         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
65338         The workaround isn't strictly needed for POSIX conformance, and
65339         it's too much of a pain to configure and maintain.  We'll ask
65340         people to fix their kernels instead.
65341         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
65342         (NANOSLEEP_BUG_WORKAROUND): Remove.
65343         (xnanosleep): Remove the workaround.
65344
65345 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65346
65347         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
65348         Reported by Derek Price.
65349         (Include): Add "timespec.h".
65350
65351         * modules/xnanosleep (Depends-on): Remove gethrxtime.
65352
65353 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65354
65355         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
65356         to detect nanosleep bug.
65357
65358 2005-03-01  Bruno Haible  <bruno@clisp.org>
65359
65360         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
65361
65362 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
65363
65364         * modules/gethrxtime: New file.
65365         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
65366         (Depends-on): Add gethrxtime.
65367         (configure.ac): Add gl_XNANOSLEEP.
65368         (Makefile.am): Remove lib_SOURCES line.
65369
65370 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65371
65372         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
65373         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
65374
65375 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65376
65377         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
65378         * lib/timespec.h (gettime): Return void, since it always
65379         succeeds now.  All uses changed.
65380         * lib/gettime.c (gettime) Likewise.
65381         [HAVE_NANOTIME]: Prefer nanotime.
65382         Assume gettimeofday succeeds, as POSIX requires.
65383         Assime time () succeeds, since other code already does.
65384         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
65385         (timespec_subtract): Remove.
65386         (NANOSLEEP_BUG_WORKAROUND): New constant.
65387         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
65388         things considerably.  Use it only on GNU/Linux hosts, since the
65389         workaround shouldn't be needed elsewhere.
65390
65391 2005-02-24  Bruno Haible  <bruno@clisp.org>
65392
65393         * modules/gettext (Files): Add m4/glibc2.m4.
65394
65395 2005-02-24  Bruno Haible  <bruno@clisp.org>
65396
65397         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
65398         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
65399         * m4/progtest.m4:
65400         Update from GNU gettext 0.14.2.
65401         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
65402
65403 2005-02-24  Bruno Haible  <bruno@clisp.org>
65404
65405         * lib/localcharset.c: Update from GNU gettext 0.14.2.
65406         * lib/config.charset: Update from GNU gettext 0.14.2.
65407
65408 2005-02-24  Bruno Haible  <bruno@clisp.org>
65409
65410         * lib/gettext.h: Update from GNU gettext 0.14.2.
65411
65412 2005-02-23  Simon Josefsson  <jas@extundo.com>
65413
65414         * m4/iconvme.m4: New file.
65415
65416 2005-02-23  Jim Meyering  <jim@meyering.net>
65417
65418         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
65419         change.
65420         Thanks to Bruno Haible for catching it.
65421
65422 2005-02-22  Simon Josefsson  <jas@extundo.com>
65423
65424         * modules/iconvme: New file.
65425
65426         * MODULES.html.sh: Add iconvme.
65427
65428 2005-02-22  Simon Josefsson  <jas@extundo.com>
65429
65430         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
65431
65432 2005-02-22  Simon Josefsson  <jas@extundo.com>
65433
65434         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
65435
65436 2005-02-22  Jim Meyering  <jim@meyering.net>
65437
65438         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
65439         s/ifndef/ifdef/.
65440
65441 2005-02-20  Neil Conway  <neilc@samurai.com>
65442
65443         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
65444         returned by OSX/Darwin if the specified buffer is not large
65445         enough for the hostname.
65446
65447 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65448
65449         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
65450         pass it to _help, otherwise the latter coredumps trying to
65451         dereference state.root_argp.
65452
65453 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65454
65455         * modules/chdir-long (Depends-on): Add memrchr.
65456         * modules/memrchr (Files): Add lib/memrchr.h.
65457         (Include): "memrchr.h".
65458
65459 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65460
65461         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
65462
65463 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65464
65465         * lib/memrchr.h: New file.
65466         * lib/chdir-long.c: Include it.
65467         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
65468         Don't bother including stddef.h.
65469
65470 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
65471
65472         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
65473         inclusion.
65474         Include <sys/types.h>, for dev_t.
65475         (ME_DUMMY, ME_REMOTE): Move from here....
65476         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
65477         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
65478         Dmitry V. Levin.
65479         Include mountlist.h first, to test the interface.
65480
65481 2005-01-29  Bruno Haible  <bruno@clisp.org>
65482
65483         * lib/progname.c (program_name): Initialize.
65484         Needed when linking statically on MacOS X.
65485
65486 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65487
65488         Sync from coreutils.
65489         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
65490         (Depends-on): Add c-strtod.
65491         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
65492
65493 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65494
65495         Sync from coreutils.
65496         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
65497
65498         Remove files that are specific to coreutils.
65499         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
65500
65501 2005-01-28  Bruno Haible  <bruno@clisp.org>
65502
65503         * modules/javacomp: New file.
65504         * MODULES.html.sh (Java): Add javacomp.
65505
65506 2005-01-28  Bruno Haible  <bruno@clisp.org>
65507
65508         * m4/javacomp.m4: New file, from GNU gettext.
65509
65510 2005-01-28  Bruno Haible  <bruno@clisp.org>
65511
65512         * lib/javacomp.sh.in: New file, from GNU gettext.
65513         * lib/javacomp.h: New file, from GNU gettext.
65514         * lib/javacomp.c: New file, from GNU gettext.
65515
65516 2005-01-26  Simon Josefsson  <jas@extundo.com>
65517
65518         * lib/gai_strerror.c: Use GPL in header.
65519
65520 2005-01-26  Bruno Haible  <bruno@clisp.org>
65521
65522         * modules/javaexec: New file.
65523         * MODULES.html.sh (Java): Add javaexec.
65524
65525 2005-01-26  Bruno Haible  <bruno@clisp.org>
65526
65527         * m4/javaexec.m4: New file, from GNU gettext.
65528
65529 2005-01-26  Bruno Haible  <bruno@clisp.org>
65530
65531         * lib/javaexec.sh.in: New file, from GNU gettext.
65532         * lib/javaexec.h: New file, from GNU gettext.
65533         * lib/javaexec.c: New file, from GNU gettext.
65534
65535 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65536
65537         * modules/lchown (Depends-on): Remove lchown.h
65538
65539 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65540
65541         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
65542         must be defined if the header file was not found, in order
65543         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
65544
65545 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65546
65547         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
65548         initializers for struct pentry_state.
65549         (__argp_error): Check return value of __asprintf
65550         (__argp_failure): Translate error message
65551
65552         * lib/argp-parse.c: Removed braces around the expansion of N_()
65553
65554 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65555
65556         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
65557         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
65558         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
65559         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
65560         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
65561         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
65562         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
65563         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
65564         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
65565         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
65566         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
65567         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
65568         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
65569         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
65570         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
65571         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
65572         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
65573         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
65574         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
65575         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
65576         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
65577         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
65578         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
65579         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
65580         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
65581         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
65582         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
65583         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
65584         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
65585         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
65586         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
65587         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
65588         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
65589         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
65590         xstrtol.m4, xstrtoumax.m4, yesno.m4:
65591         Use an all-permissive copyright notice, recommended by RMS.
65592
65593 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
65594
65595         * modules/chdir-long (Depends-on): Remove mempcpy.
65596
65597 2005-01-21  Jim Meyering  <jim@meyering.net>
65598
65599         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
65600         same value as for Solaris 9.
65601
65602         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
65603         component length.  This included changing the parameter to be
65604         of type `char *' rather than `char const *'.
65605         * lib/chdir-long.h (chdir_long): Update prototype.
65606
65607         * lib/openat.c (fdopendir, fstatat): New functions.
65608         * lib/openat.h: Include headers required for use of DIR and struct
65609         stat.
65610         [AT_SYMLINK_NOFOLLOW]: Define.
65611         (fdopendir, fstatat): Add prototypes.
65612
65613 2005-01-21  Bruno Haible  <bruno@clisp.org>
65614
65615         * modules/classpath: New file.
65616         * MODULES.html.sh (Java): Add classpath.
65617
65618 2005-01-21  Bruno Haible  <bruno@clisp.org>
65619
65620         * lib/classpath.h: New file, from GNU gettext.
65621         * lib/classpath.c: New file, from GNU gettext.
65622
65623 2005-01-20  Simon Josefsson  <jas@extundo.com>
65624
65625         * modules/version-etc-fsf: New file.
65626
65627 2005-01-20  Simon Josefsson  <jas@extundo.com>
65628
65629         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
65630         * lib/version-etc.c: Remove version_etc_copyright.
65631         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
65632         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
65633
65634 2005-01-20  Simon Josefsson  <jas@extundo.com>
65635
65636         * lib/base64.h (isbase64): Add.
65637
65638         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
65639         using a unsigned prototype, don't inline.
65640         (base64_decode): Use it.
65641
65642 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65643
65644         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
65645         it.
65646
65647 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65648
65649         * lib/save-cwd.c (save_cwd): Remove code to support the case
65650         where fchdir is missing or flaky.
65651
65652 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65653
65654         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
65655
65656 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65657
65658         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
65659         AC_LIBSOURCES now does this.
65660         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
65661         with new ullong_max module.
65662
65663 2005-01-19  Bruno Haible  <bruno@clisp.org>
65664
65665         * modules/sh-quote: New file.
65666         * MODULES.html.sh (Executing programs): Add sh-quote.
65667
65668 2005-01-19  Bruno Haible  <bruno@clisp.org>
65669
65670         * lib/sh-quote.h: New file, from GNU gettext.
65671         * lib/sh-quote.c: New file, from GNU gettext.
65672
65673 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65674
65675         Merge from coreutils.
65676         * m4/ullong_max.m4: New file.
65677         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
65678         (gl_MACROS): Assume localeconv exists.
65679
65680 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65681
65682         Merge changes from coreutils, as described below in several
65683         changelogs dated today.
65684
65685         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
65686         (O_DIRECTORY): Remove; not needed here, since "." must be
65687         a directory.  All uses removed.
65688         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
65689         universal on Suns, and we also need to test for IRIX.
65690         Revamp code to use 'if' rather than '#if'.
65691         Avoid unnecessary comparison of cwd->desc to 0.
65692
65693         * lib/utimens.c (futimens): Robustify the previous patch, by checking
65694         for known valid error numbers rather than observed invalid ones.
65695
65696 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65697
65698         * modules/ullong_max: New file.
65699
65700         * modules/chdir-long, modules/openat: New files.
65701         * modules/save-cwd (Depends-on): Depend on chdir-long.
65702         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
65703
65704 2005-01-18  Jim Meyering  <jim@meyering.net>
65705
65706         Merge from coreutils.
65707         * m4/chdir-long.m4, m4/openat.m4: New files.
65708         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
65709         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
65710         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
65711         is sane and DOES follow symlinks.  Besides, testing 20 different
65712         systems found no broken chown implementations.
65713         Prompted by a change in rsync's copy of this macro.
65714         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
65715
65716         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
65717
65718         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
65719         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
65720         NULL-means-set-to-current-time semantics.
65721         Remove temporary file immediately, rather than waiting
65722         for configure's at-exit trap code to do it.
65723
65724 2005-01-18  Jim Meyering  <jim@meyering.net>
65725
65726         * lib/version-etc.c (version_etc_copyright): Update copyright date.
65727
65728         * lib/utimens.c (futimens): Account for the fact that futimes
65729         can also fail with errno == ENOSYS or errno == ENOENT.
65730         Patch from Dmitry V. Levin.
65731
65732         Change the name of the robust chdir function from chdir to chdir_long.
65733         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
65734         (restore_cwd): Use chdir_long, not chdir.
65735         * lib/chdir-long.c: Renamed from chdir.c.
65736         * lib/chdir-long.h: Renamed from chdir.h.
65737         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
65738         Hurd.
65739
65740 2005-01-18  Bruno Haible  <bruno@clisp.org>
65741
65742         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
65743         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
65744         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
65745         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
65746         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
65747         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
65748         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
65749         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
65750         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
65751         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
65752         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
65753         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
65754         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
65755         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
65756         Use an all-permissive copyright notice, recommended by RMS.
65757
65758 2005-01-18  Bob Proulx  <bob@proulx.com>
65759
65760         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
65761         simplify offsetof() macro construct to avoid compile failure with
65762         native HP-UX 11.0 ANSI C compiler.
65763
65764 2005-01-17  Bruno Haible  <bruno@clisp.org>
65765
65766         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
65767         redundant because stpncpy.m4 takes care of it.
65768
65769 2005-01-17  Bruno Haible  <bruno@clisp.org>
65770
65771         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
65772
65773 2005-01-17  Bruno Haible  <bruno@clisp.org>
65774
65775         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
65776         used.
65777
65778 2005-01-17  Bruno Haible  <bruno@clisp.org>
65779
65780         * lib/fwriteerror.h (fwriteerror): Change specification to include
65781         fclose.
65782         * lib/fwriteerror.c: Include <stdbool.h>.
65783         (fwriteerror): At the end, close the file stream. Record whether
65784         stdout was already closed.
65785
65786 2005-01-17  Bruno Haible  <bruno@clisp.org>
65787
65788         * lib/execute.c (environ): Declare if needed.
65789         * lib/pipe.c (environ): Likewise.
65790         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
65791
65792 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65793
65794         * modules/argp: Depend on vsnprintf
65795
65796 2005-01-10  Jim Meyering  <jim@meyering.net>
65797
65798         * modules/closeout (Depends-on): Add atexit.
65799
65800 2005-01-06  Bruno Haible  <bruno@clisp.org>
65801
65802         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
65803
65804 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65805
65806         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
65807         definitions to be after all include files, to avoid collisions.
65808         Problem reported by Bob Proulx.
65809
65810 2005-01-04  Jim Meyering  <jim@meyering.net>
65811
65812         Changes imported from coreutils.
65813         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
65814         as the mkstemp template, use a temporary directory and an
65815         8.3-friendly template to avoid trouble on systems like DJGPP.
65816         Reported by Juan M. Guerrero via Stepan Kasal.
65817         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
65818         close. Remove the temporary directory right away, rather than waiting
65819         for configure's at-exit trap code to do it.
65820         Suggestion from Stepan Kasal.
65821
65822 2005-01-01  Simon Josefsson  <jas@extundo.com>
65823
65824         * gnulib-tool: Print #include directives when --import'ing.
65825
65826 2004-12-28  Simon Josefsson  <jas@extundo.com>
65827
65828         * tests/test-base64.c: Include required header files.  Remove
65829         unused variables.
65830
65831 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65832
65833         * modules/error (Depends-on): Remove gettext.
65834
65835 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65836
65837         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
65838         not needed.  This removes a dependency on the gettext module.
65839         [defined _LIBC]: Do not include <libintl.h>; not needed.
65840
65841 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
65842
65843         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
65844         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
65845
65846 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
65847
65848         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
65849         HAVE_DECL_STRTOLD.
65850
65851 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65852
65853         * modules/getdate (Depends-on): Remove alloca-opt.
65854
65855 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65856
65857         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
65858
65859 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65860
65861         * lib/argp-parse.c: Include <stddef.h>.
65862         (alignof, alignto): New macros.
65863         (parser_init): Don't assume that void * is aligned sufficiently
65864         for struct option.
65865
65866         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
65867         need to extend the stack.
65868         (YYINITDEPTH): New macro, so that the initial stack isn't overly
65869         large.
65870
65871 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65872
65873         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
65874
65875 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
65876
65877         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
65878         (2004-10-24) change.  Apparently this was a false alarm.
65879
65880         * modules/getdate: Depend on alloca-opt, not alloca.
65881
65882 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
65883
65884         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
65885         Remove now-obsolete comment about AIX.
65886         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
65887         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
65888         (YYMAXDEPTH): New macro.
65889
65890 2004-12-18  Simon Josefsson  <jas@extundo.com>
65891
65892         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
65893
65894 2004-12-18  Bruno Haible  <bruno@clisp.org>
65895
65896         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
65897
65898 2004-12-18  Bruno Haible  <bruno@clisp.org>
65899
65900         * lib/fatal-signal.c (fatal_signals): Make non-const.
65901         (init_fatal_signals): New function.
65902         (uninstall_handlers, install_handlers): Ignore signals that were set to
65903         SIG_IGN.
65904         (at_fatal_signal): Call init_fatal_signals.
65905         (init_fatal_signal_set): Likewise. Ignore signals that were set to
65906         SIG_IGN.
65907         Reported by Paul Eggert.
65908
65909 2004-12-18  Bruno Haible  <bruno@clisp.org>
65910
65911         * doc/alloca.texi: New file.
65912         * doc/alloca-opt.texi: New file.
65913
65914 2004-12-17  Jim Meyering  <jim@meyering.net>
65915
65916         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
65917         Otherwise, install-sh could exit with improper exit status when
65918         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
65919
65920 2004-12-16  Simon Josefsson  <jas@extundo.com>
65921
65922         * tests/test-base64.c: Add license.
65923
65924 2004-12-15  Stepan Kasal  <address@hidden>
65925
65926         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
65927
65928 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
65929
65930         * modules/getcwd (Files): Add m4/d-ino.m4.
65931         Suggested by Mark D. Baushke.
65932
65933 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
65934
65935         * lib/getdate.y (textint): New member "negative".
65936         (time_zone_hhmm): New function.
65937         Expect 14 shift-reduce conflicts, not 13.
65938         (o_colon_minutes): New rule.
65939         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
65940         (yylex): Set the "negative" member of signed numbers.
65941
65942 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
65943
65944         * doc/getdate.texi (Time of day items, Time zone items):
65945         Describe new formats +00:00, UTC+00:00.
65946
65947 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65948
65949         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
65950         spurious "-l"s.  Problem reported by Stepan Kasal.
65951
65952 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
65953
65954         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
65955         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
65956
65957 2004-12-04  Simon Josefsson  <jas@extundo.com>
65958
65959         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
65960         Vandoorselaere <yoann@prelude-ids.org>.
65961
65962 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
65963
65964         Changes imported from coreutils.
65965         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
65966         exist.
65967         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
65968
65969 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
65970
65971         Changes imported from coreutils.
65972         * lib/hard-locale.c: Assume <locale.h> exists.
65973         Include "strdup.h".
65974         (GLIBC_VERSION): New macro.
65975         (hard_locale): Assume setlocale exists.
65976         Rewrite to avoid #ifdef.
65977         Use strdup rather than malloc + strcpy.
65978         * lib/human.c: Assume <locale.h> exists.
65979         (human_readable): Assume localeconv exists.
65980
65981 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
65982
65983         * modules/hard-locale (Depends-on): Add strdup.
65984
65985 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65986
65987         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
65988         convert T2, not T.  (Imported from libc.)
65989
65990 2004-11-30  Simon Josefsson  <jas@extundo.com>
65991
65992         * modules/restrict (License): Change to LGPL.
65993
65994 2004-11-30  Simon Josefsson  <jas@extundo.com>
65995
65996         * m4/restrict.m4: Add copyright and copying conditions.
65997
65998 2004-11-30  Simon Josefsson  <jas@extundo.com>
65999
66000         * m4/base64.m4: New file.
66001
66002 2004-11-30  Simon Josefsson  <jas@extundo.com>
66003
66004         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
66005         base64.
66006
66007         * tests/test-base64.c: New file.
66008
66009         * modules/base64: New file.
66010
66011 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
66012
66013         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
66014         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
66015
66016         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
66017
66018 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
66019
66020         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
66021         (__getcwd.c): Don't restore errno; glibc doesn't.
66022         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
66023         first, falling back to our code only if its results look suspicious.
66024         Ensure that the resulting buffer is only as large as necessary.
66025
66026         * lib/readutmp.c: Include readutmp.h first.
66027         Include <errno.h>, since readutmp.h no longer does that.
66028         * lib/readutmp.h: Don't include <errno.h>,
66029         <sys/param.h>, <time.h>; not needed to establish interface.
66030         (errno): Remove decl.
66031         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
66032         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
66033         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
66034
66035 2004-11-28  Simon Josefsson  <jas@extundo.com>
66036
66037         * lib/base64.h, base64.c: New file.
66038
66039 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66040
66041         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
66042
66043 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66044
66045         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
66046         (Depends-on): Remove pathmax, same.  Add mempcpy.
66047         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
66048         (Makefile.am): Append getcwd.h to lib_SOURCES.
66049         (Include): Add getcwd.h.
66050         (Maintainer): Change from Jim Meyering to "all, glibc",
66051         since getdate now uses intended-for-glibc code.
66052         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
66053         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
66054
66055 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66056
66057         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
66058         HP's ANSI C compiler.
66059         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
66060         Declaring int functions causes warnings on some modern systems and
66061         shouldn't be needed to compile on ancient ones.
66062         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
66063         defined.
66064
66065         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
66066         with the following changes.
66067         (__set_errno): Parenthesize properly.
66068         Include <stdbool.h>.
66069         (MIN, MAX, MATCHING_INO): New macros.
66070         (__getcwd): Define with prototype, not K&R form.
66071         Use heuristics to allocate default buffer on stack if possible.
66072         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
66073         behavior, and to avoid the PATH_MAX limit when computing
66074         ../../../../...
66075         Use MATCHING_INO to compare inode number to file.
66076         Check for arithmetic overflow in size calculations.
66077         Fix bug in reallocation of dot array that caused getcwd to fail
66078         on directories nested deeper than 75.
66079         Be more careful about saving errno on error.
66080         Do not use realloc; use only free+malloc, as this is a bit
66081         more flexible and avoids a needless copy operation.
66082         Do not inspect st_dev and st_ino for symbolic links; POSIX
66083         doesn't specify the latter.
66084         Check for closedir errors.
66085         Avoid needless casts.
66086         Use "#ifdef weak_alias" around weak_alias, to be like other
66087         glibc code.
66088         The following changes to getcwd.c have effect only when used in
66089         gnulib; they have no effect inside glibc proper.
66090         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
66091         as alloca isn't used.
66092         (alloca, __alloca): Likewise.
66093         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
66094         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
66095         unconditionally, as gnulib assumes C89 or better.
66096         Do not include <sys/param.h>.
66097         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
66098         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
66099         better.
66100         (NULL) [!defined NULL]: Remove; we assume C89 or better.
66101         Include <dirent.h> in a way that is compatible with modern Autoconf.
66102         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
66103         New macros, if not already defined.
66104         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
66105         Use "_LIBC", not "defined _LIBC", for consistency.
66106         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
66107         a mempcpy module.
66108         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
66109         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
66110         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
66111         credit only to Jim Meyering and adjust the copyright dates.
66112         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
66113         <stdlib.h>, <unistd.h>, "pathmax.h".
66114         Instead, include "xgetcwd.h" (first) and "getcwd.h".
66115         (INITIAL_BUFFER_SIZE): Remove.
66116         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
66117
66118 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66119
66120         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
66121         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
66122         Use the _ONCE methods, for efficiency.
66123         Check for fcntl.h.  In test program, include <errno.h>
66124         and <fcntl.h> if available.  Remove old K&R cruft from
66125         test program.  Check for common errors in GNU/Linux,
66126         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
66127         don't do AC_LIBOBJ, as that's getcwd.m4's job.
66128         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
66129         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
66130         name accordingly.
66131         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
66132         accommodate new getcwd.c.
66133         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
66134         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
66135         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
66136         that's all we need now.
66137
66138 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66139
66140         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
66141         argp-parse.c depends on getopt internals, that means we should
66142         always use our getopt, to be on the safe side.
66143         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
66144         order not to spoil the result of an eventual previous invocation
66145         of gl_GETOPT_SUBSTITUTE.
66146
66147 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66148
66149         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
66150         redefinition warnings. To avoid them, include the defines
66151         in `#if !defined __need_getopt ... #endif'. The only place
66152         where __getopt_argv_const is used is in definitions
66153         of getopt_long and getopt_long_only below, which are as well
66154         protected by `#ifndef __need_getopt'.
66155         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
66156         __need_getopt after including <stdio.h> and <unistd.h> These
66157         headers might have defined it.
66158
66159 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
66160
66161         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
66162
66163 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
66164
66165         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
66166         (futimens): New function, which uses futimes if available.
66167         (futimens, utimens): Support timespec==NULL, with same semantics
66168         as utime and utimens.
66169         * lib/utimens.h (futimens): New decl.
66170
66171 2004-11-23  Jim Meyering  <jim@meyering.net>
66172
66173         * lib/getopt_.h: Remove trailing blanks.
66174
66175 2004-11-23  Jim Meyering  <jim@meyering.net>
66176
66177         * lib/__fpending.c: Add comment.
66178
66179 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
66180
66181         * modules/canonicalize (Depends-on): Add xreadlink.
66182         Problem reported by James Youngman.
66183
66184 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66185
66186         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
66187         New macros.
66188         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
66189         optopt): Use them instead of invoking ## directly; otherwise, the
66190         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
66191
66192 2004-11-19  Bruno Haible  <bruno@clisp.org>
66193
66194         * lib/strtok_r.c: Move comments from here...
66195         * lib/strtok_r.h: ... to here.
66196
66197 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66198
66199         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
66200         implementations that mishandle size_t overflow.
66201
66202 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66203
66204         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
66205         might fail.  Problem reported by Yoann Vandoorselaere.
66206         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
66207         implementations that mishandle size_t overflow.
66208
66209 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66210
66211         * modules/canon-host (Depends-on): Add strdup.
66212
66213 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66214
66215         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
66216
66217 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66218
66219         * lib/canon-host.c: Include "strdup.h".
66220         (canon_host): Use getaddrinfo if available, so that IPv6 works.
66221         Use strdup instead of malloc/strcpy to duplicate strings.
66222
66223         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
66224         (human_space_before_unit): New constant.
66225         * lib/human.c (human_readable): Support it.
66226
66227         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
66228         (xgetcwd): Set errno correctly when failing.
66229         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
66230         the failure is actually due to a PATH_MAX problem.
66231
66232         Further getopt changes to make it more likely that glibc will
66233         buy the changes back.
66234         * lib/getopt.c (POSIXLY_CORRECT): New constant.
66235         (getopt): Use it, so to preserve glibc semantic
66236         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
66237         when compiling for libc.
66238         * lib/getopt_.h (__getopt_argv_const): Bring it back.
66239         (getopt_long, getopt_long_only): Use it.
66240
66241         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
66242         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
66243         (getopt): Argv is now char * const *, as per standard.
66244         (_getopt_internal_r, _getopt_internal): Argv is now char **,
66245         not char *__getopt_argv_const *.
66246         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
66247         _getopt_long_only_r): Likewise.
66248         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
66249         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
66250         _getopt_long_r, _getopt_long_only_r): Likewise.
66251         * lib/getopt_.h (__getopt_argv_const): Remove.
66252         (getopt): Argv is now char * const *, as per standard.
66253
66254         * lib/getdate.y (tORDINAL): New token.
66255         (day, relunit): Allow it for relative times.
66256         (relative_time_table): Use tORDINAL for ordinals.
66257
66258 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66259
66260         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
66261         Document that "second" isn't allowed as an ordinal number.
66262
66263 2004-11-16  Jim Meyering  <jim@meyering.net>
66264
66265         * modules/closeout (Depends-on): Add fpending.
66266
66267 2004-11-15  Jim Meyering  <jim@meyering.net>
66268
66269         * lib/closeout.c: Include "__fpending.h" once again.
66270         Include <stdbool.h>.
66271         (close_stdout): Don't fail just because stdout was closed initially,
66272         since some programs don't write to stdout in the normal course of
66273         operation (other than --version and --help), and we don't want this
66274         function to make e.g. `touch file >&-' fail.
66275         But do fail if it was closed and someone has tried to write to it.
66276         E.g., `printf foo >&-' must fail.
66277
66278 2004-11-13  Jim Meyering  <jim@meyering.net>
66279
66280         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
66281
66282 2004-11-12  Simon Josefsson  <jas@extundo.com>
66283
66284         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
66285         small doc fix is still pending.
66286
66287 2004-11-11  Simon Josefsson  <jas@extundo.com>
66288
66289         * modules/strtok_r: New file.
66290
66291         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66292         strtok_r.
66293
66294 2004-11-11  Simon Josefsson  <jas@extundo.com>
66295
66296         * m4/strtok_r.m4: New file.
66297
66298         * m4/getopt.m4: Replace opterr.
66299
66300 2004-11-11  Simon Josefsson  <jas@extundo.com>
66301
66302         * lib/strtok_r.h, strtok_r.c: New file.
66303
66304 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
66305
66306         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
66307         of replacing opterr, getopt, etc.  This should handle the
66308         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
66309
66310 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
66311
66312         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
66313         we can stop lying to compilers about the constness of argv when we
66314         are compiled outside glibc.
66315         (getopt, getopt_long, getopt_long_only): Use it.
66316         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
66317         _getopt_internal, getopt): Likewise.
66318         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
66319         _getopt_long_only_r): Likewise.
66320         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
66321         _getopt_long_r, _getopt_long_only_r): Likewise.
66322
66323         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
66324         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
66325         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
66326         the other external symbols.
66327         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
66328         declaration, since the above renaming now works around collisions.
66329
66330 2004-11-11  Jim Meyering  <jim@meyering.net>
66331
66332         * lib/linebreak.c: Remove trailing blanks.
66333         * lib/alloca_.h: Likewise.
66334         * lib/acosl.c: Likewise.
66335         * lib/euidaccess.c: Likewise.
66336         * lib/allocsa.h: Likewise.
66337
66338 2004-11-10  Simon Josefsson  <jas@extundo.com>
66339
66340         * m4/getaddrinfo.m4: New file.
66341
66342 2004-11-10  Simon Josefsson  <jas@extundo.com>
66343
66344         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
66345
66346 2004-11-10  Simon Josefsson  <jas@extundo.com>
66347
66348         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66349         getaddrinfo.
66350
66351         * modules/getaddrinfo: New file.
66352
66353 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66354
66355         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
66356
66357 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66358
66359         * lib/mktime.c (SHR): New macro, which is a portable
66360         substitute for >> that should work even on Crays.
66361         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
66362         Problem reported by Mark D. Baushke in
66363         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
66364         * lib/getdate.y (SHR): Likewise.
66365         (tm_diff): Use it.
66366         * lib/strftime.c (SHR): Likewise.
66367         (tm_diff): Use it.
66368         * lib/quotearg.c (struct quoting_options): Use unsigned int for
66369         quote_these_too, so that right shifts are well defined.  All uses
66370         changed.
66371
66372 2004-11-10  Jim Meyering  <jim@meyering.net>
66373
66374         Ensure that no close failure goes unreported.
66375         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
66376         return early when it seems there's nothing to flush.
66377         Don't include __fpending.h.
66378
66379 2004-11-10  Jim Meyering  <jim@meyering.net>
66380
66381         * modules/closeout (Depends-on): Remove fpending.
66382
66383 2004-11-10  Jim Meyering  <jim@meyering.net>
66384
66385         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
66386
66387 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66388
66389         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
66390         gl_FUNC_STRFTIME.
66391         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
66392         and AC_REQUIRE when possible, to avoid duplicate checks.
66393         Check for <wchar.h>.
66394
66395 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66396
66397         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
66398
66399 2004-11-09  Bruno Haible  <bruno@clisp.org>
66400
66401         * m4/sockpfaf.m4: New file.
66402
66403 2004-11-05  Bruno Haible  <bruno@clisp.org>
66404
66405         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
66406         Reported by Mark D. Baushke <mdb@cvshome.org>.
66407
66408 2004-11-04  Bruno Haible  <bruno@clisp.org>
66409
66410         2004-09-11  Bruno Haible  <bruno@clisp.org>
66411                 * allocsa.valgrind: New file.
66412         2004-02-06  Bruno Haible  <bruno@clisp.org>
66413                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
66414                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
66415                 Reported by Christopher Seip <chris.seip@hp.com>.
66416
66417 2004-11-04  Bruno Haible  <bruno@clisp.org>
66418
66419         * modules/allocsa (Files): Add lib/allocsa.valgrind.
66420         (Makefile.am): Distribute it.
66421
66422 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66423
66424         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
66425         with errno == ERANGE if the buffer is too small.
66426         Problem reported by Mark D. Baushke.
66427
66428 2004-11-03  Albert Chin  <china@thewrittenword.com>
66429             Paul Eggert  <eggert@cs.ucla.edu>
66430
66431         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
66432         equivalent, substitute $ac_type for equivalent type rather than
66433         blindly using uint32_t *always* which won't work if uint32_t is not
66434         available.  Define _UINT32_T to work around typedef of uint32_t if
66435         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
66436         2.5.1.
66437
66438 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
66439
66440         * m4/jm-macros.m4: Sync from coreutils.
66441         (gl_MACROS): Check for mbrlen, for pathchk.
66442         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
66443
66444 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
66445
66446         * lib/xreadlink.c (MAXSIZE): New macro.
66447         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
66448         size does not exceed MAXSIZE.  Avoid cast.
66449         As suggested by Mark D. Baushke in
66450         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
66451         if readlink fails with buffer size just under MAXSIZE, try again
66452         with MAXSIZE.
66453
66454 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
66455
66456         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
66457
66458 2004-11-02  Derek R. Price  <derek@ximbiot.com>
66459         and  Paul Eggert  <eggert@cs.ucla.edu>
66460
66461         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
66462         (get_date): Overparenthesize to avoid GCC warning.
66463
66464 2004-11-02  Bruno Haible  <bruno@clisp.org>
66465
66466         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
66467         returns void.
66468
66469 2004-11-02  Bruno Haible  <bruno@clisp.org>
66470
66471         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
66472         function returns void.
66473
66474 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
66475
66476         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
66477         fflush_unlocked, flockfile, funlockfile, funlockfile,
66478         fputs_unlocked, putc_unlocked.
66479
66480 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
66481
66482         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
66483         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
66484         already declared.
66485
66486 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66487
66488         * modules/getdate (Files): Add doc/getdate.texi.
66489         (Depends-on): Add setenv, xalloc.
66490
66491 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66492
66493         * lib/getdate.y: Add support for TZ="foo" within a date string.
66494         Fix some bugs near time_t boundaries.  Reject dates with
66495         out-of-range components, e.g., "Sept 31".
66496         Include <stdlib.h>, "setenv.h", "xalloc.h".
66497         (ISDIGIT_LOCALE): Remove; unused.
66498         Note that the TZ and time functions used here are not reentrant.
66499         (mktime_ok, get_tz): New functions.
66500         (TZBUFSIZE): New constant.
66501         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
66502         This requires that we sometimes generate our own TZ="XXX..." setting.
66503
66504 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66505
66506         * doc/getdate.texi: New file, from coreutils with modifications for
66507         the new TZ parsing.
66508
66509 2004-10-27  Derek R. Price  <derek@ximbiot.com>
66510
66511         * lib/mktime.c (not_equal_tm): Remove redundant check.
66512
66513 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66514
66515         * modules/regex (lib_SOURCES): Add regex.c.
66516         Reported by James Youngman in
66517         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
66518
66519 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66520
66521         * lib/getdate.y: Use Bison 1.875 features, and some minor
66522         code cleanups.  This change does not affect semantics.
66523         Don't include <stdlib.h>; no longer needed.
66524         Don't include unlocked-io.h; only the "#if TEST" code uses
66525         stdio, and performance isn't crucial there.
66526         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
66527         Bison 1.875 features as described below.
66528         All uses of "PC." replaced by "pc->".
66529         (YYSTYPE): Add a forward declaration.
66530         (yylex, yyerror): Use full prototypes in forward decls.
66531         Use "%pure-parser" rather than obsolescent "%pure_parser".
66532         Use %parse-param and %lex-param instead of obsolescent
66533         YYPARSE_PARAM and YYLEX_PARAM.
66534         (meridian_table, month_and_day_table, time_units_table,
66535         relative_time_table, time_zone_table, military_table,
66536         lookup_zone, lookup_word, get_date):
66537         Use NULL instead of 0 where appropriate.
66538         (to_hour): Avoid abort (), to avoid a dependency on
66539         stdlib.h.
66540         (yyerror, yylex): Now accepts parser_control * arg.
66541         (main) [TEST]: Use '\0' rather than 0 for char.
66542
66543 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
66544
66545         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
66546
66547 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
66548
66549         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
66550         It's now the caller's responsibility to handle the case where
66551         !HAVE_GETPAGESIZE && !defined getpagesize.
66552
66553         * lib/mktime.c (leapyear): Arg is long int, not int.
66554
66555 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
66556
66557         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
66558
66559 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66560
66561         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
66562         missing.  Problem reported by James Youngman.
66563
66564 2004-10-16  Simon Josefsson  <jas@extundo.com>
66565
66566         * gnulib-tool: Fix comments.  Fix parse problem.
66567         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
66568
66569 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
66570
66571         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
66572         implementation of getopt_long.  Problem reported by Alexander Taler in:
66573         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
66574
66575 2004-10-15  Bruno Haible  <bruno@clisp.org>
66576
66577         * gnulib-tool: Untabify. Initialize supplied_libname.
66578         (func_usage): More homogenous output.
66579         (func_modules_transitive_closure, func_modules_to_filelist,
66580         func_emit_lib_Makefile_am): New functions.
66581         (func_import): New function, extracted from big case statement. Use
66582         func_get_license, func_modules_transitive_closure,
66583         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
66584         opt_lgpl. Don't use test -a, as it's not portable.
66585         (func_create_testdir): Use func_modules_transitive_closure,
66586         func_modules_to_filelist, func_emit_lib_Makefile_am.
66587
66588 2004-10-15  Bruno Haible  <bruno@clisp.org>
66589
66590         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
66591
66592 2004-10-15  Bruno Haible  <bruno@clisp.org>
66593
66594         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
66595         the portions belonging to each module.
66596         Suggested by Derek Robert Price <derek@ximbiot.com>.
66597
66598 2004-10-12  Simon Josefsson  <jas@extundo.com>
66599
66600         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
66601         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
66602         to real functions.
66603
66604 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66605
66606         * modules/vsnprintf: New file.
66607
66608 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66609
66610         * m4/vsnprintf.m4: New file.
66611
66612 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66613
66614         * lib/vsnprintf.h: New file.
66615         * lib/vsnprintf.c: New file.
66616
66617 2004-10-11  Bruno Haible  <bruno@clisp.org>
66618
66619         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
66620         vsnprintf.
66621
66622 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66623
66624         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
66625
66626 2004-10-07  Bruno Haible  <bruno@clisp.org>
66627
66628         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
66629         fits into the provided buffer.
66630
66631 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66632
66633         * lib/diacrit.c, diacrit.h: Add GPL notice.
66634
66635         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
66636         notice.
66637         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
66638         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
66639         This avoids a potential constant-folding bug.
66640
66641 2004-10-05  Bruno Haible  <bruno@clisp.org>
66642
66643         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
66644         for the declaration of strsep.
66645
66646 2004-10-05  Bruno Haible  <bruno@clisp.org>
66647
66648         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
66649
66650 2004-10-04  Simon Josefsson  <jas@extundo.com>
66651
66652         * modules/memmem: New file.
66653         * tests/test-memmem.c: New file.
66654         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
66655
66656 2004-10-04  Simon Josefsson  <jas@extundo.com>
66657
66658         * m4/memmem.m4: New file.
66659
66660 2004-10-04  Simon Josefsson  <jas@extundo.com>
66661
66662         * lib/memmem.h: New file.
66663         * lib/memmem.c: New file, taken from glibc.
66664
66665 2004-10-04  Simon Josefsson  <jas@extundo.com>
66666
66667         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
66668         '#ifdef USE_UNLOCKED_IO'.
66669
66670 2004-10-04  Simon Josefsson  <jas@extundo.com>
66671
66672         * config/srclist.txt: Add memmem from glibc.
66673
66674 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66675
66676         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
66677
66678         * modules/argmatch, modules/argp, modules/closeout, modules/error,
66679         modules/exclude, modules/getdate, modules/getline,
66680         modules/getndelim2, modules/getpass, modules/getpass-gnu,
66681         modules/getusershell, modules/linebuffer, modules/md5,
66682         modules/mountlist, modules/posixtm, modules/readtokens,
66683         modules/readutmp, modules/regex, modules/sha1,
66684         modules/version-etc, modules/yesno:
66685         Remove dependency on unlocked-io.
66686
66687 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66688
66689         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
66690
66691         * m4/unlocked-io.m4: Add copyright notice.
66692         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
66693
66694 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66695
66696         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
66697         * lib/xmalloc.c (xmemdup): Likewise.
66698         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
66699         XFREE): Remove these long-obsolescent macros.
66700         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
66701         * lib/xstrdup.c: Remove.
66702
66703         * lib/regex.c (re_comp): Cast gettext return value to char *,
66704         Problem reported by Martin Neitzel via Mark D. Baushke.
66705
66706 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66707
66708         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
66709         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
66710         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
66711         regex.c, sha1.c, version-etc.c, yesno.c:
66712         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
66713         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
66714         the includer's responsibility.
66715
66716         Sync from coreutils.
66717
66718         * lib/modechange.c (mode_compile): Don't decrement a pointer that
66719         points to the start of a string, as the C Standard says the
66720         resulting behavior is undefined.
66721
66722         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
66723         simple -> simple_backups, numbered_existing ->
66724         numbered_existing_backups, numbered -> numbered_backups
66725         to avoid shadowing problems.  All uses changed.
66726         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
66727         * lib/backupfile.c (check_extension, numbered_backup):
66728         Rename locals to avoid shadowing 'basename'.
66729         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
66730         once.
66731
66732         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
66733         * lib/.cvsignore: Add getopt.h.
66734
66735 2004-10-04  Bruno Haible  <bruno@clisp.org>
66736
66737         * modules/README: New file.
66738         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
66739         not a module.
66740
66741 2004-10-02  Jim Meyering  <jim@meyering.net>
66742
66743         * lib/dirfd.h, getpagesize.h: Add copyright notice.
66744
66745 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66746
66747         * modules/strsep: New file.
66748
66749 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66750
66751         * m4/strsep.m4: New file.
66752
66753 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66754
66755         * lib/strsep.h: New file.
66756         * lib/strsep.c: New file.
66757
66758 2004-10-01  Simon Josefsson  <jas@extundo.com>
66759
66760         * lib/snprintf.c (snprintf): Handle size==0.
66761
66762 2004-10-01  Simon Josefsson  <jas@extundo.com>
66763             Bruno Haible  <bruno@clisp.org>
66764
66765         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
66766         (snprintf): Declare 'args'.
66767
66768 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
66769
66770         * lib/snprintf.c: Remove comments as to why each header is needed.
66771
66772 2004-10-01  Bruno Haible  <bruno@clisp.org>
66773
66774         * MODULES.html.sh: Add strsep.
66775
66776 2004-09-30  Simon Josefsson  <jas@extundo.com>
66777
66778         * modules/snprintf: New file.
66779
66780 2004-09-30  Simon Josefsson  <jas@extundo.com>
66781
66782         * m4/snprintf.m4: New file.
66783
66784 2004-09-30  Simon Josefsson  <jas@extundo.com>
66785
66786         * lib/snprintf.h, lib/snprintf.c: New files.
66787
66788 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66789
66790         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
66791         (hol_entry_help): Never translate an empty string.
66792         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
66793         * lib/argp.h (OPTION_NO_TRANS): New option.
66794
66795 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
66796
66797         * modules/argp (Maintainer): Replace Simon Josefsson
66798         by Sergey Poznyakoff.
66799
66800 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
66801
66802         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
66803         changes merged back into glibc.
66804
66805 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
66806
66807         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
66808
66809 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66810
66811         * lib/xvasprintf.c: Include xalloc.h.
66812         (xvasprintf): Use xalloc_die, not xmalloc_die.
66813
66814 2004-09-29  Bruno Haible  <bruno@clisp.org>
66815
66816         * modules/alloca-opt: New file, derived from modules/alloca.
66817         * modules/allocsa: Depend on alloca-opt instead of alloca.
66818         * modules/setenv: Likewise.
66819         * modules/vasnprintf: Likewise.
66820         * MODULES.html.sh: Add alloca-opt.
66821
66822 2004-09-28  Simon Josefsson  <jas@extundo.com>
66823
66824         * gnulib-tool: New parameter --lgpl, to asseert that modules are
66825         LGPL, and to replace license template from GPL to LGPL.
66826
66827 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
66828
66829         * modules/dummy: Change license to LGPL.
66830
66831 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
66832
66833         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
66834
66835 2004-09-24  Simon Josefsson  <jas@extundo.com>
66836
66837         * modules/minmax (License): Change from GPL to LGPL.
66838
66839 2004-09-23  Simon Josefsson  <jas@extundo.com>
66840
66841         * gnulib-tool (--import): Typo.
66842
66843 2004-09-23  Simon Josefsson  <jas@extundo.com>
66844
66845         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
66846
66847 2004-09-22  Bruno Haible  <bruno@clisp.org>
66848
66849         * modules/*: Add 'License' field.
66850         * gnulib-tool: Accept --extract-license option.
66851         (func_get_license): New function.
66852
66853 2004-09-21  Bruno Haible  <bruno@clisp.org>
66854
66855         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
66856         Reported by Simon Josefsson.
66857
66858 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66859
66860         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
66861         gl_AC_TYPE_LONG_LONG.
66862
66863 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66864
66865         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
66866
66867 2004-09-18  Simon Josefsson  <jas@extundo.com>
66868         and  Paul Eggert  <eggert@cs.ucla.edu>
66869
66870         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
66871         calls with autoreconf.  Define GL_LIB.
66872
66873 2004-09-14  Karl Berry  <karl@gnu.org>
66874
66875         * config/srclist.txt: unsync setenv.c, sigh.
66876
66877 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
66878
66879         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
66880         Problem reported by Bruno Haible in:
66881         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
66882
66883 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
66884
66885         * config/srclist.txt: Comment out argp-pvh.c.
66886
66887 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
66888
66889         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
66890         in case some system header has #define'd it.  Problem reported by
66891         Soeren D. Schulze in
66892         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
66893
66894 2004-09-09  Karl Berry  <karl@gnu.org>
66895
66896         * regex.[ch]: delete from the root.  These were supposed to be
66897                 synced with emacs cvs, but this has not happened for about
66898                 a year, and anyway nothing else uses emacs regex.[ch].
66899                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
66900                 lib/regex[.ch] is untouched.
66901
66902 2004-09-09  Bruno Haible  <bruno@clisp.org>
66903
66904         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
66905
66906 2004-09-09  Bruno Haible  <bruno@clisp.org>
66907
66908         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
66909         modifications.
66910         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
66911
66912 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
66913
66914         * modules/xvasprintf: New file.
66915         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
66916
66917 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
66918
66919         * lib/xvasprintf.h: New file.
66920         * lib/xvasprintf.c: New file.
66921         * lib/xasprintf.c: New file.
66922
66923 2004-09-08  Bruno Haible  <bruno@clisp.org>
66924
66925         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
66926
66927 2004-09-08  Bruno Haible  <bruno@clisp.org>
66928
66929         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
66930         length is > INT_MAX.
66931         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
66932         more.
66933
66934 2004-09-08  Bruno Haible  <bruno@clisp.org>
66935
66936         * lib/stdint_.h: New file, taken from GNU clisp.
66937
66938 2004-09-08  Bruno Haible  <bruno@clisp.org>
66939             Oskar Liljeblad  <oskar@osk.mine.nu>
66940
66941         * modules/stdint: New file.
66942         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
66943
66944 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66945
66946         Import from coreutils.
66947         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
66948         strings on unbounded length.  alloca's performance benefits aren't
66949         that important here.
66950         (V_STRDUP): Remove.
66951         (parse_with_separator): New function, with most of the internals
66952         of the old parse_user_spec.  Allow user to omit both user and group,
66953         for compatibility with FreeBSD.
66954         Clone only the user name, not the entire spec.
66955         Do not set *uid, *gid unless entirely successful.
66956         Avoid memory leak in some failing cases.
66957         Fix regression for USER.GROUP reported by Dmitry V. Levin in
66958         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
66959         (parse_user_spec): Rewrite to use parse_with_separator.
66960
66961 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66962
66963         * modules/userspec: Don't depend on alloca.
66964
66965 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66966
66967         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
66968
66969 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66970
66971         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
66972         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
66973         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
66974
66975 2004-08-16  Simon Josefsson  <jas@extundo.com>
66976
66977         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
66978         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
66979         Add --dry-run for --import.
66980         Let user provided command line parameters override configure.ac
66981         settings.
66982
66983 2004-08-12  Simon Josefsson  <jas@extundo.com>
66984
66985         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
66986         as discussed with Paul Eggert in threads rooted at
66987         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
66988         and
66989         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
66990         Before, the test was empty, and relied on ELIDE_CODE in source
66991         code.)
66992         (gl_PREREQ_GETOPT): New macro.
66993         (gl_GETOPT): Use them.
66994
66995 2004-08-12  Simon Josefsson  <jas@extundo.com>
66996
66997         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
66998         * lib/getopt_.h: Renamed from getopt.h.
66999
67000 2004-08-12  Simon Josefsson  <jas@extundo.com>
67001
67002         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
67003         Change default library name from libfoo to libgnu.
67004         Now, if you have a configure.ac that says:
67005                 gl_SOURCE_BASE(gl)
67006                 gl_M4_BASE(gl/m4)
67007                 gl_MODULES(error getopt etcetera)
67008                 gl_INIT
67009         you can import all you need by running:
67010                 ../gnulib/gnulib-tool --import
67011
67012         * modules/getopt (Files): Rename getopt.h to getopt_.h.
67013         (Makefile.am): Rewrite, use logic from argz.
67014         (Include): Use <getopt.h> instead of "getopt.h".
67015
67016 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67017
67018         * modules/argp (Files): Add m4/unlocked-io.m4.
67019         (Depends-on): Add extensions.
67020
67021 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67022
67023         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
67024         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
67025         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
67026         Check for program_invocation_name, program_invocation_short_name,
67027         flockfile, funlockfile, features.h, _getopt_long_only_r.
67028
67029 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67030
67031         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
67032         its complicated substitute.
67033         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
67034         and program_invocation_name.
67035         (__argp_basename) [!_LIBC]: Remove; the only use was
67036         replaced by its body.
67037         (__argp_short_program_name): Change condition from
67038         !defined __argp_short_program_name to
67039         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
67040         to match argp-namefrob.h.
67041         (__argp_failure): Don't assume strerror_r returns char *.
67042         * lib/argp-parse.c (N_): Define unconditionally.
67043         (argp_default_options): Fill out initializers with 0 to avoid
67044         gcc warnings.
67045
67046 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67047
67048         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
67049         getopt1.c.
67050
67051 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67052
67053         Merge from coreutils.
67054
67055         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
67056
67057         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
67058         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
67059
67060 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67061
67062         Merge from coreutils.
67063
67064         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
67065         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
67066         for Reliant Unix 5.43.
67067
67068         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
67069         (union fooround): Use uintmax_t, not long int.
67070         The rest is a merge from libc:
67071         [defined _LIBC]: Include <shlib-compat.h>.
67072         (_obstack) [defined _LIBC]: Remove after 2.3.4.
67073
67074         * lib/settime.c (settime): Recode to avoid warning with
67075         Sun Forte C 6U2.
67076
67077         * lib/strverscmp.c: Convert to UTF-8.
67078
67079 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67080
67081         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
67082         m4/uintmax_t.m4.
67083
67084 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67085
67086         * modules/xalloc-die: New file.
67087         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
67088
67089         * modules/md5 (Files): Add m4/uint32_t.m4.
67090         * modules/sha1: Renamed from modules/sha.
67091         (Files):
67092         Rename lib/sha.h to lib/sha1.h.
67093         Rename lib/sha.c to lib/sha1.c.
67094         Rename m4/sha.m4 to m4/sha1.m4.
67095         (lib_SOURCES): Likewise.
67096         (configure.ac): Rename gl_SHA to gl_SHA1.
67097         (Include): sha.h -> sha1.h.
67098
67099 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67100
67101         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
67102         * m4/sha1.m4: Renamed from sha.m4.
67103         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
67104
67105 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67106
67107         * lib/obstack.h (obstack_empty_p):
67108         Don't assume that chunk->contents is suitably aligned.
67109         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
67110         Likewise. Problem reported by Benno in
67111         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
67112
67113         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
67114         readable.  This could be improved further but it'd take some work.
67115
67116 2004-08-08  Simon Josefsson  <jas@extundo.com>
67117
67118         * modules/xgethostname (Depends-on): Remove exit and error (not
67119         used).
67120
67121         * modules/getpass-gnu: Add getpass.h.
67122         (Depends-on): Add stdbool.
67123         * modules/getpass: Add getpass.h.
67124
67125 2004-08-08  Simon Josefsson  <jas@extundo.com>
67126
67127         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
67128         Check getpass declaration.
67129
67130 2004-08-08  Simon Josefsson  <jas@extundo.com>
67131
67132         * lib/xgethostname.c: Don't include error.h (not used).
67133
67134         * lib/getpass.h: Add.
67135         * lib/getpass.c: Include getpass.h first.
67136
67137 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
67138
67139         * lib/xalloc-die.c: New file.
67140         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
67141         All uses removed.
67142         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
67143         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
67144         xalloc-die.c.
67145         (_, N_, xalloc_die): Move to xalloc-die.c.
67146         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
67147         so that we needn't mess with xalloc_msg_memory_exhausted.
67148
67149         * lib/sha1.h: Renamed from sha.h.
67150         (SHA1_H): Renamed from _SHA_H.
67151         (sha1_ctx): Renamed from sha_ctx.
67152         (sha1_init_ctx): Renamed from sha_init_ctx.
67153         (sha1_process_block): Renamed from sha_process_block.
67154         (sha1_process_bytes): Renamed from sha_process_bytes.
67155         (sha1_finish_ctx): Renamed from sha_finish_ctx.
67156         (sha1_read_ctx): Renamed from sha_read_ctx.
67157         (sha1_stream): Renamed from sha_stream.
67158         (sha1_buffer): Renamed from sha_buffer.
67159         * lib/sha1.c: Likewise; renamed from sha.c.
67160         Do not include <sys/types.h>.
67161         Include <stddef.h> rather than <stdlib.h>.
67162
67163 2004-08-08  Bruno Haible  <bruno@clisp.org>
67164
67165         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
67166         FILESYSTEM_PREFIX_LEN.
67167         * lib/progreloc.c: Likewise.
67168         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
67169
67170 2004-08-06  Simon Josefsson  <jas@extundo.com>
67171
67172         * modules/progname (Depends-on): Don't depend on stdbool.
67173
67174 2004-08-06  Simon Josefsson  <jas@extundo.com>
67175
67176         * modules/getsubopt: New file.
67177         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67178         getsubopt.
67179
67180 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67181
67182         More merge from coreutils.
67183
67184         * m4/utimens.m4, m4/utimecmp.m4: New files.
67185         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
67186         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
67187         prereq.m4, sha.m4: Import changes from coreutils.
67188
67189 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67190
67191         More merge from coreutils.
67192         * modules/raise, modules/readtokens0, modules/utimens:
67193         * modules/utimecmp, module/xnanosleep: New files.
67194         * modules/strftime: Add lib/strftime.h.
67195         Change include from <time.h> to "strftime.h".
67196         * modules/yesno: Add lib/yesno.h.
67197         * modules/backupfile: Remove lib/addext.c.
67198         * modules/euidaccess: Add stat-macros.h.
67199         * modules/canonicalize, modules/euidaccess,
67200         modules/filemode, modules/lchown, modules/makepath,
67201         modules/rmdir, modules/stat: Likewise.
67202
67203 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67204
67205         Merge from tar.
67206         * lib/argp-help.c (make_hol, hol_append): Don't assume that
67207         SIZE_MAX is a valid preprocessor constant.
67208         (__argp_basename): Change from "#ifndef _LIBC"
67209         to "#ifndef __argp_short_program_name", so that
67210         we don't compile these functions for tar.
67211
67212         More merges from coreutils.
67213         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
67214         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
67215         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
67216         * lib/addext.c: Remove; no longer needed.
67217         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
67218         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
67219         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
67220         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
67221         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
67222         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
67223         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
67224         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
67225         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
67226         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
67227         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
67228         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
67229         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
67230         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
67231         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
67232         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
67233         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
67234         Import changes from coreutils.
67235
67236 2004-08-05  Simon Josefsson  <jas@extundo.com>
67237
67238         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
67239
67240 2004-08-05  Simon Josefsson  <jas@extundo.com>
67241
67242         * m4/getsubopt.m4: New file.
67243
67244 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
67245
67246         Merge from coreutils.
67247
67248         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
67249         * m4/getcwd-path-max.m4: New files.
67250
67251         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
67252         FILESYSTEM_PREFIX_LEN ->
67253         FILE_SYSTEM_PREFIX_LEN.
67254         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
67255         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
67256         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
67257         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
67258
67259         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
67260         prerequisite modules now handle the DOS stuff.
67261         Don't check for unistd.h.
67262
67263 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
67264
67265         Merge from coreutils.
67266
67267         * lib/.gdb-history: Remove; this doesn't belong here.
67268
67269         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
67270         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
67271         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
67272         * lib/getcwd.c: New files.
67273
67274         * lib/dirname.h: Include <stdbool.h>.
67275         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
67276         for consistency with POSIX terminology.  All uses changed.
67277         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
67278         (strip_trailing_slashes): Use bool for booleans.
67279         * lib/stripslash.c (strip_trailing_slashes): Likewise.
67280
67281         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
67282         sometimes returns a positive errno value even when it succeeds.
67283         (print_errno_message) [!LIBC]: Fall back on strerror if
67284         __strerror_r fails.
67285
67286         * lib/path-concat.c (mempcpy): Don't define if a system header defines
67287         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
67288         (longest_relative_suffix): New function.
67289         (path_concat): Use it.  Assume first argument is not NULL.
67290         Port to DOS.  Omit redundant separators.
67291         Report an error instead of returning NULL.
67292         Use mempcpy instead of memcpy.
67293         (xpath_concat): Remove: not declared or used.
67294
67295         * lib/same.h: Include <stdbool.h>
67296         (same_name): Return bool, not int.
67297         * lib/same.c (same_name): Likewise.
67298         (errno): Don't declare; we assume C89 or better now.
67299
67300         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
67301         if not already defined.
67302
67303         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
67304         * lib/dup-safer.c (errno): Likewise.
67305
67306 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
67307
67308         Merge from coreutils.
67309         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
67310         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
67311         * modules/path-concat: Don't depend on strdup.
67312
67313 2004-08-03  Simon Josefsson  <jas@extundo.com>
67314
67315         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
67316         * lib/progname.h: Don't include stdbool.h.
67317
67318 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
67319
67320         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
67321         * MODULES.html.sh (func_all_modules): Remove fatal.
67322
67323 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
67324
67325         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
67326
67327 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
67328
67329         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
67330         working.
67331
67332 2004-08-02  Simon Josefsson  <jas@extundo.com>
67333
67334         * lib/getsubopt.h: New file, with comments from Bruno Haible.
67335         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
67336         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
67337
67338 2004-08-01  Simon Josefsson  <jas@extundo.com>
67339
67340         * lib/xgetdomainname.c: Include stdlib.h, for free().
67341
67342 2004-07-19  Bruno Haible  <bruno@clisp.org>
67343
67344         * MODULES.html.sh (func_all_modules): Add dummy.
67345
67346 2004-07-16  Simon Josefsson  <jas@extundo.com>
67347
67348         * modules/dummy: New file.
67349
67350 2004-07-16  Simon Josefsson  <jas@extundo.com>
67351
67352         * lib/dummy.c: New file.
67353
67354 2004-07-16  Bruno Haible  <bruno@clisp.org>
67355
67356         * lib/backupfile.h: Add extern "C" for C++.
67357         * lib/closeout.h: Likewise.
67358         * lib/copy-file.h: Likewise.
67359         * lib/findprog.h: Likewise.
67360         * lib/full-write.h: Likewise.
67361         * lib/pathname.h: Likewise.
67362         * lib/progname.h: Likewise.
67363         * lib/stpcpy.h: Likewise.
67364         * lib/stpncpy.h: Likewise.
67365         * lib/strcase.h: Likewise.
67366         * lib/strstr.h: Likewise.
67367         * lib/xalloc.h: Likewise.
67368
67369         * lib/mbswidth.h: Add extern "C" for C++.
67370         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
67371
67372 2004-07-13  Robert Millan  <robertmh@gnu.org>
67373
67374         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
67375
67376 2004-07-09  Simon Josefsson  <jas@extundo.com>
67377
67378         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
67379         failed without this.)
67380
67381 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67382
67383         * modules/chown (Files): Add lib/fchown-stub.c, since
67384         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
67385
67386 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67387
67388         * lib/fchown-stub.c: New file.
67389
67390 2004-06-24  Jim Meyering  <jim@meyering.net>
67391
67392         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
67393
67394 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67395
67396         * modules/argz: Omit "#include".
67397
67398         * MODULES.html.sh (func_all_modules): Add calloc, to match
67399         2004-06-01 addition of calloc module.
67400
67401 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67402
67403         * m4/argz.m4: New file, which is autoupdated from libtool.
67404
67405 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67406
67407         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
67408         libtool.
67409
67410 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67411
67412         * config/srclist-update: Don't insist on "USA." before the
67413         close-comment, as libtool omits the period and puts the */ on a
67414         separate line.
67415         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
67416         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
67417
67418 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
67419
67420         * modules/argz: New file.
67421         * MODULES.html.sh (func_all_modules): Add argz.
67422
67423 2004-06-12  Jim Meyering  <jim@meyering.net>
67424         and  Paul Eggert  <eggert@cs.ucla.edu>
67425
67426         * modules/hash (Files): Add lib/xalloc.h.
67427         * modules/pipe (Depends-on): Add wait-process.
67428         * modules/stat (Depends-on): Add xalloc.
67429         * modules/userspec (Files): Add lib/userspec.h.
67430         * modules/xstrto
67431
67432         Upgrade from gettext-0.13.
67433         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
67434         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
67435         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
67436
67437 2004-06-10  Jim Meyering  <jim@meyering.net>
67438
67439         * lib/calloc.c: New file.
67440
67441 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67442
67443         * lib/getdate.y (yylex): Allow space between sign and number.
67444         Problem reported by Dan Jacobson.
67445
67446 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
67447
67448         Merge from coreutils CVS.
67449
67450         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
67451         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
67452         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
67453         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
67454         xstrtol.m4: Fix copyright date and/or serial number.
67455
67456         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
67457         See if we need an fchown replacement.
67458         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
67459         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
67460         and use the replacement function if we detect either defect.
67461
67462         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
67463         gl_UTIMECMP.
67464
67465 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
67466         and  Jim Meyering  <jim@meyering.net>
67467
67468         Merge from coreutils CVS.
67469
67470         * lib/stat-macros.h: New file, with contents from file-type.h
67471         and coreutils' system.h.
67472         * lib/file-type.c: Include "stat-macros.h".
67473         * lib/file-type.h (file_type): Move all macro definitions to new file,
67474         stat-macros.h.
67475
67476         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
67477         Wrap old code with this conditional.
67478         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
67479         function that does not dereference symlinks.
67480         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
67481
67482         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
67483         dependency problems.
67484         (xreadlink): Accept new arg SIZE, for efficiency.
67485         All decls and uses changed.
67486         * lib/xreadlink.h: Include <stddef.h>, for size_t.
67487
67488         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
67489         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
67490
67491         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
67492         sysexits.h.
67493
67494 2004-06-01  Jim Meyering  <jim@meyering.net>
67495
67496         * m4/calloc.m4: New file.
67497
67498 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
67499
67500         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
67501         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
67502         Also, fix a typo in a diagnostic.
67503
67504 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
67505
67506         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
67507         or AC_FUNC_REALLOC.
67508
67509 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
67510
67511         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
67512         macros to be defined.
67513         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
67514         the allocator returns NULL because the requested size is zero.
67515
67516 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67517
67518         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
67519         var.  Add comment explaining why libc still defines it.  This
67520         merges the following patch from glibc:
67521         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
67522
67523 2004-05-20  Andreas Schwab  <schwab@suse.de>
67524
67525         * m4/free.m4: Replace free if it not known to work, not the other
67526         way round.
67527
67528 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67529
67530         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
67531         present in glibc since revision 1.1 of this file.
67532         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
67533         obstack_alignment_mask, obstack_alloc, obstack_base,
67534         obstack_blank, obstack_blank_fast, obstack_chunk_size,
67535         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
67536         obstack_grow0, obstack_init, obstack_int_grow,
67537         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
67538         obstack_next_free, obstack_object_size, obstack_ptr_grow,
67539         obstack_ptr_grow_fast, obstack_room): Remove declarations of
67540         nonexistent functions.
67541
67542 2004-05-18  Karl Berry  <karl@gnu.org>
67543
67544         * config/srclist.txt: break link for vasnprintf.c.
67545
67546 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67547
67548         Port obstack to the AS/400, where pointers are 16 bytes wide and
67549         you cannot cast an integer to a valid pointer.  This patch is
67550         currently waiting to be integrated into glibc; see
67551         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
67552
67553         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
67554         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
67555         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
67556         (struct obstack): temp member is now a union of a pointer and
67557         an integer, instead of an integer.  All integer uses changed.
67558         This does not affect the physical layout of struct obstack,
67559         except on hosts (like the AS/400) where the size or alignment of
67560         void * is greater than that of ptrdiff_t.
67561         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
67562         __STDC__)]: Store temporary in pointer member of union, not
67563         integer member.
67564         * lib/obstack.c: Include <stddef.h>, for offsetof.
67565         (struct fooalign): Remove; it doesn't need a name.
67566         (union fooround): Change double to long double, and add void *.
67567         (DEFAULT_ALIGNMENT): Use offsetof to compute.
67568         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
67569         not a macro.  Hence the values are always int; so remove all
67570         casts-to-int in uses.
67571
67572 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67573
67574         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
67575         we can get this patch merged into glibc.
67576
67577 2004-05-17  Derek R. Price  <derek@ximbiot.com>
67578             Paul Eggert  <eggert@cs.ucla.edu>
67579
67580         * m4/argp: Depend on alloca.
67581
67582 2004-05-17  Derek R. Price  <derek@ximbiot.com>
67583             Paul Eggert  <eggert@cs.ucla.edu>
67584
67585         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
67586         freecoding.
67587
67588 2004-05-17  Bruno Haible  <bruno@clisp.org>
67589
67590         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
67591         precision that consists of a '.' followed by an empty digit string.
67592         Patch by Tor Lillqvist <tml@iki.fi>.
67593
67594 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67595
67596         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
67597         for backward compatibility with older code.  We need our own
67598         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
67599         it under some other name, and our alloca.h will define it.
67600
67601 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67602             Derek Price  <derek@ximbiot.com>
67603
67604         * lib/alloca.c: Include <alloca.h>, to get our interface.
67605         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
67606         include <alloca.h> first.  Use C89 prototype for alloca; this
67607         requires including <stddef.h> for size_t.  Use extern "C" if C++.
67608         Use #elif for simplicity, since we can assume C89 now.
67609         Don't try to source the system alloca.h since it will not be found
67610         and to prevent recursively including its replacement.
67611         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
67612         * lib/regex.c: Likewise.
67613
67614 2004-05-16  Derek Price  <derek@ximbiot.com>
67615             Paul Eggert  <eggert@cs.ucla.edu>
67616
67617         getline cleanup.  This changes the getndelim2 API: both order of
67618         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
67619         no delimiter).
67620
67621         * lib/getline.c: Don't include stddef.h or stdio.h, since our
67622         interface does that.
67623         (getline): Always use getdelim, so that we don't have two
67624         copies of this code.
67625         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
67626         if available.
67627         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
67628         (GETNDELIM2_MAXIMUM): New macro.
67629         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
67630         instead of the old practice of delim2==0.  All callers changed.
67631         Return -1 on overflow, instead of returning junk.
67632         Do not set *linesize unless allocation succeeds.
67633         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
67634         that we include sys/types.h.
67635         * lib/getnline.h: Likewise.
67636         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
67637         (getndelim2): Reorder arguments.
67638         * lib/getnline.c (getnline, getndelim):
67639         Don't discard the NMAX argument.
67640         (getnline): Invoke getndelim, to avoid code duplication.
67641         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
67642         of (size_t) -1 by callers of the getnline family.
67643
67644 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67645
67646         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
67647         Check for gettimeofday.
67648         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
67649         Check for settimeofday, stime.
67650
67651 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67652
67653         * lib/nanosleep.c (suspended): Change its type from int to
67654         sig_atomic_t volatile.
67655         (first_call): Make it private to rpl_nanosleep, and have it
67656         be zero initially as that's a bit faster.
67657         (my_usleep): Round up fractional times instead of truncating them,
67658         as this is the usual meaning for 'sleep'.
67659
67660         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
67661         doesn't work.
67662         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
67663         (ENOSYS): Define if not defined.
67664         (settime): Fall back on stime if it exists and settimeofday fails.
67665         But don't bother with fallbacks if a method fails with errno == EPERM.
67666
67667 2004-05-11  Jim Meyering  <jim@meyering.net>
67668
67669         Prior to this change, the save_cwd caller required read access to the
67670         current directory on most systems (ones with the fchdir function).
67671
67672         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
67673         fails, try write-only, and finally, resort to using xgetcwd.
67674
67675 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67676
67677         * lib/obstack.c, obstack.h: Import changes from libc.
67678
67679 2004-04-28  Bruno Haible  <bruno@clisp.org>
67680
67681         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
67682         also implicitly appends .exe to executables.
67683         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
67684         accepts Windows pathnames.
67685         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
67686         Treat Cygwin like Windows, since it now accepts Windows pathnames.
67687         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
67688         Treat Cygwin like Windows, since it now accepts Windows pathnames.
67689         Reported by Derek Robert Price <derek@ximbiot.com>.
67690
67691 2004-04-21  Karl Berry  <karl@gnu.org>
67692
67693         * config/srclist.txt (localcharset.c): break sync.
67694
67695 2004-04-20  Paul Eggert  <eggert@twinsun.com>
67696
67697         * m4/host-os.m4: Add a copyright notice.
67698
67699 2004-04-20  Jim Meyering  <jim@meyering.net>
67700
67701         Change UTILS_ to gl_ in AC_DEFINE'd names.
67702         Change utils_- and jm_-prefixed variables, too.
67703         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
67704         UTILS_FUNC_MKDIR_TRAILING_SLASH.
67705         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
67706
67707         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
67708         Don't emit trailing blanks.
67709         Also rename jm_-prefixed variables to have gl_ prefix.
67710
67711         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
67712         Also rename jm_-prefixed variables to have gl_ prefix.
67713
67714         * m4/jm-macros.m4: Reflect the renamings.
67715         * m4/prereq.m4: Likewise.
67716
67717 2004-04-20  Jim Meyering  <jim@meyering.net>
67718
67719         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
67720         memory.
67721
67722 2004-04-20  Jim Meyering  <jim@meyering.net>
67723             Bruno Haible  <bruno@clisp.org>
67724
67725         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
67726         memory when realloc fails.
67727
67728 2004-04-19  Jim Meyering  <jim@meyering.net>
67729
67730         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
67731         now that readutmp.c may call `free (0)'.
67732
67733 2004-04-19  Bruno Haible  <bruno@clisp.org>
67734
67735         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
67736         * m4/inttypes_h.m4: Likewise.
67737         * m4/stdint_h.m4: Likewise.
67738         * m4/intmax_t.m4: Likewise.
67739         * m4/uintmax_t.m4: Likewise.
67740
67741 2004-04-18  Jim Meyering  <jim@meyering.net>
67742
67743         * m4/prereq.m4: Don't forbid jm_ prefix.
67744
67745         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
67746         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
67747         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
67748         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
67749         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
67750         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
67751         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
67752         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
67753         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
67754         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
67755         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
67756         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
67757         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
67758         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
67759         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
67760         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
67761         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
67762         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
67763         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
67764
67765 2004-04-18  Jim Meyering  <jim@meyering.net>
67766
67767         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
67768         failure, don't leak memory and do call END_UTMP_ENT.
67769
67770 2004-04-16  Jim Meyering  <jim@meyering.net>
67771
67772         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
67773         coreutils' stat program.
67774         (gl_PREREQ): Don't require jm_PREREQ_STAT.
67775
67776 2004-04-11  Paul Eggert  <eggert@twinsun.com>
67777
67778         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
67779         C89.
67780         (CHAR_BIT): Remove, since we assume C89.
67781         Include <stdint.h> if available, as per current Autoconf CVS advice.
67782
67783 2004-03-31  Jim Meyering  <jim@meyering.net>
67784
67785         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
67786         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
67787         * m4/xalloc.m4: Likewise.
67788
67789 2004-03-30  Paul Eggert  <eggert@twinsun.com>
67790
67791         Merge from coreutils.
67792
67793         * m4/inttostr.m4: New file.
67794         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
67795         Require AM_STDBOOL_H and gl_TIMESPEC instead.
67796         Require gl_CLOCK_TIME.
67797         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
67798
67799 2004-03-30  Paul Eggert  <eggert@twinsun.com>
67800
67801         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
67802         not bool, to be more consistent with Unix conventions.
67803         Suggested by Bruno Haible.
67804
67805         Merge from coreutils.
67806
67807         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
67808         * lib/umaxtostr.c: New files.
67809
67810         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
67811         the usual <time.h> dance.
67812         (get_date): Change signature to support fractional time stamps.
67813         All callers changed.
67814         * lib/getdate.y: Include "getdate.h" first, as we can now
67815         assume C89 and don't need to worry about 'const'.
67816         Similarly, include "unlocked-io.h" near start, not in middle.
67817         Include <limits.h>.
67818         (textint.value): Use long int rather than int.
67819         (textint.digits): Use size_t rather than int.
67820         (BILLION, LOG10_BILLION): New constants.
67821         (parser_control): New member rel_ns.  Members day_ordinal,
67822         time_zone, month, day, hour, minutes, rel_year, rel_month,
67823         rel_day, rel_hour, rel_minutes, rel_seconds
67824         are now long int, not int.  Member seconds is now struct timespec,
67825         not int.  New member timespec_seen.  Members dates_seen, days_seen,
67826         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
67827         not int.
67828         (%union.intval): Now long int, not int.
67829         New member timespec.
67830         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
67831         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
67832         (spec): Now is a timespec or an item list.
67833         (timespec, items): New nonterminals.
67834         (time, rel, relunit, number, get_date):
67835         Add support for fractional seconds.
67836         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
67837         (gmtime, localtime, mktime): Remove decls; not needed with C89.
67838         (to_hour): First arg is now long int, not int.
67839         (to_year): Returns long int, not int.
67840         Don't treat year -70 like 70.
67841         (tm_diff): Returns long int, not int.
67842         (lookup_word): Use bool instead of int when appropriate.
67843         (yylex): Use size_t for count, not int.
67844         Detect overflow when parsing large integer constants.
67845         Add support for fractions.
67846         (get_date): Make pointers 'const' if possible.
67847         Use more-portable code to detect integer overflow.
67848         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
67849         Don't use ctime; it's not reliable if the year has >4 digits.
67850
67851         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
67852         This is for compatibility with BSD.
67853
67854         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
67855         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
67856         From coreutils' system.h.
67857
67858         * lib/userspec.c: Don't include "posixver.h".
67859         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
67860         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
67861         compatible extension.  Simplify code by removing a boolean int
67862         that was always nonzero if a string was nonnull.
67863
67864 2004-03-30  Jim Meyering  <jim@meyering.net>
67865
67866         Merge from coreutils.
67867
67868         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
67869         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
67870         on some systems one must include <grp.h> before it.
67871         Reported by Christian Krackowizer.
67872
67873 2004-03-30  Jim Meyering  <jim@meyering.net>
67874
67875         Merge from coreutils.
67876
67877         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
67878
67879         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
67880         an empty input stream.
67881
67882         * lib/readtokens.c: Include <stdbool.h>.
67883         (readtoken): Use `size_t' rather than int/long.
67884         All callers adjusted.
67885         Use `bool' rather than `int' where appropriate.
67886         Use memset rather than an explicit loop.
67887         Use x2nrealloc rather than xrealloc.
67888         Allow the use of `\0' as a delimiter.
67889         (readtokens): Likewise.
67890         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
67891
67892 2004-03-30  Jim Meyering  <jim@meyering.net>
67893
67894         * m4/realloc.m4: Remove file, since now it does no more than
67895         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
67896         the `configure.ac' section of module/realloc.
67897         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
67898
67899 2004-03-30  Bruno Haible  <bruno@clisp.org>
67900
67901         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
67902         nonnull.
67903
67904 2004-03-29  Paul Eggert  <eggert@twinsun.com>
67905
67906         Merge changes to getloadavg.c from coreutils and Emacs.
67907
67908         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
67909         Define to an expression, not to the empty string.
67910         Include cloexec.h and xalloc.h.
67911         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
67912         Use set_cloexec_flag rather than rolling our own.
67913         * lib/cloexec.c, lib/cloexec.h: New files.
67914
67915 2004-03-29  Paul Eggert  <eggert@twinsun.com>
67916
67917         * m4/cloexec.m4: New file.
67918
67919 2004-03-18  Paul Eggert  <eggert@twinsun.com>
67920
67921         * lib/getopt.h: Sync with libc CVS.
67922
67923 2004-03-18  Paul Eggert  <eggert@twinsun.com>
67924             Bruno Haible  <bruno@clisp.org>
67925
67926         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
67927         mbswidth.
67928
67929 2004-03-18  Paul Eggert  <eggert@twinsun.com>
67930             Bruno Haible  <bruno@clisp.org>
67931
67932         * lib/mbswidth.h: Include <wchar.h> only if
67933         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
67934         <wchar.h>.
67935         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
67936
67937 2004-03-09  Paul Eggert  <eggert@twinsun.com>
67938
67939         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
67940         Sync with libc CVS.
67941         * lib/getopt_int.h: New file, also synced from libc.
67942
67943 2004-03-09  Paul Eggert  <eggert@twinsun.com>
67944
67945         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
67946         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
67947         Bring back getopt.c, getopt.h, getopt1.c.
67948
67949 2004-03-07  Paul Eggert  <eggert@twinsun.com>
67950
67951         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
67952         All uses changed.  Check for sa_sigaction member; this fixes
67953         a bug first reported by Jason Andrade in
67954         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
67955
67956 2004-03-07  Paul Eggert  <eggert@twinsun.com>
67957
67958         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
67959         '#if' expressions.  Unlike the code it replaces, it does not
67960         depend on (defined _SC_PAGESIZE).  However, it does depend on
67961         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
67962         first reported by Jason Andrade in
67963         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
67964
67965 2004-02-25  Simon Josefsson  <jas@extundo.com>
67966
67967         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
67968
67969 2004-02-25  Simon Josefsson  <jas@extundo.com>
67970
67971         * lib/strdup.h: New file.
67972         * lib/strdup.c: Include it.
67973         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
67974         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
67975
67976 2004-02-23  Karl Berry  <karl@gnu.org>
67977
67978         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
67979         (from fencepost.gnu.org:/gd/gnuorg).
67980
67981 2004-02-23  Karl Berry  <karl@gnu.org>
67982
67983         * config/srclistvars.sh (GNUORG) [karl]: redefine.
67984         * config/srclist.txt: add maintain/standards documents.
67985
67986 2004-02-18  Bruno Haible  <bruno@clisp.org>
67987
67988         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
67989         Reported by Derek Robert Price <derek@ximbiot.com>.
67990
67991 2004-02-16  Karl Berry  <karl@gnu.org>
67992
67993         * config/mkinstalldirs, install-sh: update from automake.
67994
67995 2004-02-06  Karl Berry  <karl@gnu.org>
67996
67997         * m4/po.m4: update from gettext 0.14.1.
67998
67999 2004-02-06  Karl Berry  <karl@gnu.org>
68000
68001         * lib/config.charset: update from gettext 0.14.1.
68002
68003 2004-02-05  Paul Eggert  <eggert@twinsun.com>
68004
68005         Add comments and code, prompted by suggestions from Bruno Haible
68006         for sh-quote.
68007         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
68008         describing the enum quoting_style values.
68009         * lib/quotearg.c (quotearg_alloc): New function.
68010         (quotearg_buffer_restyled): Treat lone { and } as special.
68011         Treat = as special.  Work around bug with older shells
68012         that "see" a '\' that is really the 2nd byte of a multibyte char.
68013         Quote empty string with shell_quoting_style.
68014
68015 2004-02-03  Bruno Haible  <bruno@clisp.org>
68016
68017         * m4/pipe.m4: New file, from GNU gettext.
68018
68019 2004-02-03  Bruno Haible  <bruno@clisp.org>
68020
68021         * lib/pipe.h: New file, from GNU gettext.
68022         * lib/pipe.c: New file, from GNU gettext.
68023
68024 2004-01-27  Bruno Haible  <bruno@clisp.org>
68025
68026         * m4/execute.m4: New file, from GNU gettext.
68027
68028 2004-01-27  Bruno Haible  <bruno@clisp.org>
68029
68030         * lib/execute.h: New file, from GNU gettext.
68031         * lib/execute.c: New file, from GNU gettext.
68032         * lib/w32spawn.h: New file, from GNU gettext.
68033
68034 2004-01-24  Paul Eggert  <eggert@twinsun.com>
68035
68036         Merge from diffutils.
68037
68038         * lib/file-type.c (file_type): Add typed memory objects.
68039         * lib/file-type.h (S_TYPEISTMO): New macro.
68040
68041         * lib/c-stack.h (c_stack_action): Remove argv argument.
68042         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
68043         (die): Don't calculate message unless segv_action returns.
68044         (get_stack_location, min_address_from_argv, max_address_from_argv,
68045         volatile stack_base, volatile_stack_size): Remove.
68046         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
68047         that every segmentation violation is a stack overflow.  (Ouch!)
68048         See Debian bug 136249 (still outstanding) for more info about why
68049         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
68050
68051 2004-01-24  Paul Eggert  <eggert@twinsun.com>
68052
68053         Exit-status fix from coreutils.
68054
68055         Use exit_failure consistently in place of EXIT_FAILURE,
68056         so that program exit statuses are consistent on failure.
68057
68058         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
68059         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
68060         * lib/argmatch.h: Comment fix to match the above.
68061         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
68062         Now a macro referring to exit_failure, instead of a separate
68063         variable.  Include "exitfail.h" to get it.
68064         * lib/xstrtol.h: Include "exitfail.h".
68065         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
68066
68067         * lib/long-options.c (parse_long_options): Use prototype
68068         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
68069         for clarity.
68070
68071 2004-01-21  Jim Meyering  <jim@meyering.net>
68072
68073         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
68074         so as not to conflict with a different-sized __mktime_internal
68075         function in GNU libc.
68076         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
68077         Problem building statically-linked `ls' reported by Michael Brunnbauer.
68078
68079 2004-01-20  Karl Berry  <karl@gnu.org>
68080
68081         * config/config.guess: update from config.
68082
68083         * config/srclistvars.sh: GNUWWWLICENSES for karl.
68084
68085 2004-01-20  Bruno Haible  <bruno@clisp.org>
68086
68087         Safer stack allocation.
68088         * lib/setenv.c: Include allocsa.h.
68089         (alloca): Remove fallback definition.
68090         (freea): Remove macro.
68091         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
68092         instead of freea.
68093
68094 2004-01-20  Bruno Haible  <bruno@clisp.org>
68095
68096         * m4/eealloc.m4: New file, from GNU gettext.
68097
68098 2004-01-20  Bruno Haible  <bruno@clisp.org>
68099
68100         * m4/allocsa.m4: New file, from GNU gettext.
68101
68102 2004-01-20  Bruno Haible  <bruno@clisp.org>
68103
68104         * lib/xallocsa.h: New file, from GNU gettext.
68105         * lib/xallocsa.c: New file, from GNU gettext.
68106
68107 2004-01-20  Bruno Haible  <bruno@clisp.org>
68108
68109         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
68110
68111 2004-01-20  Bruno Haible  <bruno@clisp.org>
68112
68113         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
68114         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
68115         specially.
68116
68117 2004-01-20  Bruno Haible  <bruno@clisp.org>
68118
68119         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
68120         patch.
68121
68122 2004-01-20  Bruno Haible  <bruno@clisp.org>
68123
68124         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
68125
68126 2004-01-20  Bruno Haible  <bruno@clisp.org>
68127
68128         * lib/eealloc.h: New file.
68129
68130 2004-01-20  Bruno Haible  <bruno@clisp.org>
68131
68132         * lib/binary-io.h: Avoid warnings on Cygwin.
68133
68134 2004-01-20  Bruno Haible  <bruno@clisp.org>
68135
68136         * lib/allocsa.h: New file, from GNU gettext.
68137         * lib/allocsa.c: New file, from GNU gettext.
68138
68139 2004-01-18  Karl Berry  <karl@gnu.org>
68140
68141         * doc/gpl.texi, doc/lgpl.texi: new files.
68142
68143 2004-01-18  Karl Berry  <karl@gnu.org>
68144
68145         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
68146         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
68147
68148 2004-01-15  Paul Eggert  <eggert@twinsun.com>
68149
68150         Merge from coreutils.
68151
68152         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
68153         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
68154         (gl_DEFAULT_POSIX2_VERSION): Move
68155         the documentation from 'configure' into 'config.hin',
68156         so that 'configure --help' isn't burdened by it and
68157         we don't have to worry about its formatting there.
68158         Reword the documentation so that it's more succinct
68159         and can be run together into a single paragraph.
68160         * m4/same.m4 (gl_SAME): Check for pathconf.
68161
68162 2004-01-15  Paul Eggert  <eggert@twinsun.com>
68163
68164         Merge from coreutils.
68165
68166         * lib/posixver.c: Include posixver.h.
68167
68168         * lib/same.c: Include <stdbool.h>, <limits.h>.
68169         (_POSIX_NAME_MAX): Define if not defined.
68170         (MIN): New macro.
68171         (same_name): If file names are silently truncated, report
68172         that the file names are the same if they are the same after
68173         the silent truncation.
68174
68175         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
68176         conversion function.
68177         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
68178         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
68179         longer needed.
68180
68181 2004-01-15  Jim Meyering  <jim@meyering.net>
68182
68183         Merge from coreutils.
68184
68185         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
68186         if no library is required.
68187         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
68188         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
68189         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
68190         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
68191         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
68192         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
68193         value, $ac_cv_search_crypt, if it's "none required".
68194         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
68195         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
68196         not gl_FUNC_GETLOADAVG.
68197         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
68198         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
68199
68200 2004-01-15  Jim Meyering  <jim@meyering.net>
68201
68202         Merge from coreutils.
68203
68204         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
68205         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
68206         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
68207
68208         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
68209         optional configure-time default.
68210
68211         * lib/version-etc.c (version_etc_copyright): Update copyright date.
68212
68213         * lib/xreadlink.c (xreadlink): Correct outdated comment.
68214
68215 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
68216
68217         Merge from coreutils.
68218
68219         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
68220         value, $ac_cv_search_nanosleep, if it's "none required".
68221
68222 2004-01-14  Paul Eggert  <eggert@twinsun.com>
68223
68224         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
68225         with like-named macro in fnmatch.c.
68226         (EXT): Use an internal constant instead.
68227
68228         Merge fnmatch patches from glibc.
68229         * lib/fnmatch.c (mbsinit): Remove define.
68230         Add libc_hidden_ver (__fnmatch, fnmatch).
68231         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
68232         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
68233
68234 2004-01-14  Karl Berry  <karl@gnu.org>
68235
68236         * config/install-sh: update from automake.
68237
68238 2004-01-13  Karl Berry  <karl@gnu.org>
68239
68240         * config/install-sh: update from automake.
68241
68242 2004-01-09  Karl Berry  <karl@gnu.org>
68243
68244         * config/install-sh: update from automake.
68245
68246 2004-01-05  Karl Berry  <karl@gnu.org>
68247
68248         * config/config.{sub,guess}: update from config.
68249
68250 2003-12-31  Karl Berry  <karl@gnu.org>
68251
68252         * config/depcomp: update from automake.
68253
68254 2003-12-14  Karl Berry  <karl@gnu.org>
68255
68256         * lib/config.charset: update from gettext-runtime.
68257
68258 2003-12-03  Paul Eggert  <eggert@twinsun.com>
68259
68260         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
68261         Bug reported by Alfred M. Szmidt.
68262
68263 2003-12-03  Bruno Haible  <bruno@clisp.org>
68264
68265         * m4/gettext.m4: Upgrade from gettext-0.13.
68266         * m4/po.m4: Upgrade from gettext-0.13.
68267         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
68268         * m4/intmax.m4: New file, from gettext-0.13.
68269         * m4/printf-posix.m4: New file, from gettext-0.13.
68270
68271 2003-11-29  Karl Berry  <karl@gnu.org>
68272
68273         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
68274
68275 2003-11-25  Paul Eggert  <eggert@twinsun.com>
68276             Bruno Haible  <bruno@clisp.org>
68277
68278         * lib/printf-parse.h: Don't include sys/types.h.
68279         (ARG_NONE): New macro.
68280         (char_directive): Change type of *arg_index fields to size_t.
68281         * lib/printf-parse.c: Don't include sys/types.h.
68282         (SSIZE_MAX): Remove macro.
68283         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
68284         Remove unnecessary overflow check.
68285         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
68286         fields.
68287
68288 2003-11-25  Bruno Haible  <bruno@clisp.org>
68289
68290         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
68291
68292 2003-11-25  Bruno Haible  <bruno@clisp.org>
68293
68294         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
68295         gt_TYPE_SSIZE_T.
68296
68297 2003-11-24  Paul Eggert  <eggert@twinsun.com>
68298
68299         * modules/alloca: Remove dependency on xalloc.
68300
68301 2003-11-24  Paul Eggert  <eggert@twinsun.com>
68302
68303         * lib/alloca.c: Remove dependency on xalloc module.
68304         (xalloc_die): Remove.
68305         (memory_full) [!defined emacs]: New macro.
68306         [!defined emacs]: Don't include xalloc.h.
68307         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
68308         address arithmetic overflows.  Change datatypes a bit to avoid
68309         unnecessary casts.
68310
68311 2003-11-22  Jim Meyering  <jim@meyering.net>
68312
68313         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
68314         s/size/size_t/.
68315
68316 2003-11-21  Karl Berry  <karl@gnu.org>
68317
68318         * config/config.{sub,guess}: update from config.
68319
68320 2003-11-18  Karl Berry  <karl@gnu.org>
68321
68322         * config/config.{sub,guess}: update from config.
68323
68324         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
68325
68326 2003-11-17  Paul Eggert  <eggert@twinsun.com>
68327
68328         * README: Mention that S+T cannot overflow if S is the size of
68329         an existing object and T is sufficiently small.
68330
68331 2003-11-17  Jim Meyering  <jim@meyering.net>
68332
68333         On systems without utime and without a utimes function capable of
68334         dealing with a NULL struct utimbuf* argument, this utime replacement
68335         could -- in unusual circumstances -- leak a file descriptor.
68336         * lib/utime.c: Include <unistd.h> and <errno.h>.
68337         (utime_null): Be sure to close `fd' and to preserve errno.
68338         Reported by Geoff Collyer via Arnold Robbins.
68339
68340 2003-11-17  Bruno Haible  <bruno@clisp.org>
68341
68342         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
68343         (Depends-on): Add xsize.
68344
68345 2003-11-17  Bruno Haible  <bruno@clisp.org>
68346
68347         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
68348
68349 2003-11-17  Bruno Haible  <bruno@clisp.org>
68350
68351         * lib/vasnprintf.c (alloca): Remove fallback definition.
68352         (freea): Remove definition.
68353         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
68354         Reported by Paul Eggert.
68355
68356 2003-11-16  Paul Eggert  <eggert@twinsun.com>
68357             Bruno Haible  <bruno@clisp.org>
68358
68359         Protect against address arithmetic overflow.
68360         * lib/printf-args.h: Include stddef.h.
68361         (arguments): Change type of field 'count' to size_t.
68362         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
68363         'unsigned int' where appropriate.
68364         * lib/printf-parse.h: Include sys/types.h.
68365         (char_directive): Change type of *arg_index fields to ssize_t.
68366         (char_directives): Change type of fields 'count', max_*_length to
68367         size_t.
68368         * lib/printf-parse.c: Include sys/types.h and xsize.h.
68369         (SSIZE_MAX): Define fallback value.
68370         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
68371         instead of 'int' where appropriate. Check a_allocated, d_allocated
68372         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
68373         * lib/vasnprintf.c: Include xsize.h.
68374         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
68375         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
68376         overflow. Avoid wraparound when converting a width or precision from
68377         decimal to binary.
68378
68379 2003-11-16  Bruno Haible  <bruno@clisp.org>
68380
68381         Update from GNU gettext.
68382         * lib/printf-parse.c: Generalize to it can be compiled for wide
68383         strings.
68384         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
68385         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
68386         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
68387         SNPRINTF): New macros.
68388         Don't include <alloca.h> if the file is used inside libintl.
68389         (local_wcslen): New function, for Solaris 2.5.1.
68390         (VASNPRINTF): Use it instead of wcslen.
68391
68392 2003-11-16  Bruno Haible  <bruno@clisp.org>
68393
68394         * lib/xsize.h (xmax): New function.
68395         (xsum, xsum3, xsum4): Declare as "pure" functions.
68396
68397 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68398
68399         * modules/xalloc (Files): Undo latest change, since xalloc.h
68400         no longer needs SIZE_MAX or PTRDIFF_MAX.
68401
68402 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68403
68404         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
68405         gl_PTRDIFF_MAX.
68406
68407 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68408
68409         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
68410         "return", to pacify some unknown compiler.  Problem reported
68411         by Joerg Schilling.
68412
68413 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68414
68415         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
68416         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
68417         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
68418         heuristic is just as accurate as far as we know, and it removes a
68419         dependency on size_max.m4 and ptrdiff_max.m4.
68420
68421 2003-11-11  Bruno Haible  <bruno@clisp.org>
68422
68423         * modules/xsize (Files): Add m4/size_max.m4.
68424         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
68425
68426 2003-11-11  Bruno Haible  <bruno@clisp.org>
68427
68428         * m4/size_max.m4: New file.
68429         * m4/ptrdiff_max.m4: New file.
68430         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
68431         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
68432         (gl_XALLOC): Invoke it.
68433
68434 2003-11-11  Bruno Haible  <bruno@clisp.org>
68435
68436         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
68437         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
68438         defined.
68439
68440 2003-11-10  Paul Eggert  <eggert@twinsun.com>
68441
68442         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
68443         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
68444         rejected some allocations of exactly SIZE_MAX - 2 bytes.
68445         From Bruno Haible.
68446         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
68447         not (size_t) -1, since it's defined here.
68448
68449 2003-11-09  Karl Berry  <karl@gnu.org>
68450
68451         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
68452
68453 2003-11-06  Paul Eggert  <eggert@twinsun.com>
68454
68455         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
68456         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
68457         Reject sizes of exactly SIZE_MAX bytes.
68458         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
68459         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
68460
68461 2003-11-05  Bruno Haible  <bruno@clisp.org>
68462
68463         * lib/xsize.h: Include limits.h, to avoid a possible collision with
68464         SIZE_MAX defined in <limits.h> on Solaris.
68465
68466 2003-11-04  Jim Meyering  <jim@meyering.net>
68467
68468         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
68469         variable names, rather than @VAR@.
68470         * modules/poll: Likewise.
68471
68472 2003-11-04  Bruno Haible  <bruno@clisp.org>
68473
68474         * modules/xsize: New file.
68475         * modules/linebreak: Depend on xsize.
68476         * MODULES.html.sh (func_all_modules): Add xsize.
68477
68478 2003-11-04  Bruno Haible  <bruno@clisp.org>
68479
68480         * m4/xsize.m4: New file.
68481
68482 2003-11-04  Bruno Haible  <bruno@clisp.org>
68483
68484         * lib/xsize.h: New file.
68485         * lib/linebreak.c: Include xsize.h.
68486         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
68487         argument for overflow.
68488         Suggested by Paul Eggert.
68489
68490 2003-11-03  Karl Berry  <karl@gnu.org>
68491
68492         * config/config.{guess,sub}: update from config.
68493
68494 2003-11-03  Jim Meyering  <jim@meyering.net>
68495
68496         * modules/userspec (lib_SOURCES): Add userspec.h.
68497         (Include): Add "userspec.h".
68498         Improve description.
68499
68500 2003-11-03  Jim Meyering  <jim@meyering.net>
68501
68502         * lib/userspec.c: Include "userspec.h".
68503         * lib/userspec.h: New file.
68504
68505 2003-11-03  Bruno Haible  <bruno@clisp.org>
68506
68507         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
68508
68509 2003-11-03  Bruno Haible  <bruno@clisp.org>
68510
68511         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
68512         available, to avoid (extremely rare) race condition.
68513         Suggested by Paul Eggert.
68514
68515 2003-11-02  Karl Berry  <karl@gnu.org>
68516
68517         * config/srclist.txt (vasprintf.c): sync broken, sigh.
68518
68519 2003-10-31  Paul Eggert  <eggert@twinsun.com>
68520
68521         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
68522         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
68523         (read_filesystem_list): Set and use me_type_malloced.
68524         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
68525         whatever the type happens to be), for brevity and consistency.
68526         Check for size calculation overflow on Alphas running OSF/1.
68527
68528 2003-10-31  Jim Meyering  <jim@meyering.net>
68529
68530         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
68531
68532         * lib/linebuffer.c: Include <string.h> for declaration of memset.
68533
68534 2003-10-30  Paul Eggert  <eggert@twinsun.com>
68535             Bruno Haible  <bruno@clisp.org>
68536
68537         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
68538         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
68539
68540 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68541
68542         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
68543         netbsd*-gnu*.  Suggested by Robert Millan.
68544
68545 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68546
68547         * modules/group-member: Depend on stdbool.
68548
68549 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68550
68551         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
68552
68553 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68554
68555         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
68556         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
68557         after the 'gnu' in these cases.  This fixes some bugs in the
68558         previous change, and is based on suggestions by Robert Millan.
68559
68560 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68561
68562         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
68563         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
68564         no longer needed.
68565         * lib/quotearg.c (quotearg_n_options): Use it.
68566         * lib/group-member.c: Include <stdbool.h>.
68567         (free_group_info): Arg is now const *; don't free arg.
68568         (get_group_info): Now returns bool and accepts struct group_info *,
68569         rather than returning a malloc'ed struct group_info *.
68570         All uses changed.  Check for overflow in internal size calculation.
68571
68572         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
68573         rather than xmalloc/xrealloc.
68574         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
68575         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
68576         conformance bug: the old code used a pointer after freeing the
68577         storage that it addressed.
68578         * lib/hash.c (hash_initialize): Simplify the code by using
68579         xalloc_oversized rather than doing it by hand.
68580         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
68581         the buffer preserved.  Use free and xmalloc instead.
68582         * lib/quotearg.c (quotearg_n_options): Likewise.
68583         Use a simpler test for size overflow.  Don't use xalloc_oversized
68584         because unsigned int might be wider than size_t (!); this suggests
68585         that we should switch from unsigned int to size_t for slot numbers.
68586
68587 2003-10-28  Paul Eggert  <eggert@twinsun.com>
68588
68589         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
68590         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
68591         NetBSD kernels.  Requested by Richard Stallman.
68592
68593 2003-10-27  Paul Eggert  <eggert@twinsun.com>
68594
68595         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
68596         to allocate the returned structure.  Do not allocate a subarray,
68597         as x2nrealloc will do that.
68598         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
68599         instead of xnrealloc.
68600         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
68601
68602 2003-10-27  Bruno Haible  <bruno@clisp.org>
68603
68604         * lib/stdbool_.h: Better support for BeOS.
68605
68606 2003-10-26  Paul Eggert  <eggert@twinsun.com>
68607
68608         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
68609         now uses inline.
68610
68611 2003-10-26  Paul Eggert  <eggert@twinsun.com>
68612
68613         * lib/xalloc.h (xalloc_oversized): New static inline function, for
68614         callers that want to do their own size-overflow checking.  Include
68615         <stdbool.h>, since xalloc_oversized returns bool.
68616         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
68617         to use xalloc_oversized.
68618
68619         Add two functions x2realloc, x2nrealloc, for programs that grow
68620         arrays dynamically by doubling their sizes.
68621         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
68622         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
68623         New functions.
68624
68625         Port to C99 semantics for 'inline' of external functions.
68626         Bug reported by Bruno Haible.
68627         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
68628         with the old contents of xnmalloc.
68629         (xnmalloc, xmalloc): Use it.
68630         (xnrealloc_inline): New static inline function,
68631         with the old contents of xnrealloc.
68632         (xnrealloc, xrealloc): Use it.
68633
68634         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
68635         that.
68636
68637 2003-10-26  Karl Berry  <karl@gnu.org>
68638
68639         * config/srclist.txt (COPYING.DOC): no longer available from
68640         /gd/gnuorg; don't know where the ultimate source is.
68641
68642 2003-10-25  Paul Eggert  <eggert@twinsun.com>
68643
68644         Fix several address-calculation bugs in the hash modules,
68645         plus some minor code cleanup.
68646
68647         * lib/hash.h: Include <stdbool.h>, for bool.
68648         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
68649         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
68650         hash_get_n_entries, hash_get_max_bucket_length,
68651         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
68652         hash_rehash): Use size_t rather than unsigned.
68653         * lib/hash.c (struct hash_table, hash_get_n_buckets,
68654         hash_get_n_buckets_used, hash_get_n_entries,
68655         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
68656         hash_get_entries, hash_do_for_each, hash_string, is_prime,
68657         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
68658         Likewise.
68659         (SIZE_MAX): Define if not defined.
68660         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
68661         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
68662         hash_print):
68663         Use const * when possible.
68664         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
68665         (check_tuning): Fix bug: if tuning parameters were very close to
68666         0 or 1, rounding errors could have caused subscript violations.
68667         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
68668         (hash_initialize): Add 'fail:' label
68669         to free table and return NULL, and use it to simplify code.
68670         Use calloc rather than clearing the storage ourself.
68671         (hash_initialize, hash_rehash): Check for arithmetic overflow in
68672         buffer size calculations.
68673         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
68674         Include <stddef.h>, for size_t.
68675         * lib/hash-pjw.c (hash_pjw): Likewise.
68676         Switch to method described by Bruno Haible.
68677         Include <limits.h>, for CHAR_BIT.
68678         (SIZE_BITS): New macro.
68679
68680 2003-10-23  Paul Eggert  <eggert@twinsun.com>
68681
68682         * m4/getline.m4 (AM_FUNC_GETLINE):
68683         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
68684         hosts.  Problem reported by Derek Robert Price in
68685         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
68686         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
68687         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
68688
68689 2003-10-21  Paul Eggert  <eggert@twinsun.com>
68690
68691         * lib/getndelim2.c (getndelim2): When size calculation overflows,
68692         ceiling the allocation at NMAX bytes rather than silently
68693         discarding input bytes before NMAX is reached.  This makes
68694         a difference only if NMAX exceeds SIZE_MAX / 2.
68695
68696         * lib/obstack.c: Merge from glibc.
68697         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
68698         Add libc_hidden_def (_obstack_newchunk).
68699         (_obstack_free) [! defined _LIBC]: Remove.
68700         [defined _LIBC]: Make a strong alias from obstack_free, rather than
68701         a clone of the function body.
68702         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
68703         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
68704
68705         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
68706         glibc.
68707         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
68708         arg to memcpy.
68709
68710         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
68711         (obstack_ptr_grow_fast, obstack_int_grow_fast):
68712         Don't use lvalue casts, as GCC plans to remove support for them
68713         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
68714         was also present in the non-GCC version, indicating that this
68715         code had always been buggy and had never been widely used.
68716         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
68717         Use the fast variant of each macro, rather than copying the
68718         definiens of the fast variant; that way, we'll be more likely to
68719         catch future bugs in the fast variants.
68720
68721 2003-10-20  Bruno Haible  <bruno@clisp.org>
68722
68723         * modules/wait-process: New file.
68724         * MODULES.html.sh (func_all_modules): Add wait-process.
68725
68726 2003-10-20  Bruno Haible  <bruno@clisp.org>
68727
68728         * m4/wait-process.m4: New file.
68729
68730 2003-10-20  Bruno Haible  <bruno@clisp.org>
68731
68732         * lib/wait-process.h: New file, from GNU gettext.
68733         * lib/wait-process.c: New file, from GNU gettext.
68734
68735 2003-10-19  Jim Meyering  <jim@meyering.net>
68736
68737         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
68738         HPUX 10.20.
68739
68740 2003-10-18  Karl Berry  <karl@gnu.org>
68741
68742         * config/config.guess: update from config.
68743
68744 2003-10-16  Paul Eggert  <eggert@twinsun.com>
68745
68746         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
68747         (getgroups): First arg is int, not size_t.
68748         Don't let 'free' mangle errno.
68749
68750 2003-10-16  Paul Eggert  <eggert@twinsun.com>
68751
68752         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
68753
68754 2003-10-16  Karl Berry  <karl@gnu.org>
68755
68756         * config/config.{guess,sub}: update from config.
68757
68758 2003-10-16  Jim Meyering  <jim@meyering.net>
68759
68760         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
68761         memcpy.
68762
68763 2003-10-15  Paul Eggert  <eggert@twinsun.com>
68764
68765         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
68766         (SIZE_MAX): Remove.
68767         (new_exclude, add_exclude_file): Initial size no longer needs to
68768         be a power of 2.
68769         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
68770         our own address arithmetic overflow checking.
68771
68772         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
68773         (fnmatch): Do not alloca more than 2000 wide characters;
68774         instead, use malloc for large buffers.
68775         Check for address arithmetic overflow, and return -1
68776         with errno set to ENOMEM in that case.
68777         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
68778         (NEW_PATTERN): Do not alloca more than 8000 bytes;
68779         instead, return -1.  Check for address arithmetic overflow.
68780
68781 2003-10-14  Paul Eggert  <eggert@twinsun.com>
68782
68783         Handle invalid suffixes and overflow independently, so that
68784         callers can treat them independently as needed.  Fix some bugs in
68785         suffix handling, e.g., "100k@" was not diagnosed as an invalid
68786         suffix for a human-readable blocksize.  The major caller-visible
68787         change is the addition of a new
68788         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
68789         that both overflow and suffix chars were found.
68790
68791         * lib/human.c (humblock): Don't check separately for invalid suffix
68792         char; that is xstrtoumax's job (now that its bug is fixed).
68793         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
68794         INTMAX_MAX]: New macros.
68795         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
68796         TYPE_MAXIMUM): New macros.
68797         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
68798         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
68799         if overflow occurs, as it's what __strtol does and it's more useful
68800         in practice.
68801         (__xstrtol): If __strtol reports some error other than ERANGE,
68802         reflect it to the caller as LONGINT_INVALID.  If it reports
68803         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
68804         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
68805         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
68806         value.
68807         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
68808         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
68809         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
68810         [defined UINTMAX_MAX]: New macros.
68811
68812 2003-10-14  Bruno Haible  <bruno@clisp.org>
68813
68814         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
68815
68816 2003-10-14  Bruno Haible  <bruno@clisp.org>
68817
68818         * m4/sig_atomic_t: New file, from GNU gettext.
68819         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
68820
68821 2003-10-14  Bruno Haible  <bruno@clisp.org>
68822
68823         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
68824         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
68825         Also use volatile where needed.
68826
68827 2003-10-12  Paul Eggert  <eggert@twinsun.com>
68828
68829         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
68830         Change maintainer from Bruno Haible to 'all'.
68831
68832 2003-10-12  Paul Eggert  <eggert@twinsun.com>
68833
68834         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
68835
68836 2003-10-12  Paul Eggert  <eggert@twinsun.com>
68837
68838         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
68839         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
68840         and define in terms of the other primitives.
68841         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
68842         (SIZE_MAX): Define if not already defined.
68843         (array_size_overflow): New function.
68844         (xalloc_die): Abort instead of exiting if 'error' returns.
68845         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
68846         (xmalloc, xrealloc): Use them.
68847         (xcalloc): Check for address arithmetic overflow.
68848         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
68849         a bit faster than strcpy.
68850
68851 2003-10-10  Simon Josefsson  <jas@extundo.com>
68852
68853         * modules/argp (Depends-on): Add restrict and strcase.
68854
68855 2003-10-10  Simon Josefsson  <jas@extundo.com>
68856
68857         * m4/argp.m4: Add AC_C_INLINE.
68858
68859 2003-10-08  Paul Eggert  <eggert@twinsun.com>
68860
68861         Merge getpass from libc, plus a few fixes.
68862
68863         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
68864         Include <stdbool.h>.
68865         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
68866         __fsetlocking to empty.
68867         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
68868         do include <bits/libc-lock.h>.
68869         Do not include <fcntl.h>; not needed.
68870         [_LIBC]: Include <wchar.h>.
68871         (NOTCANCEL_MODE): New macro.
68872         (flockfile, funlockfile) [_LIBC]: New macros.
68873         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
68874         [!_LIBC]: New macros.
68875         (call_fclose): New function.
68876         (getpass): Use it.  Save tty stream separately; this simplifies the
68877         code and makes it more reliable if stdin happens to equal stdout.
68878         Invoke __fsetlocking on tty.
68879         Handle thread cancellation if needed.
68880         Namespace cleanup (use __tcgetattr, __getline).
68881         Use bool for Booleans.
68882         [USE_IN_LIBIO]: Handle wide streams.
68883         [!_LIBC]: Unconditionally do the fseek, since we don't know what
68884         stream might go where.
68885
68886         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
68887         doesn't have to include <stdio.h> before us.
68888         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
68889         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
68890         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
68891         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
68892         if not declared, so that we can use getpass.c code from libc without
68893         rewriting it.
68894         (flockfile, ftrylockfile, funlockfile): New macros.
68895
68896 2003-10-08  Paul Eggert  <eggert@twinsun.com>
68897
68898         * modules/getpass: Depend on stdbool.
68899
68900 2003-10-08  Paul Eggert  <eggert@twinsun.com>
68901
68902         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
68903
68904 2003-10-07  Karl Berry  <karl@gnu.org>
68905
68906         * config/config.{guess,sub}: update from config.
68907
68908 2003-10-06  Jim Meyering  <jim@meyering.net>
68909             Bruno Haible  <bruno@clisp.org>
68910
68911         This lets translators provide better translations for the
68912         "Written by ..." part of --version output.
68913         * lib/version-etc.h: Include stdarg.h.
68914         (version_etc_copyright): Declare as readonly.
68915         (version_etc): Make this function variadic with a NULL-terminated list
68916         of author name strings.
68917         (version_etc_va): New declaration.
68918         * lib/version-etc.c: Include stdarg.h, stdlib.h.
68919         (version_etc_copyright): Declare as readonly.
68920         (version_etc_va): New function. Provide a different translatable string
68921         for each possible number of authors < 10. Abbreviate when there are 10
68922         authors or more.
68923         (version_etc): Make this function variadic. Call version_etc_va.
68924         Suggestion from Gary V. Vaughan.
68925
68926         * lib/long-options.h (parse_long_options): Change prototype: the
68927         authors string is moved to the end and becomes variadic.
68928         * lib/long-options.c: Include stdarg.h.
68929         (parse_long_options): Make this function variadic, too.
68930         Call version_etc_va, not version_etc.
68931
68932 2003-10-06  Bruno Haible  <bruno@clisp.org>
68933
68934         * modules/version-etc-2: Remove file.
68935         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
68936
68937 2003-10-06  Bruno Haible  <bruno@clisp.org>
68938
68939         * modules/fatal-signal: New file.
68940         * MODULES.html.sh (func_all_modules): Add fatal-signal.
68941
68942 2003-10-06  Bruno Haible  <bruno@clisp.org>
68943
68944         * m4/fatal-signal.m4: New file.
68945         * m4/signalblocking.m4: New file, from GNU gettext.
68946
68947 2003-10-06  Bruno Haible  <bruno@clisp.org>
68948
68949         * lib/version-etc-2.h: Remove file.
68950         * lib/version-etc-2.c: Remove file.
68951
68952 2003-10-06  Bruno Haible  <bruno@clisp.org>
68953
68954         * lib/fatal-signal.h: New file, from GNU gettext.
68955         * lib/fatal-signal.c: New file, from GNU gettext.
68956
68957 2003-10-05  Paul Eggert  <eggert@twinsun.com>
68958
68959         * README: Rework advice for preventing empty .o files.
68960         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
68961         not <sys/types.h>.
68962
68963 2003-10-04  Karl Berry  <karl@gnu.org>
68964
68965         * lib/argp*: update from libc.
68966
68967 2003-10-04  Karl Berry  <karl@gnu.org>
68968
68969         * config/config.{guess,sub}: update from config.
68970
68971 2003-10-02  Bruno Haible  <bruno@clisp.org>
68972
68973         * modules/lchown (Include): Add lchown.h.
68974         * modules/time_r (Include): Use "..." syntax.
68975         * modules/xgetdomainname (Include): Add xgetdomainname.h.
68976
68977 2003-10-01  Simon Josefsson  <jas@extundo.com>
68978
68979         * MODULES.html.sh (func_all_modules): Move gethostname from section
68980         'based on' to section 'lacking' POSIX:2001.
68981
68982 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
68983
68984         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
68985         to output mode on the same stream.
68986
68987 2003-09-29  Paul Eggert  <eggert@twinsun.com>
68988
68989         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
68990         Fix arg typo in previous patch.
68991
68992 2003-09-28  Jim Meyering  <jim@meyering.net>
68993
68994         * lib/error.c: Correct cpp indentation.
68995
68996 2003-09-27  Paul Eggert  <eggert@twinsun.com>
68997
68998         * modules/free: New file.
68999
69000 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69001
69002         * m4/free.m4: New file.
69003
69004 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69005
69006         * lib/minmax.h (MIN, MAX)
69007         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
69008         Omit the special code that used __typeof__, since we worry that
69009         it could be more trouble than it's worth.  See:
69010         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
69011         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
69012
69013         * lib/free.c: New file.
69014
69015 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
69016
69017         Trivial fixes to Makefile.am parts of module listings.
69018         * modules/strstr: Append strstr.h to lib_SOURCES.
69019         * modules/strcase: Likewise, for strcase.h.
69020
69021 2003-09-27  Karl Berry  <karl@gnu.org>
69022
69023         * config/mkinstalldirs: update from automake.
69024
69025 2003-09-26  Paul Eggert  <eggert@twinsun.com>
69026
69027         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
69028         (error_tail): Do not loop, reallocating temporary buffer, since
69029         the output cannot contain more wide characters than the input
69030         contains bytes, the size must be big enough already.  This avoids
69031         one potential size overflow calculation.  Check for size overflow
69032         when calculating temporary buffer size.  Free temporary buffer
69033         when done, if it was allocated with malloc; this plugs a memory
69034         leak.  Remove casts from void * to pointers, that are no longer
69035         needed now that we're assuming C89 or better.
69036
69037         Merge error changes from glibc.
69038
69039         * lib/error.c, error.h: Update copyright notice header to match glibc.
69040         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
69041         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
69042         Disable cancellation while printing error.
69043         * lib/error.h: Prepend __ to parameter names.
69044
69045 2003-09-26  Jim Meyering  <jim@meyering.net>
69046
69047         * lib/error.c (error_tail): Move some declarations
69048         into inner scope where the local variables are used.
69049
69050 2003-09-26  Bruno Haible  <bruno@clisp.org>
69051
69052         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
69053         stpncpy().
69054         Don't define stpncpy through config.h; it's now done through stpncpy.h.
69055
69056 2003-09-26  Bruno Haible  <bruno@clisp.org>
69057
69058         * lib/stpncpy.h (gnu_stpncpy): New declaration.
69059         (stpncpy): Define as alias for gnu_stpncpy.
69060         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
69061
69062 2003-09-25  Simon Josefsson  <jas@extundo.com>
69063
69064         * lib/xgetdomainname.h: New file.
69065         * lib/xgetdomainname.c: New file.
69066
69067 2003-09-25  Simon Josefsson  <jas@extundo.com>
69068             Bruno Haible  <bruno@clisp.org>
69069
69070         * modules/getdomainname: New file.
69071         * modules/xgetdomainname: New file.
69072         * MODULES.html.sh (func_all_modules): Add getdomainname,
69073         xgetdomainname.
69074
69075 2003-09-25  Simon Josefsson  <jas@extundo.com>
69076             Bruno Haible  <bruno@clisp.org>
69077
69078         * m4/getdomainname.m4: New file.
69079
69080 2003-09-25  Simon Josefsson  <jas@extundo.com>
69081             Bruno Haible  <bruno@clisp.org>
69082
69083         * lib/getdomainname.h: New file.
69084         * lib/getdomainname.c: New file.
69085
69086 2003-09-25  Karl Berry  <karl@gnu.org>
69087
69088         * lib/argp-fmtstream.c, argp-help.c: update from libc.
69089
69090 2003-09-25  Karl Berry  <karl@gnu.org>
69091
69092         * config/install-sh: update from automake.
69093
69094 2003-09-25  Bruno Haible  <bruno@clisp.org>
69095
69096         * modules/version-etc-2: New file, from modules/version-etc with
69097         modifications.
69098         * MODULES.html.sh (func_all_modules): Add version-etc-2.
69099
69100 2003-09-25  Bruno Haible  <bruno@clisp.org>
69101
69102         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
69103         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
69104
69105 2003-09-24  Simon Josefsson  <jas@extundo.com>
69106
69107         * modules/xgethostname: Add xgethostname.h.
69108
69109 2003-09-24  Paul Eggert  <eggert@twinsun.com>
69110
69111         * lib/linebuffer.c (freebuffer): Don't free the argument, just
69112         the buffer associated with the argument.  Bug reported by
69113         Simon Josefsson.
69114
69115 2003-09-24  Paul Eggert  <eggert@twinsun.com>
69116
69117         * README: Document assumptions that 'int' is at least 32 bits
69118         wide, that integer arithmetic is 2's complement without overflow,
69119         that there are no holes in integer values, that adding sizes of
69120         two nonoverlapping objects can't overflow, and that all-bits-zero
69121         yields scalar zero.  Fix spelling and capitalization typos.
69122
69123 2003-09-19  Karl Berry  <karl@gnu.org>
69124
69125         * lib/argp.h: update from libc.
69126
69127 2003-09-17  Paul Eggert  <eggert@twinsun.com>
69128
69129         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
69130         to avoid spurious warnings like "AC_RUN_IFELSE was called before
69131         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
69132
69133 2003-09-17  Paul Eggert  <eggert@twinsun.com>
69134
69135         * gnulib-tool: Use "test -h", not "test -L", for portability
69136         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
69137         (tags_regexp): Remove, since \| doesn't conform to POSIX.
69138         (sed_extract_prog): Issue s commands one-by-one, rather than
69139         using \| in one s command.
69140
69141 2003-09-16  Paul Eggert  <eggert@twinsun.com>
69142
69143         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
69144         input error, instead of returning NULL the next time we are called
69145         (and therefore losing track of errno).
69146
69147 2003-09-16  Bruno Haible  <bruno@clisp.org>
69148
69149         * gnulib-tool (func_create_testdir): Warn about duplicated
69150         dependencies.
69151
69152 2003-09-15  Paul Eggert  <eggert@twinsun.com>
69153
69154         * modules/argmatch, modules/fatal, modules/obstack,
69155         modules/xalloc, modules/xgethostname: Sort dependencies by
69156         importance, not alphabetically.
69157
69158 2003-09-15  Paul Eggert  <eggert@twinsun.com>
69159
69160         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
69161         fails, so that the caller gets the proper errno.
69162
69163         * lib/readutmp.c (read_utmp): Likewise.
69164         Check for fstat error.  Close stream and free storage
69165         when failing.
69166
69167 2003-09-14  Karl Berry  <karl@gnu.org>
69168
69169         * config/srclist.txt (strdup.c): disable for c89 changes.
69170
69171 2003-09-14  Jim Meyering  <jim@meyering.net>
69172
69173         * lib/getloadavg.c: Correct cpp indentation.
69174         * lib/strdup.c: Likewise.
69175         * lib/vasnprintf.c: Likewise.
69176
69177 2003-09-14  Bruno Haible  <bruno@clisp.org>
69178
69179         * modules/fwriteerror: New file.
69180         * MODULES.html.sh (func_all_modules): Add fwriteerror.
69181
69182 2003-09-14  Bruno Haible  <bruno@clisp.org>
69183
69184         * lib/fwriteerror.h: New file.
69185         * lib/fwriteerror.c: New file.
69186
69187 2003-09-12  Paul Eggert  <eggert@twinsun.com>
69188
69189         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
69190         modules/xgethostname, modules/xalloc: Depend on exit.
69191
69192 2003-09-12  Paul Eggert  <eggert@twinsun.com>
69193
69194         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
69195
69196         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
69197         and AC_MINIX, too, so that their extensions are available.
69198
69199         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
69200         This macro has been superseded by gl_BACKUPFILE.
69201
69202         More patches to assume C89 or better.
69203
69204         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
69205
69206         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
69207         unconditionally.
69208         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
69209         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
69210         Include <string.h>, <stdlib.h> unconditionally.
69211         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
69212         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
69213         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
69214         headers or for string.h.
69215         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
69216         or strtoul.
69217
69218         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
69219         headers.
69220         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
69221         * m4/userspec.m4 (gl_USERSPEC): Likewise.
69222         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
69223         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
69224         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69225         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
69226         memcpy, memset.
69227         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
69228         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
69229         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
69230         strtol.
69231         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
69232         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
69233         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
69234         strtoul.
69235
69236 2003-09-12  Paul Eggert  <eggert@twinsun.com>
69237
69238         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
69239         * lib/obstack.c [!defined _LIBC]: Likewise.
69240         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
69241         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
69242         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
69243
69244         More changes to assume C89 or better.
69245
69246         * lib/error.c (error_tail): Assume vprintf.
69247
69248         * lib/argmatch.c (getenv): Remove decl.
69249         * lib/progreloc.c (get_full_program_name): Define via prototype.
69250         * lib/setenv.c (clearenv): Likewise.
69251         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
69252         needed.
69253         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
69254         (malloc, memcpy): Remove decls.
69255         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
69256         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
69257         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
69258         (memcpy): Remove macro.
69259         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
69260         (__P): Remove.  All uses removed.
69261         (PTR): Remove.  All uses changed to void *.
69262         (CHAR_BIT, NULL): Remove.
69263         (spaces, zeros, memset_space, memset_zero)
69264         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
69265         Remove.
69266         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
69267         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
69268         Define with prototype.
69269         Remove now-unnecessary prototype decl.
69270         (extra_args_spec): Assume ANSI C.  All uses changed.
69271         (extra_args_spec_iso): Remove.
69272         (my_strftime, emacs_strftimeu): Define via prototype.
69273         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
69274         unconditionally.
69275         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
69276         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
69277         (strtoul, strtol): Remove decls.
69278         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
69279         LONG_MAX): Remove.
69280         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
69281         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
69282         (LOCALE_PARAM_PROTO): New macro.
69283         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
69284         (INTERNAL (strtol), strtol): Define with a prototype.
69285         (PARAMS): Remove.  All uses removed.
69286         * lib/tempname.c: Include <string.h> unconditionally.
69287         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
69288         * lib/xgethostname.c (main): Define with a prototype.
69289         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
69290         Include <stdlib.h> unconditionally.
69291         (calloc, malloc, realloc, free): Remove decls.
69292         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
69293         Include <stdlib.h> unconditionally.  Sort include file names.
69294         (strtod): Remove.
69295         (xstrtod): Define with a prototype.
69296         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
69297         (strtol, strtoul): Remove decls.
69298
69299 2003-09-11  Paul Eggert  <eggert@twinsun.com>
69300
69301         More patches to assume C89 or better.
69302         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
69303         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
69304         string.h, memchr, STDC_HEADERS.
69305
69306 2003-09-11  Paul Eggert  <eggert@twinsun.com>
69307
69308         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
69309         Include <stdlib.h>, <string.h> unconditionally.
69310         Remove now-unnecessary cast to char *.
69311         * lib/strnlen.c: Include <string.h> unconditionally.
69312         * lib/yesno.c (yesno): Define with a prototype.
69313
69314 2003-09-11  Bruno Haible  <bruno@clisp.org>
69315
69316         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
69317
69318 2003-09-10  Jim Meyering  <jim@meyering.net>
69319
69320         * lib/error.c: Correct indentation of cpp directives.
69321
69322 2003-09-10  Bruno Haible  <bruno@clisp.org>
69323
69324         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
69325         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
69326         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
69327         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
69328         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
69329         <stdlib.h> and <string.h> checks.
69330         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
69331         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
69332
69333 2003-09-10  Bruno Haible  <bruno@clisp.org>
69334
69335         * lib/strcspn.c: Include <string.h> unconditionally.
69336         * lib/strpbrk.c: Include <string.h> unconditionally.
69337         * lib/strstr.c: Include <string.h> unconditionally.
69338         * lib/unicodeio.c: Include <string.h> unconditionally.
69339         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
69340         * lib/unsetenv.c: Likewise.
69341         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
69342         * lib/yesno.c: Include <stdlib.h> unconditionally.
69343         (rpmatch): Add prototype.
69344
69345 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69346
69347         More patches to assume C89 or better.
69348         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
69349         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
69350         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
69351         or for string.h.
69352         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
69353         stdlib.h.
69354         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
69355         C headers.
69356         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
69357         string.h.
69358         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
69359         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
69360         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
69361         or for string.h.
69362         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
69363         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
69364         C headers.
69365         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
69366         memcpy.
69367         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
69368         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
69369         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
69370         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
69371         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
69372         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
69373         string.h, free.
69374         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
69375         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
69376         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
69377         C headers, or for string.h.
69378         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
69379         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
69380         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
69381         headers, memory.h, stdlib.h, string.h, strings.h.
69382         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
69383         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
69384         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
69385         strchr.
69386         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
69387         headers, memory.h, string.h.
69388         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
69389         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
69390         free.
69391         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
69392         headers.
69393         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
69394         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
69395         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
69396         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
69397         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
69398
69399 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69400
69401         More K&R removal.
69402
69403         * lib/acosl.c (main): Use a prototype.
69404         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
69405         tanl.c: Likewise.
69406
69407         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
69408
69409         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
69410         (getopt, etopt_long, getopt_long_only, _getopt_internal)
69411         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
69412         with a prototype.
69413         * lib/getopt.c (const): Remove macro.
69414         Include <string.h> unconditionally.
69415         (my_index): Remove; all uses changed to strchr.
69416         (strlen): Remove decl.
69417         (exchange): Remove forward decl; no longer needed.
69418         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
69419         Define with prototype.
69420         * lib/getopt1.c (const): Remove macro.
69421         (getopt_long, getopt_long_only, main): Define with prototype.
69422
69423         * lib/getugroups.c: Include <string.h> unconditionally.
69424
69425         * lib/getusershell.c: Include <stdlib.h> unconditionally.
69426         (getusershell, setusershell, endusershell, readname, main):
69427         Define with prototypes.
69428
69429         * lib/group-member.c: Include group-member.h first.
69430         Include <stdlib.h> unconditionally.
69431
69432         * lib/hard-locale.c: Include hard-locale.h first.
69433         Include <stdlib.h>, <string.h> unconditionally.
69434
69435         * lib/hash.c (free, malloc): Remove decls.
69436         Include <stdlib.h> unconditionally.
69437
69438         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
69439         (getenv): Do not declare.
69440
69441         * lib/idcache.c: Include <string.h> unconditionally.
69442
69443         * lib/long-options.c: Include long-options.h first, to test interface.
69444         Include <stdlib.h> unconditionally.
69445
69446         * lib/makepath.c: Include makepath.h first, to test interface.
69447         Include <stdlib.h> and <string.h> unconditionally.
69448
69449         * lib/linebuffer.c: Include <stdlib.h>.
69450         (free): Remove decl.
69451
69452         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
69453         stddef.h. rpl_malloc returns void *, not char *.
69454         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
69455         prototype.
69456
69457         * lib/md5.h: Include <limits.h> unconditionally.
69458         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
69459         (__P): Remove; all uses removed.
69460         * lib/md5.c: Include "md5.h" first.
69461         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
69462         md5_buffer, md5_process_bytes, md5_process_block):
69463         Define with prototypes.
69464         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
69465         * lib/sha.c: Include "sha.h" first.
69466         Include <stdlib.h>, <string.h> unconditionally.
69467
69468         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
69469         * lib/memcmp.c (__ptr_t): Likewise.
69470         * lib/memrchr.c (__ptr_t): Likewise.
69471         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
69472         Include <string.h> unconditionally.
69473         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
69474         * lib/memchr.c: Include <stdlib.h> unconditionally.
69475         * lib/memchr.c (LONG_MAX): Remove.
69476         * lib/memrchr.c (LONG_MAX): Likewise.
69477         * lib/memchr.c (__memchr): Define via a prototype.
69478         * lib/memrchr.c (__memrchr): Likewise.
69479         * lib/memcmp.c (__P): Remove, and remove all uses.
69480         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
69481         Remove forward decls; no longer needed.
69482         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
69483         Use types required by C89 in prototype.
69484
69485         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
69486         * lib/savedir.c: Likewise.
69487         * lib/mkdir.c (free): Remove decl.
69488         * lib/rmdir.c (rmdir): Define with a prototype.
69489         * lib/savedir.c: Include savedir.h first, to test interface.
69490
69491         * lib/mktime.c (STDC_HEADERS): Remove.
69492         Include <stdlib.h>, <string.h> unconditionally.
69493
69494         * lib/modechange.c: Include <stdlib.h> unconditionally.
69495         (malloc): Remove decl.
69496
69497         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
69498         (free): Remove decl.
69499
69500         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
69501         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
69502         (This type really should be intptr_t, but that's a C99ism.)
69503         (_obstack_memcpy): Remove: all uses changed to memcpy.
69504         Include <string.h> unconditionally.
69505         (struct obstack): Assume __STDC__ for types of members
69506         chunkfun, freefun, extra_arg.
69507         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
69508         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
69509         obstack_begin, obstack_specify_allocation,
69510         obstack_specify_allocation_with_arg, obstack_chunkfun,
69511         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
69512         Remove unprototyped decls and the macros that use them.
69513         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
69514         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
69515         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
69516         (defined __STDC__ && __STDC__)]:
69517         Remove nonprototyped code.
69518         Include <stdlib.h> unconditionally.
69519         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
69520         _obstack_allocated_p, _obstack_free, obstack_free,
69521         _obstack_memory_used, print_and_abort):
69522         Define using prototypes.
69523         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
69524         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
69525         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
69526         obstack_next_free, obstack_object_size, obstack_room) [0]:
69527         Remove unused, unprototyped code.
69528
69529         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
69530
69531         * lib/physmem.c (physmem_total, physmem_available, main): Define
69532         with prototypes.
69533
69534         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
69535         (main): Define with a prototype.
69536
69537         * lib/posixver.c (getenv): Remove decl.
69538
69539         * lib/putenv.c (malloc): Returns void *, not char *.
69540         Include <string.h> unconditionally.
69541         (strchr, memcpy, NULL): Do not define.
69542
69543         * lib/readtokens.c: Include readtokens.h first, to test interface.
69544         Include <stdlib.h>, <string.h> unconditionally.
69545         (init_tokenbuffer): Define with a prototype.
69546
69547         * lib/regex.c (PARAMS): Remove.  All uses removed.
69548         All uses of _RE_ARGS removed, too.
69549         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
69550         unconditionally.
69551         (bzero): Assume memset exists.
69552         (memcmp, memcpy, NULL): Remove.
69553         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
69554         char, or assignments to local vars of type signed char.
69555         (init_syntax_once, PREFIX(extract_number_and_incr),
69556         PREFIX(print_partial_compiled_pattern),
69557         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
69558         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
69559         PREFIX(regex_grow_registers), PREFIX(regex_compile),
69560         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
69561         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
69562         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
69563         wcs_compile_range, byte_compile_range, truncate_wchar,
69564         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
69565         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
69566         count_mbs_length, wcs_re_match_2_internal,
69567         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
69568         PREFIX(alt_match_null_string_p),
69569         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
69570         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
69571         regfree, PREFIX(extract_number)): Define with prototype.  Remove
69572         now-unnecessary declaration, if any.
69573         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
69574         regcomp, regexec):
69575         Remove now-unnecessary casts among pointer types.
69576         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
69577
69578         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
69579         (free): Remove decl.
69580
69581         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
69582
69583         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
69584         (free): Remove decl.
69585
69586         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
69587         * lib/xgetcwd.c: Likewise.
69588
69589         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
69590         (free): Remove decl.
69591
69592         * lib/strchrnul.c (strchrnul): Define with a prototype.
69593         Fix bug: c_in was not converted to char before searching.
69594
69595         The following changes are not K&R related:
69596
69597         * lib/group-member.h: Include <sys/types.h>, so that this file is
69598         self-contained.
69599         * lib/makepath.h: Likewise.
69600
69601         * lib/getusershell.c (readname, default_index, line_size, readname):
69602         Use size_t, not int, for sizes.
69603         (readname): If the size overflows, report an error instead of
69604         looping forever.
69605
69606 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69607
69608         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
69609         libc.
69610
69611 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69612
69613         * README: New section: portability guidelines.
69614
69615 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
69616
69617         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
69618         C89 spec.
69619
69620 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
69621
69622         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
69623
69624 2003-09-08  Paul Eggert  <eggert@twinsun.com>
69625
69626         Assume C89 or better; remove K&R cruft.
69627         A few of these changes were first proposed by Derek Robert Price
69628         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
69629
69630         * lib/addext.c: Include <string.h> unconditionally.
69631         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
69632         Don't declare getenv or malloc.
69633
69634         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
69635         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
69636         (NULL): Remove.
69637         (find_stack_direction, alloca): Use prototypes.
69638
69639         * lib/atexit.c (atexit): Define using a prototype.
69640
69641         * lib/basename.c, dirname.c, stripslash.c:
69642         Include <string.h> unconditionally.
69643
69644         * lib/bcopy.c: Include <stddef.h>.
69645         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
69646
69647         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
69648
69649         * lib/error.h (error, error_at_line, error_print_progname)
69650         [! (defined (__STDC__) && __STDC__)]: Remove decls.
69651         * lib/error.c: Include error.h first, to check interface.
69652         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
69653         (VA_START): Remove; all uses changeed to va_start.
69654         (exit, strerror): Remove decls.
69655         (error_print_progname): Prototype uncondionally.
69656         Don't include <errno.h>; no longer needed.
69657         (private_strerror): Remove.
69658         (error_tail): Always define.
69659         (error, error_at_line): Assume C89 or better; always use prototypes.
69660         * lib/fatal.c: Include "fatal.h" first, to test interface.
69661         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
69662         (VA_START): Remove; all uses changed to va_start.
69663         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
69664         this case.
69665         (exit): Remove decl.
69666         (fatal): Prototype unconditionally.  Assume va_start works.
69667         Abort at end, to pacify gcc.
69668
69669         * lib/euidaccess.c (main): Define with a prototype.
69670
69671         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
69672
69673         * lib/exitfail.c: Include <stdlib.h> unconditionally.
69674
69675         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
69676         prototypes.
69677         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
69678         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
69679         (getenv): Remove decl.
69680         (fnmatch): Define using a prototype.
69681         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
69682         (FCT): Define using a prototype.
69683
69684         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
69685
69686         * lib/gethostname.c: Include <stddef.h>.
69687         (gethostname): Define with prototype.  Length is size_t, not int.
69688
69689 2003-09-08  Paul Eggert  <eggert@twinsun.com>
69690
69691         Assume C89 or better; remove K&R cruft.
69692         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
69693         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
69694         string.h, getenv, malloc.
69695         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
69696         headers.
69697         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
69698         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
69699         do not check for strerror.
69700         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
69701         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
69702         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
69703         do not check for doprnt or vprintf.
69704         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
69705         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
69706
69707 2003-09-08  Paul Eggert  <eggert@twinsun.com>
69708
69709         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
69710         getversion.c should have been removed then, but was accidentally
69711         preserved.
69712
69713         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
69714         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
69715
69716 2003-09-08  Karl Berry  <karl@gnu.org>
69717
69718         * config/config.sub, config.guess, srclistvars.sh: update from savannah
69719                 config, forget about prep.
69720
69721         * config/depcomp, missing: update from automake.
69722
69723 2003-09-07  Paul Eggert  <eggert@twinsun.com>
69724
69725         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
69726         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
69727
69728 2003-09-07  Paul Eggert  <eggert@twinsun.com>
69729
69730         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
69731         copy_tm_result.  Bug reported by Simon Josefsson in
69732         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
69733
69734 2003-09-06  Paul Eggert  <eggert@twinsun.com>
69735
69736         * m4/time_r.m4: New file.
69737         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
69738         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
69739         is. Check for timegm declaration.
69740         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
69741         Do not check for gmtime_r.
69742         Replace mktime if __mktime_internal does not exist and if mktime
69743         hasn't been replaced already.
69744
69745 2003-09-06  Paul Eggert  <eggert@twinsun.com>
69746
69747         * lib/time_r.c, lib/time_r.h: New files.
69748
69749         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
69750         __localtime_r.
69751         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
69752         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
69753
69754         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
69755         __gmtime_r.
69756         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
69757         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
69758         Include <time_r.h>.
69759
69760         * lib/timegm.c: Switch to glibc implementation, with the following
69761         changes:
69762         [defined HAVE_CONFIG_H]: Include <config.h>.
69763         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
69764         (__mktime_internal) [!defined _LIBC]: New decl.
69765         (__gmtime_r) [!defined _LIBC]: New macro and function.
69766         (timegm): Use a prototype, since gnulib assumes C89.
69767         Do not bother declaring tmp to be const, as it's not really usefu.
69768         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
69769         (timegm): Declare only if HAVE_DECL_TIMEGM.
69770
69771 2003-09-06  Paul Eggert  <eggert@twinsun.com>
69772
69773         * MODULES.html.sh (func_all_modules): Add time_r.
69774         * modules/time_r: New file.
69775         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
69776         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
69777
69778 2003-09-03  Paul Eggert  <eggert@twinsun.com>
69779
69780         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
69781         Bug reported by Lute Kamstra in
69782         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
69783
69784         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
69785         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
69786         course with correspondingly smaller numbers for tomorrow and
69787         yesterday.  From Tadayoshi Funaba.  Originally installed into
69788         sh-utils on 1999-08-07, but the patch got lost (I guess during the
69789         coreutils merge?).
69790
69791 2003-08-31  Simon Josefsson  <jas@extundo.com>
69792
69793         * modules/timegm: New file.
69794         * MODULES.html.sh (func_all_modules): Add timegm.
69795
69796 2003-08-31  Simon Josefsson  <jas@extundo.com>
69797
69798         * m4/timegm.m4: New file.
69799
69800 2003-08-31  Simon Josefsson  <jas@extundo.com>
69801
69802         * lib/timegm.h: New file.
69803         * lib/timegm.c: New file.  Based on
69804         wget-1.8.2/src/http.c:mktime_from_utc.
69805
69806 2003-08-31  Karl Berry  <karl@gnu.org>
69807
69808         * lib/argp.h: update from libc.
69809
69810 2003-08-28  Bruno Haible  <bruno@clisp.org>
69811
69812         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
69813         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
69814         followed by '#define fnmatch fnmatch_posix' gives an error.
69815
69816 2003-08-28  Bruno Haible  <bruno@clisp.org>
69817
69818         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
69819         warning on QNX, which defines O_BINARY to 000000.
69820
69821 2003-08-27  Jim Meyering  <jim@meyering.net>
69822
69823         * m4/mkstemp.m4: Require that the system mkstemp be able to create
69824         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
69825         would fail after 32.  Reported by Danny Levinson.  Details here:
69826         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
69827
69828 2003-08-24  Bruno Haible  <bruno@clisp.org>
69829
69830         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
69831         MSVC7 <stdio.h> is included later.
69832
69833 2003-08-22  Simon Josefsson  <jas@extundo.com>
69834
69835         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
69836
69837 2003-08-20  Karl Berry  <karl@gnu.org>
69838
69839         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
69840
69841 2003-08-20  Bruno Haible  <bruno@clisp.org>
69842
69843         * modules/progname: New file.
69844         * MODULES.html.sh (func_all_modules): Add progname.
69845
69846 2003-08-20  Bruno Haible  <bruno@clisp.org>
69847
69848         * lib/progname.h: New file, from GNU gettext.
69849         * lib/progname.c: New file, from GNU gettext.
69850         * lib/progreloc.c: New file, from GNU gettext.
69851
69852 2003-08-19  Jim Meyering  <jim@meyering.net>
69853
69854         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
69855         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
69856
69857 2003-08-19  Bruno Haible  <bruno@clisp.org>
69858
69859         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
69860         more.
69861
69862 2003-08-19  Bruno Haible  <bruno@clisp.org>
69863
69864         * lib/xstrdup.c: Assume <string.h> exists.
69865
69866 2003-08-18  Paul Eggert  <eggert@twinsun.com>
69867
69868         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
69869         in makefile rules.
69870
69871 2003-08-18  Jim Meyering  <jim@meyering.net>
69872
69873         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
69874         * m4/lib-ld.m4: Likewise.
69875
69876 2003-08-18  Jim Meyering  <jim@meyering.net>
69877
69878         * lib/setenv.h: Indent nested cpp directive.
69879         * lib/vasnprintf.c: Remove trailing blanks.
69880
69881 2003-08-17  Simon Josefsson  <jas@extundo.com>
69882
69883         * modules/xstrndup: New file.
69884         * MODULES.html.sh (func_all_modules): Add xstrndup.
69885
69886 2003-08-17  Simon Josefsson  <jas@extundo.com>
69887
69888         * modules/argp: Fix autoconf macro name. Add more dependencies.
69889
69890 2003-08-17  Simon Josefsson  <jas@extundo.com>
69891
69892         * m4/xstrndup.m4: New file.
69893
69894 2003-08-17  Simon Josefsson  <jas@extundo.com>
69895
69896         * m4/argp.m4: New file.
69897
69898 2003-08-17  Simon Josefsson  <jas@extundo.com>
69899             Bruno Haible  <bruno@clisp.org>
69900
69901         * lib/xstrndup.h: New file.
69902         * lib/xstrndup.c: New file.
69903
69904 2003-08-17  Bruno Haible  <bruno@clisp.org>
69905
69906         * modules/strndup (Files, Include): Add lib/strndup.h.
69907
69908 2003-08-17  Bruno Haible  <bruno@clisp.org>
69909
69910         * modules/euidaccess (Files): Add lib/euidaccess.h.
69911
69912 2003-08-17  Bruno Haible  <bruno@clisp.org>
69913
69914         * lib/strndup.h: New file.
69915
69916 2003-08-17  Bruno Haible  <bruno@clisp.org>
69917
69918         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
69919         like AC_GNU_SOURCE.
69920         * modules/extensions (configure.ac): Comment out the invocation of
69921         gl_USE_SYSTEM_EXTENSIONS.
69922
69923 2003-08-16  Paul Eggert  <eggert@twinsun.com>
69924
69925         Merges from coreutils, etc.
69926         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
69927         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
69928         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
69929         fixing a typo.
69930         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
69931         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
69932
69933 2003-08-16  Paul Eggert  <eggert@twinsun.com>
69934
69935         Document merge from coreutils.
69936         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
69937         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
69938         * modules/utime: Add m4/utimes-null.m4.
69939
69940 2003-08-16  Paul Eggert  <eggert@twinsun.com>
69941
69942         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
69943         space, undoing this 2003-08-12 change:
69944         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
69945
69946 2003-08-16  Paul Eggert  <eggert@twinsun.com>
69947
69948         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
69949         strtoul.c from libc, undoing this 2003-08-12 change:
69950         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
69951
69952 2003-08-16  Jim Meyering  <jim@meyering.net>
69953
69954         Merges from coreutils.
69955         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
69956         prefix.  Adjust cache variables similarly.  Create 500 rather than
69957         just 300 files, to exercise bug on Darwin6.5, too.
69958         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
69959         $missing_dir.
69960         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
69961         AM_SYS_POSIX_TERMIOS.
69962         Reported by mkc@mathdogs.com.
69963         Also change use of $am_cv_sys_posix_termios
69964         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
69965         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
69966         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
69967         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
69968         in /proc/mounts until it finds one with matching device number.  This
69969         is unnecessary when the FILE argument *is* a mount point.  No stat call
69970         is necessary in that case.  So, disable the statvfs-testing code on
69971         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
69972         as RedHat bug# 84846.
69973         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
69974         to 1MB, so as not to render systems with no stack size limit (e.g.,
69975         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
69976         Include <unistd.h>.  On some systems,
69977         it is required for the definition of _SC_PAGESIZE.
69978
69979 2003-08-16  Jim Meyering  <jim@meyering.net>
69980
69981         Merge from coreutils.
69982         * lib/xstrtoimax.c: #else #if -> #elif.
69983         * lib/xstrtoumax.c: Likewise.
69984
69985 2003-08-16  Jim Meyering  <jim@meyering.net>
69986
69987         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
69988         * m4/utimes.m4: Removed.
69989         * m4/utimes-null.m4: Renamed from utimes.m4.
69990
69991         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
69992         to 1MB, so as not to render systems with no stack size limit (e.g.,
69993         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
69994         Include <unistd.h>.  On some systems,
69995         it is required for the definition of _SC_PAGESIZE.
69996
69997 2003-08-16  Jim Meyering  <jim@meyering.net>
69998         and Paul Eggert  <eggert@cs.ucla.edu>
69999
70000         Merges from coreutils, etc.
70001
70002         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
70003         using the latest version from cvs.  This avoids problems with #line
70004         directives using a vendor (Sun) compiler.
70005         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
70006         Don't set GETGROUPS_LIB here; now it's
70007         done via getgroups.m4's wrapper function.
70008         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
70009         rather than just in sh-util/configure.in, so that the
70010         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
70011         same.
70012         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
70013         AC_FUNC_GETLOADAVG where to find getloadavg.c.
70014         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
70015         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
70016         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
70017         Remove code that is now done by the newly-required macros.
70018         Append $(EXEEXT) to DF_PROG.
70019         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
70020         Do not invoke or require the following here,
70021         since prereq.m4 or some gnulib .m4 now does this for us:
70022         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
70023         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
70024         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
70025         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
70026         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
70027         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
70028         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
70029         AC_FUNC_OBSTACK.
70030         Do not replace the following functions, as this is now the job
70031         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
70032         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
70033         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
70034         atexit getpass, strdup, getpagesize.
70035         Replace 'raise'.
70036         Do not check for the following functions, as this is now the job
70037         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
70038         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
70039         setregid.
70040         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
70041         Check for sys/sysctl.h.
70042         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
70043         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
70044         of checking for ssize_t ourselves.
70045
70046         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
70047         Require every macro that gnulib/modules/* suggests for us.
70048         (jm_PREREQ_ADDEXT): New macro.
70049         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
70050         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
70051
70052         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
70053         (gl_PHYSMEM): Use it.
70054         Also check for `table' function.
70055         Check for new headers and functions.
70056         Add check for sys/sysmp.h.
70057         With suggestions from Kaveh Ghazi.
70058         Ignore headers that are present but cannot be compiled.  This
70059         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
70060         C 5.4.
70061
70062 2003-08-15  Paul Eggert  <eggert@twinsun.com>
70063
70064         Document merge from coreutils.
70065         * modules/userspec: Depend on posixver.
70066         * modules/strftime: Depend on tzset.
70067
70068 2003-08-15  Paul Eggert  <eggert@twinsun.com>
70069
70070         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
70071         rather than tab, after '#' in shell-script copyright notices.
70072         Suggested by Bruno Haible.
70073
70074 2003-08-15  Paul Eggert  <eggert@twinsun.com>
70075
70076         * config/srclist-update: Use three spaces, rather than tab, after '#'
70077         in shell-script copyright notices.  Suggested by Bruno Haible.
70078         Remove unnecessary parenthesization in regular expression.
70079
70080 2003-08-15  Jim Meyering  <jim@meyering.net>
70081
70082         Merge from coreutils.
70083         * lib/xgethostname.c: Include <stdlib.h>.
70084         (xghostname): Don't exit for anything other than memory-related
70085         failure; just return NULL.
70086         * lib/userspec.c: Include "posixver.h".
70087         (parse_user_spec): Accept `.' as a separator only
70088         in pre-POSIX-200112 mode.
70089         * lib/strtoimax.c: Use #elif rather than #else #if.
70090         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
70091         Remove function, now that we can rely on a working tzset function.
70092         [!_LIBC]: Ensure that the required autoconf test has been run.
70093         [!defined _NL_CURRENT && HAVE_STRFTIME]:
70094         Use underlying_strftime for %r.
70095         * lib/sha.c: Merge in some clean-up and optimization changes from
70096         glibc.
70097         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
70098         Ensure that it is a multiple of 64.
70099         Rearrange loop exit tests so as to avoid performing an
70100         additional fread after encountering an error or EOF.
70101         * lib/realloc.c: Update copyright date.
70102
70103 2003-08-15  Jim Meyering  <jim@meyering.net>
70104         and Paul Eggert  <eggert@twinsun.com>
70105
70106         Merge from coreutils.
70107         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
70108         member but strut utmpx does not.  Needed for AIX 4.3.3.
70109         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
70110
70111 2003-08-15  Jim Meyering  <jim@meyering.net>
70112         and Paul Eggert  <eggert@cs.ucla.edu>
70113
70114         Merges from coreutils, etc.
70115         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
70116         Require gl_FUNC_TZSET_CLOBBER.
70117         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
70118         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
70119         members.
70120
70121 2003-08-14  Paul Eggert  <eggert@twinsun.com>
70122
70123         Help the merge from coreutils.
70124         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
70125         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
70126         * m4/tzset.m4: Use it too.
70127
70128 2003-08-14  Paul Eggert  <eggert@twinsun.com>
70129
70130         * modules/tzset: New file.
70131
70132 2003-08-14  Jim Meyering  <jim@meyering.net>
70133
70134         Merges from coreutils.
70135         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
70136         variable names, rather than @FNMATCH_H@.
70137         * modules/alloca: Likewise for $(ALLOCA_H).
70138
70139         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
70140         the three copies of the literal target, `fnmatch.h'.
70141         * modules/alloca (alloca.h): Likewise.
70142
70143 2003-08-14  Jim Meyering  <jim@meyering.net>
70144
70145         Merge from coreutils.
70146         * m4/tzset.m4: New file.
70147         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
70148         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
70149         otherwise, AIX 5.1 systems would end up using the latter.
70150         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
70151         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
70152         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
70153         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
70154
70155 2003-08-14  Jim Meyering  <jim@meyering.net>
70156
70157         Merge from coreutils.
70158         * lib/obstack.h: Whitespace changes.
70159         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
70160         and xcalloc return values.
70161         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
70162         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
70163         hang on OSF/1 5.1 for DIR on both local and remote file systems.
70164         Reported by (and fix confirmed by) Nelson H. F. Beebe.
70165         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
70166         error from mntctl.
70167         Use mntctl's return value to drive the entry-processing loop, since
70168         we can't rely on the value of the vmt_length member in the last
70169         entry.  On some systems doing so could result in exhausting
70170         virtual memory.  Based in part on a patch from Mike Jetzer.
70171
70172 2003-08-14  Jim Meyering  <jim@meyering.net>
70173         and Paul Eggert  <eggert@twinsun.com>
70174
70175         Merges from coreutils, plus other fixes.
70176         * lib/physmem.c: Merge in portability changes from gcc/libiberty
70177         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
70178         for credits and details.  Thanks to Kaveh Ghazi for helping
70179         to keep these files in sync.
70180         (ARRAY_SIZE): Define it.
70181         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
70182         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
70183         (memcasecmp): Don't assume size_t fits in unsigned int.
70184         Remove casts and duplicate code.
70185         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
70186         (memcpy): Remove definition.
70187         Merge in some clean-up and optimization changes from glibc.
70188         [BLOCKSIZE]: Move definition to top of file.
70189         Ensure that it is a multiple of 64.
70190         Rearrange loop exit tests so as to avoid performing an
70191         additional fread after encountering an error or EOF.
70192         * lib/md5.h (md5_uintptr): Define.
70193         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
70194         return to the initial working directory.  Preserve errno
70195         for caller.
70196         * lib/idcache.c: Include "xalloc.h".
70197         (xmalloc, xrealloc): Remove decls.
70198         (getuser): Remove casts no longer required in C89.
70199         * lib/human.c: Include stdio.h, for sprintf.
70200         * lib/group-member.c: Include "xalloc.h".
70201         (xmalloc, xrealloc): Remove decls.
70202         (get_group_info): Remove casts no longer required in C89.
70203         * lib/getusershell.c (readname): Remove casts no longer required in
70204         C89.
70205         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
70206         * lib/getline.c: Whitespace fix, from coreutils.
70207
70208 2003-08-13  Paul Eggert  <eggert@twinsun.com>
70209
70210         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
70211         Check for isascii.
70212
70213         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
70214         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
70215         Undo previous (whitespace-only) change.
70216
70217 2003-08-13  Paul Eggert  <eggert@twinsun.com>
70218
70219         * lib/exclude.c: Include <ctype.h>
70220         (IN_CTYPE_DOMAIN): New macro.
70221         (is_space): New fn.
70222         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
70223         and empty lines.
70224
70225         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
70226         Undo previous (whitespace-only) change.
70227
70228 2003-08-13  Paul Eggert  <eggert@twinsun.com>
70229
70230         * config/srclist-update: Change update back to the old behavior,
70231         leaving whitespace alone.  Use one 'sed' command rather than a
70232         pipeline.
70233         (fixlicense): Now a variable, not a function.
70234         (remove_trailing_blanks): Remove.
70235         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
70236         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
70237         Undo previous (whitespace-only) change.
70238
70239 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70240
70241         Merge from coreutils.
70242         * modules/euidaccess: Add lib_SOURCES, include for new
70243         file euidaccess.h
70244
70245 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70246
70247         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
70248         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
70249         Normalize leading white space and remove trailing white space.
70250
70251         Merge from coreutils
70252         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
70253
70254         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
70255         0.12.1.  These files are now being upgraded automatically by
70256         ../config/srclist-update.
70257
70258 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70259
70260         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
70261         Normalize leading white space and remove trailing white space.
70262         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
70263         notice, as per ../config/srclist-update.
70264
70265         Merge from coreutils.
70266         * lib/euidaccess.h: New file.
70267         * lib/euidaccess.c: Include it.
70268         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
70269         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
70270         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
70271
70272 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70273
70274         * config/srclist-update: Add copyright notice.
70275         (remove_id_lines, remove_trailing_blanks): New constants.
70276         (fixfile): Use them to normalize spacing a bit in copied files.
70277         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
70278         Normalize leading white space and remove trailing white space.
70279
70280         * config/texinfo.tex: Sync with texinfo.
70281
70282         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
70283         strtoul.c from libc, to merge coreutils whitespace changes.
70284
70285         * config/srclist.txt: Get the following m4 files from gettext:
70286         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
70287         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
70288         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
70289         wint_t.m4.
70290
70291 2003-08-12  Karl Berry  <karl@gnu.org>
70292
70293         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
70294         been made.
70295
70296 2003-08-11  Paul Eggert  <eggert@twinsun.com>
70297
70298         * modules/gnu-source, m4/gnu-source.m4:
70299         Remove; we're assuming Autoconf 2.54 or later now.
70300         Suggested by Bruno Haible.
70301         * MODULES.html.sh (func_all_modules): Remove gnu-source.
70302
70303 2003-08-11  Bruno Haible  <bruno@clisp.org>
70304
70305         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
70306
70307 2003-08-11  Bruno Haible  <bruno@clisp.org>
70308
70309         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
70310         (vasnprintf): Use it instead of wcslen.
70311
70312 2003-08-11  Bruno Haible  <bruno@clisp.org>
70313
70314         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
70315         value to ensure that _Bool promotes to int. Use #define for _Bool when
70316         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
70317
70318 2003-08-10  Karl Berry  <karl@gnu.org>
70319
70320         * lib/regex.h: update from libc (whitespace fix).
70321
70322 2003-08-09  Paul Eggert  <eggert@twinsun.com>
70323
70324         Merge some files from coreutils.  These changes were
70325         originally made by Jim Meyering.
70326         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
70327         many older Unixes require this.
70328         * lib/alloca.c (alloca): Remove cast to argument of free;
70329         no longer needed in C89.
70330         * lib/alloca_.h, regex.h: Fix white space to match
70331         what GNU indent does.
70332
70333 2003-08-09  Paul Eggert  <eggert@twinsun.com>
70334
70335         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
70336         apparently Emacs's Unicode mode got confused before my 2003-08-05
70337         checkin.
70338
70339 2003-08-08  Paul Eggert  <eggert@twinsun.com>
70340
70341         * m4/extensions.m4: New file.
70342         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
70343         Require gl_USE_SYSTEM_EXTENSIONS.
70344         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
70345         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
70346
70347 2003-08-08  Paul Eggert  <eggert@twinsun.com>
70348
70349         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
70350         * modules/extensions, modules/gnu-source: New files.
70351         * modules/timespec, modules/unlocked-io: Depend on extensions.
70352
70353 2003-08-07  Paul Eggert  <eggert@twinsun.com>
70354
70355         * modules/restrict: New file.
70356         * MODULES.html.sh (func_all_modules): Add restrict.
70357         * modules/regex: Depend on restrict.
70358
70359 2003-08-07  Paul Eggert  <eggert@twinsun.com>
70360
70361         * m4/restrict.m4: New file.
70362         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
70363
70364 2003-08-07  Bruno Haible  <bruno@clisp.org>
70365
70366         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
70367         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
70368
70369 2003-08-07  Bruno Haible  <bruno@clisp.org>
70370
70371         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
70372         makes the module 'getndelim2' compatible with the module 'getline'.
70373
70374 2003-08-05  Paul Eggert  <eggert@twinsun.com>
70375
70376         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
70377         byte with "\201" to avoid glitches when editing that source file
70378         with multi-gnome-terminal.
70379
70380 2003-08-05  Paul Eggert  <eggert@twinsun.com>
70381
70382         * lib/bumpalloc.h: Remove.
70383
70384 2003-08-05  Paul Eggert  <eggert@twinsun.com>
70385
70386         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
70387         * modules/bumpalloc: Remove.
70388
70389 2003-08-04  Paul Eggert  <eggert@twinsun.com>
70390
70391         * lib/getloadavg.c: Change copyright notice and spacing to conform to
70392         GNU coding style.
70393
70394         Merge from coreutils.
70395         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
70396         1. From glibc.
70397         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
70398         from Karl Berry, implemented by Jim Meyering.
70399         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
70400         from Dmitry V. Levin.
70401         Remove anachronistic cast of xrealloc.
70402         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
70403         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
70404         type. Otherwise, it wouldn't compile with at least /bin/cc on
70405         ymp-cray-unicos9.0.2.X.
70406         Combine two mostly-identical uses of alloca into one.
70407         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
70408
70409 2003-08-04  Dave Love  <d.love@dl.ac.uk>
70410
70411         [From Emacs.]
70412
70413         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
70414         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
70415         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
70416         obsolete NLIST_NAME_UNION.
70417         [__GNU__]: Undef BSD and FSCALE.
70418         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
70419
70420 2003-08-03  Paul Eggert  <eggert@twinsun.com>
70421
70422         * lib/stdbool_.h (_Bool): Make it signed char, instead of
70423         an enum type, so that it's guaranteed to promote to int.  See:
70424         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
70425
70426 2003-08-03  Karl Berry  <karl@gnu.org>
70427
70428         * config/depcomp: update from automake.
70429
70430 2003-07-31  Paul Eggert  <eggert@twinsun.com>
70431
70432         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
70433         (strerror): Don't assume that a printable int fits in 14 bytes.
70434
70435 2003-07-31  Bruno Haible  <bruno@clisp.org>
70436
70437         * modules/getpass-gnu: New file.
70438         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
70439
70440 2003-07-31  Bruno Haible  <bruno@clisp.org>
70441
70442         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
70443
70444 2003-07-24  Karl Berry  <karl@gnu.org>
70445
70446         * config/missing: update from automake.
70447
70448 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
70449             Bruno Haible  <bruno@clisp.org>
70450
70451         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
70452         * lib/getline.c (getline, getdelim): Likewise.
70453         Remove _GNU_SOURCE define; now it's defined in config.h through
70454         m4/getline.m4.
70455
70456 2003-07-23  Karl Berry  <karl@gnu.org>
70457
70458         * config/config.sub: update from prep.
70459
70460 2003-07-22  Paul Eggert  <eggert@twinsun.com>
70461
70462         * modules/xalloc (Depends-on): Add exitfail.
70463         * modules/xmemcoll: Likewise.
70464
70465 2003-07-22  Paul Eggert  <eggert@twinsun.com>
70466
70467         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
70468         over-parenthesization in macros.
70469
70470         Sync with coreutils.
70471
70472         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
70473         required by C99.
70474
70475         Use `exit_failure' for xalloc and xmemcoll instead of their own
70476         private exit-failure variables.
70477         * lib/xalloc.h (xalloc_exit_failure): Remove.
70478         * lib/xmalloc.c: Likewise.  Include exitfail.h.
70479         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
70480         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
70481         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
70482         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
70483
70484 2003-07-20  Jim Meyering  <jim@meyering.net>
70485
70486         * modules/closeout (Depends-on): Add exitfail.
70487         Suggestion from Bruno Haible.
70488
70489 2003-07-19  Karl Berry  <karl@gnu.org>
70490
70491         * config/config.sub: update from prep.
70492
70493 2003-07-18  Paul Eggert  <eggert@twinsun.com>
70494
70495         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
70496         Remove.
70497         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
70498         to test that it can stand by itself.  Include "exitfail.h".
70499         Clients should set exit_failure instead.
70500         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
70501
70502 2003-07-18  Bruno Haible  <bruno@clisp.org>
70503
70504         * modules/getndelim2: New file.
70505         * modules/getline: Share files with module getndelim2.
70506         * modules/getnline: Depend on getndelim2 instead of sharing files with
70507         it. Add getnline.c to lib_SOURCES.
70508         * MODULES.html.sh (func_all_modules): Add getndelim2.
70509
70510 2003-07-18  Bruno Haible  <bruno@clisp.org>
70511
70512         * m4/getndelim2.m4: New file.
70513         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
70514         invoke gl_PREREQ_GETNDELIM2.
70515         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
70516         gl_PREREQ_GETNDELIM2.
70517         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
70518         gl_GETNDELIM2.
70519
70520 2003-07-18  Bruno Haible  <bruno@clisp.org>
70521
70522         * lib/getndelim2.h: New file.
70523         * lib/getndelim2.c: Make into a module of its own. Include config.h,
70524         getndelim2.h.
70525         (getndelim2): Make non-static. Change return type to ssize_t.
70526         * lib/getline.h: Change argument names.
70527         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
70528         * lib/getnline.c: Include getndelim2.h.
70529
70530 2003-07-18  Andreas Schwab  <schwab@suse.de>
70531
70532         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
70533
70534 2003-07-17  Karl Berry  <karl@gnu.org>
70535
70536         * config/config.sub: update from prep.
70537
70538 2003-07-17  Bruno Haible  <bruno@clisp.org>
70539
70540         * modules/getnline: New file.
70541         * modules/getline: Add lib/getndelim2.c to source file list.
70542         * MODULES.html.sh (func_all_modules): Add getnline.
70543
70544 2003-07-17  Bruno Haible  <bruno@clisp.org>
70545
70546         * m4/getnline.m4: New file.
70547
70548 2003-07-17  Bruno Haible  <bruno@clisp.org>
70549
70550         * m4/Makefile.am.in: Remove file.
70551         * m4/Makefile.am: Remove file.
70552         * m4/Makefile.in: Remove file.
70553
70554 2003-07-17  Bruno Haible  <bruno@clisp.org>
70555
70556         * lib/getnline.h: New file.
70557         * lib/getnline.c: New file.
70558         * lib/getndelim2.c: New file, extracted from getline.c.
70559         (getndelim2): Renamed from getdelim2, with added nmax argument.
70560         * lib/getline.c: Include getndelim2.c.
70561         (getdelim2): Moved out to getndelim2.c.
70562         (getline, getdelim): Update.
70563
70564 2003-07-17  Bruno Haible  <bruno@clisp.org>
70565
70566         * lib/Makefile.am: Remove file.
70567         * lib/Makefile.in: Remove file.
70568
70569 2003-07-17  Bruno Haible  <bruno@clisp.org>
70570
70571         * configure.in: Remove file.
70572         * Makefile.in: Remove file.
70573
70574 2003-07-17  Bruno Haible  <bruno@clisp.org>
70575
70576         * MODULES.html.sh: Put the </BODY> right before </HTML>.
70577
70578 2003-07-16  Karl Berry  <karl@gnu.org>
70579
70580         * config/srclist-update: was running fixlicense twice, which caused
70581                 texinfo.tex to be nullified for some reason.  Simplify,
70582                 $gplsrc is no longer needed as far as I can see?
70583
70584 2003-07-16  Jim Meyering  <jim@meyering.net>
70585
70586         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
70587
70588 2003-07-15  Paul Eggert  <eggert@twinsun.com>
70589
70590         * config/srclist.txt: Get the following files from gettext-runtime/intl
70591         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
70592         ref-del.sin.  From Bruno Haible.
70593         * config/srclist-update (fixfile): Change grep pattern again, since the
70594         previous fix didn't work (there was another trailing $).  Use
70595         '[$]' to escape the $s.
70596
70597 2003-07-15  Karl Berry  <karl@gnu.org>
70598
70599         * lib/vasnprintf.c: update from gettext.
70600
70601 2003-07-15  Karl Berry  <karl@gnu.org>
70602
70603         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
70604         gets expanded when surrounded by '$'.
70605
70606 2003-07-15  Jim Meyering  <jim@meyering.net>
70607
70608         * modules/save-cwd: Don't depend on error.  From Derek Price.
70609
70610 2003-07-15  Jim Meyering  <jim@meyering.net>
70611
70612         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
70613
70614 2003-07-14  Simon Josefsson  <jas@extundo.com>
70615
70616         * modules/mempcpy: New file.
70617         * MODULES.html.sh (func_all_modules): Add mempcpy.
70618
70619 2003-07-14  Simon Josefsson  <jas@extundo.com>
70620
70621         * m4/mempcpy.m4: New file.
70622
70623 2003-07-14  Simon Josefsson  <jas@extundo.com>
70624
70625         * lib/mempcpy.h: New file.
70626         * lib/mempcpy.c: New file.
70627
70628 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70629
70630         * modules/getdate, modules/posixtm: Depend on mktime.
70631
70632 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70633
70634         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
70635         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
70636         unicodeio.c, unicodeio.h, unlocked-io.h:
70637         Switch from LGPL to GPL.
70638
70639 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70640
70641         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
70642         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
70643         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
70644         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
70645         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
70646         updated automatically by ../config/srclist-update.  This changes
70647         their license from LPGL to GPL.
70648
70649 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70650
70651         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
70652         assumed to refer to the root of the most recent stable gettext version.
70653         * config/srclistvars.sh: Add defaults for eggert.
70654         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
70655         Match "This program" as well as "The program".  This is needed
70656         for gettext.
70657
70658 2003-07-14  Jim Meyering  <jim@meyering.net>
70659
70660         Don't emit diagnostics.  Let callers do that.
70661         * lib/save-cwd.c: Don't include "error.h".
70662         (save_cwd): Don't call error.  Ensure that errno is valid
70663         when returning nonzero.
70664
70665         * lib/save-cwd.h (restore_cwd): Update prototype.
70666         * lib/save-cwd.c (restore_cwd): Remove two parameters.
70667         Simplify.  Don't call error upon failure.  Let callers do that.
70668         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
70669         when auditing is enabled.  But don't bother updating the #if.
70670
70671 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
70672
70673         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
70674         it breaks C++ compilation.
70675         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
70676
70677 2003-07-10  Simon Josefsson  <jas@extundo.com>
70678
70679         * modules/strchrnul (Makefile.am): Add strchrnul.h.
70680
70681 2003-07-10  Jim Meyering  <jim@meyering.net>
70682
70683         * m4/clock_time.m4: Remove trailing blank.
70684         * m4/intmax_t.m4: Likewise.
70685
70686 2003-07-10  Jim Meyering  <jim@meyering.net>
70687
70688         * lib/vasnprintf.c: Remove trailing blanks.
70689         Make cpp indentation consistent.
70690
70691 2003-07-09  Paul Eggert  <eggert@twinsun.com>
70692
70693         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
70694         posixver.c, strftime.c, strnlen.c, strverscmp.c:
70695         Switch from LGPL to GPL.
70696
70697 2003-07-09  Paul Eggert  <eggert@twinsun.com>
70698
70699         * config/srclist.txt: Sort sublists.  Add
70700         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
70701         that differ from gnulib for one reason or another; we'd like this list
70702         to be smaller but for now let's document what we have.
70703
70704 2003-07-08  Paul Eggert  <eggert@twinsun.com>
70705
70706         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
70707         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
70708         and sweeter "eval x=$x".
70709         * config/srclist.txt: Get lib/argp* from glibc.
70710
70711 2003-07-07  Paul Eggert  <eggert@twinsun.com>
70712
70713         * lib/mktime.c: Fix some boundary cases and remove need for floating
70714         point.
70715
70716         Issue a compile-time diagnostic if time_t is floating point, or if
70717         two's complement arithmetic is not in effect, or if arithmetic
70718         right shift does not propagate the sign.  These assumptions were
70719         all in the original code but they weren't checked.
70720
70721         (TIME_T_MIDPOINT, verify): New macros.
70722         (__isleap): Remove; it has integer overflow problems.
70723         (leapyear): New function, without those problems.
70724         (ydhms_tm_diff): Remove; splitting into two parts.
70725         (ydhms_diff): New function, containing the arithmetic part of
70726         the old ydhms_tm_diff function.  Issue a compile-time
70727         diagnostic if we are not using C99 integer division.
70728         Avoid casts when possible.
70729         (guess_time_tm): New function, containing the checking part of
70730         the old ydhms_tm_diff function.  Return the new value, rather than
70731         the difference between it and the old.  Accept a new argument T
70732         so that *T specifies the old value.  Check for overflow in the result.
70733
70734         (__mktime_internal): Use a time_t offset, not a long int offset.
70735         This undoes the 2003-06-04 change, which is no longer needed now
70736         that we have better overflow checking.
70737         (localtime_offset): Likewise.
70738
70739         (__mktime_internal): Avoid harmful overflow on hosts where time_t
70740         and long are 64-bit but int is only 32-bit.
70741         (ydhms_diff): Use long int to store year1 and yday1.
70742         Issue a compile-time diagnostic if long int is not wide enough.
70743
70744         (__mktime_internal): Use long int to store adjusted year and yday.
70745         Use plain C rather than preprocessor commands, if that doesn't
70746         affect efficiency.
70747         Check for overflow (and try to repair) after each probe
70748         rather than checking only at the very end.  This avoids some bugs
70749         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
70750         does not equal GMT offset at maximum time).
70751         Use integer to check for overflow rather than floating point; this
70752         is more portable to non-IEEE hosts, and is a tad faster.
70753         When we detect that we are oscillating between two values,
70754         don't check whether tm_isdst has the requested value, since
70755         we already know the answer.  When tm_isdst has the wrong value,
70756         use a different heuristic to find the right one, based on the
70757         extreme values actually observed in practice in tz2003a,
70758         rather than the (overly optimistic) "previous 3 calendar quarters".
70759
70760         (not_equal_tm, print_tm, check_result): Use "const T" rather than
70761         "T const" to accommodate glibc style.
70762         (check_result): Use less-confusing report format.  "long" -> "long int.
70763         (main): Likewise.
70764         Don't loop if the iteration overflows time_t.
70765         Allow a negative step in the iteration.
70766
70767 2003-07-06  Karl Berry  <karl@gnu.org>
70768
70769         * config/depcomp: update from automake.
70770         * config/config.sub: update from prep.
70771
70772 2003-07-03  Karl Berry  <karl@gnu.org>
70773
70774         * config/config.guess: update from prep.
70775
70776 2003-07-01  Paul Eggert  <eggert@twinsun.com>
70777
70778         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
70779         xreadlink.c now includes it unconditionally.
70780
70781 2003-07-01  Paul Eggert  <eggert@twinsun.com>
70782
70783         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
70784         having it depend on HAVE_SYS_TYPES_H.
70785
70786 2003-07-01  Bruno Haible  <bruno@clisp.org>
70787
70788         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
70789         <sys/types.h> should be sufficient.
70790         Reported by Paul Eggert.
70791
70792 2003-06-26  Karl Berry  <karl@gnu.org>
70793
70794         * config/depcomp: update from automake.
70795
70796 2003-06-26  Bruno Haible  <bruno@clisp.org>
70797
70798         * modules/human: Depend on module stdbool.
70799
70800 2003-06-25  Bruno Haible  <bruno@clisp.org>
70801
70802         * modules/readlink: New file.
70803         * modules/xreadlink: Depend on it.
70804         * MODULES.html.sh (func_all_modules): Add readlink.
70805
70806 2003-06-25  Bruno Haible  <bruno@clisp.org>
70807
70808         * m4/readlink.m4: New file.
70809
70810 2003-06-25  Bruno Haible  <bruno@clisp.org>
70811
70812         * lib/readlink.c: New file.
70813
70814 2003-06-22  Karl Berry  <karl@gnu.org>
70815
70816         * config/srclist.txt: update mkinstalldirs from automake.
70817         * config/mkinstalldirs: update.
70818
70819 2003-06-22  Bruno Haible  <bruno@clisp.org>
70820
70821         Portability to mingw32.
70822         * m4/ssize_t.m4: New file, from GNU gettext.
70823         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
70824         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
70825
70826 2003-06-22  Bruno Haible  <bruno@clisp.org>
70827
70828         * modules/safe-read: Add m4/ssize_t.m4.
70829         * modules/xreadlink: Add m4/ssize_t.m4.
70830
70831 2003-06-20  Bruno Haible  <bruno@clisp.org>
70832
70833         Assume C89, so PARAMS isn't needed.
70834         * lib/unicodeio.h (PARAMS): Remove.
70835         * lib/unicodeio.c: Don't use PARAMS.
70836
70837 2003-06-18  Karl Berry  <karl@gnu.org>
70838
70839         * config/config.{guess,sub}: update from prep.
70840
70841 2003-06-18  Jim Meyering  <jim@meyering.net>
70842
70843         Merge changes from coreutils.
70844         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
70845         Remove explicit declarations of xmalloc and realloc.
70846         Include xalloc.h.
70847         (read_utmp): Remove anachronistic cast of xmalloc.
70848
70849 2003-06-17  Paul Eggert  <eggert@twinsun.com>
70850
70851         Assume C89, so PARAMS isn't needed.
70852         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
70853         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
70854         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
70855         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
70856         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
70857         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
70858         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
70859         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
70860         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
70861         lib/xstrtod.h, lib/xstrtol.h: Likewise.
70862         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
70863         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
70864         no longer needed. Anyway, config.h should always be included before any
70865         other file.
70866
70867 2003-06-11  Simon Josefsson  <jas@extundo.com>
70868
70869         * modules/sysexits: New file.
70870         * MODULES.html.sh (func_all_modules): Add sysexits.
70871
70872 2003-06-11  Simon Josefsson  <jas@extundo.com>
70873
70874         * lib/sysexit_.h: New file.
70875
70876 2003-06-11  Derek Price  <derek@ximbiot.com>
70877
70878         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
70879         necessary.
70880
70881 2003-06-11  Bruno Haible  <bruno@clisp.org>
70882
70883         * m4/sysexits.m4: New file.
70884
70885 2003-06-10  Simon Josefsson  <jas@extundo.com>
70886
70887         * lib/argp.h: New file, from glibc.
70888         * lib/argp-ba.c: New file, from glibc.
70889         * lib/argp-eexst.c: New file, from glibc.
70890         * lib/argp-fmtstream.c: New file, from glibc.
70891         * lib/argp-fmtstream.h: New file, from glibc.
70892         * lib/argp-fs-xinl.c: New file, from glibc.
70893         * lib/argp-help.c: New file, from glibc.
70894         * lib/argp-namefrob.h: New file, from glibc.
70895         * lib/argp-parse.c: New file, from glibc.
70896         * lib/argp-pv.c: New file, from glibc.
70897         * lib/argp-pvh.c: New file, from glibc.
70898         * lib/argp-xinl.c: New file, from glibc.
70899
70900 2003-06-10  Simon Josefsson  <jas@extundo.com>
70901
70902         * modules/strchrnul: New file.
70903
70904 2003-06-10  Simon Josefsson  <jas@extundo.com>
70905
70906         * modules/argp: New file.
70907
70908 2003-06-10  Simon Josefsson  <jas@extundo.com>
70909
70910         * m4/strchrnul.m4: New file.
70911
70912 2003-06-10  Simon Josefsson  <jas@extundo.com>
70913
70914         * lib/strchrnul.h: New file.
70915         * lib/strchrnul.c: New file.
70916
70917 2003-06-10  Bruno Haible  <bruno@clisp.org>
70918
70919         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
70920
70921 2003-06-07  Karl Berry  <karl@gnu.org>
70922
70923         * config/config.{guess,sub}: update from prep.
70924
70925 2003-06-07  Jim Meyering  <jim@meyering.net>
70926
70927         * modules/strtod: Use $(...) notation, not @...@ for
70928         AC_REPLACE'd variables.
70929         * modules/localcharset: Likewise.
70930
70931 2003-06-07  Jim Meyering  <jim@meyering.net>
70932
70933         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
70934         in place of my name in the copyright comment.
70935         Remove definition and uses of __P.
70936
70937         From coreutils.
70938         * lib/stat.c: Don't declare xmalloc explicitly.
70939         Instead, include "xalloc.h".
70940         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
70941         xrealloc, and xcalloc return values.
70942         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
70943         Improve comment.
70944         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
70945
70946 2003-06-07  Bruno Haible  <bruno@clisp.org>
70947
70948         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
70949         avoid AC_CONFIG_LINKS.
70950         * modules/fnmatch (Makefile.am): Use explicit creation rule for
70951         fnmatch.h, to avoid AC_CONFIG_LINKS.
70952         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
70953
70954 2003-06-07  Bruno Haible  <bruno@clisp.org>
70955
70956         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
70957         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
70958         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
70959         directory.
70960         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
70961         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
70962         directory.
70963
70964 2003-06-06  Jim Meyering  <jim@meyering.net>
70965
70966         Merge from coreutils.
70967         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
70968         Consolidate declarations and initializations of *_base* locals.
70969
70970         Merge from coreutils.
70971         This avoids a core dump on systems without GNU putenv,
70972         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
70973         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
70974         (unsetenv): New static function, from GNU libc.
70975         (rpl_putenv): Use it.
70976
70977         * lib/modechange.c: Remove trailing blanks.
70978
70979         Merge from coreutils.
70980         * lib/fsusage.c: Remove declaration of statfs.
70981         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
70982
70983         * lib/posixtm.c: Include <stdbool.h> unconditionally.
70984
70985 2003-06-06  Jim Meyering  <jim@meyering.net>
70986
70987         * lib/stdbool_.h: Renamed from stdbool.h.in.
70988
70989 2003-06-06  Jim Meyering  <jim@meyering.net>
70990             Bruno Haible  <bruno@clisp.org>
70991
70992         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
70993         Adjust Makefile.am snippet not to redirect directly to target.
70994         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
70995
70996 2003-06-05  Paul Eggert  <eggert@twinsun.com>
70997
70998         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
70999         mismatch, look in future quarters as well as past.  This fixes a
71000         bug when processing fall-backwards gaps immediately after a long
71001         period of daylight-saving time.
71002
71003         * lib/mktime.c: Assume freestanding C89 or better.
71004         (HAVE_LIMITS_H): Remove.  Assume it's 1.
71005         (__P): Remove; not used.
71006         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
71007         (mktime, not_equal_tm, print_tm, check_result,
71008         main): Use prototypes.  Use const * where appropriate.
71009         (main): Fix typo in testing code that uncovered by above changes.
71010         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
71011
71012 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71013
71014         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
71015         locale.h, localeconv.  This merges changes from coreutils.
71016
71017         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
71018         It can be removed after the next Autoconf is released.
71019         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
71020         needed.
71021
71022 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71023
71024         * lib/mktime.c: Fix Debian bug 177940
71025         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
71026         (localtime_offset): Now long int, not time_t, because we want it
71027         to be guaranteed to be signed.  All uses changed.
71028         (__mktime_internal): If overflow would occur when adding offset,
71029         don't add it.
71030
71031         Merge 'human' changes from coreutils.  Rewrite to support
71032         locale-specific notations like thousands separators.
71033         * lib/human.c: Simplify authorship notice.
71034         Include human.h immediately after config.h.
71035         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
71036         <limits.h>: Do not include, since human.h does.
71037         (SIZE_MAX, UINTMAX_MAX): New macros.
71038         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
71039         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
71040         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
71041         (power_letter): Renamed from suffixes.
71042         (generate_suffix_backwards): Remove.
71043         (adjust_value): Now takes int style (because of human.h changes)
71044         and long double value (for greater precision on some platforms).
71045         (group_number): New function.
71046         (human_readable): Use it.  Use integer options, not enum.
71047         Put the options before the sizes in the arg list.
71048         Support all the new options.
71049         The old human_readable function has been removed;
71050         use inttostr.h instead.
71051         (human_readable, default_block_size, humblock):
71052         Use uintmax_t, not int, for block sizes.
71053         (human_readable_inexact, block_size_types): Remove.
71054         (block_size_opts): New constant.
71055         (human_options): Renamed from human_block_size, with new signature
71056         that allows block sizes up to UINTMAX_MAX.  All callers changed.
71057         * lib/human.h: Add copyright and authorship notice.
71058         Include <limits.h> and <stdbool.h> unconditionally.
71059         (PARAMS): Remove.  All uses removed.
71060         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
71061         (enum human_inexact_style): Remove tag; now a nameless enum.
71062         (human_floor, human_ceiling, human_round_to_even): Now have
71063         values 2, 0, 1 rather than -1, 1, 0.
71064         (human_group_digits, human_suppress_point_zero, human_autoscale,
71065         human_base_1024, human_SI, human_B): New constants.
71066         (human_readable_inexact, human_block_size): Remove.
71067         (human_readable): Size args are now uintmax_t, not int.
71068         (human_options): New decl.
71069
71070         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
71071         unnecessary now that we assume C89 or better.  This change
71072         imported from coreutils.
71073
71074         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
71075         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
71076         in the 2003-05-30 sync from glibc.
71077
71078         .h files should stand alone, but we shouldn't include <sys/types.h>
71079         if we can get away with just <stddef.h>.
71080
71081         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
71082         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
71083         rather than <sys/types.h>, as we merely need size_t.
71084         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
71085         to get size_t.
71086         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
71087         Include <stdio.h>, to get FILE.
71088         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
71089         memcasecmp.h has included <stddef.h> and all we need is size_t.
71090         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
71091         our interface, instead of including <sys/types.h>
71092
71093 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71094
71095         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
71096         now, as glibc mktime is buggy on non-glibc systems.
71097
71098 2003-06-03  Karl Berry  <karl@gnu.org>
71099
71100         * config/config.sub: update from prep.
71101
71102 2003-06-02  Paul Eggert  <eggert@twinsun.com>
71103
71104         [from coreutils]
71105         Fix some minor time-related bugs with POSIX time arguments.
71106         Some valid time stamps were being rejected (notably -1, and
71107         time stamps before 1900 on 64-bit hosts).  And some invalid
71108         time stamps were being accepted, e.g. September 31.
71109
71110         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
71111         that we can return (time_t) -1 successfully.
71112         * lib/posixtm.c: Likewise.
71113         [HAVE_STDBOOL_H]: Include <stdbool.h>.
71114         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
71115         (t): Remove static var.
71116         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
71117         of static var.  All uses changed.
71118         (year): Do not reject years before 1900; they can occur with
71119         64-bit time_t.
71120         (posix_time_parse): Do not check for out-of-range components;
71121         that is now the caller's responsibility, since our checks were
71122         only approximations.
71123         (posixtime): Use mktime to check for out-of-range components,
71124         since it knows them exactly.
71125         If mktime returns (time_t) -1, check whether an error actually occurred
71126         by invoking localtime on -1.
71127         (main) [TEST_POSIXTIME]: Check for input data errors, and report
71128         posixtime failures better.
71129         Improve the test data (in comments only).
71130
71131 2003-06-02  Karl Berry  <karl@gnu.org>
71132
71133         * config/mkinstalldirs (version): new variable.
71134         (--version): new option.
71135         (usage): improve message.
71136
71137 2003-05-30  Karl Berry  <karl@gnu.org>
71138
71139         * lib/mktime.c: update from libc.
71140
71141 2003-05-30  Bruno Haible  <bruno@clisp.org>
71142
71143         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
71144         * config/config.rpath: Upgrade to gettext-0.12.1.
71145
71146 2003-05-30  Bruno Haible  <bruno@clisp.org>
71147
71148         * m4/gettext.m4: Upgrade to gettext-0.12.1.
71149         * m4/nls.m4: New file, from gettext-0.12.1.
71150         * m4/po.m4: New file, from gettext-0.12.1.
71151         * m4/progtest.m4: Upgrade to gettext-0.12.1.
71152
71153 2003-05-30  Bruno Haible  <bruno@clisp.org>
71154
71155         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
71156         * lib/localcharset.h: Likewise.
71157         * lib/localcharset.c: Likewise.
71158
71159 2003-05-29  Karl Berry  <karl@gnu.org>
71160
71161         * config/config.rpath: update from gettext.
71162
71163 2003-05-28  Paul Eggert  <eggert@twinsun.com>
71164
71165         Assume the headers required for C89 freestanding compilers.
71166         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
71167         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
71168         * m4/human.m4 (gl_HUMAN): Likewise.
71169         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
71170         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
71171         * m4/userspec.m4 (gl_USERSPEC): Likewise.
71172         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
71173         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71174         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
71175
71176 2003-05-28  Paul Eggert  <eggert@twinsun.com>
71177
71178         Assume the headers required for C89 freestanding compilers.
71179         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
71180         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
71181         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
71182         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
71183         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
71184         define, since <limits.h> is guaranteed to do that.
71185         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
71186         * lib/exclude.c: Include <stdbool.h> unconditionally.
71187         * lib/tempname.c: Include <stddef.h> unconditionally.
71188         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
71189         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
71190         <stddef.h> does that.
71191         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
71192         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
71193         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
71194         needed.
71195         * lib/xstrtol.c: Likewise.
71196         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
71197         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
71198
71199         * lib/addext.c (addext): Use assignment rather than cast, to avoid
71200         warnings on some platforms.
71201
71202         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
71203         arbitrarily.
71204
71205 2003-05-26  Jim Meyering  <jim@meyering.net>
71206
71207         Merge in a change from coreutils:
71208         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
71209         that is guaranteed to be `no'.  Use `no_such_member' to indicate
71210         that condition, rather than `-1' which is slightly misleading.
71211         Change the name of the cache variable to have the gl_ prefix.
71212         Prompted by a patch from Richard Dawe for DJGPP.
71213
71214 2003-05-24  Karl Berry  <karl@gnu.org>
71215
71216         * config/config.guess: update from prep.
71217
71218 2003-05-22  Karl Berry  <karl@gnu.org>
71219
71220         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
71221
71222 2003-05-20  Karl Berry  <karl@gnu.org>
71223
71224         * config/config.guess: update from prep.
71225
71226 2003-05-18  Karl Berry  <karl@gnu.org>
71227
71228         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
71229         might actually be set by the user.
71230
71231         * config/depcomp, install-sh, mdate-sh: update from automake.
71232
71233 2003-05-17  Bruno Haible  <bruno@clisp.org>
71234
71235         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
71236         invalid expansion for AC_EGREP_CPP.
71237         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
71238         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
71239         Suggested by Akim Demaille <akim@epita.fr> in
71240         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
71241
71242 2003-05-12  Jim Meyering  <jim@meyering.net>
71243
71244         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
71245         the space-padded-by-default conversion specifiers, %e, %k, %l.
71246
71247 2003-05-12  Bruno Haible  <bruno@clisp.org>
71248
71249         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
71250         the string is longer than 4 KB.
71251
71252 2003-05-11  Karl Berry  <karl@gnu.org>
71253
71254         * config/config.{guess,sub}: update from prep.
71255
71256 2003-05-09  Bruno Haible  <bruno@clisp.org>
71257
71258         * modules/error: Add m4/strerror_r.m4 to file list.
71259
71260 2003-05-03  Bruno Haible  <bruno@clisp.org>
71261
71262         Upgrade to Unicode-4.0.
71263         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
71264         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
71265         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
71266         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
71267         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
71268         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
71269         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
71270         Change width of U+E0100..U+E01EF from 1 to 0.
71271
71272 2003-04-25  Jim Meyering  <jim@meyering.net>
71273
71274         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
71275         of type size_t, not int.
71276
71277 2003-04-25  Bruno Haible  <bruno@clisp.org>
71278
71279         * lib/copy-file.c: Include <stddef.h>, for size_t.
71280
71281 2003-04-21  Paul Eggert  <eggert@twinsun.com>
71282
71283         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
71284         code which expansion is under static control.  Patch imported from
71285         Akim Demaille's patch to Bison; see
71286         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
71287
71288 2003-04-14  Bruno Haible  <bruno@clisp.org>
71289
71290         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
71291
71292 2003-04-11  Jim Meyering  <jim@meyering.net>
71293
71294         Merge changes from Coreutils.
71295
71296         2003-03-22  Jim Meyering  <jim@meyering.net>
71297
71298         * lib/strftime.c (widen): Cast alloca return value to proper type.
71299
71300         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
71301
71302         From GNU libc.
71303         * lib/strftime.c (my_strftime): Handle very large width
71304         specifications for numeric values correctly.  Improve checks for
71305         overflow.
71306
71307         2003-01-19  Jim Meyering  <jim@meyering.net>
71308
71309         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
71310         definitions.
71311         (nl_get_alt_digit) [! defined my_strftime]: Define.
71312         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
71313         _nl_get_alt_digit and _nl_get_walt_digit.
71314
71315         * lib/strftime.c (my_strftime): Merge in locale-related changes from
71316         libc. These changes have no effect outside of _LIBC.
71317
71318 2003-04-10  Bruno Haible  <bruno@clisp.org>
71319
71320         * modules/findprog: New file.
71321         * MODULES.html.sh (func_all_modules): Add it.
71322
71323 2003-04-10  Bruno Haible  <bruno@clisp.org>
71324
71325         * m4/findprog.m4: New file.
71326         * m4/eaccess.m4: New file.
71327
71328 2003-04-10  Bruno Haible  <bruno@clisp.org>
71329
71330         * lib/findprog.h: New file, from GNU gettext.
71331         * lib/findprog.c: New file, from GNU gettext.
71332
71333 2003-04-05  Jim Meyering  <jim@meyering.net>
71334
71335         Merge changes from Coreutils.
71336
71337         * lib/exclude.h (PARAMS): Remove definition and uses.
71338         * lib/exclude.c: Remove uses of `PARAMS'.
71339
71340         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
71341         Add test-cases for DOS filenames. Declare program_name.
71342         (main): Set up program_name.  Patch by Rich Dawe.
71343
71344         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
71345         error from mntctl.
71346         Use mntctl's return value to drive the entry-processing loop, since
71347         we can't rely on the value of the vmt_length member in the last
71348         entry.  On some systems doing so could result in exhausting
71349         virtual memory.  Based in part on a patch from Mike Jetzer.
71350
71351 2003-04-04  Bruno Haible  <bruno@clisp.org>
71352
71353         * modules/linebreak: New file.
71354         * MODULES.html.sh (func_all_modules): Add it.
71355
71356 2003-04-04  Bruno Haible  <bruno@clisp.org>
71357
71358         * m4/linebreak.m4: New file.
71359
71360 2003-04-04  Bruno Haible  <bruno@clisp.org>
71361
71362         * lib/linebreak.h: New file, from GNU gettext.
71363         * lib/linebreak.c: New file, from GNU gettext with slight
71364         modifications.
71365         * lib/lbrkprop.h: New file, from GNU gettext.
71366
71367 2003-04-03  Bruno Haible  <bruno@clisp.org>
71368
71369         * modules/utf8-ucs4: New file.
71370         * modules/utf16-ucs4: New file.
71371         * modules/ucs4-utf8: New file.
71372         * modules/ucs4-utf16: New file.
71373         * MODULES.html.sh (func_all_modules): Add them.
71374
71375 2003-04-03  Bruno Haible  <bruno@clisp.org>
71376
71377         * m4/utf-ucs4.m4: New file.
71378         * m4/ucs4-utf.m4: New file.
71379
71380 2003-04-03  Bruno Haible  <bruno@clisp.org>
71381
71382         * lib/utf8-ucs4.h: New file, from GNU gettext.
71383         * lib/utf16-ucs4.h: New file, from GNU gettext.
71384         * lib/ucs4-utf8.h: New file, from GNU gettext.
71385         * lib/ucs4-utf16.h: New file, from GNU gettext.
71386
71387 2003-04-02  Bruno Haible  <bruno@clisp.org>
71388
71389         * modules/binary-io: New file.
71390         * MODULES.html.sh (func_all_modules): Add it.
71391
71392 2003-04-02  Bruno Haible  <bruno@clisp.org>
71393
71394         * lib/binary-io.h: New file, from GNU gettext.
71395
71396 2003-04-01  Bruno Haible  <bruno@clisp.org>
71397
71398         * modules/pathname: New file.
71399         * MODULES.html.sh (func_all_modules): Add it.
71400
71401 2003-04-01  Bruno Haible  <bruno@clisp.org>
71402
71403         * lib/pathname.h: New file, from GNU gettext.
71404         * lib/concatpath.c: New file, from GNU gettext.
71405
71406 2003-03-30  Bruno Haible  <bruno@clisp.org>
71407
71408         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
71409
71410 2003-03-30  Bruno Haible  <bruno@clisp.org>
71411
71412         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
71413         function chown() doesn't exist.
71414
71415 2003-03-28  Bruno Haible  <bruno@clisp.org>
71416
71417         * modules/copy-file: New file.
71418         * MODULES.html.sh (func_all_modules): Add it.
71419
71420 2003-03-28  Bruno Haible  <bruno@clisp.org>
71421
71422         * m4/copy-file.m4: New file.
71423
71424 2003-03-28  Bruno Haible  <bruno@clisp.org>
71425
71426         * lib/copy-file.h: New file, from GNU gettext.
71427         * lib/copy-file.c: New file, from GNU gettext.
71428
71429 2003-03-18  Jim Meyering  <jim@meyering.net>
71430
71431         * lib/quote.c (quote_n): Fix typo in comment.
71432
71433 2003-03-18  Bruno Haible  <bruno@clisp.org>
71434
71435         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
71436         checking.
71437         * m4/onceonly_2_57.m4: Likewise.
71438
71439 2003-03-17  Bruno Haible  <bruno@clisp.org>
71440
71441         * m4/onceonly.m4: Require autoconf 2.54 or newer.
71442         (m4_quote): Remove macro.
71443         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
71444
71445 2003-03-14  Jim Meyering  <jim@meyering.net>
71446
71447         Merge changes from Coreutils.
71448         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
71449         to be const, in order to avoid warnings.
71450         (obstack_room): Likewise.
71451         (obstack_empty_p): Likewise.
71452
71453 2003-03-14  Bruno Haible  <bruno@clisp.org>
71454
71455         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
71456         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
71457
71458 2003-03-13  Paul Eggert  <eggert@twinsun.com>
71459
71460         Merge changes from Bison.
71461         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
71462         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
71463         when compiling Bison 1.875's `bitset bset = obstack_alloc
71464         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
71465         * lib/hash.c: Include <stdbool.h> unconditionally.
71466
71467 2003-03-13  Paul Eggert  <eggert@twinsun.com>
71468
71469         * m4/onceonly.m4 (m4_quote): New macro.
71470         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
71471         Quote AC_FOREACH variable-expansions properly.
71472
71473 2003-03-13  Paul Eggert  <eggert@twinsun.com>
71474
71475         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
71476
71477 2003-03-09  Paul Eggert  <eggert@twinsun.com>
71478
71479         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
71480         Reported by Bruce Becker; see:
71481         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
71482
71483 2003-03-03  Paul Eggert  <eggert@twinsun.com>
71484             Bruno Haible  <bruno@clisp.org>
71485
71486         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
71487         Reported by John Hughes, see
71488         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
71489
71490 2003-02-20  Bruno Haible  <bruno@clisp.org>
71491
71492         * MODULES.html.sh (func_all_modules): Add poll.
71493
71494 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
71495
71496         * modules/poll: New file.
71497
71498 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
71499
71500         * lib/poll_.h: New file.
71501         * lib/poll.c: New file.
71502
71503 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
71504
71505         * m4/poll.m4: New file.
71506
71507 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71508
71509         * modules/mathl: New file.
71510
71511 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71512
71513         * lib/mathl.h: New file.
71514         * lib/acosl.c: New file.
71515         * lib/asinl.c: New file.
71516         * lib/atanl.c: New file.
71517         * lib/ceill.c: New file.
71518         * lib/cosl.c: New file.
71519         * lib/expl.c: New file.
71520         * lib/floorl.c: New file.
71521         * lib/frexpl.c: New file.
71522         * lib/ldexpl.c: New file.
71523         * lib/logl.c: New file.
71524         * lib/sincosl.c: New file.
71525         * lib/sinl.c: New file.
71526         * lib/sqrtl.c: New file.
71527         * lib/tanl.c: New file.
71528         * lib/trigl.c: New file.
71529         * lib/trigl.h: New file.
71530
71531 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71532
71533         * m4/mathl.m4: New file.
71534
71535 2003-02-18  Bruno Haible  <bruno@clisp.org>
71536
71537         * MODULES.html.sh (func_all_modules): Add mathl.
71538
71539 2003-02-17  Bruno Haible  <bruno@clisp.org>
71540
71541         * modules/mkdtemp: New module.
71542         * MODULES.html.sh (func_all_modules): Add it.
71543
71544 2003-02-17  Bruno Haible  <bruno@clisp.org>
71545
71546         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
71547
71548 2003-02-17  Bruno Haible  <bruno@clisp.org>
71549
71550         * lib/mkdtemp.h: New file, from GNU gettext.
71551         * lib/mkdtemp.c: New file, from GNU gettext.
71552
71553 2003-02-02  Jim Meyering  <jim@meyering.net>
71554
71555         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
71556         e.g. glibc-2.2.93.
71557
71558 2003-01-31  Bruno Haible  <bruno@clisp.org>
71559
71560         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
71561         'rpl_rename'.
71562         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
71563         'rpl_strnlen'.
71564         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
71565         'rpl_strtod'.
71566         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
71567         'rpl_utime'.
71568
71569 2003-01-31  Bruno Haible  <bruno@clisp.org>
71570
71571         * lib/rename.c: #undef rename before defining rpl_rename.
71572         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
71573
71574 2003-01-30  Bruno Haible  <bruno@clisp.org>
71575
71576         * modules/vasnprintf, modules/vasprintf: New modules.
71577         * MODULES.html.sh (func_all_modules): Add them.
71578
71579 2003-01-30  Bruno Haible  <bruno@clisp.org>
71580
71581         * m4/signed.m4: New file, from GNU gettext.
71582         * m4/longdouble.m4: New file, from GNU gettext.
71583         * m4/wchar_t.m4: New file, from GNU gettext.
71584         * m4/wint_t.m4: New file, from GNU gettext.
71585         * m4/vasnprintf.m4: New file.
71586         * m4/vasprintf.m4: New file.
71587
71588 2003-01-30  Bruno Haible  <bruno@clisp.org>
71589
71590         * lib/printf-args.h: New file, from GNU gettext.
71591         * lib/printf-args.c: New file, from GNU gettext.
71592         * lib/printf-parse.h: New file, from GNU gettext.
71593         * lib/printf-parse.c: New file, from GNU gettext.
71594         * lib/vasnprintf.h: New file, from GNU gettext.
71595         * lib/vasnprintf.c: New file, from GNU gettext.
71596         * lib/asnprintf.c: New file, from GNU gettext.
71597         * lib/vasprintf.h: New file, from GNU gettext with modifications.
71598         * lib/vasprintf.c: New file, from GNU gettext.
71599         * lib/asprintf.c: New file, from GNU gettext.
71600
71601 2003-01-29  Bruno Haible  <bruno@clisp.org>
71602
71603         * modules/stpncpy: New module.
71604         * MODULES.html.sh (func_all_modules): Add it.
71605
71606 2003-01-29  Bruno Haible  <bruno@clisp.org>
71607
71608         * m4/stpncpy.m4: New file.
71609
71610 2003-01-29  Bruno Haible  <bruno@clisp.org>
71611
71612         * lib/stpncpy.h: New file, from GNU gettext with modifications.
71613         * lib/stpncpy.c: New file, from GNU gettext with modifications.
71614
71615 2003-01-28  Bruno Haible  <bruno@clisp.org>
71616
71617         * modules/c-ctype: New module.
71618         * MODULES.html.sh (func_all_modules): Add it.
71619
71620 2003-01-28  Bruno Haible  <bruno@clisp.org>
71621
71622         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
71623         Paul Eggert.
71624         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
71625         Paul Eggert.
71626
71627 2003-01-27  Bruno Haible  <bruno@clisp.org>
71628
71629         * modules/xsetenv: New module.
71630         * MODULES.html.sh (func_all_modules): Add it.
71631
71632 2003-01-27  Bruno Haible  <bruno@clisp.org>
71633
71634         * lib/xsetenv.h: New file, from GNU gettext.
71635         * lib/xsetenv.c: New file, from GNU gettext.
71636
71637 2003-01-23  Jim Meyering  <jim@meyering.net>
71638
71639         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
71640         from working on systems without dirfd (at least Irix and OSF1/Tru64).
71641
71642 2003-01-23  Bruno Haible  <bruno@clisp.org>
71643
71644         * modules/minmax: New module.
71645         * MODULES.html.sh (func_all_modules): Add it.
71646
71647 2003-01-23  Bruno Haible  <bruno@clisp.org>
71648
71649         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
71650         Eggert.
71651
71652 2003-01-22  Bruno Haible  <bruno@clisp.org>
71653
71654         * modules/exit: New module.
71655         * MODULES.html.sh (func_all_modules): Add it.
71656
71657 2003-01-22  Bruno Haible  <bruno@clisp.org>
71658
71659         * lib/exit.h: New file, from GNU gettext.
71660
71661 2003-01-19  Bruno Haible  <bruno@clisp.org>
71662
71663         * gnulib-tool: Recognize option --extract-maintainer.
71664         (func_get_maintainer): New function.
71665         * modules/*: Add Maintainer entry.
71666
71667 2003-01-16  Jim Meyering  <jim@meyering.net>
71668
71669         * m4/regex.m4: The `regex' struct is both input and output.
71670         Initialize it before each use.  Patch by Tim Waugh.
71671
71672 2003-01-16  Bruno Haible  <bruno@clisp.org>
71673
71674         * MODULES.html.sh: Add a table of contents. Add the module name as
71675         leftmost column. Add hyperlinks.
71676
71677 2003-01-15  Bruno Haible  <bruno@clisp.org>
71678
71679         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
71680
71681 2003-01-15  Bruno Haible  <bruno@clisp.org>
71682
71683         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
71684         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
71685         suffix.
71686
71687 2003-01-15  Bruno Haible  <bruno@clisp.org>
71688
71689         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
71690
71691 2003-01-15  Bruno Haible  <bruno@clisp.org>
71692
71693         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
71694         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
71695
71696 2003-01-14  Jim Meyering  <jim@meyering.net>
71697
71698         * lib/same.c (same_name): Tweak a comment.
71699
71700 2003-01-14  Bruno Haible  <bruno@clisp.org>
71701
71702         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
71703         when a string comparison is sufficient.
71704
71705 2003-01-14  Bruno Haible  <bruno@clisp.org>
71706
71707         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
71708         'unsigned int'.
71709
71710 2003-01-14  Bruno Haible  <bruno@clisp.org>
71711
71712         * lib/hash-pjw.c: Add comment about low quality of this function.
71713
71714 2003-01-13  Bruno Haible  <bruno@clisp.org>
71715
71716         * modules/stpcpy: Distribute lib/stpcpy.h.
71717         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
71718
71719 2003-01-13  Bruno Haible  <bruno@clisp.org>
71720
71721         * modules/*: Add a description.
71722         * modules/strpbrk: Fix Makefile.am snippet.
71723         * modules/strtoimax: Fix dependencies.
71724         * modules/strtoumax: Likewise.
71725
71726 2003-01-13  Bruno Haible  <bruno@clisp.org>
71727
71728         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
71729         * modules/alloca (Makefile.am): All object files depend on alloca.h.
71730         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
71731
71732 2003-01-13  Bruno Haible  <bruno@clisp.org>
71733
71734         * gnulib-tool (func_create_testdir): Store config/* files in the main
71735         directory.
71736         * config.rpath: Move to ...
71737         * config/config.rpath: ... here.
71738         * modules/gettext: Contains config/config.rpath, not config.rpath.
71739         * modules/iconv: Likewise.
71740
71741 2003-01-12  Paul Eggert  <eggert@twinsun.com>
71742
71743         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
71744         to avoid collisions with libcurses and libreadline.
71745
71746         * m4/getstr.m4: Remove.
71747         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
71748
71749 2003-01-12  Paul Eggert  <eggert@twinsun.com>
71750
71751         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
71752         to avoid collisions with libcurses and libreadline.
71753
71754         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
71755         * lib/getstr.h, getstr.c: Remove.
71756         * lib/getline.c: Include "getline.h", to check interface.
71757         Move body of old getstr.c here: this defines MIN_CHUNK and
71758         declares getdelim2, which is renamed from getstr.
71759         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
71760
71761         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
71762         All uses changed.
71763         * lib/linebuffer.h: Likewise.
71764         (readline): Remove backward-compatibility macro.
71765
71766 2003-01-12  Paul Eggert  <eggert@twinsun.com>
71767
71768         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
71769         to avoid collisions with libcurses and libreadline.
71770         * getstr: Remove.
71771         * MODULES.html.sh: Remove getstr.
71772         * modules/getline: Depend on unlocked-io, not getstr.
71773
71774 2003-01-12  Jim Meyering  <jim@meyering.net>
71775
71776         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
71777
71778 2003-01-10  Bruno Haible  <bruno@clisp.org>
71779
71780         * modules/alloca: Change Makefile.am requirements. Simplify Include
71781         requirements. Add lib/alloca_.h to file list.
71782
71783 2003-01-10  Bruno Haible  <bruno@clisp.org>
71784
71785         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
71786
71787 2003-01-10  Bruno Haible  <bruno@clisp.org>
71788
71789         * lib/alloca_.h: New file.
71790         * lib/getdate.y: Unconditionally include alloca.h.
71791         * lib/makepath.c: Likewise.
71792         * lib/setenv.c: Likewise.
71793         * lib/userspec.c: Likewise.
71794
71795 2003-01-09  Karl Berry  <karl@gnu.org>
71796
71797         * MODULES.html.sh: include `dirname $0` in PATH, to find
71798         gnulib-tool.
71799
71800 2003-01-09  Bruno Haible  <bruno@clisp.org>
71801
71802         * modules/stdbool: Change configure.ac, Makefile.am requirements.
71803         Simplify Include requirements. Add lib/stdbool.h.in to file list.
71804
71805 2003-01-09  Bruno Haible  <bruno@clisp.org>
71806
71807         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
71808
71809 2003-01-09  Bruno Haible  <bruno@clisp.org>
71810
71811         * lib/stdbool.h.in: New file.
71812
71813 2003-01-09  Bruno Haible  <bruno@clisp.org>
71814
71815         * gnulib-tool (func_all_modules): Ignore files ending in ~.
71816         * MODULES.html.sh: Likewise.
71817
71818 2003-01-08  Jim Meyering  <jim@meyering.net>
71819
71820         * lib/full-write.c: Undefine and define-away `const' after inclusion
71821         of errno.h, not before.  Suggestion from Bruno Haible.
71822
71823 2003-01-08  Bruno Haible  <bruno@clisp.org>
71824
71825         * modules/full-read: Depend on full-write.
71826
71827 2003-01-08  Bruno Haible  <bruno@clisp.org>
71828
71829         * lib/safe-read.c: Include specification header first, to ensure its
71830         selfcontainedness.
71831         * lib/full-write.c: Likewise.
71832
71833 2003-01-07  Jim Meyering  <jim@meyering.net>
71834
71835         * lib/full-write.c: Rework so that it may serve to define full_read,
71836         too.
71837         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
71838
71839 2003-01-07  Bruno Haible  <bruno@clisp.org>
71840
71841         * lib/strtoimax.c: Include <stdint.h> as an alternative to
71842         <inttypes.h>.
71843         * lib/xstrtol.h: Likewise.
71844         * lib/xstrtoimax.c: Likewise.
71845         * lib/xstrtoumax.c: Likewise.
71846         * lib/human.h: Likewise.
71847
71848         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
71849         on systems that have <inttypes.h> but not <stdint.h>.
71850
71851 2003-01-07  Bruno Haible  <bruno@clisp.org>
71852
71853         * MODULES.html.sh: Add copyright notice.
71854         (missed_files): Omit CVS directory entries.
71855         (func_module): Make it work with sed-3.02.
71856         * MODULES.txt: Remove file.
71857
71858 2003-01-06  Jim Meyering  <jim@meyering.net>
71859
71860         * lib/version-etc.c: Update year in translatable copyright string.
71861
71862 2003-01-03  Karl Berry  <karl@gnu.org>
71863
71864         * config/config.{guess,sub}: update from prep.
71865
71866 2003-01-02  Karl Berry  <karl@gnu.org>
71867
71868         * doc/COPYING.DOC: belatedly updated to 1.2.
71869
71870 2003-01-01  Karl Berry  <karl@gnu.org>
71871
71872         * gnulib-tool (func_verify_module): report module name $module in
71873         error message, not $1.
71874         * gnulib-tool (create-testdir): don't complain if destdir couldn't
71875         be created, only if it doesn't exist.
71876         * gnulib-tool (last_checkin_date): don't expand the $Date here.
71877
71878 2002-12-31  Paul Eggert  <eggert@twinsun.com>
71879
71880         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
71881
71882 2002-12-31  Paul Eggert  <eggert@twinsun.com>
71883
71884         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
71885         memcmp if strcoll doesn't work.
71886
71887 2002-12-31  Bruno Haible  <bruno@clisp.org>
71888
71889         * lib/utime.c (utime_null): No need to call ftruncate if the file was
71890         nonempty.
71891
71892 2002-12-31  Bruno Haible  <bruno@clisp.org>
71893
71894         * lib/memcoll.c (STRCOLL): New macro.
71895         (memcoll): Use it.
71896
71897 2002-12-31  Bruno Haible  <bruno@clisp.org>
71898
71899         * lib/localcharset.h: New file.
71900         * lib/localcharset.c: Include it.
71901         * lib/unicodeio.c: Likewise.
71902
71903 2002-12-31  Bruno Haible  <bruno@clisp.org>
71904
71905         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
71906         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
71907
71908 2002-12-31  Bruno Haible  <bruno@clisp.org>
71909
71910         * lib/getline.h: Include <stddef.h>, for size_t.
71911
71912         * lib/unicodeio.h: Include <stddef.h>, for size_t.
71913         * lib/unicodeio.c: Don't include <stddef.h>.
71914
71915 2002-12-31  Bruno Haible  <bruno@clisp.org>
71916
71917         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
71918         HAVE_TM_ZONE.
71919
71920 2002-12-24  Karl Berry  <karl@gnu.org>
71921
71922         * config/config.guess: update from prep.
71923
71924 2002-12-24  Bruno Haible  <bruno@clisp.org>
71925
71926         General infrasructure.
71927         * m4/README: Rewritten.
71928         * m4/onceonly.m4: New file.
71929         * m4/onceonly_2_57.m4: New file.
71930
71931         Module atexit.
71932         * m4/atexit.m4: New file.
71933
71934         Module strtod.
71935         * m4/strtod.m4: New file.
71936
71937         Module strtol.
71938         * m4/strtol.m4: New file.
71939
71940         Module strtoul.
71941         * m4/strtoul.m4: New file.
71942
71943         Module memchr.
71944         * m4/memchr.m4: New file.
71945
71946         Module memcmp.
71947         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
71948         (jm_FUNC_MEMCMP): Invoke it.
71949
71950         Module memcpy.
71951         * m4/memcpy.m4: New file.
71952
71953         Module memmove.
71954         * m4/memmove.m4: New file.
71955
71956         Module memset.
71957         * m4/memset.m4: New file.
71958
71959         Module strcspn.
71960         * m4/strcspn.m4: New file.
71961
71962         Module strpbrk.
71963         * m4/strpbrk.m4: New file.
71964
71965         Module strstr.
71966         * m4/strstr.m4: New file.
71967
71968         Module strerror.
71969         * m4/strerror.m4: New file.
71970
71971         Module mktime.
71972         * m4/mktime.m4: Renamed from jm-mktime.m4.
71973         (gl_PREREQ_MKTIME): New macro.
71974         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
71975
71976         Module malloc.
71977         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
71978         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
71979         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
71980
71981         Module realloc.
71982         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
71983         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
71984         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
71985
71986         Module strftime.
71987         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
71988         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
71989         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
71990         gl_TM_GMTOFF.
71991         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
71992
71993         Module xalloc.
71994         * m4/xalloc.m4: New file.
71995
71996         Module alloca.
71997         * m4/alloca.m4: New file.
71998
71999         Module putenv.
72000         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
72001         (jm_FUNC_PUTENV): Invoke it.
72002
72003         Module setenv.
72004         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
72005         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
72006         when invoked twice.
72007         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
72008         gt_FUNC_SETENV.
72009
72010         Module memrchr.
72011         * m4/memrchr.m4: New file.
72012
72013         Module stpcpy.
72014         * m4/stpcpy.m4: New file.
72015
72016         Module strcase.
72017         * m4/strcase.m4: New file.
72018
72019         Module strdup.
72020         * m4/strdup.m4: New file.
72021
72022         Module strnlen.
72023         * m4/strnlen.m4: New file.
72024
72025         Module strndup.
72026         * m4/strndup.m4: New file.
72027
72028         Module xstrtod.
72029         * m4/xstrtod.m4: New file.
72030
72031         Module xstrtol.
72032         * m4/xstrtol.m4: New file.
72033
72034         Module getdate.
72035         * m4/getdate.m4: New file.
72036
72037         Module unlocked-io.
72038         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
72039         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
72040         * m4/jm-glibc-io.m4n: Remove file.
72041
72042         Module long-options.
72043         * m4/long-options.m4: New file.
72044
72045         Module md5.
72046         * m4/md5.m4: New file.
72047
72048         Module sha.
72049         * m4/sha.m4: New file.
72050
72051         Module getstr.
72052         * m4/getstr.m4: New file.
72053
72054         Module getline.
72055         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
72056         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
72057         <sys/types.h>, for size_t. Use the function name gnu_getline, not
72058         simply getline. Infoke gl_PREREQ_GETLINE.
72059
72060         Module obstack.
72061         * m4/obstack.m4: New file.
72062
72063         Module hash.
72064         * m4/hash.m4: New file.
72065
72066         Module readtokens.
72067         * m4/readtokens.m4: New file.
72068
72069         Module strverscmp.
72070         * m4/strverscmp.m4: New file.
72071
72072         Module stdbool.
72073         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
72074         OSF/1.
72075
72076         Module strtoll.
72077         * m4/strtoll.m4: New file.
72078
72079         Module strtoull.
72080         * m4/strtoull.m4: New file.
72081
72082         Module strtoimax.
72083         * m4/strtoimax.m4: New file.
72084
72085         Module strtoumax.
72086         * m4/strtoumax.m4: New file.
72087
72088         Module xstrtoimax.
72089         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
72090         jm_AC_PREREQ_XSTRTOIMAX.
72091         Moved the strtol prerequisites to strtol.m4.
72092         Moved the strtoll prerequisites to strtoll.m4.
72093         Moved the strtoimax prerequisites to strtoimax.m4.
72094
72095         Module xstrtoumax.
72096         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
72097         jm_AC_PREREQ_XSTRTOUMAX.
72098         Moved the strtoul prerequisites to strtoul.m4.
72099         Moved the strtoull prerequisites to strtoull.m4.
72100         Moved the strtoumax prerequisites to strtoumax.m4.
72101
72102         Module chown.
72103         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
72104         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
72105
72106         Module dup2.
72107         * m4/dup2.m4: New file.
72108
72109         Module ftruncate.
72110         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
72111         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
72112
72113         Module getgroups.
72114         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
72115         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
72116
72117         Module gettimeofday.
72118         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
72119         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
72120         gl_PREREQ_GETTIMEOFDAY.
72121
72122         Module mkdir.
72123         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
72124         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
72125
72126         Module mkstemp.
72127         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
72128         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
72129         jm_AC_TYPE_UINTMAX_T.
72130         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
72131
72132         Module stat.
72133         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
72134         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
72135
72136         Module lstat.
72137         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
72138         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
72139
72140         Module timespec.
72141         * m4/timespec.m4 (gl_TIMESPEC): New macro.
72142         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
72143         * m4/st_mtim.m4: Indentation.
72144
72145         Module nanosleep.
72146         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
72147         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
72148         gl_PREREQ_NANOSLEEP.
72149
72150         Module regex.
72151         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
72152         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
72153         (gl_REGEX): New macro.
72154
72155         Module rename.
72156         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
72157         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
72158
72159         Module rmdir.
72160         * m4/rmdir.m4: New file.
72161
72162         Module utime.
72163         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
72164         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
72165         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
72166
72167         Module dirname.
72168         * m4/dirname.m4: New file.
72169
72170         Module getopt.
72171         * m4/getopt.m4: New file.
72172
72173         Module unistd-safer.
72174         * m4/unistd-safer.m4: New file.
72175
72176         Module fnmatch.
72177         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
72178         declaration.
72179         (gl_PREREQ_FNMATCH_EXTRA): New macro.
72180         (gl_FUNC_FNMATCH_POSIX): New macro.
72181         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
72182         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
72183         simply fnmatch.
72184
72185         Module exclude.
72186         * m4/exclude.m4: New file.
72187
72188         Module human.
72189         * m4/human.m4: New file.
72190
72191         Module acl.
72192         * m4/acl.m4: Nop.
72193
72194         Module backupfile.
72195         * m4/backupfile.m4: New file.
72196         * m4/d-ino.m4: Indentation.
72197
72198         Module fsusage.
72199         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
72200         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
72201         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
72202
72203         Module dirfd.
72204         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
72205         requirements.
72206
72207         Module euidaccess.
72208         * m4/euidaccess.m4: New file.
72209
72210         Module file-type.
72211         * m4/file-type.m4: New file.
72212
72213         Module fileblocks.
72214         * m4/fileblocks.m4: New file.
72215
72216         Module filemode.
72217         * m4/filemode.m4: New file.
72218
72219         Module isdir.
72220         * m4/isdir.m4: New file.
72221
72222         Module lchown.
72223         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
72224         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
72225
72226         Module makepath.
72227         * m4/makepath.m4: New file.
72228
72229         Module modechange.
72230         * m4/modechange.m4: New file.
72231
72232         Module mountlist.
72233         * m4/mountlist.m4: New file.
72234         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
72235         Indentation.
72236
72237         Module path-concat.
72238         * m4/path-concat.m4: New file.
72239
72240         Module pathmax.
72241         * m4/pathmax.m4: New file.
72242
72243         Module same.
72244         * m4/same.m4: New file.
72245
72246         Module save-cwd.
72247         * m4/save-cwd.m4: New file.
72248
72249         Module savedir.
72250         * m4/savedir.m4: New file.
72251
72252         Module xgetcwd.
72253         * m4/xgetcwd.m4: New file.
72254         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
72255
72256         Module xreadlink.
72257         * m4/xreadlink.m4: New file.
72258
72259         Module safe-read.
72260         * m4/safe-read.m4: New file.
72261
72262         Module safe-write.
72263         * m4/safe-write.m4: New file.
72264
72265         Module closeout.
72266         * m4/closeout.m4: New file.
72267
72268         Module stdio-safer.
72269         * m4/stdio-safer.m4: New file.
72270
72271         Module getpass.
72272         * m4/getpass.m4: New file.
72273
72274         Module getugroups.
72275         * m4/getugroups.m4: New file.
72276
72277         Module group-member.
72278         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
72279         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
72280
72281         Module idcache.
72282         * m4/idcache.m4: New file.
72283
72284         Module userspec.
72285         * m4/userspec.m4: New file.
72286
72287         Module gettime.
72288         * m4/clock_time.m4: New file.
72289         * m4/gettime.m4: New file.
72290
72291         Module settime.
72292         * m4/settime.m4: New file.
72293
72294         Module posixtm.
72295         * m4/posixtm.m4: New file.
72296
72297         Module gethostname.
72298         * m4/gethostname.m4: New file.
72299
72300         Module canon-host.
72301         * m4/canon-host.m4: New file.
72302
72303         Module gettext.
72304         * m4/codeset.m4: New file, from gettext-0.11.5.
72305         * m4/gettext.m4: New file, from gettext-0.11.5.
72306         * m4/glibc21.m4: New file, from gettext-0.11.5.
72307         * m4/iconv.m4: New file, from gettext-0.11.5.
72308         * m4/intdiv0.m4: New file, from gettext-0.11.5.
72309         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
72310         * m4/inttypes.m4: New file, from gettext-0.11.5.
72311         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
72312         * m4/isc-posix.m4: New file, from gettext-0.11.5.
72313         * m4/lcmessage.m4: New file, from gettext-0.11.5.
72314         * m4/lib-ld.m4: New file, from gettext-0.11.5.
72315         * m4/lib-link.m4: New file, from gettext-0.11.5.
72316         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
72317         * m4/progtest.m4: New file, from gettext-0.11.5.
72318         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
72319         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
72320         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
72321
72322         Module localcharset.
72323         * m4/localcharset.m4: New file.
72324
72325         Module hard-locale.
72326         * m4/hard-locale.m4: New file.
72327
72328         Module mbswidth.
72329         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
72330         onceonly macros.
72331         * m4/mbrtowc.m4: Add comment.
72332
72333         Module memcasecmp.
72334         * m4/memcasecmp.m4: New file.
72335
72336         Module memcoll.
72337         * m4/memcoll.m4: New file.
72338
72339         Module unicodeio.
72340         * m4/unicodeio.m4: New file.
72341
72342         Module rpmatch.
72343         * m4/rpmatch.m4: New file.
72344
72345         Module yesno.
72346         * m4/yesno.m4: New file.
72347
72348         Module exitfail.
72349         * m4/exitfail.m4: New file.
72350
72351         Module c-stack.
72352         * m4/c-stack.m4 (gl_C_STACK): New macro.
72353         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
72354
72355         Module error.
72356         * m4/error.m4 (gl_ERROR): New macro.
72357         (jm_PREREQ_ERROR): Use onceonly macros.
72358
72359         Module fatal.
72360         * m4/fatal.m4: New file.
72361
72362         Module getloadavg.
72363         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
72364         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
72365
72366         Module getpagesize.
72367         * m4/getpagesize.m4: New file.
72368
72369         Module getusershell.
72370         * m4/getusershell.m4: New file.
72371
72372         Module physmem.
72373         * m4/physmem.m4: New file.
72374
72375         Module posixver.
72376         * m4/posixver.m4: New file.
72377
72378         Module quotearg.
72379         * m4/quotearg.m4: New file.
72380
72381         Module quote.
72382         * m4/quote.m4: New file.
72383
72384         Module readutmp.
72385         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
72386
72387         Module sig2str.
72388         * m4/sig2str.m4: New file.
72389
72390         Other.
72391         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
72392         ulonglong.m4.
72393         * m4/intmax_t.m4: New file.
72394         * m4/d-type.m4: Indentation.
72395         * m4/jm-macros.m4: Update.
72396         * m4/prereq.m4 (jm_PREREQ): Update.
72397         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
72398         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
72399         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
72400         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
72401         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
72402         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
72403         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
72404         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
72405         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
72406         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
72407         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
72408         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
72409         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
72410         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
72411         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
72412         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
72413         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
72414         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
72415         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
72416
72417 2002-12-24  Bruno Haible  <bruno@clisp.org>
72418
72419         * MODULES.txt: Update according to m4/ changes.
72420
72421         Module gettext.
72422         * config.rpath: New file, from gettext-0.11.5.
72423
72424         * modules/*: New module descriptions.
72425         * gnulib-tool: New file.
72426         * MODULES.html.sh: New file.
72427
72428 2002-12-21  Karl Berry  <karl@gnu.org>
72429
72430         * doc/fdl.texi: update to version 1.2.
72431
72432 2002-12-19  Karl Berry  <karl@gnu.org>
72433
72434         * config/config.guess: update from prep.
72435
72436 2002-12-18  Bruno Haible  <bruno@clisp.org>
72437
72438         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
72439         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
72440
72441 2002-12-17  Bruno Haible  <bruno@clisp.org>
72442
72443         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
72444         stdlib.h, string.h.
72445
72446 2002-12-17  Bruno Haible  <bruno@clisp.org>
72447
72448         * lib/canon-host.c (strdup): Remove unused declaration.
72449
72450         * lib/fsusage.c: Include full_read.h.
72451         (get_fs_usage): Use full_read instead of safe_read.
72452
72453         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
72454
72455 2002-12-12  Karl Berry  <karl@gnu.org>
72456
72457         * config/config.guess: update from prep.
72458
72459 2002-12-11  Bruno Haible  <bruno@clisp.org>
72460
72461         * m4/setenv.m4: New file, from gettext-0.11.5.
72462
72463 2002-12-11  Bruno Haible  <bruno@clisp.org>
72464
72465         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
72466         not unsetenv().
72467         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
72468         modifications:
72469
72470         2002-12-11  Bruno Haible  <bruno@clisp.org>
72471
72472                 * setenv.c (alloca): Fall back to malloc.
72473                 (freea): New macro.
72474                 (setenv): Use freea() to free memory allocated with alloca().
72475
72476         2002-11-13  Bruno Haible  <bruno@clisp.org>
72477
72478                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
72479                 function declarations.
72480                 * unsetenv.c (unsetenv): Likewise.
72481
72482         2002-03-04  Bruno Haible  <bruno@clisp.org>
72483
72484                 Portability to AIX 4.3.3.
72485                 * unsetenv.c: New file, extracted from setenv.c.
72486                 * setenv.c: Move the unsetenv() function to unsetenv.c.
72487
72488         2001-12-20  Bruno Haible  <bruno@clisp.org>
72489
72490                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
72491                 use malloc instead. For SunOS 4.
72492
72493         2001-12-11  Bruno Haible  <bruno@clisp.org>
72494
72495                 * setenv.c: Declare alloca.
72496                 (compar_fn_t): New typedef.
72497                 (KNOWN_VALUE, STORE_VALUE): Use it.
72498
72499         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
72500         setenv.h.
72501
72502 2002-12-10  Paul Eggert  <eggert@twinsun.com>
72503
72504         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
72505         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
72506         Choose values that are less likely to collide with system fnmatch
72507         options.
72508         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
72509         defined (e.g., a pure POSIX system).
72510         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
72511         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
72512
72513 2002-12-06  Paul Eggert  <eggert@twinsun.com>
72514
72515         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
72516         a pain in practice to deal with generated m4 files.  This change
72517         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
72518
72519         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
72520         and jm-glibc-io.m4, as they are no longer a special case.
72521         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
72522         kludge and the auto-generation stuff.  Check only whether the
72523         functions are declared, not whether they exist, since older hosts
72524         that don't declare the functions can't use the optimization anyway.
72525
72526 2002-12-06  Jim Meyering  <jim@meyering.net>
72527
72528         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
72529
72530         Merge in changes from libc's misc/error.c, in preparation
72531         for the merge of gnulib's changes back into libc.
72532
72533         * lib/error.c (_): Define only if not already defined.
72534         Move definition to follow all #include directives.
72535         Include unlocked-io.h only if !_LIBC.
72536         [_LIBC]: Include <libio/libioP.h>.
72537         [USE_IN_LIBIO]: Include <libio/iolibio.h>
72538         (fflush): Tweak definition to use INTUSE.
72539         (putc): Define.
72540
72541 2002-12-05  Paul Eggert  <eggert@twinsun.com>
72542
72543         * lib/alloca.c [defined emacs]: Include "lisp.h".
72544         (xalloc_die) [defined emacs]: New macro.
72545         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
72546         [! defined emacs]: Include <xalloc.h>.
72547         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
72548         (pointer): Typedef to POINTER_TYPE *.
72549         (malloc): Remove decl; we now always use xmalloc.
72550         (alloca): Use old-style definition, since Emacs needs this.
72551         Check for arithmetic overflow when computing combined size.
72552
72553 2002-12-04  Paul Eggert  <eggert@twinsun.com>
72554
72555         Do not generate unlocked-io.h automatically, since it's easier to
72556         maintain it by hand.
72557
72558         * lib/unlocked-io.h: New file, from GNU diffutils,
72559         but with proper copyright notice and attribution.
72560         * lib/gen-uio: Remove.
72561         * lib/Makefile.am: Add copyright notice.
72562         (libfetish_a_SOURCES): Add unlocked-io.h.
72563         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
72564         (DISTCLEANFILES, io_functions): Remove macros.
72565         (EXTRA_DIST): Remove gen_uio.
72566         (unlocked-io.h): Remove rule.
72567
72568 2002-12-04  Jim Meyering  <jim@meyering.net>
72569
72570         Reflect the fact that stat.c and lstat.c are no longer generated.
72571         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
72572         (DISTCLEANFILES): Likewise.
72573         (EXTRA_DIST): Likewise.
72574         (all_local): Don't depend on stat.c or lstat.c.
72575         (stat.c, lstat.c): Remove rules.
72576         (EXTRA_DIST): Remove xstat.in.
72577
72578         * lib/xstat.in: Remove file.  Contents moved into stat.c.
72579         * lib/stat.c: New file.  Contents mostly from xstat.in.
72580         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
72581         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
72582
72583         * lib/safe-read.c: Rework so that it may serve to define safe_write,
72584         too.
72585         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
72586
72587 2002-12-03  Jim Meyering  <jim@meyering.net>
72588
72589         * lib/safe-read.c, safe-write.c: Change variable names and comments,
72590         but not semantics, to minimize the differences between these two files.
72591         (safe_read): Change comment to mention SAFE_READ_ERROR.
72592
72593         * lib/safe-read.c (IS_EINTR): Define.
72594         (safe_read): Use IS_EINTR in place of in-function cpp directives.
72595
72596 2002-12-02  Jim Meyering  <jim@meyering.net>
72597
72598         * lib/safe-read.c (EINTR): Define.
72599         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
72600         (INT_MAX): Provide fallback.
72601         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
72602
72603         * lib/safe-read.h (SAFE_READ_ERROR): Define.
72604
72605 2002-12-02  Bruno Haible  <bruno@clisp.org>
72606
72607         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
72608         Define, taken from safe-read.c.
72609         (INT_MAX): Provide fallback.
72610         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
72611         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
72612
72613         * lib/safe-read.c (EINTR): Remove definition.
72614         (safe_read): Don't use EINTR if it is absent.
72615
72616 2002-12-01  Jim Meyering  <jim@meyering.net>
72617
72618         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
72619         zero.
72620         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
72621
72622 2002-11-27  Paul Eggert  <eggert@twinsun.com>
72623
72624         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
72625         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
72626         with `if (! (value < limit)) abort ();', for readability.
72627
72628 2002-11-26  Karl Berry  <karl@gnu.org>
72629
72630         * lib/strdup.c: copy from libc again, with jim's ok.
72631         * lib/.cppi-disable: re-add strdup.c
72632
72633 2002-11-25  Karl Berry  <karl@gnu.org>
72634
72635         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
72636         instead of "strtol.c".
72637
72638 2002-11-25  Karl Berry  <karl@gnu.org>
72639
72640         * config/install-sh: update from automake for variable quoting, $0 in
72641         error msgs, etc.
72642
72643         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
72644         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
72645         entry.
72646
72647 2002-11-25  Jim Meyering  <jim@meyering.net>
72648
72649         * lib/mktime.c: Sync from libc, now that it has the latest fix.
72650
72651 2002-11-24  Karl Berry  <karl@gnu.org>
72652
72653         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
72654         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
72655
72656 2002-11-24  Jim Meyering  <jim@meyering.net>
72657
72658         Update from coreutils:
72659
72660         * lib/mktime.c: Merge in changes from libc.
72661
72662         Avoid a link-time failure on some Linux systems.
72663         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
72664         (otherwise).
72665         (__mon_yday): Declare with the STATIC attribute.
72666         (__mktime_internal): Likewise.
72667         Based on a report from Greg Schafer.
72668
72669 2002-11-23  Jim Meyering  <jim@meyering.net>
72670
72671         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
72672         Use `unsigned', not `int', as type of index.
72673
72674         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
72675
72676         * lib/fsusage.c: Remove unneeded parentheses around operands of
72677         `defined'.
72678
72679 2002-11-22  Paul Eggert  <eggert@twinsun.com>
72680
72681         * lib/quotearg.h: Allow multiple inclusion by surrounding with
72682         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
72683         so that we can be included first.
72684         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
72685         * lib/quotearg.c: Include quotearg.h immediately after config.h.
72686         No need to include stddef.h or sys/types.h any more.
72687         Surround local include files with "", not "<>".
72688         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
72689         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
72690         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
72691         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
72692         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
72693         (ISPRINT): Remove; no longer needed now that we assume C89.
72694
72695         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
72696         Preserve errno.
72697
72698         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
72699         quotearg_char): Use SIZE_MAX rather than
72700         (size_t) -1 when we are talking about "infinity".
72701
72702         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
72703
72704 2002-11-22  Paul Eggert  <eggert@twinsun.com>
72705
72706         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
72707         hint that one should use `if (! x) abort ();' rather than `assert
72708         (x);', and anyway it's one less thing to worry about configuring.
72709         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
72710         hash_rehash, hash_insert): Use abort rather than assert.
72711
72712 2002-11-22  Bruno Haible  <bruno@clisp.org>
72713
72714         * lib/safe-read.h: Assume C89. Add comments.
72715         (safe_read): Change return type to size_t.
72716         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
72717         byte counts > SSIZE_MAX correctly.
72718         * lib/safe-write.h: New file.
72719         * lib/safe-write.c: New file.
72720         * lib/full-read.h: New file.
72721         * lib/full-read.c: New file.
72722         * lib/full-write.h: Assume C89. Add comments.
72723         * lib/full-write.c: Include safe-write.h.
72724         (full_write): Rewritten to use safe_write.
72725         Suggested by Jim Meyering and Paul Eggert.
72726
72727 2002-11-21  Jim Meyering  <jim@meyering.net>
72728
72729         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
72730
72731         Merge in changes from the coreutils.
72732
72733         2002-09-25  Paul Eggert  <eggert@twinsun.com>
72734         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
72735         <stdint.h>.
72736         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
72737         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
72738         int.  Work more efficiently if X is the same width as uintmax_t.
72739         Do not compare X to -1, to avoid bogus compiler warning.
72740         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
72741         Don't assume that f_frsize and f_bsize are the same type.
72742
72743         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
72744         warning on FreeBSD.
72745
72746         * lib/makepath.c (make_path): Restore umask *before* creating the final
72747         component.
72748         (make_path): Minor reformatting.
72749
72750         * lib/xmalloc.c: Adjust to work with new autoconf macros,
72751         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
72752         HAVE_MALLOC/HAVE_REALLOC.
72753
72754         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
72755         dummy ones.  At least on GNU/Linux systems, `auto' means something
72756         else.
72757         From Michael Stone.
72758
72759 2002-11-21  Bruno Haible  <bruno@clisp.org>
72760
72761         Remove case insensitive option matching.
72762         * lib/argmatch.h (argcasematch): Remove declaration.
72763         (ARGCASEMATCH): Remove macro.
72764         (__xargmatch_internal): Remove case_sensitive argument.
72765         (XARGMATCH): Update.
72766         (XARGCASEMATCH): Remove macro.
72767         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
72768         case_sensitive argument.
72769         (argcasematch): Remove function.
72770         (__xargmatch_internal): Remove case_sensitive argument.
72771         (main): Use XARGMATCH instead of XARGCASEMATCH.
72772
72773         * lib/xmalloc.c: Change compile-time error message. Add comment about
72774         required autoconf version.
72775
72776 2002-11-20  Paul Eggert  <eggert@twinsun.com>
72777
72778         Merge argmatch cleanups from Bison.  Assume C89.
72779
72780         * lib/argmatch.c: Include config.h here, not in argmatch.h.
72781         Include stdlib.h, for EXIT_FAILURE.
72782         Always include <string.h>, since we assume C89.
72783         (EXIT_FAILURE): Remove pre-C89 bug workaround.
72784         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
72785         Include <stddef.h> instead, since it's all we need for size_t.
72786         (PARAMS): Remove.  All uses removed.
72787         (ARRAY_CARDINALITY): Do not bother to #undef.
72788         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
72789         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
72790         Remove unnecessary parentheses.
72791         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
72792         Insert necessary parentheses.
72793         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
72794         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
72795
72796 2002-11-19  Bruno Haible  <bruno@clisp.org>
72797
72798         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
72799         * lib/mbswidth.h: Include <stddef.h>, for size_t.
72800
72801         * lib/mbswidth.h (PARAMS): Remove macro.
72802         (mbswidth, mbsnwidth): Use ANSI C function declarations.
72803         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
72804
72805         * lib/gcd.h (PARAMS): Remove macro.
72806         (gcd): Use ANSI C function declarations.
72807         * lib/gcd.c (gcd): Likewise.
72808
72809 2002-11-15  Bruno Haible  <bruno@clisp.org>
72810
72811         * lib/strcspn.c: Include <stddef.h>.
72812         (strcspn): Use ANSI C function declaration. Change return type to
72813         size_t. Use NULL.
72814         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
72815         (strpbrk): Use NULL.
72816         * lib/strpbrk.h (PARAMS): Remove macro.
72817         (strpbrk): Use ANSI C function declaration.
72818         * lib/strstr.c: Don't include <sys/types.h>.
72819         * lib/strstr.h (PARAMS): Remove macro.
72820         (strstr): Use ANSI C function declarations.
72821
72822 2002-11-14  Karl Berry  <karl@gnu.org>
72823
72824         * config/mkinstalldirs: `do' on separate line, instead of
72825         `for var; do'.
72826
72827 2002-11-06  Bruno Haible  <bruno@clisp.org>
72828
72829         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
72830         * lib/gcd.c (gcd): Likewise.
72831
72832 2002-11-05  Bruno Haible  <bruno@clisp.org>
72833
72834         * lib/gcd.h: New file, from gettext-0.11.5.
72835         * lib/gcd.c: New file, from gettext-0.11.5.
72836
72837 2002-11-05  Bruno Haible  <bruno@clisp.org>
72838
72839         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72840         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72841         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72842         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72843
72844         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
72845         <libintl.h>.
72846         * lib/makepath.c: Include gettext.h instead of <locale.h> and
72847         <libintl.h>.
72848
72849         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
72850         * lib/human.c: Include gettext.h instead of <libintl.h>.
72851         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
72852         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
72853         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
72854         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
72855         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
72856         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
72857         (textdomain): Remove definition.
72858         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
72859
72860         * lib/long-options.c: Remove include of <libintl.h> and definition of
72861         _.
72862         * lib/same.c: Remove include of <libintl.h> and definition of _.
72863
72864 2002-11-04  Owen Taylor  <otaylor@redhat.com>
72865
72866         * lib/config.charset: A few additions for Solaris.
72867
72868 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
72869
72870         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
72871         * lib/localcharset.c (locale_charset): Declare as extern "C".
72872
72873 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
72874
72875         * lib/config.charset: msdos in uk_UA uses CP1125.
72876
72877 2002-11-04  Bruno Haible  <bruno@clisp.org>
72878
72879         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
72880         * lib/strcase.h: New file, from GNU gettext-0.11.5.
72881         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
72882         * lib/strstr.h: New file, from GNU gettext-0.11.5.
72883         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
72884
72885 2002-11-04  Bruno Haible  <bruno@clisp.org>
72886
72887         * lib/localcharset.c (locale_charset): Don't return an empty string.
72888
72889 2002-11-04  Bruno Haible  <bruno@clisp.org>
72890
72891         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
72892         aliases.
72893
72894 2002-11-04  Bruno Haible  <bruno@clisp.org>
72895
72896         * lib/config.charset: Update for newest glibc. Add canonical names
72897         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
72898
72899 2002-11-04  Bruno Haible  <bruno@clisp.org>
72900
72901         * lib/config.charset: Add support for NetBSD.
72902
72903 2002-11-04  Bruno Haible  <bruno@clisp.org>
72904
72905         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
72906
72907 2002-11-01  Bruno Haible  <bruno@clisp.org>
72908
72909         * configure.in: Add AC_CONFIG_AUX_DIR call.
72910         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
72911         test/Makefile.
72912         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
72913
72914 2002-09-28  Karl Berry  <karl@gnu.org>
72915
72916         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
72917         installed automake until the next release, since changes have been
72918         made.
72919
72920 2002-09-25  Karl Berry  <karl@gnu.org>
72921
72922         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
72923         * lib/getopt*: copy from libc/posix.
72924         * lib/gettext.h: copy from gettext.
72925         * lib/.cppi-disable: add strdup.c, gettext.h.
72926
72927 2002-09-25  Karl Berry  <karl@gnu.org>
72928
72929         * config/srclist.txt: enable gettext.h check.
72930         * config/config.{guess,sub}: update from prep.
72931         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
72932                 from automake 1.6.3.
72933         See srclist*.
72934
72935 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
72936
72937         * regex.c (PATFETCH): Remove the translating fetch.
72938         (PATFETCH_RAW): Rename to PATFETCH.
72939         (set_image_of_range): New fun.
72940         (SET_RANGE_TABLE_WORK_AREA): Use it.
72941         (regex_compile): Don't translate the pattern chars so eagerly.
72942         Only do it when inserting an `exactn' bytecode or when handling
72943         a char-range.
72944         (mutually_exclusive_p): Avoid empty statement.
72945
72946 2002-07-06  Jim Meyering  <meyering@lucent.com>
72947
72948         * m4/README: Don't mention Makefile.am.in.
72949         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
72950
72951 2002-07-01  Jim Meyering  <meyering@lucent.com>
72952
72953         * lib/c-stack.c: Include sys/time.h.
72954         From Volker Borchert.
72955
72956 2002-06-26  Paul Eggert  <eggert@twinsun.com>
72957
72958         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
72959
72960 2002-06-26  Paul Eggert  <eggert@twinsun.com>
72961
72962         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
72963         New macro.  Use it uniformly instead of
72964         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
72965         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
72966         reported by Vin Shelton.
72967
72968 2002-06-22  Paul Eggert  <eggert@twinsun.com>
72969
72970         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
72971         Do not assume SA_SIGINFO behavior.
72972         Bug reported by Jim Meyering on NetBSD 1.5.2.
72973
72974 2002-06-22  Jim Meyering  <meyering@lucent.com>
72975
72976         * m4/c-stack.m4: New file, from diffutils-2.8.2.
72977         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
72978
72979         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
72980         now that configure.ac uses AC_GNU_SOURCE.
72981         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
72982         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
72983
72984         Update to latest tools.  Suggestions from Paul Eggert.
72985         * m4/stdbool.m4: New file, from diffutils-2.8.2.
72986         * m4/gnu-source.m4: Update from diffutils-2.8.2.
72987         * m4/fnmatch.m4: Likewise.
72988         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
72989         to AC_HEADER_STDBOOL
72990
72991 2002-06-22  Jim Meyering  <meyering@lucent.com>
72992
72993         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
72994         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
72995
72996 2002-06-22  Jim Meyering  <meyering@lucent.com>
72997
72998         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
72999
73000         * lib/exitfail.c, exitfail.h: Likewise.
73001         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
73002
73003         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
73004         of fnmatch.h.
73005         (EXTRA_DIST): Add fnmatch_loop.c.
73006         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
73007
73008         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
73009         * lib/fnmatch.c: Update from diffutils-2.8.2.
73010         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
73011         * lib/fnmatch.h: Remove file.
73012
73013 2002-06-21  Jim Meyering  <meyering@lucent.com>
73014
73015         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
73016         * m4/mbrtowc.m4: Likewise.
73017
73018         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
73019         * m4/mbswidth.m4: Reflect name change:
73020         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
73021         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
73022
73023         * m4/lib-link.m4: Update from gettext-0.11.2.
73024         * m4/gettext.m4: Likewise.
73025
73026         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
73027         From Alfred M. Szmidt.
73028
73029 2002-06-18  Paul Eggert  <eggert@twinsun.com>
73030
73031         * lib/file-type.h: Report an error if neither S_ISREG nor
73032         S_IFREG is defined, instead of using a test specific to glibc
73033         2.2.  This should be safe, since POSIX requires S_ISREG and
73034         Unix Version 7 had S_IFREG.  We don't need to check for
73035         <sys/types.h> since we don't use any symbols that it defines.
73036
73037 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
73038
73039         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
73040         $@-t, so that each temporary file name is unique and valid in the first
73041         8 characters, for operation under DOS.
73042
73043 2002-06-15  Paul Eggert  <eggert@twinsun.com>
73044
73045         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
73046
73047 2002-06-15  Jim Meyering  <meyering@lucent.com>
73048
73049         Work even with DJGPP 2.03, which lacks support for symlinks.
73050         From Richard Dawe.
73051         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
73052         is defined.
73053         * lib/lchown.c (S_ISLNK): Likewise.
73054
73055 2002-06-15  Jim Meyering  <meyering@lucent.com>
73056
73057         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
73058         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
73059         have been included before this file.
73060
73061 2002-06-14  Jim Meyering  <meyering@lucent.com>
73062
73063         * lib/file-type.h: Use the version from diffutils-2.8.2.
73064         * lib/file-type.c: Likewise.
73065
73066 2002-06-07  Jim Meyering  <meyering@lucent.com>
73067
73068         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
73069         They're needed at least for NetBSD 1.5.2.
73070         ($statxfs_includes): Include those same headers.
73071         ($statxfs_includes): Include sys/vfs.h if available.
73072         ($statxfs_includes): Likewise for sys/statvfs.h.
73073         Check for the following members in both structs statfs and statvfs:
73074         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
73075
73076 2002-06-01  Jim Meyering  <meyering@lucent.com>
73077
73078         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
73079         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
73080
73081 2002-05-28  Jim Meyering  <meyering@lucent.com>
73082
73083         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
73084         Reported by Volker Borchert.
73085
73086 2002-05-27  Jim Meyering  <meyering@lucent.com>
73087
73088         Fix a problem seen only on nonconforming systems whereby ls.c's
73089         use of localtime, and then of gettimeofday would cause trouble:
73090         the localtime call used to initialize rpl_gettimeofday's save
73091         mechanism would clobber ls's current local time information so
73092         that in any long listing the first file would always be listed
73093         with date 1970-01-01.  Analysis by Volker Borchert.
73094
73095         * lib/gettimeofday.c (localtime): Undefine.
73096         (rpl_localtime): New function.
73097
73098 2002-05-27  Jim Meyering  <meyering@lucent.com>
73099
73100         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
73101         localtime.
73102
73103         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
73104         use the replacement function; it wouldn't resolve at link time.
73105         Reported by Volker Borchert.
73106
73107 2002-05-22  Jim Meyering  <meyering@lucent.com>
73108
73109         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
73110         file-type.h.
73111         * lib/file-type.h: New file.
73112         * lib/file-type.c (file_type): New file/function.  Extracted from
73113         diffutils.
73114
73115 2002-04-30  Jim Meyering  <meyering@lucent.com>
73116
73117         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
73118
73119 2002-04-29  Paul Eggert  <eggert@twinsun.com>
73120
73121         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
73122
73123 2002-04-29  Paul Eggert  <eggert@twinsun.com>
73124
73125         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
73126         Do not check for alloca.h (no longer used) or stdbool.h (was never
73127         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
73128
73129 2002-04-29  Paul Eggert  <eggert@twinsun.com>
73130
73131         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
73132
73133 2002-04-29  Jim Meyering  <meyering@lucent.com>
73134
73135         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
73136         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
73137         Use AC_FUNC_STRNLEN here instead.
73138
73139         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
73140         With autoconf-2.53a, it's part of AC_PROG_CC.
73141
73142 2002-04-28  Paul Eggert  <eggert@twinsun.com>
73143
73144         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
73145         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
73146
73147 2002-04-28  Paul Eggert  <eggert@twinsun.com>
73148
73149         * lib/sig2str.h, lib/sig2str.c: New files.
73150         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
73151
73152 2002-04-28  Paul Eggert  <eggert@twinsun.com>
73153
73154         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
73155         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
73156         of 127, since 64 is the largest conceivable number for ancient
73157         nonstandard hosts.
73158         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
73159
73160 2002-04-28  Jim Meyering  <meyering@lucent.com>
73161
73162         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
73163
73164 2002-04-24  Jim Meyering  <meyering@lucent.com>
73165
73166         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
73167         (jm_PREREQ): Use it.
73168
73169         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
73170         mach/mach.h fcntl.h.
73171         Check for this function: setlocale.
73172
73173 2002-04-24  Jim Meyering  <meyering@lucent.com>
73174
73175         * lib/gettext.h: New file, from Gettext.
73176         * lib/Makefile.am (INCLUDES): Remove -I../intl.
73177         (libfetish_a_SOURCES): Add gettext.h.
73178
73179 2002-04-16  Jim Meyering  <meyering@lucent.com>
73180
73181         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
73182         ut_pid, ut_id, ut_exit.
73183
73184 2002-04-16  Jim Meyering  <meyering@lucent.com>
73185
73186         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
73187         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
73188         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
73189
73190 2002-04-12  Jim Meyering  <meyering@lucent.com>
73191
73192         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
73193         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
73194         existence of the getmntinfo function.  Needed for Darwin 5.3.
73195
73196         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
73197         This is necessary at least on Darwin 5.3.
73198
73199         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
73200         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
73201         strnlen.o in the library, and that makes some versions of ranlib
73202         object.
73203
73204 2002-04-12  Jim Meyering  <meyering@lucent.com>
73205
73206         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
73207
73208 2002-04-09  Jim Meyering  <meyering@lucent.com>
73209
73210         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
73211         to be more precise.  Rather than saying we're checking whether the
73212         function `works', say what we're testing.
73213         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
73214         Reported by Bruno Haible.
73215
73216 2002-03-10  Jim Meyering  <meyering@lucent.com>
73217
73218         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
73219         Suggestion from Santiago Vila.
73220
73221 2002-03-08  Jim Meyering  <meyering@lucent.com>
73222
73223         * lib/rename.c: Mention that this wrapper is needed also on
73224         mips-dec-ultrix4.4 systems.
73225
73226 2002-03-02  Jim Meyering  <meyering@lucent.com>
73227
73228         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
73229         not HAVE_CLOCK_SETTIME.
73230
73231 2002-02-27  Paul Eggert  <eggert@twinsun.com>
73232
73233         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
73234         Check for clock_settime.
73235
73236 2002-02-27  Paul Eggert  <eggert@twinsun.com>
73237
73238         * lib/nanosleep.h: Rename to....
73239         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
73240
73241         * lib/gettime.c: New file.
73242         * lib/settime.c: New file.
73243         * lib/stime.c: Remove.
73244
73245         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
73246         timespec.h.  Remove nanosleep.h.
73247
73248 2002-02-25  Paul Eggert  <eggert@twinsun.com>
73249
73250         * m4/acl.m4: New file.
73251         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
73252         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
73253
73254 2002-02-25  Paul Eggert  <eggert@twinsun.com>
73255
73256         * lib/acl.c, lib/acl.h: New files.
73257         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
73258
73259 2002-02-24  Jim Meyering  <meyering@lucent.com>
73260
73261         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
73262         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
73263         cause trouble.  Reported by Nelson Beebe.
73264
73265 2002-02-23  Paul Eggert  <eggert@twinsun.com>
73266
73267         * lib/path-concat.c (xpath_concat): Reorder code to pacify
73268         compilers that don't know that xalloc_die never returns.
73269
73270 2002-02-20  Jim Meyering  <meyering@lucent.com>
73271
73272         * lib/getdate.c: Regenerate using bison-1.33.
73273
73274 2002-02-17  Jim Meyering  <meyering@lucent.com>
73275
73276         * config/config.guess (main): Don't use `head -1'; it's no longer
73277         portable. Use `sed 1q' instead.
73278
73279 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
73280
73281         * m4/codeset.m4: Upgrade to gettext-0.11.
73282         * m4/gettext.m4: Upgrade to gettext-0.11.
73283         * m4/glibc21.m4: Upgrade to gettext-0.11.
73284         * m4/iconv.m4: Upgrade to gettext-0.11.
73285         * m4/isc-posix.m4: Upgrade to gettext-0.11.
73286         * m4/lcmessage.m4: Upgrade to gettext-0.11.
73287         * m4/lib-ld.m4: New file, from gettext-0.11.
73288         * m4/lib-link.m4: New file, from gettext-0.11.
73289         * m4/lib-prefix.m4: New file, from gettext-0.11.
73290         * m4/progtest.m4: Upgrade to gettext-0.11.
73291
73292 2002-02-15  Paul Eggert  <eggert@twinsun.com>
73293
73294         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
73295         (jm_PREREQ): Use it.
73296
73297 2002-02-15  Paul Eggert  <eggert@twinsun.com>
73298
73299         * lib/posixver.c, lib/posixver.h: New files.
73300         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
73301
73302 2002-02-02  Paul Eggert  <eggert@twinsun.com>
73303             Bruno Haible  <bruno@clisp.org>
73304
73305         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
73306         (fwrite_success_callback): New declaration.
73307         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
73308         print_unicode_char. Call failure callback instead of error.
73309         (fwrite_success_callback): New function.
73310         (exit_failure_callback): New function.
73311         (fallback_failure_callback): New function.
73312         (print_unicode_char): Call unicode_to_mb.
73313
73314 2002-01-26  Jim Meyering  <meyering@lucent.com>
73315
73316         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
73317         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
73318
73319 2002-01-26  Jim Meyering  <meyering@lucent.com>
73320
73321         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
73322
73323 2002-01-22  Paul Eggert  <eggert@twinsun.com>
73324
73325         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
73326
73327 2002-01-22  Jim Meyering  <meyering@lucent.com>
73328
73329         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
73330         Otherwise, some versions of automake would omit the rule that makes
73331         Makefile from Makefile.in.
73332
73333 2002-01-21  Paul Eggert  <eggert@twinsun.com>
73334
73335         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
73336         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
73337         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
73338         (memcoll): Set errno to zero if there is no error.
73339
73340         * lib/quotearg.c (quotearg_buffer_restyled):
73341         Fix bug with quoting buffers containing NUL when backslashing escapes.
73342         This bug was exposed by the other changes in this patch.
73343         (quotearg_n_options): New arg ARGSIZE.
73344         All callers changed.
73345         (quoting_options_from_style): New function.
73346         (quotearg_n_style): Use it.
73347         (quotearg_n_style_mem): New function.
73348
73349         * lib/quotearg.h (quotearg_n_style_mem): New function.
73350
73351 2002-01-19  Jim Meyering  <meyering@lucent.com>
73352
73353         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
73354         Remove useless quotes: DF_PROG="df".
73355         * m4/strnlen.m4: New file.
73356
73357 2002-01-16  Paul Eggert  <eggert@twinsun.com>
73358
73359         * lib/backupfile.c (ISDIGIT): Comment fix.
73360         * lib/getdate.y (ISDIGIT): Likewise.
73361         * lib/posixtm.c (ISDIGIT, year): Likewise.
73362         * lib/strverscmp.c (ISDIGIT): Likewise.
73363         * lib/userspec.c (ISDIGIT): Likewise.
73364
73365 2002-01-16  Jim Meyering  <meyering@lucent.com>
73366
73367         * lib/getdate.y: Add three semicolons, each just before a closing
73368         brace. Bison (as of version 1.31) no longer papers over that mistake.
73369
73370 2002-01-05  Jim Meyering  <meyering@lucent.com>
73371
73372         * lib/version-etc.c (version_etc_copyright): Update copyright year.
73373
73374 2001-12-19  Paul Eggert  <eggert@twinsun.com>
73375
73376         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
73377         not silently exit merely because the output buffer happens to
73378         have nothing pending.
73379
73380 2001-12-18  Paul Eggert  <eggert@twinsun.com>
73381
73382         See the big note in ../ChangeLog.
73383         * lib/human.c (suffixes): Prefer K to k for 1024.
73384         (generate_suffix_backwards): New function.
73385         (human_readable_inexact): Use it.
73386         * lib/xstrtol.c (__xstrtol): If there is no number but there
73387         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
73388         Accept 'K' as well as 'k'.
73389
73390 2001-12-15  Jim Meyering  <meyering@lucent.com>
73391
73392         * lib/regex.h (__restrict_arr): Update from libc.
73393
73394         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
73395         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
73396         (STREQ): Define.
73397
73398 2001-12-14  Jim Meyering  <meyering@lucent.com>
73399
73400         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
73401         Suggestion from Bruno Haible.
73402
73403 2001-12-10  Jim Meyering  <meyering@lucent.com>
73404
73405         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
73406         xrealloc, Instead, include "xalloc.h".
73407         (initbuffer): Don't cast xmalloc return value to char*.
73408         (readline): Reword comment.
73409         Don't cast xrealloc return value to char*
73410         Return NULL, not 0.
73411
73412 2001-12-09  Jim Meyering  <meyering@lucent.com>
73413
73414         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
73415         about `signed and unsigned type in conditional expression'.
73416         * lib/posixtm.c (posix_time_parse): Likewise.
73417
73418         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
73419
73420         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
73421         to avoid a pedantic warning.
73422
73423         * lib/getstr.c: Don't include assert.h.
73424         (getstr): Remove warning-evoking assertions.
73425         Return -1 if offset parameter is out of bounds.
73426         Change the type of a local from int to size_t.
73427
73428         * lib/strftime.c (my_strftime_localtime_r): Include this function
73429         definition in the `#if ! HAVE_TM_GMTOFF' block.
73430
73431         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
73432         Include xalloc.h instead.
73433
73434 2001-12-02  Jim Meyering  <meyering@lucent.com>
73435
73436         * lib/tempname.c: Don't declare getenv, thus reverting the change of
73437         2001-11-18.  It's no longer necessary, now that stdlib.h is always
73438         included.
73439
73440         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
73441         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
73442
73443 2001-11-30  Akim Demaille  <akim@epita.fr>
73444
73445         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
73446         before being defined.
73447
73448 2001-11-27  Paul Eggert  <eggert@twinsun.com>
73449
73450         * lib/quotearg.h (quotearg_n, quotearg_n_style):
73451         First arg is int, not unsigned.
73452         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
73453         (SIZE_MAX, UINT_MAX): New macros.
73454         (quotearg_n_options): Abort if N is negative.
73455         Avoid overflow check on hosts where size_t is 64 bits and int
73456         is 32 bits, as overflow is impossible there.
73457         Fix off-by-one typo that caused unnecessary reallocation.
73458
73459 2001-11-27  Jim Meyering  <meyering@lucent.com>
73460
73461         * lib/tempname.c: Merge with version from libc.
73462         * lib/regex.c: Likewise.
73463
73464         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
73465         systems for which STDC_HEADERS is 0, it was not included, resulting in
73466         a warning about an integer-to-pointer conversion problem with getenv.
73467         Reported by Volker Borchert.
73468
73469 2001-11-26  Jim Meyering  <meyering@lucent.com>
73470
73471         * lib/gtod.h: Remove file.
73472         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
73473         * lib/gettimeofday.c: Don't include gtod.h.
73474         (GTOD_init): Remove function.
73475         (rpl_gettimeofday): Do its job here instead, rather than aborting.
73476         Suggestion from Volker Borchert.
73477
73478 2001-11-23  Jim Meyering  <meyering@lucent.com>
73479
73480         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
73481         it.
73482         * lib/hash.c (struct hash_table): Define it here instead.
73483
73484 2001-11-22  Jim Meyering  <meyering@lucent.com>
73485
73486         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
73487
73488 2001-11-20  Jim Meyering  <meyering@lucent.com>
73489
73490         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
73491         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
73492
73493 2001-11-19  Jim Meyering  <meyering@lucent.com>
73494
73495         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
73496         directory.  Use "conftestXXXXXX" as the template.
73497         Suggestion from Paul Eggert.
73498
73499         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
73500         immediately, so the test doesn't mistakenly hit the max-open-files
73501         limit.
73502
73503 2001-11-18  Paul Eggert  <eggert@twinsun.com>
73504
73505         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
73506         (TEMPORARIES): New macro.
73507         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
73508         removes an artificial limitation (e.g. HP-UX 10.20, where
73509         TMP_MAX is 17576).
73510
73511 2001-11-18  Jim Meyering  <meyering@lucent.com>
73512
73513         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
73514
73515 2001-11-18  Jim Meyering  <meyering@lucent.com>
73516
73517         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
73518         on SunOS 4.
73519
73520         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
73521         files will be created before anything else.
73522
73523 2001-11-17  Paul Eggert  <eggert@twinsun.com>
73524
73525         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
73526         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
73527
73528 2001-11-17  Jim Meyering  <meyering@lucent.com>
73529
73530         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
73531         Prompted by a report from Bob Proulx.
73532
73533         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
73534         Instead, require UTILS_FUNC_MKSTEMP.
73535
73536 2001-11-17  Jim Meyering  <meyering@lucent.com>
73537
73538         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
73539         Now, that's done as part of AC_FUNC_STRTOD.
73540
73541 2001-11-17  Jim Meyering  <meyering@lucent.com>
73542
73543         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
73544         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
73545         rather than group writable.  Patch by Juan F. Codagnone.
73546
73547         * lib/readtokens.c: Remove explicit declarations of xmalloc and
73548         xrealloc, Instead, include "xalloc.h".
73549
73550         * lib/mountlist.c: Include unlocked-io.h after all system headers.
73551         Remove explicit declarations of xmalloc, xrealloc,
73552         and xstrdup.  Instead, include "xalloc.h".
73553
73554         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
73555         unlocked-io.h.
73556         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
73557         Likewise.
73558         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
73559
73560         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
73561         Reported by Padraig Brady.
73562
73563         * lib/mkstemp.c: #undef mkstemp.
73564         Include config.h.
73565         (rpl_mkstemp): Rename from mkstemp.
73566         Protoize.
73567
73568 2001-11-16  Jim Meyering  <meyering@lucent.com>
73569
73570         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
73571         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
73572         determine the amount of total physical memory, use pstat_getstatic.
73573         HPUX-11 doesn't define _SC_PHYS_PAGES.
73574         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
73575         If sysconf couldn't be used to determine the amount of available
73576         physical memory, use both pstat_getstatic and pstat_getdynamic.
73577         Based on a patch from Bob Proulx.
73578
73579 2001-11-10  Jim Meyering  <meyering@lucent.com>
73580
73581         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
73582         (jm_PREREQ): Use it.
73583
73584 2001-11-09  Jim Meyering  <meyering@lucent.com>
73585
73586         * m4/jm-macros.m4: Require autoconf-2.52f.
73587         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
73588         Use these AC_-prefixed names, not the AM_-prefixed ones.
73589
73590         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
73591
73592 2001-11-05  Jim Meyering  <meyering@lucent.com>
73593
73594         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
73595
73596 2001-11-04  Jim Meyering  <meyering@lucent.com>
73597
73598         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
73599         $DEFS.
73600
73601 2001-11-03  Jim Meyering  <meyering@lucent.com>
73602
73603         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
73604         of AC_DEFUN.
73605
73606         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
73607         know the name of the variable in the macro definition.
73608
73609 2001-11-03  Jim Meyering  <meyering@lucent.com>
73610
73611         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
73612         in argmatch_to_argument call.
73613
73614         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
73615         argument.
73616
73617         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
73618         e.g., a fault due to an attempt to free a NULL pointer.
73619
73620 2001-11-01  Jim Meyering  <meyering@lucent.com>
73621
73622         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
73623         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
73624
73625 2001-11-01  Jim Meyering  <meyering@lucent.com>
73626
73627         * lib/dirfd.c, lib/dirfd.h: New files.
73628         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
73629
73630         * lib/hash.c (hash_print) [TESTING]: Clean up.
73631
73632 2001-10-22  Paul Eggert  <eggert@twinsun.com>
73633
73634         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
73635         to avoid a warning if -Wall.
73636
73637 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
73638
73639         * README: New file
73640         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
73641         (per RMS's instructions, this is now the canonical source)
73642         * lgpl/, gpl/: New directories.
73643
73644 2001-10-21  Paul Eggert  <eggert@twinsun.com>
73645
73646         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
73647
73648 2001-10-21  Jim Meyering  <meyering@lucent.com>
73649
73650         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
73651         this code would end up calling gettext even in packages built
73652         with --disable-nls.
73653         * lib/getopt.c (_): Likewise.
73654         * lib/regex.c (_): Likewise.
73655
73656 2001-10-20  Paul Eggert  <eggert@twinsun.com>
73657
73658         * m4/error.m4 (jm_PREREQ_ERROR):
73659         Do not invoke AC_CHECK_FUNCS with strerror_r, as
73660         AC_FUNC_STRERROR_R does that.
73661         Check for strerror declaration.
73662
73663         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
73664         are supposed to have them these days.
73665         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
73666         Merge changes from latest Autoconf CVS.
73667         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
73668         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
73669         POSIX decided to standardize on the int flavor of strerror_r.
73670
73671 2001-10-20  Paul Eggert  <eggert@twinsun.com>
73672
73673         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
73674         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
73675         Use strerror_r that is only a macro, even if it is not a function.
73676         (strerror): Check for HAVE_DECL_STRERROR before declaring.
73677         (private_strerror): Use prototypes, not old-style function definition.
73678         (print_errno_message): New function.
73679         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
73680         char*-flavored one.
73681         (error_tail, error, error_at_line): Use it.
73682
73683 2001-10-11  Jim Meyering  <meyering@lucent.com>
73684
73685         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
73686         and quote_n (1, ... to avoid clobbering a buffer.
73687
73688 2001-10-05  Jim Meyering  <meyering@lucent.com>
73689
73690         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
73691         hash-pjw.h.
73692         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
73693         * lib/hash-pjw.h: New file.
73694
73695 2001-09-30  Jim Meyering  <meyering@lucent.com>
73696
73697         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
73698         `struct fsstat' has the `f_fstypename' member.
73699         Use that to define FS_TYPE, which is now used to make
73700         the getfsstat link test tighter.
73701
73702 2001-09-30  Jim Meyering  <meyering@lucent.com>
73703
73704         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
73705         Include <sys/ucred.h>, for Apple Darwin.
73706         Include sys/mount.h and sys/fs_types.h only if available.
73707         (FS_TYPE): Define.
73708         (read_filesystem_list): Use FS_TYPE.
73709
73710 2001-09-29  Paul Eggert  <eggert@twinsun.com>
73711
73712         * lib/exclude.c (excluded_filename): 0 -> false, since it's
73713         a boolean context.
73714
73715 2001-09-29  Jim Meyering  <meyering@lucent.com>
73716
73717         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
73718         [one-argument getmntent function]): Include stdio.h before mntent.h.
73719         SunOS 4.1.x needs it for the declaration of `FILE'.
73720         Patch by Volker Borchert.
73721
73722         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
73723         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
73724         sys/fs_types.h, and make the link-test for getfsstat guard #include
73725         directives with appropriate #if HAVE_*_H tests so that we can
73726         detect getfsstat on Apple Darwin1.3.7 systems.
73727         Reported by Nelson Beebe.
73728         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
73729
73730 2001-09-28  Paul Eggert  <eggert@twinsun.com>
73731
73732         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
73733         #defines strtoimax.  Also treat the other strto* functions
73734         like strtoimax.
73735
73736         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
73737         Check for strtoul and strtoumax,
73738         as those declarations are made even in the signed case.
73739         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
73740         Likewise, for strtol and strtoimax.
73741
73742 2001-09-28  Paul Eggert  <eggert@twinsun.com>
73743
73744         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
73745         #defines strtoimax.  Also treat the other strto* functions
73746         like strtoimax.
73747
73748         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
73749         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
73750         (strtoimax, strtoumax): Do not declare if already defined as a macro.
73751
73752 2001-09-26  Jim Meyering  <meyering@lucent.com>
73753
73754         Most macros in unlocked-io.h had the wrong number of arguments.
73755         * lib/gen-uio: New script.
73756         (USE_UNLOCKED_IO): Define to 1 if not already defined.
73757         * lib/unlocked-io.hin: Remove file.
73758         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
73759         rather than trying to embed it here.
73760         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
73761         Reported by Padraig Brady.
73762
73763 2001-09-25  Volker Borchert  <bt@teknon.de>
73764
73765         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
73766         `result'.
73767
73768 2001-09-24  Jim Meyering  <meyering@lucent.com>
73769
73770         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
73771
73772 2001-09-23  Jim Meyering  <meyering@lucent.com>
73773
73774         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
73775         instead of the mere test for existence of mntent.h.  The latter
73776         would get a false-positive on AIX 3.4 systems.
73777         In the outer getmntent if-block, don't die if neither of the getmntent
73778         tests succeeds.  Instead, just fall through and continue with the
73779         remaining tests.
73780
73781 2001-09-23  Jim Meyering  <meyering@lucent.com>
73782
73783         * lib/mountlist.c: Remove useless parentheses in #if directives.
73784         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
73785         the deprecated MOUNTED symbol is no longer defined in mntent.h.
73786
73787 2001-09-22  Jim Meyering  <meyering@lucent.com>
73788
73789         * m4/gettext.m4: New file.  From gettext.
73790         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
73791         * m4/progtest.m4: Likewise
73792         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
73793         * m4/glibc21.m4: Likewise.
73794
73795         * m4/libintl.m4: Remove.  No longer used.
73796
73797 2001-09-22  Jim Meyering  <meyering@lucent.com>
73798
73799         * lib/localcharset.c: Update from latest gettext.
73800         * lib/config.charset: Likewise.
73801
73802 2001-09-20  Jim Meyering  <meyering@lucent.com>
73803
73804         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
73805         strtoimax.
73806         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
73807         strtoumax.
73808
73809 2001-09-20  Jim Meyering  <meyering@lucent.com>
73810
73811         * lib/xstrtol.c (strtoimax): Guard declaration with
73812         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
73813         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
73814         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
73815         (strtoumax): Likewise, for completeness (it wasn't necessary).
73816
73817 2001-09-17  Paul Eggert  <eggert@twinsun.com>
73818
73819         * lib/strtoimax.c (HAVE_LONG_LONG):
73820         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
73821         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
73822         to work around bug in IBM C compiler.
73823
73824 2001-09-17  Jim Meyering  <meyering@lucent.com>
73825
73826         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
73827         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
73828         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
73829         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
73830         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
73831         whenever the right hand side need not be expanded by the shell.
73832
73833 2001-09-16  Paul Eggert  <eggert@twinsun.com>
73834
73835         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
73836         library.  It's not correct, as some older glibcs are buggy.
73837         fnmatch wasn't fixed until glibc 2.2.
73838
73839         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
73840         special shell magic here.
73841
73842 2001-09-16  Jim Meyering  <meyering@lucent.com>
73843
73844         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
73845         * m4/jm-macros.m4: Require it.
73846
73847 2001-09-16  Jim Meyering  <meyering@lucent.com>
73848
73849         * lib/mkdir.c: New file.
73850
73851 2001-09-15  Jim Meyering  <meyering@lucent.com>
73852
73853         * m4/jm-macros.m4: Check for help2man.
73854
73855 2001-09-11  Jim Meyering  <meyering@lucent.com>
73856
73857         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
73858         The body, by Paul Eggert, was moved here from configure.in.
73859         * m4/jm-macros.m4: Require UTILS_HOST_OS.
73860
73861 2001-09-04  Paul Eggert  <eggert@twinsun.com>
73862
73863         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
73864         (jm_PREREQ): Use it.
73865
73866 2001-09-04  Paul Eggert  <eggert@twinsun.com>
73867
73868         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
73869         Use ssize_t, not int, to store result of readlink.
73870         Check for ssize_t overflow as well as size_t overflow,
73871         as POSIX says the result of readlink is implementation-defined
73872         when ssize_t overflows.
73873         Remove unnecessary cast to char*.
73874         Use free+malloc instead of realloc, as the storage doesn't need
73875         to be preserved and it's clearer and can be more efficient that way.
73876         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
73877         * lib/xreadlink.h (xreadlink): Update prototype.
73878
73879 2001-09-04  Paul Eggert  <eggert@twinsun.com>
73880
73881         * lib/xgetcwd.c: Revert some of the previous change; intead,
73882         fix the HAVE_GETCWD_NULL code to behave more like the
73883         !HAVE_GETCWD_NULL code used to.
73884
73885         Include "xalloc.h".
73886         (xgetcwd): Do not return NULL when memory is exhausted; instead,
73887         invoke xalloc_die.
73888
73889 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73890
73891         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
73892         sys/param.h, as pathmax.h includes them.
73893
73894 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73895
73896         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
73897         (jm_PREREQ_XGETCWD): New macro.
73898
73899         * m4/getcwd.m4: New file.
73900
73901 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73902
73903         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
73904         like the HAVE_GETCWD_NULL code.
73905         Include pathmax.h if not HAVE_GETCWD.
73906         Do not include xalloc.h.
73907         (INITIAL_BUFFER_SIZE): New symbol.
73908         Do not use xmalloc / xrealloc, since the caller is responsible for
73909         handling errors.  Preserve errno around `free' during failure.
73910         Do not overrun buffer when using getwd.
73911
73912 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73913
73914         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
73915         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
73916         getcwd (NULL, 0).
73917
73918 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73919
73920         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
73921         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
73922         spotted by Jim Meyering.
73923
73924 2001-09-03  Jim Meyering  <meyering@lucent.com>
73925
73926         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
73927         failure.
73928
73929 2001-09-02  Jim Meyering  <meyering@lucent.com>
73930
73931         * lib/error.c: Update from GNU libc.
73932
73933 2001-09-01  Jim Meyering  <meyering@lucent.com>
73934
73935         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
73936         Used by df.
73937
73938 2001-09-01  Jim Meyering  <meyering@lucent.com>
73939
73940         * lib/xreadlink.c: New file.
73941         * lib/xreadlink.h: New file.
73942         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
73943         xreadlink.h.
73944
73945         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
73946         doesn't conflict with sparc Solaris 7's definition in
73947         /usr/include/sys/int_types.h.
73948
73949         * lib/exclude.c: Use `""', not `<>' to #include non-system header
73950         files.
73951         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
73952         and strncasecmp as r-values.  Unixware didn't have declarations.
73953
73954 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73955
73956         * lib/xstrtol.h: Add copyright notice.
73957         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
73958         LONGINT_INVALID_SUFFIX_CHAR.
73959
73960 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73961
73962         * lib/xstrtol.c (strtoimax): New decl.
73963
73964 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73965
73966         * lib/xgetcwd.c: Don't include pathmax.h.
73967         Include stdlib.h and unistd.h if available.
73968         Include xalloc.h.
73969         (xmalloc, xstrdup, free): Remove decls.
73970         (xgetcwd): Don't assume sizes fit in unsigned.
73971         Check for overflow when computing sizes.
73972         Simplify reallocation code.
73973
73974 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73975
73976         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
73977         a directory's st_size can have an arbitrary value, so the old
73978         usage could waste an arbitrary amount of memory.  All uses
73979         changed.
73980         * lib/savedir.h: Update prototype.
73981
73982 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73983
73984         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
73985
73986         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
73987         old strtoimax.c.
73988
73989         Also, make the following further changes to make this file's
73990         configuration more similar to that of strtol.c:
73991         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
73992         (strtoumax, uintmax_t, strtoull, strtol): Remove.
73993         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
73994         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
73995         changed to signed values.
73996
73997         And make the following changes as well:
73998         Fix copyright notice, as 1999 was missing.
73999         (verify): New macro.
74000         (strtoimax): Check sizes at compile-time, not run-time.
74001         Prefer strtol to strtoll if both work.
74002         (main): Remove; it was not that useful and was a pain to maintain.
74003
74004         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
74005
74006 2001-08-31  Jim Meyering  <meyering@lucent.com>
74007
74008         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
74009         Use an initial, malloc'd, buffer of length 128 rather than
74010         a statically allocated one of length 1024.
74011
74012 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74013
74014         Simplify code, partly by assuming autoconf 2.52 semantics.
74015
74016         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
74017
74018         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
74019         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
74020         All uses removed.
74021         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
74022         Move AC_REQUIRE to next-to-top level, to avoid confusion.
74023         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
74024         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
74025         jm_AC_HEADER_INTTYPES_H.
74026         * m4/jm-macros.m4 (jm_MACROS): Likewise.
74027
74028         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
74029
74030         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
74031         Quote first arg of AC_DEFUN.
74032         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
74033         since they are needed to parse the include file even if we need
74034         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
74035         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
74036         but with opposite signedness.
74037
74038 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74039
74040         Merge 'exclude' changes from tar 1.13.22.
74041         This fixes one or two unlikely storage allocation overflow bugs,
74042         but doesn't change user-visible behavior otherwise.
74043
74044 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74045
74046         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
74047         (jm_PREREQ_EXCLUDE): New macro.
74048
74049 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74050
74051         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
74052         tm to be declared.
74053
74054 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74055
74056         * lib/hash.c: Remove '2001' from copyright notice.
74057
74058 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74059
74060         * lib/full-write.h: New file.
74061         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
74062         * lib/full-write.c: Correct credits, as cccp.c no longer
74063         exists and anyway it was so heavily changed from the old cccp
74064         code as to be unrecognizable.  Include full-write.h.
74065         (full_write) Return size_t, with short writes meaning failure.
74066         All callers changed.  This fixes a bug with large buffers
74067         on 64-bit hosts.
74068         * lib/utime.c: Include full-write.h.
74069
74070 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74071
74072         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
74073         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
74074         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
74075         Include if available.
74076         (<xalloc.h>): Include
74077         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
74078         (verify): New macro.  Use it to verify that EXCLUDE macros do not
74079         collide with FNM macros.
74080         (struct patopts): New struct.
74081         (struct exclude): Use it, as exclude patterns now come with options.
74082         (new_exclude): Support above changes.
74083         (new_exclude, add_exclude_file):
74084         Initial size must now be a power of two to simplify overflow checking.
74085         (free_exclude, fnmatch_no_wildcards): New function.
74086         (excluded_filename): No longer requires options arg, as the options
74087         are determined by add_exclude.  Now returns bool, not int.
74088         (excluded_filename, add_exclude):
74089         Add support for the fancy new exclusion options.
74090         (add_exclude, add_exclude_file): Now takes int options arg.
74091         Check for arithmetic overflow when computing sizes.
74092         (add_exclude_file): xrealloc might modify errno, so don't
74093         realloc until after errno might be used.
74094
74095         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
74096         New macros.
74097         (free_exclude): New decl.
74098         (add_exclude, add_exclude_file): Now takes int options arg.
74099         (excluded_filename): No longer requires options arg, as the options
74100         are determined by add_exclude.  Now returns bool, not int.
74101
74102 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74103
74104         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
74105
74106 2001-08-27  Jim Meyering  <meyering@lucent.com>
74107
74108         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
74109
74110         * lib/version-etc.c (N_): Remove definition.
74111         Revert most of last change.
74112         Instead, simply don't mark the `Copyright...' string for translation.
74113         Based on advice from Paul Eggert.
74114
74115         * lib/strtoxmax.c: Tweak comment.
74116
74117 2001-08-26  Jim Meyering  <meyering@lucent.com>
74118
74119         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
74120
74121         * m4/xstrtoimax.m4: New file.
74122         * m4/xstrtoumax.m4: Add comments explaining why we
74123         AC_REPLACE_FUNCS(strtol).
74124
74125 2001-08-26  Jim Meyering  <meyering@lucent.com>
74126
74127         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
74128         of copyright with `%s' so translators don't get an untranslated
74129         message in 2002.
74130         (COPYRIGHT_YEAR): Define.
74131         (version_etc): Use fprintf rather than fputs.
74132         Suggestion from Ulrich Drepper.
74133
74134         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
74135
74136         * lib/strtoll.c: New file, from GNU libc.
74137         * lib/xstrtoimax.c: New file.
74138
74139         * lib/xstrtol.h: Add xstrtoimax.
74140         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
74141         * lib/strtoimax.c: New file.  Likewise, but first define
74142         STRTOUXMAX_SIGNED.
74143
74144         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
74145         ...
74146         * lib/strtoxmax.c: ... then renamed to this.
74147
74148 2001-08-18  Paul Eggert  <eggert@twinsun.com>
74149
74150         * m4/inttypes.m4: Add AC_PREREQ(2.13).
74151         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
74152         (jm_AC_TYPE_INTMAX_T): New macro.
74153         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
74154
74155         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
74156
74157         * m4/longlong.m4: Renamed from ulonglong.m4.
74158         * m4/inttypes.m4: Renamed from inttypes_h.m4.
74159         * m4/uintmax_t.m4: Removed.
74160
74161 2001-08-13  Paul Eggert  <eggert@twinsun.com>
74162
74163         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
74164         Port to Solaris 8, where 'sed' requires a space after the 'r'
74165         command, and where sh dislikes "$/".  Clean up the spacing a bit.
74166         Redirect output to $tmp just once.
74167
74168 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
74169
74170         * lib/addext.c (<errno.h>): Include.
74171         (errno): Declare if not defined.
74172         (addext): Work correctly when pathconf returns -1 and leaves
74173         errno alone because there is no limit.  Also, work even if
74174         pathconf returns a value greater than SIZE_MAX.
74175
74176 2001-08-12  Jim Meyering  <meyering@lucent.com>
74177
74178         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
74179         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
74180         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
74181         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
74182         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
74183         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
74184         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
74185         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
74186         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
74187         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
74188         utime.m4, utimes.m4, xstrtoumax.m4:
74189         Quote the first argument in each use of AC_DEFUN.
74190
74191 2001-08-12  Jim Meyering  <meyering@lucent.com>
74192
74193         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
74194         Simply `return getcwd (NULL, 0);'.
74195         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
74196         Use 1300 as initial value for length, not PATH_MAX.
74197
74198         * lib/pathmax.h: Clean up cpp syntax.
74199
74200 2001-08-12  Jim Meyering  <meyering@lucent.com>
74201
74202         * lib/gettimeofday.c: New file.
74203         * lib/gtod.h: New file.
74204         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
74205
74206 2001-08-05  Jim Meyering  <meyering@lucent.com>
74207
74208         * m4/jm-macros.m4: Require autoconf-2.52.
74209
74210 2001-08-04  Jim Meyering  <meyering@lucent.com>
74211
74212         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
74213         stmt, to get in sync with glibc.
74214
74215 2001-08-03  Paul Eggert  <eggert@twinsun.com>
74216
74217         The following changes are from gettext 0.10.39 as maintained by
74218         Bruno Haible.
74219
74220         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
74221         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
74222         with inverted sense.  All uses changed.
74223
74224         * lib/mbswidth.c: Don't include <limits.h>.
74225         Include <stdlib.h> and <string.h> unconditionally.
74226         (iswcntrl, mbsinit, ISCNTRL): New macros.
74227         (mbsnwidth): Use K&R style function declarations.
74228         Don't bother checking for MB_LEN_MAX == 1, since the compiler
74229         can optimize it when MB_CUR_MAX == 1.
74230         The width of control characters is zero, not 1.
74231
74232 2001-08-03  Paul Eggert  <eggert@twinsun.com>
74233
74234         The following changes are from gettext 0.10.39 as maintained by
74235         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
74236
74237         * m4/codeset.m4: Upgrade to serial AM1.
74238         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
74239         all uses changed.  Quote first arg of AC_DEFUN.
74240         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
74241
74242         * m4/iconv.m4: Upgrade to serial AM2.
74243         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
74244         Add --with-libconv-prefix.
74245         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
74246         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
74247         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
74248         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
74249         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
74250
74251         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
74252         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
74253         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
74254         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
74255         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
74256         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
74257         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
74258         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
74259         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
74260
74261         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
74262         string.h any more.
74263
74264         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
74265         not the default value.
74266
74267         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
74268         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
74269         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
74270         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
74271         Also check for iswcntrl, used for wcwidth fallback.
74272         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
74273         to Autoconf 2.13.
74274
74275 2001-08-03  Jim Meyering  <meyering@lucent.com>
74276
74277         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
74278         as it was in the original.  Reported by Paul Eggert.
74279
74280 2001-07-16  Jim Meyering  <meyering@lucent.com>
74281
74282         * m4/gettimeofday.m4: New file.
74283         Prompted by a report from Bernhard Baehr.
74284
74285 2001-07-15  Jim Meyering  <meyering@lucent.com>
74286
74287         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
74288         stuff. Now it's in ../Makefile.cfg.
74289
74290 2001-07-15  Jim Meyering  <meyering@lucent.com>
74291
74292         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
74293         (BUILT_SOURCES): Add unlocked-io.h.
74294         (io_functions): Define.
74295         (unlocked-io.h): New rule.
74296         (DISTCLEANFILES): Add unlocked-io.h.
74297         (all-local): Depend on unlocked-io.h, to ensure it is created.
74298
74299         * lib/unlocked-io.hin: New file
74300
74301         * lib/regex.c: Update from glibc.
74302
74303 2001-07-05  Jim Meyering  <meyering@lucent.com>
74304
74305         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
74306         recommendation.
74307         (libfetish_a_SOURCES): Put all .h files here instead.
74308         Remove a thus-exposed (better checks in automake) duplicate and
74309         two unnecessary .h files.
74310
74311 2001-07-04  Jim Meyering  <meyering@lucent.com>
74312
74313         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
74314         that generates jm-glibc-io.m4 so that it doesn't trigger any make
74315         distcheck failure.
74316
74317 2001-07-02  Jim Meyering  <meyering@lucent.com>
74318
74319         The following changes were prompted by suggestions from Bruno Haible.
74320
74321         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
74322         is now generated.
74323         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
74324         definition of EXTRA_DIST.
74325         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
74326         ensure that the generated file is created/updated whenever the list
74327         of $(unlocked_functions) is changed.
74328         (jm-glibc-io.m4): New rule.
74329         (unlocked-io.h): New rule -- currently unused.
74330
74331 2001-06-24  Jim Meyering  <meyering@lucent.com>
74332
74333         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
74334         unmatched right bracket, rather than kludging it with an extra,
74335         falsely-matching quote in a comment.  Patch by Akim Demaille.
74336
74337 2001-06-11  Jim Meyering  <meyering@lucent.com>
74338
74339         * lib/regex.c: Update from GNU libc.
74340
74341 2001-05-27  Jim Meyering  <meyering@lucent.com>
74342
74343         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
74344         Check for ut_type in struct utmp.
74345
74346 2001-05-27  Jim Meyering  <meyering@lucent.com>
74347
74348         * lib/readutmp.h (UT_TYPE): Define.
74349
74350 2001-05-24  Jim Meyering  <meyering@lucent.com>
74351
74352         * lib/argmatch.c: Include "quote.h".
74353         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
74354         quote function.  Reported by Göran Uddeborg.
74355
74356 2001-05-22  Jim Meyering  <meyering@lucent.com>
74357
74358         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
74359         now that we use the package-supplied version unconditionally.
74360         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
74361
74362 2001-05-21  Jim Meyering  <meyering@lucent.com>
74363
74364         * m4/regex.m4: Change a couple backticks to single quotes to avoid
74365         shell syntax errors.
74366
74367 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
74368
74369         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
74370
74371 2001-05-20  Paul Eggert  <eggert@twinsun.com>
74372
74373         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
74374         Don't bother to check library strftime, since
74375         we'll be using our own my_strftime function anyway.
74376         Define my_strftime instead of strftime.
74377
74378 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
74379
74380         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
74381         which is not yet declared.
74382
74383 2001-05-15  Jim Meyering  <meyering@lucent.com>
74384
74385         * m4/regex.m4: Use proper quoting so brackets appear in the test
74386         program.
74387         Reported by, and with help from, Bruno Haible.
74388
74389 2001-05-13  Jim Meyering  <meyering@lucent.com>
74390
74391         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
74392         undefined.
74393
74394 2001-05-11  Paul Eggert  <eggert@twinsun.com>
74395
74396         dirname code cleanup.  base_name now behaves more compatibly
74397         with POSIX basename when given file names that have trailing
74398         slashes, and similarly for dir_name.  Add new primitives
74399         base_len and dir_len.  Put the directory-name-related decls
74400         into dirname.h.
74401
74402         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
74403         * lib/backupfile.c (base_name): Likewise.
74404         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
74405         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
74406         * lib/makepath.c (strip_trailing_slashes): Likewise.
74407         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
74408         ISSLASH): Likewise.
74409         * lib/rename.c (strip_trailing_slashes): Likewise.
74410         * lib/same.c (base_name): Likewise.
74411         * lib/stripslash.c (ISSLASH): Likewise.
74412
74413         * lib/addext.c: Include <dirname.h> after size_t is defined.
74414         * lib/backupfile.c: Likewise.
74415
74416         * lib/addext.c (addext): Use base_len to trim redundant
74417         trailing slashes instead of doing it ourselves.
74418         But do not trim the last slash if it is not redundant.
74419
74420         * lib/backupfile.c (find_backup_file_name,
74421         max_backup_version): Use base_len instead of rolling it ourselves.
74422         Handle the case of "" and (on DOS) "C:" correctly.
74423
74424         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
74425         needed. Include <string.h>, <dirname.h>.
74426         (base_name): Allow file names ending in slashes, other than names
74427         that are all slashes.  In this case, return the basename followed
74428         by the slashes.  This is more general, and can be used in places
74429         where the original base_name purposely had an assertion failure.
74430         (base_len): New function.
74431
74432         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
74433         Do not include <assert.h>; no longer needed.
74434         Include xalloc.h.
74435         (memrchr): Remove decl.
74436         (dir_name_r): Remove.
74437         (dir_len): Renamed from dirlen.  All callers changed.
74438         Rewrite in terms of base_name, for simplicity and consistency.
74439         (dir_name): Never return NULL.  All callers changed.
74440         Do not include <stdlib.h> in test program; no longer needed.
74441         return 0; is fine for test program.
74442
74443         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
74444         New macros.
74445         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
74446
74447         * lib/path-concat.c (path_concat): Use base_len to compute
74448         base length, not strlen; this means we cannot rely on memcpy
74449         to null-terminate.
74450
74451         * lib/same.c (STREQ): Remove.
74452         (same_name): Handle the case where the basename ends in trailing '/'.
74453
74454         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
74455         a slash was stripped.  Do not strip the last slash after a
74456         file system prefix.
74457
74458 2001-05-11  Paul Eggert  <eggert@twinsun.com>
74459
74460         * lib/Makefile.am (libfetish_a_SOURCES):
74461         Add strftime.c, since we now compile it on all hosts.
74462
74463         * lib/strftime.c (my_strftime):
74464         Define to nstrftime if emacs, but only if my_strftime is not defined.
74465         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
74466         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
74467         Add one more extra argument: a nanoseconds value.
74468         All uses changed.
74469         (ns): New macro.
74470         (my_strftime function): Add %N format.
74471         (emacs_strftimeu): Renamed from emacs_strftime,
74472         with extra ut argument.
74473
74474 2001-05-09  Paul Eggert  <eggert@twinsun.com>
74475
74476         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
74477
74478 2001-04-21  Jim Meyering  <meyering@lucent.com>
74479
74480         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
74481         doesn't interfere.
74482
74483 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
74484
74485         * m4/ftruncate.m4: Check for chsize.
74486         Link with ftruncate.o unconditionally if ftruncate is missing.
74487         This was required when cross-compiling to i586-mingw32msvc.
74488
74489 2001-04-08  Jim Meyering  <meyering@lucent.com>
74490
74491         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
74492         recomputed; that's necessary when the offset spans a DST transition.
74493         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
74494
74495 2001-04-02  Jim Meyering  <meyering@lucent.com>
74496
74497         * lib/regex.h, regex.c: Update from GNU libc.
74498
74499 2001-03-24  Jim Meyering  <meyering@lucent.com>
74500
74501         * m4/jm-macros.m4: Require autoconf-2.49d.
74502
74503 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
74504
74505         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
74506
74507 2001-03-19  Paul Eggert  <eggert@twinsun.com>
74508
74509         * lib/version-etc.c (version_etc_copyright): Update to 2001.
74510
74511 2001-03-17  Jim Meyering  <meyering@lucent.com>
74512
74513         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
74514         now that the version in autoconf is equivalent.
74515         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
74516
74517         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
74518         Suggestion from Akim Demaille.
74519
74520         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
74521         (jm_PREREQ_TEMPNAME): New function.
74522
74523 2001-03-16  Paul Eggert  <eggert@twinsun.com>
74524
74525         * lib/tempname.c (uint64_t): Define to uintmax_t if
74526         not defined, and if UINT64_MAX is not defined.
74527         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
74528         Reported by John David Anglin.
74529
74530 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
74531
74532         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
74533         resolve alias if codeset is empty.
74534         * lib/config.charset (BeOS): Use wildcard syntax.
74535
74536 2001-03-13  Jim Meyering  <meyering@lucent.com>
74537
74538         * lib/path-concat.c (path_concat)
74539         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
74540         concatenating e.g., `C:' and `foo'.
74541         From Bruno Haible.
74542
74543 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
74544
74545         * lib/localcharset.c (locale_charset): Don't use
74546         setlocale(LC_CTYPE,NULL). Don't return NULL.
74547         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
74548
74549 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
74550
74551         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
74552         support for DOS/DJGPP.
74553
74554 2001-03-01  Paul Eggert  <eggert@twinsun.com>
74555
74556         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
74557         lacks mkstemp.  Compile our own tempname.c if we compile our own
74558         mkstemp.c, as mkstemp relies on tempname.
74559
74560 2001-03-01  Jim Meyering  <meyering@lucent.com>
74561
74562         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
74563         AH_VERBATIM really does output its argument verbatim.
74564
74565 2001-02-28  Paul Eggert  <eggert@twinsun.com>
74566
74567         * lib/Makefile.am (libfetish_a_SOURCES):
74568         Add dup-safer.c, fopen-safer.c.
74569         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
74570
74571         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
74572         * lib/unistd-safer.h: New files.
74573
74574 2001-02-25  Paul Eggert  <eggert@twinsun.com>
74575
74576         The mkstemp replacement is taken from glibc 2.2.2, with some
74577         portability fixes for use outside glibc, as follows:
74578
74579         * lib/tempname.c (struct_stat64): New macro.
74580         (direxists, __gen_tempname): Use it.
74581         This avoids a portability problem with Solaris 8.
74582
74583         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
74584         (<stddef.h>, <stdint.h>, <string.h>):
74585         Include only if STDC_HEADERS || _LIBC.
74586         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
74587         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
74588         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
74589         (__set_errno): Define this macro if <errno.h> doesn't.
74590         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
74591         Define these macros if <stdio.h> doesn't.
74592         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
74593         Define these macros if <sys/stat.h>
74594         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
74595         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
74596         __xstat64): Define if not _LIBC.
74597         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
74598         (__gen_tempname): Invoke gettimeofday only if
74599         HAVE_GETTIMEOFDAY || _LIBC;
74600         otherwise, fall back on plain "time".
74601         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
74602
74603         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
74604
74605         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
74606
74607 2001-02-18  Paul Eggert  <eggert@twinsun.com>
74608
74609         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
74610
74611 2001-02-17  Paul Eggert  <eggert@twinsun.com>
74612
74613         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
74614         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
74615         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
74616         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
74617
74618 2001-02-17  Paul Eggert  <eggert@twinsun.com>
74619
74620         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
74621         Remove workaround macros for hosts that have mbrtowc but not
74622         mbstate_t, as we now insist on proper declarations for both
74623         before using mbrtowc.
74624
74625 2001-02-17  Jim Meyering  <meyering@lucent.com>
74626
74627         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
74628         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
74629         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
74630         UnixWare 7.1.1.
74631
74632         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
74633         rather than AC_CACHE_VAL.
74634
74635 2001-02-17  Jim Meyering  <meyering@lucent.com>
74636
74637         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
74638         around included file name.
74639
74640         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
74641
74642         * lib/strftime.c: Update from GNU libc (the only changes were to
74643         comments).
74644
74645 2001-02-17  Jim Meyering  <meyering@lucent.com>
74646
74647         * lib/regex.c: Update from libc.
74648
74649 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
74650
74651         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
74652         clash.
74653
74654 2001-02-16  Paul Eggert  <eggert@twinsun.com>
74655
74656         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
74657         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
74658         Reported by Mark Hounschell via Paul Eggert.
74659
74660 2001-02-07  Jim Meyering  <meyering@lucent.com>
74661
74662         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
74663
74664 2001-02-05  Jim Meyering  <meyering@lucent.com>
74665
74666         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
74667         it includes the patch required for `large file' support with at least
74668         HP-UX's 10.20 /bin/cc.
74669
74670 2001-02-03  Jim Meyering  <meyering@lucent.com>
74671
74672         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
74673         AS_IF, now that it works once again (mysteriously).
74674         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
74675
74676 2001-01-30  Jim Meyering  <meyering@lucent.com>
74677
74678         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
74679         * m4/chown.m4: Rename conftestchown to conftest.chown.
74680         * m4/rename.m4: s/conftestdir/conftest.d1/ and
74681         s/conftestdir2/conftest.d2/.
74682         * m4/utimes.m4: s/conftestdata/conftest.data/
74683         Inspired by Pavel Roskin's change in autoconf.
74684
74685 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
74686
74687         * lib/config.charset: Update for FreeBSD 4.2.
74688
74689 2001-01-27  Jim Meyering  <meyering@lucent.com>
74690
74691         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
74692         a use of AS_IF.
74693         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
74694
74695 2001-01-26  Jim Meyering  <meyering@lucent.com>
74696
74697         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
74698         quotearg.c includes it.
74699
74700 2001-01-26  Jim Meyering  <meyering@lucent.com>
74701
74702         * lib/quotearg.c: Include stddef.h.
74703         * lib/quote.c: Include stddef.h.
74704         Reported by Axel Kittenberger.
74705
74706         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
74707         line in double quotes so that it evokes a better diagnostic.
74708         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
74709         Reported by Axel Kittenberger.
74710
74711 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
74712
74713         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
74714         as if it was a `charset'.
74715
74716 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
74717
74718         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
74719         has const.
74720
74721 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
74722
74723         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
74724         to avoid a warning.  Add back 'const' to inptr.
74725
74726 2001-01-20  Jim Meyering  <meyering@lucent.com>
74727
74728         Be sure that headers are checked before used in code compiled
74729         for the type checks.
74730         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
74731         In place of that, invoke jm_CHECK_ALL_TYPES.
74732         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
74733         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
74734         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
74735         The check for ssize_t was mistakenly run before the test for unistd.h.
74736
74737         The configure-time check for stdbool.h was missing.
74738         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
74739         (jm_PREREQ_HASH): New function.
74740
74741 2001-01-17  Jim Meyering  <meyering@lucent.com>
74742
74743         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
74744         for autoconf-2.49c.
74745         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
74746
74747 2001-01-16  Jim Meyering  <meyering@lucent.com>
74748
74749         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
74750         From Bruno Haible.
74751
74752 2001-01-14  Jim Meyering  <meyering@lucent.com>
74753
74754         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
74755         foo and bar.  Create conftestdir/ in the script, not in the C code.
74756         Remove directories in the script, not in the C code.
74757         Remove conftestdir{,2} before trying to create the directory.
74758         Make the entire configure script fail if the mkdir fails.
74759
74760 2001-01-14  Jim Meyering  <meyering@lucent.com>
74761
74762         * lib/rename.c: New file.  From Volker Borchert.
74763         Include stdlib.h, string.h or strings.h, and xalloc.h.
74764         Use strip_trailing_slashes rather than open-coding it.
74765
74766 2001-01-03  Paul Eggert  <eggert@twinsun.com>
74767
74768         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
74769
74770 2001-01-03  Jim Meyering  <meyering@lucent.com>
74771
74772         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
74773         of local `inptr' to avoid warning with some system declarations of
74774         iconv.
74775
74776 2001-01-02  Volker Borchert  <bt@teknon.de>
74777
74778         * m4/rename.m4: New file.
74779         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
74780
74781 2001-01-01  Jim Meyering  <meyering@lucent.com>
74782
74783         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
74784         even on systems with utmpx.h.  It's necessary for the declaration of
74785         utmp's ut_user member.  Reported by Andreas Jaeger.
74786
74787         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
74788         available. They are required for the declarations of getgrgid and
74789         getpwuid resp.
74790         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
74791         Reported by Andreas Jaeger.
74792
74793 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
74794
74795         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
74796         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
74797         so `make install' also works in VPATH builds.
74798
74799 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
74800
74801         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
74802         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
74803         can be used in subdirectories.
74804
74805 2000-12-29  Paul Eggert  <eggert@twinsun.com>
74806
74807         * lib/modechange.c: Do not assume that mode_t uses the
74808         traditional octal encoding.  E.g. "chmod 1 FOO" should set
74809         the other-execute bit of FOO even if S_IXOTH != 1.
74810
74811         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
74812         WOTH, XOTH, ALLM): New macros.
74813         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
74814          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
74815         Use them.
74816         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
74817         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
74818         (mode_compile):
74819         No need to use uintmax_t; unsigned long is long enough.
74820         Don't bother to get suffix since we don't use it.
74821
74822 2000-12-26  Jim Meyering  <meyering@lucent.com>
74823
74824         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
74825         better with autoheader.
74826
74827 2000-12-24  Jim Meyering  <meyering@lucent.com>
74828
74829         * lib/hash.c (is_prime): Return explicit boolean values.
74830         (hash_get_first): Return NULL to appease Irix5.6's 89.
74831         Reported by Nelson Beebe.
74832
74833 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
74834
74835         * lib/localcharset.c (locale_charset): Add support for Win32.
74836
74837 2000-12-18  Paul Eggert  <eggert@twinsun.com>
74838
74839         * lib/physmem.h, lib/physmem.c: New files.
74840
74841         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
74842         (noinst_HEADERS): Add physmem.h.
74843
74844         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
74845         't' for compatibility with Solaris 8 sort.
74846
74847 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
74848
74849         * lib/config.charset: Add support for BeOS.
74850
74851 2000-12-17  Jim Meyering  <meyering@lucent.com>
74852
74853         * m4/dos.m4 (jm_AC_DOS): New file and macro.
74854         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
74855
74856 2000-12-16  Jim Meyering  <meyering@lucent.com>
74857
74858         This bug had a serious impact on chown: `chown N:M FILE' (for integer
74859         N and M) would have treated it like `chown N:N FILE'.
74860
74861         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
74862
74863 2000-12-16  Jim Meyering  <meyering@lucent.com>
74864
74865         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
74866         SHELLS_FILE to a file name that's useful on djgpp systems.
74867         Include stdlib.h.
74868         (ADDITIONAL_DEFAULT_SHELLS): Define.
74869         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
74870         Based mostly on a patch from Prashant TR.
74871
74872 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
74873
74874         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
74875         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
74876         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
74877
74878 2000-12-08  Andreas Schwab  <schwab@suse.de>
74879
74880         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
74881         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
74882
74883 2000-12-07  Jim Meyering  <meyering@lucent.com>
74884
74885         * lib/stripslash.c (ISSLASH): Define.
74886         (strip_trailing_slashes): Use ISSLASH rather than comparing against
74887         `/'.
74888         From Prashant TR.
74889
74890         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
74891         (dir_name_r): Declare this function as static.
74892         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
74893         manifest itself on a name containing a mix of slashes and
74894         backslashes.
74895         Make this function work with names starting with a DOS-style
74896         drive letter and colon prefix.
74897         (dir_name): Append `.' if necessary.
74898         Based mostly on patches from Prashant TR and Eli Zaretskii.
74899
74900         * lib/dirname.h (dir_name_r): Remove prototype.
74901
74902 2000-12-06  Paul Eggert  <eggert@twinsun.com>
74903
74904         * m4/off_t-format.m4: Remove this file.
74905         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
74906
74907 2000-12-06  Jim Meyering  <meyering@lucent.com>
74908
74909         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
74910         replacement strtoull, we may well need the replacement strtoul, too.
74911         Check for declarations of strtoul and strtoull.
74912         Check for strtol.  Mainly as a cue to cause automake to include
74913         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
74914         Check for limits.h -- strtol.c needs it.
74915
74916 2000-12-05  Jim Meyering  <meyering@lucent.com>
74917
74918         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
74919
74920 2000-12-04  Jim Meyering  <meyering@lucent.com>
74921
74922         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
74923         Also include memory.h, stdlib.h, unistd.h if appropriate.
74924         Reported by Andreas Jaeger (conflicting declaration of malloc).
74925
74926 2000-12-02  Jim Meyering  <meyering@lucent.com>
74927
74928         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
74929         * m4/jm-macros.m4 (jm_MACROS): require it.
74930
74931 2000-12-02  Jim Meyering  <meyering@lucent.com>
74932
74933         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
74934
74935 2000-12-01  Paul Eggert  <eggert@twinsun.com>
74936
74937         * lib/memrchr.c: Include <config.h> before any system include file.
74938
74939 2000-11-30  Jim Meyering  <meyering@lucent.com>
74940
74941         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
74942
74943 2000-11-30  Jim Meyering  <meyering@lucent.com>
74944
74945         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
74946
74947 2000-11-29  Paul Eggert  <eggert@twinsun.com>
74948
74949         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
74950
74951 2000-11-26  Jim Meyering  <meyering@lucent.com>
74952
74953         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
74954
74955 2000-11-22  Paul Eggert  <eggert@twinsun.com>
74956
74957         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
74958         size of (size_t) -1; it's not portable.
74959
74960 2000-11-17  Jim Meyering  <meyering@lucent.com>
74961
74962         * lib/strstr.c: Update from GNU libc.
74963
74964 2000-11-17  Akim Demaille  <akim@epita.fr>
74965
74966         * lib/obstack.h: Formatting changes.
74967         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
74968         prevent type checking.
74969         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
74970         cast the value to (void *): assigning a `foo *' to a `void *'
74971         variable is valid.
74972         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
74973
74974 2000-11-16  Jim Meyering  <meyering@lucent.com>
74975
74976         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
74977
74978 2000-11-11  Jim Meyering  <meyering@lucent.com>
74979
74980         * lib/error.c: Add a couple #includes, merging from GNU libc version.
74981
74982 2000-11-10  Jim Meyering  <meyering@lucent.com>
74983
74984         * lib/obstack.h: Update from GNU libc.
74985         * lib/obstack.c: Likewise.
74986
74987 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
74988
74989         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
74990
74991 2000-11-06  Paul Eggert  <eggert@twinsun.com>
74992
74993         * lib/getusershell.c (setusershell): Use rewind rather than
74994         fseek/fseeko, to avoid configuration hassles with fseeko.
74995         Don't bother opening SHELLS_FILE if shellstream is NULL;
74996         it's not necessary.
74997
74998 2000-11-05  Jim Meyering  <meyering@lucent.com>
74999
75000         * lib/makepath.h (make_dir): Declare.
75001         * lib/makepath.c (make_dir): Remove `static' attribute.
75002         Tweak a comment.
75003
75004 2000-11-04  Jim Meyering  <meyering@lucent.com>
75005
75006         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
75007
75008 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
75009
75010         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
75011         last one in a bucket, advance to the next bucket.
75012
75013 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
75014
75015         * lib/fnmatch.c: Do not comment out all the code if we are using
75016         the GNU C library, because in some cases we are replacing buggy
75017         code in the GNU C library itself.
75018
75019 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
75020
75021         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
75022         (regex_compile): Catch bogus \(\1\).
75023
75024 2000-10-30  Paul Eggert  <eggert@twinsun.com>
75025
75026         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
75027         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
75028         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
75029
75030 2000-10-30  Paul Eggert  <eggert@twinsun.com>
75031
75032         * lib/error.h, getline.h, modechange.h:
75033         Remove "2000" from Copyright line, as the file hasn't been
75034         changed this year other than in the copyright notice.
75035
75036         * lib/xalloc.h: Add "2000" to Copyright line, as this file
75037         was changed this year.
75038
75039 2000-10-29  Jim Meyering  <meyering@lucent.com>
75040
75041         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
75042         renaming.
75043         * m4/ls-mntd-fs.m4: Likewise
75044
75045 2000-10-29  Jim Meyering  <meyering@lucent.com>
75046
75047         * lib/xstat.in: Fix grammar in comment.
75048
75049 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
75050
75051         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
75052         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
75053         doesn't define __restrict_arr.
75054
75055 2000-10-28  Jim Meyering  <meyering@lucent.com>
75056
75057         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
75058         (jm_PREREQ_MEMCHR): New function.
75059
75060 2000-10-28  Jim Meyering  <meyering@lucent.com>
75061
75062         * lib/memchr.c: Update from libc.
75063         Adjust for portability:
75064         [HAVE_STDLIB_H]: Include stdlib.h.
75065         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
75066         Undef __memchr, too.
75067         [!weak_alias]: Define __memchr to memchr.
75068
75069         * lib/regex.c: Update from libc.
75070         * lib/regex.h: Likewise.
75071         * lib/getopt1.c: Likewise.
75072         * lib/memcmp.c: Likewise.
75073
75074         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
75075         Avoid using fseek, when possible -- it's broken by design.
75076         Patch by Ulrich Drepper.
75077
75078 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
75079
75080         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
75081         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
75082         Giving in to popular pressure to shut up the compiler with casts.
75083
75084 2000-10-26  Jim Meyering  <meyering@lucent.com>
75085
75086         * lib/strftime.c: Update from libc.
75087
75088 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
75089
75090         * regex.c: More `unsigned char' -> `re_char' changes.
75091         Also change several `int' into `re_wchar_t'.
75092         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
75093         (PUSH_FAILURE_POINTER): Don't cast any more.
75094         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
75095         We want GCC to complain, since this piece of code makes
75096         re_match non-reentrant, which *should* be fixed.
75097         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
75098         (EXTEND_BUFFER): Use RETALLOC.
75099         (SET_LIST_BIT): Don't cast.
75100         (re_wchar_t): New type.
75101         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
75102         that those two functions will always properly return.
75103         (IMMEDIATE_QUIT_CHECK): Cast to void.
75104         (analyse_first): Use recursion rather than an explicit stack.
75105         (re_compile_fastmap): Can't fail anymore.
75106         (re_search_2): Don't check re_compile_fastmap for failure.
75107         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
75108         Now also sets the new value (passed in a new argument).
75109         (re_match_2_internal): Use it.
75110         Also, use a new var `reg' of type size_t when looping through regs
75111         rather than reuse the inappropriate `mcnt'.
75112
75113 2000-10-25  Jim Meyering  <meyering@lucent.com>
75114
75115         * lib/obstack.c: Update from libc.
75116
75117 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
75118
75119         * regex.c (regex_compile): Change the way of handling a range from
75120         a char less than 256 to a char not less than 256.
75121
75122 2000-10-24  Andrew Innes  <andrewi@gnu.org>
75123
75124         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
75125         NT-Emacs only.
75126         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
75127         so that re_search functions only quit when callers expect them to.
75128
75129 2000-10-23  Jim Meyering  <meyering@lucent.com>
75130
75131         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
75132         wrong.  That set_locale call must not have any side effects.
75133         From Paul Eggert.
75134
75135 2000-10-22  Jim Meyering  <meyering@lucent.com>
75136
75137         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
75138         [CYCLIC]: Remove now-unused definition.
75139
75140         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
75141         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
75142         Suggestion from Ulrich Drepper.
75143
75144 2000-10-21  Jim Meyering  <meyering@lucent.com>
75145
75146         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
75147         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
75148         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
75149
75150 2000-10-21  Jim Meyering  <meyering@lucent.com>
75151
75152         * lib/dirname.c (memrchr): Declare if necessary.
75153         (dir_name): Remove the restriction that there be no
75154         trailing slashes.  Now, this code skips past them, effectively
75155         ignoring them.
75156         [TEST_DIRNAME] (main): New unit tests.
75157
75158         * lib/memrchr.c: New file from GNU libc.
75159         Undef __memrchr, too.
75160         [!weak_alias]: Define __memrchr to memrchr.
75161         Guard weak_alias use with `#ifdef weak_alias'.
75162
75163 2000-10-21  Jim Meyering  <meyering@lucent.com>
75164
75165         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
75166         (dir_name): Use dir_name_r.
75167         * lib/dirname.h (dir_name_r): Declare it.
75168
75169 2000-10-17  Jim Meyering  <meyering@lucent.com>
75170
75171         * lib/quote.h (PARAMS): Define and use.
75172         Reported by Akim Demaille.
75173
75174         * lib/getopt.c: Update from libc.
75175
75176 2000-10-16  Jim Meyering  <meyering@lucent.com>
75177
75178         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
75179         setlocale.
75180         From Jan Fedak.
75181
75182 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
75183
75184         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
75185
75186 2000-09-25  Jim Meyering  <meyering@lucent.com>
75187
75188         * lib/md5.h (rol): Define (from GnuPG).
75189
75190         * lib/sha.c: Give credit (GnuPG) where due.
75191         (M): Use rol rather than open-coding it.
75192         Add a FIXME comment.
75193
75194 2000-09-21  Jim Meyering  <meyering@lucent.com>
75195
75196         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
75197         Reported by Michael Stone.
75198
75199 2000-09-20  Jim Meyering  <meyering@lucent.com>
75200
75201         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
75202         (noinst_HEADERS): Add sha.h.
75203         Based on code from Scott G. Miller and from GnuPG.
75204
75205 2000-09-18  Jim Meyering  <meyering@lucent.com>
75206
75207         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
75208         LIBS. Otherwise, everyone ends up linking with -lelf for some
75209         configurations.
75210         Reported by Mike Stone.
75211
75212 2000-09-15  Jim Meyering  <meyering@lucent.com>
75213
75214         * lib/regex.c: Update from libc.
75215
75216 2000-09-10  Jim Meyering  <meyering@lucent.com>
75217
75218         * lib/getopt.c (_getopt_internal): Update from glibc.
75219
75220 2000-09-09  Jim Meyering  <meyering@lucent.com>
75221
75222         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
75223         think it should be used as a general replacement for isascii.
75224         * lib/fnmatch.c: Likewise.
75225         * lib/mbswidth.c: Likewise
75226         * lib/regex.c: Likewise.
75227
75228         Don't use atoi.
75229         * lib/userspec.c: Include sys/param.h and limits.h.
75230         Include xstrtol.h.
75231         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
75232         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
75233         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
75234         UID, GID.  Check range.
75235
75236 2000-09-06  Jim Meyering  <meyering@lucent.com>
75237
75238         * lib/getopt.c (_getopt_internal): Update from glibc.
75239
75240 2000-08-30  Jim Meyering  <meyering@lucent.com>
75241
75242         * lib/strftime.c: Merge in changes from GNU libc.
75243
75244 2000-08-26  Jim Meyering  <meyering@lucent.com>
75245
75246         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
75247         * m4/fpending.m4: New file.
75248
75249 2000-08-26  Jim Meyering  <meyering@lucent.com>
75250
75251         * lib/closeout.c: Include "__fpending.h".
75252         (close_stdout_status): Return right away if there's nothing to flush.
75253
75254         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
75255         * lib/__fpending.c: New file.
75256         * lib/__fpending.h: New file.
75257
75258 2000-08-20  Jim Meyering  <meyering@lucent.com>
75259
75260         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
75261         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
75262         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
75263
75264 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
75265
75266         Improve fileutils installation on systems where running
75267         programs (like install) can't be unlinked.
75268         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
75269         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
75270
75271 2000-08-07  Paul Eggert  <eggert@twinsun.com>
75272
75273         Standardize on "memory exhausted" instead of "Memory exhausted"
75274         or "virtual memory exhausted".
75275         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
75276         "virtual memory exhausted".
75277         * lib/same.c (same_name): Invoke xalloc_die instead of printing
75278         our own message.
75279         * lib/userspec.c (parse_user_spec): Likewise.
75280         * lib/bumpalloc.h: comment fix
75281         * lib/same.c, userspec.c: Include xalloc.h.
75282
75283         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
75284         not char *const and pointing to a constant array.
75285         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
75286         (xrealloc): Comment fix.
75287
75288         * lib/userspec.c (parse_user_spec):
75289         Don't translate a message until just before returning,
75290         to avoid unnecessary translation.
75291
75292 2000-08-07  Jim Meyering  <meyering@lucent.com>
75293
75294         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
75295         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
75296         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
75297         getgroups.c, gethostname.c, getopt.h, group-member.c,
75298         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
75299         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
75300         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
75301         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
75302         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
75303         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
75304         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
75305         yesno.c: Back out Copyright date changes for each file with no change
75306         this year.  This eases coordination with other programs using the same
75307         source code modules.  From Paul Eggert.
75308
75309 2000-08-06  Paul Eggert  <eggert@twinsun.com>
75310
75311         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
75312         not char, for compatibility with glibc 2.1.3 strftime.c.
75313
75314 2000-08-03  Greg McGary  <greg@mcgary.org>
75315
75316         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
75317         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
75318         (EXTEND_BUFFER): Use them.
75319
75320 2000-08-01  Jim Meyering  <meyering@lucent.com>
75321
75322         * lib/dirname.c (ISSLASH): Define.
75323         (BACKSLASH_IS_PATH_SEPARATOR): Define.
75324         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
75325         both `\' and `/' may be use as path separators.
75326         Based on a patch from Prashant TR.
75327
75328 2000-07-31  Paul Eggert  <eggert@twinsun.com>
75329
75330         * lib/quotearg.c (quotearg_n_options): Don't make the initial
75331         slot vector a constant, since it might get modified.
75332
75333 2000-07-31  Jim Meyering  <meyering@lucent.com>
75334
75335         * lib/xmalloc.c: Use `virtual memory exhausted', not
75336         `Memory exhausted'.
75337         * lib/obstack.c (print_and_abort): Likewise.
75338
75339 2000-07-30  Paul Eggert  <eggert@twinsun.com>
75340
75341         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
75342         buffer, so that the caller can always quote one small
75343         component of a "memory exhausted" message in slot 0.
75344         From a suggestion by Jim Meyering.
75345
75346 2000-07-30  Jim Meyering  <meyering@lucent.com>
75347
75348         * lib/makepath.c (make_path): Quote the other instance, too.
75349
75350         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
75351         (STATIC_BUF_SIZE): Define.
75352         (quotearg_n_options): Use only statically allocated storage when
75353         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
75354         than STATIC_BUF_SIZE.
75355
75356 2000-07-29  Jim Meyering  <meyering@lucent.com>
75357
75358         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
75359         * lib/dirname.c (dir_name): Likewise.
75360
75361         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
75362         `/'.
75363
75364         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
75365         (dir_name): Assert that there are no trailing slashes.
75366
75367 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
75368
75369         * lib/mbswidth.h (mbswidth): Add a flags argument.
75370         (mbswidth): New declaration.
75371         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
75372         * lib/mbswidth.c (mbswidth): Add a flags argument.
75373         (mbsnwidth): New function.
75374
75375 2000-07-24  Jim Meyering  <meyering@lucent.com>
75376
75377         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
75378
75379 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75380
75381         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
75382
75383 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75384
75385         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
75386         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
75387         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
75388         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
75389         invoke multibyte primitives.
75390
75391 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75392
75393         * lib/quotearg.c:
75394         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
75395         so that mbstate_t is always defined.
75396
75397         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
75398         be 1 in at least one GCC installation, and this configuration
75399         error is likely to be common.  Ignoring MB_LEN_MAX hurts
75400         performance on hosts that have mbrtowc but have only unibyte
75401         locales, but I assume these hosts are rare.
75402
75403 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75404
75405         * lib/mbswidth.c (_XOPEN_SOURCE):
75406         Don't define; this causes problems on Solaris 7.
75407         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
75408
75409 2000-07-23  Jim Meyering  <meyering@lucent.com>
75410
75411         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
75412         too: getgrgid, getpwuid, getuid.
75413
75414 2000-07-23  Jim Meyering  <meyering@lucent.com>
75415
75416         * lib/basename.c (base_name): Add an assertion.
75417
75418 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
75419
75420         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
75421         shadow its mbsinit function.
75422
75423 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
75424
75425         * lib/mbswidth.h: New file.
75426         * lib/mbswidth.c: New file.
75427         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
75428         (noinst_HEADERS): Add mbswidth.h.
75429
75430 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
75431
75432         * lib/config.charset: Add support for FreeBSD. Improve support for
75433         HP-UX and IRIX 6.
75434
75435 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
75436
75437         * m4/mbswidth.m4: New file.
75438         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
75439
75440 2000-07-15  Jim Meyering  <meyering@lucent.com>
75441
75442         * lib/makepath.c: Include quote.h.
75443         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
75444         corresponding argument in a `quote (...)' call.
75445         Give better diagnostics.
75446
75447         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
75448         (noinst_HEADERS): Add quote.h.
75449
75450         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
75451         from tar's src/misc.c.
75452         * lib/quote.h: New file.  Prototypes for same.
75453
75454 2000-07-14  Paul Eggert  <eggert@twinsun.com>
75455
75456         From a suggestion by Bruno Haible.
75457         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
75458         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
75459         to decide whether to define the BeOS workaround macro;
75460         this adjusts to the change to AC_MBSTATE_T.
75461
75462 2000-07-14  Jim Meyering  <meyering@lucent.com>
75463
75464         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
75465         jm_AC_TYPE_UINTMAX_T.
75466
75467 2000-07-13  Paul Eggert  <eggert@twinsun.com>
75468
75469         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
75470
75471         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
75472         quotearg_buffer_restyled): Add support for
75473         clocale_quoting_style.  Undo previous change to
75474         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
75475         and "{RIGHT QUOTATION MARK}" msgids.
75476
75477 2000-07-10  Paul Eggert  <eggert@twinsun.com>
75478
75479         From a suggestion by Bruno Haible.
75480         * m4/mbstate_t.m4 (AC_MBSTATE_T):
75481         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
75482         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
75483         and mbstate_t, to a single-part test that simply defines mbstate_t.
75484         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
75485         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
75486
75487 2000-07-10  Jim Meyering  <meyering@lucent.com>
75488
75489         * m4/strerror_r.m4: Mirror the correction made in autoconf.
75490
75491         * m4/gnu-source.m4: Output to confdefs.h directly.
75492         Suggestion from Akim Demaille.
75493
75494 2000-07-09  Paul Eggert  <eggert@twinsun.com>
75495
75496         The old behavior of quoting `like this' doesn't look good with
75497         newer, ISO-style fonts.  See:
75498         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
75499
75500         Instead, quote "like this" by default.  Let the translator
75501         tailor the locale-specific quoting behavior by providing
75502         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
75503
75504         * lib/quotearg.c (N_): New macro.
75505         (gettext_default): New function.
75506         (quotearg_buffer_restyled): Use
75507         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
75508         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
75509
75510 2000-07-09  Jim Meyering  <meyering@lucent.com>
75511
75512         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
75513         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
75514
75515         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
75516         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
75517
75518 2000-07-09  Jim Meyering  <meyering@lucent.com>
75519
75520         * lib/Most files: Update copyright dates to include 2000.
75521
75522 2000-07-08  Jim Meyering  <meyering@lucent.com>
75523
75524         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
75525         if not defined.
75526         (xgethostname): Remove now-unnecessary #ifdef.
75527         Move declaration of `err' into loop where it's used.
75528
75529 2000-07-05  Paul Eggert  <eggert@twinsun.com>
75530         and Bruno Haible  <haible@clisp.cons.org>
75531
75532         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
75533         only if the test for an object-type mbstate_t fails.  This
75534         prevents us from mistakenly reporting that mbstate_t is a
75535         system object type after we "#define mbstate_t int" to work
75536         around its lack.
75537
75538 2000-07-05  Paul Eggert  <eggert@twinsun.com>
75539         and Bruno Haible  <haible@clisp.cons.org>
75540
75541         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
75542
75543 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
75544
75545         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
75546         to strerror_r.
75547         Include <ctype.h> for use of isalpha.
75548
75549 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
75550
75551         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
75552         by allocating a larger buffer. Test the gethostname return value for
75553         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
75554         returns an error and ENAMETOOLONG isn't defined.
75555
75556 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
75557
75558         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
75559         dimension.
75560
75561 2000-07-04  Jim Meyering  <meyering@lucent.com>
75562
75563         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
75564         of the deprecated AC_CHECKING.
75565
75566 2000-07-04  Jim Meyering  <meyering@lucent.com>
75567
75568         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
75569         Reported by Bruno Haible.
75570
75571 2000-07-04  Jim Meyering  <meyering@lucent.com>
75572
75573         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
75574         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
75575         lacks mbrtowc.
75576
75577 2000-07-03  Paul Eggert  <eggert@twinsun.com>
75578
75579         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
75580         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
75581
75582 2000-07-03  Paul Eggert  <eggert@twinsun.com>
75583         and Bruno Haible  <haible@clisp.cons.org>
75584
75585         * lib/quotearg.c (mbrtowc):
75586         Assign to *pwc, and return 1 only if result is nonzero.
75587         (iswprint): Use ISPRINT when substituting our own mbrtowc.
75588
75589 2000-07-03  Jim Meyering  <meyering@lucent.com>
75590
75591         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
75592
75593 2000-07-03  Jim Meyering  <meyering@lucent.com>
75594
75595         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
75596         This is necessary to get a definition of e.g., UTMP_FILE on
75597         HP-UX 10.20.
75598         From Bob Proulx.
75599
75600 2000-07-02  Jim Meyering  <meyering@lucent.com>
75601
75602         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
75603
75604         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
75605         AC_LIBOBJ(function_name).
75606         * m4/chown.m4: Likewise.
75607         * m4/fnmatch.m4: Likewise.
75608         * m4/ftruncate.m4: Likewise.
75609         * m4/getgroups.m4: Likewise.
75610         * m4/getline.m4: Likewise.
75611         * m4/group-member.m4: Likewise.
75612         * m4/jm-macros.m4: Likewise.
75613         * m4/lstat.m4: Likewise.
75614         * m4/malloc.m4: Likewise.
75615         * m4/memcmp.m4: Likewise.
75616         * m4/nanosleep.m4: Likewise.
75617         * m4/putenv.m4: Likewise.
75618         * m4/realloc.m4: Likewise.
75619         * m4/regex.m4: Likewise.
75620         * m4/stat.m4: Likewise.
75621         * m4/strftime.m4: Likewise.
75622
75623 2000-07-02  Jim Meyering  <meyering@lucent.com>
75624
75625         * lib/quotearg.c (mbstate_t): Don't define here.
75626
75627 2000-07-02  Jim Meyering  <meyering@lucent.com>
75628
75629         * lib/nanosleep.c (SIGCONT): Define if not already defined.
75630
75631 2000-07-01  Jim Meyering  <meyering@lucent.com>
75632
75633         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
75634
75635 2000-07-01  Jim Meyering  <meyering@lucent.com>
75636
75637         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
75638         problem.
75639
75640 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
75641
75642         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
75643         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
75644
75645 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
75646
75647         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
75648         per change in ../m4/ls-mntd-fs.m4.
75649         (read_filesystem_list): Ignore symbolic links.
75650
75651 2000-06-29  Jim Meyering  <meyering@lucent.com>
75652
75653         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
75654         for declaration of strcmp.
75655
75656         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
75657
75658         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
75659         Avoid warning by casting result to `char *' to remove `const'.
75660
75661 2000-06-28  Jim Meyering  <meyering@lucent.com>
75662
75663         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
75664         included by quotearg.c, for which we perform this test.  From
75665         Bruno Haible.
75666
75667 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
75668
75669         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
75670         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
75671         <utmpx.h> exists, put readutmp.o into LIBOBJS.
75672
75673 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
75674
75675         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
75676
75677 2000-06-26  Paul Eggert  <eggert@twinsun.com>
75678
75679         savedir now sets errno on failure and invokes xmalloc to get memory.
75680         Fix a couple of other minor bugs while we're at it.
75681
75682         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
75683         (NAMLEN): Remove macro.
75684         (malloc, realloc): Remove decls.
75685         (stpcpy): Likewise.
75686         ("xalloc.h"): Include.
75687         (NAME_SIZE_DEFAULT): New macro.
75688         (savedir): Use xmalloc / xrealloc to allocate memory.
75689         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
75690         Skip "" directory entries.
75691         Use strlen to calculate directory entry length, since the old method
75692         is rarely used these days and isn't worth supporting.
75693         Don't use a pointer after freeing it.
75694         Check for integer overflow when calculating allocation size.
75695         Use memcpy to copy entries, instead of stpcpy.
75696         Set errno properly when returning NULL.
75697         Check for readdir error.
75698
75699 2000-06-26  Jim Meyering  <meyering@lucent.com>
75700
75701         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
75702
75703 2000-06-25  Jim Meyering  <meyering@lucent.com>
75704
75705         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
75706         Linux header bug when _XOPEN_SOURCE is defined to 500.
75707
75708 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
75709
75710         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
75711         deficiency.
75712
75713 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
75714
75715         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
75716         Include xalloc.h.
75717         Don't include <stdlib.h>.  Don't declare malloc, realloc.
75718
75719 2000-06-24  Jim Meyering  <meyering@lucent.com>
75720
75721         * m4/strerror_r.m4: Revive this file -- to try out an experimental
75722         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
75723         for which strerror does return char*, but which lacks a conveniently
75724         accessible declaration of the function.  If the compile-test says
75725         strerror_r doesn't work, then resort to a `run'-test that works on
75726         BeOS and segfaults on DEC Unix.
75727
75728 2000-06-24  Jim Meyering  <meyering@lucent.com>
75729
75730         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
75731
75732 2000-06-23  Paul Eggert  <eggert@twinsun.com>
75733
75734         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
75735         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
75736
75737 2000-06-23  Paul Eggert  <eggert@twinsun.com>
75738
75739         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
75740         (mbrtowc, mbstate_t): Define substitutes if
75741         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
75742         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
75743         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
75744
75745 2000-06-23  Jim Meyering  <meyering@lucent.com>
75746
75747         * m4/afs.m4: Add missing AC_MSG_RESULT.
75748         Reported by Bruno Haible.
75749
75750         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
75751         Suggestion from Bruno Haible.
75752
75753 2000-06-23  Jim Meyering  <meyering@lucent.com>
75754
75755         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
75756
75757 2000-06-21  Jim Meyering  <meyering@lucent.com>
75758
75759         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
75760
75761 2000-06-21  Jim Meyering  <meyering@lucent.com>
75762
75763         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
75764         (noinst_HEADERS): Add getstr.h.
75765
75766         * lib/getline.c (getstr): Move into a separate file.
75767         * lib/getstr.c (getstr): New file, extracted from getline.c, with
75768         the following changes: new parameter, delim2; both delim[12]
75769         parameters have type `int', not `char'.  The latter would lose
75770         with 8-bit delimiters.
75771         * lib/getstr.h: New file.
75772
75773 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
75774
75775         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
75776         than 1024, return a memory chunk of least possible size, instead
75777         of size PATH_MAX + 2. In the loop, increment the size proportionally.
75778         Use free/xmalloc instead of xrealloc to avoid copying for very long
75779         paths.
75780
75781 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
75782
75783         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
75784         the empty string.
75785
75786 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
75787
75788         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
75789         address, not strdup.  Include <stdlib.h> and don't declare free().
75790
75791 2000-06-19  Jim Meyering  <meyering@lucent.com>
75792
75793         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
75794
75795 2000-06-18  Jim Meyering  <meyering@lucent.com>
75796
75797         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
75798
75799         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
75800         `checking whether...' message to be consistent with that of the
75801         lstat test.
75802
75803 2000-06-18  Jim Meyering  <meyering@lucent.com>
75804
75805         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
75806         Besides, these days every porting target provides a mkdir function.
75807
75808         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
75809         needed. (this snippet comes from src/system.h).
75810
75811 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
75812
75813         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
75814
75815 2000-06-15  Paul Eggert  <eggert@twinsun.com>
75816
75817         * lib/human.c (adjust_value): New function.
75818         (human_readable_inexact): Apply rounding style even when
75819         printing approximate values.
75820
75821 2000-06-14  Paul Eggert  <eggert@twinsun.com>
75822
75823         * lib/human.c (human_readable_inexact): Allow an input block
75824         size that is not a multiple of the output block size, and vice versa.
75825         Reported by Piergiorgio Sartor.
75826
75827 2000-06-14  Paul Eggert  <eggert@twinsun.com>
75828
75829         * lib/getdate.y (get_date): Apply relative times after time
75830         zone indicator, not before.  Reported by Todd A. Jacobs.
75831
75832 2000-06-13  Jim Meyering  <meyering@lucent.com>
75833
75834         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
75835
75836         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
75837
75838 2000-06-12  Paul Eggert  <eggert@twinsun.com>
75839
75840         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
75841
75842 2000-06-12  Jim Meyering  <meyering@lucent.com>
75843
75844         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
75845         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
75846         optional argument.
75847         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
75848         the optional argument, `lib'.
75849
75850 2000-06-08  Jim Meyering  <meyering@lucent.com>
75851
75852         * m4/largefile.m4: Remove file (now that it's part of autoconf).
75853
75854 2000-06-04  Paul Eggert  <eggert@twinsun.com>
75855
75856         Rewrite largefile configuration so that we don't need to run
75857         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
75858         AC_CANONICAL_HOST in configure.in -- jmm]
75859
75860         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
75861         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
75862         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
75863         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
75864         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
75865         All uses changed.
75866         Instead of inspecting the output of getconf, try to compile the
75867         test program without and with the macro definition.
75868         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
75869         for getconf.  Instead, check for the needed flags by compiling
75870         test programs.
75871
75872 2000-06-04  Paul Eggert  <eggert@twinsun.com>
75873
75874         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
75875
75876 2000-06-04  Jim Meyering  <meyering@lucent.com>
75877
75878         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
75879         SunOS 4.1.4 for which gid_t is an unsigned type.
75880
75881 2000-06-03  Jim Meyering  <meyering@lucent.com>
75882
75883         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
75884         now that autoconf requires that.
75885
75886         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
75887         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
75888         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
75889
75890 2000-06-03  Jim Meyering  <meyering@lucent.com>
75891
75892         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
75893
75894 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
75895
75896         * m4/glibc21.m4: New file.
75897         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
75898
75899 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
75900
75901         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
75902         newer, don't install charset.alias.
75903         * lib/config.charset: Change the Linux/glibc rules so they become empty
75904         on glibc-2.1 or newer.
75905
75906 2000-06-02  Jim Meyering  <meyering@lucent.com>
75907
75908         * lib/mountlist.c: Back out last change.  Instead, do this...
75909         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
75910         me_dummy member using the same `ignore'-testing code.
75911         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
75912         fs_type strings.
75913         From Mark D. Roth.
75914
75915 2000-05-29  Jim Meyering  <meyering@lucent.com>
75916
75917         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
75918         mounts with the `ignore' attribute.  Based on a patch from
75919         Mark D. Roth.
75920
75921 2000-05-28  Jim Meyering  <meyering@lucent.com>
75922
75923         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
75924         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75925         * m4/stat.m4: Likewise.
75926         * m4/lstat.m4: Likewise.
75927         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
75928
75929         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
75930         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
75931
75932 2000-05-26  Jim Meyering  <meyering@lucent.com>
75933
75934         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
75935
75936 2000-05-24  Jim Meyering  <meyering@lucent.com>
75937
75938         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
75939         autoconf requires that.
75940         * m4/lib-check.m4: Likewise.
75941         * m4/jm-macros.m4: Likewise.
75942         * m4/strftime.m4: Likewise.
75943
75944         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
75945         AC_CHECK_DECLS, now that autoconf requires that.
75946
75947 2000-05-22  Jim Meyering  <meyering@lucent.com>
75948
75949         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75950         * m4/lstat.m4: Likewise.
75951
75952 2000-05-22  Jim Meyering  <meyering@lucent.com>
75953
75954         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
75955
75956 2000-05-20  Jim Meyering  <meyering@lucent.com>
75957
75958         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
75959         (jm_PREREQ): Use it.
75960
75961 2000-05-18  Jim Meyering  <meyering@lucent.com>
75962
75963         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
75964         back, too, since it may have been modified by allocate_entry.
75965         (hash_delete): Rewrite to use neither the assignment operator
75966         nor the comma operator in an if-expression.
75967
75968 2000-05-15  Paul Eggert  <eggert@twinsun.com>
75969
75970         * lib/closeout.c:
75971         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
75972         Remove; no longer needed.
75973         "quotearg.h": Add include.
75974         (file_name): Do not bother to explicitly initialize to NULL; it's less
75975         efficient on some hosts.
75976         (close_stdout_status): Remove test as to whether stdout was already
75977         closed; it breaks for the case "echo x | sort >&-".
75978         Quote file name colons.
75979         Do not assume that _("write error") lacks format strings.
75980
75981 2000-05-15  Jim Meyering  <meyering@lucent.com>
75982
75983         * lib/version-etc.c (version_etc_copyright): Update the copyright
75984         string used in all --version output.
75985
75986 2000-05-14  Jim Meyering  <meyering@lucent.com>
75987
75988         * lib/closeout.c (close_stdout_set_file_name): New function.
75989         (close_stdout_status): Use new file-scoped global.
75990         Return right away if fstat says the stdout file descriptor is invalid.
75991         * lib/closeout.h (close_stdout_set_file_name): Declare.
75992
75993 2000-05-10  Jim Meyering  <meyering@lucent.com>
75994
75995         * lib/closeout.c [default_exit_status]: New file-scoped variable.
75996         (close_stdout_set_status): New function.
75997         * lib/closeout.h (close_stdout_set_status): Declare.
75998
75999 2000-05-09  Jim Meyering  <meyering@lucent.com>
76000
76001         * m4/gettext.m4: Rename this...
76002         * m4/libintl.m4: ...to this.
76003
76004 2000-05-08  Jim Meyering  <meyering@lucent.com>
76005
76006         * lib/long-options.c: Don't include closeout.h.
76007         (parse_long_options): Don't call close_stdout for --version.
76008
76009 2000-05-06  Paul Eggert  <eggert@twinsun.com>
76010
76011         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
76012         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
76013         2.1.3 bug.  This avoids a clash when files like regex.c define
76014         _GNU_SOURCE.
76015
76016 2000-05-06  Jim Meyering  <meyering@lucent.com>
76017
76018         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
76019         (AC_REPLACE_FUNCS): Add strnlen.
76020
76021         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
76022         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
76023
76024         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
76025         AC_SEARCH_LIBS call for nanosleep.
76026         (LIB_NANOSLEEP): Set and AC_SUBST.
76027
76028 2000-05-06  Jim Meyering  <meyering@lucent.com>
76029
76030         * lib/strnlen.c: Undefine __strnlen and strnlen.
76031         [!weak_alias]: Define __strnlen to strnlen.
76032
76033         * lib/atexit.c: New file, from libiberty.
76034
76035 2000-05-06  Jim Meyering  <meyering@lucent.com>
76036
76037         * lib/closeout.c (close_stdout_status): Also check for errors on the
76038         stderr stream.
76039
76040 2000-05-05  Jim Meyering  <meyering@lucent.com>
76041
76042         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
76043         AC_SEARCH_LIBS call for clock_gettime.
76044         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
76045
76046         * m4/search-libs.m4: Update from autoconf.
76047
76048         su doesn't work on Solaris 2.6.
76049         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
76050         <shadow.h>.  Reported by Dragos Harabor.
76051
76052 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
76053
76054         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
76055         memcpy instead of xmalloc, xrealloc, path_concat.
76056         (locale_charset): Treat empty environment variables as absent.
76057         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
76058
76059 2000-05-04  Jim Meyering  <meyering@lucent.com>
76060
76061         * lib/getopt.c: Update from glibc.
76062         * lib/obstack.c: Likewise.
76063         * lib/obstack.h: Likewise.
76064         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
76065         file
76066
76067         * lib/regex.h: Likewise.
76068         * lib/strndup.c: Likewise.
76069         * lib/strnlen.c: New file, from glibc.
76070
76071 2000-05-03  Jim Meyering  <meyering@lucent.com>
76072
76073         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
76074
76075 2000-05-02  Paul Eggert  <eggert@twinsun.com>
76076
76077         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
76078         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
76079         compile-time test, rather than inspecting host and OS, to
76080         decide whether to define _LARGEFILE_SOURCE.
76081
76082 2000-05-01  Jim Meyering  <meyering@lucent.com>
76083
76084         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
76085
76086         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
76087         Based on a patch from Bruno Haible.
76088
76089 2000-05-01  Jim Meyering  <meyering@lucent.com>
76090
76091         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
76092
76093 2000-04-29  Jim Meyering  <meyering@lucent.com>
76094
76095         * lib/path-concat.c: Declare strdup only if it's not defined.
76096         * lib/canon-host.c: Likewise.
76097
76098 2000-04-28  Jim Meyering  <meyering@lucent.com>
76099
76100         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
76101         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
76102         is included first, then limits.h is included by locale.h by libintl.h.
76103         From John David Anglin.
76104
76105 2000-04-25  Jim Meyering  <meyering@lucent.com>
76106
76107         * lib/makepath.c (S_IRWXUGO): Define.
76108         (make_path): Always perform explicit chmod if MODE specifies any
76109         of the `special' permission bits.  Prompted by a bug report against
76110         install from Mate Wierdl and Joost van Baal.
76111
76112 2000-04-18  Jim Meyering  <meyering@lucent.com>
76113
76114         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
76115         (jm_PREREQ): Use it.
76116
76117 2000-04-18  Jim Meyering  <meyering@lucent.com>
76118
76119         * lib/README: New file.
76120
76121         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
76122         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
76123
76124 2000-04-17  Jim Meyering  <meyering@lucent.com>
76125
76126         Get it right :-)
76127         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
76128         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
76129         Suggestion from Akim Demaille.
76130
76131 2000-04-17  Jim Meyering  <meyering@lucent.com>
76132
76133         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
76134         the definition of it to rpl_strftime also defined-away the system's
76135         declaration.
76136
76137 2000-04-15  Jim Meyering  <meyering@lucent.com>
76138
76139         Use `C' to denote so-called `contiguous' files, the same way
76140         that tar does.
76141         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
76142         (ftypelet): Use S_ISCTG.
76143         From Michael Deutschmann.
76144
76145 2000-04-14  Jim Meyering  <meyering@lucent.com>
76146
76147         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
76148         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
76149         clobbered.
76150
76151 2000-04-14  Jim Meyering  <meyering@lucent.com>
76152
76153         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
76154
76155 2000-04-13  Jim Meyering  <meyering@lucent.com>
76156
76157         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
76158         AH_VERBATIM to insert required #ifndef into config.h.in.
76159         Suggestion from Akim Demaille.
76160
76161 2000-04-12  Jim Meyering  <meyering@lucent.com>
76162
76163         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
76164         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
76165         Christian Krackowizer.
76166
76167         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
76168         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
76169         (AC_SYS_LARGEFILE): Require.
76170         (AM_C_PROTOTYPES): Require.
76171
76172 2000-04-08  Jim Meyering  <meyering@lucent.com>
76173
76174         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
76175         names don't conflict.  Reported by Eli Zaretskii.
76176
76177 2000-04-07  Jim Meyering  <meyering@lucent.com>
76178
76179         * lib/putenv.c: Move inclusion of errno.h so it follows that of
76180         sys/types.h, to work around system header problems on AIX 3.2.5.
76181         From Bruno Haible.
76182
76183 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
76184
76185         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
76186         bug.  Deal with the different error behavior of Irix iconv.
76187
76188 2000-04-05  Paul Eggert  <eggert@twinsun.com>
76189
76190         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
76191         IRIX if the installer said otherwise.
76192
76193 2000-04-05  Jim Meyering  <meyering@lucent.com>
76194
76195         Portability tweaks required for ultrix4.3.
76196         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
76197         (jm_CHECK_DECLS): Add getutent to the list of functions.
76198         (_jm_DECL_HEADERS): Add utmpx.h.
76199         From John David Anglin.
76200
76201         * m4/strftime.m4: Back out the 2000-04-02 change.
76202         Instead of that change, simply undefine putenv in the test program.
76203
76204 2000-04-05  Jim Meyering  <meyering@lucent.com>
76205
76206         Portability tweaks required for ultrix4.3.
76207         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
76208         getutent.
76209         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
76210         * lib/canon-host.c: Declare strdup.
76211         * lib/path-concat.c: Likewise.
76212         From John David Anglin.
76213
76214 2000-04-04  Jim Meyering  <meyering@lucent.com>
76215
76216         Be more DOS 8.3-friendly.
76217         * lib/ref-add.sin: Renamed from ref-add.sed.in.
76218         * lib/ref-del.sin: Renamed from ref-del.sed.in.
76219         * lib/Makefile.am: Reflect renaming.
76220         Reported by Eli Zaretskii.
76221
76222         Use a temporary file name that won't clash with `charset.alias'
76223         in the DOS 8.3 name space.
76224         * lib/Makefile.am (charset_tmp): Define.
76225         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
76226         (uninstall-local): Likewise.
76227         Reported by Eli Zaretskii.
76228
76229 2000-04-03  Jim Meyering  <meyering@lucent.com>
76230
76231         * m4/gettext.m4: Fix typo in comment.
76232
76233         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
76234         textutils/configure.in).  Suggestion from Paul Eggert.
76235         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
76236
76237 2000-04-02  Paul Eggert  <eggert@twinsun.com>
76238
76239         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
76240         variable in the shell rather than using putenv, which isn't
76241         portable.  This avoids the configure-time inter-test dependency
76242         on the potentially-renamed putenv function.
76243
76244 2000-03-30  Paul Eggert  <eggert@twinsun.com>
76245
76246         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
76247         before checking struct stat.st_blksize, so that
76248         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
76249
76250 2000-03-29  Paul Eggert  <eggert@twinsun.com>
76251
76252         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
76253         since strftime.c uses HAVE_STRFTIME to decide whether to use
76254         the underlying strftime.
76255
76256 2000-03-29  Paul Eggert  <eggert@twinsun.com>
76257
76258         * lib/time/strftime.c (my_strftime): Make sure we call the system
76259         strftime, not ourselves, when invoking the underlying strftime.
76260
76261 2000-03-24  Jim Meyering  <meyering@lucent.com>
76262
76263         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
76264         (charset_alias): Define.
76265         (install-exec-local): Factor out common code.
76266         (uninstall-local): Split lines longer than 80.
76267         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
76268         (SUFFIXES): Define.
76269         (.sed.in.sed): New rule.  Don't redirect directly to $@.
76270         (CLEANFILES): Add ref-add.sed and ref-del.sed.
76271
76272 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
76273
76274         * lib/config.charset: Output a line containing "Packages using this
76275         file".
76276         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
76277         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
76278         ref-del.sed): New rules.
76279
76280 2000-03-17  Jim Meyering  <meyering@lucent.com>
76281
76282         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
76283         Otherwise, include <strings.h>
76284
76285 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
76286
76287         * lib/unicodeio.c (utf8_wctomb): New function.
76288         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
76289         format instead of in UCS-4 with platform dependent endianness.
76290
76291 2000-03-10  Jim Meyering  <meyering@lucent.com>
76292
76293         * m4/lib-check.m4: Look for getspnam in -lgen, too.
76294         From Marco Franzen.
76295
76296 2000-03-07  Paul Eggert  <eggert@twinsun.com>
76297
76298         * lib/savedir.c (savedir): Work even if directory size is
76299         negative; this can happen with some screwy NFS configurations.
76300
76301 2000-03-06  Jim Meyering  <meyering@lucent.com>
76302
76303         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
76304         if it's NULL (because we ran out of memory).  From Bruno Haible.
76305
76306 2000-03-05  Jim Meyering  <meyering@lucent.com>
76307
76308         * lib/localcharset.c ("path-concat.h"): Include.
76309         (get_charset_aliases): Use path_concat instead of ANSI string
76310         concatenation.
76311
76312         * lib/unicodeio.h (PARAMS): Define.
76313         Use it to guard prototype.
76314
76315 2000-03-04  Jim Meyering  <meyering@lucent.com>
76316
76317         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
76318         for lib/localcharset.c.
76319
76320 2000-03-04  Jim Meyering  <meyering@lucent.com>
76321
76322         * lib/Makefile.am (install-exec-local): Create $(libdir) before
76323         installing into it.
76324         (uninstall-local): Uncomment this rule so `make distcheck' works
76325         once again.
76326
76327         * lib/unicodeio.c (<errno.h>): Include it.
76328         (errno): Declare if not defined.
76329
76330         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
76331
76332         * lib/config.charset: New version, incorporating remarks from a linux
76333         i18n mailing list.  From Bruno Haible.
76334
76335 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
76336
76337         * m4/codeset.m4: New file.
76338         * m4/iconv.m4: New file.
76339         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
76340
76341 2000-03-03  Jim Meyering  <meyering@lucent.com>
76342
76343         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
76344
76345 2000-03-02  Jim Meyering  <meyering@lucent.com>
76346
76347         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
76348         the messages come out on separate lines.
76349
76350         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
76351         rather than jm_CHECK_DECLARATIONS.
76352         * m4/decl.m4: Remove now-unused file.
76353
76354         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
76355         geteuid.
76356
76357 2000-03-02  Jim Meyering  <meyering@lucent.com>
76358
76359         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
76360
76361 2000-03-01  Jim Meyering  <meyering@lucent.com>
76362
76363         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
76364         * lib/unicodeio.c: Likewise.
76365
76366 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
76367
76368         * lib/config.charset: New file.
76369         * lib/localcharset.c: New file.
76370         * lib/unicodeio.h, lib/unicodeio.c: New files.
76371         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
76372         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
76373         (noinst_HEADERS): Add unicodeio.h.
76374         (all-local, install-exec-local, charset.alias): New targets.
76375
76376 2000-02-28  Paul Eggert  <eggert@twinsun.com>
76377
76378         * lib/quotearg.c (ALERT_CHAR): New macro.
76379         (quotearg_buffer_restyled): Use it.
76380
76381 2000-02-27  Jim Meyering  <meyering@lucent.com>
76382
76383         * m4/check-decl.m4: Add getenv to the list.
76384
76385 2000-02-27  Jim Meyering  <meyering@lucent.com>
76386
76387         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
76388         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
76389
76390         * lib/backupfile.c: Guard inclusion of stdlib.h with
76391         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
76392         Declare malloc if needed.
76393
76394         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
76395         `#ifndef HAVE_DECL..'
76396         now that autoconf always defines the HAVE_DECL_ symbols.
76397         * lib/human.c: Likewise.
76398         * lib/same.c: Likewise.
76399         * lib/strtoumax.c: Likewise.
76400
76401         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
76402         declaration check was not run.
76403         * lib/hash.c: Likewise.
76404         * lib/human.c: Likewise.
76405         * lib/same.c: Likewise.
76406         * lib/strtoumax.c: Likewise.
76407
76408         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
76409         `.', then first look up the entire `.'-containing string as a login
76410         name.
76411
76412 2000-02-23  Jim Meyering  <meyering@lucent.com>
76413
76414         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
76415         in place of my hack.
76416
76417 2000-02-18  Paul Eggert  <eggert@twinsun.com>
76418
76419         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
76420         (textint): New typedef.
76421         (parser_control): Member year changed from int to textint.
76422         All uses changed.
76423         (YYSTYPE): Removed; replaced by %union with int and textint members.
76424         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
76425         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
76426         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
76427         (tSNUMBER, tUNUMBER): Now of type <textintval>.
76428         (date, number, to_year): Use width of number in digits, not its value,
76429         to determine whether it's a 2-digit year, or a 2-digit time.
76430         (yylex): Store number of digits of numeric tokens.
76431         Reported by John Kendall.
76432
76433         (parser_control): Changed from struct parser_control to typedef (for
76434         consistency).  All uses changed.
76435
76436         (tID): Removed; not used.
76437         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
76438
76439 2000-02-14  Paul Eggert  <eggert@twinsun.com>
76440
76441         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
76442         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
76443
76444 2000-02-12  Jim Meyering  <meyering@lucent.com>
76445
76446         * lib/userspec.c (ISDIGIT): Define it.
76447         (isdigit): Remove definition.
76448         (is_number): Use ISDIGIT, not isdigit.
76449         <libintl.h>: Include.
76450         (_ and N_): Define.
76451         (parse_user_spec): Mark translatable strings.
76452
76453 2000-02-10  Jim Meyering  <meyering@lucent.com>
76454
76455         With these changes, nanosleep.[ch] are finally enough like the other
76456         lib/* replacement files to compile on a few more losing systems.
76457
76458         * lib/nanosleep.h: Don't include config.h.
76459         Remove prototype from declaration of nanosleep.
76460         (PARAMS): Remove now-unneeded definition.
76461         * lib/nanosleep.c: #undef nanosleep.
76462         (rpl_nanosleep): Rename from nanosleep.
76463
76464 2000-02-10  Jim Meyering  <meyering@lucent.com>
76465
76466         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
76467         gnu_nanosleep to rpl_nanosleep.
76468
76469 2000-02-09  Jim Meyering  <meyering@lucent.com>
76470
76471         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
76472         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
76473
76474 2000-02-08  Akim Demaille  <akim@epita.fr>
76475
76476         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
76477         `[' and `]' and remove uses of `changequote'.
76478         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
76479         (AC_SYS_LARGEFILE): Likewise.
76480         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
76481         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
76482         of changequote.
76483         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
76484         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
76485         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
76486         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
76487
76488 2000-02-05  Jim Meyering  <meyering@lucent.com>
76489
76490         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
76491         Remove explicit use of AC_HEADER_TIME.  It is required by
76492         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
76493         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
76494         in autoconf whereby the expansion of the latter ended up preceding
76495         the expansion of its prerequisite, AC_HEADER_TIME.
76496         Reported by Volker Borchert.
76497
76498 2000-02-03  Jim Meyering  <meyering@lucent.com>
76499
76500         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
76501
76502 2000-02-03  Jim Meyering  <meyering@lucent.com>
76503
76504         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
76505         rather than with `#if HAVE_UTMPNAME'.
76506
76507 2000-02-02  Jim Meyering  <meyering@lucent.com>
76508
76509         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
76510         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
76511         Reported by Eli Zaretskii.
76512
76513 2000-02-01  Jim Meyering  <meyering@lucent.com>
76514
76515         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
76516
76517 2000-01-31  Jim Meyering  <meyering@lucent.com>
76518
76519         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
76520         functions.  Add the time.h and sys/time.h headers along with the
76521         AC_REQUIRE'ment of AC_HEADER_TIME.
76522
76523 2000-01-31  Jim Meyering  <meyering@lucent.com>
76524
76525         * lib/nanosleep.h (nanosleep): Guard declaration with
76526         `#if ! HAVE_DECL_NANOSLEEP'.
76527         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
76528         the declaration in that vendor's sys/timers.h.
76529         Reported by Christian Krackowizer.
76530
76531         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
76532         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
76533         (ISPRINT): Likewise.
76534         Reported by Tom Tromey.
76535
76536 2000-01-30  Jim Meyering  <meyering@lucent.com>
76537
76538         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
76539
76540         * m4/prereq.m4 (utmp_includes): Define.
76541         Check for ut_user and ut_name members in both struct utmpx
76542         and struct utmp.
76543
76544 2000-01-30  Jim Meyering  <meyering@lucent.com>
76545
76546         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
76547         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
76548         header files where only utmpx.ut_user is declared.
76549
76550         * lib/readutmp.h (UT_USER): Define.
76551
76552 2000-01-29  Jim Meyering  <meyering@lucent.com>
76553
76554         * m4/lib-check.m4: New file containing library-related checks from
76555         fileutils and sh-utils (textutils had none).
76556
76557 2000-01-28  Jim Meyering  <meyering@lucent.com>
76558
76559         * m4/perl.m4: Change format of warning message to look more like that
76560         from the missing script.  Suggestion from François Pinard.
76561
76562 2000-01-25  Jim Meyering  <meyering@lucent.com>
76563
76564         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
76565         well as time.h in the compile check.
76566         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
76567         Fix typo in cross-compiling case: s/yes/no/.
76568
76569 2000-01-23  Jim Meyering  <meyering@lucent.com>
76570
76571         * m4/jm-macros.m4: Move df-related tests here from
76572         fileutils/configure.in
76573
76574         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
76575         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
76576
76577         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
76578         s/space/ac_fsusage_space/.
76579         (jm_FILE_SYSTEM_USAGE): Take two parameters.
76580
76581         * m4/ftruncate.m4: New file (derived from part of
76582         fileutils/configure.in).
76583         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
76584         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
76585
76586         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
76587         AC_SUBST these here, rather than just in sh-util/configure.in, so
76588         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
76589         all the same.
76590         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
76591         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
76592         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
76593         (AC_SUBST(POW_LIBM)): Likewise.
76594         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
76595
76596 2000-01-23  Jim Meyering  <meyering@lucent.com>
76597
76598         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
76599         obstack.c.
76600
76601 2000-01-22  Jim Meyering  <meyering@lucent.com>
76602
76603         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
76604
76605         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
76606
76607         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
76608         configure.in
76609         (AC_CHECK_HEADERS): Likewise for sh-utils.
76610         (AC_CHECK_HEADERS): Likewise for textutils.
76611         Merge the three lists of headers.
76612
76613         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
76614         from fileutils' configure.in.
76615
76616         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
76617         code. Moved tests into their own function (_jm_DECL_HEADERS) in
76618         check-decl.m4.
76619
76620         * m4/check-decl.m4: Use #if rather than #ifdef.
76621         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
76622         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
76623         (_jm_DECL_HEADERS): Define new function.
76624         (jm_CHECK_DECLARATIONS): Require it.
76625
76626 2000-01-22  Jim Meyering  <meyering@lucent.com>
76627
76628         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
76629         [! HAVE_DECL_STRTOULL]: Declare strtoull.
76630         Required for some AIX systems.  Reported by Christian Krackowizer.
76631         [TESTING] (main): New function.
76632
76633         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
76634         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
76635         letters.
76636
76637         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
76638         iswprint.
76639
76640         * lib/strverscmp.c (ISDIGIT): Define.
76641         (strverscmp): Use ISDIGIT, not isdigit.
76642
76643 2000-01-19  Jim Meyering  <meyering@lucent.com>
76644
76645         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
76646         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
76647         defines `struct timespec' in <sys/time.h>
76648
76649         * m4/c-bs-a.m4: Remove uses of changequote altogether.
76650         Thanks to Akim for explaining.
76651
76652 2000-01-17  Paul Eggert  <eggert@twinsun.com>
76653
76654         * lib/nanosleep.c (nanosleep):
76655         Don't use SA_INTERRUPT to decide whether to call sigaction, as
76656         POSIX.1 doesn't require SA_INTERRUPT and some systems
76657         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
76658         it's been part of POSIX.1 since day 1 (in 1988).
76659
76660 2000-01-17  Jim Meyering  <meyering@lucent.com>
76661
76662         * lib/interlock: Remove unused file.  Reported by François Pinard.
76663
76664 2000-01-16  Paul Eggert  <eggert@twinsun.com>
76665
76666         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
76667         alert, backslash, formfeed, and vertical tab unnecessarily in
76668         shell quoting style.
76669
76670 2000-01-16  Jim Meyering  <meyering@lucent.com>
76671
76672         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
76673         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
76674         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
76675         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
76676
76677 2000-01-16  Jim Meyering  <meyering@lucent.com>
76678
76679         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
76680         because the latter didn't work.
76681
76682 2000-01-15  Jim Meyering  <meyering@lucent.com>
76683
76684         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
76685         (AC_REPLACE_FUNCS): Add memcpy and memset.
76686         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
76687         Add strpbrk.
76688         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
76689
76690 2000-01-12  Jim Meyering  <meyering@lucent.com>
76691
76692         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
76693         (jm_PREREQ): Use it.
76694         (jm_PREREQ_READUTMP): New macro.
76695         (jm_PREREQ): Use it.
76696
76697 2000-01-11  Paul Eggert  <eggert@twinsun.com>
76698
76699         Quote multibyte characters correctly.
76700         * m4/c-bs-a.m4: New file.
76701         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
76702         (jm_PREREQ): Use it.
76703
76704 2000-01-11  Paul Eggert  <eggert@twinsun.com>
76705
76706         * m4/uintmax_t.m4: Port to autoconf 2.13.
76707
76708 2000-01-08  Jim Meyering  <meyering@ascend.com>
76709
76710         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
76711         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
76712
76713 2000-01-04  Jim Meyering  <meyering@ascend.com>
76714
76715         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
76716         jm_STRUCT_DIRENT_D_TYPE.
76717         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
76718         jm_STRUCT_DIRENT_D_INO.
76719         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
76720         jm_STRUCT_UTIMBUF.
76721         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
76722         renamings.
76723         * m4/utime.m4: Likewise.
76724
76725         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
76726         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
76727
76728 2000-01-03  Paul Eggert  <eggert@twinsun.com>
76729
76730         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
76731         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
76732
76733 2000-01-02  Jim Meyering  <meyering@ascend.com>
76734
76735         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
76736         remember if this is necessary.
76737
76738 1999-12-26  Jim Meyering  <meyering@ascend.com>
76739
76740         * m4/jm-macros.m4: Use it here.
76741         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
76742
76743 1999-12-23  Jim Meyering  <meyering@ascend.com>
76744
76745         * m4/jm-macros.m4: Check for clock_gettime (moved from
76746         fileutils/configure.in)
76747         Check for gettimeofday.
76748
76749 1999-12-20  Jim Meyering  <meyering@ascend.com>
76750
76751         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
76752         autoconf-2.14a-1999-12-20.
76753
76754 1999-12-19  Jim Meyering  <meyering@ascend.com>
76755
76756         * m4/lstat-slash.m4: New file.
76757         * m4/jm-macros.m4: Use the new macro:
76758         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76759
76760 1999-12-07  Jim Meyering  <meyering@ascend.com>
76761
76762         * m4/perl.m4: Require that File::Compare be available, too.
76763         Too many systems seem to lack it.
76764
76765         * m4/strftime.m4: Add checks for most of the cpp macros tested in
76766         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
76767
76768 1999-11-18  Paul Eggert  <eggert@twinsun.com>
76769
76770         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
76771         problem with the QNX 4.25 shell, which doesn't propagate exit
76772         status of failed commands inside shell assignments.
76773
76774 1999-11-17  Jim Meyering  <meyering@ascend.com>
76775
76776         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
76777
76778 1999-11-07  Jim Meyering  <meyering@ascend.com>
76779
76780         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
76781
76782 1999-11-06  Jim Meyering  <meyering@ascend.com>
76783
76784         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
76785         * m4/jm-macros.m4 (jm_MACROS): Use it here.
76786
76787 1999-11-05  Jim Meyering  <meyering@ascend.com>
76788
76789         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
76790         configure.in of textutils, fileutils, and sh-utils into this one
76791         (shared between those packages) file.
76792         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
76793         AC_STRUCT_ST_BLKSIZE.
76794
76795 1999-11-03  Jim Meyering  <meyering@ascend.com>
76796
76797         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
76798         of AC_CHECK_TYPE checks includes unistd.h.
76799         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
76800         Suggestion from Akim Demaille.
76801
76802 1999-10-30  Jim Meyering  <meyering@ascend.com>
76803
76804         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
76805         m4-quoted string.
76806         * m4/ls-mntd-fs.m4: Likewise.
76807         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
76808         * m4/jm-winsz1.m4: Likewise.
76809
76810         * m4/const.m4: Remove file, since the fix made it into the experimental
76811         version of autoconf.
76812         * m4/mktime.m4: Likewise.
76813
76814         * m4/check-type.m4: Remove file, now that the latest version of
76815         AC_CHECK_TYPE takes a third arg to specify additional #includes.
76816
76817         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
76818         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
76819         AC_CHECK_TYPE.
76820
76821 1999-10-04  Jim Meyering  <meyering@ascend.com>
76822
76823         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
76824
76825 1999-09-22  Paul Eggert  <eggert@twinsun.com>
76826
76827         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
76828         2.95.1 bug with HP-UX 10.20.
76829
76830 1999-09-17  Jim Meyering  <meyering@ascend.com>
76831
76832         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
76833         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
76834         due to missing strdup (against sh-utils-2.0).
76835
76836 1999-08-29  Jim Meyering  <meyering@ascend.com>
76837
76838         * m4/jm-macros.m4: Require jm_BISON.
76839         * m4/bison.m4: New file.
76840
76841 1999-08-17  Paul Eggert  <eggert@twinsun.com>
76842
76843         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
76844         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
76845
76846 1999-08-05  Jim Meyering  <meyering@ascend.com>
76847
76848         * m4/getline.m4: Rename test file from conftestdata to conftest.data
76849         to avoid conflicts with `conftest' on 8+3 filesystems.
76850         Suggestion from Eli Zaretskii.
76851
76852 1999-08-04  Jim Meyering  <meyering@ascend.com>
76853
76854         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
76855         fileutils and sh-utils (textutils's getline test was inadequate).
76856         (AM_FUNC_GETLINE): Run this test.
76857         (AC_CHECK_FUNCS): Check for getdelim.
76858         Reported by Bob Proulx.
76859
76860 1999-08-02  Jim Meyering  <meyering@ascend.com>
76861
76862         * m4/jm-macros.m4: Add a comment.
76863
76864 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76865
76866         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
76867         <inttypes.h> defines strtoumax as a macro (and not as a
76868         function).
76869
76870 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76871
76872         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
76873         that we can shift, multiply and divide unsigned long long
76874         values; Ultrix cc can't do it.
76875
76876 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76877
76878         * m4/mktime.m4: New file, which is a preview of what should appear
76879         in the next public autoconf release.
76880
76881 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76882
76883         * m4/lfs.m4: Remove this file.
76884         * m4/largefile.m4: New file.  It contains the old contents of
76885         lfs.m4, except that all names with prefix AC_LFS have been
76886         changed to use the prefix AC_SYS_LARGEFILE instead, to be
76887         compatible with future autoconf versions.  Also, some minor m4
76888         quoting problems have been fixed.
76889
76890 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76891
76892         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
76893         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
76894         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
76895         and simplify the shell code.
76896
76897 1999-08-01  Jim Meyering  <meyering@ascend.com>
76898
76899         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
76900         m4.
76901
76902 1999-07-20  Jim Meyering  <meyering@ascend.com>
76903
76904         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
76905
76906 1999-07-15  Jim Meyering  <meyering@ascend.com>
76907
76908         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
76909
76910 1999-05-22  Jim Meyering  <meyering@ascend.com>
76911
76912         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
76913
76914 1999-05-20  Jim Meyering  <meyering@ascend.com>
76915
76916         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
76917         Add a colon after each `then' in case $4 is empty.
76918
76919 1999-05-16  Jim Meyering  <meyering@ascend.com>
76920
76921         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
76922
76923 1999-05-10  Jim Meyering  <meyering@ascend.com>
76924
76925         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
76926
76927         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
76928         AC_FUNC_MKTIME.
76929
76930 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
76931
76932         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
76933
76934 1999-05-04  Paul Eggert  <eggert@twinsun.com>
76935
76936         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
76937         not CPPFLAGS, so that linking works correctly in IRIX.
76938
76939 1999-04-30  Paul Eggert  <eggert@twinsun.com>
76940
76941         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
76942
76943 1999-04-20  Paul Eggert  <eggert@twinsun.com>
76944
76945         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
76946         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
76947         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
76948         jm_AC_TYPE_UNSIGNED_LONG_LONG.
76949         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
76950
76951         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
76952
76953 1999-04-20  Jim Meyering  <meyering@ascend.com>
76954
76955         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
76956         AC_REPLACE xstroull if necessary.  From Paul Eggert.
76957         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
76958
76959 1999-04-18  Jim Meyering  <meyering@ascend.com>
76960
76961         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
76962         * m4/jm-macros.m4: Use it.
76963
76964 1999-04-06  Jim Meyering  <meyering@ascend.com>
76965
76966         * m4/strftime.m4: Remove test for %f.
76967
76968 1999-03-29  Jim Meyering  <meyering@ascend.com>
76969
76970         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
76971         superset of the AC_TYPE_* checks in the textutils, fileutils,
76972         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
76973         AC_TYPE_PID_T.
76974
76975 1999-03-28  Jim Meyering  <meyering@ascend.com>
76976
76977         * m4/jm-macros.m4: Define GNU_PACKAGE here.
76978         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
76979         replaced e.g., in the *.sh files of the sh-utils.
76980
76981 1999-03-20  Jim Meyering  <meyering@ascend.com>
76982
76983         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
76984         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
76985         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
76986
76987 1999-03-19  Jim Meyering  <meyering@ascend.com>
76988
76989         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
76990
76991 1999-03-12  Jim Meyering  <meyering@ascend.com>
76992
76993         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
76994
76995 1999-03-07  Jim Meyering  <meyering@ascend.com>
76996
76997         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
76998         declared.
76999
77000 1999-02-17  Jim Meyering  <meyering@ascend.com>
77001
77002         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
77003         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
77004
77005 1999-02-07  Jim Meyering  <meyering@ascend.com>
77006
77007         * m4/group-member.m4: New file -- extracted from sh-utils'
77008         configure.in.
77009
77010         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
77011         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
77012
77013 1999-02-06  Jim Meyering  <meyering@ascend.com>
77014
77015         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
77016         * m4/fnmatch.m4: Likewise.
77017         * m4/getgroups.m4: Likewise.
77018         * m4/lstat.m4: Likewise.
77019         * m4/malloc.m4: Likewise.
77020         * m4/putenv.m4: Likewise.
77021         * m4/realloc.m4: Likewise.
77022         * m4/regex.m4: Likewise.
77023         * m4/stat.m4: Likewise.
77024         * m4/strftime.m4: Likewise.
77025         Suggestion from Alain Magloire.
77026
77027         * m4/chown.m4: Use `.$ac_objext', not `.o'.
77028         * m4/fnmatch.m4: Likewise.
77029         * m4/getgroups.m4: Likewise.
77030         * m4/getline.m4: Likewise.
77031         * m4/lstat.m4: Likewise.
77032         * m4/malloc.m4: Likewise.
77033         * m4/memcmp.m4: Likewise.
77034         * m4/putenv.m4: Likewise.
77035         * m4/realloc.m4: Likewise.
77036         * m4/regex.m4: Likewise.
77037         * m4/stat.m4: Likewise.
77038         * m4/strftime.m4: Likewise.
77039         Suggestion from Alain Magloire.
77040
77041         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
77042         an argument.
77043
77044         * m4/regex.m4: Add a run-time Test for proper operation of
77045         re_compile_pattern.
77046
77047 1999-01-31  Jim Meyering  <meyering@ascend.com>
77048
77049         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
77050
77051 1999-01-30  Jim Meyering  <meyering@ascend.com>
77052
77053         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
77054
77055         * m4/jm-mktime.m4: Make this a wrapper around the official
77056         AM_FUNC_MKTIME rather than my private copy, now that the official one
77057         is up to date.
77058         * m4/mktime.m4: Remove file.
77059
77060         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
77061         * m4/uptime.m4: Likewise.
77062         * m4/uintmax_t.m4: Likewise.
77063
77064 1999-01-28  Jim Meyering  <meyering@ascend.com>
77065
77066         * m4/jm-macros.m4: Use jm_AFS.
77067         * m4/afs.m4: New file (from fileutils' configure.in).
77068
77069         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
77070         * m4/chown.m4: Likewise.
77071         * m4/d-ino.m4: Likewise.
77072         * m4/d-type.m4: Likewise.
77073         * m4/fnmatch.m4: Likewise.
77074         * m4/getgroups.m4: Likewise.
77075         * m4/gettext.m4: Likewise.
77076         * m4/jm-mktime.m4: Likewise.
77077         * m4/jm-winsz2.m4: Likewise.
77078         * m4/lcmessage.m4: Likewise.
77079         * m4/ls-mntd-fs.m4: Likewise.
77080         * m4/malloc.m4: Likewise.
77081         * m4/memcmp.m4: Likewise.
77082         * m4/putenv.m4: Likewise.
77083         * m4/realloc.m4: Likewise.
77084         * m4/st_mtim.m4: Likewise.
77085         * m4/strftime.m4: Likewise.
77086
77087 1999-01-16  Jim Meyering  <meyering@ascend.com>
77088
77089         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
77090         (ARGMATCH_DIE_DECL): Define.
77091
77092 1999-01-12  Jim Meyering  <meyering@ascend.com>
77093
77094         * m4/Makefile.am.in: Rewrite to avoid using fmt.
77095         Reported by Lars Hecking.
77096
77097 1999-01-10  Jim Meyering  <meyering@ascend.com>
77098
77099         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
77100         gross kludge.
77101         * m4/inttypes_h.m4: Likewise.
77102         * m4/lstat.m4: Likewise.
77103         * m4/malloc.m4: Likewise.
77104         * m4/readdir.m4: Likewise.
77105         * m4/realloc.m4: Likewise.
77106         * m4/st_dm_mode.m4: Likewise.
77107         * m4/stat.m4: Likewise.
77108         * m4/utimbuf.m4: Likewise.
77109         * m4/utimes.m4: Likewise.
77110
77111         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
77112         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
77113         comments in config.h.in are meaningful.
77114
77115         * m4/jm-macros.m4: Require autoconf-2.13 here.
77116
77117         * m4/regex.m4: By default, don't use the included regex.c on systems
77118         with glibc 2.  Suggestion from Uli Drepper.
77119
77120 1999-01-02  Jim Meyering  <meyering@ascend.com>
77121
77122         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
77123
77124 1998-12-18  Jim Meyering  <meyering@ascend.com>
77125
77126         * m4/Makefile.am.in (Makefile.am): Simplify rule.
77127         Based on a suggestion from Lars Hecking.
77128
77129 1998-11-16  Paul Eggert  <eggert@twinsun.com>
77130
77131         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
77132
77133 1998-11-16  Jim Meyering  <meyering@ascend.com>
77134
77135         * m4/lfs.m4: Double-quote the `uname...` expression.
77136
77137 1998-11-14  Jim Meyering  <meyering@ascend.com>
77138
77139         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
77140         * m4/stat.m4: Likewise.
77141
77142 1998-11-03  Jim Meyering  <meyering@ascend.com>
77143
77144         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
77145         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
77146
77147 1998-10-18  Jim Meyering  <meyering@ascend.com>
77148
77149         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
77150
77151 1998-10-17  Jim Meyering  <meyering@ascend.com>
77152
77153         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
77154         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
77155         calls for those previously hard-coded headers.  Instead, take a new
77156         parameter.
77157         (jm_CHECK_DECLARATIONS): Reflect interface change.
77158         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
77159         (jm_CHECK_DECL_LOCALTIME_R): New macro.
77160
77161         * m4/mktime.m4: Test for spring-forward gap before long-running test.
77162
77163 1998-10-14  Jim Meyering  <meyering@ascend.com>
77164
77165         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
77166         instead of "TZ=America/Vancouver".  From Paul Eggert.
77167
77168 1998-10-11  Jim Meyering  <meyering@ascend.com>
77169
77170         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
77171         This adds a test for a recently added compatibility fix for mktime.c.
77172         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
77173
77174 1998-09-27  Jim Meyering  <meyering@ascend.com>
77175
77176         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
77177
77178         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
77179         ../configure.in, including a change from Gordon Matzigkeit to allow
77180         cross-compiling for the Hurd.
77181
77182         * m4/glibc.m4: New file/macro to test for the GNU C Library
77183         versions 1 and 2.  From Gordon Matzigkeit.
77184         Indent.
77185
77186 1998-09-21  Jim Meyering  <meyering@ascend.com>
77187
77188         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
77189
77190 1998-08-18  Paul Eggert  <eggert@twinsun.com>
77191
77192         Port nanosecond-resolution times to UnixWare 2.1.2 and
77193         pedantic Solaris 2.6.
77194
77195         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
77196         AC_STRUCT_ST_MTIM.
77197         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
77198         Generate name of ns member, instead of just 1 or undef.
77199         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
77200
77201 1998-08-15  Jim Meyering  <meyering@ascend.com>
77202
77203         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
77204         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
77205         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
77206         instead of jm_TYPE_SSIZE_T.
77207
77208 1998-08-12  Jim Meyering  <meyering@ascend.com>
77209
77210         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
77211
77212 1998-08-02  Jim Meyering  <meyering@ascend.com>
77213
77214         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
77215         in acconfig.h manually.
77216
77217 1998-07-31  Paul Eggert  <eggert@twinsun.com>
77218
77219         * m4/st_mtim.m4: New file.
77220
77221 1998-07-28  Jim Meyering  <meyering@ascend.com>
77222
77223         * m4/utimes.m4: Undef stat.
77224
77225 1998-07-25  Jim Meyering  <meyering@ascend.com>
77226
77227         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
77228         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
77229
77230 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
77231
77232         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
77233         uid and gid actually remain unchanged.
77234
77235 1998-07-07  Jim Meyering  <meyering@ascend.com>
77236
77237         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
77238
77239 1998-07-04  Jim Meyering  <meyering@ascend.com>
77240
77241         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
77242         to prove that this macro can be used in packages without regex.c.
77243
77244 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
77245
77246         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
77247         is to be used.
77248
77249 1998-07-03  Jim Meyering  <meyering@ascend.com>
77250
77251         * m4/gettext.m4: Add -lintl if it's found to be necessary.
77252
77253         * m4/gettext.m4: New file -- from gettext-0.10.35.
77254         * m4/lcmessage.m4: Likewise.
77255         * m4/progtest.m4: Likewise.
77256
77257         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
77258         * m4/jm-macros.m4: Require the new macro.
77259
77260 1998-06-29  Jim Meyering  <meyering@ascend.com>
77261
77262         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
77263         for the definition of NGROUPS (used in a system header included
77264         by sys/mount.h).
77265
77266 1998-06-28  Jim Meyering  <meyering@ascend.com>
77267
77268         * m4/ls-mntd-fs.m4: New file.
77269         * m4/fstypename.m4: New file.
77270
77271         * m4/jm-macros.m4: Require the new macro.
77272         * m4/jm-glibc-io.m4: New file.
77273
77274 1998-05-19  Jim Meyering  <meyering@ascend.com>
77275
77276         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
77277         * m4/lchown.m4: New file.
77278
77279         * m4/Makefile.am.in: New file.
77280         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
77281
77282 1998-05-14  Jim Meyering  <meyering@ascend.com>
77283
77284         * m4/Makefile.am (EXTRA_DIST): Add them.
77285         * m4/jm-macros.m4: New file.
77286         * m4/utimbuf.m4: New file.
77287
77288 1998-05-12  Jim Meyering  <meyering@ascend.com>
77289
77290         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
77291
77292 1998-05-11  Jim Meyering  <meyering@ascend.com>
77293
77294         * m4/isc-posix.m4: New file.
77295
77296 1998-05-10  Jim Meyering  <meyering@ascend.com>
77297
77298         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
77299
77300 1998-05-09  Jim Meyering  <meyering@ascend.com>
77301
77302         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
77303         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
77304         with automake.
77305
77306         * m4/ssize_t.m4: New file.
77307         * m4/mktime.m4: Remove file -- the new automake has this now.
77308
77309 1998-04-26  Jim Meyering  <meyering@ascend.com>
77310
77311         * m4/assert.m4: New file.
77312         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
77313
77314 1998-04-05  Jim Meyering  <meyering@ascend.com>
77315
77316         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
77317         (jm_PREREQ): Use it here.
77318
77319 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
77320
77321         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
77322         in acconfig.h.
77323
77324 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
77325
77326         * m4/prereq.m4: New file.
77327         * m4/error.m4: New file.
77328         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
77329
77330 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
77331
77332         * m4/getline.m4: Don't set am_cv_func_working_getline before the
77333         cache-check for the same variable -- that defeated the purpose of
77334         the test; the test program was never run.  This was a problem only
77335         on systems with losing getline functions -- HP-UX 10.20 is one.
77336         Reported by Bjorn Helgaas.
77337
77338 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
77339
77340         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
77341
77342 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
77343
77344         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
77345
77346         * m4/const.m4: New file.  Use an initializer in this declaration
77347         typedef int charset[2]; const charset x;
77348         Reported by Bob Glickstein.
77349
77350 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
77351
77352         * m4/chown.m4: Fix reversed types on -1 args to chown.
77353         From Kaveh Ghazi.
77354
77355 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
77356
77357         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
77358         Add lseek and memchr.
77359
77360         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
77361         T.E.Dickey <dickey@clark.net> said that some older preprocessors
77362         have a 20-character limit on names.
77363
77364 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
77365
77366         * m4/inttypes_h.m4: New file.
77367         * m4/uintmax_t.m4: New file.
77368         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
77369
77370
77371         -----
77372
77373         Local Variables:
77374         coding: utf-8
77375         End:
77376
77377         Copyright (C) 1997-2011 Free Software Foundation, Inc.
77378
77379         Copying and distribution of this file, with or without
77380         modification, are permitted provided the copyright notice
77381         and this notice are preserved.